]> git.sur5r.net Git - iec16022/blob - configure
Prepare for upload
[iec16022] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for iec16022 0.2.3.
4 #
5 # Report bugs to <stefan@datenfreihafen.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='iec16022'
730 PACKAGE_TARNAME='iec16022'
731 PACKAGE_VERSION='0.2.3'
732 PACKAGE_STRING='iec16022 0.2.3'
733 PACKAGE_BUGREPORT='stefan@datenfreihafen.org'
734
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 #  include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 #  include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 INSTALL_PROGRAM
809 INSTALL_SCRIPT
810 INSTALL_DATA
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
823 AWK
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
829 MAINTAINER_MODE_TRUE
830 MAINTAINER_MODE_FALSE
831 MAINT
832 CC
833 CFLAGS
834 LDFLAGS
835 CPPFLAGS
836 ac_ct_CC
837 EXEEXT
838 OBJEXT
839 DEPDIR
840 am__include
841 am__quote
842 AMDEP_TRUE
843 AMDEP_FALSE
844 AMDEPBACKSLASH
845 CCDEPMODE
846 am__fastdepCC_TRUE
847 am__fastdepCC_FALSE
848 build
849 build_cpu
850 build_vendor
851 build_os
852 host
853 host_cpu
854 host_vendor
855 host_os
856 SED
857 GREP
858 EGREP
859 LN_S
860 ECHO
861 AR
862 RANLIB
863 DSYMUTIL
864 NMEDIT
865 CPP
866 CXX
867 CXXFLAGS
868 ac_ct_CXX
869 CXXDEPMODE
870 am__fastdepCXX_TRUE
871 am__fastdepCXX_FALSE
872 CXXCPP
873 F77
874 FFLAGS
875 ac_ct_F77
876 LIBTOOL
877 LIBOBJS
878 LTLIBOBJS'
879 ac_subst_files=''
880       ac_precious_vars='build_alias
881 host_alias
882 target_alias
883 CC
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
888 CPP
889 CXX
890 CXXFLAGS
891 CCC
892 CXXCPP
893 F77
894 FFLAGS'
895
896
897 # Initialize some variables set by options.
898 ac_init_help=
899 ac_init_version=false
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
902 cache_file=/dev/null
903 exec_prefix=NONE
904 no_create=
905 no_recursion=
906 prefix=NONE
907 program_prefix=NONE
908 program_suffix=NONE
909 program_transform_name=s,x,x,
910 silent=
911 site=
912 srcdir=
913 verbose=
914 x_includes=NONE
915 x_libraries=NONE
916
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934 infodir='${datarootdir}/info'
935 htmldir='${docdir}'
936 dvidir='${docdir}'
937 pdfdir='${docdir}'
938 psdir='${docdir}'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
942
943 ac_prev=
944 ac_dashdash=
945 for ac_option
946 do
947   # If the previous option needs an argument, assign it.
948   if test -n "$ac_prev"; then
949     eval $ac_prev=\$ac_option
950     ac_prev=
951     continue
952   fi
953
954   case $ac_option in
955   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956   *)    ac_optarg=yes ;;
957   esac
958
959   # Accept the important Cygnus configure options, so we can diagnose typos.
960
961   case $ac_dashdash$ac_option in
962   --)
963     ac_dashdash=yes ;;
964
965   -bindir | --bindir | --bindi | --bind | --bin | --bi)
966     ac_prev=bindir ;;
967   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968     bindir=$ac_optarg ;;
969
970   -build | --build | --buil | --bui | --bu)
971     ac_prev=build_alias ;;
972   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973     build_alias=$ac_optarg ;;
974
975   -cache-file | --cache-file | --cache-fil | --cache-fi \
976   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977     ac_prev=cache_file ;;
978   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980     cache_file=$ac_optarg ;;
981
982   --config-cache | -C)
983     cache_file=config.cache ;;
984
985   -datadir | --datadir | --datadi | --datad)
986     ac_prev=datadir ;;
987   -datadir=* | --datadir=* | --datadi=* | --datad=*)
988     datadir=$ac_optarg ;;
989
990   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991   | --dataroo | --dataro | --datar)
992     ac_prev=datarootdir ;;
993   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995     datarootdir=$ac_optarg ;;
996
997   -disable-* | --disable-*)
998     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002    { (exit 1); exit 1; }; }
1003     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004     eval enable_$ac_feature=no ;;
1005
1006   -docdir | --docdir | --docdi | --doc | --do)
1007     ac_prev=docdir ;;
1008   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009     docdir=$ac_optarg ;;
1010
1011   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012     ac_prev=dvidir ;;
1013   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014     dvidir=$ac_optarg ;;
1015
1016   -enable-* | --enable-*)
1017     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018     # Reject names that are not valid shell variable names.
1019     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021    { (exit 1); exit 1; }; }
1022     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023     eval enable_$ac_feature=\$ac_optarg ;;
1024
1025   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027   | --exec | --exe | --ex)
1028     ac_prev=exec_prefix ;;
1029   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031   | --exec=* | --exe=* | --ex=*)
1032     exec_prefix=$ac_optarg ;;
1033
1034   -gas | --gas | --ga | --g)
1035     # Obsolete; use --with-gas.
1036     with_gas=yes ;;
1037
1038   -help | --help | --hel | --he | -h)
1039     ac_init_help=long ;;
1040   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041     ac_init_help=recursive ;;
1042   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043     ac_init_help=short ;;
1044
1045   -host | --host | --hos | --ho)
1046     ac_prev=host_alias ;;
1047   -host=* | --host=* | --hos=* | --ho=*)
1048     host_alias=$ac_optarg ;;
1049
1050   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051     ac_prev=htmldir ;;
1052   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053   | --ht=*)
1054     htmldir=$ac_optarg ;;
1055
1056   -includedir | --includedir | --includedi | --included | --include \
1057   | --includ | --inclu | --incl | --inc)
1058     ac_prev=includedir ;;
1059   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060   | --includ=* | --inclu=* | --incl=* | --inc=*)
1061     includedir=$ac_optarg ;;
1062
1063   -infodir | --infodir | --infodi | --infod | --info | --inf)
1064     ac_prev=infodir ;;
1065   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066     infodir=$ac_optarg ;;
1067
1068   -libdir | --libdir | --libdi | --libd)
1069     ac_prev=libdir ;;
1070   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071     libdir=$ac_optarg ;;
1072
1073   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074   | --libexe | --libex | --libe)
1075     ac_prev=libexecdir ;;
1076   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077   | --libexe=* | --libex=* | --libe=*)
1078     libexecdir=$ac_optarg ;;
1079
1080   -localedir | --localedir | --localedi | --localed | --locale)
1081     ac_prev=localedir ;;
1082   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083     localedir=$ac_optarg ;;
1084
1085   -localstatedir | --localstatedir | --localstatedi | --localstated \
1086   | --localstate | --localstat | --localsta | --localst | --locals)
1087     ac_prev=localstatedir ;;
1088   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090     localstatedir=$ac_optarg ;;
1091
1092   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093     ac_prev=mandir ;;
1094   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095     mandir=$ac_optarg ;;
1096
1097   -nfp | --nfp | --nf)
1098     # Obsolete; use --without-fp.
1099     with_fp=no ;;
1100
1101   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102   | --no-cr | --no-c | -n)
1103     no_create=yes ;;
1104
1105   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107     no_recursion=yes ;;
1108
1109   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111   | --oldin | --oldi | --old | --ol | --o)
1112     ac_prev=oldincludedir ;;
1113   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116     oldincludedir=$ac_optarg ;;
1117
1118   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119     ac_prev=prefix ;;
1120   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121     prefix=$ac_optarg ;;
1122
1123   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124   | --program-pre | --program-pr | --program-p)
1125     ac_prev=program_prefix ;;
1126   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128     program_prefix=$ac_optarg ;;
1129
1130   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131   | --program-suf | --program-su | --program-s)
1132     ac_prev=program_suffix ;;
1133   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135     program_suffix=$ac_optarg ;;
1136
1137   -program-transform-name | --program-transform-name \
1138   | --program-transform-nam | --program-transform-na \
1139   | --program-transform-n | --program-transform- \
1140   | --program-transform | --program-transfor \
1141   | --program-transfo | --program-transf \
1142   | --program-trans | --program-tran \
1143   | --progr-tra | --program-tr | --program-t)
1144     ac_prev=program_transform_name ;;
1145   -program-transform-name=* | --program-transform-name=* \
1146   | --program-transform-nam=* | --program-transform-na=* \
1147   | --program-transform-n=* | --program-transform-=* \
1148   | --program-transform=* | --program-transfor=* \
1149   | --program-transfo=* | --program-transf=* \
1150   | --program-trans=* | --program-tran=* \
1151   | --progr-tra=* | --program-tr=* | --program-t=*)
1152     program_transform_name=$ac_optarg ;;
1153
1154   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155     ac_prev=pdfdir ;;
1156   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157     pdfdir=$ac_optarg ;;
1158
1159   -psdir | --psdir | --psdi | --psd | --ps)
1160     ac_prev=psdir ;;
1161   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162     psdir=$ac_optarg ;;
1163
1164   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165   | -silent | --silent | --silen | --sile | --sil)
1166     silent=yes ;;
1167
1168   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169     ac_prev=sbindir ;;
1170   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171   | --sbi=* | --sb=*)
1172     sbindir=$ac_optarg ;;
1173
1174   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176   | --sharedst | --shareds | --shared | --share | --shar \
1177   | --sha | --sh)
1178     ac_prev=sharedstatedir ;;
1179   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182   | --sha=* | --sh=*)
1183     sharedstatedir=$ac_optarg ;;
1184
1185   -site | --site | --sit)
1186     ac_prev=site ;;
1187   -site=* | --site=* | --sit=*)
1188     site=$ac_optarg ;;
1189
1190   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191     ac_prev=srcdir ;;
1192   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193     srcdir=$ac_optarg ;;
1194
1195   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196   | --syscon | --sysco | --sysc | --sys | --sy)
1197     ac_prev=sysconfdir ;;
1198   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200     sysconfdir=$ac_optarg ;;
1201
1202   -target | --target | --targe | --targ | --tar | --ta | --t)
1203     ac_prev=target_alias ;;
1204   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205     target_alias=$ac_optarg ;;
1206
1207   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208     verbose=yes ;;
1209
1210   -version | --version | --versio | --versi | --vers | -V)
1211     ac_init_version=: ;;
1212
1213   -with-* | --with-*)
1214     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215     # Reject names that are not valid shell variable names.
1216     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217       { echo "$as_me: error: invalid package name: $ac_package" >&2
1218    { (exit 1); exit 1; }; }
1219     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220     eval with_$ac_package=\$ac_optarg ;;
1221
1222   -without-* | --without-*)
1223     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224     # Reject names that are not valid shell variable names.
1225     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226       { echo "$as_me: error: invalid package name: $ac_package" >&2
1227    { (exit 1); exit 1; }; }
1228     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229     eval with_$ac_package=no ;;
1230
1231   --x)
1232     # Obsolete; use --with-x.
1233     with_x=yes ;;
1234
1235   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236   | --x-incl | --x-inc | --x-in | --x-i)
1237     ac_prev=x_includes ;;
1238   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240     x_includes=$ac_optarg ;;
1241
1242   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244     ac_prev=x_libraries ;;
1245   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247     x_libraries=$ac_optarg ;;
1248
1249   -*) { echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251    { (exit 1); exit 1; }; }
1252     ;;
1253
1254   *=*)
1255     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256     # Reject names that are not valid shell variable names.
1257     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259    { (exit 1); exit 1; }; }
1260     eval $ac_envvar=\$ac_optarg
1261     export $ac_envvar ;;
1262
1263   *)
1264     # FIXME: should be removed in autoconf 3.0.
1265     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269     ;;
1270
1271   esac
1272 done
1273
1274 if test -n "$ac_prev"; then
1275   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276   { echo "$as_me: error: missing argument to $ac_option" >&2
1277    { (exit 1); exit 1; }; }
1278 fi
1279
1280 # Be sure to have absolute directory names.
1281 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282                 datadir sysconfdir sharedstatedir localstatedir includedir \
1283                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284                 libdir localedir mandir
1285 do
1286   eval ac_val=\$$ac_var
1287   case $ac_val in
1288     [\\/$]* | ?:[\\/]* )  continue;;
1289     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290   esac
1291   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292    { (exit 1); exit 1; }; }
1293 done
1294
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1298 build=$build_alias
1299 host=$host_alias
1300 target=$target_alias
1301
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304   if test "x$build_alias" = x; then
1305     cross_compiling=maybe
1306     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307     If a cross compiler is detected then cross compile mode will be used." >&2
1308   elif test "x$build_alias" != "x$host_alias"; then
1309     cross_compiling=yes
1310   fi
1311 fi
1312
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316 test "$silent" = yes && exec 6>/dev/null
1317
1318
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322   { echo "$as_me: error: Working directory cannot be determined" >&2
1323    { (exit 1); exit 1; }; }
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325   { echo "$as_me: error: pwd does not report name of working directory" >&2
1326    { (exit 1); exit 1; }; }
1327
1328
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331   ac_srcdir_defaulted=yes
1332   # Try the directory containing this script, then the parent directory.
1333   ac_confdir=`$as_dirname -- "$0" ||
1334 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335          X"$0" : 'X\(//\)[^/]' \| \
1336          X"$0" : 'X\(//\)$' \| \
1337          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1338 echo X"$0" |
1339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\/\)[^/].*/{
1344             s//\1/
1345             q
1346           }
1347           /^X\(\/\/\)$/{
1348             s//\1/
1349             q
1350           }
1351           /^X\(\/\).*/{
1352             s//\1/
1353             q
1354           }
1355           s/.*/./; q'`
1356   srcdir=$ac_confdir
1357   if test ! -r "$srcdir/$ac_unique_file"; then
1358     srcdir=..
1359   fi
1360 else
1361   ac_srcdir_defaulted=no
1362 fi
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1366    { (exit 1); exit 1; }; }
1367 fi
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1371    { (exit 1); exit 1; }; }
1372         pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375   srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385   eval ac_env_${ac_var}_value=\$${ac_var}
1386   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394   # Omit some internal or obsolete options to make the list less imposing.
1395   # This message is too long to be a string in the A/UX 3.1 sh.
1396   cat <<_ACEOF
1397 \`configure' configures iec16022 0.2.3 to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE.  See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407   -h, --help              display this help and exit
1408       --help=short        display options specific to this package
1409       --help=recursive    display the short help of all the included packages
1410   -V, --version           display version information and exit
1411   -q, --quiet, --silent   do not print \`checking...' messages
1412       --cache-file=FILE   cache test results in FILE [disabled]
1413   -C, --config-cache      alias for \`--cache-file=config.cache'
1414   -n, --no-create         do not create output files
1415       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418   --prefix=PREFIX         install architecture-independent files in PREFIX
1419                           [$ac_default_prefix]
1420   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1421                           [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431   --bindir=DIR           user executables [EPREFIX/bin]
1432   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1433   --libexecdir=DIR       program executables [EPREFIX/libexec]
1434   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1435   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1436   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1437   --libdir=DIR           object code libraries [EPREFIX/lib]
1438   --includedir=DIR       C header files [PREFIX/include]
1439   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1440   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1441   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1442   --infodir=DIR          info documentation [DATAROOTDIR/info]
1443   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1444   --mandir=DIR           man documentation [DATAROOTDIR/man]
1445   --docdir=DIR           documentation root [DATAROOTDIR/doc/iec16022]
1446   --htmldir=DIR          html documentation [DOCDIR]
1447   --dvidir=DIR           dvi documentation [DOCDIR]
1448   --pdfdir=DIR           pdf documentation [DOCDIR]
1449   --psdir=DIR            ps documentation [DOCDIR]
1450 _ACEOF
1451
1452   cat <<\_ACEOF
1453
1454 Program names:
1455   --program-prefix=PREFIX            prepend PREFIX to installed program names
1456   --program-suffix=SUFFIX            append SUFFIX to installed program names
1457   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1458
1459 System types:
1460   --build=BUILD     configure for building on BUILD [guessed]
1461   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1462 _ACEOF
1463 fi
1464
1465 if test -n "$ac_init_help"; then
1466   case $ac_init_help in
1467      short | recursive ) echo "Configuration of iec16022 0.2.3:";;
1468    esac
1469   cat <<\_ACEOF
1470
1471 Optional Features:
1472   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1473   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1474   --enable-maintainer-mode  enable make rules and dependencies not useful
1475                           (and sometimes confusing) to the casual installer
1476   --disable-dependency-tracking  speeds up one-time build
1477   --enable-dependency-tracking   do not reject slow dependency extractors
1478   --enable-shared[=PKGS]  build shared libraries [default=yes]
1479   --enable-static[=PKGS]  build static libraries [default=yes]
1480   --enable-fast-install[=PKGS]
1481                           optimize for fast installation [default=yes]
1482   --disable-libtool-lock  avoid locking (might break parallel builds)
1483
1484 Optional Packages:
1485   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1486   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1487   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1488   --with-pic              try to use only PIC/non-PIC objects [default=use
1489                           both]
1490   --with-tags[=TAGS]      include additional configurations [automatic]
1491
1492 Some influential environment variables:
1493   CC          C compiler command
1494   CFLAGS      C compiler flags
1495   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1496               nonstandard directory <lib dir>
1497   LIBS        libraries to pass to the linker, e.g. -l<library>
1498   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1499               you have headers in a nonstandard directory <include dir>
1500   CPP         C preprocessor
1501   CXX         C++ compiler command
1502   CXXFLAGS    C++ compiler flags
1503   CXXCPP      C++ preprocessor
1504   F77         Fortran 77 compiler command
1505   FFLAGS      Fortran 77 compiler flags
1506
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1509
1510 Report bugs to <stefan@datenfreihafen.org>.
1511 _ACEOF
1512 ac_status=$?
1513 fi
1514
1515 if test "$ac_init_help" = "recursive"; then
1516   # If there are subdirs, report their specific --help.
1517   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518     test -d "$ac_dir" || continue
1519     ac_builddir=.
1520
1521 case "$ac_dir" in
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *)
1524   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1525   # A ".." for each directory in $ac_dir_suffix.
1526   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1527   case $ac_top_builddir_sub in
1528   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530   esac ;;
1531 esac
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1536
1537 case $srcdir in
1538   .)  # We are building in place.
1539     ac_srcdir=.
1540     ac_top_srcdir=$ac_top_builddir_sub
1541     ac_abs_top_srcdir=$ac_pwd ;;
1542   [\\/]* | ?:[\\/]* )  # Absolute name.
1543     ac_srcdir=$srcdir$ac_dir_suffix;
1544     ac_top_srcdir=$srcdir
1545     ac_abs_top_srcdir=$srcdir ;;
1546   *) # Relative name.
1547     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548     ac_top_srcdir=$ac_top_build_prefix$srcdir
1549     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 esac
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552
1553     cd "$ac_dir" || { ac_status=$?; continue; }
1554     # Check for guested configure.
1555     if test -f "$ac_srcdir/configure.gnu"; then
1556       echo &&
1557       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558     elif test -f "$ac_srcdir/configure"; then
1559       echo &&
1560       $SHELL "$ac_srcdir/configure" --help=recursive
1561     else
1562       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563     fi || ac_status=$?
1564     cd "$ac_pwd" || { ac_status=$?; break; }
1565   done
1566 fi
1567
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1570   cat <<\_ACEOF
1571 iec16022 configure 0.2.3
1572 generated by GNU Autoconf 2.61
1573
1574 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1575 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1578 _ACEOF
1579   exit
1580 fi
1581 cat >config.log <<_ACEOF
1582 This file contains any messages produced by compilers while
1583 running configure, to aid debugging if configure makes a mistake.
1584
1585 It was created by iec16022 $as_me 0.2.3, which was
1586 generated by GNU Autoconf 2.61.  Invocation command line was
1587
1588   $ $0 $@
1589
1590 _ACEOF
1591 exec 5>>config.log
1592 {
1593 cat <<_ASUNAME
1594 ## --------- ##
1595 ## Platform. ##
1596 ## --------- ##
1597
1598 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1599 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1600 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1601 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1602 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1603
1604 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1605 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1606
1607 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1608 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1609 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1610 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1611 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1612 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1613 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1614
1615 _ASUNAME
1616
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 for as_dir in $PATH
1619 do
1620   IFS=$as_save_IFS
1621   test -z "$as_dir" && as_dir=.
1622   echo "PATH: $as_dir"
1623 done
1624 IFS=$as_save_IFS
1625
1626 } >&5
1627
1628 cat >&5 <<_ACEOF
1629
1630
1631 ## ----------- ##
1632 ## Core tests. ##
1633 ## ----------- ##
1634
1635 _ACEOF
1636
1637
1638 # Keep a trace of the command line.
1639 # Strip out --no-create and --no-recursion so they do not pile up.
1640 # Strip out --silent because we don't want to record it for future runs.
1641 # Also quote any args containing shell meta-characters.
1642 # Make two passes to allow for proper duplicate-argument suppression.
1643 ac_configure_args=
1644 ac_configure_args0=
1645 ac_configure_args1=
1646 ac_must_keep_next=false
1647 for ac_pass in 1 2
1648 do
1649   for ac_arg
1650   do
1651     case $ac_arg in
1652     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1653     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1654     | -silent | --silent | --silen | --sile | --sil)
1655       continue ;;
1656     *\'*)
1657       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1658     esac
1659     case $ac_pass in
1660     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1661     2)
1662       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1663       if test $ac_must_keep_next = true; then
1664         ac_must_keep_next=false # Got value, back to normal.
1665       else
1666         case $ac_arg in
1667           *=* | --config-cache | -C | -disable-* | --disable-* \
1668           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1669           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1670           | -with-* | --with-* | -without-* | --without-* | --x)
1671             case "$ac_configure_args0 " in
1672               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1673             esac
1674             ;;
1675           -* ) ac_must_keep_next=true ;;
1676         esac
1677       fi
1678       ac_configure_args="$ac_configure_args '$ac_arg'"
1679       ;;
1680     esac
1681   done
1682 done
1683 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1684 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1685
1686 # When interrupted or exit'd, cleanup temporary files, and complete
1687 # config.log.  We remove comments because anyway the quotes in there
1688 # would cause problems or look ugly.
1689 # WARNING: Use '\'' to represent an apostrophe within the trap.
1690 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1691 trap 'exit_status=$?
1692   # Save into config.log some information that might help in debugging.
1693   {
1694     echo
1695
1696     cat <<\_ASBOX
1697 ## ---------------- ##
1698 ## Cache variables. ##
1699 ## ---------------- ##
1700 _ASBOX
1701     echo
1702     # The following way of writing the cache mishandles newlines in values,
1703 (
1704   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1705     eval ac_val=\$$ac_var
1706     case $ac_val in #(
1707     *${as_nl}*)
1708       case $ac_var in #(
1709       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1710 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1711       esac
1712       case $ac_var in #(
1713       _ | IFS | as_nl) ;; #(
1714       *) $as_unset $ac_var ;;
1715       esac ;;
1716     esac
1717   done
1718   (set) 2>&1 |
1719     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1720     *${as_nl}ac_space=\ *)
1721       sed -n \
1722         "s/'\''/'\''\\\\'\'''\''/g;
1723           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1724       ;; #(
1725     *)
1726       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1727       ;;
1728     esac |
1729     sort
1730 )
1731     echo
1732
1733     cat <<\_ASBOX
1734 ## ----------------- ##
1735 ## Output variables. ##
1736 ## ----------------- ##
1737 _ASBOX
1738     echo
1739     for ac_var in $ac_subst_vars
1740     do
1741       eval ac_val=\$$ac_var
1742       case $ac_val in
1743       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744       esac
1745       echo "$ac_var='\''$ac_val'\''"
1746     done | sort
1747     echo
1748
1749     if test -n "$ac_subst_files"; then
1750       cat <<\_ASBOX
1751 ## ------------------- ##
1752 ## File substitutions. ##
1753 ## ------------------- ##
1754 _ASBOX
1755       echo
1756       for ac_var in $ac_subst_files
1757       do
1758         eval ac_val=\$$ac_var
1759         case $ac_val in
1760         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761         esac
1762         echo "$ac_var='\''$ac_val'\''"
1763       done | sort
1764       echo
1765     fi
1766
1767     if test -s confdefs.h; then
1768       cat <<\_ASBOX
1769 ## ----------- ##
1770 ## confdefs.h. ##
1771 ## ----------- ##
1772 _ASBOX
1773       echo
1774       cat confdefs.h
1775       echo
1776     fi
1777     test "$ac_signal" != 0 &&
1778       echo "$as_me: caught signal $ac_signal"
1779     echo "$as_me: exit $exit_status"
1780   } >&5
1781   rm -f core *.core core.conftest.* &&
1782     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1783     exit $exit_status
1784 ' 0
1785 for ac_signal in 1 2 13 15; do
1786   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1787 done
1788 ac_signal=0
1789
1790 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1791 rm -f -r conftest* confdefs.h
1792
1793 # Predefined preprocessor variables.
1794
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_NAME "$PACKAGE_NAME"
1797 _ACEOF
1798
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1802 _ACEOF
1803
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_STRING "$PACKAGE_STRING"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1817 _ACEOF
1818
1819
1820 # Let the site file select an alternate cache file if it wants to.
1821 # Prefer explicitly selected file to automatically selected ones.
1822 if test -n "$CONFIG_SITE"; then
1823   set x "$CONFIG_SITE"
1824 elif test "x$prefix" != xNONE; then
1825   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1826 else
1827   set x "$ac_default_prefix/share/config.site" \
1828         "$ac_default_prefix/etc/config.site"
1829 fi
1830 shift
1831 for ac_site_file
1832 do
1833   if test -r "$ac_site_file"; then
1834     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1835 echo "$as_me: loading site script $ac_site_file" >&6;}
1836     sed 's/^/| /' "$ac_site_file" >&5
1837     . "$ac_site_file"
1838   fi
1839 done
1840
1841 if test -r "$cache_file"; then
1842   # Some versions of bash will fail to source /dev/null (special
1843   # files actually), so we avoid doing that.
1844   if test -f "$cache_file"; then
1845     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1846 echo "$as_me: loading cache $cache_file" >&6;}
1847     case $cache_file in
1848       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1849       *)                      . "./$cache_file";;
1850     esac
1851   fi
1852 else
1853   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1854 echo "$as_me: creating cache $cache_file" >&6;}
1855   >$cache_file
1856 fi
1857
1858 # Check that the precious variables saved in the cache have kept the same
1859 # value.
1860 ac_cache_corrupted=false
1861 for ac_var in $ac_precious_vars; do
1862   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1863   eval ac_new_set=\$ac_env_${ac_var}_set
1864   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1865   eval ac_new_val=\$ac_env_${ac_var}_value
1866   case $ac_old_set,$ac_new_set in
1867     set,)
1868       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1869 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1870       ac_cache_corrupted=: ;;
1871     ,set)
1872       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1873 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1874       ac_cache_corrupted=: ;;
1875     ,);;
1876     *)
1877       if test "x$ac_old_val" != "x$ac_new_val"; then
1878         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1879 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1880         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1881 echo "$as_me:   former value:  $ac_old_val" >&2;}
1882         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1883 echo "$as_me:   current value: $ac_new_val" >&2;}
1884         ac_cache_corrupted=:
1885       fi;;
1886   esac
1887   # Pass precious variables to config.status.
1888   if test "$ac_new_set" = set; then
1889     case $ac_new_val in
1890     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1891     *) ac_arg=$ac_var=$ac_new_val ;;
1892     esac
1893     case " $ac_configure_args " in
1894       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1895       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1896     esac
1897   fi
1898 done
1899 if $ac_cache_corrupted; then
1900   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1901 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1902   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1903 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1904    { (exit 1); exit 1; }; }
1905 fi
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931 ac_ext=c
1932 ac_cpp='$CPP $CPPFLAGS'
1933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1936
1937
1938 am__api_version="1.9"
1939 ac_aux_dir=
1940 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1941   if test -f "$ac_dir/install-sh"; then
1942     ac_aux_dir=$ac_dir
1943     ac_install_sh="$ac_aux_dir/install-sh -c"
1944     break
1945   elif test -f "$ac_dir/install.sh"; then
1946     ac_aux_dir=$ac_dir
1947     ac_install_sh="$ac_aux_dir/install.sh -c"
1948     break
1949   elif test -f "$ac_dir/shtool"; then
1950     ac_aux_dir=$ac_dir
1951     ac_install_sh="$ac_aux_dir/shtool install -c"
1952     break
1953   fi
1954 done
1955 if test -z "$ac_aux_dir"; then
1956   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1957 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1958    { (exit 1); exit 1; }; }
1959 fi
1960
1961 # These three variables are undocumented and unsupported,
1962 # and are intended to be withdrawn in a future Autoconf release.
1963 # They can cause serious problems if a builder's source tree is in a directory
1964 # whose full name contains unusual characters.
1965 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1966 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1967 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1968
1969
1970 # Find a good install program.  We prefer a C program (faster),
1971 # so one script is as good as another.  But avoid the broken or
1972 # incompatible versions:
1973 # SysV /etc/install, /usr/sbin/install
1974 # SunOS /usr/etc/install
1975 # IRIX /sbin/install
1976 # AIX /bin/install
1977 # AmigaOS /C/install, which installs bootblocks on floppy discs
1978 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1979 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1980 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1981 # OS/2's system install, which has a completely different semantic
1982 # ./install, which can be erroneously created by make from ./install.sh.
1983 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1984 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1985 if test -z "$INSTALL"; then
1986 if test "${ac_cv_path_install+set}" = set; then
1987   echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1991 do
1992   IFS=$as_save_IFS
1993   test -z "$as_dir" && as_dir=.
1994   # Account for people who put trailing slashes in PATH elements.
1995 case $as_dir/ in
1996   ./ | .// | /cC/* | \
1997   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1998   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1999   /usr/ucb/* ) ;;
2000   *)
2001     # OSF1 and SCO ODT 3.0 have their own names for install.
2002     # Don't use installbsd from OSF since it installs stuff as root
2003     # by default.
2004     for ac_prog in ginstall scoinst install; do
2005       for ac_exec_ext in '' $ac_executable_extensions; do
2006         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2007           if test $ac_prog = install &&
2008             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2009             # AIX install.  It has an incompatible calling convention.
2010             :
2011           elif test $ac_prog = install &&
2012             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2013             # program-specific install script used by HP pwplus--don't use.
2014             :
2015           else
2016             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2017             break 3
2018           fi
2019         fi
2020       done
2021     done
2022     ;;
2023 esac
2024 done
2025 IFS=$as_save_IFS
2026
2027
2028 fi
2029   if test "${ac_cv_path_install+set}" = set; then
2030     INSTALL=$ac_cv_path_install
2031   else
2032     # As a last resort, use the slow shell script.  Don't cache a
2033     # value for INSTALL within a source directory, because that will
2034     # break other packages using the cache if that directory is
2035     # removed, or if the value is a relative name.
2036     INSTALL=$ac_install_sh
2037   fi
2038 fi
2039 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2040 echo "${ECHO_T}$INSTALL" >&6; }
2041
2042 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2043 # It thinks the first close brace ends the variable substitution.
2044 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2045
2046 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2047
2048 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2049
2050 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2051 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2052 # Just in case
2053 sleep 1
2054 echo timestamp > conftest.file
2055 # Do `set' in a subshell so we don't clobber the current shell's
2056 # arguments.  Must try -L first in case configure is actually a
2057 # symlink; some systems play weird games with the mod time of symlinks
2058 # (eg FreeBSD returns the mod time of the symlink's containing
2059 # directory).
2060 if (
2061    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2062    if test "$*" = "X"; then
2063       # -L didn't work.
2064       set X `ls -t $srcdir/configure conftest.file`
2065    fi
2066    rm -f conftest.file
2067    if test "$*" != "X $srcdir/configure conftest.file" \
2068       && test "$*" != "X conftest.file $srcdir/configure"; then
2069
2070       # If neither matched, then we have a broken ls.  This can happen
2071       # if, for instance, CONFIG_SHELL is bash and it inherits a
2072       # broken ls alias from the environment.  This has actually
2073       # happened.  Such a system could not be considered "sane".
2074       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2075 alias in your environment" >&5
2076 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2077 alias in your environment" >&2;}
2078    { (exit 1); exit 1; }; }
2079    fi
2080
2081    test "$2" = conftest.file
2082    )
2083 then
2084    # Ok.
2085    :
2086 else
2087    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2088 Check your system clock" >&5
2089 echo "$as_me: error: newly created file is older than distributed files!
2090 Check your system clock" >&2;}
2091    { (exit 1); exit 1; }; }
2092 fi
2093 { echo "$as_me:$LINENO: result: yes" >&5
2094 echo "${ECHO_T}yes" >&6; }
2095 test "$program_prefix" != NONE &&
2096   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2097 # Use a double $ so make ignores it.
2098 test "$program_suffix" != NONE &&
2099   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2100 # Double any \ or $.  echo might interpret backslashes.
2101 # By default was `s,x,x', remove it if useless.
2102 cat <<\_ACEOF >conftest.sed
2103 s/[\\$]/&&/g;s/;s,x,x,$//
2104 _ACEOF
2105 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2106 rm -f conftest.sed
2107
2108 # expand $ac_aux_dir to an absolute path
2109 am_aux_dir=`cd $ac_aux_dir && pwd`
2110
2111 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2112 # Use eval to expand $SHELL
2113 if eval "$MISSING --run true"; then
2114   am_missing_run="$MISSING --run "
2115 else
2116   am_missing_run=
2117   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2118 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2119 fi
2120
2121 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2122   # We used to keeping the `.' as first argument, in order to
2123   # allow $(mkdir_p) to be used without argument.  As in
2124   #   $(mkdir_p) $(somedir)
2125   # where $(somedir) is conditionally defined.  However this is wrong
2126   # for two reasons:
2127   #  1. if the package is installed by a user who cannot write `.'
2128   #     make install will fail,
2129   #  2. the above comment should most certainly read
2130   #     $(mkdir_p) $(DESTDIR)$(somedir)
2131   #     so it does not work when $(somedir) is undefined and
2132   #     $(DESTDIR) is not.
2133   #  To support the latter case, we have to write
2134   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2135   #  so the `.' trick is pointless.
2136   mkdir_p='mkdir -p --'
2137 else
2138   # On NextStep and OpenStep, the `mkdir' command does not
2139   # recognize any option.  It will interpret all options as
2140   # directories to create, and then abort because `.' already
2141   # exists.
2142   for d in ./-p ./--version;
2143   do
2144     test -d $d && rmdir $d
2145   done
2146   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2147   if test -f "$ac_aux_dir/mkinstalldirs"; then
2148     mkdir_p='$(mkinstalldirs)'
2149   else
2150     mkdir_p='$(install_sh) -d'
2151   fi
2152 fi
2153
2154 for ac_prog in gawk mawk nawk awk
2155 do
2156   # Extract the first word of "$ac_prog", so it can be a program name with args.
2157 set dummy $ac_prog; ac_word=$2
2158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2160 if test "${ac_cv_prog_AWK+set}" = set; then
2161   echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163   if test -n "$AWK"; then
2164   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2165 else
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 for as_dir in $PATH
2168 do
2169   IFS=$as_save_IFS
2170   test -z "$as_dir" && as_dir=.
2171   for ac_exec_ext in '' $ac_executable_extensions; do
2172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2173     ac_cv_prog_AWK="$ac_prog"
2174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175     break 2
2176   fi
2177 done
2178 done
2179 IFS=$as_save_IFS
2180
2181 fi
2182 fi
2183 AWK=$ac_cv_prog_AWK
2184 if test -n "$AWK"; then
2185   { echo "$as_me:$LINENO: result: $AWK" >&5
2186 echo "${ECHO_T}$AWK" >&6; }
2187 else
2188   { echo "$as_me:$LINENO: result: no" >&5
2189 echo "${ECHO_T}no" >&6; }
2190 fi
2191
2192
2193   test -n "$AWK" && break
2194 done
2195
2196 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2197 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2198 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2199 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2200   echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202   cat >conftest.make <<\_ACEOF
2203 SHELL = /bin/sh
2204 all:
2205         @echo '@@@%%%=$(MAKE)=@@@%%%'
2206 _ACEOF
2207 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2208 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2209   *@@@%%%=?*=@@@%%%*)
2210     eval ac_cv_prog_make_${ac_make}_set=yes;;
2211   *)
2212     eval ac_cv_prog_make_${ac_make}_set=no;;
2213 esac
2214 rm -f conftest.make
2215 fi
2216 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2217   { echo "$as_me:$LINENO: result: yes" >&5
2218 echo "${ECHO_T}yes" >&6; }
2219   SET_MAKE=
2220 else
2221   { echo "$as_me:$LINENO: result: no" >&5
2222 echo "${ECHO_T}no" >&6; }
2223   SET_MAKE="MAKE=${MAKE-make}"
2224 fi
2225
2226 rm -rf .tst 2>/dev/null
2227 mkdir .tst 2>/dev/null
2228 if test -d .tst; then
2229   am__leading_dot=.
2230 else
2231   am__leading_dot=_
2232 fi
2233 rmdir .tst 2>/dev/null
2234
2235 # test to see if srcdir already configured
2236 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2237    test -f $srcdir/config.status; then
2238   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2239 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2240    { (exit 1); exit 1; }; }
2241 fi
2242
2243 # test whether we have cygpath
2244 if test -z "$CYGPATH_W"; then
2245   if (cygpath --version) >/dev/null 2>/dev/null; then
2246     CYGPATH_W='cygpath -w'
2247   else
2248     CYGPATH_W=echo
2249   fi
2250 fi
2251
2252
2253 # Define the identity of the package.
2254  PACKAGE='iec16022'
2255  VERSION='0.2.3'
2256
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE "$PACKAGE"
2260 _ACEOF
2261
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define VERSION "$VERSION"
2265 _ACEOF
2266
2267 # Some tools Automake needs.
2268
2269 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2270
2271
2272 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2273
2274
2275 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2276
2277
2278 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2279
2280
2281 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2282
2283 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2284
2285 # Installed binaries are usually stripped using `strip' when the user
2286 # run `make install-strip'.  However `strip' might not be the right
2287 # tool to use in cross-compilation environments, therefore Automake
2288 # will honor the `STRIP' environment variable to overrule this program.
2289 if test "$cross_compiling" != no; then
2290   if test -n "$ac_tool_prefix"; then
2291   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2292 set dummy ${ac_tool_prefix}strip; ac_word=$2
2293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2295 if test "${ac_cv_prog_STRIP+set}" = set; then
2296   echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298   if test -n "$STRIP"; then
2299   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2300 else
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2303 do
2304   IFS=$as_save_IFS
2305   test -z "$as_dir" && as_dir=.
2306   for ac_exec_ext in '' $ac_executable_extensions; do
2307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2308     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310     break 2
2311   fi
2312 done
2313 done
2314 IFS=$as_save_IFS
2315
2316 fi
2317 fi
2318 STRIP=$ac_cv_prog_STRIP
2319 if test -n "$STRIP"; then
2320   { echo "$as_me:$LINENO: result: $STRIP" >&5
2321 echo "${ECHO_T}$STRIP" >&6; }
2322 else
2323   { echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6; }
2325 fi
2326
2327
2328 fi
2329 if test -z "$ac_cv_prog_STRIP"; then
2330   ac_ct_STRIP=$STRIP
2331   # Extract the first word of "strip", so it can be a program name with args.
2332 set dummy strip; ac_word=$2
2333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2335 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2336   echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338   if test -n "$ac_ct_STRIP"; then
2339   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2340 else
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344   IFS=$as_save_IFS
2345   test -z "$as_dir" && as_dir=.
2346   for ac_exec_ext in '' $ac_executable_extensions; do
2347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348     ac_cv_prog_ac_ct_STRIP="strip"
2349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350     break 2
2351   fi
2352 done
2353 done
2354 IFS=$as_save_IFS
2355
2356 fi
2357 fi
2358 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2359 if test -n "$ac_ct_STRIP"; then
2360   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2361 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2362 else
2363   { echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6; }
2365 fi
2366
2367   if test "x$ac_ct_STRIP" = x; then
2368     STRIP=":"
2369   else
2370     case $cross_compiling:$ac_tool_warned in
2371 yes:)
2372 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2373 whose name does not start with the host triplet.  If you think this
2374 configuration is useful to you, please write to autoconf@gnu.org." >&5
2375 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2376 whose name does not start with the host triplet.  If you think this
2377 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2378 ac_tool_warned=yes ;;
2379 esac
2380     STRIP=$ac_ct_STRIP
2381   fi
2382 else
2383   STRIP="$ac_cv_prog_STRIP"
2384 fi
2385
2386 fi
2387 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2388
2389 # We need awk for the "check" target.  The system "awk" is bad on
2390 # some platforms.
2391 # Always define AMTAR for backward compatibility.
2392
2393 AMTAR=${AMTAR-"${am_missing_run}tar"}
2394
2395 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2396
2397
2398
2399
2400
2401 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2402 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2403     # Check whether --enable-maintainer-mode was given.
2404 if test "${enable_maintainer_mode+set}" = set; then
2405   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2406 else
2407   USE_MAINTAINER_MODE=no
2408 fi
2409
2410   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2411 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2412
2413
2414 if test $USE_MAINTAINER_MODE = yes; then
2415   MAINTAINER_MODE_TRUE=
2416   MAINTAINER_MODE_FALSE='#'
2417 else
2418   MAINTAINER_MODE_TRUE='#'
2419   MAINTAINER_MODE_FALSE=
2420 fi
2421
2422   MAINT=$MAINTAINER_MODE_TRUE
2423
2424
2425
2426 ac_config_headers="$ac_config_headers config.h"
2427
2428
2429 ac_ext=c
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434 if test -n "$ac_tool_prefix"; then
2435   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   if test -n "$CC"; then
2443   ac_cv_prog_CC="$CC" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2447 do
2448   IFS=$as_save_IFS
2449   test -z "$as_dir" && as_dir=.
2450   for ac_exec_ext in '' $ac_executable_extensions; do
2451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454     break 2
2455   fi
2456 done
2457 done
2458 IFS=$as_save_IFS
2459
2460 fi
2461 fi
2462 CC=$ac_cv_prog_CC
2463 if test -n "$CC"; then
2464   { echo "$as_me:$LINENO: result: $CC" >&5
2465 echo "${ECHO_T}$CC" >&6; }
2466 else
2467   { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2469 fi
2470
2471
2472 fi
2473 if test -z "$ac_cv_prog_CC"; then
2474   ac_ct_CC=$CC
2475   # Extract the first word of "gcc", so it can be a program name with args.
2476 set dummy gcc; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2480   echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482   if test -n "$ac_ct_CC"; then
2483   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490   for ac_exec_ext in '' $ac_executable_extensions; do
2491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492     ac_cv_prog_ac_ct_CC="gcc"
2493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494     break 2
2495   fi
2496 done
2497 done
2498 IFS=$as_save_IFS
2499
2500 fi
2501 fi
2502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503 if test -n "$ac_ct_CC"; then
2504   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505 echo "${ECHO_T}$ac_ct_CC" >&6; }
2506 else
2507   { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2509 fi
2510
2511   if test "x$ac_ct_CC" = x; then
2512     CC=""
2513   else
2514     case $cross_compiling:$ac_tool_warned in
2515 yes:)
2516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517 whose name does not start with the host triplet.  If you think this
2518 configuration is useful to you, please write to autoconf@gnu.org." >&5
2519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet.  If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522 ac_tool_warned=yes ;;
2523 esac
2524     CC=$ac_ct_CC
2525   fi
2526 else
2527   CC="$ac_cv_prog_CC"
2528 fi
2529
2530 if test -z "$CC"; then
2531           if test -n "$ac_tool_prefix"; then
2532     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2533 set dummy ${ac_tool_prefix}cc; ac_word=$2
2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537   echo $ECHO_N "(cached) $ECHO_C" >&6
2538 else
2539   if test -n "$CC"; then
2540   ac_cv_prog_CC="$CC" # Let the user override the test.
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2544 do
2545   IFS=$as_save_IFS
2546   test -z "$as_dir" && as_dir=.
2547   for ac_exec_ext in '' $ac_executable_extensions; do
2548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549     ac_cv_prog_CC="${ac_tool_prefix}cc"
2550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551     break 2
2552   fi
2553 done
2554 done
2555 IFS=$as_save_IFS
2556
2557 fi
2558 fi
2559 CC=$ac_cv_prog_CC
2560 if test -n "$CC"; then
2561   { echo "$as_me:$LINENO: result: $CC" >&5
2562 echo "${ECHO_T}$CC" >&6; }
2563 else
2564   { echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6; }
2566 fi
2567
2568
2569   fi
2570 fi
2571 if test -z "$CC"; then
2572   # Extract the first word of "cc", so it can be a program name with args.
2573 set dummy cc; ac_word=$2
2574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576 if test "${ac_cv_prog_CC+set}" = set; then
2577   echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579   if test -n "$CC"; then
2580   ac_cv_prog_CC="$CC" # Let the user override the test.
2581 else
2582   ac_prog_rejected=no
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586   IFS=$as_save_IFS
2587   test -z "$as_dir" && as_dir=.
2588   for ac_exec_ext in '' $ac_executable_extensions; do
2589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2591        ac_prog_rejected=yes
2592        continue
2593      fi
2594     ac_cv_prog_CC="cc"
2595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596     break 2
2597   fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 if test $ac_prog_rejected = yes; then
2603   # We found a bogon in the path, so make sure we never use it.
2604   set dummy $ac_cv_prog_CC
2605   shift
2606   if test $# != 0; then
2607     # We chose a different compiler from the bogus one.
2608     # However, it has the same basename, so the bogon will be chosen
2609     # first if we set CC to just the basename; use the full file name.
2610     shift
2611     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2612   fi
2613 fi
2614 fi
2615 fi
2616 CC=$ac_cv_prog_CC
2617 if test -n "$CC"; then
2618   { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2620 else
2621   { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2623 fi
2624
2625
2626 fi
2627 if test -z "$CC"; then
2628   if test -n "$ac_tool_prefix"; then
2629   for ac_prog in cl.exe
2630   do
2631     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636   echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638   if test -n "$CC"; then
2639   ac_cv_prog_CC="$CC" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2643 do
2644   IFS=$as_save_IFS
2645   test -z "$as_dir" && as_dir=.
2646   for ac_exec_ext in '' $ac_executable_extensions; do
2647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650     break 2
2651   fi
2652 done
2653 done
2654 IFS=$as_save_IFS
2655
2656 fi
2657 fi
2658 CC=$ac_cv_prog_CC
2659 if test -n "$CC"; then
2660   { echo "$as_me:$LINENO: result: $CC" >&5
2661 echo "${ECHO_T}$CC" >&6; }
2662 else
2663   { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2665 fi
2666
2667
2668     test -n "$CC" && break
2669   done
2670 fi
2671 if test -z "$CC"; then
2672   ac_ct_CC=$CC
2673   for ac_prog in cl.exe
2674 do
2675   # Extract the first word of "$ac_prog", so it can be a program name with args.
2676 set dummy $ac_prog; ac_word=$2
2677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2680   echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682   if test -n "$ac_ct_CC"; then
2683   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2687 do
2688   IFS=$as_save_IFS
2689   test -z "$as_dir" && as_dir=.
2690   for ac_exec_ext in '' $ac_executable_extensions; do
2691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692     ac_cv_prog_ac_ct_CC="$ac_prog"
2693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694     break 2
2695   fi
2696 done
2697 done
2698 IFS=$as_save_IFS
2699
2700 fi
2701 fi
2702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2705 echo "${ECHO_T}$ac_ct_CC" >&6; }
2706 else
2707   { echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6; }
2709 fi
2710
2711
2712   test -n "$ac_ct_CC" && break
2713 done
2714
2715   if test "x$ac_ct_CC" = x; then
2716     CC=""
2717   else
2718     case $cross_compiling:$ac_tool_warned in
2719 yes:)
2720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2721 whose name does not start with the host triplet.  If you think this
2722 configuration is useful to you, please write to autoconf@gnu.org." >&5
2723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2724 whose name does not start with the host triplet.  If you think this
2725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2726 ac_tool_warned=yes ;;
2727 esac
2728     CC=$ac_ct_CC
2729   fi
2730 fi
2731
2732 fi
2733
2734
2735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2736 See \`config.log' for more details." >&5
2737 echo "$as_me: error: no acceptable C compiler found in \$PATH
2738 See \`config.log' for more details." >&2;}
2739    { (exit 1); exit 1; }; }
2740
2741 # Provide some information about the compiler.
2742 echo "$as_me:$LINENO: checking for C compiler version" >&5
2743 ac_compiler=`set X $ac_compile; echo $2`
2744 { (ac_try="$ac_compiler --version >&5"
2745 case "(($ac_try" in
2746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747   *) ac_try_echo=$ac_try;;
2748 esac
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750   (eval "$ac_compiler --version >&5") 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }
2754 { (ac_try="$ac_compiler -v >&5"
2755 case "(($ac_try" in
2756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757   *) ac_try_echo=$ac_try;;
2758 esac
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760   (eval "$ac_compiler -v >&5") 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); }
2764 { (ac_try="$ac_compiler -V >&5"
2765 case "(($ac_try" in
2766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767   *) ac_try_echo=$ac_try;;
2768 esac
2769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2770   (eval "$ac_compiler -V >&5") 2>&5
2771   ac_status=$?
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); }
2774
2775 cat >conftest.$ac_ext <<_ACEOF
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2781
2782 int
2783 main ()
2784 {
2785
2786   ;
2787   return 0;
2788 }
2789 _ACEOF
2790 ac_clean_files_save=$ac_clean_files
2791 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2792 # Try to create an executable without -o first, disregard a.out.
2793 # It will help us diagnose broken compilers, and finding out an intuition
2794 # of exeext.
2795 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2796 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2797 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2798 #
2799 # List of possible output files, starting from the most likely.
2800 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2801 # only as a last resort.  b.out is created by i960 compilers.
2802 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2803 #
2804 # The IRIX 6 linker writes into existing files which may not be
2805 # executable, retaining their permissions.  Remove them first so a
2806 # subsequent execution test works.
2807 ac_rmfiles=
2808 for ac_file in $ac_files
2809 do
2810   case $ac_file in
2811     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2812     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2813   esac
2814 done
2815 rm -f $ac_rmfiles
2816
2817 if { (ac_try="$ac_link_default"
2818 case "(($ac_try" in
2819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820   *) ac_try_echo=$ac_try;;
2821 esac
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823   (eval "$ac_link_default") 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); }; then
2827   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2828 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2829 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2830 # so that the user can short-circuit this test for compilers unknown to
2831 # Autoconf.
2832 for ac_file in $ac_files ''
2833 do
2834   test -f "$ac_file" || continue
2835   case $ac_file in
2836     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2837         ;;
2838     [ab].out )
2839         # We found the default executable, but exeext='' is most
2840         # certainly right.
2841         break;;
2842     *.* )
2843         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2844         then :; else
2845            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2846         fi
2847         # We set ac_cv_exeext here because the later test for it is not
2848         # safe: cross compilers may not add the suffix if given an `-o'
2849         # argument, so we may need to know it at that point already.
2850         # Even if this section looks crufty: it has the advantage of
2851         # actually working.
2852         break;;
2853     * )
2854         break;;
2855   esac
2856 done
2857 test "$ac_cv_exeext" = no && ac_cv_exeext=
2858
2859 else
2860   ac_file=''
2861 fi
2862
2863 { echo "$as_me:$LINENO: result: $ac_file" >&5
2864 echo "${ECHO_T}$ac_file" >&6; }
2865 if test -z "$ac_file"; then
2866   echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2868
2869 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: C compiler cannot create executables
2872 See \`config.log' for more details." >&2;}
2873    { (exit 77); exit 77; }; }
2874 fi
2875
2876 ac_exeext=$ac_cv_exeext
2877
2878 # Check that the compiler produces executables we can run.  If not, either
2879 # the compiler is broken, or we cross compile.
2880 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2881 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2882 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2883 # If not cross compiling, check that we can run a simple program.
2884 if test "$cross_compiling" != yes; then
2885   if { ac_try='./$ac_file'
2886   { (case "(($ac_try" in
2887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888   *) ac_try_echo=$ac_try;;
2889 esac
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891   (eval "$ac_try") 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; }; then
2895     cross_compiling=no
2896   else
2897     if test "$cross_compiling" = maybe; then
2898         cross_compiling=yes
2899     else
2900         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2901 If you meant to cross compile, use \`--host'.
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot run C compiled programs.
2904 If you meant to cross compile, use \`--host'.
2905 See \`config.log' for more details." >&2;}
2906    { (exit 1); exit 1; }; }
2907     fi
2908   fi
2909 fi
2910 { echo "$as_me:$LINENO: result: yes" >&5
2911 echo "${ECHO_T}yes" >&6; }
2912
2913 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2914 ac_clean_files=$ac_clean_files_save
2915 # Check that the compiler produces executables we can run.  If not, either
2916 # the compiler is broken, or we cross compile.
2917 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2918 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2919 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2920 echo "${ECHO_T}$cross_compiling" >&6; }
2921
2922 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2923 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2924 if { (ac_try="$ac_link"
2925 case "(($ac_try" in
2926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927   *) ac_try_echo=$ac_try;;
2928 esac
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930   (eval "$ac_link") 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; then
2934   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2935 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2936 # work properly (i.e., refer to `conftest.exe'), while it won't with
2937 # `rm'.
2938 for ac_file in conftest.exe conftest conftest.*; do
2939   test -f "$ac_file" || continue
2940   case $ac_file in
2941     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2942     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2943           break;;
2944     * ) break;;
2945   esac
2946 done
2947 else
2948   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2949 See \`config.log' for more details." >&5
2950 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2951 See \`config.log' for more details." >&2;}
2952    { (exit 1); exit 1; }; }
2953 fi
2954
2955 rm -f conftest$ac_cv_exeext
2956 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2957 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2958
2959 rm -f conftest.$ac_ext
2960 EXEEXT=$ac_cv_exeext
2961 ac_exeext=$EXEEXT
2962 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2963 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2964 if test "${ac_cv_objext+set}" = set; then
2965   echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967   cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h.  */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h.  */
2973
2974 int
2975 main ()
2976 {
2977
2978   ;
2979   return 0;
2980 }
2981 _ACEOF
2982 rm -f conftest.o conftest.obj
2983 if { (ac_try="$ac_compile"
2984 case "(($ac_try" in
2985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986   *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989   (eval "$ac_compile") 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; then
2993   for ac_file in conftest.o conftest.obj conftest.*; do
2994   test -f "$ac_file" || continue;
2995   case $ac_file in
2996     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2997     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2998        break;;
2999   esac
3000 done
3001 else
3002   echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3004
3005 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3006 See \`config.log' for more details." >&5
3007 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3008 See \`config.log' for more details." >&2;}
3009    { (exit 1); exit 1; }; }
3010 fi
3011
3012 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3013 fi
3014 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3015 echo "${ECHO_T}$ac_cv_objext" >&6; }
3016 OBJEXT=$ac_cv_objext
3017 ac_objext=$OBJEXT
3018 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3019 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3020 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023   cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h.  */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h.  */
3029
3030 int
3031 main ()
3032 {
3033 #ifndef __GNUC__
3034        choke me
3035 #endif
3036
3037   ;
3038   return 0;
3039 }
3040 _ACEOF
3041 rm -f conftest.$ac_objext
3042 if { (ac_try="$ac_compile"
3043 case "(($ac_try" in
3044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045   *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048   (eval "$ac_compile") 2>conftest.er1
3049   ac_status=$?
3050   grep -v '^ *+' conftest.er1 >conftest.err
3051   rm -f conftest.er1
3052   cat conftest.err >&5
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); } && {
3055          test -z "$ac_c_werror_flag" ||
3056          test ! -s conftest.err
3057        } && test -s conftest.$ac_objext; then
3058   ac_compiler_gnu=yes
3059 else
3060   echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3062
3063         ac_compiler_gnu=no
3064 fi
3065
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3068
3069 fi
3070 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3071 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3072 GCC=`test $ac_compiler_gnu = yes && echo yes`
3073 ac_test_CFLAGS=${CFLAGS+set}
3074 ac_save_CFLAGS=$CFLAGS
3075 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3076 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_cc_g+set}" = set; then
3078   echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080   ac_save_c_werror_flag=$ac_c_werror_flag
3081    ac_c_werror_flag=yes
3082    ac_cv_prog_cc_g=no
3083    CFLAGS="-g"
3084    cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090
3091 int
3092 main ()
3093 {
3094
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_compile") 2>conftest.er1
3107   ac_status=$?
3108   grep -v '^ *+' conftest.er1 >conftest.err
3109   rm -f conftest.er1
3110   cat conftest.err >&5
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } && {
3113          test -z "$ac_c_werror_flag" ||
3114          test ! -s conftest.err
3115        } && test -s conftest.$ac_objext; then
3116   ac_cv_prog_cc_g=yes
3117 else
3118   echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3120
3121         CFLAGS=""
3122       cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h.  */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h.  */
3128
3129 int
3130 main ()
3131 {
3132
3133   ;
3134   return 0;
3135 }
3136 _ACEOF
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3139 case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144   (eval "$ac_compile") 2>conftest.er1
3145   ac_status=$?
3146   grep -v '^ *+' conftest.er1 >conftest.err
3147   rm -f conftest.er1
3148   cat conftest.err >&5
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); } && {
3151          test -z "$ac_c_werror_flag" ||
3152          test ! -s conftest.err
3153        } && test -s conftest.$ac_objext; then
3154   :
3155 else
3156   echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3158
3159         ac_c_werror_flag=$ac_save_c_werror_flag
3160          CFLAGS="-g"
3161          cat >conftest.$ac_ext <<_ACEOF
3162 /* confdefs.h.  */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h.  */
3167
3168 int
3169 main ()
3170 {
3171
3172   ;
3173   return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_compile") 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } && {
3190          test -z "$ac_c_werror_flag" ||
3191          test ! -s conftest.err
3192        } && test -s conftest.$ac_objext; then
3193   ac_cv_prog_cc_g=yes
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 fi
3203
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 fi
3206
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208    ac_c_werror_flag=$ac_save_c_werror_flag
3209 fi
3210 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3211 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3212 if test "$ac_test_CFLAGS" = set; then
3213   CFLAGS=$ac_save_CFLAGS
3214 elif test $ac_cv_prog_cc_g = yes; then
3215   if test "$GCC" = yes; then
3216     CFLAGS="-g -O2"
3217   else
3218     CFLAGS="-g"
3219   fi
3220 else
3221   if test "$GCC" = yes; then
3222     CFLAGS="-O2"
3223   else
3224     CFLAGS=
3225   fi
3226 fi
3227 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3228 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3229 if test "${ac_cv_prog_cc_c89+set}" = set; then
3230   echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232   ac_cv_prog_cc_c89=no
3233 ac_save_CC=$CC
3234 cat >conftest.$ac_ext <<_ACEOF
3235 /* confdefs.h.  */
3236 _ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h.  */
3240 #include <stdarg.h>
3241 #include <stdio.h>
3242 #include <sys/types.h>
3243 #include <sys/stat.h>
3244 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3245 struct buf { int x; };
3246 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3247 static char *e (p, i)
3248      char **p;
3249      int i;
3250 {
3251   return p[i];
3252 }
3253 static char *f (char * (*g) (char **, int), char **p, ...)
3254 {
3255   char *s;
3256   va_list v;
3257   va_start (v,p);
3258   s = g (p, va_arg (v,int));
3259   va_end (v);
3260   return s;
3261 }
3262
3263 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3264    function prototypes and stuff, but not '\xHH' hex character constants.
3265    These don't provoke an error unfortunately, instead are silently treated
3266    as 'x'.  The following induces an error, until -std is added to get
3267    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3268    array size at least.  It's necessary to write '\x00'==0 to get something
3269    that's true only with -std.  */
3270 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3271
3272 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3273    inside strings and character constants.  */
3274 #define FOO(x) 'x'
3275 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3276
3277 int test (int i, double x);
3278 struct s1 {int (*f) (int a);};
3279 struct s2 {int (*f) (double a);};
3280 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3281 int argc;
3282 char **argv;
3283 int
3284 main ()
3285 {
3286 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3287   ;
3288   return 0;
3289 }
3290 _ACEOF
3291 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3292         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3293 do
3294   CC="$ac_save_CC $ac_arg"
3295   rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3297 case "(($ac_try" in
3298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299   *) ac_try_echo=$ac_try;;
3300 esac
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302   (eval "$ac_compile") 2>conftest.er1
3303   ac_status=$?
3304   grep -v '^ *+' conftest.er1 >conftest.err
3305   rm -f conftest.er1
3306   cat conftest.err >&5
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); } && {
3309          test -z "$ac_c_werror_flag" ||
3310          test ! -s conftest.err
3311        } && test -s conftest.$ac_objext; then
3312   ac_cv_prog_cc_c89=$ac_arg
3313 else
3314   echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3316
3317
3318 fi
3319
3320 rm -f core conftest.err conftest.$ac_objext
3321   test "x$ac_cv_prog_cc_c89" != "xno" && break
3322 done
3323 rm -f conftest.$ac_ext
3324 CC=$ac_save_CC
3325
3326 fi
3327 # AC_CACHE_VAL
3328 case "x$ac_cv_prog_cc_c89" in
3329   x)
3330     { echo "$as_me:$LINENO: result: none needed" >&5
3331 echo "${ECHO_T}none needed" >&6; } ;;
3332   xno)
3333     { echo "$as_me:$LINENO: result: unsupported" >&5
3334 echo "${ECHO_T}unsupported" >&6; } ;;
3335   *)
3336     CC="$CC $ac_cv_prog_cc_c89"
3337     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3338 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3339 esac
3340
3341
3342 ac_ext=c
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347 DEPDIR="${am__leading_dot}deps"
3348
3349 ac_config_commands="$ac_config_commands depfiles"
3350
3351
3352 am_make=${MAKE-make}
3353 cat > confinc << 'END'
3354 am__doit:
3355         @echo done
3356 .PHONY: am__doit
3357 END
3358 # If we don't find an include directive, just comment out the code.
3359 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3360 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3361 am__include="#"
3362 am__quote=
3363 _am_result=none
3364 # First try GNU make style include.
3365 echo "include confinc" > confmf
3366 # We grep out `Entering directory' and `Leaving directory'
3367 # messages which can occur if `w' ends up in MAKEFLAGS.
3368 # In particular we don't look at `^make:' because GNU make might
3369 # be invoked under some other name (usually "gmake"), in which
3370 # case it prints its new name instead of `make'.
3371 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3372    am__include=include
3373    am__quote=
3374    _am_result=GNU
3375 fi
3376 # Now try BSD make style include.
3377 if test "$am__include" = "#"; then
3378    echo '.include "confinc"' > confmf
3379    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3380       am__include=.include
3381       am__quote="\""
3382       _am_result=BSD
3383    fi
3384 fi
3385
3386
3387 { echo "$as_me:$LINENO: result: $_am_result" >&5
3388 echo "${ECHO_T}$_am_result" >&6; }
3389 rm -f confinc confmf
3390
3391 # Check whether --enable-dependency-tracking was given.
3392 if test "${enable_dependency_tracking+set}" = set; then
3393   enableval=$enable_dependency_tracking;
3394 fi
3395
3396 if test "x$enable_dependency_tracking" != xno; then
3397   am_depcomp="$ac_aux_dir/depcomp"
3398   AMDEPBACKSLASH='\'
3399 fi
3400
3401
3402 if test "x$enable_dependency_tracking" != xno; then
3403   AMDEP_TRUE=
3404   AMDEP_FALSE='#'
3405 else
3406   AMDEP_TRUE='#'
3407   AMDEP_FALSE=
3408 fi
3409
3410
3411
3412
3413 depcc="$CC"   am_compiler_list=
3414
3415 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3416 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3417 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3418   echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3421   # We make a subdir and do the tests there.  Otherwise we can end up
3422   # making bogus files that we don't know about and never remove.  For
3423   # instance it was reported that on HP-UX the gcc test will end up
3424   # making a dummy file named `D' -- because `-MD' means `put the output
3425   # in D'.
3426   mkdir conftest.dir
3427   # Copy depcomp to subdir because otherwise we won't find it if we're
3428   # using a relative directory.
3429   cp "$am_depcomp" conftest.dir
3430   cd conftest.dir
3431   # We will build objects and dependencies in a subdirectory because
3432   # it helps to detect inapplicable dependency modes.  For instance
3433   # both Tru64's cc and ICC support -MD to output dependencies as a
3434   # side effect of compilation, but ICC will put the dependencies in
3435   # the current directory while Tru64 will put them in the object
3436   # directory.
3437   mkdir sub
3438
3439   am_cv_CC_dependencies_compiler_type=none
3440   if test "$am_compiler_list" = ""; then
3441      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3442   fi
3443   for depmode in $am_compiler_list; do
3444     # Setup a source with many dependencies, because some compilers
3445     # like to wrap large dependency lists on column 80 (with \), and
3446     # we should not choose a depcomp mode which is confused by this.
3447     #
3448     # We need to recreate these files for each test, as the compiler may
3449     # overwrite some of them when testing with obscure command lines.
3450     # This happens at least with the AIX C compiler.
3451     : > sub/conftest.c
3452     for i in 1 2 3 4 5 6; do
3453       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3454       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3455       # Solaris 8's {/usr,}/bin/sh.
3456       touch sub/conftst$i.h
3457     done
3458     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3459
3460     case $depmode in
3461     nosideeffect)
3462       # after this tag, mechanisms are not by side-effect, so they'll
3463       # only be used when explicitly requested
3464       if test "x$enable_dependency_tracking" = xyes; then
3465         continue
3466       else
3467         break
3468       fi
3469       ;;
3470     none) break ;;
3471     esac
3472     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3473     # mode.  It turns out that the SunPro C++ compiler does not properly
3474     # handle `-M -o', and we need to detect this.
3475     if depmode=$depmode \
3476        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3477        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3478        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3479          >/dev/null 2>conftest.err &&
3480        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3481        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3482        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3483       # icc doesn't choke on unknown options, it will just issue warnings
3484       # or remarks (even with -Werror).  So we grep stderr for any message
3485       # that says an option was ignored or not supported.
3486       # When given -MP, icc 7.0 and 7.1 complain thusly:
3487       #   icc: Command line warning: ignoring option '-M'; no argument required
3488       # The diagnosis changed in icc 8.0:
3489       #   icc: Command line remark: option '-MP' not supported
3490       if (grep 'ignoring option' conftest.err ||
3491           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3492         am_cv_CC_dependencies_compiler_type=$depmode
3493         break
3494       fi
3495     fi
3496   done
3497
3498   cd ..
3499   rm -rf conftest.dir
3500 else
3501   am_cv_CC_dependencies_compiler_type=none
3502 fi
3503
3504 fi
3505 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3506 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3507 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3508
3509
3510
3511 if
3512   test "x$enable_dependency_tracking" != xno \
3513   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3514   am__fastdepCC_TRUE=
3515   am__fastdepCC_FALSE='#'
3516 else
3517   am__fastdepCC_TRUE='#'
3518   am__fastdepCC_FALSE=
3519 fi
3520
3521
3522 if test "x$CC" != xcc; then
3523   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3524 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3525 else
3526   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3527 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3528 fi
3529 set dummy $CC; ac_cc=`echo $2 |
3530                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3531 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3532   echo $ECHO_N "(cached) $ECHO_C" >&6
3533 else
3534   cat >conftest.$ac_ext <<_ACEOF
3535 /* confdefs.h.  */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h.  */
3540
3541 int
3542 main ()
3543 {
3544
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 # Make sure it works both with $CC and with simple cc.
3550 # We do the test twice because some compilers refuse to overwrite an
3551 # existing .o file with -o, though they will create one.
3552 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3553 rm -f conftest2.*
3554 if { (case "(($ac_try" in
3555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556   *) ac_try_echo=$ac_try;;
3557 esac
3558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559   (eval "$ac_try") 2>&5
3560   ac_status=$?
3561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562   (exit $ac_status); } &&
3563    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565   *) ac_try_echo=$ac_try;;
3566 esac
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568   (eval "$ac_try") 2>&5
3569   ac_status=$?
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); };
3572 then
3573   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3574   if test "x$CC" != xcc; then
3575     # Test first that cc exists at all.
3576     if { ac_try='cc -c conftest.$ac_ext >&5'
3577   { (case "(($ac_try" in
3578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579   *) ac_try_echo=$ac_try;;
3580 esac
3581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582   (eval "$ac_try") 2>&5
3583   ac_status=$?
3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585   (exit $ac_status); }; }; then
3586       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3587       rm -f conftest2.*
3588       if { (case "(($ac_try" in
3589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590   *) ac_try_echo=$ac_try;;
3591 esac
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593   (eval "$ac_try") 2>&5
3594   ac_status=$?
3595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596   (exit $ac_status); } &&
3597          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602   (eval "$ac_try") 2>&5
3603   ac_status=$?
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); };
3606       then
3607         # cc works too.
3608         :
3609       else
3610         # cc exists but doesn't like -o.
3611         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3612       fi
3613     fi
3614   fi
3615 else
3616   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3617 fi
3618 rm -f core conftest*
3619
3620 fi
3621 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3622   { echo "$as_me:$LINENO: result: yes" >&5
3623 echo "${ECHO_T}yes" >&6; }
3624 else
3625   { echo "$as_me:$LINENO: result: no" >&5
3626 echo "${ECHO_T}no" >&6; }
3627
3628 cat >>confdefs.h <<\_ACEOF
3629 #define NO_MINUS_C_MINUS_O 1
3630 _ACEOF
3631
3632 fi
3633
3634 # FIXME: we rely on the cache variable name because
3635 # there is no other way.
3636 set dummy $CC
3637 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3638 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3639    # Losing compiler, so override with the script.
3640    # FIXME: It is wrong to rewrite CC.
3641    # But if we don't then we get into trouble of one sort or another.
3642    # A longer-term fix would be to have automake use am__CC in this case,
3643    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3644    CC="$am_aux_dir/compile $CC"
3645 fi
3646
3647 # Find a good install program.  We prefer a C program (faster),
3648 # so one script is as good as another.  But avoid the broken or
3649 # incompatible versions:
3650 # SysV /etc/install, /usr/sbin/install
3651 # SunOS /usr/etc/install
3652 # IRIX /sbin/install
3653 # AIX /bin/install
3654 # AmigaOS /C/install, which installs bootblocks on floppy discs
3655 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3656 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3657 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3658 # OS/2's system install, which has a completely different semantic
3659 # ./install, which can be erroneously created by make from ./install.sh.
3660 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3661 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3662 if test -z "$INSTALL"; then
3663 if test "${ac_cv_path_install+set}" = set; then
3664   echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669   IFS=$as_save_IFS
3670   test -z "$as_dir" && as_dir=.
3671   # Account for people who put trailing slashes in PATH elements.
3672 case $as_dir/ in
3673   ./ | .// | /cC/* | \
3674   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3675   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3676   /usr/ucb/* ) ;;
3677   *)
3678     # OSF1 and SCO ODT 3.0 have their own names for install.
3679     # Don't use installbsd from OSF since it installs stuff as root
3680     # by default.
3681     for ac_prog in ginstall scoinst install; do
3682       for ac_exec_ext in '' $ac_executable_extensions; do
3683         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3684           if test $ac_prog = install &&
3685             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3686             # AIX install.  It has an incompatible calling convention.
3687             :
3688           elif test $ac_prog = install &&
3689             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3690             # program-specific install script used by HP pwplus--don't use.
3691             :
3692           else
3693             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3694             break 3
3695           fi
3696         fi
3697       done
3698     done
3699     ;;
3700 esac
3701 done
3702 IFS=$as_save_IFS
3703
3704
3705 fi
3706   if test "${ac_cv_path_install+set}" = set; then
3707     INSTALL=$ac_cv_path_install
3708   else
3709     # As a last resort, use the slow shell script.  Don't cache a
3710     # value for INSTALL within a source directory, because that will
3711     # break other packages using the cache if that directory is
3712     # removed, or if the value is a relative name.
3713     INSTALL=$ac_install_sh
3714   fi
3715 fi
3716 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3717 echo "${ECHO_T}$INSTALL" >&6; }
3718
3719 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3720 # It thinks the first close brace ends the variable substitution.
3721 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3722
3723 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3724
3725 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3726
3727 # Check whether --enable-shared was given.
3728 if test "${enable_shared+set}" = set; then
3729   enableval=$enable_shared; p=${PACKAGE-default}
3730     case $enableval in
3731     yes) enable_shared=yes ;;
3732     no) enable_shared=no ;;
3733     *)
3734       enable_shared=no
3735       # Look at the argument we got.  We use all the common list separators.
3736       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3737       for pkg in $enableval; do
3738         IFS="$lt_save_ifs"
3739         if test "X$pkg" = "X$p"; then
3740           enable_shared=yes
3741         fi
3742       done
3743       IFS="$lt_save_ifs"
3744       ;;
3745     esac
3746 else
3747   enable_shared=yes
3748 fi
3749
3750
3751 # Check whether --enable-static was given.
3752 if test "${enable_static+set}" = set; then
3753   enableval=$enable_static; p=${PACKAGE-default}
3754     case $enableval in
3755     yes) enable_static=yes ;;
3756     no) enable_static=no ;;
3757     *)
3758      enable_static=no
3759       # Look at the argument we got.  We use all the common list separators.
3760       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3761       for pkg in $enableval; do
3762         IFS="$lt_save_ifs"
3763         if test "X$pkg" = "X$p"; then
3764           enable_static=yes
3765         fi
3766       done
3767       IFS="$lt_save_ifs"
3768       ;;
3769     esac
3770 else
3771   enable_static=yes
3772 fi
3773
3774
3775 # Check whether --enable-fast-install was given.
3776 if test "${enable_fast_install+set}" = set; then
3777   enableval=$enable_fast_install; p=${PACKAGE-default}
3778     case $enableval in
3779     yes) enable_fast_install=yes ;;
3780     no) enable_fast_install=no ;;
3781     *)
3782       enable_fast_install=no
3783       # Look at the argument we got.  We use all the common list separators.
3784       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3785       for pkg in $enableval; do
3786         IFS="$lt_save_ifs"
3787         if test "X$pkg" = "X$p"; then
3788           enable_fast_install=yes
3789         fi
3790       done
3791       IFS="$lt_save_ifs"
3792       ;;
3793     esac
3794 else
3795   enable_fast_install=yes
3796 fi
3797
3798
3799 # Make sure we can run config.sub.
3800 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3801   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3802 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3803    { (exit 1); exit 1; }; }
3804
3805 { echo "$as_me:$LINENO: checking build system type" >&5
3806 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3807 if test "${ac_cv_build+set}" = set; then
3808   echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810   ac_build_alias=$build_alias
3811 test "x$ac_build_alias" = x &&
3812   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3813 test "x$ac_build_alias" = x &&
3814   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3815 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3816    { (exit 1); exit 1; }; }
3817 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3818   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3819 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3820    { (exit 1); exit 1; }; }
3821
3822 fi
3823 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3824 echo "${ECHO_T}$ac_cv_build" >&6; }
3825 case $ac_cv_build in
3826 *-*-*) ;;
3827 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3828 echo "$as_me: error: invalid value of canonical build" >&2;}
3829    { (exit 1); exit 1; }; };;
3830 esac
3831 build=$ac_cv_build
3832 ac_save_IFS=$IFS; IFS='-'
3833 set x $ac_cv_build
3834 shift
3835 build_cpu=$1
3836 build_vendor=$2
3837 shift; shift
3838 # Remember, the first character of IFS is used to create $*,
3839 # except with old shells:
3840 build_os=$*
3841 IFS=$ac_save_IFS
3842 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3843
3844
3845 { echo "$as_me:$LINENO: checking host system type" >&5
3846 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3847 if test "${ac_cv_host+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   if test "x$host_alias" = x; then
3851   ac_cv_host=$ac_cv_build
3852 else
3853   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3854     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3855 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3856    { (exit 1); exit 1; }; }
3857 fi
3858
3859 fi
3860 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3861 echo "${ECHO_T}$ac_cv_host" >&6; }
3862 case $ac_cv_host in
3863 *-*-*) ;;
3864 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3865 echo "$as_me: error: invalid value of canonical host" >&2;}
3866    { (exit 1); exit 1; }; };;
3867 esac
3868 host=$ac_cv_host
3869 ac_save_IFS=$IFS; IFS='-'
3870 set x $ac_cv_host
3871 shift
3872 host_cpu=$1
3873 host_vendor=$2
3874 shift; shift
3875 # Remember, the first character of IFS is used to create $*,
3876 # except with old shells:
3877 host_os=$*
3878 IFS=$ac_save_IFS
3879 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3880
3881
3882 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3883 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3884 if test "${lt_cv_path_SED+set}" = set; then
3885   echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887   # Loop through the user's path and test for sed and gsed.
3888 # Then use that list of sed's as ones to test for truncation.
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3891 do
3892   IFS=$as_save_IFS
3893   test -z "$as_dir" && as_dir=.
3894   for lt_ac_prog in sed gsed; do
3895     for ac_exec_ext in '' $ac_executable_extensions; do
3896       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3897         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3898       fi
3899     done
3900   done
3901 done
3902 IFS=$as_save_IFS
3903 lt_ac_max=0
3904 lt_ac_count=0
3905 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3906 # along with /bin/sed that truncates output.
3907 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3908   test ! -f $lt_ac_sed && continue
3909   cat /dev/null > conftest.in
3910   lt_ac_count=0
3911   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3912   # Check for GNU sed and select it if it is found.
3913   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3914     lt_cv_path_SED=$lt_ac_sed
3915     break
3916   fi
3917   while true; do
3918     cat conftest.in conftest.in >conftest.tmp
3919     mv conftest.tmp conftest.in
3920     cp conftest.in conftest.nl
3921     echo >>conftest.nl
3922     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3923     cmp -s conftest.out conftest.nl || break
3924     # 10000 chars as input seems more than enough
3925     test $lt_ac_count -gt 10 && break
3926     lt_ac_count=`expr $lt_ac_count + 1`
3927     if test $lt_ac_count -gt $lt_ac_max; then
3928       lt_ac_max=$lt_ac_count
3929       lt_cv_path_SED=$lt_ac_sed
3930     fi
3931   done
3932 done
3933
3934 fi
3935
3936 SED=$lt_cv_path_SED
3937
3938 { echo "$as_me:$LINENO: result: $SED" >&5
3939 echo "${ECHO_T}$SED" >&6; }
3940
3941 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3942 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3943 if test "${ac_cv_path_GREP+set}" = set; then
3944   echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946   # Extract the first word of "grep ggrep" to use in msg output
3947 if test -z "$GREP"; then
3948 set dummy grep ggrep; ac_prog_name=$2
3949 if test "${ac_cv_path_GREP+set}" = set; then
3950   echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952   ac_path_GREP_found=false
3953 # Loop through the user's path and test for each of PROGNAME-LIST
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3956 do
3957   IFS=$as_save_IFS
3958   test -z "$as_dir" && as_dir=.
3959   for ac_prog in grep ggrep; do
3960   for ac_exec_ext in '' $ac_executable_extensions; do
3961     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3962     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3963     # Check for GNU ac_path_GREP and select it if it is found.
3964   # Check for GNU $ac_path_GREP
3965 case `"$ac_path_GREP" --version 2>&1` in
3966 *GNU*)
3967   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3968 *)
3969   ac_count=0
3970   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3971   while :
3972   do
3973     cat "conftest.in" "conftest.in" >"conftest.tmp"
3974     mv "conftest.tmp" "conftest.in"
3975     cp "conftest.in" "conftest.nl"
3976     echo 'GREP' >> "conftest.nl"
3977     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3978     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3979     ac_count=`expr $ac_count + 1`
3980     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3981       # Best one so far, save it but keep looking for a better one
3982       ac_cv_path_GREP="$ac_path_GREP"
3983       ac_path_GREP_max=$ac_count
3984     fi
3985     # 10*(2^10) chars as input seems more than enough
3986     test $ac_count -gt 10 && break
3987   done
3988   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989 esac
3990
3991
3992     $ac_path_GREP_found && break 3
3993   done
3994 done
3995
3996 done
3997 IFS=$as_save_IFS
3998
3999
4000 fi
4001
4002 GREP="$ac_cv_path_GREP"
4003 if test -z "$GREP"; then
4004   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4005 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4006    { (exit 1); exit 1; }; }
4007 fi
4008
4009 else
4010   ac_cv_path_GREP=$GREP
4011 fi
4012
4013
4014 fi
4015 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4016 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4017  GREP="$ac_cv_path_GREP"
4018
4019
4020 { echo "$as_me:$LINENO: checking for egrep" >&5
4021 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4022 if test "${ac_cv_path_EGREP+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4026    then ac_cv_path_EGREP="$GREP -E"
4027    else
4028      # Extract the first word of "egrep" to use in msg output
4029 if test -z "$EGREP"; then
4030 set dummy egrep; ac_prog_name=$2
4031 if test "${ac_cv_path_EGREP+set}" = set; then
4032   echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034   ac_path_EGREP_found=false
4035 # Loop through the user's path and test for each of PROGNAME-LIST
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4038 do
4039   IFS=$as_save_IFS
4040   test -z "$as_dir" && as_dir=.
4041   for ac_prog in egrep; do
4042   for ac_exec_ext in '' $ac_executable_extensions; do
4043     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4044     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4045     # Check for GNU ac_path_EGREP and select it if it is found.
4046   # Check for GNU $ac_path_EGREP
4047 case `"$ac_path_EGREP" --version 2>&1` in
4048 *GNU*)
4049   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4050 *)
4051   ac_count=0
4052   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4053   while :
4054   do
4055     cat "conftest.in" "conftest.in" >"conftest.tmp"
4056     mv "conftest.tmp" "conftest.in"
4057     cp "conftest.in" "conftest.nl"
4058     echo 'EGREP' >> "conftest.nl"
4059     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4060     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4061     ac_count=`expr $ac_count + 1`
4062     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4063       # Best one so far, save it but keep looking for a better one
4064       ac_cv_path_EGREP="$ac_path_EGREP"
4065       ac_path_EGREP_max=$ac_count
4066     fi
4067     # 10*(2^10) chars as input seems more than enough
4068     test $ac_count -gt 10 && break
4069   done
4070   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4071 esac
4072
4073
4074     $ac_path_EGREP_found && break 3
4075   done
4076 done
4077
4078 done
4079 IFS=$as_save_IFS
4080
4081
4082 fi
4083
4084 EGREP="$ac_cv_path_EGREP"
4085 if test -z "$EGREP"; then
4086   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4087 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4088    { (exit 1); exit 1; }; }
4089 fi
4090
4091 else
4092   ac_cv_path_EGREP=$EGREP
4093 fi
4094
4095
4096    fi
4097 fi
4098 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4099 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4100  EGREP="$ac_cv_path_EGREP"
4101
4102
4103
4104 # Check whether --with-gnu-ld was given.
4105 if test "${with_gnu_ld+set}" = set; then
4106   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4107 else
4108   with_gnu_ld=no
4109 fi
4110
4111 ac_prog=ld
4112 if test "$GCC" = yes; then
4113   # Check if gcc -print-prog-name=ld gives a path.
4114   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4115 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4116   case $host in
4117   *-*-mingw*)
4118     # gcc leaves a trailing carriage return which upsets mingw
4119     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4120   *)
4121     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4122   esac
4123   case $ac_prog in
4124     # Accept absolute paths.
4125     [\\/]* | ?:[\\/]*)
4126       re_direlt='/[^/][^/]*/\.\./'
4127       # Canonicalize the pathname of ld
4128       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4129       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4130         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4131       done
4132       test -z "$LD" && LD="$ac_prog"
4133       ;;
4134   "")
4135     # If it fails, then pretend we aren't using GCC.
4136     ac_prog=ld
4137     ;;
4138   *)
4139     # If it is relative, then search for the first ld in PATH.
4140     with_gnu_ld=unknown
4141     ;;
4142   esac
4143 elif test "$with_gnu_ld" = yes; then
4144   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4145 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4146 else
4147   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4148 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4149 fi
4150 if test "${lt_cv_path_LD+set}" = set; then
4151   echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153   if test -z "$LD"; then
4154   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4155   for ac_dir in $PATH; do
4156     IFS="$lt_save_ifs"
4157     test -z "$ac_dir" && ac_dir=.
4158     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4159       lt_cv_path_LD="$ac_dir/$ac_prog"
4160       # Check to see if the program is GNU ld.  I'd rather use --version,
4161       # but apparently some variants of GNU ld only accept -v.
4162       # Break only if it was the GNU/non-GNU ld that we prefer.
4163       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4164       *GNU* | *'with BFD'*)
4165         test "$with_gnu_ld" != no && break
4166         ;;
4167       *)
4168         test "$with_gnu_ld" != yes && break
4169         ;;
4170       esac
4171     fi
4172   done
4173   IFS="$lt_save_ifs"
4174 else
4175   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4176 fi
4177 fi
4178
4179 LD="$lt_cv_path_LD"
4180 if test -n "$LD"; then
4181   { echo "$as_me:$LINENO: result: $LD" >&5
4182 echo "${ECHO_T}$LD" >&6; }
4183 else
4184   { echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6; }
4186 fi
4187 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4188 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4189    { (exit 1); exit 1; }; }
4190 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4191 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4192 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4193   echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4196 case `$LD -v 2>&1 </dev/null` in
4197 *GNU* | *'with BFD'*)
4198   lt_cv_prog_gnu_ld=yes
4199   ;;
4200 *)
4201   lt_cv_prog_gnu_ld=no
4202   ;;
4203 esac
4204 fi
4205 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4206 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4207 with_gnu_ld=$lt_cv_prog_gnu_ld
4208
4209
4210 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4211 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4212 if test "${lt_cv_ld_reload_flag+set}" = set; then
4213   echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else
4215   lt_cv_ld_reload_flag='-r'
4216 fi
4217 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4218 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4219 reload_flag=$lt_cv_ld_reload_flag
4220 case $reload_flag in
4221 "" | " "*) ;;
4222 *) reload_flag=" $reload_flag" ;;
4223 esac
4224 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4225 case $host_os in
4226   darwin*)
4227     if test "$GCC" = yes; then
4228       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4229     else
4230       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4231     fi
4232     ;;
4233 esac
4234
4235 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4236 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4237 if test "${lt_cv_path_NM+set}" = set; then
4238   echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240   if test -n "$NM"; then
4241   # Let the user override the test.
4242   lt_cv_path_NM="$NM"
4243 else
4244   lt_nm_to_check="${ac_tool_prefix}nm"
4245   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4246     lt_nm_to_check="$lt_nm_to_check nm"
4247   fi
4248   for lt_tmp_nm in $lt_nm_to_check; do
4249     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4250     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4251       IFS="$lt_save_ifs"
4252       test -z "$ac_dir" && ac_dir=.
4253       tmp_nm="$ac_dir/$lt_tmp_nm"
4254       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4255         # Check to see if the nm accepts a BSD-compat flag.
4256         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4257         #   nm: unknown option "B" ignored
4258         # Tru64's nm complains that /dev/null is an invalid object file
4259         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4260         */dev/null* | *'Invalid file or object type'*)
4261           lt_cv_path_NM="$tmp_nm -B"
4262           break
4263           ;;
4264         *)
4265           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4266           */dev/null*)
4267             lt_cv_path_NM="$tmp_nm -p"
4268             break
4269             ;;
4270           *)
4271             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4272             continue # so that we can try to find one that supports BSD flags
4273             ;;
4274           esac
4275           ;;
4276         esac
4277       fi
4278     done
4279     IFS="$lt_save_ifs"
4280   done
4281   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4282 fi
4283 fi
4284 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4285 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4286 NM="$lt_cv_path_NM"
4287
4288 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4289 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4290 LN_S=$as_ln_s
4291 if test "$LN_S" = "ln -s"; then
4292   { echo "$as_me:$LINENO: result: yes" >&5
4293 echo "${ECHO_T}yes" >&6; }
4294 else
4295   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4296 echo "${ECHO_T}no, using $LN_S" >&6; }
4297 fi
4298
4299 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4300 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4301 if test "${lt_cv_deplibs_check_method+set}" = set; then
4302   echo $ECHO_N "(cached) $ECHO_C" >&6
4303 else
4304   lt_cv_file_magic_cmd='$MAGIC_CMD'
4305 lt_cv_file_magic_test_file=
4306 lt_cv_deplibs_check_method='unknown'
4307 # Need to set the preceding variable on all platforms that support
4308 # interlibrary dependencies.
4309 # 'none' -- dependencies not supported.
4310 # `unknown' -- same as none, but documents that we really don't know.
4311 # 'pass_all' -- all dependencies passed with no checks.
4312 # 'test_compile' -- check by making test program.
4313 # 'file_magic [[regex]]' -- check by looking for files in library path
4314 # which responds to the $file_magic_cmd with a given extended regex.
4315 # If you have `file' or equivalent on your system and you're not sure
4316 # whether `pass_all' will *always* work, you probably want this one.
4317
4318 case $host_os in
4319 aix[4-9]*)
4320   lt_cv_deplibs_check_method=pass_all
4321   ;;
4322
4323 beos*)
4324   lt_cv_deplibs_check_method=pass_all
4325   ;;
4326
4327 bsdi[45]*)
4328   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4329   lt_cv_file_magic_cmd='/usr/bin/file -L'
4330   lt_cv_file_magic_test_file=/shlib/libc.so
4331   ;;
4332
4333 cygwin*)
4334   # func_win32_libid is a shell function defined in ltmain.sh
4335   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4336   lt_cv_file_magic_cmd='func_win32_libid'
4337   ;;
4338
4339 mingw* | pw32*)
4340   # Base MSYS/MinGW do not provide the 'file' command needed by
4341   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4342   # unless we find 'file', for example because we are cross-compiling.
4343   if ( file / ) >/dev/null 2>&1; then
4344     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4345     lt_cv_file_magic_cmd='func_win32_libid'
4346   else
4347     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4348     lt_cv_file_magic_cmd='$OBJDUMP -f'
4349   fi
4350   ;;
4351
4352 darwin* | rhapsody*)
4353   lt_cv_deplibs_check_method=pass_all
4354   ;;
4355
4356 freebsd* | dragonfly*)
4357   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4358     case $host_cpu in
4359     i*86 )
4360       # Not sure whether the presence of OpenBSD here was a mistake.
4361       # Let's accept both of them until this is cleared up.
4362       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4363       lt_cv_file_magic_cmd=/usr/bin/file
4364       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4365       ;;
4366     esac
4367   else
4368     lt_cv_deplibs_check_method=pass_all
4369   fi
4370   ;;
4371
4372 gnu*)
4373   lt_cv_deplibs_check_method=pass_all
4374   ;;
4375
4376 hpux10.20* | hpux11*)
4377   lt_cv_file_magic_cmd=/usr/bin/file
4378   case $host_cpu in
4379   ia64*)
4380     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4381     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4382     ;;
4383   hppa*64*)
4384     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4385     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4386     ;;
4387   *)
4388     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4389     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4390     ;;
4391   esac
4392   ;;
4393
4394 interix[3-9]*)
4395   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4396   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4397   ;;
4398
4399 irix5* | irix6* | nonstopux*)
4400   case $LD in
4401   *-32|*"-32 ") libmagic=32-bit;;
4402   *-n32|*"-n32 ") libmagic=N32;;
4403   *-64|*"-64 ") libmagic=64-bit;;
4404   *) libmagic=never-match;;
4405   esac
4406   lt_cv_deplibs_check_method=pass_all
4407   ;;
4408
4409 # This must be Linux ELF.
4410 linux* | k*bsd*-gnu)
4411   lt_cv_deplibs_check_method=pass_all
4412   ;;
4413
4414 netbsd* | netbsdelf*-gnu)
4415   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4416     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4417   else
4418     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4419   fi
4420   ;;
4421
4422 newos6*)
4423   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4424   lt_cv_file_magic_cmd=/usr/bin/file
4425   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4426   ;;
4427
4428 nto-qnx*)
4429   lt_cv_deplibs_check_method=unknown
4430   ;;
4431
4432 openbsd*)
4433   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4434     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4435   else
4436     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4437   fi
4438   ;;
4439
4440 osf3* | osf4* | osf5*)
4441   lt_cv_deplibs_check_method=pass_all
4442   ;;
4443
4444 rdos*)
4445   lt_cv_deplibs_check_method=pass_all
4446   ;;
4447
4448 solaris*)
4449   lt_cv_deplibs_check_method=pass_all
4450   ;;
4451
4452 sysv4 | sysv4.3*)
4453   case $host_vendor in
4454   motorola)
4455     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4456     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4457     ;;
4458   ncr)
4459     lt_cv_deplibs_check_method=pass_all
4460     ;;
4461   sequent)
4462     lt_cv_file_magic_cmd='/bin/file'
4463     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4464     ;;
4465   sni)
4466     lt_cv_file_magic_cmd='/bin/file'
4467     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4468     lt_cv_file_magic_test_file=/lib/libc.so
4469     ;;
4470   siemens)
4471     lt_cv_deplibs_check_method=pass_all
4472     ;;
4473   pc)
4474     lt_cv_deplibs_check_method=pass_all
4475     ;;
4476   esac
4477   ;;
4478
4479 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4480   lt_cv_deplibs_check_method=pass_all
4481   ;;
4482 esac
4483
4484 fi
4485 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4486 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4487 file_magic_cmd=$lt_cv_file_magic_cmd
4488 deplibs_check_method=$lt_cv_deplibs_check_method
4489 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4490
4491
4492
4493
4494 # If no C compiler was specified, use CC.
4495 LTCC=${LTCC-"$CC"}
4496
4497 # If no C compiler flags were specified, use CFLAGS.
4498 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4499
4500 # Allow CC to be a program name with arguments.
4501 compiler=$CC
4502
4503
4504 # Check whether --enable-libtool-lock was given.
4505 if test "${enable_libtool_lock+set}" = set; then
4506   enableval=$enable_libtool_lock;
4507 fi
4508
4509 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4510
4511 # Some flags need to be propagated to the compiler or linker for good
4512 # libtool support.
4513 case $host in
4514 ia64-*-hpux*)
4515   # Find out which ABI we are using.
4516   echo 'int i;' > conftest.$ac_ext
4517   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518   (eval $ac_compile) 2>&5
4519   ac_status=$?
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); }; then
4522     case `/usr/bin/file conftest.$ac_objext` in
4523     *ELF-32*)
4524       HPUX_IA64_MODE="32"
4525       ;;
4526     *ELF-64*)
4527       HPUX_IA64_MODE="64"
4528       ;;
4529     esac
4530   fi
4531   rm -rf conftest*
4532   ;;
4533 *-*-irix6*)
4534   # Find out which ABI we are using.
4535   echo '#line 4535 "configure"' > conftest.$ac_ext
4536   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537   (eval $ac_compile) 2>&5
4538   ac_status=$?
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); }; then
4541    if test "$lt_cv_prog_gnu_ld" = yes; then
4542     case `/usr/bin/file conftest.$ac_objext` in
4543     *32-bit*)
4544       LD="${LD-ld} -melf32bsmip"
4545       ;;
4546     *N32*)
4547       LD="${LD-ld} -melf32bmipn32"
4548       ;;
4549     *64-bit*)
4550       LD="${LD-ld} -melf64bmip"
4551       ;;
4552     esac
4553    else
4554     case `/usr/bin/file conftest.$ac_objext` in
4555     *32-bit*)
4556       LD="${LD-ld} -32"
4557       ;;
4558     *N32*)
4559       LD="${LD-ld} -n32"
4560       ;;
4561     *64-bit*)
4562       LD="${LD-ld} -64"
4563       ;;
4564     esac
4565    fi
4566   fi
4567   rm -rf conftest*
4568   ;;
4569
4570 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4571 s390*-*linux*|sparc*-*linux*)
4572   # Find out which ABI we are using.
4573   echo 'int i;' > conftest.$ac_ext
4574   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4575   (eval $ac_compile) 2>&5
4576   ac_status=$?
4577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578   (exit $ac_status); }; then
4579     case `/usr/bin/file conftest.o` in
4580     *32-bit*)
4581       case $host in
4582         x86_64-*kfreebsd*-gnu)
4583           LD="${LD-ld} -m elf_i386_fbsd"
4584           ;;
4585         x86_64-*linux*)
4586           LD="${LD-ld} -m elf_i386"
4587           ;;
4588         ppc64-*linux*|powerpc64-*linux*)
4589           LD="${LD-ld} -m elf32ppclinux"
4590           ;;
4591         s390x-*linux*)
4592           LD="${LD-ld} -m elf_s390"
4593           ;;
4594         sparc64-*linux*)
4595           LD="${LD-ld} -m elf32_sparc"
4596           ;;
4597       esac
4598       ;;
4599     *64-bit*)
4600       case $host in
4601         x86_64-*kfreebsd*-gnu)
4602           LD="${LD-ld} -m elf_x86_64_fbsd"
4603           ;;
4604         x86_64-*linux*)
4605           LD="${LD-ld} -m elf_x86_64"
4606           ;;
4607         ppc*-*linux*|powerpc*-*linux*)
4608           LD="${LD-ld} -m elf64ppc"
4609           ;;
4610         s390*-*linux*)
4611           LD="${LD-ld} -m elf64_s390"
4612           ;;
4613         sparc*-*linux*)
4614           LD="${LD-ld} -m elf64_sparc"
4615           ;;
4616       esac
4617       ;;
4618     esac
4619   fi
4620   rm -rf conftest*
4621   ;;
4622
4623 *-*-sco3.2v5*)
4624   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4625   SAVE_CFLAGS="$CFLAGS"
4626   CFLAGS="$CFLAGS -belf"
4627   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4628 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4629 if test "${lt_cv_cc_needs_belf+set}" = set; then
4630   echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632   ac_ext=c
4633 ac_cpp='$CPP $CPPFLAGS'
4634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4637
4638      cat >conftest.$ac_ext <<_ACEOF
4639 /* confdefs.h.  */
4640 _ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h.  */
4644
4645 int
4646 main ()
4647 {
4648
4649   ;
4650   return 0;
4651 }
4652 _ACEOF
4653 rm -f conftest.$ac_objext conftest$ac_exeext
4654 if { (ac_try="$ac_link"
4655 case "(($ac_try" in
4656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657   *) ac_try_echo=$ac_try;;
4658 esac
4659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660   (eval "$ac_link") 2>conftest.er1
4661   ac_status=$?
4662   grep -v '^ *+' conftest.er1 >conftest.err
4663   rm -f conftest.er1
4664   cat conftest.err >&5
4665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666   (exit $ac_status); } && {
4667          test -z "$ac_c_werror_flag" ||
4668          test ! -s conftest.err
4669        } && test -s conftest$ac_exeext &&
4670        $as_test_x conftest$ac_exeext; then
4671   lt_cv_cc_needs_belf=yes
4672 else
4673   echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4675
4676         lt_cv_cc_needs_belf=no
4677 fi
4678
4679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4680       conftest$ac_exeext conftest.$ac_ext
4681      ac_ext=c
4682 ac_cpp='$CPP $CPPFLAGS'
4683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4686
4687 fi
4688 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4689 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4690   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4691     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4692     CFLAGS="$SAVE_CFLAGS"
4693   fi
4694   ;;
4695 sparc*-*solaris*)
4696   # Find out which ABI we are using.
4697   echo 'int i;' > conftest.$ac_ext
4698   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4699   (eval $ac_compile) 2>&5
4700   ac_status=$?
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); }; then
4703     case `/usr/bin/file conftest.o` in
4704     *64-bit*)
4705       case $lt_cv_prog_gnu_ld in
4706       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4707       *)
4708         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4709           LD="${LD-ld} -64"
4710         fi
4711         ;;
4712       esac
4713       ;;
4714     esac
4715   fi
4716   rm -rf conftest*
4717   ;;
4718
4719
4720 esac
4721
4722 need_locks="$enable_libtool_lock"
4723
4724
4725 ac_ext=c
4726 ac_cpp='$CPP $CPPFLAGS'
4727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4731 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4732 # On Suns, sometimes $CPP names a directory.
4733 if test -n "$CPP" && test -d "$CPP"; then
4734   CPP=
4735 fi
4736 if test -z "$CPP"; then
4737   if test "${ac_cv_prog_CPP+set}" = set; then
4738   echo $ECHO_N "(cached) $ECHO_C" >&6
4739 else
4740       # Double quotes because CPP needs to be expanded
4741     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4742     do
4743       ac_preproc_ok=false
4744 for ac_c_preproc_warn_flag in '' yes
4745 do
4746   # Use a header file that comes with gcc, so configuring glibc
4747   # with a fresh cross-compiler works.
4748   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4749   # <limits.h> exists even on freestanding compilers.
4750   # On the NeXT, cc -E runs the code through the compiler's parser,
4751   # not just through cpp. "Syntax error" is here to catch this case.
4752   cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h.  */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h.  */
4758 #ifdef __STDC__
4759 # include <limits.h>
4760 #else
4761 # include <assert.h>
4762 #endif
4763                      Syntax error
4764 _ACEOF
4765 if { (ac_try="$ac_cpp conftest.$ac_ext"
4766 case "(($ac_try" in
4767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768   *) ac_try_echo=$ac_try;;
4769 esac
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4772   ac_status=$?
4773   grep -v '^ *+' conftest.er1 >conftest.err
4774   rm -f conftest.er1
4775   cat conftest.err >&5
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); } >/dev/null && {
4778          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4779          test ! -s conftest.err
4780        }; then
4781   :
4782 else
4783   echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4785
4786   # Broken: fails on valid input.
4787 continue
4788 fi
4789
4790 rm -f conftest.err conftest.$ac_ext
4791
4792   # OK, works on sane cases.  Now check whether nonexistent headers
4793   # can be detected and how.
4794   cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h.  */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h.  */
4800 #include <ac_nonexistent.h>
4801 _ACEOF
4802 if { (ac_try="$ac_cpp conftest.$ac_ext"
4803 case "(($ac_try" in
4804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805   *) ac_try_echo=$ac_try;;
4806 esac
4807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4809   ac_status=$?
4810   grep -v '^ *+' conftest.er1 >conftest.err
4811   rm -f conftest.er1
4812   cat conftest.err >&5
4813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814   (exit $ac_status); } >/dev/null && {
4815          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4816          test ! -s conftest.err
4817        }; then
4818   # Broken: success on invalid input.
4819 continue
4820 else
4821   echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4823
4824   # Passes both tests.
4825 ac_preproc_ok=:
4826 break
4827 fi
4828
4829 rm -f conftest.err conftest.$ac_ext
4830
4831 done
4832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4833 rm -f conftest.err conftest.$ac_ext
4834 if $ac_preproc_ok; then
4835   break
4836 fi
4837
4838     done
4839     ac_cv_prog_CPP=$CPP
4840
4841 fi
4842   CPP=$ac_cv_prog_CPP
4843 else
4844   ac_cv_prog_CPP=$CPP
4845 fi
4846 { echo "$as_me:$LINENO: result: $CPP" >&5
4847 echo "${ECHO_T}$CPP" >&6; }
4848 ac_preproc_ok=false
4849 for ac_c_preproc_warn_flag in '' yes
4850 do
4851   # Use a header file that comes with gcc, so configuring glibc
4852   # with a fresh cross-compiler works.
4853   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4854   # <limits.h> exists even on freestanding compilers.
4855   # On the NeXT, cc -E runs the code through the compiler's parser,
4856   # not just through cpp. "Syntax error" is here to catch this case.
4857   cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h.  */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h.  */
4863 #ifdef __STDC__
4864 # include <limits.h>
4865 #else
4866 # include <assert.h>
4867 #endif
4868                      Syntax error
4869 _ACEOF
4870 if { (ac_try="$ac_cpp conftest.$ac_ext"
4871 case "(($ac_try" in
4872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4873   *) ac_try_echo=$ac_try;;
4874 esac
4875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4877   ac_status=$?
4878   grep -v '^ *+' conftest.er1 >conftest.err
4879   rm -f conftest.er1
4880   cat conftest.err >&5
4881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882   (exit $ac_status); } >/dev/null && {
4883          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4884          test ! -s conftest.err
4885        }; then
4886   :
4887 else
4888   echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891   # Broken: fails on valid input.
4892 continue
4893 fi
4894
4895 rm -f conftest.err conftest.$ac_ext
4896
4897   # OK, works on sane cases.  Now check whether nonexistent headers
4898   # can be detected and how.
4899   cat >conftest.$ac_ext <<_ACEOF
4900 /* confdefs.h.  */
4901 _ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h.  */
4905 #include <ac_nonexistent.h>
4906 _ACEOF
4907 if { (ac_try="$ac_cpp conftest.$ac_ext"
4908 case "(($ac_try" in
4909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910   *) ac_try_echo=$ac_try;;
4911 esac
4912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4913   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4914   ac_status=$?
4915   grep -v '^ *+' conftest.er1 >conftest.err
4916   rm -f conftest.er1
4917   cat conftest.err >&5
4918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919   (exit $ac_status); } >/dev/null && {
4920          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4921          test ! -s conftest.err
4922        }; then
4923   # Broken: success on invalid input.
4924 continue
4925 else
4926   echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4928
4929   # Passes both tests.
4930 ac_preproc_ok=:
4931 break
4932 fi
4933
4934 rm -f conftest.err conftest.$ac_ext
4935
4936 done
4937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4938 rm -f conftest.err conftest.$ac_ext
4939 if $ac_preproc_ok; then
4940   :
4941 else
4942   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4943 See \`config.log' for more details." >&5
4944 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4945 See \`config.log' for more details." >&2;}
4946    { (exit 1); exit 1; }; }
4947 fi
4948
4949 ac_ext=c
4950 ac_cpp='$CPP $CPPFLAGS'
4951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4954
4955
4956 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4957 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4958 if test "${ac_cv_header_stdc+set}" = set; then
4959   echo $ECHO_N "(cached) $ECHO_C" >&6
4960 else
4961   cat >conftest.$ac_ext <<_ACEOF
4962 /* confdefs.h.  */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h.  */
4967 #include <stdlib.h>
4968 #include <stdarg.h>
4969 #include <string.h>
4970 #include <float.h>
4971
4972 int
4973 main ()
4974 {
4975
4976   ;
4977   return 0;
4978 }
4979 _ACEOF
4980 rm -f conftest.$ac_objext
4981 if { (ac_try="$ac_compile"
4982 case "(($ac_try" in
4983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984   *) ac_try_echo=$ac_try;;
4985 esac
4986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987   (eval "$ac_compile") 2>conftest.er1
4988   ac_status=$?
4989   grep -v '^ *+' conftest.er1 >conftest.err
4990   rm -f conftest.er1
4991   cat conftest.err >&5
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); } && {
4994          test -z "$ac_c_werror_flag" ||
4995          test ! -s conftest.err
4996        } && test -s conftest.$ac_objext; then
4997   ac_cv_header_stdc=yes
4998 else
4999   echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5001
5002         ac_cv_header_stdc=no
5003 fi
5004
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006
5007 if test $ac_cv_header_stdc = yes; then
5008   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5009   cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h.  */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h.  */
5015 #include <string.h>
5016
5017 _ACEOF
5018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5019   $EGREP "memchr" >/dev/null 2>&1; then
5020   :
5021 else
5022   ac_cv_header_stdc=no
5023 fi
5024 rm -f conftest*
5025
5026 fi
5027
5028 if test $ac_cv_header_stdc = yes; then
5029   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5030   cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h.  */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h.  */
5036 #include <stdlib.h>
5037
5038 _ACEOF
5039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5040   $EGREP "free" >/dev/null 2>&1; then
5041   :
5042 else
5043   ac_cv_header_stdc=no
5044 fi
5045 rm -f conftest*
5046
5047 fi
5048
5049 if test $ac_cv_header_stdc = yes; then
5050   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5051   if test "$cross_compiling" = yes; then
5052   :
5053 else
5054   cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h.  */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h.  */
5060 #include <ctype.h>
5061 #include <stdlib.h>
5062 #if ((' ' & 0x0FF) == 0x020)
5063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5065 #else
5066 # define ISLOWER(c) \
5067                    (('a' <= (c) && (c) <= 'i') \
5068                      || ('j' <= (c) && (c) <= 'r') \
5069                      || ('s' <= (c) && (c) <= 'z'))
5070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5071 #endif
5072
5073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5074 int
5075 main ()
5076 {
5077   int i;
5078   for (i = 0; i < 256; i++)
5079     if (XOR (islower (i), ISLOWER (i))
5080         || toupper (i) != TOUPPER (i))
5081       return 2;
5082   return 0;
5083 }
5084 _ACEOF
5085 rm -f conftest$ac_exeext
5086 if { (ac_try="$ac_link"
5087 case "(($ac_try" in
5088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089   *) ac_try_echo=$ac_try;;
5090 esac
5091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092   (eval "$ac_link") 2>&5
5093   ac_status=$?
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5096   { (case "(($ac_try" in
5097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098   *) ac_try_echo=$ac_try;;
5099 esac
5100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101   (eval "$ac_try") 2>&5
5102   ac_status=$?
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); }; }; then
5105   :
5106 else
5107   echo "$as_me: program exited with status $ac_status" >&5
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5110
5111 ( exit $ac_status )
5112 ac_cv_header_stdc=no
5113 fi
5114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5115 fi
5116
5117
5118 fi
5119 fi
5120 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5121 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5122 if test $ac_cv_header_stdc = yes; then
5123
5124 cat >>confdefs.h <<\_ACEOF
5125 #define STDC_HEADERS 1
5126 _ACEOF
5127
5128 fi
5129
5130 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5141                   inttypes.h stdint.h unistd.h
5142 do
5143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5147   echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149   cat >conftest.$ac_ext <<_ACEOF
5150 /* confdefs.h.  */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h.  */
5155 $ac_includes_default
5156
5157 #include <$ac_header>
5158 _ACEOF
5159 rm -f conftest.$ac_objext
5160 if { (ac_try="$ac_compile"
5161 case "(($ac_try" in
5162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163   *) ac_try_echo=$ac_try;;
5164 esac
5165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166   (eval "$ac_compile") 2>conftest.er1
5167   ac_status=$?
5168   grep -v '^ *+' conftest.er1 >conftest.err
5169   rm -f conftest.er1
5170   cat conftest.err >&5
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); } && {
5173          test -z "$ac_c_werror_flag" ||
5174          test ! -s conftest.err
5175        } && test -s conftest.$ac_objext; then
5176   eval "$as_ac_Header=yes"
5177 else
5178   echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5180
5181         eval "$as_ac_Header=no"
5182 fi
5183
5184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5185 fi
5186 ac_res=`eval echo '${'$as_ac_Header'}'`
5187                { echo "$as_me:$LINENO: result: $ac_res" >&5
5188 echo "${ECHO_T}$ac_res" >&6; }
5189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5190   cat >>confdefs.h <<_ACEOF
5191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5192 _ACEOF
5193
5194 fi
5195
5196 done
5197
5198
5199
5200 for ac_header in dlfcn.h
5201 do
5202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5204   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5207   echo $ECHO_N "(cached) $ECHO_C" >&6
5208 fi
5209 ac_res=`eval echo '${'$as_ac_Header'}'`
5210                { echo "$as_me:$LINENO: result: $ac_res" >&5
5211 echo "${ECHO_T}$ac_res" >&6; }
5212 else
5213   # Is the header compilable?
5214 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5216 cat >conftest.$ac_ext <<_ACEOF
5217 /* confdefs.h.  */
5218 _ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h.  */
5222 $ac_includes_default
5223 #include <$ac_header>
5224 _ACEOF
5225 rm -f conftest.$ac_objext
5226 if { (ac_try="$ac_compile"
5227 case "(($ac_try" in
5228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229   *) ac_try_echo=$ac_try;;
5230 esac
5231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232   (eval "$ac_compile") 2>conftest.er1
5233   ac_status=$?
5234   grep -v '^ *+' conftest.er1 >conftest.err
5235   rm -f conftest.er1
5236   cat conftest.err >&5
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); } && {
5239          test -z "$ac_c_werror_flag" ||
5240          test ! -s conftest.err
5241        } && test -s conftest.$ac_objext; then
5242   ac_header_compiler=yes
5243 else
5244   echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5246
5247         ac_header_compiler=no
5248 fi
5249
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5252 echo "${ECHO_T}$ac_header_compiler" >&6; }
5253
5254 # Is the header present?
5255 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5257 cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h.  */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h.  */
5263 #include <$ac_header>
5264 _ACEOF
5265 if { (ac_try="$ac_cpp conftest.$ac_ext"
5266 case "(($ac_try" in
5267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268   *) ac_try_echo=$ac_try;;
5269 esac
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5272   ac_status=$?
5273   grep -v '^ *+' conftest.er1 >conftest.err
5274   rm -f conftest.er1
5275   cat conftest.err >&5
5276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277   (exit $ac_status); } >/dev/null && {
5278          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5279          test ! -s conftest.err
5280        }; then
5281   ac_header_preproc=yes
5282 else
5283   echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5285
5286   ac_header_preproc=no
5287 fi
5288
5289 rm -f conftest.err conftest.$ac_ext
5290 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5291 echo "${ECHO_T}$ac_header_preproc" >&6; }
5292
5293 # So?  What about this header?
5294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5295   yes:no: )
5296     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5300     ac_header_preproc=yes
5301     ;;
5302   no:yes:* )
5303     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5305     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5306 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5307     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5309     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5310 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5313     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5315     ( cat <<\_ASBOX
5316 ## ---------------------------------------- ##
5317 ## Report this to stefan@datenfreihafen.org ##
5318 ## ---------------------------------------- ##
5319 _ASBOX
5320      ) | sed "s/^/$as_me: WARNING:     /" >&2
5321     ;;
5322 esac
5323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5326   echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328   eval "$as_ac_Header=\$ac_header_preproc"
5329 fi
5330 ac_res=`eval echo '${'$as_ac_Header'}'`
5331                { echo "$as_me:$LINENO: result: $ac_res" >&5
5332 echo "${ECHO_T}$ac_res" >&6; }
5333
5334 fi
5335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5336   cat >>confdefs.h <<_ACEOF
5337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5338 _ACEOF
5339
5340 fi
5341
5342 done
5343
5344 ac_ext=cpp
5345 ac_cpp='$CXXCPP $CPPFLAGS'
5346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5349 if test -z "$CXX"; then
5350   if test -n "$CCC"; then
5351     CXX=$CCC
5352   else
5353     if test -n "$ac_tool_prefix"; then
5354   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5355   do
5356     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5360 if test "${ac_cv_prog_CXX+set}" = set; then
5361   echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363   if test -n "$CXX"; then
5364   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5368 do
5369   IFS=$as_save_IFS
5370   test -z "$as_dir" && as_dir=.
5371   for ac_exec_ext in '' $ac_executable_extensions; do
5372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375     break 2
5376   fi
5377 done
5378 done
5379 IFS=$as_save_IFS
5380
5381 fi
5382 fi
5383 CXX=$ac_cv_prog_CXX
5384 if test -n "$CXX"; then
5385   { echo "$as_me:$LINENO: result: $CXX" >&5
5386 echo "${ECHO_T}$CXX" >&6; }
5387 else
5388   { echo "$as_me:$LINENO: result: no" >&5
5389 echo "${ECHO_T}no" >&6; }
5390 fi
5391
5392
5393     test -n "$CXX" && break
5394   done
5395 fi
5396 if test -z "$CXX"; then
5397   ac_ct_CXX=$CXX
5398   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5399 do
5400   # Extract the first word of "$ac_prog", so it can be a program name with args.
5401 set dummy $ac_prog; ac_word=$2
5402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5404 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5405   echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407   if test -n "$ac_ct_CXX"; then
5408   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5409 else
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5412 do
5413   IFS=$as_save_IFS
5414   test -z "$as_dir" && as_dir=.
5415   for ac_exec_ext in '' $ac_executable_extensions; do
5416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5417     ac_cv_prog_ac_ct_CXX="$ac_prog"
5418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5419     break 2
5420   fi
5421 done
5422 done
5423 IFS=$as_save_IFS
5424
5425 fi
5426 fi
5427 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5428 if test -n "$ac_ct_CXX"; then
5429   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5430 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5431 else
5432   { echo "$as_me:$LINENO: result: no" >&5
5433 echo "${ECHO_T}no" >&6; }
5434 fi
5435
5436
5437   test -n "$ac_ct_CXX" && break
5438 done
5439
5440   if test "x$ac_ct_CXX" = x; then
5441     CXX="g++"
5442   else
5443     case $cross_compiling:$ac_tool_warned in
5444 yes:)
5445 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5446 whose name does not start with the host triplet.  If you think this
5447 configuration is useful to you, please write to autoconf@gnu.org." >&5
5448 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5449 whose name does not start with the host triplet.  If you think this
5450 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5451 ac_tool_warned=yes ;;
5452 esac
5453     CXX=$ac_ct_CXX
5454   fi
5455 fi
5456
5457   fi
5458 fi
5459 # Provide some information about the compiler.
5460 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5461 ac_compiler=`set X $ac_compile; echo $2`
5462 { (ac_try="$ac_compiler --version >&5"
5463 case "(($ac_try" in
5464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465   *) ac_try_echo=$ac_try;;
5466 esac
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468   (eval "$ac_compiler --version >&5") 2>&5
5469   ac_status=$?
5470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471   (exit $ac_status); }
5472 { (ac_try="$ac_compiler -v >&5"
5473 case "(($ac_try" in
5474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475   *) ac_try_echo=$ac_try;;
5476 esac
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478   (eval "$ac_compiler -v >&5") 2>&5
5479   ac_status=$?
5480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481   (exit $ac_status); }
5482 { (ac_try="$ac_compiler -V >&5"
5483 case "(($ac_try" in
5484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485   *) ac_try_echo=$ac_try;;
5486 esac
5487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488   (eval "$ac_compiler -V >&5") 2>&5
5489   ac_status=$?
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); }
5492
5493 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5494 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5495 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5496   echo $ECHO_N "(cached) $ECHO_C" >&6
5497 else
5498   cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h.  */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h.  */
5504
5505 int
5506 main ()
5507 {
5508 #ifndef __GNUC__
5509        choke me
5510 #endif
5511
5512   ;
5513   return 0;
5514 }
5515 _ACEOF
5516 rm -f conftest.$ac_objext
5517 if { (ac_try="$ac_compile"
5518 case "(($ac_try" in
5519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520   *) ac_try_echo=$ac_try;;
5521 esac
5522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5523   (eval "$ac_compile") 2>conftest.er1
5524   ac_status=$?
5525   grep -v '^ *+' conftest.er1 >conftest.err
5526   rm -f conftest.er1
5527   cat conftest.err >&5
5528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529   (exit $ac_status); } && {
5530          test -z "$ac_cxx_werror_flag" ||
5531          test ! -s conftest.err
5532        } && test -s conftest.$ac_objext; then
5533   ac_compiler_gnu=yes
5534 else
5535   echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5537
5538         ac_compiler_gnu=no
5539 fi
5540
5541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5543
5544 fi
5545 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5546 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5547 GXX=`test $ac_compiler_gnu = yes && echo yes`
5548 ac_test_CXXFLAGS=${CXXFLAGS+set}
5549 ac_save_CXXFLAGS=$CXXFLAGS
5550 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5551 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5552 if test "${ac_cv_prog_cxx_g+set}" = set; then
5553   echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5556    ac_cxx_werror_flag=yes
5557    ac_cv_prog_cxx_g=no
5558    CXXFLAGS="-g"
5559    cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h.  */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h.  */
5565
5566 int
5567 main ()
5568 {
5569
5570   ;
5571   return 0;
5572 }
5573 _ACEOF
5574 rm -f conftest.$ac_objext
5575 if { (ac_try="$ac_compile"
5576 case "(($ac_try" in
5577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5578   *) ac_try_echo=$ac_try;;
5579 esac
5580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5581   (eval "$ac_compile") 2>conftest.er1
5582   ac_status=$?
5583   grep -v '^ *+' conftest.er1 >conftest.err
5584   rm -f conftest.er1
5585   cat conftest.err >&5
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); } && {
5588          test -z "$ac_cxx_werror_flag" ||
5589          test ! -s conftest.err
5590        } && test -s conftest.$ac_objext; then
5591   ac_cv_prog_cxx_g=yes
5592 else
5593   echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5595
5596         CXXFLAGS=""
5597       cat >conftest.$ac_ext <<_ACEOF
5598 /* confdefs.h.  */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h.  */
5603
5604 int
5605 main ()
5606 {
5607
5608   ;
5609   return 0;
5610 }
5611 _ACEOF
5612 rm -f conftest.$ac_objext
5613 if { (ac_try="$ac_compile"
5614 case "(($ac_try" in
5615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616   *) ac_try_echo=$ac_try;;
5617 esac
5618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619   (eval "$ac_compile") 2>conftest.er1
5620   ac_status=$?
5621   grep -v '^ *+' conftest.er1 >conftest.err
5622   rm -f conftest.er1
5623   cat conftest.err >&5
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); } && {
5626          test -z "$ac_cxx_werror_flag" ||
5627          test ! -s conftest.err
5628        } && test -s conftest.$ac_objext; then
5629   :
5630 else
5631   echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5633
5634         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5635          CXXFLAGS="-g"
5636          cat >conftest.$ac_ext <<_ACEOF
5637 /* confdefs.h.  */
5638 _ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h.  */
5642
5643 int
5644 main ()
5645 {
5646
5647   ;
5648   return 0;
5649 }
5650 _ACEOF
5651 rm -f conftest.$ac_objext
5652 if { (ac_try="$ac_compile"
5653 case "(($ac_try" in
5654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655   *) ac_try_echo=$ac_try;;
5656 esac
5657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658   (eval "$ac_compile") 2>conftest.er1
5659   ac_status=$?
5660   grep -v '^ *+' conftest.er1 >conftest.err
5661   rm -f conftest.er1
5662   cat conftest.err >&5
5663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664   (exit $ac_status); } && {
5665          test -z "$ac_cxx_werror_flag" ||
5666          test ! -s conftest.err
5667        } && test -s conftest.$ac_objext; then
5668   ac_cv_prog_cxx_g=yes
5669 else
5670   echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5672
5673
5674 fi
5675
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 fi
5678
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 fi
5681
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5684 fi
5685 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5686 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5687 if test "$ac_test_CXXFLAGS" = set; then
5688   CXXFLAGS=$ac_save_CXXFLAGS
5689 elif test $ac_cv_prog_cxx_g = yes; then
5690   if test "$GXX" = yes; then
5691     CXXFLAGS="-g -O2"
5692   else
5693     CXXFLAGS="-g"
5694   fi
5695 else
5696   if test "$GXX" = yes; then
5697     CXXFLAGS="-O2"
5698   else
5699     CXXFLAGS=
5700   fi
5701 fi
5702 ac_ext=cpp
5703 ac_cpp='$CXXCPP $CPPFLAGS'
5704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5707
5708 depcc="$CXX"  am_compiler_list=
5709
5710 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5711 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5712 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5713   echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5716   # We make a subdir and do the tests there.  Otherwise we can end up
5717   # making bogus files that we don't know about and never remove.  For
5718   # instance it was reported that on HP-UX the gcc test will end up
5719   # making a dummy file named `D' -- because `-MD' means `put the output
5720   # in D'.
5721   mkdir conftest.dir
5722   # Copy depcomp to subdir because otherwise we won't find it if we're
5723   # using a relative directory.
5724   cp "$am_depcomp" conftest.dir
5725   cd conftest.dir
5726   # We will build objects and dependencies in a subdirectory because
5727   # it helps to detect inapplicable dependency modes.  For instance
5728   # both Tru64's cc and ICC support -MD to output dependencies as a
5729   # side effect of compilation, but ICC will put the dependencies in
5730   # the current directory while Tru64 will put them in the object
5731   # directory.
5732   mkdir sub
5733
5734   am_cv_CXX_dependencies_compiler_type=none
5735   if test "$am_compiler_list" = ""; then
5736      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5737   fi
5738   for depmode in $am_compiler_list; do
5739     # Setup a source with many dependencies, because some compilers
5740     # like to wrap large dependency lists on column 80 (with \), and
5741     # we should not choose a depcomp mode which is confused by this.
5742     #
5743     # We need to recreate these files for each test, as the compiler may
5744     # overwrite some of them when testing with obscure command lines.
5745     # This happens at least with the AIX C compiler.
5746     : > sub/conftest.c
5747     for i in 1 2 3 4 5 6; do
5748       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5749       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5750       # Solaris 8's {/usr,}/bin/sh.
5751       touch sub/conftst$i.h
5752     done
5753     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5754
5755     case $depmode in
5756     nosideeffect)
5757       # after this tag, mechanisms are not by side-effect, so they'll
5758       # only be used when explicitly requested
5759       if test "x$enable_dependency_tracking" = xyes; then
5760         continue
5761       else
5762         break
5763       fi
5764       ;;
5765     none) break ;;
5766     esac
5767     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5768     # mode.  It turns out that the SunPro C++ compiler does not properly
5769     # handle `-M -o', and we need to detect this.
5770     if depmode=$depmode \
5771        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5772        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5773        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5774          >/dev/null 2>conftest.err &&
5775        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5776        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5777        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5778       # icc doesn't choke on unknown options, it will just issue warnings
5779       # or remarks (even with -Werror).  So we grep stderr for any message
5780       # that says an option was ignored or not supported.
5781       # When given -MP, icc 7.0 and 7.1 complain thusly:
5782       #   icc: Command line warning: ignoring option '-M'; no argument required
5783       # The diagnosis changed in icc 8.0:
5784       #   icc: Command line remark: option '-MP' not supported
5785       if (grep 'ignoring option' conftest.err ||
5786           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5787         am_cv_CXX_dependencies_compiler_type=$depmode
5788         break
5789       fi
5790     fi
5791   done
5792
5793   cd ..
5794   rm -rf conftest.dir
5795 else
5796   am_cv_CXX_dependencies_compiler_type=none
5797 fi
5798
5799 fi
5800 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5801 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5802 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5803
5804
5805
5806 if
5807   test "x$enable_dependency_tracking" != xno \
5808   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5809   am__fastdepCXX_TRUE=
5810   am__fastdepCXX_FALSE='#'
5811 else
5812   am__fastdepCXX_TRUE='#'
5813   am__fastdepCXX_FALSE=
5814 fi
5815
5816
5817
5818
5819 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5820     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5821     (test "X$CXX" != "Xg++"))) ; then
5822   ac_ext=cpp
5823 ac_cpp='$CXXCPP $CPPFLAGS'
5824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5827 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5828 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5829 if test -z "$CXXCPP"; then
5830   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5831   echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833       # Double quotes because CXXCPP needs to be expanded
5834     for CXXCPP in "$CXX -E" "/lib/cpp"
5835     do
5836       ac_preproc_ok=false
5837 for ac_cxx_preproc_warn_flag in '' yes
5838 do
5839   # Use a header file that comes with gcc, so configuring glibc
5840   # with a fresh cross-compiler works.
5841   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5842   # <limits.h> exists even on freestanding compilers.
5843   # On the NeXT, cc -E runs the code through the compiler's parser,
5844   # not just through cpp. "Syntax error" is here to catch this case.
5845   cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h.  */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h.  */
5851 #ifdef __STDC__
5852 # include <limits.h>
5853 #else
5854 # include <assert.h>
5855 #endif
5856                      Syntax error
5857 _ACEOF
5858 if { (ac_try="$ac_cpp conftest.$ac_ext"
5859 case "(($ac_try" in
5860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861   *) ac_try_echo=$ac_try;;
5862 esac
5863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5865   ac_status=$?
5866   grep -v '^ *+' conftest.er1 >conftest.err
5867   rm -f conftest.er1
5868   cat conftest.err >&5
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); } >/dev/null && {
5871          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5872          test ! -s conftest.err
5873        }; then
5874   :
5875 else
5876   echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5878
5879   # Broken: fails on valid input.
5880 continue
5881 fi
5882
5883 rm -f conftest.err conftest.$ac_ext
5884
5885   # OK, works on sane cases.  Now check whether nonexistent headers
5886   # can be detected and how.
5887   cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h.  */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h.  */
5893 #include <ac_nonexistent.h>
5894 _ACEOF
5895 if { (ac_try="$ac_cpp conftest.$ac_ext"
5896 case "(($ac_try" in
5897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898   *) ac_try_echo=$ac_try;;
5899 esac
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5902   ac_status=$?
5903   grep -v '^ *+' conftest.er1 >conftest.err
5904   rm -f conftest.er1
5905   cat conftest.err >&5
5906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907   (exit $ac_status); } >/dev/null && {
5908          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5909          test ! -s conftest.err
5910        }; then
5911   # Broken: success on invalid input.
5912 continue
5913 else
5914   echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5916
5917   # Passes both tests.
5918 ac_preproc_ok=:
5919 break
5920 fi
5921
5922 rm -f conftest.err conftest.$ac_ext
5923
5924 done
5925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5926 rm -f conftest.err conftest.$ac_ext
5927 if $ac_preproc_ok; then
5928   break
5929 fi
5930
5931     done
5932     ac_cv_prog_CXXCPP=$CXXCPP
5933
5934 fi
5935   CXXCPP=$ac_cv_prog_CXXCPP
5936 else
5937   ac_cv_prog_CXXCPP=$CXXCPP
5938 fi
5939 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5940 echo "${ECHO_T}$CXXCPP" >&6; }
5941 ac_preproc_ok=false
5942 for ac_cxx_preproc_warn_flag in '' yes
5943 do
5944   # Use a header file that comes with gcc, so configuring glibc
5945   # with a fresh cross-compiler works.
5946   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5947   # <limits.h> exists even on freestanding compilers.
5948   # On the NeXT, cc -E runs the code through the compiler's parser,
5949   # not just through cpp. "Syntax error" is here to catch this case.
5950   cat >conftest.$ac_ext <<_ACEOF
5951 /* confdefs.h.  */
5952 _ACEOF
5953 cat confdefs.h >>conftest.$ac_ext
5954 cat >>conftest.$ac_ext <<_ACEOF
5955 /* end confdefs.h.  */
5956 #ifdef __STDC__
5957 # include <limits.h>
5958 #else
5959 # include <assert.h>
5960 #endif
5961                      Syntax error
5962 _ACEOF
5963 if { (ac_try="$ac_cpp conftest.$ac_ext"
5964 case "(($ac_try" in
5965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966   *) ac_try_echo=$ac_try;;
5967 esac
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5970   ac_status=$?
5971   grep -v '^ *+' conftest.er1 >conftest.err
5972   rm -f conftest.er1
5973   cat conftest.err >&5
5974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975   (exit $ac_status); } >/dev/null && {
5976          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5977          test ! -s conftest.err
5978        }; then
5979   :
5980 else
5981   echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5983
5984   # Broken: fails on valid input.
5985 continue
5986 fi
5987
5988 rm -f conftest.err conftest.$ac_ext
5989
5990   # OK, works on sane cases.  Now check whether nonexistent headers
5991   # can be detected and how.
5992   cat >conftest.$ac_ext <<_ACEOF
5993 /* confdefs.h.  */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h.  */
5998 #include <ac_nonexistent.h>
5999 _ACEOF
6000 if { (ac_try="$ac_cpp conftest.$ac_ext"
6001 case "(($ac_try" in
6002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003   *) ac_try_echo=$ac_try;;
6004 esac
6005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6007   ac_status=$?
6008   grep -v '^ *+' conftest.er1 >conftest.err
6009   rm -f conftest.er1
6010   cat conftest.err >&5
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); } >/dev/null && {
6013          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6014          test ! -s conftest.err
6015        }; then
6016   # Broken: success on invalid input.
6017 continue
6018 else
6019   echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6021
6022   # Passes both tests.
6023 ac_preproc_ok=:
6024 break
6025 fi
6026
6027 rm -f conftest.err conftest.$ac_ext
6028
6029 done
6030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6031 rm -f conftest.err conftest.$ac_ext
6032 if $ac_preproc_ok; then
6033   :
6034 else
6035   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6036 See \`config.log' for more details." >&5
6037 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6038 See \`config.log' for more details." >&2;}
6039    { (exit 1); exit 1; }; }
6040 fi
6041
6042 ac_ext=cpp
6043 ac_cpp='$CXXCPP $CPPFLAGS'
6044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6047
6048 fi
6049
6050
6051 ac_ext=f
6052 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6053 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6054 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6055 if test -n "$ac_tool_prefix"; then
6056   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6057   do
6058     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6059 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6062 if test "${ac_cv_prog_F77+set}" = set; then
6063   echo $ECHO_N "(cached) $ECHO_C" >&6
6064 else
6065   if test -n "$F77"; then
6066   ac_cv_prog_F77="$F77" # Let the user override the test.
6067 else
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6070 do
6071   IFS=$as_save_IFS
6072   test -z "$as_dir" && as_dir=.
6073   for ac_exec_ext in '' $ac_executable_extensions; do
6074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6075     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077     break 2
6078   fi
6079 done
6080 done
6081 IFS=$as_save_IFS
6082
6083 fi
6084 fi
6085 F77=$ac_cv_prog_F77
6086 if test -n "$F77"; then
6087   { echo "$as_me:$LINENO: result: $F77" >&5
6088 echo "${ECHO_T}$F77" >&6; }
6089 else
6090   { echo "$as_me:$LINENO: result: no" >&5
6091 echo "${ECHO_T}no" >&6; }
6092 fi
6093
6094
6095     test -n "$F77" && break
6096   done
6097 fi
6098 if test -z "$F77"; then
6099   ac_ct_F77=$F77
6100   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6101 do
6102   # Extract the first word of "$ac_prog", so it can be a program name with args.
6103 set dummy $ac_prog; ac_word=$2
6104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6106 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109   if test -n "$ac_ct_F77"; then
6110   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6111 else
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6114 do
6115   IFS=$as_save_IFS
6116   test -z "$as_dir" && as_dir=.
6117   for ac_exec_ext in '' $ac_executable_extensions; do
6118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119     ac_cv_prog_ac_ct_F77="$ac_prog"
6120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121     break 2
6122   fi
6123 done
6124 done
6125 IFS=$as_save_IFS
6126
6127 fi
6128 fi
6129 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6130 if test -n "$ac_ct_F77"; then
6131   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6132 echo "${ECHO_T}$ac_ct_F77" >&6; }
6133 else
6134   { echo "$as_me:$LINENO: result: no" >&5
6135 echo "${ECHO_T}no" >&6; }
6136 fi
6137
6138
6139   test -n "$ac_ct_F77" && break
6140 done
6141
6142   if test "x$ac_ct_F77" = x; then
6143     F77=""
6144   else
6145     case $cross_compiling:$ac_tool_warned in
6146 yes:)
6147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6148 whose name does not start with the host triplet.  If you think this
6149 configuration is useful to you, please write to autoconf@gnu.org." >&5
6150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6151 whose name does not start with the host triplet.  If you think this
6152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6153 ac_tool_warned=yes ;;
6154 esac
6155     F77=$ac_ct_F77
6156   fi
6157 fi
6158
6159
6160 # Provide some information about the compiler.
6161 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6162 ac_compiler=`set X $ac_compile; echo $2`
6163 { (ac_try="$ac_compiler --version >&5"
6164 case "(($ac_try" in
6165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166   *) ac_try_echo=$ac_try;;
6167 esac
6168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169   (eval "$ac_compiler --version >&5") 2>&5
6170   ac_status=$?
6171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); }
6173 { (ac_try="$ac_compiler -v >&5"
6174 case "(($ac_try" in
6175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176   *) ac_try_echo=$ac_try;;
6177 esac
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179   (eval "$ac_compiler -v >&5") 2>&5
6180   ac_status=$?
6181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182   (exit $ac_status); }
6183 { (ac_try="$ac_compiler -V >&5"
6184 case "(($ac_try" in
6185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186   *) ac_try_echo=$ac_try;;
6187 esac
6188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6189   (eval "$ac_compiler -V >&5") 2>&5
6190   ac_status=$?
6191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192   (exit $ac_status); }
6193 rm -f a.out
6194
6195 # If we don't use `.F' as extension, the preprocessor is not run on the
6196 # input file.  (Note that this only needs to work for GNU compilers.)
6197 ac_save_ext=$ac_ext
6198 ac_ext=F
6199 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6200 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6201 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6202   echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204   cat >conftest.$ac_ext <<_ACEOF
6205       program main
6206 #ifndef __GNUC__
6207        choke me
6208 #endif
6209
6210       end
6211 _ACEOF
6212 rm -f conftest.$ac_objext
6213 if { (ac_try="$ac_compile"
6214 case "(($ac_try" in
6215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216   *) ac_try_echo=$ac_try;;
6217 esac
6218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219   (eval "$ac_compile") 2>conftest.er1
6220   ac_status=$?
6221   grep -v '^ *+' conftest.er1 >conftest.err
6222   rm -f conftest.er1
6223   cat conftest.err >&5
6224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225   (exit $ac_status); } && {
6226          test -z "$ac_f77_werror_flag" ||
6227          test ! -s conftest.err
6228        } && test -s conftest.$ac_objext; then
6229   ac_compiler_gnu=yes
6230 else
6231   echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6233
6234         ac_compiler_gnu=no
6235 fi
6236
6237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6239
6240 fi
6241 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6242 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6243 ac_ext=$ac_save_ext
6244 ac_test_FFLAGS=${FFLAGS+set}
6245 ac_save_FFLAGS=$FFLAGS
6246 FFLAGS=
6247 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6248 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6249 if test "${ac_cv_prog_f77_g+set}" = set; then
6250   echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252   FFLAGS=-g
6253 cat >conftest.$ac_ext <<_ACEOF
6254       program main
6255
6256       end
6257 _ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (ac_try="$ac_compile"
6260 case "(($ac_try" in
6261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262   *) ac_try_echo=$ac_try;;
6263 esac
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265   (eval "$ac_compile") 2>conftest.er1
6266   ac_status=$?
6267   grep -v '^ *+' conftest.er1 >conftest.err
6268   rm -f conftest.er1
6269   cat conftest.err >&5
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); } && {
6272          test -z "$ac_f77_werror_flag" ||
6273          test ! -s conftest.err
6274        } && test -s conftest.$ac_objext; then
6275   ac_cv_prog_f77_g=yes
6276 else
6277   echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6279
6280         ac_cv_prog_f77_g=no
6281 fi
6282
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284
6285 fi
6286 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6287 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6288 if test "$ac_test_FFLAGS" = set; then
6289   FFLAGS=$ac_save_FFLAGS
6290 elif test $ac_cv_prog_f77_g = yes; then
6291   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6292     FFLAGS="-g -O2"
6293   else
6294     FFLAGS="-g"
6295   fi
6296 else
6297   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6298     FFLAGS="-O2"
6299   else
6300     FFLAGS=
6301   fi
6302 fi
6303
6304 G77=`test $ac_compiler_gnu = yes && echo yes`
6305 ac_ext=c
6306 ac_cpp='$CPP $CPPFLAGS'
6307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6310
6311
6312
6313 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6314 # find the maximum length of command line arguments
6315 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6316 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6317 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6318   echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320     i=0
6321   teststring="ABCD"
6322
6323   case $build_os in
6324   msdosdjgpp*)
6325     # On DJGPP, this test can blow up pretty badly due to problems in libc
6326     # (any single argument exceeding 2000 bytes causes a buffer overrun
6327     # during glob expansion).  Even if it were fixed, the result of this
6328     # check would be larger than it should be.
6329     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6330     ;;
6331
6332   gnu*)
6333     # Under GNU Hurd, this test is not required because there is
6334     # no limit to the length of command line arguments.
6335     # Libtool will interpret -1 as no limit whatsoever
6336     lt_cv_sys_max_cmd_len=-1;
6337     ;;
6338
6339   cygwin* | mingw*)
6340     # On Win9x/ME, this test blows up -- it succeeds, but takes
6341     # about 5 minutes as the teststring grows exponentially.
6342     # Worse, since 9x/ME are not pre-emptively multitasking,
6343     # you end up with a "frozen" computer, even though with patience
6344     # the test eventually succeeds (with a max line length of 256k).
6345     # Instead, let's just punt: use the minimum linelength reported by
6346     # all of the supported platforms: 8192 (on NT/2K/XP).
6347     lt_cv_sys_max_cmd_len=8192;
6348     ;;
6349
6350   amigaos*)
6351     # On AmigaOS with pdksh, this test takes hours, literally.
6352     # So we just punt and use a minimum line length of 8192.
6353     lt_cv_sys_max_cmd_len=8192;
6354     ;;
6355
6356   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6357     # This has been around since 386BSD, at least.  Likely further.
6358     if test -x /sbin/sysctl; then
6359       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6360     elif test -x /usr/sbin/sysctl; then
6361       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6362     else
6363       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6364     fi
6365     # And add a safety zone
6366     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6367     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6368     ;;
6369
6370   interix*)
6371     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6372     lt_cv_sys_max_cmd_len=196608
6373     ;;
6374
6375   osf*)
6376     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6377     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6378     # nice to cause kernel panics so lets avoid the loop below.
6379     # First set a reasonable default.
6380     lt_cv_sys_max_cmd_len=16384
6381     #
6382     if test -x /sbin/sysconfig; then
6383       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6384         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6385       esac
6386     fi
6387     ;;
6388   sco3.2v5*)
6389     lt_cv_sys_max_cmd_len=102400
6390     ;;
6391   sysv5* | sco5v6* | sysv4.2uw2*)
6392     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6393     if test -n "$kargmax"; then
6394       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6395     else
6396       lt_cv_sys_max_cmd_len=32768
6397     fi
6398     ;;
6399   *)
6400     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6401     if test -n "$lt_cv_sys_max_cmd_len"; then
6402       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6403       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6404     else
6405       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6406       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6407                = "XX$teststring") >/dev/null 2>&1 &&
6408               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6409               lt_cv_sys_max_cmd_len=$new_result &&
6410               test $i != 17 # 1/2 MB should be enough
6411       do
6412         i=`expr $i + 1`
6413         teststring=$teststring$teststring
6414       done
6415       teststring=
6416       # Add a significant safety factor because C++ compilers can tack on massive
6417       # amounts of additional arguments before passing them to the linker.
6418       # It appears as though 1/2 is a usable value.
6419       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6420     fi
6421     ;;
6422   esac
6423
6424 fi
6425
6426 if test -n $lt_cv_sys_max_cmd_len ; then
6427   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6428 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6429 else
6430   { echo "$as_me:$LINENO: result: none" >&5
6431 echo "${ECHO_T}none" >&6; }
6432 fi
6433
6434
6435
6436
6437
6438 # Check for command to grab the raw symbol name followed by C symbol from nm.
6439 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6440 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6441 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6442   echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444
6445 # These are sane defaults that work on at least a few old systems.
6446 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6447
6448 # Character class describing NM global symbol codes.
6449 symcode='[BCDEGRST]'
6450
6451 # Regexp to match symbols that can be accessed directly from C.
6452 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6453
6454 # Transform an extracted symbol line into a proper C declaration
6455 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6456
6457 # Transform an extracted symbol line into symbol name and symbol address
6458 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6459
6460 # Define system-specific variables.
6461 case $host_os in
6462 aix*)
6463   symcode='[BCDT]'
6464   ;;
6465 cygwin* | mingw* | pw32*)
6466   symcode='[ABCDGISTW]'
6467   ;;
6468 hpux*) # Its linker distinguishes data from code symbols
6469   if test "$host_cpu" = ia64; then
6470     symcode='[ABCDEGRST]'
6471   fi
6472   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6473   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6474   ;;
6475 linux* | k*bsd*-gnu)
6476   if test "$host_cpu" = ia64; then
6477     symcode='[ABCDGIRSTW]'
6478     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6479     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6480   fi
6481   ;;
6482 irix* | nonstopux*)
6483   symcode='[BCDEGRST]'
6484   ;;
6485 osf*)
6486   symcode='[BCDEGQRST]'
6487   ;;
6488 solaris*)
6489   symcode='[BDRT]'
6490   ;;
6491 sco3.2v5*)
6492   symcode='[DT]'
6493   ;;
6494 sysv4.2uw2*)
6495   symcode='[DT]'
6496   ;;
6497 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6498   symcode='[ABDT]'
6499   ;;
6500 sysv4)
6501   symcode='[DFNSTU]'
6502   ;;
6503 esac
6504
6505 # Handle CRLF in mingw tool chain
6506 opt_cr=
6507 case $build_os in
6508 mingw*)
6509   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6510   ;;
6511 esac
6512
6513 # If we're using GNU nm, then use its standard symbol codes.
6514 case `$NM -V 2>&1` in
6515 *GNU* | *'with BFD'*)
6516   symcode='[ABCDGIRSTW]' ;;
6517 esac
6518
6519 # Try without a prefix undercore, then with it.
6520 for ac_symprfx in "" "_"; do
6521
6522   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6523   symxfrm="\\1 $ac_symprfx\\2 \\2"
6524
6525   # Write the raw and C identifiers.
6526   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6527
6528   # Check to see that the pipe works correctly.
6529   pipe_works=no
6530
6531   rm -f conftest*
6532   cat > conftest.$ac_ext <<EOF
6533 #ifdef __cplusplus
6534 extern "C" {
6535 #endif
6536 char nm_test_var;
6537 void nm_test_func(){}
6538 #ifdef __cplusplus
6539 }
6540 #endif
6541 int main(){nm_test_var='a';nm_test_func();return(0);}
6542 EOF
6543
6544   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6545   (eval $ac_compile) 2>&5
6546   ac_status=$?
6547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548   (exit $ac_status); }; then
6549     # Now try to grab the symbols.
6550     nlist=conftest.nm
6551     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6552   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6553   ac_status=$?
6554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555   (exit $ac_status); } && test -s "$nlist"; then
6556       # Try sorting and uniquifying the output.
6557       if sort "$nlist" | uniq > "$nlist"T; then
6558         mv -f "$nlist"T "$nlist"
6559       else
6560         rm -f "$nlist"T
6561       fi
6562
6563       # Make sure that we snagged all the symbols we need.
6564       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6565         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6566           cat <<EOF > conftest.$ac_ext
6567 #ifdef __cplusplus
6568 extern "C" {
6569 #endif
6570
6571 EOF
6572           # Now generate the symbol file.
6573           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6574
6575           cat <<EOF >> conftest.$ac_ext
6576 #if defined (__STDC__) && __STDC__
6577 # define lt_ptr_t void *
6578 #else
6579 # define lt_ptr_t char *
6580 # define const
6581 #endif
6582
6583 /* The mapping between symbol names and symbols. */
6584 const struct {
6585   const char *name;
6586   lt_ptr_t address;
6587 }
6588 lt_preloaded_symbols[] =
6589 {
6590 EOF
6591           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6592           cat <<\EOF >> conftest.$ac_ext
6593   {0, (lt_ptr_t) 0}
6594 };
6595
6596 #ifdef __cplusplus
6597 }
6598 #endif
6599 EOF
6600           # Now try linking the two files.
6601           mv conftest.$ac_objext conftstm.$ac_objext
6602           lt_save_LIBS="$LIBS"
6603           lt_save_CFLAGS="$CFLAGS"
6604           LIBS="conftstm.$ac_objext"
6605           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6606           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6607   (eval $ac_link) 2>&5
6608   ac_status=$?
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6611             pipe_works=yes
6612           fi
6613           LIBS="$lt_save_LIBS"
6614           CFLAGS="$lt_save_CFLAGS"
6615         else
6616           echo "cannot find nm_test_func in $nlist" >&5
6617         fi
6618       else
6619         echo "cannot find nm_test_var in $nlist" >&5
6620       fi
6621     else
6622       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6623     fi
6624   else
6625     echo "$progname: failed program was:" >&5
6626     cat conftest.$ac_ext >&5
6627   fi
6628   rm -rf conftest* conftst*
6629
6630   # Do not use the global_symbol_pipe unless it works.
6631   if test "$pipe_works" = yes; then
6632     break
6633   else
6634     lt_cv_sys_global_symbol_pipe=
6635   fi
6636 done
6637
6638 fi
6639
6640 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6641   lt_cv_sys_global_symbol_to_cdecl=
6642 fi
6643 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6644   { echo "$as_me:$LINENO: result: failed" >&5
6645 echo "${ECHO_T}failed" >&6; }
6646 else
6647   { echo "$as_me:$LINENO: result: ok" >&5
6648 echo "${ECHO_T}ok" >&6; }
6649 fi
6650
6651 { echo "$as_me:$LINENO: checking for objdir" >&5
6652 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6653 if test "${lt_cv_objdir+set}" = set; then
6654   echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656   rm -f .libs 2>/dev/null
6657 mkdir .libs 2>/dev/null
6658 if test -d .libs; then
6659   lt_cv_objdir=.libs
6660 else
6661   # MS-DOS does not allow filenames that begin with a dot.
6662   lt_cv_objdir=_libs
6663 fi
6664 rmdir .libs 2>/dev/null
6665 fi
6666 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6667 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6668 objdir=$lt_cv_objdir
6669
6670
6671
6672
6673
6674 case $host_os in
6675 aix3*)
6676   # AIX sometimes has problems with the GCC collect2 program.  For some
6677   # reason, if we set the COLLECT_NAMES environment variable, the problems
6678   # vanish in a puff of smoke.
6679   if test "X${COLLECT_NAMES+set}" != Xset; then
6680     COLLECT_NAMES=
6681     export COLLECT_NAMES
6682   fi
6683   ;;
6684 esac
6685
6686 # Sed substitution that helps us do robust quoting.  It backslashifies
6687 # metacharacters that are still active within double-quoted strings.
6688 Xsed='sed -e 1s/^X//'
6689 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6690
6691 # Same as above, but do not quote variable references.
6692 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6693
6694 # Sed substitution to delay expansion of an escaped shell variable in a
6695 # double_quote_subst'ed string.
6696 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6697
6698 # Sed substitution to avoid accidental globbing in evaled expressions
6699 no_glob_subst='s/\*/\\\*/g'
6700
6701 # Constants:
6702 rm="rm -f"
6703
6704 # Global variables:
6705 default_ofile=libtool
6706 can_build_shared=yes
6707
6708 # All known linkers require a `.a' archive for static linking (except MSVC,
6709 # which needs '.lib').
6710 libext=a
6711 ltmain="$ac_aux_dir/ltmain.sh"
6712 ofile="$default_ofile"
6713 with_gnu_ld="$lt_cv_prog_gnu_ld"
6714
6715 if test -n "$ac_tool_prefix"; then
6716   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}ar; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_prog_AR+set}" = set; then
6721   echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723   if test -n "$AR"; then
6724   ac_cv_prog_AR="$AR" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731   for ac_exec_ext in '' $ac_executable_extensions; do
6732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733     ac_cv_prog_AR="${ac_tool_prefix}ar"
6734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 AR=$ac_cv_prog_AR
6744 if test -n "$AR"; then
6745   { echo "$as_me:$LINENO: result: $AR" >&5
6746 echo "${ECHO_T}$AR" >&6; }
6747 else
6748   { echo "$as_me:$LINENO: result: no" >&5
6749 echo "${ECHO_T}no" >&6; }
6750 fi
6751
6752
6753 fi
6754 if test -z "$ac_cv_prog_AR"; then
6755   ac_ct_AR=$AR
6756   # Extract the first word of "ar", so it can be a program name with args.
6757 set dummy ar; ac_word=$2
6758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6760 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6761   echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763   if test -n "$ac_ct_AR"; then
6764   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769   IFS=$as_save_IFS
6770   test -z "$as_dir" && as_dir=.
6771   for ac_exec_ext in '' $ac_executable_extensions; do
6772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773     ac_cv_prog_ac_ct_AR="ar"
6774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775     break 2
6776   fi
6777 done
6778 done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6784 if test -n "$ac_ct_AR"; then
6785   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6786 echo "${ECHO_T}$ac_ct_AR" >&6; }
6787 else
6788   { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6790 fi
6791
6792   if test "x$ac_ct_AR" = x; then
6793     AR="false"
6794   else
6795     case $cross_compiling:$ac_tool_warned in
6796 yes:)
6797 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6798 whose name does not start with the host triplet.  If you think this
6799 configuration is useful to you, please write to autoconf@gnu.org." >&5
6800 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6801 whose name does not start with the host triplet.  If you think this
6802 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6803 ac_tool_warned=yes ;;
6804 esac
6805     AR=$ac_ct_AR
6806   fi
6807 else
6808   AR="$ac_cv_prog_AR"
6809 fi
6810
6811 if test -n "$ac_tool_prefix"; then
6812   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6813 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_prog_RANLIB+set}" = set; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   if test -n "$RANLIB"; then
6820   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825   IFS=$as_save_IFS
6826   test -z "$as_dir" && as_dir=.
6827   for ac_exec_ext in '' $ac_executable_extensions; do
6828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831     break 2
6832   fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837 fi
6838 fi
6839 RANLIB=$ac_cv_prog_RANLIB
6840 if test -n "$RANLIB"; then
6841   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6842 echo "${ECHO_T}$RANLIB" >&6; }
6843 else
6844   { echo "$as_me:$LINENO: result: no" >&5
6845 echo "${ECHO_T}no" >&6; }
6846 fi
6847
6848
6849 fi
6850 if test -z "$ac_cv_prog_RANLIB"; then
6851   ac_ct_RANLIB=$RANLIB
6852   # Extract the first word of "ranlib", so it can be a program name with args.
6853 set dummy ranlib; ac_word=$2
6854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6857   echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859   if test -n "$ac_ct_RANLIB"; then
6860   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865   IFS=$as_save_IFS
6866   test -z "$as_dir" && as_dir=.
6867   for ac_exec_ext in '' $ac_executable_extensions; do
6868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869     ac_cv_prog_ac_ct_RANLIB="ranlib"
6870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871     break 2
6872   fi
6873 done
6874 done
6875 IFS=$as_save_IFS
6876
6877 fi
6878 fi
6879 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6880 if test -n "$ac_ct_RANLIB"; then
6881   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6882 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6883 else
6884   { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6886 fi
6887
6888   if test "x$ac_ct_RANLIB" = x; then
6889     RANLIB=":"
6890   else
6891     case $cross_compiling:$ac_tool_warned in
6892 yes:)
6893 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6894 whose name does not start with the host triplet.  If you think this
6895 configuration is useful to you, please write to autoconf@gnu.org." >&5
6896 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6897 whose name does not start with the host triplet.  If you think this
6898 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6899 ac_tool_warned=yes ;;
6900 esac
6901     RANLIB=$ac_ct_RANLIB
6902   fi
6903 else
6904   RANLIB="$ac_cv_prog_RANLIB"
6905 fi
6906
6907 if test -n "$ac_tool_prefix"; then
6908   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6909 set dummy ${ac_tool_prefix}strip; ac_word=$2
6910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6912 if test "${ac_cv_prog_STRIP+set}" = set; then
6913   echo $ECHO_N "(cached) $ECHO_C" >&6
6914 else
6915   if test -n "$STRIP"; then
6916   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6917 else
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6920 do
6921   IFS=$as_save_IFS
6922   test -z "$as_dir" && as_dir=.
6923   for ac_exec_ext in '' $ac_executable_extensions; do
6924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927     break 2
6928   fi
6929 done
6930 done
6931 IFS=$as_save_IFS
6932
6933 fi
6934 fi
6935 STRIP=$ac_cv_prog_STRIP
6936 if test -n "$STRIP"; then
6937   { echo "$as_me:$LINENO: result: $STRIP" >&5
6938 echo "${ECHO_T}$STRIP" >&6; }
6939 else
6940   { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6942 fi
6943
6944
6945 fi
6946 if test -z "$ac_cv_prog_STRIP"; then
6947   ac_ct_STRIP=$STRIP
6948   # Extract the first word of "strip", so it can be a program name with args.
6949 set dummy strip; ac_word=$2
6950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6952 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6953   echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955   if test -n "$ac_ct_STRIP"; then
6956   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6957 else
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6960 do
6961   IFS=$as_save_IFS
6962   test -z "$as_dir" && as_dir=.
6963   for ac_exec_ext in '' $ac_executable_extensions; do
6964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965     ac_cv_prog_ac_ct_STRIP="strip"
6966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967     break 2
6968   fi
6969 done
6970 done
6971 IFS=$as_save_IFS
6972
6973 fi
6974 fi
6975 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6976 if test -n "$ac_ct_STRIP"; then
6977   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6978 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6979 else
6980   { echo "$as_me:$LINENO: result: no" >&5
6981 echo "${ECHO_T}no" >&6; }
6982 fi
6983
6984   if test "x$ac_ct_STRIP" = x; then
6985     STRIP=":"
6986   else
6987     case $cross_compiling:$ac_tool_warned in
6988 yes:)
6989 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6990 whose name does not start with the host triplet.  If you think this
6991 configuration is useful to you, please write to autoconf@gnu.org." >&5
6992 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6993 whose name does not start with the host triplet.  If you think this
6994 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6995 ac_tool_warned=yes ;;
6996 esac
6997     STRIP=$ac_ct_STRIP
6998   fi
6999 else
7000   STRIP="$ac_cv_prog_STRIP"
7001 fi
7002
7003
7004 old_CC="$CC"
7005 old_CFLAGS="$CFLAGS"
7006
7007 # Set sane defaults for various variables
7008 test -z "$AR" && AR=ar
7009 test -z "$AR_FLAGS" && AR_FLAGS=cru
7010 test -z "$AS" && AS=as
7011 test -z "$CC" && CC=cc
7012 test -z "$LTCC" && LTCC=$CC
7013 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7014 test -z "$DLLTOOL" && DLLTOOL=dlltool
7015 test -z "$LD" && LD=ld
7016 test -z "$LN_S" && LN_S="ln -s"
7017 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7018 test -z "$NM" && NM=nm
7019 test -z "$SED" && SED=sed
7020 test -z "$OBJDUMP" && OBJDUMP=objdump
7021 test -z "$RANLIB" && RANLIB=:
7022 test -z "$STRIP" && STRIP=:
7023 test -z "$ac_objext" && ac_objext=o
7024
7025 # Determine commands to create old-style static archives.
7026 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7027 old_postinstall_cmds='chmod 644 $oldlib'
7028 old_postuninstall_cmds=
7029
7030 if test -n "$RANLIB"; then
7031   case $host_os in
7032   openbsd*)
7033     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7034     ;;
7035   *)
7036     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7037     ;;
7038   esac
7039   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7040 fi
7041
7042 for cc_temp in $compiler""; do
7043   case $cc_temp in
7044     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7045     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7046     \-*) ;;
7047     *) break;;
7048   esac
7049 done
7050 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7051
7052
7053 # Only perform the check for file, if the check method requires it
7054 case $deplibs_check_method in
7055 file_magic*)
7056   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7057     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7058 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7059 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7060   echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062   case $MAGIC_CMD in
7063 [\\/*] |  ?:[\\/]*)
7064   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7065   ;;
7066 *)
7067   lt_save_MAGIC_CMD="$MAGIC_CMD"
7068   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7069   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7070   for ac_dir in $ac_dummy; do
7071     IFS="$lt_save_ifs"
7072     test -z "$ac_dir" && ac_dir=.
7073     if test -f $ac_dir/${ac_tool_prefix}file; then
7074       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7075       if test -n "$file_magic_test_file"; then
7076         case $deplibs_check_method in
7077         "file_magic "*)
7078           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7079           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7080           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7081             $EGREP "$file_magic_regex" > /dev/null; then
7082             :
7083           else
7084             cat <<EOF 1>&2
7085
7086 *** Warning: the command libtool uses to detect shared libraries,
7087 *** $file_magic_cmd, produces output that libtool cannot recognize.
7088 *** The result is that libtool may fail to recognize shared libraries
7089 *** as such.  This will affect the creation of libtool libraries that
7090 *** depend on shared libraries, but programs linked with such libtool
7091 *** libraries will work regardless of this problem.  Nevertheless, you
7092 *** may want to report the problem to your system manager and/or to
7093 *** bug-libtool@gnu.org
7094
7095 EOF
7096           fi ;;
7097         esac
7098       fi
7099       break
7100     fi
7101   done
7102   IFS="$lt_save_ifs"
7103   MAGIC_CMD="$lt_save_MAGIC_CMD"
7104   ;;
7105 esac
7106 fi
7107
7108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7109 if test -n "$MAGIC_CMD"; then
7110   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7111 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7112 else
7113   { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7115 fi
7116
7117 if test -z "$lt_cv_path_MAGIC_CMD"; then
7118   if test -n "$ac_tool_prefix"; then
7119     { echo "$as_me:$LINENO: checking for file" >&5
7120 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7121 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7122   echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124   case $MAGIC_CMD in
7125 [\\/*] |  ?:[\\/]*)
7126   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7127   ;;
7128 *)
7129   lt_save_MAGIC_CMD="$MAGIC_CMD"
7130   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7131   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7132   for ac_dir in $ac_dummy; do
7133     IFS="$lt_save_ifs"
7134     test -z "$ac_dir" && ac_dir=.
7135     if test -f $ac_dir/file; then
7136       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7137       if test -n "$file_magic_test_file"; then
7138         case $deplibs_check_method in
7139         "file_magic "*)
7140           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7141           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7142           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7143             $EGREP "$file_magic_regex" > /dev/null; then
7144             :
7145           else
7146             cat <<EOF 1>&2
7147
7148 *** Warning: the command libtool uses to detect shared libraries,
7149 *** $file_magic_cmd, produces output that libtool cannot recognize.
7150 *** The result is that libtool may fail to recognize shared libraries
7151 *** as such.  This will affect the creation of libtool libraries that
7152 *** depend on shared libraries, but programs linked with such libtool
7153 *** libraries will work regardless of this problem.  Nevertheless, you
7154 *** may want to report the problem to your system manager and/or to
7155 *** bug-libtool@gnu.org
7156
7157 EOF
7158           fi ;;
7159         esac
7160       fi
7161       break
7162     fi
7163   done
7164   IFS="$lt_save_ifs"
7165   MAGIC_CMD="$lt_save_MAGIC_CMD"
7166   ;;
7167 esac
7168 fi
7169
7170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7171 if test -n "$MAGIC_CMD"; then
7172   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7173 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7174 else
7175   { echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6; }
7177 fi
7178
7179   else
7180     MAGIC_CMD=:
7181   fi
7182 fi
7183
7184   fi
7185   ;;
7186 esac
7187
7188
7189   case $host_os in
7190     rhapsody* | darwin*)
7191     if test -n "$ac_tool_prefix"; then
7192   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7193 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7196 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7197   echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199   if test -n "$DSYMUTIL"; then
7200   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205   IFS=$as_save_IFS
7206   test -z "$as_dir" && as_dir=.
7207   for ac_exec_ext in '' $ac_executable_extensions; do
7208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7209     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211     break 2
7212   fi
7213 done
7214 done
7215 IFS=$as_save_IFS
7216
7217 fi
7218 fi
7219 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7220 if test -n "$DSYMUTIL"; then
7221   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7222 echo "${ECHO_T}$DSYMUTIL" >&6; }
7223 else
7224   { echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6; }
7226 fi
7227
7228
7229 fi
7230 if test -z "$ac_cv_prog_DSYMUTIL"; then
7231   ac_ct_DSYMUTIL=$DSYMUTIL
7232   # Extract the first word of "dsymutil", so it can be a program name with args.
7233 set dummy dsymutil; ac_word=$2
7234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7237   echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239   if test -n "$ac_ct_DSYMUTIL"; then
7240   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7241 else
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH
7244 do
7245   IFS=$as_save_IFS
7246   test -z "$as_dir" && as_dir=.
7247   for ac_exec_ext in '' $ac_executable_extensions; do
7248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7249     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251     break 2
7252   fi
7253 done
7254 done
7255 IFS=$as_save_IFS
7256
7257 fi
7258 fi
7259 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7260 if test -n "$ac_ct_DSYMUTIL"; then
7261   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7262 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7263 else
7264   { echo "$as_me:$LINENO: result: no" >&5
7265 echo "${ECHO_T}no" >&6; }
7266 fi
7267
7268   if test "x$ac_ct_DSYMUTIL" = x; then
7269     DSYMUTIL=":"
7270   else
7271     case $cross_compiling:$ac_tool_warned in
7272 yes:)
7273 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7274 whose name does not start with the host triplet.  If you think this
7275 configuration is useful to you, please write to autoconf@gnu.org." >&5
7276 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7277 whose name does not start with the host triplet.  If you think this
7278 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7279 ac_tool_warned=yes ;;
7280 esac
7281     DSYMUTIL=$ac_ct_DSYMUTIL
7282   fi
7283 else
7284   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7285 fi
7286
7287     if test -n "$ac_tool_prefix"; then
7288   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7289 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7292 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7293   echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295   if test -n "$NMEDIT"; then
7296   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7297 else
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301   IFS=$as_save_IFS
7302   test -z "$as_dir" && as_dir=.
7303   for ac_exec_ext in '' $ac_executable_extensions; do
7304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7305     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307     break 2
7308   fi
7309 done
7310 done
7311 IFS=$as_save_IFS
7312
7313 fi
7314 fi
7315 NMEDIT=$ac_cv_prog_NMEDIT
7316 if test -n "$NMEDIT"; then
7317   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7318 echo "${ECHO_T}$NMEDIT" >&6; }
7319 else
7320   { echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6; }
7322 fi
7323
7324
7325 fi
7326 if test -z "$ac_cv_prog_NMEDIT"; then
7327   ac_ct_NMEDIT=$NMEDIT
7328   # Extract the first word of "nmedit", so it can be a program name with args.
7329 set dummy nmedit; ac_word=$2
7330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7332 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7333   echo $ECHO_N "(cached) $ECHO_C" >&6
7334 else
7335   if test -n "$ac_ct_NMEDIT"; then
7336   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7337 else
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7340 do
7341   IFS=$as_save_IFS
7342   test -z "$as_dir" && as_dir=.
7343   for ac_exec_ext in '' $ac_executable_extensions; do
7344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7345     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347     break 2
7348   fi
7349 done
7350 done
7351 IFS=$as_save_IFS
7352
7353 fi
7354 fi
7355 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7356 if test -n "$ac_ct_NMEDIT"; then
7357   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7358 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7359 else
7360   { echo "$as_me:$LINENO: result: no" >&5
7361 echo "${ECHO_T}no" >&6; }
7362 fi
7363
7364   if test "x$ac_ct_NMEDIT" = x; then
7365     NMEDIT=":"
7366   else
7367     case $cross_compiling:$ac_tool_warned in
7368 yes:)
7369 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7370 whose name does not start with the host triplet.  If you think this
7371 configuration is useful to you, please write to autoconf@gnu.org." >&5
7372 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7373 whose name does not start with the host triplet.  If you think this
7374 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7375 ac_tool_warned=yes ;;
7376 esac
7377     NMEDIT=$ac_ct_NMEDIT
7378   fi
7379 else
7380   NMEDIT="$ac_cv_prog_NMEDIT"
7381 fi
7382
7383
7384     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7385 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7386 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7387   echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389   lt_cv_apple_cc_single_mod=no
7390       if test -z "${LT_MULTI_MODULE}"; then
7391    # By default we will add the -single_module flag. You can override
7392    # by either setting the environment variable LT_MULTI_MODULE
7393    # non-empty at configure time, or by adding -multi_module to the
7394    # link flags.
7395    echo "int foo(void){return 1;}" > conftest.c
7396    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7397      -dynamiclib ${wl}-single_module conftest.c
7398    if test -f libconftest.dylib; then
7399      lt_cv_apple_cc_single_mod=yes
7400      rm -rf libconftest.dylib*
7401    fi
7402    rm conftest.c
7403       fi
7404 fi
7405 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7406 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7407     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7408 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7409 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7410   echo $ECHO_N "(cached) $ECHO_C" >&6
7411 else
7412   lt_cv_ld_exported_symbols_list=no
7413       save_LDFLAGS=$LDFLAGS
7414       echo "_main" > conftest.sym
7415       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7416       cat >conftest.$ac_ext <<_ACEOF
7417 /* confdefs.h.  */
7418 _ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h.  */
7422
7423 int
7424 main ()
7425 {
7426
7427   ;
7428   return 0;
7429 }
7430 _ACEOF
7431 rm -f conftest.$ac_objext conftest$ac_exeext
7432 if { (ac_try="$ac_link"
7433 case "(($ac_try" in
7434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435   *) ac_try_echo=$ac_try;;
7436 esac
7437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438   (eval "$ac_link") 2>conftest.er1
7439   ac_status=$?
7440   grep -v '^ *+' conftest.er1 >conftest.err
7441   rm -f conftest.er1
7442   cat conftest.err >&5
7443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444   (exit $ac_status); } && {
7445          test -z "$ac_c_werror_flag" ||
7446          test ! -s conftest.err
7447        } && test -s conftest$ac_exeext &&
7448        $as_test_x conftest$ac_exeext; then
7449   lt_cv_ld_exported_symbols_list=yes
7450 else
7451   echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7453
7454         lt_cv_ld_exported_symbols_list=no
7455 fi
7456
7457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7458       conftest$ac_exeext conftest.$ac_ext
7459    LDFLAGS="$save_LDFLAGS"
7460
7461 fi
7462 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7463 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7464     case $host_os in
7465     rhapsody* | darwin1.[0123])
7466       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7467     darwin1.*)
7468      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7469     darwin*)
7470       # if running on 10.5 or later, the deployment target defaults
7471       # to the OS version, if on x86, and 10.4, the deployment
7472       # target defaults to 10.4. Don't you love it?
7473       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7474    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7475      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7476    10.[012]*)
7477      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7478    10.*)
7479      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7480       esac
7481     ;;
7482   esac
7483     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7484       _lt_dar_single_mod='$single_module'
7485     fi
7486     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7487       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7488     else
7489       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7490     fi
7491     if test "$DSYMUTIL" != ":"; then
7492       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7493     else
7494       _lt_dsymutil=
7495     fi
7496     ;;
7497   esac
7498
7499
7500 enable_dlopen=no
7501 enable_win32_dll=no
7502
7503 # Check whether --enable-libtool-lock was given.
7504 if test "${enable_libtool_lock+set}" = set; then
7505   enableval=$enable_libtool_lock;
7506 fi
7507
7508 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7509
7510
7511 # Check whether --with-pic was given.
7512 if test "${with_pic+set}" = set; then
7513   withval=$with_pic; pic_mode="$withval"
7514 else
7515   pic_mode=default
7516 fi
7517
7518 test -z "$pic_mode" && pic_mode=default
7519
7520 # Use C for the default configuration in the libtool script
7521 tagname=
7522 lt_save_CC="$CC"
7523 ac_ext=c
7524 ac_cpp='$CPP $CPPFLAGS'
7525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7528
7529
7530 # Source file extension for C test sources.
7531 ac_ext=c
7532
7533 # Object file extension for compiled C test sources.
7534 objext=o
7535 objext=$objext
7536
7537 # Code to be used in simple compile tests
7538 lt_simple_compile_test_code="int some_variable = 0;"
7539
7540 # Code to be used in simple link tests
7541 lt_simple_link_test_code='int main(){return(0);}'
7542
7543
7544 # If no C compiler was specified, use CC.
7545 LTCC=${LTCC-"$CC"}
7546
7547 # If no C compiler flags were specified, use CFLAGS.
7548 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7549
7550 # Allow CC to be a program name with arguments.
7551 compiler=$CC
7552
7553
7554 # save warnings/boilerplate of simple test code
7555 ac_outfile=conftest.$ac_objext
7556 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7557 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7558 _lt_compiler_boilerplate=`cat conftest.err`
7559 $rm conftest*
7560
7561 ac_outfile=conftest.$ac_objext
7562 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7563 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7564 _lt_linker_boilerplate=`cat conftest.err`
7565 $rm -r conftest*
7566
7567
7568
7569 lt_prog_compiler_no_builtin_flag=
7570
7571 if test "$GCC" = yes; then
7572   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7573
7574
7575 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7576 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7577 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7578   echo $ECHO_N "(cached) $ECHO_C" >&6
7579 else
7580   lt_cv_prog_compiler_rtti_exceptions=no
7581   ac_outfile=conftest.$ac_objext
7582    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7583    lt_compiler_flag="-fno-rtti -fno-exceptions"
7584    # Insert the option either (1) after the last *FLAGS variable, or
7585    # (2) before a word containing "conftest.", or (3) at the end.
7586    # Note that $ac_compile itself does not contain backslashes and begins
7587    # with a dollar sign (not a hyphen), so the echo should work correctly.
7588    # The option is referenced via a variable to avoid confusing sed.
7589    lt_compile=`echo "$ac_compile" | $SED \
7590    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7591    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7592    -e 's:$: $lt_compiler_flag:'`
7593    (eval echo "\"\$as_me:7593: $lt_compile\"" >&5)
7594    (eval "$lt_compile" 2>conftest.err)
7595    ac_status=$?
7596    cat conftest.err >&5
7597    echo "$as_me:7597: \$? = $ac_status" >&5
7598    if (exit $ac_status) && test -s "$ac_outfile"; then
7599      # The compiler can only warn and ignore the option if not recognized
7600      # So say no if there are warnings other than the usual output.
7601      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7602      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7603      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7604        lt_cv_prog_compiler_rtti_exceptions=yes
7605      fi
7606    fi
7607    $rm conftest*
7608
7609 fi
7610 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7611 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7612
7613 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7614     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7615 else
7616     :
7617 fi
7618
7619 fi
7620
7621 lt_prog_compiler_wl=
7622 lt_prog_compiler_pic=
7623 lt_prog_compiler_static=
7624
7625 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7626 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7627
7628   if test "$GCC" = yes; then
7629     lt_prog_compiler_wl='-Wl,'
7630     lt_prog_compiler_static='-static'
7631
7632     case $host_os in
7633       aix*)
7634       # All AIX code is PIC.
7635       if test "$host_cpu" = ia64; then
7636         # AIX 5 now supports IA64 processor
7637         lt_prog_compiler_static='-Bstatic'
7638       fi
7639       ;;
7640
7641     amigaos*)
7642       # FIXME: we need at least 68020 code to build shared libraries, but
7643       # adding the `-m68020' flag to GCC prevents building anything better,
7644       # like `-m68040'.
7645       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7646       ;;
7647
7648     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7649       # PIC is the default for these OSes.
7650       ;;
7651
7652     mingw* | cygwin* | pw32* | os2*)
7653       # This hack is so that the source file can tell whether it is being
7654       # built for inclusion in a dll (and should export symbols for example).
7655       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7656       # (--disable-auto-import) libraries
7657       lt_prog_compiler_pic='-DDLL_EXPORT'
7658       ;;
7659
7660     darwin* | rhapsody*)
7661       # PIC is the default on this platform
7662       # Common symbols not allowed in MH_DYLIB files
7663       lt_prog_compiler_pic='-fno-common'
7664       ;;
7665
7666     interix[3-9]*)
7667       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7668       # Instead, we relocate shared libraries at runtime.
7669       ;;
7670
7671     msdosdjgpp*)
7672       # Just because we use GCC doesn't mean we suddenly get shared libraries
7673       # on systems that don't support them.
7674       lt_prog_compiler_can_build_shared=no
7675       enable_shared=no
7676       ;;
7677
7678     sysv4*MP*)
7679       if test -d /usr/nec; then
7680         lt_prog_compiler_pic=-Kconform_pic
7681       fi
7682       ;;
7683
7684     hpux*)
7685       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7686       # not for PA HP-UX.
7687       case $host_cpu in
7688       hppa*64*|ia64*)
7689         # +Z the default
7690         ;;
7691       *)
7692         lt_prog_compiler_pic='-fPIC'
7693         ;;
7694       esac
7695       ;;
7696
7697     *)
7698       lt_prog_compiler_pic='-fPIC'
7699       ;;
7700     esac
7701   else
7702     # PORTME Check for flag to pass linker flags through the system compiler.
7703     case $host_os in
7704     aix*)
7705       lt_prog_compiler_wl='-Wl,'
7706       if test "$host_cpu" = ia64; then
7707         # AIX 5 now supports IA64 processor
7708         lt_prog_compiler_static='-Bstatic'
7709       else
7710         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7711       fi
7712       ;;
7713       darwin*)
7714         # PIC is the default on this platform
7715         # Common symbols not allowed in MH_DYLIB files
7716        case $cc_basename in
7717          xlc*)
7718          lt_prog_compiler_pic='-qnocommon'
7719          lt_prog_compiler_wl='-Wl,'
7720          ;;
7721        esac
7722        ;;
7723
7724     mingw* | cygwin* | pw32* | os2*)
7725       # This hack is so that the source file can tell whether it is being
7726       # built for inclusion in a dll (and should export symbols for example).
7727       lt_prog_compiler_pic='-DDLL_EXPORT'
7728       ;;
7729
7730     hpux9* | hpux10* | hpux11*)
7731       lt_prog_compiler_wl='-Wl,'
7732       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7733       # not for PA HP-UX.
7734       case $host_cpu in
7735       hppa*64*|ia64*)
7736         # +Z the default
7737         ;;
7738       *)
7739         lt_prog_compiler_pic='+Z'
7740         ;;
7741       esac
7742       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7743       lt_prog_compiler_static='${wl}-a ${wl}archive'
7744       ;;
7745
7746     irix5* | irix6* | nonstopux*)
7747       lt_prog_compiler_wl='-Wl,'
7748       # PIC (with -KPIC) is the default.
7749       lt_prog_compiler_static='-non_shared'
7750       ;;
7751
7752     newsos6)
7753       lt_prog_compiler_pic='-KPIC'
7754       lt_prog_compiler_static='-Bstatic'
7755       ;;
7756
7757     linux* | k*bsd*-gnu)
7758       case $cc_basename in
7759       icc* | ecc*)
7760         lt_prog_compiler_wl='-Wl,'
7761         lt_prog_compiler_pic='-KPIC'
7762         lt_prog_compiler_static='-static'
7763         ;;
7764       pgcc* | pgf77* | pgf90* | pgf95*)
7765         # Portland Group compilers (*not* the Pentium gcc compiler,
7766         # which looks to be a dead project)
7767         lt_prog_compiler_wl='-Wl,'
7768         lt_prog_compiler_pic='-fpic'
7769         lt_prog_compiler_static='-Bstatic'
7770         ;;
7771       ccc*)
7772         lt_prog_compiler_wl='-Wl,'
7773         # All Alpha code is PIC.
7774         lt_prog_compiler_static='-non_shared'
7775         ;;
7776       *)
7777         case `$CC -V 2>&1 | sed 5q` in
7778         *Sun\ C*)
7779           # Sun C 5.9
7780           lt_prog_compiler_pic='-KPIC'
7781           lt_prog_compiler_static='-Bstatic'
7782           lt_prog_compiler_wl='-Wl,'
7783           ;;
7784         *Sun\ F*)
7785           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7786           lt_prog_compiler_pic='-KPIC'
7787           lt_prog_compiler_static='-Bstatic'
7788           lt_prog_compiler_wl=''
7789           ;;
7790         esac
7791         ;;
7792       esac
7793       ;;
7794
7795     osf3* | osf4* | osf5*)
7796       lt_prog_compiler_wl='-Wl,'
7797       # All OSF/1 code is PIC.
7798       lt_prog_compiler_static='-non_shared'
7799       ;;
7800
7801     rdos*)
7802       lt_prog_compiler_static='-non_shared'
7803       ;;
7804
7805     solaris*)
7806       lt_prog_compiler_pic='-KPIC'
7807       lt_prog_compiler_static='-Bstatic'
7808       case $cc_basename in
7809       f77* | f90* | f95*)
7810         lt_prog_compiler_wl='-Qoption ld ';;
7811       *)
7812         lt_prog_compiler_wl='-Wl,';;
7813       esac
7814       ;;
7815
7816     sunos4*)
7817       lt_prog_compiler_wl='-Qoption ld '
7818       lt_prog_compiler_pic='-PIC'
7819       lt_prog_compiler_static='-Bstatic'
7820       ;;
7821
7822     sysv4 | sysv4.2uw2* | sysv4.3*)
7823       lt_prog_compiler_wl='-Wl,'
7824       lt_prog_compiler_pic='-KPIC'
7825       lt_prog_compiler_static='-Bstatic'
7826       ;;
7827
7828     sysv4*MP*)
7829       if test -d /usr/nec ;then
7830         lt_prog_compiler_pic='-Kconform_pic'
7831         lt_prog_compiler_static='-Bstatic'
7832       fi
7833       ;;
7834
7835     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7836       lt_prog_compiler_wl='-Wl,'
7837       lt_prog_compiler_pic='-KPIC'
7838       lt_prog_compiler_static='-Bstatic'
7839       ;;
7840
7841     unicos*)
7842       lt_prog_compiler_wl='-Wl,'
7843       lt_prog_compiler_can_build_shared=no
7844       ;;
7845
7846     uts4*)
7847       lt_prog_compiler_pic='-pic'
7848       lt_prog_compiler_static='-Bstatic'
7849       ;;
7850
7851     *)
7852       lt_prog_compiler_can_build_shared=no
7853       ;;
7854     esac
7855   fi
7856
7857 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7858 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7859
7860 #
7861 # Check to make sure the PIC flag actually works.
7862 #
7863 if test -n "$lt_prog_compiler_pic"; then
7864
7865 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7866 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7867 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7868   echo $ECHO_N "(cached) $ECHO_C" >&6
7869 else
7870   lt_cv_prog_compiler_pic_works=no
7871   ac_outfile=conftest.$ac_objext
7872    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7873    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7874    # Insert the option either (1) after the last *FLAGS variable, or
7875    # (2) before a word containing "conftest.", or (3) at the end.
7876    # Note that $ac_compile itself does not contain backslashes and begins
7877    # with a dollar sign (not a hyphen), so the echo should work correctly.
7878    # The option is referenced via a variable to avoid confusing sed.
7879    lt_compile=`echo "$ac_compile" | $SED \
7880    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7881    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7882    -e 's:$: $lt_compiler_flag:'`
7883    (eval echo "\"\$as_me:7883: $lt_compile\"" >&5)
7884    (eval "$lt_compile" 2>conftest.err)
7885    ac_status=$?
7886    cat conftest.err >&5
7887    echo "$as_me:7887: \$? = $ac_status" >&5
7888    if (exit $ac_status) && test -s "$ac_outfile"; then
7889      # The compiler can only warn and ignore the option if not recognized
7890      # So say no if there are warnings other than the usual output.
7891      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7892      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7893      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7894        lt_cv_prog_compiler_pic_works=yes
7895      fi
7896    fi
7897    $rm conftest*
7898
7899 fi
7900 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7901 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7902
7903 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7904     case $lt_prog_compiler_pic in
7905      "" | " "*) ;;
7906      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7907      esac
7908 else
7909     lt_prog_compiler_pic=
7910      lt_prog_compiler_can_build_shared=no
7911 fi
7912
7913 fi
7914 case $host_os in
7915   # For platforms which do not support PIC, -DPIC is meaningless:
7916   *djgpp*)
7917     lt_prog_compiler_pic=
7918     ;;
7919   *)
7920     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7921     ;;
7922 esac
7923
7924 #
7925 # Check to make sure the static flag actually works.
7926 #
7927 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7928 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7929 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7930 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7931   echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933   lt_cv_prog_compiler_static_works=no
7934    save_LDFLAGS="$LDFLAGS"
7935    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7936    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7937    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7938      # The linker can only warn and ignore the option if not recognized
7939      # So say no if there are warnings
7940      if test -s conftest.err; then
7941        # Append any errors to the config.log.
7942        cat conftest.err 1>&5
7943        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7944        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7945        if diff conftest.exp conftest.er2 >/dev/null; then
7946          lt_cv_prog_compiler_static_works=yes
7947        fi
7948      else
7949        lt_cv_prog_compiler_static_works=yes
7950      fi
7951    fi
7952    $rm -r conftest*
7953    LDFLAGS="$save_LDFLAGS"
7954
7955 fi
7956 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7957 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7958
7959 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7960     :
7961 else
7962     lt_prog_compiler_static=
7963 fi
7964
7965
7966 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7967 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7968 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7969   echo $ECHO_N "(cached) $ECHO_C" >&6
7970 else
7971   lt_cv_prog_compiler_c_o=no
7972    $rm -r conftest 2>/dev/null
7973    mkdir conftest
7974    cd conftest
7975    mkdir out
7976    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7977
7978    lt_compiler_flag="-o out/conftest2.$ac_objext"
7979    # Insert the option either (1) after the last *FLAGS variable, or
7980    # (2) before a word containing "conftest.", or (3) at the end.
7981    # Note that $ac_compile itself does not contain backslashes and begins
7982    # with a dollar sign (not a hyphen), so the echo should work correctly.
7983    lt_compile=`echo "$ac_compile" | $SED \
7984    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7985    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7986    -e 's:$: $lt_compiler_flag:'`
7987    (eval echo "\"\$as_me:7987: $lt_compile\"" >&5)
7988    (eval "$lt_compile" 2>out/conftest.err)
7989    ac_status=$?
7990    cat out/conftest.err >&5
7991    echo "$as_me:7991: \$? = $ac_status" >&5
7992    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7993    then
7994      # The compiler can only warn and ignore the option if not recognized
7995      # So say no if there are warnings
7996      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7997      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7998      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7999        lt_cv_prog_compiler_c_o=yes
8000      fi
8001    fi
8002    chmod u+w . 2>&5
8003    $rm conftest*
8004    # SGI C++ compiler will create directory out/ii_files/ for
8005    # template instantiation
8006    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8007    $rm out/* && rmdir out
8008    cd ..
8009    rmdir conftest
8010    $rm conftest*
8011
8012 fi
8013 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8014 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8015
8016
8017 hard_links="nottested"
8018 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8019   # do not overwrite the value of need_locks provided by the user
8020   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8021 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8022   hard_links=yes
8023   $rm conftest*
8024   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8025   touch conftest.a
8026   ln conftest.a conftest.b 2>&5 || hard_links=no
8027   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8028   { echo "$as_me:$LINENO: result: $hard_links" >&5
8029 echo "${ECHO_T}$hard_links" >&6; }
8030   if test "$hard_links" = no; then
8031     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8032 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8033     need_locks=warn
8034   fi
8035 else
8036   need_locks=no
8037 fi
8038
8039 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8040 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8041
8042   runpath_var=
8043   allow_undefined_flag=
8044   enable_shared_with_static_runtimes=no
8045   archive_cmds=
8046   archive_expsym_cmds=
8047   old_archive_From_new_cmds=
8048   old_archive_from_expsyms_cmds=
8049   export_dynamic_flag_spec=
8050   whole_archive_flag_spec=
8051   thread_safe_flag_spec=
8052   hardcode_libdir_flag_spec=
8053   hardcode_libdir_flag_spec_ld=
8054   hardcode_libdir_separator=
8055   hardcode_direct=no
8056   hardcode_minus_L=no
8057   hardcode_shlibpath_var=unsupported
8058   link_all_deplibs=unknown
8059   hardcode_automatic=no
8060   module_cmds=
8061   module_expsym_cmds=
8062   always_export_symbols=no
8063   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8064   # include_expsyms should be a list of space-separated symbols to be *always*
8065   # included in the symbol list
8066   include_expsyms=
8067   # exclude_expsyms can be an extended regexp of symbols to exclude
8068   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8069   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8070   # as well as any symbol that contains `d'.
8071   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8072   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8073   # platforms (ab)use it in PIC code, but their linkers get confused if
8074   # the symbol is explicitly referenced.  Since portable code cannot
8075   # rely on this symbol name, it's probably fine to never include it in
8076   # preloaded symbol tables.
8077   # Exclude shared library initialization/finalization symbols.
8078   extract_expsyms_cmds=
8079   # Just being paranoid about ensuring that cc_basename is set.
8080   for cc_temp in $compiler""; do
8081   case $cc_temp in
8082     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8083     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8084     \-*) ;;
8085     *) break;;
8086   esac
8087 done
8088 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8089
8090   case $host_os in
8091   cygwin* | mingw* | pw32*)
8092     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8093     # When not using gcc, we currently assume that we are using
8094     # Microsoft Visual C++.
8095     if test "$GCC" != yes; then
8096       with_gnu_ld=no
8097     fi
8098     ;;
8099   interix*)
8100     # we just hope/assume this is gcc and not c89 (= MSVC++)
8101     with_gnu_ld=yes
8102     ;;
8103   openbsd*)
8104     with_gnu_ld=no
8105     ;;
8106   esac
8107
8108   ld_shlibs=yes
8109   if test "$with_gnu_ld" = yes; then
8110     # If archive_cmds runs LD, not CC, wlarc should be empty
8111     wlarc='${wl}'
8112
8113     # Set some defaults for GNU ld with shared library support. These
8114     # are reset later if shared libraries are not supported. Putting them
8115     # here allows them to be overridden if necessary.
8116     runpath_var=LD_RUN_PATH
8117     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8118     export_dynamic_flag_spec='${wl}--export-dynamic'
8119     # ancient GNU ld didn't support --whole-archive et. al.
8120     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8121         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8122       else
8123         whole_archive_flag_spec=
8124     fi
8125     supports_anon_versioning=no
8126     case `$LD -v 2>/dev/null` in
8127       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8128       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8129       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8130       *\ 2.11.*) ;; # other 2.11 versions
8131       *) supports_anon_versioning=yes ;;
8132     esac
8133
8134     # See if GNU ld supports shared libraries.
8135     case $host_os in
8136     aix[3-9]*)
8137       # On AIX/PPC, the GNU linker is very broken
8138       if test "$host_cpu" != ia64; then
8139         ld_shlibs=no
8140         cat <<EOF 1>&2
8141
8142 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8143 *** to be unable to reliably create shared libraries on AIX.
8144 *** Therefore, libtool is disabling shared libraries support.  If you
8145 *** really care for shared libraries, you may want to modify your PATH
8146 *** so that a non-GNU linker is found, and then restart.
8147
8148 EOF
8149       fi
8150       ;;
8151
8152     amigaos*)
8153       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8154       hardcode_libdir_flag_spec='-L$libdir'
8155       hardcode_minus_L=yes
8156
8157       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8158       # that the semantics of dynamic libraries on AmigaOS, at least up
8159       # to version 4, is to share data among multiple programs linked
8160       # with the same dynamic library.  Since this doesn't match the
8161       # behavior of shared libraries on other platforms, we can't use
8162       # them.
8163       ld_shlibs=no
8164       ;;
8165
8166     beos*)
8167       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8168         allow_undefined_flag=unsupported
8169         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8170         # support --undefined.  This deserves some investigation.  FIXME
8171         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8172       else
8173         ld_shlibs=no
8174       fi
8175       ;;
8176
8177     cygwin* | mingw* | pw32*)
8178       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8179       # as there is no search path for DLLs.
8180       hardcode_libdir_flag_spec='-L$libdir'
8181       allow_undefined_flag=unsupported
8182       always_export_symbols=no
8183       enable_shared_with_static_runtimes=yes
8184       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8185
8186       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8187         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8188         # If the export-symbols file already is a .def file (1st line
8189         # is EXPORTS), use it as is; otherwise, prepend...
8190         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8191           cp $export_symbols $output_objdir/$soname.def;
8192         else
8193           echo EXPORTS > $output_objdir/$soname.def;
8194           cat $export_symbols >> $output_objdir/$soname.def;
8195         fi~
8196         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8197       else
8198         ld_shlibs=no
8199       fi
8200       ;;
8201
8202     interix[3-9]*)
8203       hardcode_direct=no
8204       hardcode_shlibpath_var=no
8205       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8206       export_dynamic_flag_spec='${wl}-E'
8207       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8208       # Instead, shared libraries are loaded at an image base (0x10000000 by
8209       # default) and relocated if they conflict, which is a slow very memory
8210       # consuming and fragmenting process.  To avoid this, we pick a random,
8211       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8212       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8213       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8214       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8215       ;;
8216
8217     gnu* | linux* | k*bsd*-gnu)
8218       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8219         tmp_addflag=
8220         case $cc_basename,$host_cpu in
8221         pgcc*)                          # Portland Group C compiler
8222           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8223           tmp_addflag=' $pic_flag'
8224           ;;
8225         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8226           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8227           tmp_addflag=' $pic_flag -Mnomain' ;;
8228         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8229           tmp_addflag=' -i_dynamic' ;;
8230         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8231           tmp_addflag=' -i_dynamic -nofor_main' ;;
8232         ifc* | ifort*)                  # Intel Fortran compiler
8233           tmp_addflag=' -nofor_main' ;;
8234         esac
8235         case `$CC -V 2>&1 | sed 5q` in
8236         *Sun\ C*)                       # Sun C 5.9
8237           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8238           tmp_sharedflag='-G' ;;
8239         *Sun\ F*)                       # Sun Fortran 8.3
8240           tmp_sharedflag='-G' ;;
8241         *)
8242           tmp_sharedflag='-shared' ;;
8243         esac
8244         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8245
8246         if test $supports_anon_versioning = yes; then
8247           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8248   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8249   $echo "local: *; };" >> $output_objdir/$libname.ver~
8250           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8251         fi
8252         link_all_deplibs=no
8253       else
8254         ld_shlibs=no
8255       fi
8256       ;;
8257
8258     netbsd* | netbsdelf*-gnu)
8259       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8260         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8261         wlarc=
8262       else
8263         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8264         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8265       fi
8266       ;;
8267
8268     solaris*)
8269       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8270         ld_shlibs=no
8271         cat <<EOF 1>&2
8272
8273 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8274 *** create shared libraries on Solaris systems.  Therefore, libtool
8275 *** is disabling shared libraries support.  We urge you to upgrade GNU
8276 *** binutils to release 2.9.1 or newer.  Another option is to modify
8277 *** your PATH or compiler configuration so that the native linker is
8278 *** used, and then restart.
8279
8280 EOF
8281       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8282         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8283         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8284       else
8285         ld_shlibs=no
8286       fi
8287       ;;
8288
8289     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8290       case `$LD -v 2>&1` in
8291         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8292         ld_shlibs=no
8293         cat <<_LT_EOF 1>&2
8294
8295 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8296 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8297 *** is disabling shared libraries support.  We urge you to upgrade GNU
8298 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8299 *** your PATH or compiler configuration so that the native linker is
8300 *** used, and then restart.
8301
8302 _LT_EOF
8303         ;;
8304         *)
8305           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8306             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8307             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8308             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8309           else
8310             ld_shlibs=no
8311           fi
8312         ;;
8313       esac
8314       ;;
8315
8316     sunos4*)
8317       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8318       wlarc=
8319       hardcode_direct=yes
8320       hardcode_shlibpath_var=no
8321       ;;
8322
8323     *)
8324       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8325         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8326         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8327       else
8328         ld_shlibs=no
8329       fi
8330       ;;
8331     esac
8332
8333     if test "$ld_shlibs" = no; then
8334       runpath_var=
8335       hardcode_libdir_flag_spec=
8336       export_dynamic_flag_spec=
8337       whole_archive_flag_spec=
8338     fi
8339   else
8340     # PORTME fill in a description of your system's linker (not GNU ld)
8341     case $host_os in
8342     aix3*)
8343       allow_undefined_flag=unsupported
8344       always_export_symbols=yes
8345       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8346       # Note: this linker hardcodes the directories in LIBPATH if there
8347       # are no directories specified by -L.
8348       hardcode_minus_L=yes
8349       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8350         # Neither direct hardcoding nor static linking is supported with a
8351         # broken collect2.
8352         hardcode_direct=unsupported
8353       fi
8354       ;;
8355
8356     aix[4-9]*)
8357       if test "$host_cpu" = ia64; then
8358         # On IA64, the linker does run time linking by default, so we don't
8359         # have to do anything special.
8360         aix_use_runtimelinking=no
8361         exp_sym_flag='-Bexport'
8362         no_entry_flag=""
8363       else
8364         # If we're using GNU nm, then we don't want the "-C" option.
8365         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8366         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8367           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8368         else
8369           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8370         fi
8371         aix_use_runtimelinking=no
8372
8373         # Test if we are trying to use run time linking or normal
8374         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8375         # need to do runtime linking.
8376         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8377           for ld_flag in $LDFLAGS; do
8378           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8379             aix_use_runtimelinking=yes
8380             break
8381           fi
8382           done
8383           ;;
8384         esac
8385
8386         exp_sym_flag='-bexport'
8387         no_entry_flag='-bnoentry'
8388       fi
8389
8390       # When large executables or shared objects are built, AIX ld can
8391       # have problems creating the table of contents.  If linking a library
8392       # or program results in "error TOC overflow" add -mminimal-toc to
8393       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8394       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8395
8396       archive_cmds=''
8397       hardcode_direct=yes
8398       hardcode_libdir_separator=':'
8399       link_all_deplibs=yes
8400
8401       if test "$GCC" = yes; then
8402         case $host_os in aix4.[012]|aix4.[012].*)
8403         # We only want to do this on AIX 4.2 and lower, the check
8404         # below for broken collect2 doesn't work under 4.3+
8405           collect2name=`${CC} -print-prog-name=collect2`
8406           if test -f "$collect2name" && \
8407            strings "$collect2name" | grep resolve_lib_name >/dev/null
8408           then
8409           # We have reworked collect2
8410           :
8411           else
8412           # We have old collect2
8413           hardcode_direct=unsupported
8414           # It fails to find uninstalled libraries when the uninstalled
8415           # path is not listed in the libpath.  Setting hardcode_minus_L
8416           # to unsupported forces relinking
8417           hardcode_minus_L=yes
8418           hardcode_libdir_flag_spec='-L$libdir'
8419           hardcode_libdir_separator=
8420           fi
8421           ;;
8422         esac
8423         shared_flag='-shared'
8424         if test "$aix_use_runtimelinking" = yes; then
8425           shared_flag="$shared_flag "'${wl}-G'
8426         fi
8427       else
8428         # not using gcc
8429         if test "$host_cpu" = ia64; then
8430         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8431         # chokes on -Wl,-G. The following line is correct:
8432           shared_flag='-G'
8433         else
8434           if test "$aix_use_runtimelinking" = yes; then
8435             shared_flag='${wl}-G'
8436           else
8437             shared_flag='${wl}-bM:SRE'
8438           fi
8439         fi
8440       fi
8441
8442       # It seems that -bexpall does not export symbols beginning with
8443       # underscore (_), so it is better to generate a list of symbols to export.
8444       always_export_symbols=yes
8445       if test "$aix_use_runtimelinking" = yes; then
8446         # Warning - without using the other runtime loading flags (-brtl),
8447         # -berok will link without error, but may produce a broken library.
8448         allow_undefined_flag='-berok'
8449        # Determine the default libpath from the value encoded in an empty executable.
8450        cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h.  */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h.  */
8456
8457 int
8458 main ()
8459 {
8460
8461   ;
8462   return 0;
8463 }
8464 _ACEOF
8465 rm -f conftest.$ac_objext conftest$ac_exeext
8466 if { (ac_try="$ac_link"
8467 case "(($ac_try" in
8468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469   *) ac_try_echo=$ac_try;;
8470 esac
8471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472   (eval "$ac_link") 2>conftest.er1
8473   ac_status=$?
8474   grep -v '^ *+' conftest.er1 >conftest.err
8475   rm -f conftest.er1
8476   cat conftest.err >&5
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); } && {
8479          test -z "$ac_c_werror_flag" ||
8480          test ! -s conftest.err
8481        } && test -s conftest$ac_exeext &&
8482        $as_test_x conftest$ac_exeext; then
8483
8484 lt_aix_libpath_sed='
8485     /Import File Strings/,/^$/ {
8486         /^0/ {
8487             s/^0  *\(.*\)$/\1/
8488             p
8489         }
8490     }'
8491 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8492 # Check for a 64-bit object if we didn't find anything.
8493 if test -z "$aix_libpath"; then
8494   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8495 fi
8496 else
8497   echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8499
8500
8501 fi
8502
8503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8504       conftest$ac_exeext conftest.$ac_ext
8505 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8506
8507        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8508         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8509        else
8510         if test "$host_cpu" = ia64; then
8511           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8512           allow_undefined_flag="-z nodefs"
8513           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8514         else
8515          # Determine the default libpath from the value encoded in an empty executable.
8516          cat >conftest.$ac_ext <<_ACEOF
8517 /* confdefs.h.  */
8518 _ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h.  */
8522
8523 int
8524 main ()
8525 {
8526
8527   ;
8528   return 0;
8529 }
8530 _ACEOF
8531 rm -f conftest.$ac_objext conftest$ac_exeext
8532 if { (ac_try="$ac_link"
8533 case "(($ac_try" in
8534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535   *) ac_try_echo=$ac_try;;
8536 esac
8537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538   (eval "$ac_link") 2>conftest.er1
8539   ac_status=$?
8540   grep -v '^ *+' conftest.er1 >conftest.err
8541   rm -f conftest.er1
8542   cat conftest.err >&5
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); } && {
8545          test -z "$ac_c_werror_flag" ||
8546          test ! -s conftest.err
8547        } && test -s conftest$ac_exeext &&
8548        $as_test_x conftest$ac_exeext; then
8549
8550 lt_aix_libpath_sed='
8551     /Import File Strings/,/^$/ {
8552         /^0/ {
8553             s/^0  *\(.*\)$/\1/
8554             p
8555         }
8556     }'
8557 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8558 # Check for a 64-bit object if we didn't find anything.
8559 if test -z "$aix_libpath"; then
8560   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8561 fi
8562 else
8563   echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8565
8566
8567 fi
8568
8569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8570       conftest$ac_exeext conftest.$ac_ext
8571 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8572
8573          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8574           # Warning - without using the other run time loading flags,
8575           # -berok will link without error, but may produce a broken library.
8576           no_undefined_flag=' ${wl}-bernotok'
8577           allow_undefined_flag=' ${wl}-berok'
8578           # Exported symbols can be pulled into shared objects from archives
8579           whole_archive_flag_spec='$convenience'
8580           archive_cmds_need_lc=yes
8581           # This is similar to how AIX traditionally builds its shared libraries.
8582           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8583         fi
8584       fi
8585       ;;
8586
8587     amigaos*)
8588       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8589       hardcode_libdir_flag_spec='-L$libdir'
8590       hardcode_minus_L=yes
8591       # see comment about different semantics on the GNU ld section
8592       ld_shlibs=no
8593       ;;
8594
8595     bsdi[45]*)
8596       export_dynamic_flag_spec=-rdynamic
8597       ;;
8598
8599     cygwin* | mingw* | pw32*)
8600       # When not using gcc, we currently assume that we are using
8601       # Microsoft Visual C++.
8602       # hardcode_libdir_flag_spec is actually meaningless, as there is
8603       # no search path for DLLs.
8604       hardcode_libdir_flag_spec=' '
8605       allow_undefined_flag=unsupported
8606       # Tell ltmain to make .lib files, not .a files.
8607       libext=lib
8608       # Tell ltmain to make .dll files, not .so files.
8609       shrext_cmds=".dll"
8610       # FIXME: Setting linknames here is a bad hack.
8611       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8612       # The linker will automatically build a .lib file if we build a DLL.
8613       old_archive_From_new_cmds='true'
8614       # FIXME: Should let the user specify the lib program.
8615       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8616       fix_srcfile_path='`cygpath -w "$srcfile"`'
8617       enable_shared_with_static_runtimes=yes
8618       ;;
8619
8620     darwin* | rhapsody*)
8621       case $host_os in
8622         rhapsody* | darwin1.[012])
8623          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8624          ;;
8625        *) # Darwin 1.3 on
8626          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8627            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8628          else
8629            case ${MACOSX_DEPLOYMENT_TARGET} in
8630              10.[012])
8631                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8632                ;;
8633              10.*)
8634                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8635                ;;
8636            esac
8637          fi
8638          ;;
8639       esac
8640       archive_cmds_need_lc=no
8641       hardcode_direct=no
8642       hardcode_automatic=yes
8643       hardcode_shlibpath_var=unsupported
8644       whole_archive_flag_spec=''
8645       link_all_deplibs=yes
8646     if test "$GCC" = yes ; then
8647         output_verbose_link_cmd='echo'
8648         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8649         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8650         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8651         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8652     else
8653       case $cc_basename in
8654         xlc*)
8655          output_verbose_link_cmd='echo'
8656          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8657          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8658           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8659          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8660           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8661           ;;
8662        *)
8663          ld_shlibs=no
8664           ;;
8665       esac
8666     fi
8667       ;;
8668
8669     dgux*)
8670       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8671       hardcode_libdir_flag_spec='-L$libdir'
8672       hardcode_shlibpath_var=no
8673       ;;
8674
8675     freebsd1*)
8676       ld_shlibs=no
8677       ;;
8678
8679     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8680     # support.  Future versions do this automatically, but an explicit c++rt0.o
8681     # does not break anything, and helps significantly (at the cost of a little
8682     # extra space).
8683     freebsd2.2*)
8684       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8685       hardcode_libdir_flag_spec='-R$libdir'
8686       hardcode_direct=yes
8687       hardcode_shlibpath_var=no
8688       ;;
8689
8690     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8691     freebsd2*)
8692       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8693       hardcode_direct=yes
8694       hardcode_minus_L=yes
8695       hardcode_shlibpath_var=no
8696       ;;
8697
8698     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8699     freebsd* | dragonfly*)
8700       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8701       hardcode_libdir_flag_spec='-R$libdir'
8702       hardcode_direct=yes
8703       hardcode_shlibpath_var=no
8704       ;;
8705
8706     hpux9*)
8707       if test "$GCC" = yes; then
8708         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8709       else
8710         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8711       fi
8712       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8713       hardcode_libdir_separator=:
8714       hardcode_direct=yes
8715
8716       # hardcode_minus_L: Not really in the search PATH,
8717       # but as the default location of the library.
8718       hardcode_minus_L=yes
8719       export_dynamic_flag_spec='${wl}-E'
8720       ;;
8721
8722     hpux10*)
8723       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8724         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8725       else
8726         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8727       fi
8728       if test "$with_gnu_ld" = no; then
8729         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8730         hardcode_libdir_separator=:
8731
8732         hardcode_direct=yes
8733         export_dynamic_flag_spec='${wl}-E'
8734
8735         # hardcode_minus_L: Not really in the search PATH,
8736         # but as the default location of the library.
8737         hardcode_minus_L=yes
8738       fi
8739       ;;
8740
8741     hpux11*)
8742       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8743         case $host_cpu in
8744         hppa*64*)
8745           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8746           ;;
8747         ia64*)
8748           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8749           ;;
8750         *)
8751           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8752           ;;
8753         esac
8754       else
8755         case $host_cpu in
8756         hppa*64*)
8757           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8758           ;;
8759         ia64*)
8760           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8761           ;;
8762         *)
8763           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8764           ;;
8765         esac
8766       fi
8767       if test "$with_gnu_ld" = no; then
8768         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8769         hardcode_libdir_separator=:
8770
8771         case $host_cpu in
8772         hppa*64*|ia64*)
8773           hardcode_libdir_flag_spec_ld='+b $libdir'
8774           hardcode_direct=no
8775           hardcode_shlibpath_var=no
8776           ;;
8777         *)
8778           hardcode_direct=yes
8779           export_dynamic_flag_spec='${wl}-E'
8780
8781           # hardcode_minus_L: Not really in the search PATH,
8782           # but as the default location of the library.
8783           hardcode_minus_L=yes
8784           ;;
8785         esac
8786       fi
8787       ;;
8788
8789     irix5* | irix6* | nonstopux*)
8790       if test "$GCC" = yes; then
8791         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8792       else
8793         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8794         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8795       fi
8796       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8797       hardcode_libdir_separator=:
8798       link_all_deplibs=yes
8799       ;;
8800
8801     netbsd* | netbsdelf*-gnu)
8802       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8803         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8804       else
8805         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8806       fi
8807       hardcode_libdir_flag_spec='-R$libdir'
8808       hardcode_direct=yes
8809       hardcode_shlibpath_var=no
8810       ;;
8811
8812     newsos6)
8813       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8814       hardcode_direct=yes
8815       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8816       hardcode_libdir_separator=:
8817       hardcode_shlibpath_var=no
8818       ;;
8819
8820     openbsd*)
8821       if test -f /usr/libexec/ld.so; then
8822         hardcode_direct=yes
8823         hardcode_shlibpath_var=no
8824         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8825           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8826           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8827           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8828           export_dynamic_flag_spec='${wl}-E'
8829         else
8830           case $host_os in
8831            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8832              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8833              hardcode_libdir_flag_spec='-R$libdir'
8834              ;;
8835            *)
8836              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8837              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8838              ;;
8839           esac
8840         fi
8841       else
8842         ld_shlibs=no
8843       fi
8844       ;;
8845
8846     os2*)
8847       hardcode_libdir_flag_spec='-L$libdir'
8848       hardcode_minus_L=yes
8849       allow_undefined_flag=unsupported
8850       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8851       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8852       ;;
8853
8854     osf3*)
8855       if test "$GCC" = yes; then
8856         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8857         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8858       else
8859         allow_undefined_flag=' -expect_unresolved \*'
8860         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8861       fi
8862       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8863       hardcode_libdir_separator=:
8864       ;;
8865
8866     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8867       if test "$GCC" = yes; then
8868         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8869         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8870         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8871       else
8872         allow_undefined_flag=' -expect_unresolved \*'
8873         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8874         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8875         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8876
8877         # Both c and cxx compiler support -rpath directly
8878         hardcode_libdir_flag_spec='-rpath $libdir'
8879       fi
8880       hardcode_libdir_separator=:
8881       ;;
8882
8883     solaris*)
8884       no_undefined_flag=' -z text'
8885       if test "$GCC" = yes; then
8886         wlarc='${wl}'
8887         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8888         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8889           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8890       else
8891         wlarc=''
8892         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8893         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8894         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8895       fi
8896       hardcode_libdir_flag_spec='-R$libdir'
8897       hardcode_shlibpath_var=no
8898       case $host_os in
8899       solaris2.[0-5] | solaris2.[0-5].*) ;;
8900       *)
8901         # The compiler driver will combine and reorder linker options,
8902         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8903         # but is careful enough not to reorder.
8904         # Supported since Solaris 2.6 (maybe 2.5.1?)
8905         if test "$GCC" = yes; then
8906           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8907         else
8908           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8909         fi
8910         ;;
8911       esac
8912       link_all_deplibs=yes
8913       ;;
8914
8915     sunos4*)
8916       if test "x$host_vendor" = xsequent; then
8917         # Use $CC to link under sequent, because it throws in some extra .o
8918         # files that make .init and .fini sections work.
8919         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8920       else
8921         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8922       fi
8923       hardcode_libdir_flag_spec='-L$libdir'
8924       hardcode_direct=yes
8925       hardcode_minus_L=yes
8926       hardcode_shlibpath_var=no
8927       ;;
8928
8929     sysv4)
8930       case $host_vendor in
8931         sni)
8932           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933           hardcode_direct=yes # is this really true???
8934         ;;
8935         siemens)
8936           ## LD is ld it makes a PLAMLIB
8937           ## CC just makes a GrossModule.
8938           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8939           reload_cmds='$CC -r -o $output$reload_objs'
8940           hardcode_direct=no
8941         ;;
8942         motorola)
8943           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8944           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8945         ;;
8946       esac
8947       runpath_var='LD_RUN_PATH'
8948       hardcode_shlibpath_var=no
8949       ;;
8950
8951     sysv4.3*)
8952       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8953       hardcode_shlibpath_var=no
8954       export_dynamic_flag_spec='-Bexport'
8955       ;;
8956
8957     sysv4*MP*)
8958       if test -d /usr/nec; then
8959         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8960         hardcode_shlibpath_var=no
8961         runpath_var=LD_RUN_PATH
8962         hardcode_runpath_var=yes
8963         ld_shlibs=yes
8964       fi
8965       ;;
8966
8967     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8968       no_undefined_flag='${wl}-z,text'
8969       archive_cmds_need_lc=no
8970       hardcode_shlibpath_var=no
8971       runpath_var='LD_RUN_PATH'
8972
8973       if test "$GCC" = yes; then
8974         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8975         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8976       else
8977         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8978         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8979       fi
8980       ;;
8981
8982     sysv5* | sco3.2v5* | sco5v6*)
8983       # Note: We can NOT use -z defs as we might desire, because we do not
8984       # link with -lc, and that would cause any symbols used from libc to
8985       # always be unresolved, which means just about no library would
8986       # ever link correctly.  If we're not using GNU ld we use -z text
8987       # though, which does catch some bad symbols but isn't as heavy-handed
8988       # as -z defs.
8989       no_undefined_flag='${wl}-z,text'
8990       allow_undefined_flag='${wl}-z,nodefs'
8991       archive_cmds_need_lc=no
8992       hardcode_shlibpath_var=no
8993       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8994       hardcode_libdir_separator=':'
8995       link_all_deplibs=yes
8996       export_dynamic_flag_spec='${wl}-Bexport'
8997       runpath_var='LD_RUN_PATH'
8998
8999       if test "$GCC" = yes; then
9000         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9001         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9002       else
9003         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9004         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9005       fi
9006       ;;
9007
9008     uts4*)
9009       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9010       hardcode_libdir_flag_spec='-L$libdir'
9011       hardcode_shlibpath_var=no
9012       ;;
9013
9014     *)
9015       ld_shlibs=no
9016       ;;
9017     esac
9018   fi
9019
9020 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9021 echo "${ECHO_T}$ld_shlibs" >&6; }
9022 test "$ld_shlibs" = no && can_build_shared=no
9023
9024 #
9025 # Do we need to explicitly link libc?
9026 #
9027 case "x$archive_cmds_need_lc" in
9028 x|xyes)
9029   # Assume -lc should be added
9030   archive_cmds_need_lc=yes
9031
9032   if test "$enable_shared" = yes && test "$GCC" = yes; then
9033     case $archive_cmds in
9034     *'~'*)
9035       # FIXME: we may have to deal with multi-command sequences.
9036       ;;
9037     '$CC '*)
9038       # Test whether the compiler implicitly links with -lc since on some
9039       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9040       # to ld, don't add -lc before -lgcc.
9041       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9042 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9043       $rm conftest*
9044       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9045
9046       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9047   (eval $ac_compile) 2>&5
9048   ac_status=$?
9049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050   (exit $ac_status); } 2>conftest.err; then
9051         soname=conftest
9052         lib=conftest
9053         libobjs=conftest.$ac_objext
9054         deplibs=
9055         wl=$lt_prog_compiler_wl
9056         pic_flag=$lt_prog_compiler_pic
9057         compiler_flags=-v
9058         linker_flags=-v
9059         verstring=
9060         output_objdir=.
9061         libname=conftest
9062         lt_save_allow_undefined_flag=$allow_undefined_flag
9063         allow_undefined_flag=
9064         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9065   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9066   ac_status=$?
9067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068   (exit $ac_status); }
9069         then
9070           archive_cmds_need_lc=no
9071         else
9072           archive_cmds_need_lc=yes
9073         fi
9074         allow_undefined_flag=$lt_save_allow_undefined_flag
9075       else
9076         cat conftest.err 1>&5
9077       fi
9078       $rm conftest*
9079       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9080 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9081       ;;
9082     esac
9083   fi
9084   ;;
9085 esac
9086
9087 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9088 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9089 library_names_spec=
9090 libname_spec='lib$name'
9091 soname_spec=
9092 shrext_cmds=".so"
9093 postinstall_cmds=
9094 postuninstall_cmds=
9095 finish_cmds=
9096 finish_eval=
9097 shlibpath_var=
9098 shlibpath_overrides_runpath=unknown
9099 version_type=none
9100 dynamic_linker="$host_os ld.so"
9101 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9102
9103 if test "$GCC" = yes; then
9104   case $host_os in
9105     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9106     *) lt_awk_arg="/^libraries:/" ;;
9107   esac
9108   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9109   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9110     # if the path contains ";" then we assume it to be the separator
9111     # otherwise default to the standard path separator (i.e. ":") - it is
9112     # assumed that no part of a normal pathname contains ";" but that should
9113     # okay in the real world where ";" in dirpaths is itself problematic.
9114     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9115   else
9116     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9117   fi
9118   # Ok, now we have the path, separated by spaces, we can step through it
9119   # and add multilib dir if necessary.
9120   lt_tmp_lt_search_path_spec=
9121   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9122   for lt_sys_path in $lt_search_path_spec; do
9123     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9124       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9125     else
9126       test -d "$lt_sys_path" && \
9127         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9128     fi
9129   done
9130   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9131 BEGIN {RS=" "; FS="/|\n";} {
9132   lt_foo="";
9133   lt_count=0;
9134   for (lt_i = NF; lt_i > 0; lt_i--) {
9135     if ($lt_i != "" && $lt_i != ".") {
9136       if ($lt_i == "..") {
9137         lt_count++;
9138       } else {
9139         if (lt_count == 0) {
9140           lt_foo="/" $lt_i lt_foo;
9141         } else {
9142           lt_count--;
9143         }
9144       }
9145     }
9146   }
9147   if (lt_foo != "") { lt_freq[lt_foo]++; }
9148   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9149 }'`
9150   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9151 else
9152   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9153 fi
9154 need_lib_prefix=unknown
9155 hardcode_into_libs=no
9156
9157 # when you set need_version to no, make sure it does not cause -set_version
9158 # flags to be left without arguments
9159 need_version=unknown
9160
9161 case $host_os in
9162 aix3*)
9163   version_type=linux
9164   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9165   shlibpath_var=LIBPATH
9166
9167   # AIX 3 has no versioning support, so we append a major version to the name.
9168   soname_spec='${libname}${release}${shared_ext}$major'
9169   ;;
9170
9171 aix[4-9]*)
9172   version_type=linux
9173   need_lib_prefix=no
9174   need_version=no
9175   hardcode_into_libs=yes
9176   if test "$host_cpu" = ia64; then
9177     # AIX 5 supports IA64
9178     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9179     shlibpath_var=LD_LIBRARY_PATH
9180   else
9181     # With GCC up to 2.95.x, collect2 would create an import file
9182     # for dependence libraries.  The import file would start with
9183     # the line `#! .'.  This would cause the generated library to
9184     # depend on `.', always an invalid library.  This was fixed in
9185     # development snapshots of GCC prior to 3.0.
9186     case $host_os in
9187       aix4 | aix4.[01] | aix4.[01].*)
9188       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9189            echo ' yes '
9190            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9191         :
9192       else
9193         can_build_shared=no
9194       fi
9195       ;;
9196     esac
9197     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9198     # soname into executable. Probably we can add versioning support to
9199     # collect2, so additional links can be useful in future.
9200     if test "$aix_use_runtimelinking" = yes; then
9201       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9202       # instead of lib<name>.a to let people know that these are not
9203       # typical AIX shared libraries.
9204       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9205     else
9206       # We preserve .a as extension for shared libraries through AIX4.2
9207       # and later when we are not doing run time linking.
9208       library_names_spec='${libname}${release}.a $libname.a'
9209       soname_spec='${libname}${release}${shared_ext}$major'
9210     fi
9211     shlibpath_var=LIBPATH
9212   fi
9213   ;;
9214
9215 amigaos*)
9216   library_names_spec='$libname.ixlibrary $libname.a'
9217   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9218   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9219   ;;
9220
9221 beos*)
9222   library_names_spec='${libname}${shared_ext}'
9223   dynamic_linker="$host_os ld.so"
9224   shlibpath_var=LIBRARY_PATH
9225   ;;
9226
9227 bsdi[45]*)
9228   version_type=linux
9229   need_version=no
9230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231   soname_spec='${libname}${release}${shared_ext}$major'
9232   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9233   shlibpath_var=LD_LIBRARY_PATH
9234   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9235   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9236   # the default ld.so.conf also contains /usr/contrib/lib and
9237   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9238   # libtool to hard-code these into programs
9239   ;;
9240
9241 cygwin* | mingw* | pw32*)
9242   version_type=windows
9243   shrext_cmds=".dll"
9244   need_version=no
9245   need_lib_prefix=no
9246
9247   case $GCC,$host_os in
9248   yes,cygwin* | yes,mingw* | yes,pw32*)
9249     library_names_spec='$libname.dll.a'
9250     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9251     postinstall_cmds='base_file=`basename \${file}`~
9252       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9253       dldir=$destdir/`dirname \$dlpath`~
9254       test -d \$dldir || mkdir -p \$dldir~
9255       $install_prog $dir/$dlname \$dldir/$dlname~
9256       chmod a+x \$dldir/$dlname'
9257     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9258       dlpath=$dir/\$dldll~
9259        $rm \$dlpath'
9260     shlibpath_overrides_runpath=yes
9261
9262     case $host_os in
9263     cygwin*)
9264       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9265       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9266       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9267       ;;
9268     mingw*)
9269       # MinGW DLLs use traditional 'lib' prefix
9270       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9271       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9272       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9273         # It is most probably a Windows format PATH printed by
9274         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9275         # path with ; separators, and with drive letters. We can handle the
9276         # drive letters (cygwin fileutils understands them), so leave them,
9277         # especially as we might pass files found there to a mingw objdump,
9278         # which wouldn't understand a cygwinified path. Ahh.
9279         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9280       else
9281         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9282       fi
9283       ;;
9284     pw32*)
9285       # pw32 DLLs use 'pw' prefix rather than 'lib'
9286       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9287       ;;
9288     esac
9289     ;;
9290
9291   *)
9292     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9293     ;;
9294   esac
9295   dynamic_linker='Win32 ld.exe'
9296   # FIXME: first we should search . and the directory the executable is in
9297   shlibpath_var=PATH
9298   ;;
9299
9300 darwin* | rhapsody*)
9301   dynamic_linker="$host_os dyld"
9302   version_type=darwin
9303   need_lib_prefix=no
9304   need_version=no
9305   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9306   soname_spec='${libname}${release}${major}$shared_ext'
9307   shlibpath_overrides_runpath=yes
9308   shlibpath_var=DYLD_LIBRARY_PATH
9309   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9310
9311   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9312   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9313   ;;
9314
9315 dgux*)
9316   version_type=linux
9317   need_lib_prefix=no
9318   need_version=no
9319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9320   soname_spec='${libname}${release}${shared_ext}$major'
9321   shlibpath_var=LD_LIBRARY_PATH
9322   ;;
9323
9324 freebsd1*)
9325   dynamic_linker=no
9326   ;;
9327
9328 freebsd* | dragonfly*)
9329   # DragonFly does not have aout.  When/if they implement a new
9330   # versioning mechanism, adjust this.
9331   if test -x /usr/bin/objformat; then
9332     objformat=`/usr/bin/objformat`
9333   else
9334     case $host_os in
9335     freebsd[123]*) objformat=aout ;;
9336     *) objformat=elf ;;
9337     esac
9338   fi
9339   version_type=freebsd-$objformat
9340   case $version_type in
9341     freebsd-elf*)
9342       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9343       need_version=no
9344       need_lib_prefix=no
9345       ;;
9346     freebsd-*)
9347       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9348       need_version=yes
9349       ;;
9350   esac
9351   shlibpath_var=LD_LIBRARY_PATH
9352   case $host_os in
9353   freebsd2*)
9354     shlibpath_overrides_runpath=yes
9355     ;;
9356   freebsd3.[01]* | freebsdelf3.[01]*)
9357     shlibpath_overrides_runpath=yes
9358     hardcode_into_libs=yes
9359     ;;
9360   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9361   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9362     shlibpath_overrides_runpath=no
9363     hardcode_into_libs=yes
9364     ;;
9365   *) # from 4.6 on, and DragonFly
9366     shlibpath_overrides_runpath=yes
9367     hardcode_into_libs=yes
9368     ;;
9369   esac
9370   ;;
9371
9372 gnu*)
9373   version_type=linux
9374   need_lib_prefix=no
9375   need_version=no
9376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9377   soname_spec='${libname}${release}${shared_ext}$major'
9378   shlibpath_var=LD_LIBRARY_PATH
9379   hardcode_into_libs=yes
9380   ;;
9381
9382 hpux9* | hpux10* | hpux11*)
9383   # Give a soname corresponding to the major version so that dld.sl refuses to
9384   # link against other versions.
9385   version_type=sunos
9386   need_lib_prefix=no
9387   need_version=no
9388   case $host_cpu in
9389   ia64*)
9390     shrext_cmds='.so'
9391     hardcode_into_libs=yes
9392     dynamic_linker="$host_os dld.so"
9393     shlibpath_var=LD_LIBRARY_PATH
9394     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9395     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9396     soname_spec='${libname}${release}${shared_ext}$major'
9397     if test "X$HPUX_IA64_MODE" = X32; then
9398       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9399     else
9400       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9401     fi
9402     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9403     ;;
9404    hppa*64*)
9405      shrext_cmds='.sl'
9406      hardcode_into_libs=yes
9407      dynamic_linker="$host_os dld.sl"
9408      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9409      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9410      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9411      soname_spec='${libname}${release}${shared_ext}$major'
9412      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9413      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9414      ;;
9415    *)
9416     shrext_cmds='.sl'
9417     dynamic_linker="$host_os dld.sl"
9418     shlibpath_var=SHLIB_PATH
9419     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9420     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421     soname_spec='${libname}${release}${shared_ext}$major'
9422     ;;
9423   esac
9424   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9425   postinstall_cmds='chmod 555 $lib'
9426   ;;
9427
9428 interix[3-9]*)
9429   version_type=linux
9430   need_lib_prefix=no
9431   need_version=no
9432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9433   soname_spec='${libname}${release}${shared_ext}$major'
9434   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9435   shlibpath_var=LD_LIBRARY_PATH
9436   shlibpath_overrides_runpath=no
9437   hardcode_into_libs=yes
9438   ;;
9439
9440 irix5* | irix6* | nonstopux*)
9441   case $host_os in
9442     nonstopux*) version_type=nonstopux ;;
9443     *)
9444         if test "$lt_cv_prog_gnu_ld" = yes; then
9445                 version_type=linux
9446         else
9447                 version_type=irix
9448         fi ;;
9449   esac
9450   need_lib_prefix=no
9451   need_version=no
9452   soname_spec='${libname}${release}${shared_ext}$major'
9453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9454   case $host_os in
9455   irix5* | nonstopux*)
9456     libsuff= shlibsuff=
9457     ;;
9458   *)
9459     case $LD in # libtool.m4 will add one of these switches to LD
9460     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9461       libsuff= shlibsuff= libmagic=32-bit;;
9462     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9463       libsuff=32 shlibsuff=N32 libmagic=N32;;
9464     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9465       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9466     *) libsuff= shlibsuff= libmagic=never-match;;
9467     esac
9468     ;;
9469   esac
9470   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9471   shlibpath_overrides_runpath=no
9472   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9473   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9474   hardcode_into_libs=yes
9475   ;;
9476
9477 # No shared lib support for Linux oldld, aout, or coff.
9478 linux*oldld* | linux*aout* | linux*coff*)
9479   dynamic_linker=no
9480   ;;
9481
9482 # This must be Linux ELF.
9483 linux* | k*bsd*-gnu)
9484   version_type=linux
9485   need_lib_prefix=no
9486   need_version=no
9487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488   soname_spec='${libname}${release}${shared_ext}$major'
9489   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9490   shlibpath_var=LD_LIBRARY_PATH
9491   shlibpath_overrides_runpath=no
9492   # This implies no fast_install, which is unacceptable.
9493   # Some rework will be needed to allow for fast_install
9494   # before this can be enabled.
9495   hardcode_into_libs=yes
9496
9497   # Append ld.so.conf contents to the search path
9498   if test -f /etc/ld.so.conf; then
9499     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9500     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9501   fi
9502
9503   # We used to test for /lib/ld.so.1 and disable shared libraries on
9504   # powerpc, because MkLinux only supported shared libraries with the
9505   # GNU dynamic linker.  Since this was broken with cross compilers,
9506   # most powerpc-linux boxes support dynamic linking these days and
9507   # people can always --disable-shared, the test was removed, and we
9508   # assume the GNU/Linux dynamic linker is in use.
9509   dynamic_linker='GNU/Linux ld.so'
9510   ;;
9511
9512 netbsdelf*-gnu)
9513   version_type=linux
9514   need_lib_prefix=no
9515   need_version=no
9516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9517   soname_spec='${libname}${release}${shared_ext}$major'
9518   shlibpath_var=LD_LIBRARY_PATH
9519   shlibpath_overrides_runpath=no
9520   hardcode_into_libs=yes
9521   dynamic_linker='NetBSD ld.elf_so'
9522   ;;
9523
9524 netbsd*)
9525   version_type=sunos
9526   need_lib_prefix=no
9527   need_version=no
9528   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9529     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9530     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9531     dynamic_linker='NetBSD (a.out) ld.so'
9532   else
9533     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9534     soname_spec='${libname}${release}${shared_ext}$major'
9535     dynamic_linker='NetBSD ld.elf_so'
9536   fi
9537   shlibpath_var=LD_LIBRARY_PATH
9538   shlibpath_overrides_runpath=yes
9539   hardcode_into_libs=yes
9540   ;;
9541
9542 newsos6)
9543   version_type=linux
9544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545   shlibpath_var=LD_LIBRARY_PATH
9546   shlibpath_overrides_runpath=yes
9547   ;;
9548
9549 nto-qnx*)
9550   version_type=linux
9551   need_lib_prefix=no
9552   need_version=no
9553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9554   soname_spec='${libname}${release}${shared_ext}$major'
9555   shlibpath_var=LD_LIBRARY_PATH
9556   shlibpath_overrides_runpath=yes
9557   ;;
9558
9559 openbsd*)
9560   version_type=sunos
9561   sys_lib_dlsearch_path_spec="/usr/lib"
9562   need_lib_prefix=no
9563   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9564   case $host_os in
9565     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9566     *)                         need_version=no  ;;
9567   esac
9568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9569   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9570   shlibpath_var=LD_LIBRARY_PATH
9571   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9572     case $host_os in
9573       openbsd2.[89] | openbsd2.[89].*)
9574         shlibpath_overrides_runpath=no
9575         ;;
9576       *)
9577         shlibpath_overrides_runpath=yes
9578         ;;
9579       esac
9580   else
9581     shlibpath_overrides_runpath=yes
9582   fi
9583   ;;
9584
9585 os2*)
9586   libname_spec='$name'
9587   shrext_cmds=".dll"
9588   need_lib_prefix=no
9589   library_names_spec='$libname${shared_ext} $libname.a'
9590   dynamic_linker='OS/2 ld.exe'
9591   shlibpath_var=LIBPATH
9592   ;;
9593
9594 osf3* | osf4* | osf5*)
9595   version_type=osf
9596   need_lib_prefix=no
9597   need_version=no
9598   soname_spec='${libname}${release}${shared_ext}$major'
9599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9600   shlibpath_var=LD_LIBRARY_PATH
9601   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9602   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9603   ;;
9604
9605 rdos*)
9606   dynamic_linker=no
9607   ;;
9608
9609 solaris*)
9610   version_type=linux
9611   need_lib_prefix=no
9612   need_version=no
9613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614   soname_spec='${libname}${release}${shared_ext}$major'
9615   shlibpath_var=LD_LIBRARY_PATH
9616   shlibpath_overrides_runpath=yes
9617   hardcode_into_libs=yes
9618   # ldd complains unless libraries are executable
9619   postinstall_cmds='chmod +x $lib'
9620   ;;
9621
9622 sunos4*)
9623   version_type=sunos
9624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9625   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9626   shlibpath_var=LD_LIBRARY_PATH
9627   shlibpath_overrides_runpath=yes
9628   if test "$with_gnu_ld" = yes; then
9629     need_lib_prefix=no
9630   fi
9631   need_version=yes
9632   ;;
9633
9634 sysv4 | sysv4.3*)
9635   version_type=linux
9636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9637   soname_spec='${libname}${release}${shared_ext}$major'
9638   shlibpath_var=LD_LIBRARY_PATH
9639   case $host_vendor in
9640     sni)
9641       shlibpath_overrides_runpath=no
9642       need_lib_prefix=no
9643       export_dynamic_flag_spec='${wl}-Blargedynsym'
9644       runpath_var=LD_RUN_PATH
9645       ;;
9646     siemens)
9647       need_lib_prefix=no
9648       ;;
9649     motorola)
9650       need_lib_prefix=no
9651       need_version=no
9652       shlibpath_overrides_runpath=no
9653       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9654       ;;
9655   esac
9656   ;;
9657
9658 sysv4*MP*)
9659   if test -d /usr/nec ;then
9660     version_type=linux
9661     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9662     soname_spec='$libname${shared_ext}.$major'
9663     shlibpath_var=LD_LIBRARY_PATH
9664   fi
9665   ;;
9666
9667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9668   version_type=freebsd-elf
9669   need_lib_prefix=no
9670   need_version=no
9671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9672   soname_spec='${libname}${release}${shared_ext}$major'
9673   shlibpath_var=LD_LIBRARY_PATH
9674   hardcode_into_libs=yes
9675   if test "$with_gnu_ld" = yes; then
9676     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9677     shlibpath_overrides_runpath=no
9678   else
9679     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9680     shlibpath_overrides_runpath=yes
9681     case $host_os in
9682       sco3.2v5*)
9683         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9684         ;;
9685     esac
9686   fi
9687   sys_lib_dlsearch_path_spec='/usr/lib'
9688   ;;
9689
9690 uts4*)
9691   version_type=linux
9692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9693   soname_spec='${libname}${release}${shared_ext}$major'
9694   shlibpath_var=LD_LIBRARY_PATH
9695   ;;
9696
9697 *)
9698   dynamic_linker=no
9699   ;;
9700 esac
9701 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9702 echo "${ECHO_T}$dynamic_linker" >&6; }
9703 test "$dynamic_linker" = no && can_build_shared=no
9704
9705 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9706   echo $ECHO_N "(cached) $ECHO_C" >&6
9707 else
9708   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9709 fi
9710
9711 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9712 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9713   echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9715   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9716 fi
9717
9718 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9719
9720 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9721 if test "$GCC" = yes; then
9722   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9723 fi
9724
9725 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9726 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9727 hardcode_action=
9728 if test -n "$hardcode_libdir_flag_spec" || \
9729    test -n "$runpath_var" || \
9730    test "X$hardcode_automatic" = "Xyes" ; then
9731
9732   # We can hardcode non-existant directories.
9733   if test "$hardcode_direct" != no &&
9734      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9735      # have to relink, otherwise we might link with an installed library
9736      # when we should be linking with a yet-to-be-installed one
9737      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9738      test "$hardcode_minus_L" != no; then
9739     # Linking always hardcodes the temporary library directory.
9740     hardcode_action=relink
9741   else
9742     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9743     hardcode_action=immediate
9744   fi
9745 else
9746   # We cannot hardcode anything, or else we can only hardcode existing
9747   # directories.
9748   hardcode_action=unsupported
9749 fi
9750 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9751 echo "${ECHO_T}$hardcode_action" >&6; }
9752
9753 if test "$hardcode_action" = relink; then
9754   # Fast installation is not supported
9755   enable_fast_install=no
9756 elif test "$shlibpath_overrides_runpath" = yes ||
9757      test "$enable_shared" = no; then
9758   # Fast installation is not necessary
9759   enable_fast_install=needless
9760 fi
9761
9762 striplib=
9763 old_striplib=
9764 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9765 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9766 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9767   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9768   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9769   { echo "$as_me:$LINENO: result: yes" >&5
9770 echo "${ECHO_T}yes" >&6; }
9771 else
9772 # FIXME - insert some real tests, host_os isn't really good enough
9773   case $host_os in
9774    darwin*)
9775        if test -n "$STRIP" ; then
9776          striplib="$STRIP -x"
9777          old_striplib="$STRIP -S"
9778          { echo "$as_me:$LINENO: result: yes" >&5
9779 echo "${ECHO_T}yes" >&6; }
9780        else
9781   { echo "$as_me:$LINENO: result: no" >&5
9782 echo "${ECHO_T}no" >&6; }
9783 fi
9784        ;;
9785    *)
9786   { echo "$as_me:$LINENO: result: no" >&5
9787 echo "${ECHO_T}no" >&6; }
9788     ;;
9789   esac
9790 fi
9791
9792 if test "x$enable_dlopen" != xyes; then
9793   enable_dlopen=unknown
9794   enable_dlopen_self=unknown
9795   enable_dlopen_self_static=unknown
9796 else
9797   lt_cv_dlopen=no
9798   lt_cv_dlopen_libs=
9799
9800   case $host_os in
9801   beos*)
9802     lt_cv_dlopen="load_add_on"
9803     lt_cv_dlopen_libs=
9804     lt_cv_dlopen_self=yes
9805     ;;
9806
9807   mingw* | pw32*)
9808     lt_cv_dlopen="LoadLibrary"
9809     lt_cv_dlopen_libs=
9810    ;;
9811
9812   cygwin*)
9813     lt_cv_dlopen="dlopen"
9814     lt_cv_dlopen_libs=
9815    ;;
9816
9817   darwin*)
9818   # if libdl is installed we need to link against it
9819     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9820 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9821 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9822   echo $ECHO_N "(cached) $ECHO_C" >&6
9823 else
9824   ac_check_lib_save_LIBS=$LIBS
9825 LIBS="-ldl  $LIBS"
9826 cat >conftest.$ac_ext <<_ACEOF
9827 /* confdefs.h.  */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h.  */
9832
9833 /* Override any GCC internal prototype to avoid an error.
9834    Use char because int might match the return type of a GCC
9835    builtin and then its argument prototype would still apply.  */
9836 #ifdef __cplusplus
9837 extern "C"
9838 #endif
9839 char dlopen ();
9840 int
9841 main ()
9842 {
9843 return dlopen ();
9844   ;
9845   return 0;
9846 }
9847 _ACEOF
9848 rm -f conftest.$ac_objext conftest$ac_exeext
9849 if { (ac_try="$ac_link"
9850 case "(($ac_try" in
9851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852   *) ac_try_echo=$ac_try;;
9853 esac
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855   (eval "$ac_link") 2>conftest.er1
9856   ac_status=$?
9857   grep -v '^ *+' conftest.er1 >conftest.err
9858   rm -f conftest.er1
9859   cat conftest.err >&5
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); } && {
9862          test -z "$ac_c_werror_flag" ||
9863          test ! -s conftest.err
9864        } && test -s conftest$ac_exeext &&
9865        $as_test_x conftest$ac_exeext; then
9866   ac_cv_lib_dl_dlopen=yes
9867 else
9868   echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9870
9871         ac_cv_lib_dl_dlopen=no
9872 fi
9873
9874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9875       conftest$ac_exeext conftest.$ac_ext
9876 LIBS=$ac_check_lib_save_LIBS
9877 fi
9878 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9879 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9880 if test $ac_cv_lib_dl_dlopen = yes; then
9881   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9882 else
9883
9884     lt_cv_dlopen="dyld"
9885     lt_cv_dlopen_libs=
9886     lt_cv_dlopen_self=yes
9887
9888 fi
9889
9890    ;;
9891
9892   *)
9893     { echo "$as_me:$LINENO: checking for shl_load" >&5
9894 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9895 if test "${ac_cv_func_shl_load+set}" = set; then
9896   echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898   cat >conftest.$ac_ext <<_ACEOF
9899 /* confdefs.h.  */
9900 _ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h.  */
9904 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9906 #define shl_load innocuous_shl_load
9907
9908 /* System header to define __stub macros and hopefully few prototypes,
9909     which can conflict with char shl_load (); below.
9910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9911     <limits.h> exists even on freestanding compilers.  */
9912
9913 #ifdef __STDC__
9914 # include <limits.h>
9915 #else
9916 # include <assert.h>
9917 #endif
9918
9919 #undef shl_load
9920
9921 /* Override any GCC internal prototype to avoid an error.
9922    Use char because int might match the return type of a GCC
9923    builtin and then its argument prototype would still apply.  */
9924 #ifdef __cplusplus
9925 extern "C"
9926 #endif
9927 char shl_load ();
9928 /* The GNU C library defines this for functions which it implements
9929     to always fail with ENOSYS.  Some functions are actually named
9930     something starting with __ and the normal name is an alias.  */
9931 #if defined __stub_shl_load || defined __stub___shl_load
9932 choke me
9933 #endif
9934
9935 int
9936 main ()
9937 {
9938 return shl_load ();
9939   ;
9940   return 0;
9941 }
9942 _ACEOF
9943 rm -f conftest.$ac_objext conftest$ac_exeext
9944 if { (ac_try="$ac_link"
9945 case "(($ac_try" in
9946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947   *) ac_try_echo=$ac_try;;
9948 esac
9949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9950   (eval "$ac_link") 2>conftest.er1
9951   ac_status=$?
9952   grep -v '^ *+' conftest.er1 >conftest.err
9953   rm -f conftest.er1
9954   cat conftest.err >&5
9955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956   (exit $ac_status); } && {
9957          test -z "$ac_c_werror_flag" ||
9958          test ! -s conftest.err
9959        } && test -s conftest$ac_exeext &&
9960        $as_test_x conftest$ac_exeext; then
9961   ac_cv_func_shl_load=yes
9962 else
9963   echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9965
9966         ac_cv_func_shl_load=no
9967 fi
9968
9969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9970       conftest$ac_exeext conftest.$ac_ext
9971 fi
9972 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9973 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9974 if test $ac_cv_func_shl_load = yes; then
9975   lt_cv_dlopen="shl_load"
9976 else
9977   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9978 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9979 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9980   echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982   ac_check_lib_save_LIBS=$LIBS
9983 LIBS="-ldld  $LIBS"
9984 cat >conftest.$ac_ext <<_ACEOF
9985 /* confdefs.h.  */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h.  */
9990
9991 /* Override any GCC internal prototype to avoid an error.
9992    Use char because int might match the return type of a GCC
9993    builtin and then its argument prototype would still apply.  */
9994 #ifdef __cplusplus
9995 extern "C"
9996 #endif
9997 char shl_load ();
9998 int
9999 main ()
10000 {
10001 return shl_load ();
10002   ;
10003   return 0;
10004 }
10005 _ACEOF
10006 rm -f conftest.$ac_objext conftest$ac_exeext
10007 if { (ac_try="$ac_link"
10008 case "(($ac_try" in
10009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10010   *) ac_try_echo=$ac_try;;
10011 esac
10012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10013   (eval "$ac_link") 2>conftest.er1
10014   ac_status=$?
10015   grep -v '^ *+' conftest.er1 >conftest.err
10016   rm -f conftest.er1
10017   cat conftest.err >&5
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); } && {
10020          test -z "$ac_c_werror_flag" ||
10021          test ! -s conftest.err
10022        } && test -s conftest$ac_exeext &&
10023        $as_test_x conftest$ac_exeext; then
10024   ac_cv_lib_dld_shl_load=yes
10025 else
10026   echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.$ac_ext >&5
10028
10029         ac_cv_lib_dld_shl_load=no
10030 fi
10031
10032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10033       conftest$ac_exeext conftest.$ac_ext
10034 LIBS=$ac_check_lib_save_LIBS
10035 fi
10036 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10037 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10038 if test $ac_cv_lib_dld_shl_load = yes; then
10039   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10040 else
10041   { echo "$as_me:$LINENO: checking for dlopen" >&5
10042 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10043 if test "${ac_cv_func_dlopen+set}" = set; then
10044   echo $ECHO_N "(cached) $ECHO_C" >&6
10045 else
10046   cat >conftest.$ac_ext <<_ACEOF
10047 /* confdefs.h.  */
10048 _ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h.  */
10052 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10054 #define dlopen innocuous_dlopen
10055
10056 /* System header to define __stub macros and hopefully few prototypes,
10057     which can conflict with char dlopen (); below.
10058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10059     <limits.h> exists even on freestanding compilers.  */
10060
10061 #ifdef __STDC__
10062 # include <limits.h>
10063 #else
10064 # include <assert.h>
10065 #endif
10066
10067 #undef dlopen
10068
10069 /* Override any GCC internal prototype to avoid an error.
10070    Use char because int might match the return type of a GCC
10071    builtin and then its argument prototype would still apply.  */
10072 #ifdef __cplusplus
10073 extern "C"
10074 #endif
10075 char dlopen ();
10076 /* The GNU C library defines this for functions which it implements
10077     to always fail with ENOSYS.  Some functions are actually named
10078     something starting with __ and the normal name is an alias.  */
10079 #if defined __stub_dlopen || defined __stub___dlopen
10080 choke me
10081 #endif
10082
10083 int
10084 main ()
10085 {
10086 return dlopen ();
10087   ;
10088   return 0;
10089 }
10090 _ACEOF
10091 rm -f conftest.$ac_objext conftest$ac_exeext
10092 if { (ac_try="$ac_link"
10093 case "(($ac_try" in
10094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095   *) ac_try_echo=$ac_try;;
10096 esac
10097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098   (eval "$ac_link") 2>conftest.er1
10099   ac_status=$?
10100   grep -v '^ *+' conftest.er1 >conftest.err
10101   rm -f conftest.er1
10102   cat conftest.err >&5
10103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104   (exit $ac_status); } && {
10105          test -z "$ac_c_werror_flag" ||
10106          test ! -s conftest.err
10107        } && test -s conftest$ac_exeext &&
10108        $as_test_x conftest$ac_exeext; then
10109   ac_cv_func_dlopen=yes
10110 else
10111   echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10113
10114         ac_cv_func_dlopen=no
10115 fi
10116
10117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10118       conftest$ac_exeext conftest.$ac_ext
10119 fi
10120 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10121 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10122 if test $ac_cv_func_dlopen = yes; then
10123   lt_cv_dlopen="dlopen"
10124 else
10125   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10126 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10127 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10128   echo $ECHO_N "(cached) $ECHO_C" >&6
10129 else
10130   ac_check_lib_save_LIBS=$LIBS
10131 LIBS="-ldl  $LIBS"
10132 cat >conftest.$ac_ext <<_ACEOF
10133 /* confdefs.h.  */
10134 _ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h.  */
10138
10139 /* Override any GCC internal prototype to avoid an error.
10140    Use char because int might match the return type of a GCC
10141    builtin and then its argument prototype would still apply.  */
10142 #ifdef __cplusplus
10143 extern "C"
10144 #endif
10145 char dlopen ();
10146 int
10147 main ()
10148 {
10149 return dlopen ();
10150   ;
10151   return 0;
10152 }
10153 _ACEOF
10154 rm -f conftest.$ac_objext conftest$ac_exeext
10155 if { (ac_try="$ac_link"
10156 case "(($ac_try" in
10157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158   *) ac_try_echo=$ac_try;;
10159 esac
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161   (eval "$ac_link") 2>conftest.er1
10162   ac_status=$?
10163   grep -v '^ *+' conftest.er1 >conftest.err
10164   rm -f conftest.er1
10165   cat conftest.err >&5
10166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167   (exit $ac_status); } && {
10168          test -z "$ac_c_werror_flag" ||
10169          test ! -s conftest.err
10170        } && test -s conftest$ac_exeext &&
10171        $as_test_x conftest$ac_exeext; then
10172   ac_cv_lib_dl_dlopen=yes
10173 else
10174   echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10176
10177         ac_cv_lib_dl_dlopen=no
10178 fi
10179
10180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10181       conftest$ac_exeext conftest.$ac_ext
10182 LIBS=$ac_check_lib_save_LIBS
10183 fi
10184 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10185 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10186 if test $ac_cv_lib_dl_dlopen = yes; then
10187   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10188 else
10189   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10190 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10191 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10192   echo $ECHO_N "(cached) $ECHO_C" >&6
10193 else
10194   ac_check_lib_save_LIBS=$LIBS
10195 LIBS="-lsvld  $LIBS"
10196 cat >conftest.$ac_ext <<_ACEOF
10197 /* confdefs.h.  */
10198 _ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h.  */
10202
10203 /* Override any GCC internal prototype to avoid an error.
10204    Use char because int might match the return type of a GCC
10205    builtin and then its argument prototype would still apply.  */
10206 #ifdef __cplusplus
10207 extern "C"
10208 #endif
10209 char dlopen ();
10210 int
10211 main ()
10212 {
10213 return dlopen ();
10214   ;
10215   return 0;
10216 }
10217 _ACEOF
10218 rm -f conftest.$ac_objext conftest$ac_exeext
10219 if { (ac_try="$ac_link"
10220 case "(($ac_try" in
10221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222   *) ac_try_echo=$ac_try;;
10223 esac
10224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225   (eval "$ac_link") 2>conftest.er1
10226   ac_status=$?
10227   grep -v '^ *+' conftest.er1 >conftest.err
10228   rm -f conftest.er1
10229   cat conftest.err >&5
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); } && {
10232          test -z "$ac_c_werror_flag" ||
10233          test ! -s conftest.err
10234        } && test -s conftest$ac_exeext &&
10235        $as_test_x conftest$ac_exeext; then
10236   ac_cv_lib_svld_dlopen=yes
10237 else
10238   echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10240
10241         ac_cv_lib_svld_dlopen=no
10242 fi
10243
10244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10245       conftest$ac_exeext conftest.$ac_ext
10246 LIBS=$ac_check_lib_save_LIBS
10247 fi
10248 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10249 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10250 if test $ac_cv_lib_svld_dlopen = yes; then
10251   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10252 else
10253   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10254 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10255 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10256   echo $ECHO_N "(cached) $ECHO_C" >&6
10257 else
10258   ac_check_lib_save_LIBS=$LIBS
10259 LIBS="-ldld  $LIBS"
10260 cat >conftest.$ac_ext <<_ACEOF
10261 /* confdefs.h.  */
10262 _ACEOF
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h.  */
10266
10267 /* Override any GCC internal prototype to avoid an error.
10268    Use char because int might match the return type of a GCC
10269    builtin and then its argument prototype would still apply.  */
10270 #ifdef __cplusplus
10271 extern "C"
10272 #endif
10273 char dld_link ();
10274 int
10275 main ()
10276 {
10277 return dld_link ();
10278   ;
10279   return 0;
10280 }
10281 _ACEOF
10282 rm -f conftest.$ac_objext conftest$ac_exeext
10283 if { (ac_try="$ac_link"
10284 case "(($ac_try" in
10285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286   *) ac_try_echo=$ac_try;;
10287 esac
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289   (eval "$ac_link") 2>conftest.er1
10290   ac_status=$?
10291   grep -v '^ *+' conftest.er1 >conftest.err
10292   rm -f conftest.er1
10293   cat conftest.err >&5
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); } && {
10296          test -z "$ac_c_werror_flag" ||
10297          test ! -s conftest.err
10298        } && test -s conftest$ac_exeext &&
10299        $as_test_x conftest$ac_exeext; then
10300   ac_cv_lib_dld_dld_link=yes
10301 else
10302   echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10304
10305         ac_cv_lib_dld_dld_link=no
10306 fi
10307
10308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10309       conftest$ac_exeext conftest.$ac_ext
10310 LIBS=$ac_check_lib_save_LIBS
10311 fi
10312 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10313 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10314 if test $ac_cv_lib_dld_dld_link = yes; then
10315   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10316 fi
10317
10318
10319 fi
10320
10321
10322 fi
10323
10324
10325 fi
10326
10327
10328 fi
10329
10330
10331 fi
10332
10333     ;;
10334   esac
10335
10336   if test "x$lt_cv_dlopen" != xno; then
10337     enable_dlopen=yes
10338   else
10339     enable_dlopen=no
10340   fi
10341
10342   case $lt_cv_dlopen in
10343   dlopen)
10344     save_CPPFLAGS="$CPPFLAGS"
10345     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10346
10347     save_LDFLAGS="$LDFLAGS"
10348     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10349
10350     save_LIBS="$LIBS"
10351     LIBS="$lt_cv_dlopen_libs $LIBS"
10352
10353     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10354 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10355 if test "${lt_cv_dlopen_self+set}" = set; then
10356   echo $ECHO_N "(cached) $ECHO_C" >&6
10357 else
10358           if test "$cross_compiling" = yes; then :
10359   lt_cv_dlopen_self=cross
10360 else
10361   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10362   lt_status=$lt_dlunknown
10363   cat > conftest.$ac_ext <<EOF
10364 #line 10364 "configure"
10365 #include "confdefs.h"
10366
10367 #if HAVE_DLFCN_H
10368 #include <dlfcn.h>
10369 #endif
10370
10371 #include <stdio.h>
10372
10373 #ifdef RTLD_GLOBAL
10374 #  define LT_DLGLOBAL           RTLD_GLOBAL
10375 #else
10376 #  ifdef DL_GLOBAL
10377 #    define LT_DLGLOBAL         DL_GLOBAL
10378 #  else
10379 #    define LT_DLGLOBAL         0
10380 #  endif
10381 #endif
10382
10383 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10384    find out it does not work in some platform. */
10385 #ifndef LT_DLLAZY_OR_NOW
10386 #  ifdef RTLD_LAZY
10387 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10388 #  else
10389 #    ifdef DL_LAZY
10390 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10391 #    else
10392 #      ifdef RTLD_NOW
10393 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10394 #      else
10395 #        ifdef DL_NOW
10396 #          define LT_DLLAZY_OR_NOW      DL_NOW
10397 #        else
10398 #          define LT_DLLAZY_OR_NOW      0
10399 #        endif
10400 #      endif
10401 #    endif
10402 #  endif
10403 #endif
10404
10405 #ifdef __cplusplus
10406 extern "C" void exit (int);
10407 #endif
10408
10409 void fnord() { int i=42;}
10410 int main ()
10411 {
10412   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10413   int status = $lt_dlunknown;
10414
10415   if (self)
10416     {
10417       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10418       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10419       /* dlclose (self); */
10420     }
10421   else
10422     puts (dlerror ());
10423
10424     exit (status);
10425 }
10426 EOF
10427   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10428   (eval $ac_link) 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10432     (./conftest; exit; ) >&5 2>/dev/null
10433     lt_status=$?
10434     case x$lt_status in
10435       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10436       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10437       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10438     esac
10439   else :
10440     # compilation failed
10441     lt_cv_dlopen_self=no
10442   fi
10443 fi
10444 rm -fr conftest*
10445
10446
10447 fi
10448 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10449 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10450
10451     if test "x$lt_cv_dlopen_self" = xyes; then
10452       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10453       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10454 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10455 if test "${lt_cv_dlopen_self_static+set}" = set; then
10456   echo $ECHO_N "(cached) $ECHO_C" >&6
10457 else
10458           if test "$cross_compiling" = yes; then :
10459   lt_cv_dlopen_self_static=cross
10460 else
10461   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10462   lt_status=$lt_dlunknown
10463   cat > conftest.$ac_ext <<EOF
10464 #line 10464 "configure"
10465 #include "confdefs.h"
10466
10467 #if HAVE_DLFCN_H
10468 #include <dlfcn.h>
10469 #endif
10470
10471 #include <stdio.h>
10472
10473 #ifdef RTLD_GLOBAL
10474 #  define LT_DLGLOBAL           RTLD_GLOBAL
10475 #else
10476 #  ifdef DL_GLOBAL
10477 #    define LT_DLGLOBAL         DL_GLOBAL
10478 #  else
10479 #    define LT_DLGLOBAL         0
10480 #  endif
10481 #endif
10482
10483 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10484    find out it does not work in some platform. */
10485 #ifndef LT_DLLAZY_OR_NOW
10486 #  ifdef RTLD_LAZY
10487 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10488 #  else
10489 #    ifdef DL_LAZY
10490 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10491 #    else
10492 #      ifdef RTLD_NOW
10493 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10494 #      else
10495 #        ifdef DL_NOW
10496 #          define LT_DLLAZY_OR_NOW      DL_NOW
10497 #        else
10498 #          define LT_DLLAZY_OR_NOW      0
10499 #        endif
10500 #      endif
10501 #    endif
10502 #  endif
10503 #endif
10504
10505 #ifdef __cplusplus
10506 extern "C" void exit (int);
10507 #endif
10508
10509 void fnord() { int i=42;}
10510 int main ()
10511 {
10512   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10513   int status = $lt_dlunknown;
10514
10515   if (self)
10516     {
10517       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10518       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10519       /* dlclose (self); */
10520     }
10521   else
10522     puts (dlerror ());
10523
10524     exit (status);
10525 }
10526 EOF
10527   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10528   (eval $ac_link) 2>&5
10529   ac_status=$?
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10532     (./conftest; exit; ) >&5 2>/dev/null
10533     lt_status=$?
10534     case x$lt_status in
10535       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10536       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10537       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10538     esac
10539   else :
10540     # compilation failed
10541     lt_cv_dlopen_self_static=no
10542   fi
10543 fi
10544 rm -fr conftest*
10545
10546
10547 fi
10548 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10549 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10550     fi
10551
10552     CPPFLAGS="$save_CPPFLAGS"
10553     LDFLAGS="$save_LDFLAGS"
10554     LIBS="$save_LIBS"
10555     ;;
10556   esac
10557
10558   case $lt_cv_dlopen_self in
10559   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10560   *) enable_dlopen_self=unknown ;;
10561   esac
10562
10563   case $lt_cv_dlopen_self_static in
10564   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10565   *) enable_dlopen_self_static=unknown ;;
10566   esac
10567 fi
10568
10569
10570 # Report which library types will actually be built
10571 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10572 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10573 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10574 echo "${ECHO_T}$can_build_shared" >&6; }
10575
10576 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10577 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10578 test "$can_build_shared" = "no" && enable_shared=no
10579
10580 # On AIX, shared libraries and static libraries use the same namespace, and
10581 # are all built from PIC.
10582 case $host_os in
10583 aix3*)
10584   test "$enable_shared" = yes && enable_static=no
10585   if test -n "$RANLIB"; then
10586     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10587     postinstall_cmds='$RANLIB $lib'
10588   fi
10589   ;;
10590
10591 aix[4-9]*)
10592   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10593     test "$enable_shared" = yes && enable_static=no
10594   fi
10595     ;;
10596 esac
10597 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10598 echo "${ECHO_T}$enable_shared" >&6; }
10599
10600 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10601 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10602 # Make sure either enable_shared or enable_static is yes.
10603 test "$enable_shared" = yes || enable_static=yes
10604 { echo "$as_me:$LINENO: result: $enable_static" >&5
10605 echo "${ECHO_T}$enable_static" >&6; }
10606
10607 # The else clause should only fire when bootstrapping the
10608 # libtool distribution, otherwise you forgot to ship ltmain.sh
10609 # with your package, and you will get complaints that there are
10610 # no rules to generate ltmain.sh.
10611 if test -f "$ltmain"; then
10612   # See if we are running on zsh, and set the options which allow our commands through
10613   # without removal of \ escapes.
10614   if test -n "${ZSH_VERSION+set}" ; then
10615     setopt NO_GLOB_SUBST
10616   fi
10617   # Now quote all the things that may contain metacharacters while being
10618   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10619   # variables and quote the copies for generation of the libtool script.
10620   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10621     SED SHELL STRIP \
10622     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10623     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10624     deplibs_check_method reload_flag reload_cmds need_locks \
10625     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10626     lt_cv_sys_global_symbol_to_c_name_address \
10627     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10628     old_postinstall_cmds old_postuninstall_cmds \
10629     compiler \
10630     CC \
10631     LD \
10632     lt_prog_compiler_wl \
10633     lt_prog_compiler_pic \
10634     lt_prog_compiler_static \
10635     lt_prog_compiler_no_builtin_flag \
10636     export_dynamic_flag_spec \
10637     thread_safe_flag_spec \
10638     whole_archive_flag_spec \
10639     enable_shared_with_static_runtimes \
10640     old_archive_cmds \
10641     old_archive_from_new_cmds \
10642     predep_objects \
10643     postdep_objects \
10644     predeps \
10645     postdeps \
10646     compiler_lib_search_path \
10647     compiler_lib_search_dirs \
10648     archive_cmds \
10649     archive_expsym_cmds \
10650     postinstall_cmds \
10651     postuninstall_cmds \
10652     old_archive_from_expsyms_cmds \
10653     allow_undefined_flag \
10654     no_undefined_flag \
10655     export_symbols_cmds \
10656     hardcode_libdir_flag_spec \
10657     hardcode_libdir_flag_spec_ld \
10658     hardcode_libdir_separator \
10659     hardcode_automatic \
10660     module_cmds \
10661     module_expsym_cmds \
10662     lt_cv_prog_compiler_c_o \
10663     fix_srcfile_path \
10664     exclude_expsyms \
10665     include_expsyms; do
10666
10667     case $var in
10668     old_archive_cmds | \
10669     old_archive_from_new_cmds | \
10670     archive_cmds | \
10671     archive_expsym_cmds | \
10672     module_cmds | \
10673     module_expsym_cmds | \
10674     old_archive_from_expsyms_cmds | \
10675     export_symbols_cmds | \
10676     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10677     postinstall_cmds | postuninstall_cmds | \
10678     old_postinstall_cmds | old_postuninstall_cmds | \
10679     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10680       # Double-quote double-evaled strings.
10681       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10682       ;;
10683     *)
10684       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10685       ;;
10686     esac
10687   done
10688
10689   case $lt_echo in
10690   *'\$0 --fallback-echo"')
10691     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10692     ;;
10693   esac
10694
10695 cfgfile="${ofile}T"
10696   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10697   $rm -f "$cfgfile"
10698   { echo "$as_me:$LINENO: creating $ofile" >&5
10699 echo "$as_me: creating $ofile" >&6;}
10700
10701   cat <<__EOF__ >> "$cfgfile"
10702 #! $SHELL
10703
10704 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10705 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10706 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10707 #
10708 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10709 # Free Software Foundation, Inc.
10710 #
10711 # This file is part of GNU Libtool:
10712 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10713 #
10714 # This program is free software; you can redistribute it and/or modify
10715 # it under the terms of the GNU General Public License as published by
10716 # the Free Software Foundation; either version 2 of the License, or
10717 # (at your option) any later version.
10718 #
10719 # This program is distributed in the hope that it will be useful, but
10720 # WITHOUT ANY WARRANTY; without even the implied warranty of
10721 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10722 # General Public License for more details.
10723 #
10724 # You should have received a copy of the GNU General Public License
10725 # along with this program; if not, write to the Free Software
10726 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10727 #
10728 # As a special exception to the GNU General Public License, if you
10729 # distribute this file as part of a program that contains a
10730 # configuration script generated by Autoconf, you may include it under
10731 # the same distribution terms that you use for the rest of that program.
10732
10733 # A sed program that does not truncate output.
10734 SED=$lt_SED
10735
10736 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10737 Xsed="$SED -e 1s/^X//"
10738
10739 # The HP-UX ksh and POSIX shell print the target directory to stdout
10740 # if CDPATH is set.
10741 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10742
10743 # The names of the tagged configurations supported by this script.
10744 available_tags=
10745
10746 # ### BEGIN LIBTOOL CONFIG
10747
10748 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10749
10750 # Shell to use when invoking shell scripts.
10751 SHELL=$lt_SHELL
10752
10753 # Whether or not to build shared libraries.
10754 build_libtool_libs=$enable_shared
10755
10756 # Whether or not to build static libraries.
10757 build_old_libs=$enable_static
10758
10759 # Whether or not to add -lc for building shared libraries.
10760 build_libtool_need_lc=$archive_cmds_need_lc
10761
10762 # Whether or not to disallow shared libs when runtime libs are static
10763 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10764
10765 # Whether or not to optimize for fast installation.
10766 fast_install=$enable_fast_install
10767
10768 # The host system.
10769 host_alias=$host_alias
10770 host=$host
10771 host_os=$host_os
10772
10773 # The build system.
10774 build_alias=$build_alias
10775 build=$build
10776 build_os=$build_os
10777
10778 # An echo program that does not interpret backslashes.
10779 echo=$lt_echo
10780
10781 # The archiver.
10782 AR=$lt_AR
10783 AR_FLAGS=$lt_AR_FLAGS
10784
10785 # A C compiler.
10786 LTCC=$lt_LTCC
10787
10788 # LTCC compiler flags.
10789 LTCFLAGS=$lt_LTCFLAGS
10790
10791 # A language-specific compiler.
10792 CC=$lt_compiler
10793
10794 # Is the compiler the GNU C compiler?
10795 with_gcc=$GCC
10796
10797 # An ERE matcher.
10798 EGREP=$lt_EGREP
10799
10800 # The linker used to build libraries.
10801 LD=$lt_LD
10802
10803 # Whether we need hard or soft links.
10804 LN_S=$lt_LN_S
10805
10806 # A BSD-compatible nm program.
10807 NM=$lt_NM
10808
10809 # A symbol stripping program
10810 STRIP=$lt_STRIP
10811
10812 # Used to examine libraries when file_magic_cmd begins "file"
10813 MAGIC_CMD=$MAGIC_CMD
10814
10815 # Used on cygwin: DLL creation program.
10816 DLLTOOL="$DLLTOOL"
10817
10818 # Used on cygwin: object dumper.
10819 OBJDUMP="$OBJDUMP"
10820
10821 # Used on cygwin: assembler.
10822 AS="$AS"
10823
10824 # The name of the directory that contains temporary libtool files.
10825 objdir=$objdir
10826
10827 # How to create reloadable object files.
10828 reload_flag=$lt_reload_flag
10829 reload_cmds=$lt_reload_cmds
10830
10831 # How to pass a linker flag through the compiler.
10832 wl=$lt_lt_prog_compiler_wl
10833
10834 # Object file suffix (normally "o").
10835 objext="$ac_objext"
10836
10837 # Old archive suffix (normally "a").
10838 libext="$libext"
10839
10840 # Shared library suffix (normally ".so").
10841 shrext_cmds='$shrext_cmds'
10842
10843 # Executable file suffix (normally "").
10844 exeext="$exeext"
10845
10846 # Additional compiler flags for building library objects.
10847 pic_flag=$lt_lt_prog_compiler_pic
10848 pic_mode=$pic_mode
10849
10850 # What is the maximum length of a command?
10851 max_cmd_len=$lt_cv_sys_max_cmd_len
10852
10853 # Does compiler simultaneously support -c and -o options?
10854 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10855
10856 # Must we lock files when doing compilation?
10857 need_locks=$lt_need_locks
10858
10859 # Do we need the lib prefix for modules?
10860 need_lib_prefix=$need_lib_prefix
10861
10862 # Do we need a version for libraries?
10863 need_version=$need_version
10864
10865 # Whether dlopen is supported.
10866 dlopen_support=$enable_dlopen
10867
10868 # Whether dlopen of programs is supported.
10869 dlopen_self=$enable_dlopen_self
10870
10871 # Whether dlopen of statically linked programs is supported.
10872 dlopen_self_static=$enable_dlopen_self_static
10873
10874 # Compiler flag to prevent dynamic linking.
10875 link_static_flag=$lt_lt_prog_compiler_static
10876
10877 # Compiler flag to turn off builtin functions.
10878 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10879
10880 # Compiler flag to allow reflexive dlopens.
10881 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10882
10883 # Compiler flag to generate shared objects directly from archives.
10884 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10885
10886 # Compiler flag to generate thread-safe objects.
10887 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10888
10889 # Library versioning type.
10890 version_type=$version_type
10891
10892 # Format of library name prefix.
10893 libname_spec=$lt_libname_spec
10894
10895 # List of archive names.  First name is the real one, the rest are links.
10896 # The last name is the one that the linker finds with -lNAME.
10897 library_names_spec=$lt_library_names_spec
10898
10899 # The coded name of the library, if different from the real name.
10900 soname_spec=$lt_soname_spec
10901
10902 # Commands used to build and install an old-style archive.
10903 RANLIB=$lt_RANLIB
10904 old_archive_cmds=$lt_old_archive_cmds
10905 old_postinstall_cmds=$lt_old_postinstall_cmds
10906 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10907
10908 # Create an old-style archive from a shared archive.
10909 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10910
10911 # Create a temporary old-style archive to link instead of a shared archive.
10912 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10913
10914 # Commands used to build and install a shared archive.
10915 archive_cmds=$lt_archive_cmds
10916 archive_expsym_cmds=$lt_archive_expsym_cmds
10917 postinstall_cmds=$lt_postinstall_cmds
10918 postuninstall_cmds=$lt_postuninstall_cmds
10919
10920 # Commands used to build a loadable module (assumed same as above if empty)
10921 module_cmds=$lt_module_cmds
10922 module_expsym_cmds=$lt_module_expsym_cmds
10923
10924 # Commands to strip libraries.
10925 old_striplib=$lt_old_striplib
10926 striplib=$lt_striplib
10927
10928 # Dependencies to place before the objects being linked to create a
10929 # shared library.
10930 predep_objects=$lt_predep_objects
10931
10932 # Dependencies to place after the objects being linked to create a
10933 # shared library.
10934 postdep_objects=$lt_postdep_objects
10935
10936 # Dependencies to place before the objects being linked to create a
10937 # shared library.
10938 predeps=$lt_predeps
10939
10940 # Dependencies to place after the objects being linked to create a
10941 # shared library.
10942 postdeps=$lt_postdeps
10943
10944 # The directories searched by this compiler when creating a shared
10945 # library
10946 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10947
10948 # The library search path used internally by the compiler when linking
10949 # a shared library.
10950 compiler_lib_search_path=$lt_compiler_lib_search_path
10951
10952 # Method to check whether dependent libraries are shared objects.
10953 deplibs_check_method=$lt_deplibs_check_method
10954
10955 # Command to use when deplibs_check_method == file_magic.
10956 file_magic_cmd=$lt_file_magic_cmd
10957
10958 # Flag that allows shared libraries with undefined symbols to be built.
10959 allow_undefined_flag=$lt_allow_undefined_flag
10960
10961 # Flag that forces no undefined symbols.
10962 no_undefined_flag=$lt_no_undefined_flag
10963
10964 # Commands used to finish a libtool library installation in a directory.
10965 finish_cmds=$lt_finish_cmds
10966
10967 # Same as above, but a single script fragment to be evaled but not shown.
10968 finish_eval=$lt_finish_eval
10969
10970 # Take the output of nm and produce a listing of raw symbols and C names.
10971 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10972
10973 # Transform the output of nm in a proper C declaration
10974 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10975
10976 # Transform the output of nm in a C name address pair
10977 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10978
10979 # This is the shared library runtime path variable.
10980 runpath_var=$runpath_var
10981
10982 # This is the shared library path variable.
10983 shlibpath_var=$shlibpath_var
10984
10985 # Is shlibpath searched before the hard-coded library search path?
10986 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10987
10988 # How to hardcode a shared library path into an executable.
10989 hardcode_action=$hardcode_action
10990
10991 # Whether we should hardcode library paths into libraries.
10992 hardcode_into_libs=$hardcode_into_libs
10993
10994 # Flag to hardcode \$libdir into a binary during linking.
10995 # This must work even if \$libdir does not exist.
10996 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10997
10998 # If ld is used when linking, flag to hardcode \$libdir into
10999 # a binary during linking. This must work even if \$libdir does
11000 # not exist.
11001 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11002
11003 # Whether we need a single -rpath flag with a separated argument.
11004 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11005
11006 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11007 # resulting binary.
11008 hardcode_direct=$hardcode_direct
11009
11010 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11011 # resulting binary.
11012 hardcode_minus_L=$hardcode_minus_L
11013
11014 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11015 # the resulting binary.
11016 hardcode_shlibpath_var=$hardcode_shlibpath_var
11017
11018 # Set to yes if building a shared library automatically hardcodes DIR into the library
11019 # and all subsequent libraries and executables linked against it.
11020 hardcode_automatic=$hardcode_automatic
11021
11022 # Variables whose values should be saved in libtool wrapper scripts and
11023 # restored at relink time.
11024 variables_saved_for_relink="$variables_saved_for_relink"
11025
11026 # Whether libtool must link a program against all its dependency libraries.
11027 link_all_deplibs=$link_all_deplibs
11028
11029 # Compile-time system search path for libraries
11030 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11031
11032 # Run-time system search path for libraries
11033 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11034
11035 # Fix the shell variable \$srcfile for the compiler.
11036 fix_srcfile_path=$lt_fix_srcfile_path
11037
11038 # Set to yes if exported symbols are required.
11039 always_export_symbols=$always_export_symbols
11040
11041 # The commands to list exported symbols.
11042 export_symbols_cmds=$lt_export_symbols_cmds
11043
11044 # The commands to extract the exported symbol list from a shared archive.
11045 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11046
11047 # Symbols that should not be listed in the preloaded symbols.
11048 exclude_expsyms=$lt_exclude_expsyms
11049
11050 # Symbols that must always be exported.
11051 include_expsyms=$lt_include_expsyms
11052
11053 # ### END LIBTOOL CONFIG
11054
11055 __EOF__
11056
11057
11058   case $host_os in
11059   aix3*)
11060     cat <<\EOF >> "$cfgfile"
11061
11062 # AIX sometimes has problems with the GCC collect2 program.  For some
11063 # reason, if we set the COLLECT_NAMES environment variable, the problems
11064 # vanish in a puff of smoke.
11065 if test "X${COLLECT_NAMES+set}" != Xset; then
11066   COLLECT_NAMES=
11067   export COLLECT_NAMES
11068 fi
11069 EOF
11070     ;;
11071   esac
11072
11073   # We use sed instead of cat because bash on DJGPP gets confused if
11074   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11075   # text mode, it properly converts lines to CR/LF.  This bash problem
11076   # is reportedly fixed, but why not run on old versions too?
11077   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11078
11079   mv -f "$cfgfile" "$ofile" || \
11080     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11081   chmod +x "$ofile"
11082
11083 else
11084   # If there is no Makefile yet, we rely on a make rule to execute
11085   # `config.status --recheck' to rerun these tests and create the
11086   # libtool script then.
11087   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11088   if test -f "$ltmain_in"; then
11089     test -f Makefile && make "$ltmain"
11090   fi
11091 fi
11092
11093
11094 ac_ext=c
11095 ac_cpp='$CPP $CPPFLAGS'
11096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11099
11100 CC="$lt_save_CC"
11101
11102
11103 # Check whether --with-tags was given.
11104 if test "${with_tags+set}" = set; then
11105   withval=$with_tags; tagnames="$withval"
11106 fi
11107
11108
11109 if test -f "$ltmain" && test -n "$tagnames"; then
11110   if test ! -f "${ofile}"; then
11111     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11112 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11113   fi
11114
11115   if test -z "$LTCC"; then
11116     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11117     if test -z "$LTCC"; then
11118       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11119 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11120     else
11121       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11122 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11123     fi
11124   fi
11125   if test -z "$LTCFLAGS"; then
11126     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11127   fi
11128
11129   # Extract list of available tagged configurations in $ofile.
11130   # Note that this assumes the entire list is on one line.
11131   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11132
11133   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11134   for tagname in $tagnames; do
11135     IFS="$lt_save_ifs"
11136     # Check whether tagname contains only valid characters
11137     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11138     "") ;;
11139     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11140 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11141    { (exit 1); exit 1; }; }
11142         ;;
11143     esac
11144
11145     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11146     then
11147       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11148 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11149    { (exit 1); exit 1; }; }
11150     fi
11151
11152     # Update the list of available tags.
11153     if test -n "$tagname"; then
11154       echo appending configuration tag \"$tagname\" to $ofile
11155
11156       case $tagname in
11157       CXX)
11158         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11159             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11160             (test "X$CXX" != "Xg++"))) ; then
11161           ac_ext=cpp
11162 ac_cpp='$CXXCPP $CPPFLAGS'
11163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11166
11167
11168
11169
11170 archive_cmds_need_lc_CXX=no
11171 allow_undefined_flag_CXX=
11172 always_export_symbols_CXX=no
11173 archive_expsym_cmds_CXX=
11174 export_dynamic_flag_spec_CXX=
11175 hardcode_direct_CXX=no
11176 hardcode_libdir_flag_spec_CXX=
11177 hardcode_libdir_flag_spec_ld_CXX=
11178 hardcode_libdir_separator_CXX=
11179 hardcode_minus_L_CXX=no
11180 hardcode_shlibpath_var_CXX=unsupported
11181 hardcode_automatic_CXX=no
11182 module_cmds_CXX=
11183 module_expsym_cmds_CXX=
11184 link_all_deplibs_CXX=unknown
11185 old_archive_cmds_CXX=$old_archive_cmds
11186 no_undefined_flag_CXX=
11187 whole_archive_flag_spec_CXX=
11188 enable_shared_with_static_runtimes_CXX=no
11189
11190 # Dependencies to place before and after the object being linked:
11191 predep_objects_CXX=
11192 postdep_objects_CXX=
11193 predeps_CXX=
11194 postdeps_CXX=
11195 compiler_lib_search_path_CXX=
11196 compiler_lib_search_dirs_CXX=
11197
11198 # Source file extension for C++ test sources.
11199 ac_ext=cpp
11200
11201 # Object file extension for compiled C++ test sources.
11202 objext=o
11203 objext_CXX=$objext
11204
11205 # Code to be used in simple compile tests
11206 lt_simple_compile_test_code="int some_variable = 0;"
11207
11208 # Code to be used in simple link tests
11209 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11210
11211 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11212
11213 # If no C compiler was specified, use CC.
11214 LTCC=${LTCC-"$CC"}
11215
11216 # If no C compiler flags were specified, use CFLAGS.
11217 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11218
11219 # Allow CC to be a program name with arguments.
11220 compiler=$CC
11221
11222
11223 # save warnings/boilerplate of simple test code
11224 ac_outfile=conftest.$ac_objext
11225 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11226 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11227 _lt_compiler_boilerplate=`cat conftest.err`
11228 $rm conftest*
11229
11230 ac_outfile=conftest.$ac_objext
11231 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11232 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11233 _lt_linker_boilerplate=`cat conftest.err`
11234 $rm -r conftest*
11235
11236
11237 # Allow CC to be a program name with arguments.
11238 lt_save_CC=$CC
11239 lt_save_LD=$LD
11240 lt_save_GCC=$GCC
11241 GCC=$GXX
11242 lt_save_with_gnu_ld=$with_gnu_ld
11243 lt_save_path_LD=$lt_cv_path_LD
11244 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11245   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11246 else
11247   $as_unset lt_cv_prog_gnu_ld
11248 fi
11249 if test -n "${lt_cv_path_LDCXX+set}"; then
11250   lt_cv_path_LD=$lt_cv_path_LDCXX
11251 else
11252   $as_unset lt_cv_path_LD
11253 fi
11254 test -z "${LDCXX+set}" || LD=$LDCXX
11255 CC=${CXX-"c++"}
11256 compiler=$CC
11257 compiler_CXX=$CC
11258 for cc_temp in $compiler""; do
11259   case $cc_temp in
11260     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11261     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11262     \-*) ;;
11263     *) break;;
11264   esac
11265 done
11266 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11267
11268
11269 # We don't want -fno-exception wen compiling C++ code, so set the
11270 # no_builtin_flag separately
11271 if test "$GXX" = yes; then
11272   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11273 else
11274   lt_prog_compiler_no_builtin_flag_CXX=
11275 fi
11276
11277 if test "$GXX" = yes; then
11278   # Set up default GNU C++ configuration
11279
11280
11281 # Check whether --with-gnu-ld was given.
11282 if test "${with_gnu_ld+set}" = set; then
11283   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11284 else
11285   with_gnu_ld=no
11286 fi
11287
11288 ac_prog=ld
11289 if test "$GCC" = yes; then
11290   # Check if gcc -print-prog-name=ld gives a path.
11291   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11292 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11293   case $host in
11294   *-*-mingw*)
11295     # gcc leaves a trailing carriage return which upsets mingw
11296     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11297   *)
11298     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11299   esac
11300   case $ac_prog in
11301     # Accept absolute paths.
11302     [\\/]* | ?:[\\/]*)
11303       re_direlt='/[^/][^/]*/\.\./'
11304       # Canonicalize the pathname of ld
11305       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11306       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11307         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11308       done
11309       test -z "$LD" && LD="$ac_prog"
11310       ;;
11311   "")
11312     # If it fails, then pretend we aren't using GCC.
11313     ac_prog=ld
11314     ;;
11315   *)
11316     # If it is relative, then search for the first ld in PATH.
11317     with_gnu_ld=unknown
11318     ;;
11319   esac
11320 elif test "$with_gnu_ld" = yes; then
11321   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11322 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11323 else
11324   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11325 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11326 fi
11327 if test "${lt_cv_path_LD+set}" = set; then
11328   echo $ECHO_N "(cached) $ECHO_C" >&6
11329 else
11330   if test -z "$LD"; then
11331   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11332   for ac_dir in $PATH; do
11333     IFS="$lt_save_ifs"
11334     test -z "$ac_dir" && ac_dir=.
11335     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11336       lt_cv_path_LD="$ac_dir/$ac_prog"
11337       # Check to see if the program is GNU ld.  I'd rather use --version,
11338       # but apparently some variants of GNU ld only accept -v.
11339       # Break only if it was the GNU/non-GNU ld that we prefer.
11340       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11341       *GNU* | *'with BFD'*)
11342         test "$with_gnu_ld" != no && break
11343         ;;
11344       *)
11345         test "$with_gnu_ld" != yes && break
11346         ;;
11347       esac
11348     fi
11349   done
11350   IFS="$lt_save_ifs"
11351 else
11352   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11353 fi
11354 fi
11355
11356 LD="$lt_cv_path_LD"
11357 if test -n "$LD"; then
11358   { echo "$as_me:$LINENO: result: $LD" >&5
11359 echo "${ECHO_T}$LD" >&6; }
11360 else
11361   { echo "$as_me:$LINENO: result: no" >&5
11362 echo "${ECHO_T}no" >&6; }
11363 fi
11364 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11365 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11366    { (exit 1); exit 1; }; }
11367 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11368 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11369 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11370   echo $ECHO_N "(cached) $ECHO_C" >&6
11371 else
11372   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11373 case `$LD -v 2>&1 </dev/null` in
11374 *GNU* | *'with BFD'*)
11375   lt_cv_prog_gnu_ld=yes
11376   ;;
11377 *)
11378   lt_cv_prog_gnu_ld=no
11379   ;;
11380 esac
11381 fi
11382 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11383 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11384 with_gnu_ld=$lt_cv_prog_gnu_ld
11385
11386
11387
11388   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11389   # archiving commands below assume that GNU ld is being used.
11390   if test "$with_gnu_ld" = yes; then
11391     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11392     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11393
11394     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11395     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11396
11397     # If archive_cmds runs LD, not CC, wlarc should be empty
11398     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11399     #     investigate it a little bit more. (MM)
11400     wlarc='${wl}'
11401
11402     # ancient GNU ld didn't support --whole-archive et. al.
11403     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11404         grep 'no-whole-archive' > /dev/null; then
11405       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11406     else
11407       whole_archive_flag_spec_CXX=
11408     fi
11409   else
11410     with_gnu_ld=no
11411     wlarc=
11412
11413     # A generic and very simple default shared library creation
11414     # command for GNU C++ for the case where it uses the native
11415     # linker, instead of GNU ld.  If possible, this setting should
11416     # overridden to take advantage of the native linker features on
11417     # the platform it is being used on.
11418     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11419   fi
11420
11421   # Commands to make compiler produce verbose output that lists
11422   # what "hidden" libraries, object files and flags are used when
11423   # linking a shared library.
11424   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11425
11426 else
11427   GXX=no
11428   with_gnu_ld=no
11429   wlarc=
11430 fi
11431
11432 # PORTME: fill in a description of your system's C++ link characteristics
11433 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11434 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11435 ld_shlibs_CXX=yes
11436 case $host_os in
11437   aix3*)
11438     # FIXME: insert proper C++ library support
11439     ld_shlibs_CXX=no
11440     ;;
11441   aix[4-9]*)
11442     if test "$host_cpu" = ia64; then
11443       # On IA64, the linker does run time linking by default, so we don't
11444       # have to do anything special.
11445       aix_use_runtimelinking=no
11446       exp_sym_flag='-Bexport'
11447       no_entry_flag=""
11448     else
11449       aix_use_runtimelinking=no
11450
11451       # Test if we are trying to use run time linking or normal
11452       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11453       # need to do runtime linking.
11454       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11455         for ld_flag in $LDFLAGS; do
11456           case $ld_flag in
11457           *-brtl*)
11458             aix_use_runtimelinking=yes
11459             break
11460             ;;
11461           esac
11462         done
11463         ;;
11464       esac
11465
11466       exp_sym_flag='-bexport'
11467       no_entry_flag='-bnoentry'
11468     fi
11469
11470     # When large executables or shared objects are built, AIX ld can
11471     # have problems creating the table of contents.  If linking a library
11472     # or program results in "error TOC overflow" add -mminimal-toc to
11473     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11474     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11475
11476     archive_cmds_CXX=''
11477     hardcode_direct_CXX=yes
11478     hardcode_libdir_separator_CXX=':'
11479     link_all_deplibs_CXX=yes
11480
11481     if test "$GXX" = yes; then
11482       case $host_os in aix4.[012]|aix4.[012].*)
11483       # We only want to do this on AIX 4.2 and lower, the check
11484       # below for broken collect2 doesn't work under 4.3+
11485         collect2name=`${CC} -print-prog-name=collect2`
11486         if test -f "$collect2name" && \
11487            strings "$collect2name" | grep resolve_lib_name >/dev/null
11488         then
11489           # We have reworked collect2
11490           :
11491         else
11492           # We have old collect2
11493           hardcode_direct_CXX=unsupported
11494           # It fails to find uninstalled libraries when the uninstalled
11495           # path is not listed in the libpath.  Setting hardcode_minus_L
11496           # to unsupported forces relinking
11497           hardcode_minus_L_CXX=yes
11498           hardcode_libdir_flag_spec_CXX='-L$libdir'
11499           hardcode_libdir_separator_CXX=
11500         fi
11501         ;;
11502       esac
11503       shared_flag='-shared'
11504       if test "$aix_use_runtimelinking" = yes; then
11505         shared_flag="$shared_flag "'${wl}-G'
11506       fi
11507     else
11508       # not using gcc
11509       if test "$host_cpu" = ia64; then
11510         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11511         # chokes on -Wl,-G. The following line is correct:
11512         shared_flag='-G'
11513       else
11514         if test "$aix_use_runtimelinking" = yes; then
11515           shared_flag='${wl}-G'
11516         else
11517           shared_flag='${wl}-bM:SRE'
11518         fi
11519       fi
11520     fi
11521
11522     # It seems that -bexpall does not export symbols beginning with
11523     # underscore (_), so it is better to generate a list of symbols to export.
11524     always_export_symbols_CXX=yes
11525     if test "$aix_use_runtimelinking" = yes; then
11526       # Warning - without using the other runtime loading flags (-brtl),
11527       # -berok will link without error, but may produce a broken library.
11528       allow_undefined_flag_CXX='-berok'
11529       # Determine the default libpath from the value encoded in an empty executable.
11530       cat >conftest.$ac_ext <<_ACEOF
11531 /* confdefs.h.  */
11532 _ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h.  */
11536
11537 int
11538 main ()
11539 {
11540
11541   ;
11542   return 0;
11543 }
11544 _ACEOF
11545 rm -f conftest.$ac_objext conftest$ac_exeext
11546 if { (ac_try="$ac_link"
11547 case "(($ac_try" in
11548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549   *) ac_try_echo=$ac_try;;
11550 esac
11551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552   (eval "$ac_link") 2>conftest.er1
11553   ac_status=$?
11554   grep -v '^ *+' conftest.er1 >conftest.err
11555   rm -f conftest.er1
11556   cat conftest.err >&5
11557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); } && {
11559          test -z "$ac_cxx_werror_flag" ||
11560          test ! -s conftest.err
11561        } && test -s conftest$ac_exeext &&
11562        $as_test_x conftest$ac_exeext; then
11563
11564 lt_aix_libpath_sed='
11565     /Import File Strings/,/^$/ {
11566         /^0/ {
11567             s/^0  *\(.*\)$/\1/
11568             p
11569         }
11570     }'
11571 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11572 # Check for a 64-bit object if we didn't find anything.
11573 if test -z "$aix_libpath"; then
11574   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11575 fi
11576 else
11577   echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11579
11580
11581 fi
11582
11583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11584       conftest$ac_exeext conftest.$ac_ext
11585 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11586
11587       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11588
11589       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11590      else
11591       if test "$host_cpu" = ia64; then
11592         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11593         allow_undefined_flag_CXX="-z nodefs"
11594         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11595       else
11596         # Determine the default libpath from the value encoded in an empty executable.
11597         cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h.  */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h.  */
11603
11604 int
11605 main ()
11606 {
11607
11608   ;
11609   return 0;
11610 }
11611 _ACEOF
11612 rm -f conftest.$ac_objext conftest$ac_exeext
11613 if { (ac_try="$ac_link"
11614 case "(($ac_try" in
11615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616   *) ac_try_echo=$ac_try;;
11617 esac
11618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11619   (eval "$ac_link") 2>conftest.er1
11620   ac_status=$?
11621   grep -v '^ *+' conftest.er1 >conftest.err
11622   rm -f conftest.er1
11623   cat conftest.err >&5
11624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   (exit $ac_status); } && {
11626          test -z "$ac_cxx_werror_flag" ||
11627          test ! -s conftest.err
11628        } && test -s conftest$ac_exeext &&
11629        $as_test_x conftest$ac_exeext; then
11630
11631 lt_aix_libpath_sed='
11632     /Import File Strings/,/^$/ {
11633         /^0/ {
11634             s/^0  *\(.*\)$/\1/
11635             p
11636         }
11637     }'
11638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11639 # Check for a 64-bit object if we didn't find anything.
11640 if test -z "$aix_libpath"; then
11641   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11642 fi
11643 else
11644   echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11646
11647
11648 fi
11649
11650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11651       conftest$ac_exeext conftest.$ac_ext
11652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11653
11654         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11655         # Warning - without using the other run time loading flags,
11656         # -berok will link without error, but may produce a broken library.
11657         no_undefined_flag_CXX=' ${wl}-bernotok'
11658         allow_undefined_flag_CXX=' ${wl}-berok'
11659         # Exported symbols can be pulled into shared objects from archives
11660         whole_archive_flag_spec_CXX='$convenience'
11661         archive_cmds_need_lc_CXX=yes
11662         # This is similar to how AIX traditionally builds its shared libraries.
11663         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11664       fi
11665     fi
11666     ;;
11667
11668   beos*)
11669     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11670       allow_undefined_flag_CXX=unsupported
11671       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11672       # support --undefined.  This deserves some investigation.  FIXME
11673       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11674     else
11675       ld_shlibs_CXX=no
11676     fi
11677     ;;
11678
11679   chorus*)
11680     case $cc_basename in
11681       *)
11682         # FIXME: insert proper C++ library support
11683         ld_shlibs_CXX=no
11684         ;;
11685     esac
11686     ;;
11687
11688   cygwin* | mingw* | pw32*)
11689     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11690     # as there is no search path for DLLs.
11691     hardcode_libdir_flag_spec_CXX='-L$libdir'
11692     allow_undefined_flag_CXX=unsupported
11693     always_export_symbols_CXX=no
11694     enable_shared_with_static_runtimes_CXX=yes
11695
11696     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11697       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11698       # If the export-symbols file already is a .def file (1st line
11699       # is EXPORTS), use it as is; otherwise, prepend...
11700       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11701         cp $export_symbols $output_objdir/$soname.def;
11702       else
11703         echo EXPORTS > $output_objdir/$soname.def;
11704         cat $export_symbols >> $output_objdir/$soname.def;
11705       fi~
11706       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11707     else
11708       ld_shlibs_CXX=no
11709     fi
11710   ;;
11711       darwin* | rhapsody*)
11712       archive_cmds_need_lc_CXX=no
11713       hardcode_direct_CXX=no
11714       hardcode_automatic_CXX=yes
11715       hardcode_shlibpath_var_CXX=unsupported
11716       whole_archive_flag_spec_CXX=''
11717       link_all_deplibs_CXX=yes
11718       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11719       if test "$GXX" = yes ; then
11720       output_verbose_link_cmd='echo'
11721       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11722       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11723       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11724       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11725       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11726         archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11727         archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11728       fi
11729       else
11730       case $cc_basename in
11731         xlc*)
11732          output_verbose_link_cmd='echo'
11733           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11734           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11735           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11736           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11737           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11738           ;;
11739        *)
11740          ld_shlibs_CXX=no
11741           ;;
11742       esac
11743       fi
11744         ;;
11745
11746   dgux*)
11747     case $cc_basename in
11748       ec++*)
11749         # FIXME: insert proper C++ library support
11750         ld_shlibs_CXX=no
11751         ;;
11752       ghcx*)
11753         # Green Hills C++ Compiler
11754         # FIXME: insert proper C++ library support
11755         ld_shlibs_CXX=no
11756         ;;
11757       *)
11758         # FIXME: insert proper C++ library support
11759         ld_shlibs_CXX=no
11760         ;;
11761     esac
11762     ;;
11763   freebsd[12]*)
11764     # C++ shared libraries reported to be fairly broken before switch to ELF
11765     ld_shlibs_CXX=no
11766     ;;
11767   freebsd-elf*)
11768     archive_cmds_need_lc_CXX=no
11769     ;;
11770   freebsd* | dragonfly*)
11771     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11772     # conventions
11773     ld_shlibs_CXX=yes
11774     ;;
11775   gnu*)
11776     ;;
11777   hpux9*)
11778     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11779     hardcode_libdir_separator_CXX=:
11780     export_dynamic_flag_spec_CXX='${wl}-E'
11781     hardcode_direct_CXX=yes
11782     hardcode_minus_L_CXX=yes # Not in the search PATH,
11783                                 # but as the default
11784                                 # location of the library.
11785
11786     case $cc_basename in
11787     CC*)
11788       # FIXME: insert proper C++ library support
11789       ld_shlibs_CXX=no
11790       ;;
11791     aCC*)
11792       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11793       # Commands to make compiler produce verbose output that lists
11794       # what "hidden" libraries, object files and flags are used when
11795       # linking a shared library.
11796       #
11797       # There doesn't appear to be a way to prevent this compiler from
11798       # explicitly linking system object files so we need to strip them
11799       # from the output so that they don't get included in the library
11800       # dependencies.
11801       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11802       ;;
11803     *)
11804       if test "$GXX" = yes; then
11805         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11806       else
11807         # FIXME: insert proper C++ library support
11808         ld_shlibs_CXX=no
11809       fi
11810       ;;
11811     esac
11812     ;;
11813   hpux10*|hpux11*)
11814     if test $with_gnu_ld = no; then
11815       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11816       hardcode_libdir_separator_CXX=:
11817
11818       case $host_cpu in
11819       hppa*64*|ia64*) ;;
11820       *)
11821         export_dynamic_flag_spec_CXX='${wl}-E'
11822         ;;
11823       esac
11824     fi
11825     case $host_cpu in
11826     hppa*64*|ia64*)
11827       hardcode_direct_CXX=no
11828       hardcode_shlibpath_var_CXX=no
11829       ;;
11830     *)
11831       hardcode_direct_CXX=yes
11832       hardcode_minus_L_CXX=yes # Not in the search PATH,
11833                                               # but as the default
11834                                               # location of the library.
11835       ;;
11836     esac
11837
11838     case $cc_basename in
11839       CC*)
11840         # FIXME: insert proper C++ library support
11841         ld_shlibs_CXX=no
11842         ;;
11843       aCC*)
11844         case $host_cpu in
11845         hppa*64*)
11846           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11847           ;;
11848         ia64*)
11849           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11850           ;;
11851         *)
11852           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11853           ;;
11854         esac
11855         # Commands to make compiler produce verbose output that lists
11856         # what "hidden" libraries, object files and flags are used when
11857         # linking a shared library.
11858         #
11859         # There doesn't appear to be a way to prevent this compiler from
11860         # explicitly linking system object files so we need to strip them
11861         # from the output so that they don't get included in the library
11862         # dependencies.
11863         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11864         ;;
11865       *)
11866         if test "$GXX" = yes; then
11867           if test $with_gnu_ld = no; then
11868             case $host_cpu in
11869             hppa*64*)
11870               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11871               ;;
11872             ia64*)
11873               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11874               ;;
11875             *)
11876               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11877               ;;
11878             esac
11879           fi
11880         else
11881           # FIXME: insert proper C++ library support
11882           ld_shlibs_CXX=no
11883         fi
11884         ;;
11885     esac
11886     ;;
11887   interix[3-9]*)
11888     hardcode_direct_CXX=no
11889     hardcode_shlibpath_var_CXX=no
11890     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11891     export_dynamic_flag_spec_CXX='${wl}-E'
11892     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11893     # Instead, shared libraries are loaded at an image base (0x10000000 by
11894     # default) and relocated if they conflict, which is a slow very memory
11895     # consuming and fragmenting process.  To avoid this, we pick a random,
11896     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11897     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11898     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11899     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11900     ;;
11901   irix5* | irix6*)
11902     case $cc_basename in
11903       CC*)
11904         # SGI C++
11905         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11906
11907         # Archives containing C++ object files must be created using
11908         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11909         # necessary to make sure instantiated templates are included
11910         # in the archive.
11911         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11912         ;;
11913       *)
11914         if test "$GXX" = yes; then
11915           if test "$with_gnu_ld" = no; then
11916             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11917           else
11918             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11919           fi
11920         fi
11921         link_all_deplibs_CXX=yes
11922         ;;
11923     esac
11924     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11925     hardcode_libdir_separator_CXX=:
11926     ;;
11927   linux* | k*bsd*-gnu)
11928     case $cc_basename in
11929       KCC*)
11930         # Kuck and Associates, Inc. (KAI) C++ Compiler
11931
11932         # KCC will only create a shared library if the output file
11933         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11934         # to its proper name (with version) after linking.
11935         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11936         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11937         # Commands to make compiler produce verbose output that lists
11938         # what "hidden" libraries, object files and flags are used when
11939         # linking a shared library.
11940         #
11941         # There doesn't appear to be a way to prevent this compiler from
11942         # explicitly linking system object files so we need to strip them
11943         # from the output so that they don't get included in the library
11944         # dependencies.
11945         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11946
11947         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11948         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11949
11950         # Archives containing C++ object files must be created using
11951         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11952         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11953         ;;
11954       icpc*)
11955         # Intel C++
11956         with_gnu_ld=yes
11957         # version 8.0 and above of icpc choke on multiply defined symbols
11958         # if we add $predep_objects and $postdep_objects, however 7.1 and
11959         # earlier do not add the objects themselves.
11960         case `$CC -V 2>&1` in
11961         *"Version 7."*)
11962           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11963           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11964           ;;
11965         *)  # Version 8.0 or newer
11966           tmp_idyn=
11967           case $host_cpu in
11968             ia64*) tmp_idyn=' -i_dynamic';;
11969           esac
11970           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11971           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11972           ;;
11973         esac
11974         archive_cmds_need_lc_CXX=no
11975         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11976         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11977         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11978         ;;
11979       pgCC* | pgcpp*)
11980         # Portland Group C++ compiler
11981         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11982         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11983
11984         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11985         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11986         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11987         ;;
11988       cxx*)
11989         # Compaq C++
11990         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11991         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11992
11993         runpath_var=LD_RUN_PATH
11994         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11995         hardcode_libdir_separator_CXX=:
11996
11997         # Commands to make compiler produce verbose output that lists
11998         # what "hidden" libraries, object files and flags are used when
11999         # linking a shared library.
12000         #
12001         # There doesn't appear to be a way to prevent this compiler from
12002         # explicitly linking system object files so we need to strip them
12003         # from the output so that they don't get included in the library
12004         # dependencies.
12005         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12006         ;;
12007       *)
12008         case `$CC -V 2>&1 | sed 5q` in
12009         *Sun\ C*)
12010           # Sun C++ 5.9
12011           no_undefined_flag_CXX=' -zdefs'
12012           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12013           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12014           hardcode_libdir_flag_spec_CXX='-R$libdir'
12015           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12016
12017           # Not sure whether something based on
12018           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12019           # would be better.
12020           output_verbose_link_cmd='echo'
12021
12022           # Archives containing C++ object files must be created using
12023           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12024           # necessary to make sure instantiated templates are included
12025           # in the archive.
12026           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12027           ;;
12028         esac
12029         ;;
12030     esac
12031     ;;
12032   lynxos*)
12033     # FIXME: insert proper C++ library support
12034     ld_shlibs_CXX=no
12035     ;;
12036   m88k*)
12037     # FIXME: insert proper C++ library support
12038     ld_shlibs_CXX=no
12039     ;;
12040   mvs*)
12041     case $cc_basename in
12042       cxx*)
12043         # FIXME: insert proper C++ library support
12044         ld_shlibs_CXX=no
12045         ;;
12046       *)
12047         # FIXME: insert proper C++ library support
12048         ld_shlibs_CXX=no
12049         ;;
12050     esac
12051     ;;
12052   netbsd* | netbsdelf*-gnu)
12053     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12054       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12055       wlarc=
12056       hardcode_libdir_flag_spec_CXX='-R$libdir'
12057       hardcode_direct_CXX=yes
12058       hardcode_shlibpath_var_CXX=no
12059     fi
12060     # Workaround some broken pre-1.5 toolchains
12061     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12062     ;;
12063   openbsd2*)
12064     # C++ shared libraries are fairly broken
12065     ld_shlibs_CXX=no
12066     ;;
12067   openbsd*)
12068     if test -f /usr/libexec/ld.so; then
12069       hardcode_direct_CXX=yes
12070       hardcode_shlibpath_var_CXX=no
12071       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12072       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12073       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12074         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12075         export_dynamic_flag_spec_CXX='${wl}-E'
12076         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12077       fi
12078       output_verbose_link_cmd='echo'
12079     else
12080       ld_shlibs_CXX=no
12081     fi
12082     ;;
12083   osf3*)
12084     case $cc_basename in
12085       KCC*)
12086         # Kuck and Associates, Inc. (KAI) C++ Compiler
12087
12088         # KCC will only create a shared library if the output file
12089         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12090         # to its proper name (with version) after linking.
12091         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12092
12093         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12094         hardcode_libdir_separator_CXX=:
12095
12096         # Archives containing C++ object files must be created using
12097         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12098         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12099
12100         ;;
12101       RCC*)
12102         # Rational C++ 2.4.1
12103         # FIXME: insert proper C++ library support
12104         ld_shlibs_CXX=no
12105         ;;
12106       cxx*)
12107         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12108         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12109
12110         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12111         hardcode_libdir_separator_CXX=:
12112
12113         # Commands to make compiler produce verbose output that lists
12114         # what "hidden" libraries, object files and flags are used when
12115         # linking a shared library.
12116         #
12117         # There doesn't appear to be a way to prevent this compiler from
12118         # explicitly linking system object files so we need to strip them
12119         # from the output so that they don't get included in the library
12120         # dependencies.
12121         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12122         ;;
12123       *)
12124         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12125           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12126           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12127
12128           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12129           hardcode_libdir_separator_CXX=:
12130
12131           # Commands to make compiler produce verbose output that lists
12132           # what "hidden" libraries, object files and flags are used when
12133           # linking a shared library.
12134           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12135
12136         else
12137           # FIXME: insert proper C++ library support
12138           ld_shlibs_CXX=no
12139         fi
12140         ;;
12141     esac
12142     ;;
12143   osf4* | osf5*)
12144     case $cc_basename in
12145       KCC*)
12146         # Kuck and Associates, Inc. (KAI) C++ Compiler
12147
12148         # KCC will only create a shared library if the output file
12149         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12150         # to its proper name (with version) after linking.
12151         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12152
12153         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12154         hardcode_libdir_separator_CXX=:
12155
12156         # Archives containing C++ object files must be created using
12157         # the KAI C++ compiler.
12158         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12159         ;;
12160       RCC*)
12161         # Rational C++ 2.4.1
12162         # FIXME: insert proper C++ library support
12163         ld_shlibs_CXX=no
12164         ;;
12165       cxx*)
12166         allow_undefined_flag_CXX=' -expect_unresolved \*'
12167         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12168         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12169           echo "-hidden">> $lib.exp~
12170           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12171           $rm $lib.exp'
12172
12173         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12174         hardcode_libdir_separator_CXX=:
12175
12176         # Commands to make compiler produce verbose output that lists
12177         # what "hidden" libraries, object files and flags are used when
12178         # linking a shared library.
12179         #
12180         # There doesn't appear to be a way to prevent this compiler from
12181         # explicitly linking system object files so we need to strip them
12182         # from the output so that they don't get included in the library
12183         # dependencies.
12184         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12185         ;;
12186       *)
12187         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12188           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12189          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12190
12191           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12192           hardcode_libdir_separator_CXX=:
12193
12194           # Commands to make compiler produce verbose output that lists
12195           # what "hidden" libraries, object files and flags are used when
12196           # linking a shared library.
12197           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12198
12199         else
12200           # FIXME: insert proper C++ library support
12201           ld_shlibs_CXX=no
12202         fi
12203         ;;
12204     esac
12205     ;;
12206   psos*)
12207     # FIXME: insert proper C++ library support
12208     ld_shlibs_CXX=no
12209     ;;
12210   sunos4*)
12211     case $cc_basename in
12212       CC*)
12213         # Sun C++ 4.x
12214         # FIXME: insert proper C++ library support
12215         ld_shlibs_CXX=no
12216         ;;
12217       lcc*)
12218         # Lucid
12219         # FIXME: insert proper C++ library support
12220         ld_shlibs_CXX=no
12221         ;;
12222       *)
12223         # FIXME: insert proper C++ library support
12224         ld_shlibs_CXX=no
12225         ;;
12226     esac
12227     ;;
12228   solaris*)
12229     case $cc_basename in
12230       CC*)
12231         # Sun C++ 4.2, 5.x and Centerline C++
12232         archive_cmds_need_lc_CXX=yes
12233         no_undefined_flag_CXX=' -zdefs'
12234         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12235         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12236         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12237
12238         hardcode_libdir_flag_spec_CXX='-R$libdir'
12239         hardcode_shlibpath_var_CXX=no
12240         case $host_os in
12241           solaris2.[0-5] | solaris2.[0-5].*) ;;
12242           *)
12243             # The compiler driver will combine and reorder linker options,
12244             # but understands `-z linker_flag'.
12245             # Supported since Solaris 2.6 (maybe 2.5.1?)
12246             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12247             ;;
12248         esac
12249         link_all_deplibs_CXX=yes
12250
12251         output_verbose_link_cmd='echo'
12252
12253         # Archives containing C++ object files must be created using
12254         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12255         # necessary to make sure instantiated templates are included
12256         # in the archive.
12257         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12258         ;;
12259       gcx*)
12260         # Green Hills C++ Compiler
12261         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12262
12263         # The C++ compiler must be used to create the archive.
12264         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12265         ;;
12266       *)
12267         # GNU C++ compiler with Solaris linker
12268         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12269           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12270           if $CC --version | grep -v '^2\.7' > /dev/null; then
12271             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12272             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12273                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12274
12275             # Commands to make compiler produce verbose output that lists
12276             # what "hidden" libraries, object files and flags are used when
12277             # linking a shared library.
12278             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12279           else
12280             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12281             # platform.
12282             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12283             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12284                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12285
12286             # Commands to make compiler produce verbose output that lists
12287             # what "hidden" libraries, object files and flags are used when
12288             # linking a shared library.
12289             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12290           fi
12291
12292           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12293           case $host_os in
12294           solaris2.[0-5] | solaris2.[0-5].*) ;;
12295           *)
12296             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12297             ;;
12298           esac
12299         fi
12300         ;;
12301     esac
12302     ;;
12303   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12304     no_undefined_flag_CXX='${wl}-z,text'
12305     archive_cmds_need_lc_CXX=no
12306     hardcode_shlibpath_var_CXX=no
12307     runpath_var='LD_RUN_PATH'
12308
12309     case $cc_basename in
12310       CC*)
12311         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12312         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12313         ;;
12314       *)
12315         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12316         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12317         ;;
12318     esac
12319     ;;
12320   sysv5* | sco3.2v5* | sco5v6*)
12321     # Note: We can NOT use -z defs as we might desire, because we do not
12322     # link with -lc, and that would cause any symbols used from libc to
12323     # always be unresolved, which means just about no library would
12324     # ever link correctly.  If we're not using GNU ld we use -z text
12325     # though, which does catch some bad symbols but isn't as heavy-handed
12326     # as -z defs.
12327     # For security reasons, it is highly recommended that you always
12328     # use absolute paths for naming shared libraries, and exclude the
12329     # DT_RUNPATH tag from executables and libraries.  But doing so
12330     # requires that you compile everything twice, which is a pain.
12331     # So that behaviour is only enabled if SCOABSPATH is set to a
12332     # non-empty value in the environment.  Most likely only useful for
12333     # creating official distributions of packages.
12334     # This is a hack until libtool officially supports absolute path
12335     # names for shared libraries.
12336     no_undefined_flag_CXX='${wl}-z,text'
12337     allow_undefined_flag_CXX='${wl}-z,nodefs'
12338     archive_cmds_need_lc_CXX=no
12339     hardcode_shlibpath_var_CXX=no
12340     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12341     hardcode_libdir_separator_CXX=':'
12342     link_all_deplibs_CXX=yes
12343     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12344     runpath_var='LD_RUN_PATH'
12345
12346     case $cc_basename in
12347       CC*)
12348         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12349         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12350         ;;
12351       *)
12352         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12353         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12354         ;;
12355     esac
12356     ;;
12357   tandem*)
12358     case $cc_basename in
12359       NCC*)
12360         # NonStop-UX NCC 3.20
12361         # FIXME: insert proper C++ library support
12362         ld_shlibs_CXX=no
12363         ;;
12364       *)
12365         # FIXME: insert proper C++ library support
12366         ld_shlibs_CXX=no
12367         ;;
12368     esac
12369     ;;
12370   vxworks*)
12371     # FIXME: insert proper C++ library support
12372     ld_shlibs_CXX=no
12373     ;;
12374   *)
12375     # FIXME: insert proper C++ library support
12376     ld_shlibs_CXX=no
12377     ;;
12378 esac
12379 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12380 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12381 test "$ld_shlibs_CXX" = no && can_build_shared=no
12382
12383 GCC_CXX="$GXX"
12384 LD_CXX="$LD"
12385
12386 cat > conftest.$ac_ext <<EOF
12387 class Foo
12388 {
12389 public:
12390   Foo (void) { a = 0; }
12391 private:
12392   int a;
12393 };
12394 EOF
12395
12396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12397   (eval $ac_compile) 2>&5
12398   ac_status=$?
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); }; then
12401   # Parse the compiler output and extract the necessary
12402   # objects, libraries and library flags.
12403
12404   # Sentinel used to keep track of whether or not we are before
12405   # the conftest object file.
12406   pre_test_object_deps_done=no
12407
12408   # The `*' in the case matches for architectures that use `case' in
12409   # $output_verbose_cmd can trigger glob expansion during the loop
12410   # eval without this substitution.
12411   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12412
12413   for p in `eval $output_verbose_link_cmd`; do
12414     case $p in
12415
12416     -L* | -R* | -l*)
12417        # Some compilers place space between "-{L,R}" and the path.
12418        # Remove the space.
12419        if test $p = "-L" \
12420           || test $p = "-R"; then
12421          prev=$p
12422          continue
12423        else
12424          prev=
12425        fi
12426
12427        if test "$pre_test_object_deps_done" = no; then
12428          case $p in
12429          -L* | -R*)
12430            # Internal compiler library paths should come after those
12431            # provided the user.  The postdeps already come after the
12432            # user supplied libs so there is no need to process them.
12433            if test -z "$compiler_lib_search_path_CXX"; then
12434              compiler_lib_search_path_CXX="${prev}${p}"
12435            else
12436              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12437            fi
12438            ;;
12439          # The "-l" case would never come before the object being
12440          # linked, so don't bother handling this case.
12441          esac
12442        else
12443          if test -z "$postdeps_CXX"; then
12444            postdeps_CXX="${prev}${p}"
12445          else
12446            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12447          fi
12448        fi
12449        ;;
12450
12451     *.$objext)
12452        # This assumes that the test object file only shows up
12453        # once in the compiler output.
12454        if test "$p" = "conftest.$objext"; then
12455          pre_test_object_deps_done=yes
12456          continue
12457        fi
12458
12459        if test "$pre_test_object_deps_done" = no; then
12460          if test -z "$predep_objects_CXX"; then
12461            predep_objects_CXX="$p"
12462          else
12463            predep_objects_CXX="$predep_objects_CXX $p"
12464          fi
12465        else
12466          if test -z "$postdep_objects_CXX"; then
12467            postdep_objects_CXX="$p"
12468          else
12469            postdep_objects_CXX="$postdep_objects_CXX $p"
12470          fi
12471        fi
12472        ;;
12473
12474     *) ;; # Ignore the rest.
12475
12476     esac
12477   done
12478
12479   # Clean up.
12480   rm -f a.out a.exe
12481 else
12482   echo "libtool.m4: error: problem compiling CXX test program"
12483 fi
12484
12485 $rm -f confest.$objext
12486
12487 compiler_lib_search_dirs_CXX=
12488 if test -n "$compiler_lib_search_path_CXX"; then
12489   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12490 fi
12491
12492 # PORTME: override above test on systems where it is broken
12493 case $host_os in
12494 interix[3-9]*)
12495   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12496   # hack all around it, let's just trust "g++" to DTRT.
12497   predep_objects_CXX=
12498   postdep_objects_CXX=
12499   postdeps_CXX=
12500   ;;
12501
12502 linux*)
12503   case `$CC -V 2>&1 | sed 5q` in
12504   *Sun\ C*)
12505     # Sun C++ 5.9
12506     #
12507     # The more standards-conforming stlport4 library is
12508     # incompatible with the Cstd library. Avoid specifying
12509     # it if it's in CXXFLAGS. Ignore libCrun as
12510     # -library=stlport4 depends on it.
12511     case " $CXX $CXXFLAGS " in
12512     *" -library=stlport4 "*)
12513       solaris_use_stlport4=yes
12514       ;;
12515     esac
12516     if test "$solaris_use_stlport4" != yes; then
12517       postdeps_CXX='-library=Cstd -library=Crun'
12518     fi
12519     ;;
12520   esac
12521   ;;
12522
12523 solaris*)
12524   case $cc_basename in
12525   CC*)
12526     # The more standards-conforming stlport4 library is
12527     # incompatible with the Cstd library. Avoid specifying
12528     # it if it's in CXXFLAGS. Ignore libCrun as
12529     # -library=stlport4 depends on it.
12530     case " $CXX $CXXFLAGS " in
12531     *" -library=stlport4 "*)
12532       solaris_use_stlport4=yes
12533       ;;
12534     esac
12535
12536     # Adding this requires a known-good setup of shared libraries for
12537     # Sun compiler versions before 5.6, else PIC objects from an old
12538     # archive will be linked into the output, leading to subtle bugs.
12539     if test "$solaris_use_stlport4" != yes; then
12540       postdeps_CXX='-library=Cstd -library=Crun'
12541     fi
12542     ;;
12543   esac
12544   ;;
12545 esac
12546
12547 case " $postdeps_CXX " in
12548 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12549 esac
12550
12551 lt_prog_compiler_wl_CXX=
12552 lt_prog_compiler_pic_CXX=
12553 lt_prog_compiler_static_CXX=
12554
12555 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12556 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12557
12558   # C++ specific cases for pic, static, wl, etc.
12559   if test "$GXX" = yes; then
12560     lt_prog_compiler_wl_CXX='-Wl,'
12561     lt_prog_compiler_static_CXX='-static'
12562
12563     case $host_os in
12564     aix*)
12565       # All AIX code is PIC.
12566       if test "$host_cpu" = ia64; then
12567         # AIX 5 now supports IA64 processor
12568         lt_prog_compiler_static_CXX='-Bstatic'
12569       fi
12570       ;;
12571     amigaos*)
12572       # FIXME: we need at least 68020 code to build shared libraries, but
12573       # adding the `-m68020' flag to GCC prevents building anything better,
12574       # like `-m68040'.
12575       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12576       ;;
12577     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12578       # PIC is the default for these OSes.
12579       ;;
12580     mingw* | cygwin* | os2* | pw32*)
12581       # This hack is so that the source file can tell whether it is being
12582       # built for inclusion in a dll (and should export symbols for example).
12583       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12584       # (--disable-auto-import) libraries
12585       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12586       ;;
12587     darwin* | rhapsody*)
12588       # PIC is the default on this platform
12589       # Common symbols not allowed in MH_DYLIB files
12590       lt_prog_compiler_pic_CXX='-fno-common'
12591       ;;
12592     *djgpp*)
12593       # DJGPP does not support shared libraries at all
12594       lt_prog_compiler_pic_CXX=
12595       ;;
12596     interix[3-9]*)
12597       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12598       # Instead, we relocate shared libraries at runtime.
12599       ;;
12600     sysv4*MP*)
12601       if test -d /usr/nec; then
12602         lt_prog_compiler_pic_CXX=-Kconform_pic
12603       fi
12604       ;;
12605     hpux*)
12606       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12607       # not for PA HP-UX.
12608       case $host_cpu in
12609       hppa*64*|ia64*)
12610         ;;
12611       *)
12612         lt_prog_compiler_pic_CXX='-fPIC'
12613         ;;
12614       esac
12615       ;;
12616     *)
12617       lt_prog_compiler_pic_CXX='-fPIC'
12618       ;;
12619     esac
12620   else
12621     case $host_os in
12622       aix[4-9]*)
12623         # All AIX code is PIC.
12624         if test "$host_cpu" = ia64; then
12625           # AIX 5 now supports IA64 processor
12626           lt_prog_compiler_static_CXX='-Bstatic'
12627         else
12628           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12629         fi
12630         ;;
12631       chorus*)
12632         case $cc_basename in
12633         cxch68*)
12634           # Green Hills C++ Compiler
12635           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12636           ;;
12637         esac
12638         ;;
12639        darwin*)
12640          # PIC is the default on this platform
12641          # Common symbols not allowed in MH_DYLIB files
12642          case $cc_basename in
12643            xlc*)
12644            lt_prog_compiler_pic_CXX='-qnocommon'
12645            lt_prog_compiler_wl_CXX='-Wl,'
12646            ;;
12647          esac
12648        ;;
12649       dgux*)
12650         case $cc_basename in
12651           ec++*)
12652             lt_prog_compiler_pic_CXX='-KPIC'
12653             ;;
12654           ghcx*)
12655             # Green Hills C++ Compiler
12656             lt_prog_compiler_pic_CXX='-pic'
12657             ;;
12658           *)
12659             ;;
12660         esac
12661         ;;
12662       freebsd* | dragonfly*)
12663         # FreeBSD uses GNU C++
12664         ;;
12665       hpux9* | hpux10* | hpux11*)
12666         case $cc_basename in
12667           CC*)
12668             lt_prog_compiler_wl_CXX='-Wl,'
12669             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12670             if test "$host_cpu" != ia64; then
12671               lt_prog_compiler_pic_CXX='+Z'
12672             fi
12673             ;;
12674           aCC*)
12675             lt_prog_compiler_wl_CXX='-Wl,'
12676             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12677             case $host_cpu in
12678             hppa*64*|ia64*)
12679               # +Z the default
12680               ;;
12681             *)
12682               lt_prog_compiler_pic_CXX='+Z'
12683               ;;
12684             esac
12685             ;;
12686           *)
12687             ;;
12688         esac
12689         ;;
12690       interix*)
12691         # This is c89, which is MS Visual C++ (no shared libs)
12692         # Anyone wants to do a port?
12693         ;;
12694       irix5* | irix6* | nonstopux*)
12695         case $cc_basename in
12696           CC*)
12697             lt_prog_compiler_wl_CXX='-Wl,'
12698             lt_prog_compiler_static_CXX='-non_shared'
12699             # CC pic flag -KPIC is the default.
12700             ;;
12701           *)
12702             ;;
12703         esac
12704         ;;
12705       linux* | k*bsd*-gnu)
12706         case $cc_basename in
12707           KCC*)
12708             # KAI C++ Compiler
12709             lt_prog_compiler_wl_CXX='--backend -Wl,'
12710             lt_prog_compiler_pic_CXX='-fPIC'
12711             ;;
12712           icpc* | ecpc*)
12713             # Intel C++
12714             lt_prog_compiler_wl_CXX='-Wl,'
12715             lt_prog_compiler_pic_CXX='-KPIC'
12716             lt_prog_compiler_static_CXX='-static'
12717             ;;
12718           pgCC* | pgcpp*)
12719             # Portland Group C++ compiler.
12720             lt_prog_compiler_wl_CXX='-Wl,'
12721             lt_prog_compiler_pic_CXX='-fpic'
12722             lt_prog_compiler_static_CXX='-Bstatic'
12723             ;;
12724           cxx*)
12725             # Compaq C++
12726             # Make sure the PIC flag is empty.  It appears that all Alpha
12727             # Linux and Compaq Tru64 Unix objects are PIC.
12728             lt_prog_compiler_pic_CXX=
12729             lt_prog_compiler_static_CXX='-non_shared'
12730             ;;
12731           *)
12732             case `$CC -V 2>&1 | sed 5q` in
12733             *Sun\ C*)
12734               # Sun C++ 5.9
12735               lt_prog_compiler_pic_CXX='-KPIC'
12736               lt_prog_compiler_static_CXX='-Bstatic'
12737               lt_prog_compiler_wl_CXX='-Qoption ld '
12738               ;;
12739             esac
12740             ;;
12741         esac
12742         ;;
12743       lynxos*)
12744         ;;
12745       m88k*)
12746         ;;
12747       mvs*)
12748         case $cc_basename in
12749           cxx*)
12750             lt_prog_compiler_pic_CXX='-W c,exportall'
12751             ;;
12752           *)
12753             ;;
12754         esac
12755         ;;
12756       netbsd* | netbsdelf*-gnu)
12757         ;;
12758       osf3* | osf4* | osf5*)
12759         case $cc_basename in
12760           KCC*)
12761             lt_prog_compiler_wl_CXX='--backend -Wl,'
12762             ;;
12763           RCC*)
12764             # Rational C++ 2.4.1
12765             lt_prog_compiler_pic_CXX='-pic'
12766             ;;
12767           cxx*)
12768             # Digital/Compaq C++
12769             lt_prog_compiler_wl_CXX='-Wl,'
12770             # Make sure the PIC flag is empty.  It appears that all Alpha
12771             # Linux and Compaq Tru64 Unix objects are PIC.
12772             lt_prog_compiler_pic_CXX=
12773             lt_prog_compiler_static_CXX='-non_shared'
12774             ;;
12775           *)
12776             ;;
12777         esac
12778         ;;
12779       psos*)
12780         ;;
12781       solaris*)
12782         case $cc_basename in
12783           CC*)
12784             # Sun C++ 4.2, 5.x and Centerline C++
12785             lt_prog_compiler_pic_CXX='-KPIC'
12786             lt_prog_compiler_static_CXX='-Bstatic'
12787             lt_prog_compiler_wl_CXX='-Qoption ld '
12788             ;;
12789           gcx*)
12790             # Green Hills C++ Compiler
12791             lt_prog_compiler_pic_CXX='-PIC'
12792             ;;
12793           *)
12794             ;;
12795         esac
12796         ;;
12797       sunos4*)
12798         case $cc_basename in
12799           CC*)
12800             # Sun C++ 4.x
12801             lt_prog_compiler_pic_CXX='-pic'
12802             lt_prog_compiler_static_CXX='-Bstatic'
12803             ;;
12804           lcc*)
12805             # Lucid
12806             lt_prog_compiler_pic_CXX='-pic'
12807             ;;
12808           *)
12809             ;;
12810         esac
12811         ;;
12812       tandem*)
12813         case $cc_basename in
12814           NCC*)
12815             # NonStop-UX NCC 3.20
12816             lt_prog_compiler_pic_CXX='-KPIC'
12817             ;;
12818           *)
12819             ;;
12820         esac
12821         ;;
12822       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12823         case $cc_basename in
12824           CC*)
12825             lt_prog_compiler_wl_CXX='-Wl,'
12826             lt_prog_compiler_pic_CXX='-KPIC'
12827             lt_prog_compiler_static_CXX='-Bstatic'
12828             ;;
12829         esac
12830         ;;
12831       vxworks*)
12832         ;;
12833       *)
12834         lt_prog_compiler_can_build_shared_CXX=no
12835         ;;
12836     esac
12837   fi
12838
12839 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12840 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12841
12842 #
12843 # Check to make sure the PIC flag actually works.
12844 #
12845 if test -n "$lt_prog_compiler_pic_CXX"; then
12846
12847 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12848 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12849 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12850   echo $ECHO_N "(cached) $ECHO_C" >&6
12851 else
12852   lt_cv_prog_compiler_pic_works_CXX=no
12853   ac_outfile=conftest.$ac_objext
12854    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12855    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12856    # Insert the option either (1) after the last *FLAGS variable, or
12857    # (2) before a word containing "conftest.", or (3) at the end.
12858    # Note that $ac_compile itself does not contain backslashes and begins
12859    # with a dollar sign (not a hyphen), so the echo should work correctly.
12860    # The option is referenced via a variable to avoid confusing sed.
12861    lt_compile=`echo "$ac_compile" | $SED \
12862    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12863    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12864    -e 's:$: $lt_compiler_flag:'`
12865    (eval echo "\"\$as_me:12865: $lt_compile\"" >&5)
12866    (eval "$lt_compile" 2>conftest.err)
12867    ac_status=$?
12868    cat conftest.err >&5
12869    echo "$as_me:12869: \$? = $ac_status" >&5
12870    if (exit $ac_status) && test -s "$ac_outfile"; then
12871      # The compiler can only warn and ignore the option if not recognized
12872      # So say no if there are warnings other than the usual output.
12873      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12874      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12875      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12876        lt_cv_prog_compiler_pic_works_CXX=yes
12877      fi
12878    fi
12879    $rm conftest*
12880
12881 fi
12882 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12883 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12884
12885 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12886     case $lt_prog_compiler_pic_CXX in
12887      "" | " "*) ;;
12888      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12889      esac
12890 else
12891     lt_prog_compiler_pic_CXX=
12892      lt_prog_compiler_can_build_shared_CXX=no
12893 fi
12894
12895 fi
12896 case $host_os in
12897   # For platforms which do not support PIC, -DPIC is meaningless:
12898   *djgpp*)
12899     lt_prog_compiler_pic_CXX=
12900     ;;
12901   *)
12902     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12903     ;;
12904 esac
12905
12906 #
12907 # Check to make sure the static flag actually works.
12908 #
12909 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12910 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12911 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12912 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12913   echo $ECHO_N "(cached) $ECHO_C" >&6
12914 else
12915   lt_cv_prog_compiler_static_works_CXX=no
12916    save_LDFLAGS="$LDFLAGS"
12917    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12918    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12919    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12920      # The linker can only warn and ignore the option if not recognized
12921      # So say no if there are warnings
12922      if test -s conftest.err; then
12923        # Append any errors to the config.log.
12924        cat conftest.err 1>&5
12925        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12926        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12927        if diff conftest.exp conftest.er2 >/dev/null; then
12928          lt_cv_prog_compiler_static_works_CXX=yes
12929        fi
12930      else
12931        lt_cv_prog_compiler_static_works_CXX=yes
12932      fi
12933    fi
12934    $rm -r conftest*
12935    LDFLAGS="$save_LDFLAGS"
12936
12937 fi
12938 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12939 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12940
12941 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12942     :
12943 else
12944     lt_prog_compiler_static_CXX=
12945 fi
12946
12947
12948 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12949 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12950 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12951   echo $ECHO_N "(cached) $ECHO_C" >&6
12952 else
12953   lt_cv_prog_compiler_c_o_CXX=no
12954    $rm -r conftest 2>/dev/null
12955    mkdir conftest
12956    cd conftest
12957    mkdir out
12958    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12959
12960    lt_compiler_flag="-o out/conftest2.$ac_objext"
12961    # Insert the option either (1) after the last *FLAGS variable, or
12962    # (2) before a word containing "conftest.", or (3) at the end.
12963    # Note that $ac_compile itself does not contain backslashes and begins
12964    # with a dollar sign (not a hyphen), so the echo should work correctly.
12965    lt_compile=`echo "$ac_compile" | $SED \
12966    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12967    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12968    -e 's:$: $lt_compiler_flag:'`
12969    (eval echo "\"\$as_me:12969: $lt_compile\"" >&5)
12970    (eval "$lt_compile" 2>out/conftest.err)
12971    ac_status=$?
12972    cat out/conftest.err >&5
12973    echo "$as_me:12973: \$? = $ac_status" >&5
12974    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12975    then
12976      # The compiler can only warn and ignore the option if not recognized
12977      # So say no if there are warnings
12978      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12979      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12980      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12981        lt_cv_prog_compiler_c_o_CXX=yes
12982      fi
12983    fi
12984    chmod u+w . 2>&5
12985    $rm conftest*
12986    # SGI C++ compiler will create directory out/ii_files/ for
12987    # template instantiation
12988    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12989    $rm out/* && rmdir out
12990    cd ..
12991    rmdir conftest
12992    $rm conftest*
12993
12994 fi
12995 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12996 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12997
12998
12999 hard_links="nottested"
13000 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13001   # do not overwrite the value of need_locks provided by the user
13002   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13003 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13004   hard_links=yes
13005   $rm conftest*
13006   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13007   touch conftest.a
13008   ln conftest.a conftest.b 2>&5 || hard_links=no
13009   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13010   { echo "$as_me:$LINENO: result: $hard_links" >&5
13011 echo "${ECHO_T}$hard_links" >&6; }
13012   if test "$hard_links" = no; then
13013     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13014 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13015     need_locks=warn
13016   fi
13017 else
13018   need_locks=no
13019 fi
13020
13021 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13022 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13023
13024   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13025   case $host_os in
13026   aix[4-9]*)
13027     # If we're using GNU nm, then we don't want the "-C" option.
13028     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13029     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13030       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13031     else
13032       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13033     fi
13034     ;;
13035   pw32*)
13036     export_symbols_cmds_CXX="$ltdll_cmds"
13037   ;;
13038   cygwin* | mingw*)
13039     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13040   ;;
13041   linux* | k*bsd*-gnu)
13042     link_all_deplibs_CXX=no
13043   ;;
13044   *)
13045     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13046   ;;
13047   esac
13048   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13049
13050 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13051 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13052 test "$ld_shlibs_CXX" = no && can_build_shared=no
13053
13054 #
13055 # Do we need to explicitly link libc?
13056 #
13057 case "x$archive_cmds_need_lc_CXX" in
13058 x|xyes)
13059   # Assume -lc should be added
13060   archive_cmds_need_lc_CXX=yes
13061
13062   if test "$enable_shared" = yes && test "$GCC" = yes; then
13063     case $archive_cmds_CXX in
13064     *'~'*)
13065       # FIXME: we may have to deal with multi-command sequences.
13066       ;;
13067     '$CC '*)
13068       # Test whether the compiler implicitly links with -lc since on some
13069       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13070       # to ld, don't add -lc before -lgcc.
13071       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13072 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13073       $rm conftest*
13074       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13075
13076       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13077   (eval $ac_compile) 2>&5
13078   ac_status=$?
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); } 2>conftest.err; then
13081         soname=conftest
13082         lib=conftest
13083         libobjs=conftest.$ac_objext
13084         deplibs=
13085         wl=$lt_prog_compiler_wl_CXX
13086         pic_flag=$lt_prog_compiler_pic_CXX
13087         compiler_flags=-v
13088         linker_flags=-v
13089         verstring=
13090         output_objdir=.
13091         libname=conftest
13092         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13093         allow_undefined_flag_CXX=
13094         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13095   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13096   ac_status=$?
13097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098   (exit $ac_status); }
13099         then
13100           archive_cmds_need_lc_CXX=no
13101         else
13102           archive_cmds_need_lc_CXX=yes
13103         fi
13104         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13105       else
13106         cat conftest.err 1>&5
13107       fi
13108       $rm conftest*
13109       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13110 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13111       ;;
13112     esac
13113   fi
13114   ;;
13115 esac
13116
13117 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13118 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13119 library_names_spec=
13120 libname_spec='lib$name'
13121 soname_spec=
13122 shrext_cmds=".so"
13123 postinstall_cmds=
13124 postuninstall_cmds=
13125 finish_cmds=
13126 finish_eval=
13127 shlibpath_var=
13128 shlibpath_overrides_runpath=unknown
13129 version_type=none
13130 dynamic_linker="$host_os ld.so"
13131 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13132
13133 need_lib_prefix=unknown
13134 hardcode_into_libs=no
13135
13136 # when you set need_version to no, make sure it does not cause -set_version
13137 # flags to be left without arguments
13138 need_version=unknown
13139
13140 case $host_os in
13141 aix3*)
13142   version_type=linux
13143   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13144   shlibpath_var=LIBPATH
13145
13146   # AIX 3 has no versioning support, so we append a major version to the name.
13147   soname_spec='${libname}${release}${shared_ext}$major'
13148   ;;
13149
13150 aix[4-9]*)
13151   version_type=linux
13152   need_lib_prefix=no
13153   need_version=no
13154   hardcode_into_libs=yes
13155   if test "$host_cpu" = ia64; then
13156     # AIX 5 supports IA64
13157     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13158     shlibpath_var=LD_LIBRARY_PATH
13159   else
13160     # With GCC up to 2.95.x, collect2 would create an import file
13161     # for dependence libraries.  The import file would start with
13162     # the line `#! .'.  This would cause the generated library to
13163     # depend on `.', always an invalid library.  This was fixed in
13164     # development snapshots of GCC prior to 3.0.
13165     case $host_os in
13166       aix4 | aix4.[01] | aix4.[01].*)
13167       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13168            echo ' yes '
13169            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13170         :
13171       else
13172         can_build_shared=no
13173       fi
13174       ;;
13175     esac
13176     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13177     # soname into executable. Probably we can add versioning support to
13178     # collect2, so additional links can be useful in future.
13179     if test "$aix_use_runtimelinking" = yes; then
13180       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13181       # instead of lib<name>.a to let people know that these are not
13182       # typical AIX shared libraries.
13183       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13184     else
13185       # We preserve .a as extension for shared libraries through AIX4.2
13186       # and later when we are not doing run time linking.
13187       library_names_spec='${libname}${release}.a $libname.a'
13188       soname_spec='${libname}${release}${shared_ext}$major'
13189     fi
13190     shlibpath_var=LIBPATH
13191   fi
13192   ;;
13193
13194 amigaos*)
13195   library_names_spec='$libname.ixlibrary $libname.a'
13196   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13197   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13198   ;;
13199
13200 beos*)
13201   library_names_spec='${libname}${shared_ext}'
13202   dynamic_linker="$host_os ld.so"
13203   shlibpath_var=LIBRARY_PATH
13204   ;;
13205
13206 bsdi[45]*)
13207   version_type=linux
13208   need_version=no
13209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13210   soname_spec='${libname}${release}${shared_ext}$major'
13211   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13212   shlibpath_var=LD_LIBRARY_PATH
13213   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13214   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13215   # the default ld.so.conf also contains /usr/contrib/lib and
13216   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13217   # libtool to hard-code these into programs
13218   ;;
13219
13220 cygwin* | mingw* | pw32*)
13221   version_type=windows
13222   shrext_cmds=".dll"
13223   need_version=no
13224   need_lib_prefix=no
13225
13226   case $GCC,$host_os in
13227   yes,cygwin* | yes,mingw* | yes,pw32*)
13228     library_names_spec='$libname.dll.a'
13229     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13230     postinstall_cmds='base_file=`basename \${file}`~
13231       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13232       dldir=$destdir/`dirname \$dlpath`~
13233       test -d \$dldir || mkdir -p \$dldir~
13234       $install_prog $dir/$dlname \$dldir/$dlname~
13235       chmod a+x \$dldir/$dlname'
13236     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13237       dlpath=$dir/\$dldll~
13238        $rm \$dlpath'
13239     shlibpath_overrides_runpath=yes
13240
13241     case $host_os in
13242     cygwin*)
13243       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13244       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13245       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13246       ;;
13247     mingw*)
13248       # MinGW DLLs use traditional 'lib' prefix
13249       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13250       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13251       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13252         # It is most probably a Windows format PATH printed by
13253         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13254         # path with ; separators, and with drive letters. We can handle the
13255         # drive letters (cygwin fileutils understands them), so leave them,
13256         # especially as we might pass files found there to a mingw objdump,
13257         # which wouldn't understand a cygwinified path. Ahh.
13258         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13259       else
13260         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13261       fi
13262       ;;
13263     pw32*)
13264       # pw32 DLLs use 'pw' prefix rather than 'lib'
13265       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13266       ;;
13267     esac
13268     ;;
13269
13270   *)
13271     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13272     ;;
13273   esac
13274   dynamic_linker='Win32 ld.exe'
13275   # FIXME: first we should search . and the directory the executable is in
13276   shlibpath_var=PATH
13277   ;;
13278
13279 darwin* | rhapsody*)
13280   dynamic_linker="$host_os dyld"
13281   version_type=darwin
13282   need_lib_prefix=no
13283   need_version=no
13284   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13285   soname_spec='${libname}${release}${major}$shared_ext'
13286   shlibpath_overrides_runpath=yes
13287   shlibpath_var=DYLD_LIBRARY_PATH
13288   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13289
13290   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13291   ;;
13292
13293 dgux*)
13294   version_type=linux
13295   need_lib_prefix=no
13296   need_version=no
13297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13298   soname_spec='${libname}${release}${shared_ext}$major'
13299   shlibpath_var=LD_LIBRARY_PATH
13300   ;;
13301
13302 freebsd1*)
13303   dynamic_linker=no
13304   ;;
13305
13306 freebsd* | dragonfly*)
13307   # DragonFly does not have aout.  When/if they implement a new
13308   # versioning mechanism, adjust this.
13309   if test -x /usr/bin/objformat; then
13310     objformat=`/usr/bin/objformat`
13311   else
13312     case $host_os in
13313     freebsd[123]*) objformat=aout ;;
13314     *) objformat=elf ;;
13315     esac
13316   fi
13317   version_type=freebsd-$objformat
13318   case $version_type in
13319     freebsd-elf*)
13320       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13321       need_version=no
13322       need_lib_prefix=no
13323       ;;
13324     freebsd-*)
13325       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13326       need_version=yes
13327       ;;
13328   esac
13329   shlibpath_var=LD_LIBRARY_PATH
13330   case $host_os in
13331   freebsd2*)
13332     shlibpath_overrides_runpath=yes
13333     ;;
13334   freebsd3.[01]* | freebsdelf3.[01]*)
13335     shlibpath_overrides_runpath=yes
13336     hardcode_into_libs=yes
13337     ;;
13338   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13339   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13340     shlibpath_overrides_runpath=no
13341     hardcode_into_libs=yes
13342     ;;
13343   *) # from 4.6 on, and DragonFly
13344     shlibpath_overrides_runpath=yes
13345     hardcode_into_libs=yes
13346     ;;
13347   esac
13348   ;;
13349
13350 gnu*)
13351   version_type=linux
13352   need_lib_prefix=no
13353   need_version=no
13354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13355   soname_spec='${libname}${release}${shared_ext}$major'
13356   shlibpath_var=LD_LIBRARY_PATH
13357   hardcode_into_libs=yes
13358   ;;
13359
13360 hpux9* | hpux10* | hpux11*)
13361   # Give a soname corresponding to the major version so that dld.sl refuses to
13362   # link against other versions.
13363   version_type=sunos
13364   need_lib_prefix=no
13365   need_version=no
13366   case $host_cpu in
13367   ia64*)
13368     shrext_cmds='.so'
13369     hardcode_into_libs=yes
13370     dynamic_linker="$host_os dld.so"
13371     shlibpath_var=LD_LIBRARY_PATH
13372     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13373     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13374     soname_spec='${libname}${release}${shared_ext}$major'
13375     if test "X$HPUX_IA64_MODE" = X32; then
13376       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13377     else
13378       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13379     fi
13380     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13381     ;;
13382    hppa*64*)
13383      shrext_cmds='.sl'
13384      hardcode_into_libs=yes
13385      dynamic_linker="$host_os dld.sl"
13386      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13387      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13388      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13389      soname_spec='${libname}${release}${shared_ext}$major'
13390      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13391      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13392      ;;
13393    *)
13394     shrext_cmds='.sl'
13395     dynamic_linker="$host_os dld.sl"
13396     shlibpath_var=SHLIB_PATH
13397     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13398     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13399     soname_spec='${libname}${release}${shared_ext}$major'
13400     ;;
13401   esac
13402   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13403   postinstall_cmds='chmod 555 $lib'
13404   ;;
13405
13406 interix[3-9]*)
13407   version_type=linux
13408   need_lib_prefix=no
13409   need_version=no
13410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13411   soname_spec='${libname}${release}${shared_ext}$major'
13412   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13413   shlibpath_var=LD_LIBRARY_PATH
13414   shlibpath_overrides_runpath=no
13415   hardcode_into_libs=yes
13416   ;;
13417
13418 irix5* | irix6* | nonstopux*)
13419   case $host_os in
13420     nonstopux*) version_type=nonstopux ;;
13421     *)
13422         if test "$lt_cv_prog_gnu_ld" = yes; then
13423                 version_type=linux
13424         else
13425                 version_type=irix
13426         fi ;;
13427   esac
13428   need_lib_prefix=no
13429   need_version=no
13430   soname_spec='${libname}${release}${shared_ext}$major'
13431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13432   case $host_os in
13433   irix5* | nonstopux*)
13434     libsuff= shlibsuff=
13435     ;;
13436   *)
13437     case $LD in # libtool.m4 will add one of these switches to LD
13438     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13439       libsuff= shlibsuff= libmagic=32-bit;;
13440     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13441       libsuff=32 shlibsuff=N32 libmagic=N32;;
13442     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13443       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13444     *) libsuff= shlibsuff= libmagic=never-match;;
13445     esac
13446     ;;
13447   esac
13448   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13449   shlibpath_overrides_runpath=no
13450   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13451   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13452   hardcode_into_libs=yes
13453   ;;
13454
13455 # No shared lib support for Linux oldld, aout, or coff.
13456 linux*oldld* | linux*aout* | linux*coff*)
13457   dynamic_linker=no
13458   ;;
13459
13460 # This must be Linux ELF.
13461 linux* | k*bsd*-gnu)
13462   version_type=linux
13463   need_lib_prefix=no
13464   need_version=no
13465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13466   soname_spec='${libname}${release}${shared_ext}$major'
13467   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13468   shlibpath_var=LD_LIBRARY_PATH
13469   shlibpath_overrides_runpath=no
13470   # This implies no fast_install, which is unacceptable.
13471   # Some rework will be needed to allow for fast_install
13472   # before this can be enabled.
13473   hardcode_into_libs=yes
13474
13475   # Append ld.so.conf contents to the search path
13476   if test -f /etc/ld.so.conf; then
13477     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13478     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13479   fi
13480
13481   # We used to test for /lib/ld.so.1 and disable shared libraries on
13482   # powerpc, because MkLinux only supported shared libraries with the
13483   # GNU dynamic linker.  Since this was broken with cross compilers,
13484   # most powerpc-linux boxes support dynamic linking these days and
13485   # people can always --disable-shared, the test was removed, and we
13486   # assume the GNU/Linux dynamic linker is in use.
13487   dynamic_linker='GNU/Linux ld.so'
13488   ;;
13489
13490 netbsdelf*-gnu)
13491   version_type=linux
13492   need_lib_prefix=no
13493   need_version=no
13494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13495   soname_spec='${libname}${release}${shared_ext}$major'
13496   shlibpath_var=LD_LIBRARY_PATH
13497   shlibpath_overrides_runpath=no
13498   hardcode_into_libs=yes
13499   dynamic_linker='NetBSD ld.elf_so'
13500   ;;
13501
13502 netbsd*)
13503   version_type=sunos
13504   need_lib_prefix=no
13505   need_version=no
13506   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13507     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13508     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13509     dynamic_linker='NetBSD (a.out) ld.so'
13510   else
13511     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13512     soname_spec='${libname}${release}${shared_ext}$major'
13513     dynamic_linker='NetBSD ld.elf_so'
13514   fi
13515   shlibpath_var=LD_LIBRARY_PATH
13516   shlibpath_overrides_runpath=yes
13517   hardcode_into_libs=yes
13518   ;;
13519
13520 newsos6)
13521   version_type=linux
13522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13523   shlibpath_var=LD_LIBRARY_PATH
13524   shlibpath_overrides_runpath=yes
13525   ;;
13526
13527 nto-qnx*)
13528   version_type=linux
13529   need_lib_prefix=no
13530   need_version=no
13531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13532   soname_spec='${libname}${release}${shared_ext}$major'
13533   shlibpath_var=LD_LIBRARY_PATH
13534   shlibpath_overrides_runpath=yes
13535   ;;
13536
13537 openbsd*)
13538   version_type=sunos
13539   sys_lib_dlsearch_path_spec="/usr/lib"
13540   need_lib_prefix=no
13541   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13542   case $host_os in
13543     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13544     *)                         need_version=no  ;;
13545   esac
13546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13547   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13548   shlibpath_var=LD_LIBRARY_PATH
13549   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13550     case $host_os in
13551       openbsd2.[89] | openbsd2.[89].*)
13552         shlibpath_overrides_runpath=no
13553         ;;
13554       *)
13555         shlibpath_overrides_runpath=yes
13556         ;;
13557       esac
13558   else
13559     shlibpath_overrides_runpath=yes
13560   fi
13561   ;;
13562
13563 os2*)
13564   libname_spec='$name'
13565   shrext_cmds=".dll"
13566   need_lib_prefix=no
13567   library_names_spec='$libname${shared_ext} $libname.a'
13568   dynamic_linker='OS/2 ld.exe'
13569   shlibpath_var=LIBPATH
13570   ;;
13571
13572 osf3* | osf4* | osf5*)
13573   version_type=osf
13574   need_lib_prefix=no
13575   need_version=no
13576   soname_spec='${libname}${release}${shared_ext}$major'
13577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13578   shlibpath_var=LD_LIBRARY_PATH
13579   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13580   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13581   ;;
13582
13583 rdos*)
13584   dynamic_linker=no
13585   ;;
13586
13587 solaris*)
13588   version_type=linux
13589   need_lib_prefix=no
13590   need_version=no
13591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13592   soname_spec='${libname}${release}${shared_ext}$major'
13593   shlibpath_var=LD_LIBRARY_PATH
13594   shlibpath_overrides_runpath=yes
13595   hardcode_into_libs=yes
13596   # ldd complains unless libraries are executable
13597   postinstall_cmds='chmod +x $lib'
13598   ;;
13599
13600 sunos4*)
13601   version_type=sunos
13602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13603   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13604   shlibpath_var=LD_LIBRARY_PATH
13605   shlibpath_overrides_runpath=yes
13606   if test "$with_gnu_ld" = yes; then
13607     need_lib_prefix=no
13608   fi
13609   need_version=yes
13610   ;;
13611
13612 sysv4 | sysv4.3*)
13613   version_type=linux
13614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13615   soname_spec='${libname}${release}${shared_ext}$major'
13616   shlibpath_var=LD_LIBRARY_PATH
13617   case $host_vendor in
13618     sni)
13619       shlibpath_overrides_runpath=no
13620       need_lib_prefix=no
13621       export_dynamic_flag_spec='${wl}-Blargedynsym'
13622       runpath_var=LD_RUN_PATH
13623       ;;
13624     siemens)
13625       need_lib_prefix=no
13626       ;;
13627     motorola)
13628       need_lib_prefix=no
13629       need_version=no
13630       shlibpath_overrides_runpath=no
13631       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13632       ;;
13633   esac
13634   ;;
13635
13636 sysv4*MP*)
13637   if test -d /usr/nec ;then
13638     version_type=linux
13639     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13640     soname_spec='$libname${shared_ext}.$major'
13641     shlibpath_var=LD_LIBRARY_PATH
13642   fi
13643   ;;
13644
13645 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13646   version_type=freebsd-elf
13647   need_lib_prefix=no
13648   need_version=no
13649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13650   soname_spec='${libname}${release}${shared_ext}$major'
13651   shlibpath_var=LD_LIBRARY_PATH
13652   hardcode_into_libs=yes
13653   if test "$with_gnu_ld" = yes; then
13654     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13655     shlibpath_overrides_runpath=no
13656   else
13657     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13658     shlibpath_overrides_runpath=yes
13659     case $host_os in
13660       sco3.2v5*)
13661         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13662         ;;
13663     esac
13664   fi
13665   sys_lib_dlsearch_path_spec='/usr/lib'
13666   ;;
13667
13668 uts4*)
13669   version_type=linux
13670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13671   soname_spec='${libname}${release}${shared_ext}$major'
13672   shlibpath_var=LD_LIBRARY_PATH
13673   ;;
13674
13675 *)
13676   dynamic_linker=no
13677   ;;
13678 esac
13679 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13680 echo "${ECHO_T}$dynamic_linker" >&6; }
13681 test "$dynamic_linker" = no && can_build_shared=no
13682
13683 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13684   echo $ECHO_N "(cached) $ECHO_C" >&6
13685 else
13686   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13687 fi
13688
13689 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13690 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13691   echo $ECHO_N "(cached) $ECHO_C" >&6
13692 else
13693   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13694 fi
13695
13696 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13697
13698 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13699 if test "$GCC" = yes; then
13700   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13701 fi
13702
13703 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13704 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13705 hardcode_action_CXX=
13706 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13707    test -n "$runpath_var_CXX" || \
13708    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13709
13710   # We can hardcode non-existant directories.
13711   if test "$hardcode_direct_CXX" != no &&
13712      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13713      # have to relink, otherwise we might link with an installed library
13714      # when we should be linking with a yet-to-be-installed one
13715      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13716      test "$hardcode_minus_L_CXX" != no; then
13717     # Linking always hardcodes the temporary library directory.
13718     hardcode_action_CXX=relink
13719   else
13720     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13721     hardcode_action_CXX=immediate
13722   fi
13723 else
13724   # We cannot hardcode anything, or else we can only hardcode existing
13725   # directories.
13726   hardcode_action_CXX=unsupported
13727 fi
13728 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13729 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13730
13731 if test "$hardcode_action_CXX" = relink; then
13732   # Fast installation is not supported
13733   enable_fast_install=no
13734 elif test "$shlibpath_overrides_runpath" = yes ||
13735      test "$enable_shared" = no; then
13736   # Fast installation is not necessary
13737   enable_fast_install=needless
13738 fi
13739
13740
13741 # The else clause should only fire when bootstrapping the
13742 # libtool distribution, otherwise you forgot to ship ltmain.sh
13743 # with your package, and you will get complaints that there are
13744 # no rules to generate ltmain.sh.
13745 if test -f "$ltmain"; then
13746   # See if we are running on zsh, and set the options which allow our commands through
13747   # without removal of \ escapes.
13748   if test -n "${ZSH_VERSION+set}" ; then
13749     setopt NO_GLOB_SUBST
13750   fi
13751   # Now quote all the things that may contain metacharacters while being
13752   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13753   # variables and quote the copies for generation of the libtool script.
13754   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13755     SED SHELL STRIP \
13756     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13757     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13758     deplibs_check_method reload_flag reload_cmds need_locks \
13759     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13760     lt_cv_sys_global_symbol_to_c_name_address \
13761     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13762     old_postinstall_cmds old_postuninstall_cmds \
13763     compiler_CXX \
13764     CC_CXX \
13765     LD_CXX \
13766     lt_prog_compiler_wl_CXX \
13767     lt_prog_compiler_pic_CXX \
13768     lt_prog_compiler_static_CXX \
13769     lt_prog_compiler_no_builtin_flag_CXX \
13770     export_dynamic_flag_spec_CXX \
13771     thread_safe_flag_spec_CXX \
13772     whole_archive_flag_spec_CXX \
13773     enable_shared_with_static_runtimes_CXX \
13774     old_archive_cmds_CXX \
13775     old_archive_from_new_cmds_CXX \
13776     predep_objects_CXX \
13777     postdep_objects_CXX \
13778     predeps_CXX \
13779     postdeps_CXX \
13780     compiler_lib_search_path_CXX \
13781     compiler_lib_search_dirs_CXX \
13782     archive_cmds_CXX \
13783     archive_expsym_cmds_CXX \
13784     postinstall_cmds_CXX \
13785     postuninstall_cmds_CXX \
13786     old_archive_from_expsyms_cmds_CXX \
13787     allow_undefined_flag_CXX \
13788     no_undefined_flag_CXX \
13789     export_symbols_cmds_CXX \
13790     hardcode_libdir_flag_spec_CXX \
13791     hardcode_libdir_flag_spec_ld_CXX \
13792     hardcode_libdir_separator_CXX \
13793     hardcode_automatic_CXX \
13794     module_cmds_CXX \
13795     module_expsym_cmds_CXX \
13796     lt_cv_prog_compiler_c_o_CXX \
13797     fix_srcfile_path_CXX \
13798     exclude_expsyms_CXX \
13799     include_expsyms_CXX; do
13800
13801     case $var in
13802     old_archive_cmds_CXX | \
13803     old_archive_from_new_cmds_CXX | \
13804     archive_cmds_CXX | \
13805     archive_expsym_cmds_CXX | \
13806     module_cmds_CXX | \
13807     module_expsym_cmds_CXX | \
13808     old_archive_from_expsyms_cmds_CXX | \
13809     export_symbols_cmds_CXX | \
13810     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13811     postinstall_cmds | postuninstall_cmds | \
13812     old_postinstall_cmds | old_postuninstall_cmds | \
13813     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13814       # Double-quote double-evaled strings.
13815       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13816       ;;
13817     *)
13818       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13819       ;;
13820     esac
13821   done
13822
13823   case $lt_echo in
13824   *'\$0 --fallback-echo"')
13825     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13826     ;;
13827   esac
13828
13829 cfgfile="$ofile"
13830
13831   cat <<__EOF__ >> "$cfgfile"
13832 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13833
13834 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13835
13836 # Shell to use when invoking shell scripts.
13837 SHELL=$lt_SHELL
13838
13839 # Whether or not to build shared libraries.
13840 build_libtool_libs=$enable_shared
13841
13842 # Whether or not to build static libraries.
13843 build_old_libs=$enable_static
13844
13845 # Whether or not to add -lc for building shared libraries.
13846 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13847
13848 # Whether or not to disallow shared libs when runtime libs are static
13849 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13850
13851 # Whether or not to optimize for fast installation.
13852 fast_install=$enable_fast_install
13853
13854 # The host system.
13855 host_alias=$host_alias
13856 host=$host
13857 host_os=$host_os
13858
13859 # The build system.
13860 build_alias=$build_alias
13861 build=$build
13862 build_os=$build_os
13863
13864 # An echo program that does not interpret backslashes.
13865 echo=$lt_echo
13866
13867 # The archiver.
13868 AR=$lt_AR
13869 AR_FLAGS=$lt_AR_FLAGS
13870
13871 # A C compiler.
13872 LTCC=$lt_LTCC
13873
13874 # LTCC compiler flags.
13875 LTCFLAGS=$lt_LTCFLAGS
13876
13877 # A language-specific compiler.
13878 CC=$lt_compiler_CXX
13879
13880 # Is the compiler the GNU C compiler?
13881 with_gcc=$GCC_CXX
13882
13883 # An ERE matcher.
13884 EGREP=$lt_EGREP
13885
13886 # The linker used to build libraries.
13887 LD=$lt_LD_CXX
13888
13889 # Whether we need hard or soft links.
13890 LN_S=$lt_LN_S
13891
13892 # A BSD-compatible nm program.
13893 NM=$lt_NM
13894
13895 # A symbol stripping program
13896 STRIP=$lt_STRIP
13897
13898 # Used to examine libraries when file_magic_cmd begins "file"
13899 MAGIC_CMD=$MAGIC_CMD
13900
13901 # Used on cygwin: DLL creation program.
13902 DLLTOOL="$DLLTOOL"
13903
13904 # Used on cygwin: object dumper.
13905 OBJDUMP="$OBJDUMP"
13906
13907 # Used on cygwin: assembler.
13908 AS="$AS"
13909
13910 # The name of the directory that contains temporary libtool files.
13911 objdir=$objdir
13912
13913 # How to create reloadable object files.
13914 reload_flag=$lt_reload_flag
13915 reload_cmds=$lt_reload_cmds
13916
13917 # How to pass a linker flag through the compiler.
13918 wl=$lt_lt_prog_compiler_wl_CXX
13919
13920 # Object file suffix (normally "o").
13921 objext="$ac_objext"
13922
13923 # Old archive suffix (normally "a").
13924 libext="$libext"
13925
13926 # Shared library suffix (normally ".so").
13927 shrext_cmds='$shrext_cmds'
13928
13929 # Executable file suffix (normally "").
13930 exeext="$exeext"
13931
13932 # Additional compiler flags for building library objects.
13933 pic_flag=$lt_lt_prog_compiler_pic_CXX
13934 pic_mode=$pic_mode
13935
13936 # What is the maximum length of a command?
13937 max_cmd_len=$lt_cv_sys_max_cmd_len
13938
13939 # Does compiler simultaneously support -c and -o options?
13940 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13941
13942 # Must we lock files when doing compilation?
13943 need_locks=$lt_need_locks
13944
13945 # Do we need the lib prefix for modules?
13946 need_lib_prefix=$need_lib_prefix
13947
13948 # Do we need a version for libraries?
13949 need_version=$need_version
13950
13951 # Whether dlopen is supported.
13952 dlopen_support=$enable_dlopen
13953
13954 # Whether dlopen of programs is supported.
13955 dlopen_self=$enable_dlopen_self
13956
13957 # Whether dlopen of statically linked programs is supported.
13958 dlopen_self_static=$enable_dlopen_self_static
13959
13960 # Compiler flag to prevent dynamic linking.
13961 link_static_flag=$lt_lt_prog_compiler_static_CXX
13962
13963 # Compiler flag to turn off builtin functions.
13964 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13965
13966 # Compiler flag to allow reflexive dlopens.
13967 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13968
13969 # Compiler flag to generate shared objects directly from archives.
13970 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13971
13972 # Compiler flag to generate thread-safe objects.
13973 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13974
13975 # Library versioning type.
13976 version_type=$version_type
13977
13978 # Format of library name prefix.
13979 libname_spec=$lt_libname_spec
13980
13981 # List of archive names.  First name is the real one, the rest are links.
13982 # The last name is the one that the linker finds with -lNAME.
13983 library_names_spec=$lt_library_names_spec
13984
13985 # The coded name of the library, if different from the real name.
13986 soname_spec=$lt_soname_spec
13987
13988 # Commands used to build and install an old-style archive.
13989 RANLIB=$lt_RANLIB
13990 old_archive_cmds=$lt_old_archive_cmds_CXX
13991 old_postinstall_cmds=$lt_old_postinstall_cmds
13992 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13993
13994 # Create an old-style archive from a shared archive.
13995 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13996
13997 # Create a temporary old-style archive to link instead of a shared archive.
13998 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13999
14000 # Commands used to build and install a shared archive.
14001 archive_cmds=$lt_archive_cmds_CXX
14002 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14003 postinstall_cmds=$lt_postinstall_cmds
14004 postuninstall_cmds=$lt_postuninstall_cmds
14005
14006 # Commands used to build a loadable module (assumed same as above if empty)
14007 module_cmds=$lt_module_cmds_CXX
14008 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14009
14010 # Commands to strip libraries.
14011 old_striplib=$lt_old_striplib
14012 striplib=$lt_striplib
14013
14014 # Dependencies to place before the objects being linked to create a
14015 # shared library.
14016 predep_objects=$lt_predep_objects_CXX
14017
14018 # Dependencies to place after the objects being linked to create a
14019 # shared library.
14020 postdep_objects=$lt_postdep_objects_CXX
14021
14022 # Dependencies to place before the objects being linked to create a
14023 # shared library.
14024 predeps=$lt_predeps_CXX
14025
14026 # Dependencies to place after the objects being linked to create a
14027 # shared library.
14028 postdeps=$lt_postdeps_CXX
14029
14030 # The directories searched by this compiler when creating a shared
14031 # library
14032 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14033
14034 # The library search path used internally by the compiler when linking
14035 # a shared library.
14036 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14037
14038 # Method to check whether dependent libraries are shared objects.
14039 deplibs_check_method=$lt_deplibs_check_method
14040
14041 # Command to use when deplibs_check_method == file_magic.
14042 file_magic_cmd=$lt_file_magic_cmd
14043
14044 # Flag that allows shared libraries with undefined symbols to be built.
14045 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14046
14047 # Flag that forces no undefined symbols.
14048 no_undefined_flag=$lt_no_undefined_flag_CXX
14049
14050 # Commands used to finish a libtool library installation in a directory.
14051 finish_cmds=$lt_finish_cmds
14052
14053 # Same as above, but a single script fragment to be evaled but not shown.
14054 finish_eval=$lt_finish_eval
14055
14056 # Take the output of nm and produce a listing of raw symbols and C names.
14057 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14058
14059 # Transform the output of nm in a proper C declaration
14060 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14061
14062 # Transform the output of nm in a C name address pair
14063 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14064
14065 # This is the shared library runtime path variable.
14066 runpath_var=$runpath_var
14067
14068 # This is the shared library path variable.
14069 shlibpath_var=$shlibpath_var
14070
14071 # Is shlibpath searched before the hard-coded library search path?
14072 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14073
14074 # How to hardcode a shared library path into an executable.
14075 hardcode_action=$hardcode_action_CXX
14076
14077 # Whether we should hardcode library paths into libraries.
14078 hardcode_into_libs=$hardcode_into_libs
14079
14080 # Flag to hardcode \$libdir into a binary during linking.
14081 # This must work even if \$libdir does not exist.
14082 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14083
14084 # If ld is used when linking, flag to hardcode \$libdir into
14085 # a binary during linking. This must work even if \$libdir does
14086 # not exist.
14087 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14088
14089 # Whether we need a single -rpath flag with a separated argument.
14090 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14091
14092 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14093 # resulting binary.
14094 hardcode_direct=$hardcode_direct_CXX
14095
14096 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14097 # resulting binary.
14098 hardcode_minus_L=$hardcode_minus_L_CXX
14099
14100 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14101 # the resulting binary.
14102 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14103
14104 # Set to yes if building a shared library automatically hardcodes DIR into the library
14105 # and all subsequent libraries and executables linked against it.
14106 hardcode_automatic=$hardcode_automatic_CXX
14107
14108 # Variables whose values should be saved in libtool wrapper scripts and
14109 # restored at relink time.
14110 variables_saved_for_relink="$variables_saved_for_relink"
14111
14112 # Whether libtool must link a program against all its dependency libraries.
14113 link_all_deplibs=$link_all_deplibs_CXX
14114
14115 # Compile-time system search path for libraries
14116 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14117
14118 # Run-time system search path for libraries
14119 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14120
14121 # Fix the shell variable \$srcfile for the compiler.
14122 fix_srcfile_path=$lt_fix_srcfile_path
14123
14124 # Set to yes if exported symbols are required.
14125 always_export_symbols=$always_export_symbols_CXX
14126
14127 # The commands to list exported symbols.
14128 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14129
14130 # The commands to extract the exported symbol list from a shared archive.
14131 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14132
14133 # Symbols that should not be listed in the preloaded symbols.
14134 exclude_expsyms=$lt_exclude_expsyms_CXX
14135
14136 # Symbols that must always be exported.
14137 include_expsyms=$lt_include_expsyms_CXX
14138
14139 # ### END LIBTOOL TAG CONFIG: $tagname
14140
14141 __EOF__
14142
14143
14144 else
14145   # If there is no Makefile yet, we rely on a make rule to execute
14146   # `config.status --recheck' to rerun these tests and create the
14147   # libtool script then.
14148   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14149   if test -f "$ltmain_in"; then
14150     test -f Makefile && make "$ltmain"
14151   fi
14152 fi
14153
14154
14155 ac_ext=c
14156 ac_cpp='$CPP $CPPFLAGS'
14157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14160
14161 CC=$lt_save_CC
14162 LDCXX=$LD
14163 LD=$lt_save_LD
14164 GCC=$lt_save_GCC
14165 with_gnu_ldcxx=$with_gnu_ld
14166 with_gnu_ld=$lt_save_with_gnu_ld
14167 lt_cv_path_LDCXX=$lt_cv_path_LD
14168 lt_cv_path_LD=$lt_save_path_LD
14169 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14170 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14171
14172         else
14173           tagname=""
14174         fi
14175         ;;
14176
14177       F77)
14178         if test -n "$F77" && test "X$F77" != "Xno"; then
14179
14180 ac_ext=f
14181 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14182 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14183 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14184
14185
14186 archive_cmds_need_lc_F77=no
14187 allow_undefined_flag_F77=
14188 always_export_symbols_F77=no
14189 archive_expsym_cmds_F77=
14190 export_dynamic_flag_spec_F77=
14191 hardcode_direct_F77=no
14192 hardcode_libdir_flag_spec_F77=
14193 hardcode_libdir_flag_spec_ld_F77=
14194 hardcode_libdir_separator_F77=
14195 hardcode_minus_L_F77=no
14196 hardcode_automatic_F77=no
14197 module_cmds_F77=
14198 module_expsym_cmds_F77=
14199 link_all_deplibs_F77=unknown
14200 old_archive_cmds_F77=$old_archive_cmds
14201 no_undefined_flag_F77=
14202 whole_archive_flag_spec_F77=
14203 enable_shared_with_static_runtimes_F77=no
14204
14205 # Source file extension for f77 test sources.
14206 ac_ext=f
14207
14208 # Object file extension for compiled f77 test sources.
14209 objext=o
14210 objext_F77=$objext
14211
14212 # Code to be used in simple compile tests
14213 lt_simple_compile_test_code="\
14214       subroutine t
14215       return
14216       end
14217 "
14218
14219 # Code to be used in simple link tests
14220 lt_simple_link_test_code="\
14221       program t
14222       end
14223 "
14224
14225 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14226
14227 # If no C compiler was specified, use CC.
14228 LTCC=${LTCC-"$CC"}
14229
14230 # If no C compiler flags were specified, use CFLAGS.
14231 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14232
14233 # Allow CC to be a program name with arguments.
14234 compiler=$CC
14235
14236
14237 # save warnings/boilerplate of simple test code
14238 ac_outfile=conftest.$ac_objext
14239 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14240 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14241 _lt_compiler_boilerplate=`cat conftest.err`
14242 $rm conftest*
14243
14244 ac_outfile=conftest.$ac_objext
14245 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14246 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14247 _lt_linker_boilerplate=`cat conftest.err`
14248 $rm -r conftest*
14249
14250
14251 # Allow CC to be a program name with arguments.
14252 lt_save_CC="$CC"
14253 CC=${F77-"f77"}
14254 compiler=$CC
14255 compiler_F77=$CC
14256 for cc_temp in $compiler""; do
14257   case $cc_temp in
14258     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14259     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14260     \-*) ;;
14261     *) break;;
14262   esac
14263 done
14264 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14265
14266
14267 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14268 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14269 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14270 echo "${ECHO_T}$can_build_shared" >&6; }
14271
14272 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14273 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14274 test "$can_build_shared" = "no" && enable_shared=no
14275
14276 # On AIX, shared libraries and static libraries use the same namespace, and
14277 # are all built from PIC.
14278 case $host_os in
14279 aix3*)
14280   test "$enable_shared" = yes && enable_static=no
14281   if test -n "$RANLIB"; then
14282     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14283     postinstall_cmds='$RANLIB $lib'
14284   fi
14285   ;;
14286 aix[4-9]*)
14287   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14288     test "$enable_shared" = yes && enable_static=no
14289   fi
14290   ;;
14291 esac
14292 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14293 echo "${ECHO_T}$enable_shared" >&6; }
14294
14295 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14296 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14297 # Make sure either enable_shared or enable_static is yes.
14298 test "$enable_shared" = yes || enable_static=yes
14299 { echo "$as_me:$LINENO: result: $enable_static" >&5
14300 echo "${ECHO_T}$enable_static" >&6; }
14301
14302 GCC_F77="$G77"
14303 LD_F77="$LD"
14304
14305 lt_prog_compiler_wl_F77=
14306 lt_prog_compiler_pic_F77=
14307 lt_prog_compiler_static_F77=
14308
14309 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14310 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14311
14312   if test "$GCC" = yes; then
14313     lt_prog_compiler_wl_F77='-Wl,'
14314     lt_prog_compiler_static_F77='-static'
14315
14316     case $host_os in
14317       aix*)
14318       # All AIX code is PIC.
14319       if test "$host_cpu" = ia64; then
14320         # AIX 5 now supports IA64 processor
14321         lt_prog_compiler_static_F77='-Bstatic'
14322       fi
14323       ;;
14324
14325     amigaos*)
14326       # FIXME: we need at least 68020 code to build shared libraries, but
14327       # adding the `-m68020' flag to GCC prevents building anything better,
14328       # like `-m68040'.
14329       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14330       ;;
14331
14332     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14333       # PIC is the default for these OSes.
14334       ;;
14335
14336     mingw* | cygwin* | pw32* | os2*)
14337       # This hack is so that the source file can tell whether it is being
14338       # built for inclusion in a dll (and should export symbols for example).
14339       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14340       # (--disable-auto-import) libraries
14341       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14342       ;;
14343
14344     darwin* | rhapsody*)
14345       # PIC is the default on this platform
14346       # Common symbols not allowed in MH_DYLIB files
14347       lt_prog_compiler_pic_F77='-fno-common'
14348       ;;
14349
14350     interix[3-9]*)
14351       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14352       # Instead, we relocate shared libraries at runtime.
14353       ;;
14354
14355     msdosdjgpp*)
14356       # Just because we use GCC doesn't mean we suddenly get shared libraries
14357       # on systems that don't support them.
14358       lt_prog_compiler_can_build_shared_F77=no
14359       enable_shared=no
14360       ;;
14361
14362     sysv4*MP*)
14363       if test -d /usr/nec; then
14364         lt_prog_compiler_pic_F77=-Kconform_pic
14365       fi
14366       ;;
14367
14368     hpux*)
14369       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14370       # not for PA HP-UX.
14371       case $host_cpu in
14372       hppa*64*|ia64*)
14373         # +Z the default
14374         ;;
14375       *)
14376         lt_prog_compiler_pic_F77='-fPIC'
14377         ;;
14378       esac
14379       ;;
14380
14381     *)
14382       lt_prog_compiler_pic_F77='-fPIC'
14383       ;;
14384     esac
14385   else
14386     # PORTME Check for flag to pass linker flags through the system compiler.
14387     case $host_os in
14388     aix*)
14389       lt_prog_compiler_wl_F77='-Wl,'
14390       if test "$host_cpu" = ia64; then
14391         # AIX 5 now supports IA64 processor
14392         lt_prog_compiler_static_F77='-Bstatic'
14393       else
14394         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14395       fi
14396       ;;
14397       darwin*)
14398         # PIC is the default on this platform
14399         # Common symbols not allowed in MH_DYLIB files
14400        case $cc_basename in
14401          xlc*)
14402          lt_prog_compiler_pic_F77='-qnocommon'
14403          lt_prog_compiler_wl_F77='-Wl,'
14404          ;;
14405        esac
14406        ;;
14407
14408     mingw* | cygwin* | pw32* | os2*)
14409       # This hack is so that the source file can tell whether it is being
14410       # built for inclusion in a dll (and should export symbols for example).
14411       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14412       ;;
14413
14414     hpux9* | hpux10* | hpux11*)
14415       lt_prog_compiler_wl_F77='-Wl,'
14416       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14417       # not for PA HP-UX.
14418       case $host_cpu in
14419       hppa*64*|ia64*)
14420         # +Z the default
14421         ;;
14422       *)
14423         lt_prog_compiler_pic_F77='+Z'
14424         ;;
14425       esac
14426       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14427       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14428       ;;
14429
14430     irix5* | irix6* | nonstopux*)
14431       lt_prog_compiler_wl_F77='-Wl,'
14432       # PIC (with -KPIC) is the default.
14433       lt_prog_compiler_static_F77='-non_shared'
14434       ;;
14435
14436     newsos6)
14437       lt_prog_compiler_pic_F77='-KPIC'
14438       lt_prog_compiler_static_F77='-Bstatic'
14439       ;;
14440
14441     linux* | k*bsd*-gnu)
14442       case $cc_basename in
14443       icc* | ecc*)
14444         lt_prog_compiler_wl_F77='-Wl,'
14445         lt_prog_compiler_pic_F77='-KPIC'
14446         lt_prog_compiler_static_F77='-static'
14447         ;;
14448       pgcc* | pgf77* | pgf90* | pgf95*)
14449         # Portland Group compilers (*not* the Pentium gcc compiler,
14450         # which looks to be a dead project)
14451         lt_prog_compiler_wl_F77='-Wl,'
14452         lt_prog_compiler_pic_F77='-fpic'
14453         lt_prog_compiler_static_F77='-Bstatic'
14454         ;;
14455       ccc*)
14456         lt_prog_compiler_wl_F77='-Wl,'
14457         # All Alpha code is PIC.
14458         lt_prog_compiler_static_F77='-non_shared'
14459         ;;
14460       *)
14461         case `$CC -V 2>&1 | sed 5q` in
14462         *Sun\ C*)
14463           # Sun C 5.9
14464           lt_prog_compiler_pic_F77='-KPIC'
14465           lt_prog_compiler_static_F77='-Bstatic'
14466           lt_prog_compiler_wl_F77='-Wl,'
14467           ;;
14468         *Sun\ F*)
14469           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14470           lt_prog_compiler_pic_F77='-KPIC'
14471           lt_prog_compiler_static_F77='-Bstatic'
14472           lt_prog_compiler_wl_F77=''
14473           ;;
14474         esac
14475         ;;
14476       esac
14477       ;;
14478
14479     osf3* | osf4* | osf5*)
14480       lt_prog_compiler_wl_F77='-Wl,'
14481       # All OSF/1 code is PIC.
14482       lt_prog_compiler_static_F77='-non_shared'
14483       ;;
14484
14485     rdos*)
14486       lt_prog_compiler_static_F77='-non_shared'
14487       ;;
14488
14489     solaris*)
14490       lt_prog_compiler_pic_F77='-KPIC'
14491       lt_prog_compiler_static_F77='-Bstatic'
14492       case $cc_basename in
14493       f77* | f90* | f95*)
14494         lt_prog_compiler_wl_F77='-Qoption ld ';;
14495       *)
14496         lt_prog_compiler_wl_F77='-Wl,';;
14497       esac
14498       ;;
14499
14500     sunos4*)
14501       lt_prog_compiler_wl_F77='-Qoption ld '
14502       lt_prog_compiler_pic_F77='-PIC'
14503       lt_prog_compiler_static_F77='-Bstatic'
14504       ;;
14505
14506     sysv4 | sysv4.2uw2* | sysv4.3*)
14507       lt_prog_compiler_wl_F77='-Wl,'
14508       lt_prog_compiler_pic_F77='-KPIC'
14509       lt_prog_compiler_static_F77='-Bstatic'
14510       ;;
14511
14512     sysv4*MP*)
14513       if test -d /usr/nec ;then
14514         lt_prog_compiler_pic_F77='-Kconform_pic'
14515         lt_prog_compiler_static_F77='-Bstatic'
14516       fi
14517       ;;
14518
14519     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14520       lt_prog_compiler_wl_F77='-Wl,'
14521       lt_prog_compiler_pic_F77='-KPIC'
14522       lt_prog_compiler_static_F77='-Bstatic'
14523       ;;
14524
14525     unicos*)
14526       lt_prog_compiler_wl_F77='-Wl,'
14527       lt_prog_compiler_can_build_shared_F77=no
14528       ;;
14529
14530     uts4*)
14531       lt_prog_compiler_pic_F77='-pic'
14532       lt_prog_compiler_static_F77='-Bstatic'
14533       ;;
14534
14535     *)
14536       lt_prog_compiler_can_build_shared_F77=no
14537       ;;
14538     esac
14539   fi
14540
14541 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14542 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14543
14544 #
14545 # Check to make sure the PIC flag actually works.
14546 #
14547 if test -n "$lt_prog_compiler_pic_F77"; then
14548
14549 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14550 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14551 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14552   echo $ECHO_N "(cached) $ECHO_C" >&6
14553 else
14554   lt_cv_prog_compiler_pic_works_F77=no
14555   ac_outfile=conftest.$ac_objext
14556    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14557    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14558    # Insert the option either (1) after the last *FLAGS variable, or
14559    # (2) before a word containing "conftest.", or (3) at the end.
14560    # Note that $ac_compile itself does not contain backslashes and begins
14561    # with a dollar sign (not a hyphen), so the echo should work correctly.
14562    # The option is referenced via a variable to avoid confusing sed.
14563    lt_compile=`echo "$ac_compile" | $SED \
14564    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14565    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14566    -e 's:$: $lt_compiler_flag:'`
14567    (eval echo "\"\$as_me:14567: $lt_compile\"" >&5)
14568    (eval "$lt_compile" 2>conftest.err)
14569    ac_status=$?
14570    cat conftest.err >&5
14571    echo "$as_me:14571: \$? = $ac_status" >&5
14572    if (exit $ac_status) && test -s "$ac_outfile"; then
14573      # The compiler can only warn and ignore the option if not recognized
14574      # So say no if there are warnings other than the usual output.
14575      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14576      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14577      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14578        lt_cv_prog_compiler_pic_works_F77=yes
14579      fi
14580    fi
14581    $rm conftest*
14582
14583 fi
14584 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14585 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14586
14587 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14588     case $lt_prog_compiler_pic_F77 in
14589      "" | " "*) ;;
14590      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14591      esac
14592 else
14593     lt_prog_compiler_pic_F77=
14594      lt_prog_compiler_can_build_shared_F77=no
14595 fi
14596
14597 fi
14598 case $host_os in
14599   # For platforms which do not support PIC, -DPIC is meaningless:
14600   *djgpp*)
14601     lt_prog_compiler_pic_F77=
14602     ;;
14603   *)
14604     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14605     ;;
14606 esac
14607
14608 #
14609 # Check to make sure the static flag actually works.
14610 #
14611 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14612 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14613 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14614 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14615   echo $ECHO_N "(cached) $ECHO_C" >&6
14616 else
14617   lt_cv_prog_compiler_static_works_F77=no
14618    save_LDFLAGS="$LDFLAGS"
14619    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14620    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14621    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14622      # The linker can only warn and ignore the option if not recognized
14623      # So say no if there are warnings
14624      if test -s conftest.err; then
14625        # Append any errors to the config.log.
14626        cat conftest.err 1>&5
14627        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14628        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14629        if diff conftest.exp conftest.er2 >/dev/null; then
14630          lt_cv_prog_compiler_static_works_F77=yes
14631        fi
14632      else
14633        lt_cv_prog_compiler_static_works_F77=yes
14634      fi
14635    fi
14636    $rm -r conftest*
14637    LDFLAGS="$save_LDFLAGS"
14638
14639 fi
14640 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14641 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14642
14643 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14644     :
14645 else
14646     lt_prog_compiler_static_F77=
14647 fi
14648
14649
14650 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14651 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14652 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14653   echo $ECHO_N "(cached) $ECHO_C" >&6
14654 else
14655   lt_cv_prog_compiler_c_o_F77=no
14656    $rm -r conftest 2>/dev/null
14657    mkdir conftest
14658    cd conftest
14659    mkdir out
14660    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14661
14662    lt_compiler_flag="-o out/conftest2.$ac_objext"
14663    # Insert the option either (1) after the last *FLAGS variable, or
14664    # (2) before a word containing "conftest.", or (3) at the end.
14665    # Note that $ac_compile itself does not contain backslashes and begins
14666    # with a dollar sign (not a hyphen), so the echo should work correctly.
14667    lt_compile=`echo "$ac_compile" | $SED \
14668    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14669    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14670    -e 's:$: $lt_compiler_flag:'`
14671    (eval echo "\"\$as_me:14671: $lt_compile\"" >&5)
14672    (eval "$lt_compile" 2>out/conftest.err)
14673    ac_status=$?
14674    cat out/conftest.err >&5
14675    echo "$as_me:14675: \$? = $ac_status" >&5
14676    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14677    then
14678      # The compiler can only warn and ignore the option if not recognized
14679      # So say no if there are warnings
14680      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14681      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14682      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14683        lt_cv_prog_compiler_c_o_F77=yes
14684      fi
14685    fi
14686    chmod u+w . 2>&5
14687    $rm conftest*
14688    # SGI C++ compiler will create directory out/ii_files/ for
14689    # template instantiation
14690    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14691    $rm out/* && rmdir out
14692    cd ..
14693    rmdir conftest
14694    $rm conftest*
14695
14696 fi
14697 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14698 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14699
14700
14701 hard_links="nottested"
14702 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14703   # do not overwrite the value of need_locks provided by the user
14704   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14705 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14706   hard_links=yes
14707   $rm conftest*
14708   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14709   touch conftest.a
14710   ln conftest.a conftest.b 2>&5 || hard_links=no
14711   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14712   { echo "$as_me:$LINENO: result: $hard_links" >&5
14713 echo "${ECHO_T}$hard_links" >&6; }
14714   if test "$hard_links" = no; then
14715     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14716 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14717     need_locks=warn
14718   fi
14719 else
14720   need_locks=no
14721 fi
14722
14723 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14724 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14725
14726   runpath_var=
14727   allow_undefined_flag_F77=
14728   enable_shared_with_static_runtimes_F77=no
14729   archive_cmds_F77=
14730   archive_expsym_cmds_F77=
14731   old_archive_From_new_cmds_F77=
14732   old_archive_from_expsyms_cmds_F77=
14733   export_dynamic_flag_spec_F77=
14734   whole_archive_flag_spec_F77=
14735   thread_safe_flag_spec_F77=
14736   hardcode_libdir_flag_spec_F77=
14737   hardcode_libdir_flag_spec_ld_F77=
14738   hardcode_libdir_separator_F77=
14739   hardcode_direct_F77=no
14740   hardcode_minus_L_F77=no
14741   hardcode_shlibpath_var_F77=unsupported
14742   link_all_deplibs_F77=unknown
14743   hardcode_automatic_F77=no
14744   module_cmds_F77=
14745   module_expsym_cmds_F77=
14746   always_export_symbols_F77=no
14747   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14748   # include_expsyms should be a list of space-separated symbols to be *always*
14749   # included in the symbol list
14750   include_expsyms_F77=
14751   # exclude_expsyms can be an extended regexp of symbols to exclude
14752   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14753   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14754   # as well as any symbol that contains `d'.
14755   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14756   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14757   # platforms (ab)use it in PIC code, but their linkers get confused if
14758   # the symbol is explicitly referenced.  Since portable code cannot
14759   # rely on this symbol name, it's probably fine to never include it in
14760   # preloaded symbol tables.
14761   # Exclude shared library initialization/finalization symbols.
14762   extract_expsyms_cmds=
14763   # Just being paranoid about ensuring that cc_basename is set.
14764   for cc_temp in $compiler""; do
14765   case $cc_temp in
14766     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14767     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14768     \-*) ;;
14769     *) break;;
14770   esac
14771 done
14772 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14773
14774   case $host_os in
14775   cygwin* | mingw* | pw32*)
14776     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14777     # When not using gcc, we currently assume that we are using
14778     # Microsoft Visual C++.
14779     if test "$GCC" != yes; then
14780       with_gnu_ld=no
14781     fi
14782     ;;
14783   interix*)
14784     # we just hope/assume this is gcc and not c89 (= MSVC++)
14785     with_gnu_ld=yes
14786     ;;
14787   openbsd*)
14788     with_gnu_ld=no
14789     ;;
14790   esac
14791
14792   ld_shlibs_F77=yes
14793   if test "$with_gnu_ld" = yes; then
14794     # If archive_cmds runs LD, not CC, wlarc should be empty
14795     wlarc='${wl}'
14796
14797     # Set some defaults for GNU ld with shared library support. These
14798     # are reset later if shared libraries are not supported. Putting them
14799     # here allows them to be overridden if necessary.
14800     runpath_var=LD_RUN_PATH
14801     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14802     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14803     # ancient GNU ld didn't support --whole-archive et. al.
14804     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14805         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14806       else
14807         whole_archive_flag_spec_F77=
14808     fi
14809     supports_anon_versioning=no
14810     case `$LD -v 2>/dev/null` in
14811       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14812       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14813       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14814       *\ 2.11.*) ;; # other 2.11 versions
14815       *) supports_anon_versioning=yes ;;
14816     esac
14817
14818     # See if GNU ld supports shared libraries.
14819     case $host_os in
14820     aix[3-9]*)
14821       # On AIX/PPC, the GNU linker is very broken
14822       if test "$host_cpu" != ia64; then
14823         ld_shlibs_F77=no
14824         cat <<EOF 1>&2
14825
14826 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14827 *** to be unable to reliably create shared libraries on AIX.
14828 *** Therefore, libtool is disabling shared libraries support.  If you
14829 *** really care for shared libraries, you may want to modify your PATH
14830 *** so that a non-GNU linker is found, and then restart.
14831
14832 EOF
14833       fi
14834       ;;
14835
14836     amigaos*)
14837       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14838       hardcode_libdir_flag_spec_F77='-L$libdir'
14839       hardcode_minus_L_F77=yes
14840
14841       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14842       # that the semantics of dynamic libraries on AmigaOS, at least up
14843       # to version 4, is to share data among multiple programs linked
14844       # with the same dynamic library.  Since this doesn't match the
14845       # behavior of shared libraries on other platforms, we can't use
14846       # them.
14847       ld_shlibs_F77=no
14848       ;;
14849
14850     beos*)
14851       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14852         allow_undefined_flag_F77=unsupported
14853         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14854         # support --undefined.  This deserves some investigation.  FIXME
14855         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14856       else
14857         ld_shlibs_F77=no
14858       fi
14859       ;;
14860
14861     cygwin* | mingw* | pw32*)
14862       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14863       # as there is no search path for DLLs.
14864       hardcode_libdir_flag_spec_F77='-L$libdir'
14865       allow_undefined_flag_F77=unsupported
14866       always_export_symbols_F77=no
14867       enable_shared_with_static_runtimes_F77=yes
14868       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14869
14870       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14871         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14872         # If the export-symbols file already is a .def file (1st line
14873         # is EXPORTS), use it as is; otherwise, prepend...
14874         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14875           cp $export_symbols $output_objdir/$soname.def;
14876         else
14877           echo EXPORTS > $output_objdir/$soname.def;
14878           cat $export_symbols >> $output_objdir/$soname.def;
14879         fi~
14880         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14881       else
14882         ld_shlibs_F77=no
14883       fi
14884       ;;
14885
14886     interix[3-9]*)
14887       hardcode_direct_F77=no
14888       hardcode_shlibpath_var_F77=no
14889       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14890       export_dynamic_flag_spec_F77='${wl}-E'
14891       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14892       # Instead, shared libraries are loaded at an image base (0x10000000 by
14893       # default) and relocated if they conflict, which is a slow very memory
14894       # consuming and fragmenting process.  To avoid this, we pick a random,
14895       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14896       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14897       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14898       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14899       ;;
14900
14901     gnu* | linux* | k*bsd*-gnu)
14902       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14903         tmp_addflag=
14904         case $cc_basename,$host_cpu in
14905         pgcc*)                          # Portland Group C compiler
14906           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14907           tmp_addflag=' $pic_flag'
14908           ;;
14909         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14910           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14911           tmp_addflag=' $pic_flag -Mnomain' ;;
14912         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14913           tmp_addflag=' -i_dynamic' ;;
14914         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14915           tmp_addflag=' -i_dynamic -nofor_main' ;;
14916         ifc* | ifort*)                  # Intel Fortran compiler
14917           tmp_addflag=' -nofor_main' ;;
14918         esac
14919         case `$CC -V 2>&1 | sed 5q` in
14920         *Sun\ C*)                       # Sun C 5.9
14921           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14922           tmp_sharedflag='-G' ;;
14923         *Sun\ F*)                       # Sun Fortran 8.3
14924           tmp_sharedflag='-G' ;;
14925         *)
14926           tmp_sharedflag='-shared' ;;
14927         esac
14928         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14929
14930         if test $supports_anon_versioning = yes; then
14931           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14932   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14933   $echo "local: *; };" >> $output_objdir/$libname.ver~
14934           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14935         fi
14936         link_all_deplibs_F77=no
14937       else
14938         ld_shlibs_F77=no
14939       fi
14940       ;;
14941
14942     netbsd* | netbsdelf*-gnu)
14943       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14944         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14945         wlarc=
14946       else
14947         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14948         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14949       fi
14950       ;;
14951
14952     solaris*)
14953       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14954         ld_shlibs_F77=no
14955         cat <<EOF 1>&2
14956
14957 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14958 *** create shared libraries on Solaris systems.  Therefore, libtool
14959 *** is disabling shared libraries support.  We urge you to upgrade GNU
14960 *** binutils to release 2.9.1 or newer.  Another option is to modify
14961 *** your PATH or compiler configuration so that the native linker is
14962 *** used, and then restart.
14963
14964 EOF
14965       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14966         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14967         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14968       else
14969         ld_shlibs_F77=no
14970       fi
14971       ;;
14972
14973     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14974       case `$LD -v 2>&1` in
14975         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14976         ld_shlibs_F77=no
14977         cat <<_LT_EOF 1>&2
14978
14979 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14980 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14981 *** is disabling shared libraries support.  We urge you to upgrade GNU
14982 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14983 *** your PATH or compiler configuration so that the native linker is
14984 *** used, and then restart.
14985
14986 _LT_EOF
14987         ;;
14988         *)
14989           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14990             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14991             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14992             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14993           else
14994             ld_shlibs_F77=no
14995           fi
14996         ;;
14997       esac
14998       ;;
14999
15000     sunos4*)
15001       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15002       wlarc=
15003       hardcode_direct_F77=yes
15004       hardcode_shlibpath_var_F77=no
15005       ;;
15006
15007     *)
15008       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15009         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15010         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15011       else
15012         ld_shlibs_F77=no
15013       fi
15014       ;;
15015     esac
15016
15017     if test "$ld_shlibs_F77" = no; then
15018       runpath_var=
15019       hardcode_libdir_flag_spec_F77=
15020       export_dynamic_flag_spec_F77=
15021       whole_archive_flag_spec_F77=
15022     fi
15023   else
15024     # PORTME fill in a description of your system's linker (not GNU ld)
15025     case $host_os in
15026     aix3*)
15027       allow_undefined_flag_F77=unsupported
15028       always_export_symbols_F77=yes
15029       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15030       # Note: this linker hardcodes the directories in LIBPATH if there
15031       # are no directories specified by -L.
15032       hardcode_minus_L_F77=yes
15033       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15034         # Neither direct hardcoding nor static linking is supported with a
15035         # broken collect2.
15036         hardcode_direct_F77=unsupported
15037       fi
15038       ;;
15039
15040     aix[4-9]*)
15041       if test "$host_cpu" = ia64; then
15042         # On IA64, the linker does run time linking by default, so we don't
15043         # have to do anything special.
15044         aix_use_runtimelinking=no
15045         exp_sym_flag='-Bexport'
15046         no_entry_flag=""
15047       else
15048         # If we're using GNU nm, then we don't want the "-C" option.
15049         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15050         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15051           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15052         else
15053           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15054         fi
15055         aix_use_runtimelinking=no
15056
15057         # Test if we are trying to use run time linking or normal
15058         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15059         # need to do runtime linking.
15060         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15061           for ld_flag in $LDFLAGS; do
15062           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15063             aix_use_runtimelinking=yes
15064             break
15065           fi
15066           done
15067           ;;
15068         esac
15069
15070         exp_sym_flag='-bexport'
15071         no_entry_flag='-bnoentry'
15072       fi
15073
15074       # When large executables or shared objects are built, AIX ld can
15075       # have problems creating the table of contents.  If linking a library
15076       # or program results in "error TOC overflow" add -mminimal-toc to
15077       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15078       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15079
15080       archive_cmds_F77=''
15081       hardcode_direct_F77=yes
15082       hardcode_libdir_separator_F77=':'
15083       link_all_deplibs_F77=yes
15084
15085       if test "$GCC" = yes; then
15086         case $host_os in aix4.[012]|aix4.[012].*)
15087         # We only want to do this on AIX 4.2 and lower, the check
15088         # below for broken collect2 doesn't work under 4.3+
15089           collect2name=`${CC} -print-prog-name=collect2`
15090           if test -f "$collect2name" && \
15091            strings "$collect2name" | grep resolve_lib_name >/dev/null
15092           then
15093           # We have reworked collect2
15094           :
15095           else
15096           # We have old collect2
15097           hardcode_direct_F77=unsupported
15098           # It fails to find uninstalled libraries when the uninstalled
15099           # path is not listed in the libpath.  Setting hardcode_minus_L
15100           # to unsupported forces relinking
15101           hardcode_minus_L_F77=yes
15102           hardcode_libdir_flag_spec_F77='-L$libdir'
15103           hardcode_libdir_separator_F77=
15104           fi
15105           ;;
15106         esac
15107         shared_flag='-shared'
15108         if test "$aix_use_runtimelinking" = yes; then
15109           shared_flag="$shared_flag "'${wl}-G'
15110         fi
15111       else
15112         # not using gcc
15113         if test "$host_cpu" = ia64; then
15114         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15115         # chokes on -Wl,-G. The following line is correct:
15116           shared_flag='-G'
15117         else
15118           if test "$aix_use_runtimelinking" = yes; then
15119             shared_flag='${wl}-G'
15120           else
15121             shared_flag='${wl}-bM:SRE'
15122           fi
15123         fi
15124       fi
15125
15126       # It seems that -bexpall does not export symbols beginning with
15127       # underscore (_), so it is better to generate a list of symbols to export.
15128       always_export_symbols_F77=yes
15129       if test "$aix_use_runtimelinking" = yes; then
15130         # Warning - without using the other runtime loading flags (-brtl),
15131         # -berok will link without error, but may produce a broken library.
15132         allow_undefined_flag_F77='-berok'
15133        # Determine the default libpath from the value encoded in an empty executable.
15134        cat >conftest.$ac_ext <<_ACEOF
15135       program main
15136
15137       end
15138 _ACEOF
15139 rm -f conftest.$ac_objext conftest$ac_exeext
15140 if { (ac_try="$ac_link"
15141 case "(($ac_try" in
15142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143   *) ac_try_echo=$ac_try;;
15144 esac
15145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146   (eval "$ac_link") 2>conftest.er1
15147   ac_status=$?
15148   grep -v '^ *+' conftest.er1 >conftest.err
15149   rm -f conftest.er1
15150   cat conftest.err >&5
15151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152   (exit $ac_status); } && {
15153          test -z "$ac_f77_werror_flag" ||
15154          test ! -s conftest.err
15155        } && test -s conftest$ac_exeext &&
15156        $as_test_x conftest$ac_exeext; then
15157
15158 lt_aix_libpath_sed='
15159     /Import File Strings/,/^$/ {
15160         /^0/ {
15161             s/^0  *\(.*\)$/\1/
15162             p
15163         }
15164     }'
15165 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15166 # Check for a 64-bit object if we didn't find anything.
15167 if test -z "$aix_libpath"; then
15168   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15169 fi
15170 else
15171   echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15173
15174
15175 fi
15176
15177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15178       conftest$ac_exeext conftest.$ac_ext
15179 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15180
15181        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15182         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15183        else
15184         if test "$host_cpu" = ia64; then
15185           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15186           allow_undefined_flag_F77="-z nodefs"
15187           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15188         else
15189          # Determine the default libpath from the value encoded in an empty executable.
15190          cat >conftest.$ac_ext <<_ACEOF
15191       program main
15192
15193       end
15194 _ACEOF
15195 rm -f conftest.$ac_objext conftest$ac_exeext
15196 if { (ac_try="$ac_link"
15197 case "(($ac_try" in
15198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15199   *) ac_try_echo=$ac_try;;
15200 esac
15201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15202   (eval "$ac_link") 2>conftest.er1
15203   ac_status=$?
15204   grep -v '^ *+' conftest.er1 >conftest.err
15205   rm -f conftest.er1
15206   cat conftest.err >&5
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); } && {
15209          test -z "$ac_f77_werror_flag" ||
15210          test ! -s conftest.err
15211        } && test -s conftest$ac_exeext &&
15212        $as_test_x conftest$ac_exeext; then
15213
15214 lt_aix_libpath_sed='
15215     /Import File Strings/,/^$/ {
15216         /^0/ {
15217             s/^0  *\(.*\)$/\1/
15218             p
15219         }
15220     }'
15221 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15222 # Check for a 64-bit object if we didn't find anything.
15223 if test -z "$aix_libpath"; then
15224   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15225 fi
15226 else
15227   echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15229
15230
15231 fi
15232
15233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15234       conftest$ac_exeext conftest.$ac_ext
15235 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15236
15237          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15238           # Warning - without using the other run time loading flags,
15239           # -berok will link without error, but may produce a broken library.
15240           no_undefined_flag_F77=' ${wl}-bernotok'
15241           allow_undefined_flag_F77=' ${wl}-berok'
15242           # Exported symbols can be pulled into shared objects from archives
15243           whole_archive_flag_spec_F77='$convenience'
15244           archive_cmds_need_lc_F77=yes
15245           # This is similar to how AIX traditionally builds its shared libraries.
15246           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15247         fi
15248       fi
15249       ;;
15250
15251     amigaos*)
15252       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15253       hardcode_libdir_flag_spec_F77='-L$libdir'
15254       hardcode_minus_L_F77=yes
15255       # see comment about different semantics on the GNU ld section
15256       ld_shlibs_F77=no
15257       ;;
15258
15259     bsdi[45]*)
15260       export_dynamic_flag_spec_F77=-rdynamic
15261       ;;
15262
15263     cygwin* | mingw* | pw32*)
15264       # When not using gcc, we currently assume that we are using
15265       # Microsoft Visual C++.
15266       # hardcode_libdir_flag_spec is actually meaningless, as there is
15267       # no search path for DLLs.
15268       hardcode_libdir_flag_spec_F77=' '
15269       allow_undefined_flag_F77=unsupported
15270       # Tell ltmain to make .lib files, not .a files.
15271       libext=lib
15272       # Tell ltmain to make .dll files, not .so files.
15273       shrext_cmds=".dll"
15274       # FIXME: Setting linknames here is a bad hack.
15275       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15276       # The linker will automatically build a .lib file if we build a DLL.
15277       old_archive_From_new_cmds_F77='true'
15278       # FIXME: Should let the user specify the lib program.
15279       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15280       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15281       enable_shared_with_static_runtimes_F77=yes
15282       ;;
15283
15284     darwin* | rhapsody*)
15285       case $host_os in
15286         rhapsody* | darwin1.[012])
15287          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15288          ;;
15289        *) # Darwin 1.3 on
15290          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15291            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15292          else
15293            case ${MACOSX_DEPLOYMENT_TARGET} in
15294              10.[012])
15295                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15296                ;;
15297              10.*)
15298                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15299                ;;
15300            esac
15301          fi
15302          ;;
15303       esac
15304       archive_cmds_need_lc_F77=no
15305       hardcode_direct_F77=no
15306       hardcode_automatic_F77=yes
15307       hardcode_shlibpath_var_F77=unsupported
15308       whole_archive_flag_spec_F77=''
15309       link_all_deplibs_F77=yes
15310     if test "$GCC" = yes ; then
15311         output_verbose_link_cmd='echo'
15312         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15313         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15314         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15315         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15316     else
15317       case $cc_basename in
15318         xlc*)
15319          output_verbose_link_cmd='echo'
15320          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15321          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15322           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15323          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15324           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15325           ;;
15326        *)
15327          ld_shlibs_F77=no
15328           ;;
15329       esac
15330     fi
15331       ;;
15332
15333     dgux*)
15334       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15335       hardcode_libdir_flag_spec_F77='-L$libdir'
15336       hardcode_shlibpath_var_F77=no
15337       ;;
15338
15339     freebsd1*)
15340       ld_shlibs_F77=no
15341       ;;
15342
15343     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15344     # support.  Future versions do this automatically, but an explicit c++rt0.o
15345     # does not break anything, and helps significantly (at the cost of a little
15346     # extra space).
15347     freebsd2.2*)
15348       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15349       hardcode_libdir_flag_spec_F77='-R$libdir'
15350       hardcode_direct_F77=yes
15351       hardcode_shlibpath_var_F77=no
15352       ;;
15353
15354     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15355     freebsd2*)
15356       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15357       hardcode_direct_F77=yes
15358       hardcode_minus_L_F77=yes
15359       hardcode_shlibpath_var_F77=no
15360       ;;
15361
15362     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15363     freebsd* | dragonfly*)
15364       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15365       hardcode_libdir_flag_spec_F77='-R$libdir'
15366       hardcode_direct_F77=yes
15367       hardcode_shlibpath_var_F77=no
15368       ;;
15369
15370     hpux9*)
15371       if test "$GCC" = yes; then
15372         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15373       else
15374         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15375       fi
15376       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15377       hardcode_libdir_separator_F77=:
15378       hardcode_direct_F77=yes
15379
15380       # hardcode_minus_L: Not really in the search PATH,
15381       # but as the default location of the library.
15382       hardcode_minus_L_F77=yes
15383       export_dynamic_flag_spec_F77='${wl}-E'
15384       ;;
15385
15386     hpux10*)
15387       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15388         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15389       else
15390         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15391       fi
15392       if test "$with_gnu_ld" = no; then
15393         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15394         hardcode_libdir_separator_F77=:
15395
15396         hardcode_direct_F77=yes
15397         export_dynamic_flag_spec_F77='${wl}-E'
15398
15399         # hardcode_minus_L: Not really in the search PATH,
15400         # but as the default location of the library.
15401         hardcode_minus_L_F77=yes
15402       fi
15403       ;;
15404
15405     hpux11*)
15406       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15407         case $host_cpu in
15408         hppa*64*)
15409           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15410           ;;
15411         ia64*)
15412           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15413           ;;
15414         *)
15415           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15416           ;;
15417         esac
15418       else
15419         case $host_cpu in
15420         hppa*64*)
15421           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15422           ;;
15423         ia64*)
15424           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15425           ;;
15426         *)
15427           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15428           ;;
15429         esac
15430       fi
15431       if test "$with_gnu_ld" = no; then
15432         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15433         hardcode_libdir_separator_F77=:
15434
15435         case $host_cpu in
15436         hppa*64*|ia64*)
15437           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15438           hardcode_direct_F77=no
15439           hardcode_shlibpath_var_F77=no
15440           ;;
15441         *)
15442           hardcode_direct_F77=yes
15443           export_dynamic_flag_spec_F77='${wl}-E'
15444
15445           # hardcode_minus_L: Not really in the search PATH,
15446           # but as the default location of the library.
15447           hardcode_minus_L_F77=yes
15448           ;;
15449         esac
15450       fi
15451       ;;
15452
15453     irix5* | irix6* | nonstopux*)
15454       if test "$GCC" = yes; then
15455         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15456       else
15457         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15458         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15459       fi
15460       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15461       hardcode_libdir_separator_F77=:
15462       link_all_deplibs_F77=yes
15463       ;;
15464
15465     netbsd* | netbsdelf*-gnu)
15466       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15467         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15468       else
15469         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15470       fi
15471       hardcode_libdir_flag_spec_F77='-R$libdir'
15472       hardcode_direct_F77=yes
15473       hardcode_shlibpath_var_F77=no
15474       ;;
15475
15476     newsos6)
15477       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15478       hardcode_direct_F77=yes
15479       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15480       hardcode_libdir_separator_F77=:
15481       hardcode_shlibpath_var_F77=no
15482       ;;
15483
15484     openbsd*)
15485       if test -f /usr/libexec/ld.so; then
15486         hardcode_direct_F77=yes
15487         hardcode_shlibpath_var_F77=no
15488         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15489           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15490           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15491           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15492           export_dynamic_flag_spec_F77='${wl}-E'
15493         else
15494           case $host_os in
15495            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15496              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15497              hardcode_libdir_flag_spec_F77='-R$libdir'
15498              ;;
15499            *)
15500              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15501              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15502              ;;
15503           esac
15504         fi
15505       else
15506         ld_shlibs_F77=no
15507       fi
15508       ;;
15509
15510     os2*)
15511       hardcode_libdir_flag_spec_F77='-L$libdir'
15512       hardcode_minus_L_F77=yes
15513       allow_undefined_flag_F77=unsupported
15514       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15515       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15516       ;;
15517
15518     osf3*)
15519       if test "$GCC" = yes; then
15520         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15521         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15522       else
15523         allow_undefined_flag_F77=' -expect_unresolved \*'
15524         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15525       fi
15526       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15527       hardcode_libdir_separator_F77=:
15528       ;;
15529
15530     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15531       if test "$GCC" = yes; then
15532         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15533         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15534         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15535       else
15536         allow_undefined_flag_F77=' -expect_unresolved \*'
15537         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15538         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15539         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15540
15541         # Both c and cxx compiler support -rpath directly
15542         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15543       fi
15544       hardcode_libdir_separator_F77=:
15545       ;;
15546
15547     solaris*)
15548       no_undefined_flag_F77=' -z text'
15549       if test "$GCC" = yes; then
15550         wlarc='${wl}'
15551         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15552         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15553           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15554       else
15555         wlarc=''
15556         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15557         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15558         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15559       fi
15560       hardcode_libdir_flag_spec_F77='-R$libdir'
15561       hardcode_shlibpath_var_F77=no
15562       case $host_os in
15563       solaris2.[0-5] | solaris2.[0-5].*) ;;
15564       *)
15565         # The compiler driver will combine and reorder linker options,
15566         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15567         # but is careful enough not to reorder.
15568         # Supported since Solaris 2.6 (maybe 2.5.1?)
15569         if test "$GCC" = yes; then
15570           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15571         else
15572           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15573         fi
15574         ;;
15575       esac
15576       link_all_deplibs_F77=yes
15577       ;;
15578
15579     sunos4*)
15580       if test "x$host_vendor" = xsequent; then
15581         # Use $CC to link under sequent, because it throws in some extra .o
15582         # files that make .init and .fini sections work.
15583         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15584       else
15585         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15586       fi
15587       hardcode_libdir_flag_spec_F77='-L$libdir'
15588       hardcode_direct_F77=yes
15589       hardcode_minus_L_F77=yes
15590       hardcode_shlibpath_var_F77=no
15591       ;;
15592
15593     sysv4)
15594       case $host_vendor in
15595         sni)
15596           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15597           hardcode_direct_F77=yes # is this really true???
15598         ;;
15599         siemens)
15600           ## LD is ld it makes a PLAMLIB
15601           ## CC just makes a GrossModule.
15602           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15603           reload_cmds_F77='$CC -r -o $output$reload_objs'
15604           hardcode_direct_F77=no
15605         ;;
15606         motorola)
15607           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15608           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15609         ;;
15610       esac
15611       runpath_var='LD_RUN_PATH'
15612       hardcode_shlibpath_var_F77=no
15613       ;;
15614
15615     sysv4.3*)
15616       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15617       hardcode_shlibpath_var_F77=no
15618       export_dynamic_flag_spec_F77='-Bexport'
15619       ;;
15620
15621     sysv4*MP*)
15622       if test -d /usr/nec; then
15623         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15624         hardcode_shlibpath_var_F77=no
15625         runpath_var=LD_RUN_PATH
15626         hardcode_runpath_var=yes
15627         ld_shlibs_F77=yes
15628       fi
15629       ;;
15630
15631     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15632       no_undefined_flag_F77='${wl}-z,text'
15633       archive_cmds_need_lc_F77=no
15634       hardcode_shlibpath_var_F77=no
15635       runpath_var='LD_RUN_PATH'
15636
15637       if test "$GCC" = yes; then
15638         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15639         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15640       else
15641         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15642         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15643       fi
15644       ;;
15645
15646     sysv5* | sco3.2v5* | sco5v6*)
15647       # Note: We can NOT use -z defs as we might desire, because we do not
15648       # link with -lc, and that would cause any symbols used from libc to
15649       # always be unresolved, which means just about no library would
15650       # ever link correctly.  If we're not using GNU ld we use -z text
15651       # though, which does catch some bad symbols but isn't as heavy-handed
15652       # as -z defs.
15653       no_undefined_flag_F77='${wl}-z,text'
15654       allow_undefined_flag_F77='${wl}-z,nodefs'
15655       archive_cmds_need_lc_F77=no
15656       hardcode_shlibpath_var_F77=no
15657       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15658       hardcode_libdir_separator_F77=':'
15659       link_all_deplibs_F77=yes
15660       export_dynamic_flag_spec_F77='${wl}-Bexport'
15661       runpath_var='LD_RUN_PATH'
15662
15663       if test "$GCC" = yes; then
15664         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15665         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15666       else
15667         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15668         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15669       fi
15670       ;;
15671
15672     uts4*)
15673       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15674       hardcode_libdir_flag_spec_F77='-L$libdir'
15675       hardcode_shlibpath_var_F77=no
15676       ;;
15677
15678     *)
15679       ld_shlibs_F77=no
15680       ;;
15681     esac
15682   fi
15683
15684 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15685 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15686 test "$ld_shlibs_F77" = no && can_build_shared=no
15687
15688 #
15689 # Do we need to explicitly link libc?
15690 #
15691 case "x$archive_cmds_need_lc_F77" in
15692 x|xyes)
15693   # Assume -lc should be added
15694   archive_cmds_need_lc_F77=yes
15695
15696   if test "$enable_shared" = yes && test "$GCC" = yes; then
15697     case $archive_cmds_F77 in
15698     *'~'*)
15699       # FIXME: we may have to deal with multi-command sequences.
15700       ;;
15701     '$CC '*)
15702       # Test whether the compiler implicitly links with -lc since on some
15703       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15704       # to ld, don't add -lc before -lgcc.
15705       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15706 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15707       $rm conftest*
15708       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15709
15710       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15711   (eval $ac_compile) 2>&5
15712   ac_status=$?
15713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714   (exit $ac_status); } 2>conftest.err; then
15715         soname=conftest
15716         lib=conftest
15717         libobjs=conftest.$ac_objext
15718         deplibs=
15719         wl=$lt_prog_compiler_wl_F77
15720         pic_flag=$lt_prog_compiler_pic_F77
15721         compiler_flags=-v
15722         linker_flags=-v
15723         verstring=
15724         output_objdir=.
15725         libname=conftest
15726         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15727         allow_undefined_flag_F77=
15728         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15729   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15730   ac_status=$?
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); }
15733         then
15734           archive_cmds_need_lc_F77=no
15735         else
15736           archive_cmds_need_lc_F77=yes
15737         fi
15738         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15739       else
15740         cat conftest.err 1>&5
15741       fi
15742       $rm conftest*
15743       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15744 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15745       ;;
15746     esac
15747   fi
15748   ;;
15749 esac
15750
15751 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15752 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15753 library_names_spec=
15754 libname_spec='lib$name'
15755 soname_spec=
15756 shrext_cmds=".so"
15757 postinstall_cmds=
15758 postuninstall_cmds=
15759 finish_cmds=
15760 finish_eval=
15761 shlibpath_var=
15762 shlibpath_overrides_runpath=unknown
15763 version_type=none
15764 dynamic_linker="$host_os ld.so"
15765 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15766
15767 need_lib_prefix=unknown
15768 hardcode_into_libs=no
15769
15770 # when you set need_version to no, make sure it does not cause -set_version
15771 # flags to be left without arguments
15772 need_version=unknown
15773
15774 case $host_os in
15775 aix3*)
15776   version_type=linux
15777   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15778   shlibpath_var=LIBPATH
15779
15780   # AIX 3 has no versioning support, so we append a major version to the name.
15781   soname_spec='${libname}${release}${shared_ext}$major'
15782   ;;
15783
15784 aix[4-9]*)
15785   version_type=linux
15786   need_lib_prefix=no
15787   need_version=no
15788   hardcode_into_libs=yes
15789   if test "$host_cpu" = ia64; then
15790     # AIX 5 supports IA64
15791     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15792     shlibpath_var=LD_LIBRARY_PATH
15793   else
15794     # With GCC up to 2.95.x, collect2 would create an import file
15795     # for dependence libraries.  The import file would start with
15796     # the line `#! .'.  This would cause the generated library to
15797     # depend on `.', always an invalid library.  This was fixed in
15798     # development snapshots of GCC prior to 3.0.
15799     case $host_os in
15800       aix4 | aix4.[01] | aix4.[01].*)
15801       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15802            echo ' yes '
15803            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15804         :
15805       else
15806         can_build_shared=no
15807       fi
15808       ;;
15809     esac
15810     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15811     # soname into executable. Probably we can add versioning support to
15812     # collect2, so additional links can be useful in future.
15813     if test "$aix_use_runtimelinking" = yes; then
15814       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15815       # instead of lib<name>.a to let people know that these are not
15816       # typical AIX shared libraries.
15817       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15818     else
15819       # We preserve .a as extension for shared libraries through AIX4.2
15820       # and later when we are not doing run time linking.
15821       library_names_spec='${libname}${release}.a $libname.a'
15822       soname_spec='${libname}${release}${shared_ext}$major'
15823     fi
15824     shlibpath_var=LIBPATH
15825   fi
15826   ;;
15827
15828 amigaos*)
15829   library_names_spec='$libname.ixlibrary $libname.a'
15830   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15831   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15832   ;;
15833
15834 beos*)
15835   library_names_spec='${libname}${shared_ext}'
15836   dynamic_linker="$host_os ld.so"
15837   shlibpath_var=LIBRARY_PATH
15838   ;;
15839
15840 bsdi[45]*)
15841   version_type=linux
15842   need_version=no
15843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15844   soname_spec='${libname}${release}${shared_ext}$major'
15845   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15846   shlibpath_var=LD_LIBRARY_PATH
15847   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15848   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15849   # the default ld.so.conf also contains /usr/contrib/lib and
15850   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15851   # libtool to hard-code these into programs
15852   ;;
15853
15854 cygwin* | mingw* | pw32*)
15855   version_type=windows
15856   shrext_cmds=".dll"
15857   need_version=no
15858   need_lib_prefix=no
15859
15860   case $GCC,$host_os in
15861   yes,cygwin* | yes,mingw* | yes,pw32*)
15862     library_names_spec='$libname.dll.a'
15863     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15864     postinstall_cmds='base_file=`basename \${file}`~
15865       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15866       dldir=$destdir/`dirname \$dlpath`~
15867       test -d \$dldir || mkdir -p \$dldir~
15868       $install_prog $dir/$dlname \$dldir/$dlname~
15869       chmod a+x \$dldir/$dlname'
15870     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15871       dlpath=$dir/\$dldll~
15872        $rm \$dlpath'
15873     shlibpath_overrides_runpath=yes
15874
15875     case $host_os in
15876     cygwin*)
15877       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15878       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15879       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15880       ;;
15881     mingw*)
15882       # MinGW DLLs use traditional 'lib' prefix
15883       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15884       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15885       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15886         # It is most probably a Windows format PATH printed by
15887         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15888         # path with ; separators, and with drive letters. We can handle the
15889         # drive letters (cygwin fileutils understands them), so leave them,
15890         # especially as we might pass files found there to a mingw objdump,
15891         # which wouldn't understand a cygwinified path. Ahh.
15892         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15893       else
15894         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15895       fi
15896       ;;
15897     pw32*)
15898       # pw32 DLLs use 'pw' prefix rather than 'lib'
15899       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15900       ;;
15901     esac
15902     ;;
15903
15904   *)
15905     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15906     ;;
15907   esac
15908   dynamic_linker='Win32 ld.exe'
15909   # FIXME: first we should search . and the directory the executable is in
15910   shlibpath_var=PATH
15911   ;;
15912
15913 darwin* | rhapsody*)
15914   dynamic_linker="$host_os dyld"
15915   version_type=darwin
15916   need_lib_prefix=no
15917   need_version=no
15918   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15919   soname_spec='${libname}${release}${major}$shared_ext'
15920   shlibpath_overrides_runpath=yes
15921   shlibpath_var=DYLD_LIBRARY_PATH
15922   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15923
15924   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15925   ;;
15926
15927 dgux*)
15928   version_type=linux
15929   need_lib_prefix=no
15930   need_version=no
15931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15932   soname_spec='${libname}${release}${shared_ext}$major'
15933   shlibpath_var=LD_LIBRARY_PATH
15934   ;;
15935
15936 freebsd1*)
15937   dynamic_linker=no
15938   ;;
15939
15940 freebsd* | dragonfly*)
15941   # DragonFly does not have aout.  When/if they implement a new
15942   # versioning mechanism, adjust this.
15943   if test -x /usr/bin/objformat; then
15944     objformat=`/usr/bin/objformat`
15945   else
15946     case $host_os in
15947     freebsd[123]*) objformat=aout ;;
15948     *) objformat=elf ;;
15949     esac
15950   fi
15951   version_type=freebsd-$objformat
15952   case $version_type in
15953     freebsd-elf*)
15954       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15955       need_version=no
15956       need_lib_prefix=no
15957       ;;
15958     freebsd-*)
15959       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15960       need_version=yes
15961       ;;
15962   esac
15963   shlibpath_var=LD_LIBRARY_PATH
15964   case $host_os in
15965   freebsd2*)
15966     shlibpath_overrides_runpath=yes
15967     ;;
15968   freebsd3.[01]* | freebsdelf3.[01]*)
15969     shlibpath_overrides_runpath=yes
15970     hardcode_into_libs=yes
15971     ;;
15972   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15973   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15974     shlibpath_overrides_runpath=no
15975     hardcode_into_libs=yes
15976     ;;
15977   *) # from 4.6 on, and DragonFly
15978     shlibpath_overrides_runpath=yes
15979     hardcode_into_libs=yes
15980     ;;
15981   esac
15982   ;;
15983
15984 gnu*)
15985   version_type=linux
15986   need_lib_prefix=no
15987   need_version=no
15988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15989   soname_spec='${libname}${release}${shared_ext}$major'
15990   shlibpath_var=LD_LIBRARY_PATH
15991   hardcode_into_libs=yes
15992   ;;
15993
15994 hpux9* | hpux10* | hpux11*)
15995   # Give a soname corresponding to the major version so that dld.sl refuses to
15996   # link against other versions.
15997   version_type=sunos
15998   need_lib_prefix=no
15999   need_version=no
16000   case $host_cpu in
16001   ia64*)
16002     shrext_cmds='.so'
16003     hardcode_into_libs=yes
16004     dynamic_linker="$host_os dld.so"
16005     shlibpath_var=LD_LIBRARY_PATH
16006     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16008     soname_spec='${libname}${release}${shared_ext}$major'
16009     if test "X$HPUX_IA64_MODE" = X32; then
16010       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16011     else
16012       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16013     fi
16014     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16015     ;;
16016    hppa*64*)
16017      shrext_cmds='.sl'
16018      hardcode_into_libs=yes
16019      dynamic_linker="$host_os dld.sl"
16020      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16021      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16022      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16023      soname_spec='${libname}${release}${shared_ext}$major'
16024      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16025      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16026      ;;
16027    *)
16028     shrext_cmds='.sl'
16029     dynamic_linker="$host_os dld.sl"
16030     shlibpath_var=SHLIB_PATH
16031     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16032     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16033     soname_spec='${libname}${release}${shared_ext}$major'
16034     ;;
16035   esac
16036   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16037   postinstall_cmds='chmod 555 $lib'
16038   ;;
16039
16040 interix[3-9]*)
16041   version_type=linux
16042   need_lib_prefix=no
16043   need_version=no
16044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16045   soname_spec='${libname}${release}${shared_ext}$major'
16046   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16047   shlibpath_var=LD_LIBRARY_PATH
16048   shlibpath_overrides_runpath=no
16049   hardcode_into_libs=yes
16050   ;;
16051
16052 irix5* | irix6* | nonstopux*)
16053   case $host_os in
16054     nonstopux*) version_type=nonstopux ;;
16055     *)
16056         if test "$lt_cv_prog_gnu_ld" = yes; then
16057                 version_type=linux
16058         else
16059                 version_type=irix
16060         fi ;;
16061   esac
16062   need_lib_prefix=no
16063   need_version=no
16064   soname_spec='${libname}${release}${shared_ext}$major'
16065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16066   case $host_os in
16067   irix5* | nonstopux*)
16068     libsuff= shlibsuff=
16069     ;;
16070   *)
16071     case $LD in # libtool.m4 will add one of these switches to LD
16072     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16073       libsuff= shlibsuff= libmagic=32-bit;;
16074     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16075       libsuff=32 shlibsuff=N32 libmagic=N32;;
16076     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16077       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16078     *) libsuff= shlibsuff= libmagic=never-match;;
16079     esac
16080     ;;
16081   esac
16082   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16083   shlibpath_overrides_runpath=no
16084   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16085   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16086   hardcode_into_libs=yes
16087   ;;
16088
16089 # No shared lib support for Linux oldld, aout, or coff.
16090 linux*oldld* | linux*aout* | linux*coff*)
16091   dynamic_linker=no
16092   ;;
16093
16094 # This must be Linux ELF.
16095 linux* | k*bsd*-gnu)
16096   version_type=linux
16097   need_lib_prefix=no
16098   need_version=no
16099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16100   soname_spec='${libname}${release}${shared_ext}$major'
16101   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16102   shlibpath_var=LD_LIBRARY_PATH
16103   shlibpath_overrides_runpath=no
16104   # This implies no fast_install, which is unacceptable.
16105   # Some rework will be needed to allow for fast_install
16106   # before this can be enabled.
16107   hardcode_into_libs=yes
16108
16109   # Append ld.so.conf contents to the search path
16110   if test -f /etc/ld.so.conf; then
16111     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16112     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16113   fi
16114
16115   # We used to test for /lib/ld.so.1 and disable shared libraries on
16116   # powerpc, because MkLinux only supported shared libraries with the
16117   # GNU dynamic linker.  Since this was broken with cross compilers,
16118   # most powerpc-linux boxes support dynamic linking these days and
16119   # people can always --disable-shared, the test was removed, and we
16120   # assume the GNU/Linux dynamic linker is in use.
16121   dynamic_linker='GNU/Linux ld.so'
16122   ;;
16123
16124 netbsdelf*-gnu)
16125   version_type=linux
16126   need_lib_prefix=no
16127   need_version=no
16128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16129   soname_spec='${libname}${release}${shared_ext}$major'
16130   shlibpath_var=LD_LIBRARY_PATH
16131   shlibpath_overrides_runpath=no
16132   hardcode_into_libs=yes
16133   dynamic_linker='NetBSD ld.elf_so'
16134   ;;
16135
16136 netbsd*)
16137   version_type=sunos
16138   need_lib_prefix=no
16139   need_version=no
16140   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16141     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16142     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16143     dynamic_linker='NetBSD (a.out) ld.so'
16144   else
16145     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16146     soname_spec='${libname}${release}${shared_ext}$major'
16147     dynamic_linker='NetBSD ld.elf_so'
16148   fi
16149   shlibpath_var=LD_LIBRARY_PATH
16150   shlibpath_overrides_runpath=yes
16151   hardcode_into_libs=yes
16152   ;;
16153
16154 newsos6)
16155   version_type=linux
16156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157   shlibpath_var=LD_LIBRARY_PATH
16158   shlibpath_overrides_runpath=yes
16159   ;;
16160
16161 nto-qnx*)
16162   version_type=linux
16163   need_lib_prefix=no
16164   need_version=no
16165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16166   soname_spec='${libname}${release}${shared_ext}$major'
16167   shlibpath_var=LD_LIBRARY_PATH
16168   shlibpath_overrides_runpath=yes
16169   ;;
16170
16171 openbsd*)
16172   version_type=sunos
16173   sys_lib_dlsearch_path_spec="/usr/lib"
16174   need_lib_prefix=no
16175   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16176   case $host_os in
16177     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16178     *)                         need_version=no  ;;
16179   esac
16180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16181   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16182   shlibpath_var=LD_LIBRARY_PATH
16183   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16184     case $host_os in
16185       openbsd2.[89] | openbsd2.[89].*)
16186         shlibpath_overrides_runpath=no
16187         ;;
16188       *)
16189         shlibpath_overrides_runpath=yes
16190         ;;
16191       esac
16192   else
16193     shlibpath_overrides_runpath=yes
16194   fi
16195   ;;
16196
16197 os2*)
16198   libname_spec='$name'
16199   shrext_cmds=".dll"
16200   need_lib_prefix=no
16201   library_names_spec='$libname${shared_ext} $libname.a'
16202   dynamic_linker='OS/2 ld.exe'
16203   shlibpath_var=LIBPATH
16204   ;;
16205
16206 osf3* | osf4* | osf5*)
16207   version_type=osf
16208   need_lib_prefix=no
16209   need_version=no
16210   soname_spec='${libname}${release}${shared_ext}$major'
16211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16212   shlibpath_var=LD_LIBRARY_PATH
16213   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16214   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16215   ;;
16216
16217 rdos*)
16218   dynamic_linker=no
16219   ;;
16220
16221 solaris*)
16222   version_type=linux
16223   need_lib_prefix=no
16224   need_version=no
16225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16226   soname_spec='${libname}${release}${shared_ext}$major'
16227   shlibpath_var=LD_LIBRARY_PATH
16228   shlibpath_overrides_runpath=yes
16229   hardcode_into_libs=yes
16230   # ldd complains unless libraries are executable
16231   postinstall_cmds='chmod +x $lib'
16232   ;;
16233
16234 sunos4*)
16235   version_type=sunos
16236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16237   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16238   shlibpath_var=LD_LIBRARY_PATH
16239   shlibpath_overrides_runpath=yes
16240   if test "$with_gnu_ld" = yes; then
16241     need_lib_prefix=no
16242   fi
16243   need_version=yes
16244   ;;
16245
16246 sysv4 | sysv4.3*)
16247   version_type=linux
16248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249   soname_spec='${libname}${release}${shared_ext}$major'
16250   shlibpath_var=LD_LIBRARY_PATH
16251   case $host_vendor in
16252     sni)
16253       shlibpath_overrides_runpath=no
16254       need_lib_prefix=no
16255       export_dynamic_flag_spec='${wl}-Blargedynsym'
16256       runpath_var=LD_RUN_PATH
16257       ;;
16258     siemens)
16259       need_lib_prefix=no
16260       ;;
16261     motorola)
16262       need_lib_prefix=no
16263       need_version=no
16264       shlibpath_overrides_runpath=no
16265       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16266       ;;
16267   esac
16268   ;;
16269
16270 sysv4*MP*)
16271   if test -d /usr/nec ;then
16272     version_type=linux
16273     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16274     soname_spec='$libname${shared_ext}.$major'
16275     shlibpath_var=LD_LIBRARY_PATH
16276   fi
16277   ;;
16278
16279 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16280   version_type=freebsd-elf
16281   need_lib_prefix=no
16282   need_version=no
16283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16284   soname_spec='${libname}${release}${shared_ext}$major'
16285   shlibpath_var=LD_LIBRARY_PATH
16286   hardcode_into_libs=yes
16287   if test "$with_gnu_ld" = yes; then
16288     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16289     shlibpath_overrides_runpath=no
16290   else
16291     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16292     shlibpath_overrides_runpath=yes
16293     case $host_os in
16294       sco3.2v5*)
16295         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16296         ;;
16297     esac
16298   fi
16299   sys_lib_dlsearch_path_spec='/usr/lib'
16300   ;;
16301
16302 uts4*)
16303   version_type=linux
16304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16305   soname_spec='${libname}${release}${shared_ext}$major'
16306   shlibpath_var=LD_LIBRARY_PATH
16307   ;;
16308
16309 *)
16310   dynamic_linker=no
16311   ;;
16312 esac
16313 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16314 echo "${ECHO_T}$dynamic_linker" >&6; }
16315 test "$dynamic_linker" = no && can_build_shared=no
16316
16317 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16318   echo $ECHO_N "(cached) $ECHO_C" >&6
16319 else
16320   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16321 fi
16322
16323 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16324 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16325   echo $ECHO_N "(cached) $ECHO_C" >&6
16326 else
16327   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16328 fi
16329
16330 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16331
16332 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16333 if test "$GCC" = yes; then
16334   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16335 fi
16336
16337 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16338 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16339 hardcode_action_F77=
16340 if test -n "$hardcode_libdir_flag_spec_F77" || \
16341    test -n "$runpath_var_F77" || \
16342    test "X$hardcode_automatic_F77" = "Xyes" ; then
16343
16344   # We can hardcode non-existant directories.
16345   if test "$hardcode_direct_F77" != no &&
16346      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16347      # have to relink, otherwise we might link with an installed library
16348      # when we should be linking with a yet-to-be-installed one
16349      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16350      test "$hardcode_minus_L_F77" != no; then
16351     # Linking always hardcodes the temporary library directory.
16352     hardcode_action_F77=relink
16353   else
16354     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16355     hardcode_action_F77=immediate
16356   fi
16357 else
16358   # We cannot hardcode anything, or else we can only hardcode existing
16359   # directories.
16360   hardcode_action_F77=unsupported
16361 fi
16362 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16363 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16364
16365 if test "$hardcode_action_F77" = relink; then
16366   # Fast installation is not supported
16367   enable_fast_install=no
16368 elif test "$shlibpath_overrides_runpath" = yes ||
16369      test "$enable_shared" = no; then
16370   # Fast installation is not necessary
16371   enable_fast_install=needless
16372 fi
16373
16374
16375 # The else clause should only fire when bootstrapping the
16376 # libtool distribution, otherwise you forgot to ship ltmain.sh
16377 # with your package, and you will get complaints that there are
16378 # no rules to generate ltmain.sh.
16379 if test -f "$ltmain"; then
16380   # See if we are running on zsh, and set the options which allow our commands through
16381   # without removal of \ escapes.
16382   if test -n "${ZSH_VERSION+set}" ; then
16383     setopt NO_GLOB_SUBST
16384   fi
16385   # Now quote all the things that may contain metacharacters while being
16386   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16387   # variables and quote the copies for generation of the libtool script.
16388   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16389     SED SHELL STRIP \
16390     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16391     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16392     deplibs_check_method reload_flag reload_cmds need_locks \
16393     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16394     lt_cv_sys_global_symbol_to_c_name_address \
16395     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16396     old_postinstall_cmds old_postuninstall_cmds \
16397     compiler_F77 \
16398     CC_F77 \
16399     LD_F77 \
16400     lt_prog_compiler_wl_F77 \
16401     lt_prog_compiler_pic_F77 \
16402     lt_prog_compiler_static_F77 \
16403     lt_prog_compiler_no_builtin_flag_F77 \
16404     export_dynamic_flag_spec_F77 \
16405     thread_safe_flag_spec_F77 \
16406     whole_archive_flag_spec_F77 \
16407     enable_shared_with_static_runtimes_F77 \
16408     old_archive_cmds_F77 \
16409     old_archive_from_new_cmds_F77 \
16410     predep_objects_F77 \
16411     postdep_objects_F77 \
16412     predeps_F77 \
16413     postdeps_F77 \
16414     compiler_lib_search_path_F77 \
16415     compiler_lib_search_dirs_F77 \
16416     archive_cmds_F77 \
16417     archive_expsym_cmds_F77 \
16418     postinstall_cmds_F77 \
16419     postuninstall_cmds_F77 \
16420     old_archive_from_expsyms_cmds_F77 \
16421     allow_undefined_flag_F77 \
16422     no_undefined_flag_F77 \
16423     export_symbols_cmds_F77 \
16424     hardcode_libdir_flag_spec_F77 \
16425     hardcode_libdir_flag_spec_ld_F77 \
16426     hardcode_libdir_separator_F77 \
16427     hardcode_automatic_F77 \
16428     module_cmds_F77 \
16429     module_expsym_cmds_F77 \
16430     lt_cv_prog_compiler_c_o_F77 \
16431     fix_srcfile_path_F77 \
16432     exclude_expsyms_F77 \
16433     include_expsyms_F77; do
16434
16435     case $var in
16436     old_archive_cmds_F77 | \
16437     old_archive_from_new_cmds_F77 | \
16438     archive_cmds_F77 | \
16439     archive_expsym_cmds_F77 | \
16440     module_cmds_F77 | \
16441     module_expsym_cmds_F77 | \
16442     old_archive_from_expsyms_cmds_F77 | \
16443     export_symbols_cmds_F77 | \
16444     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16445     postinstall_cmds | postuninstall_cmds | \
16446     old_postinstall_cmds | old_postuninstall_cmds | \
16447     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16448       # Double-quote double-evaled strings.
16449       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16450       ;;
16451     *)
16452       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16453       ;;
16454     esac
16455   done
16456
16457   case $lt_echo in
16458   *'\$0 --fallback-echo"')
16459     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16460     ;;
16461   esac
16462
16463 cfgfile="$ofile"
16464
16465   cat <<__EOF__ >> "$cfgfile"
16466 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16467
16468 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16469
16470 # Shell to use when invoking shell scripts.
16471 SHELL=$lt_SHELL
16472
16473 # Whether or not to build shared libraries.
16474 build_libtool_libs=$enable_shared
16475
16476 # Whether or not to build static libraries.
16477 build_old_libs=$enable_static
16478
16479 # Whether or not to add -lc for building shared libraries.
16480 build_libtool_need_lc=$archive_cmds_need_lc_F77
16481
16482 # Whether or not to disallow shared libs when runtime libs are static
16483 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16484
16485 # Whether or not to optimize for fast installation.
16486 fast_install=$enable_fast_install
16487
16488 # The host system.
16489 host_alias=$host_alias
16490 host=$host
16491 host_os=$host_os
16492
16493 # The build system.
16494 build_alias=$build_alias
16495 build=$build
16496 build_os=$build_os
16497
16498 # An echo program that does not interpret backslashes.
16499 echo=$lt_echo
16500
16501 # The archiver.
16502 AR=$lt_AR
16503 AR_FLAGS=$lt_AR_FLAGS
16504
16505 # A C compiler.
16506 LTCC=$lt_LTCC
16507
16508 # LTCC compiler flags.
16509 LTCFLAGS=$lt_LTCFLAGS
16510
16511 # A language-specific compiler.
16512 CC=$lt_compiler_F77
16513
16514 # Is the compiler the GNU C compiler?
16515 with_gcc=$GCC_F77
16516
16517 # An ERE matcher.
16518 EGREP=$lt_EGREP
16519
16520 # The linker used to build libraries.
16521 LD=$lt_LD_F77
16522
16523 # Whether we need hard or soft links.
16524 LN_S=$lt_LN_S
16525
16526 # A BSD-compatible nm program.
16527 NM=$lt_NM
16528
16529 # A symbol stripping program
16530 STRIP=$lt_STRIP
16531
16532 # Used to examine libraries when file_magic_cmd begins "file"
16533 MAGIC_CMD=$MAGIC_CMD
16534
16535 # Used on cygwin: DLL creation program.
16536 DLLTOOL="$DLLTOOL"
16537
16538 # Used on cygwin: object dumper.
16539 OBJDUMP="$OBJDUMP"
16540
16541 # Used on cygwin: assembler.
16542 AS="$AS"
16543
16544 # The name of the directory that contains temporary libtool files.
16545 objdir=$objdir
16546
16547 # How to create reloadable object files.
16548 reload_flag=$lt_reload_flag
16549 reload_cmds=$lt_reload_cmds
16550
16551 # How to pass a linker flag through the compiler.
16552 wl=$lt_lt_prog_compiler_wl_F77
16553
16554 # Object file suffix (normally "o").
16555 objext="$ac_objext"
16556
16557 # Old archive suffix (normally "a").
16558 libext="$libext"
16559
16560 # Shared library suffix (normally ".so").
16561 shrext_cmds='$shrext_cmds'
16562
16563 # Executable file suffix (normally "").
16564 exeext="$exeext"
16565
16566 # Additional compiler flags for building library objects.
16567 pic_flag=$lt_lt_prog_compiler_pic_F77
16568 pic_mode=$pic_mode
16569
16570 # What is the maximum length of a command?
16571 max_cmd_len=$lt_cv_sys_max_cmd_len
16572
16573 # Does compiler simultaneously support -c and -o options?
16574 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16575
16576 # Must we lock files when doing compilation?
16577 need_locks=$lt_need_locks
16578
16579 # Do we need the lib prefix for modules?
16580 need_lib_prefix=$need_lib_prefix
16581
16582 # Do we need a version for libraries?
16583 need_version=$need_version
16584
16585 # Whether dlopen is supported.
16586 dlopen_support=$enable_dlopen
16587
16588 # Whether dlopen of programs is supported.
16589 dlopen_self=$enable_dlopen_self
16590
16591 # Whether dlopen of statically linked programs is supported.
16592 dlopen_self_static=$enable_dlopen_self_static
16593
16594 # Compiler flag to prevent dynamic linking.
16595 link_static_flag=$lt_lt_prog_compiler_static_F77
16596
16597 # Compiler flag to turn off builtin functions.
16598 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16599
16600 # Compiler flag to allow reflexive dlopens.
16601 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16602
16603 # Compiler flag to generate shared objects directly from archives.
16604 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16605
16606 # Compiler flag to generate thread-safe objects.
16607 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16608
16609 # Library versioning type.
16610 version_type=$version_type
16611
16612 # Format of library name prefix.
16613 libname_spec=$lt_libname_spec
16614
16615 # List of archive names.  First name is the real one, the rest are links.
16616 # The last name is the one that the linker finds with -lNAME.
16617 library_names_spec=$lt_library_names_spec
16618
16619 # The coded name of the library, if different from the real name.
16620 soname_spec=$lt_soname_spec
16621
16622 # Commands used to build and install an old-style archive.
16623 RANLIB=$lt_RANLIB
16624 old_archive_cmds=$lt_old_archive_cmds_F77
16625 old_postinstall_cmds=$lt_old_postinstall_cmds
16626 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16627
16628 # Create an old-style archive from a shared archive.
16629 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16630
16631 # Create a temporary old-style archive to link instead of a shared archive.
16632 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16633
16634 # Commands used to build and install a shared archive.
16635 archive_cmds=$lt_archive_cmds_F77
16636 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16637 postinstall_cmds=$lt_postinstall_cmds
16638 postuninstall_cmds=$lt_postuninstall_cmds
16639
16640 # Commands used to build a loadable module (assumed same as above if empty)
16641 module_cmds=$lt_module_cmds_F77
16642 module_expsym_cmds=$lt_module_expsym_cmds_F77
16643
16644 # Commands to strip libraries.
16645 old_striplib=$lt_old_striplib
16646 striplib=$lt_striplib
16647
16648 # Dependencies to place before the objects being linked to create a
16649 # shared library.
16650 predep_objects=$lt_predep_objects_F77
16651
16652 # Dependencies to place after the objects being linked to create a
16653 # shared library.
16654 postdep_objects=$lt_postdep_objects_F77
16655
16656 # Dependencies to place before the objects being linked to create a
16657 # shared library.
16658 predeps=$lt_predeps_F77
16659
16660 # Dependencies to place after the objects being linked to create a
16661 # shared library.
16662 postdeps=$lt_postdeps_F77
16663
16664 # The directories searched by this compiler when creating a shared
16665 # library
16666 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16667
16668 # The library search path used internally by the compiler when linking
16669 # a shared library.
16670 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16671
16672 # Method to check whether dependent libraries are shared objects.
16673 deplibs_check_method=$lt_deplibs_check_method
16674
16675 # Command to use when deplibs_check_method == file_magic.
16676 file_magic_cmd=$lt_file_magic_cmd
16677
16678 # Flag that allows shared libraries with undefined symbols to be built.
16679 allow_undefined_flag=$lt_allow_undefined_flag_F77
16680
16681 # Flag that forces no undefined symbols.
16682 no_undefined_flag=$lt_no_undefined_flag_F77
16683
16684 # Commands used to finish a libtool library installation in a directory.
16685 finish_cmds=$lt_finish_cmds
16686
16687 # Same as above, but a single script fragment to be evaled but not shown.
16688 finish_eval=$lt_finish_eval
16689
16690 # Take the output of nm and produce a listing of raw symbols and C names.
16691 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16692
16693 # Transform the output of nm in a proper C declaration
16694 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16695
16696 # Transform the output of nm in a C name address pair
16697 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16698
16699 # This is the shared library runtime path variable.
16700 runpath_var=$runpath_var
16701
16702 # This is the shared library path variable.
16703 shlibpath_var=$shlibpath_var
16704
16705 # Is shlibpath searched before the hard-coded library search path?
16706 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16707
16708 # How to hardcode a shared library path into an executable.
16709 hardcode_action=$hardcode_action_F77
16710
16711 # Whether we should hardcode library paths into libraries.
16712 hardcode_into_libs=$hardcode_into_libs
16713
16714 # Flag to hardcode \$libdir into a binary during linking.
16715 # This must work even if \$libdir does not exist.
16716 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16717
16718 # If ld is used when linking, flag to hardcode \$libdir into
16719 # a binary during linking. This must work even if \$libdir does
16720 # not exist.
16721 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16722
16723 # Whether we need a single -rpath flag with a separated argument.
16724 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16725
16726 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16727 # resulting binary.
16728 hardcode_direct=$hardcode_direct_F77
16729
16730 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16731 # resulting binary.
16732 hardcode_minus_L=$hardcode_minus_L_F77
16733
16734 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16735 # the resulting binary.
16736 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16737
16738 # Set to yes if building a shared library automatically hardcodes DIR into the library
16739 # and all subsequent libraries and executables linked against it.
16740 hardcode_automatic=$hardcode_automatic_F77
16741
16742 # Variables whose values should be saved in libtool wrapper scripts and
16743 # restored at relink time.
16744 variables_saved_for_relink="$variables_saved_for_relink"
16745
16746 # Whether libtool must link a program against all its dependency libraries.
16747 link_all_deplibs=$link_all_deplibs_F77
16748
16749 # Compile-time system search path for libraries
16750 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16751
16752 # Run-time system search path for libraries
16753 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16754
16755 # Fix the shell variable \$srcfile for the compiler.
16756 fix_srcfile_path=$lt_fix_srcfile_path
16757
16758 # Set to yes if exported symbols are required.
16759 always_export_symbols=$always_export_symbols_F77
16760
16761 # The commands to list exported symbols.
16762 export_symbols_cmds=$lt_export_symbols_cmds_F77
16763
16764 # The commands to extract the exported symbol list from a shared archive.
16765 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16766
16767 # Symbols that should not be listed in the preloaded symbols.
16768 exclude_expsyms=$lt_exclude_expsyms_F77
16769
16770 # Symbols that must always be exported.
16771 include_expsyms=$lt_include_expsyms_F77
16772
16773 # ### END LIBTOOL TAG CONFIG: $tagname
16774
16775 __EOF__
16776
16777
16778 else
16779   # If there is no Makefile yet, we rely on a make rule to execute
16780   # `config.status --recheck' to rerun these tests and create the
16781   # libtool script then.
16782   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16783   if test -f "$ltmain_in"; then
16784     test -f Makefile && make "$ltmain"
16785   fi
16786 fi
16787
16788
16789 ac_ext=c
16790 ac_cpp='$CPP $CPPFLAGS'
16791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16794
16795 CC="$lt_save_CC"
16796
16797         else
16798           tagname=""
16799         fi
16800         ;;
16801
16802       GCJ)
16803         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16804
16805
16806 # Source file extension for Java test sources.
16807 ac_ext=java
16808
16809 # Object file extension for compiled Java test sources.
16810 objext=o
16811 objext_GCJ=$objext
16812
16813 # Code to be used in simple compile tests
16814 lt_simple_compile_test_code="class foo {}"
16815
16816 # Code to be used in simple link tests
16817 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16818
16819 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16820
16821 # If no C compiler was specified, use CC.
16822 LTCC=${LTCC-"$CC"}
16823
16824 # If no C compiler flags were specified, use CFLAGS.
16825 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16826
16827 # Allow CC to be a program name with arguments.
16828 compiler=$CC
16829
16830
16831 # save warnings/boilerplate of simple test code
16832 ac_outfile=conftest.$ac_objext
16833 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16834 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16835 _lt_compiler_boilerplate=`cat conftest.err`
16836 $rm conftest*
16837
16838 ac_outfile=conftest.$ac_objext
16839 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16840 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16841 _lt_linker_boilerplate=`cat conftest.err`
16842 $rm -r conftest*
16843
16844
16845 # Allow CC to be a program name with arguments.
16846 lt_save_CC="$CC"
16847 CC=${GCJ-"gcj"}
16848 compiler=$CC
16849 compiler_GCJ=$CC
16850 for cc_temp in $compiler""; do
16851   case $cc_temp in
16852     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16853     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16854     \-*) ;;
16855     *) break;;
16856   esac
16857 done
16858 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16859
16860
16861 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16862 archive_cmds_need_lc_GCJ=no
16863
16864 old_archive_cmds_GCJ=$old_archive_cmds
16865
16866
16867 lt_prog_compiler_no_builtin_flag_GCJ=
16868
16869 if test "$GCC" = yes; then
16870   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16871
16872
16873 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16874 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16875 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16876   echo $ECHO_N "(cached) $ECHO_C" >&6
16877 else
16878   lt_cv_prog_compiler_rtti_exceptions=no
16879   ac_outfile=conftest.$ac_objext
16880    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16881    lt_compiler_flag="-fno-rtti -fno-exceptions"
16882    # Insert the option either (1) after the last *FLAGS variable, or
16883    # (2) before a word containing "conftest.", or (3) at the end.
16884    # Note that $ac_compile itself does not contain backslashes and begins
16885    # with a dollar sign (not a hyphen), so the echo should work correctly.
16886    # The option is referenced via a variable to avoid confusing sed.
16887    lt_compile=`echo "$ac_compile" | $SED \
16888    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16889    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16890    -e 's:$: $lt_compiler_flag:'`
16891    (eval echo "\"\$as_me:16891: $lt_compile\"" >&5)
16892    (eval "$lt_compile" 2>conftest.err)
16893    ac_status=$?
16894    cat conftest.err >&5
16895    echo "$as_me:16895: \$? = $ac_status" >&5
16896    if (exit $ac_status) && test -s "$ac_outfile"; then
16897      # The compiler can only warn and ignore the option if not recognized
16898      # So say no if there are warnings other than the usual output.
16899      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16900      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16901      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16902        lt_cv_prog_compiler_rtti_exceptions=yes
16903      fi
16904    fi
16905    $rm conftest*
16906
16907 fi
16908 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16909 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16910
16911 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16912     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16913 else
16914     :
16915 fi
16916
16917 fi
16918
16919 lt_prog_compiler_wl_GCJ=
16920 lt_prog_compiler_pic_GCJ=
16921 lt_prog_compiler_static_GCJ=
16922
16923 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16924 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16925
16926   if test "$GCC" = yes; then
16927     lt_prog_compiler_wl_GCJ='-Wl,'
16928     lt_prog_compiler_static_GCJ='-static'
16929
16930     case $host_os in
16931       aix*)
16932       # All AIX code is PIC.
16933       if test "$host_cpu" = ia64; then
16934         # AIX 5 now supports IA64 processor
16935         lt_prog_compiler_static_GCJ='-Bstatic'
16936       fi
16937       ;;
16938
16939     amigaos*)
16940       # FIXME: we need at least 68020 code to build shared libraries, but
16941       # adding the `-m68020' flag to GCC prevents building anything better,
16942       # like `-m68040'.
16943       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16944       ;;
16945
16946     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16947       # PIC is the default for these OSes.
16948       ;;
16949
16950     mingw* | cygwin* | pw32* | os2*)
16951       # This hack is so that the source file can tell whether it is being
16952       # built for inclusion in a dll (and should export symbols for example).
16953       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16954       # (--disable-auto-import) libraries
16955
16956       ;;
16957
16958     darwin* | rhapsody*)
16959       # PIC is the default on this platform
16960       # Common symbols not allowed in MH_DYLIB files
16961       lt_prog_compiler_pic_GCJ='-fno-common'
16962       ;;
16963
16964     interix[3-9]*)
16965       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16966       # Instead, we relocate shared libraries at runtime.
16967       ;;
16968
16969     msdosdjgpp*)
16970       # Just because we use GCC doesn't mean we suddenly get shared libraries
16971       # on systems that don't support them.
16972       lt_prog_compiler_can_build_shared_GCJ=no
16973       enable_shared=no
16974       ;;
16975
16976     sysv4*MP*)
16977       if test -d /usr/nec; then
16978         lt_prog_compiler_pic_GCJ=-Kconform_pic
16979       fi
16980       ;;
16981
16982     hpux*)
16983       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16984       # not for PA HP-UX.
16985       case $host_cpu in
16986       hppa*64*|ia64*)
16987         # +Z the default
16988         ;;
16989       *)
16990         lt_prog_compiler_pic_GCJ='-fPIC'
16991         ;;
16992       esac
16993       ;;
16994
16995     *)
16996       lt_prog_compiler_pic_GCJ='-fPIC'
16997       ;;
16998     esac
16999   else
17000     # PORTME Check for flag to pass linker flags through the system compiler.
17001     case $host_os in
17002     aix*)
17003       lt_prog_compiler_wl_GCJ='-Wl,'
17004       if test "$host_cpu" = ia64; then
17005         # AIX 5 now supports IA64 processor
17006         lt_prog_compiler_static_GCJ='-Bstatic'
17007       else
17008         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17009       fi
17010       ;;
17011       darwin*)
17012         # PIC is the default on this platform
17013         # Common symbols not allowed in MH_DYLIB files
17014        case $cc_basename in
17015          xlc*)
17016          lt_prog_compiler_pic_GCJ='-qnocommon'
17017          lt_prog_compiler_wl_GCJ='-Wl,'
17018          ;;
17019        esac
17020        ;;
17021
17022     mingw* | cygwin* | pw32* | os2*)
17023       # This hack is so that the source file can tell whether it is being
17024       # built for inclusion in a dll (and should export symbols for example).
17025
17026       ;;
17027
17028     hpux9* | hpux10* | hpux11*)
17029       lt_prog_compiler_wl_GCJ='-Wl,'
17030       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17031       # not for PA HP-UX.
17032       case $host_cpu in
17033       hppa*64*|ia64*)
17034         # +Z the default
17035         ;;
17036       *)
17037         lt_prog_compiler_pic_GCJ='+Z'
17038         ;;
17039       esac
17040       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17041       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17042       ;;
17043
17044     irix5* | irix6* | nonstopux*)
17045       lt_prog_compiler_wl_GCJ='-Wl,'
17046       # PIC (with -KPIC) is the default.
17047       lt_prog_compiler_static_GCJ='-non_shared'
17048       ;;
17049
17050     newsos6)
17051       lt_prog_compiler_pic_GCJ='-KPIC'
17052       lt_prog_compiler_static_GCJ='-Bstatic'
17053       ;;
17054
17055     linux* | k*bsd*-gnu)
17056       case $cc_basename in
17057       icc* | ecc*)
17058         lt_prog_compiler_wl_GCJ='-Wl,'
17059         lt_prog_compiler_pic_GCJ='-KPIC'
17060         lt_prog_compiler_static_GCJ='-static'
17061         ;;
17062       pgcc* | pgf77* | pgf90* | pgf95*)
17063         # Portland Group compilers (*not* the Pentium gcc compiler,
17064         # which looks to be a dead project)
17065         lt_prog_compiler_wl_GCJ='-Wl,'
17066         lt_prog_compiler_pic_GCJ='-fpic'
17067         lt_prog_compiler_static_GCJ='-Bstatic'
17068         ;;
17069       ccc*)
17070         lt_prog_compiler_wl_GCJ='-Wl,'
17071         # All Alpha code is PIC.
17072         lt_prog_compiler_static_GCJ='-non_shared'
17073         ;;
17074       *)
17075         case `$CC -V 2>&1 | sed 5q` in
17076         *Sun\ C*)
17077           # Sun C 5.9
17078           lt_prog_compiler_pic_GCJ='-KPIC'
17079           lt_prog_compiler_static_GCJ='-Bstatic'
17080           lt_prog_compiler_wl_GCJ='-Wl,'
17081           ;;
17082         *Sun\ F*)
17083           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17084           lt_prog_compiler_pic_GCJ='-KPIC'
17085           lt_prog_compiler_static_GCJ='-Bstatic'
17086           lt_prog_compiler_wl_GCJ=''
17087           ;;
17088         esac
17089         ;;
17090       esac
17091       ;;
17092
17093     osf3* | osf4* | osf5*)
17094       lt_prog_compiler_wl_GCJ='-Wl,'
17095       # All OSF/1 code is PIC.
17096       lt_prog_compiler_static_GCJ='-non_shared'
17097       ;;
17098
17099     rdos*)
17100       lt_prog_compiler_static_GCJ='-non_shared'
17101       ;;
17102
17103     solaris*)
17104       lt_prog_compiler_pic_GCJ='-KPIC'
17105       lt_prog_compiler_static_GCJ='-Bstatic'
17106       case $cc_basename in
17107       f77* | f90* | f95*)
17108         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17109       *)
17110         lt_prog_compiler_wl_GCJ='-Wl,';;
17111       esac
17112       ;;
17113
17114     sunos4*)
17115       lt_prog_compiler_wl_GCJ='-Qoption ld '
17116       lt_prog_compiler_pic_GCJ='-PIC'
17117       lt_prog_compiler_static_GCJ='-Bstatic'
17118       ;;
17119
17120     sysv4 | sysv4.2uw2* | sysv4.3*)
17121       lt_prog_compiler_wl_GCJ='-Wl,'
17122       lt_prog_compiler_pic_GCJ='-KPIC'
17123       lt_prog_compiler_static_GCJ='-Bstatic'
17124       ;;
17125
17126     sysv4*MP*)
17127       if test -d /usr/nec ;then
17128         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17129         lt_prog_compiler_static_GCJ='-Bstatic'
17130       fi
17131       ;;
17132
17133     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17134       lt_prog_compiler_wl_GCJ='-Wl,'
17135       lt_prog_compiler_pic_GCJ='-KPIC'
17136       lt_prog_compiler_static_GCJ='-Bstatic'
17137       ;;
17138
17139     unicos*)
17140       lt_prog_compiler_wl_GCJ='-Wl,'
17141       lt_prog_compiler_can_build_shared_GCJ=no
17142       ;;
17143
17144     uts4*)
17145       lt_prog_compiler_pic_GCJ='-pic'
17146       lt_prog_compiler_static_GCJ='-Bstatic'
17147       ;;
17148
17149     *)
17150       lt_prog_compiler_can_build_shared_GCJ=no
17151       ;;
17152     esac
17153   fi
17154
17155 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17156 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17157
17158 #
17159 # Check to make sure the PIC flag actually works.
17160 #
17161 if test -n "$lt_prog_compiler_pic_GCJ"; then
17162
17163 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17164 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17165 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17166   echo $ECHO_N "(cached) $ECHO_C" >&6
17167 else
17168   lt_cv_prog_compiler_pic_works_GCJ=no
17169   ac_outfile=conftest.$ac_objext
17170    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17171    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17172    # Insert the option either (1) after the last *FLAGS variable, or
17173    # (2) before a word containing "conftest.", or (3) at the end.
17174    # Note that $ac_compile itself does not contain backslashes and begins
17175    # with a dollar sign (not a hyphen), so the echo should work correctly.
17176    # The option is referenced via a variable to avoid confusing sed.
17177    lt_compile=`echo "$ac_compile" | $SED \
17178    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17179    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17180    -e 's:$: $lt_compiler_flag:'`
17181    (eval echo "\"\$as_me:17181: $lt_compile\"" >&5)
17182    (eval "$lt_compile" 2>conftest.err)
17183    ac_status=$?
17184    cat conftest.err >&5
17185    echo "$as_me:17185: \$? = $ac_status" >&5
17186    if (exit $ac_status) && test -s "$ac_outfile"; then
17187      # The compiler can only warn and ignore the option if not recognized
17188      # So say no if there are warnings other than the usual output.
17189      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17190      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17191      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17192        lt_cv_prog_compiler_pic_works_GCJ=yes
17193      fi
17194    fi
17195    $rm conftest*
17196
17197 fi
17198 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17199 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17200
17201 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17202     case $lt_prog_compiler_pic_GCJ in
17203      "" | " "*) ;;
17204      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17205      esac
17206 else
17207     lt_prog_compiler_pic_GCJ=
17208      lt_prog_compiler_can_build_shared_GCJ=no
17209 fi
17210
17211 fi
17212 case $host_os in
17213   # For platforms which do not support PIC, -DPIC is meaningless:
17214   *djgpp*)
17215     lt_prog_compiler_pic_GCJ=
17216     ;;
17217   *)
17218     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17219     ;;
17220 esac
17221
17222 #
17223 # Check to make sure the static flag actually works.
17224 #
17225 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17226 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17227 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17228 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17229   echo $ECHO_N "(cached) $ECHO_C" >&6
17230 else
17231   lt_cv_prog_compiler_static_works_GCJ=no
17232    save_LDFLAGS="$LDFLAGS"
17233    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17234    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17235    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17236      # The linker can only warn and ignore the option if not recognized
17237      # So say no if there are warnings
17238      if test -s conftest.err; then
17239        # Append any errors to the config.log.
17240        cat conftest.err 1>&5
17241        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17242        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17243        if diff conftest.exp conftest.er2 >/dev/null; then
17244          lt_cv_prog_compiler_static_works_GCJ=yes
17245        fi
17246      else
17247        lt_cv_prog_compiler_static_works_GCJ=yes
17248      fi
17249    fi
17250    $rm -r conftest*
17251    LDFLAGS="$save_LDFLAGS"
17252
17253 fi
17254 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17255 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17256
17257 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17258     :
17259 else
17260     lt_prog_compiler_static_GCJ=
17261 fi
17262
17263
17264 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17265 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17266 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17267   echo $ECHO_N "(cached) $ECHO_C" >&6
17268 else
17269   lt_cv_prog_compiler_c_o_GCJ=no
17270    $rm -r conftest 2>/dev/null
17271    mkdir conftest
17272    cd conftest
17273    mkdir out
17274    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17275
17276    lt_compiler_flag="-o out/conftest2.$ac_objext"
17277    # Insert the option either (1) after the last *FLAGS variable, or
17278    # (2) before a word containing "conftest.", or (3) at the end.
17279    # Note that $ac_compile itself does not contain backslashes and begins
17280    # with a dollar sign (not a hyphen), so the echo should work correctly.
17281    lt_compile=`echo "$ac_compile" | $SED \
17282    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17283    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17284    -e 's:$: $lt_compiler_flag:'`
17285    (eval echo "\"\$as_me:17285: $lt_compile\"" >&5)
17286    (eval "$lt_compile" 2>out/conftest.err)
17287    ac_status=$?
17288    cat out/conftest.err >&5
17289    echo "$as_me:17289: \$? = $ac_status" >&5
17290    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17291    then
17292      # The compiler can only warn and ignore the option if not recognized
17293      # So say no if there are warnings
17294      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17295      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17296      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17297        lt_cv_prog_compiler_c_o_GCJ=yes
17298      fi
17299    fi
17300    chmod u+w . 2>&5
17301    $rm conftest*
17302    # SGI C++ compiler will create directory out/ii_files/ for
17303    # template instantiation
17304    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17305    $rm out/* && rmdir out
17306    cd ..
17307    rmdir conftest
17308    $rm conftest*
17309
17310 fi
17311 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17312 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17313
17314
17315 hard_links="nottested"
17316 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17317   # do not overwrite the value of need_locks provided by the user
17318   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17319 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17320   hard_links=yes
17321   $rm conftest*
17322   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17323   touch conftest.a
17324   ln conftest.a conftest.b 2>&5 || hard_links=no
17325   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17326   { echo "$as_me:$LINENO: result: $hard_links" >&5
17327 echo "${ECHO_T}$hard_links" >&6; }
17328   if test "$hard_links" = no; then
17329     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17330 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17331     need_locks=warn
17332   fi
17333 else
17334   need_locks=no
17335 fi
17336
17337 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17338 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17339
17340   runpath_var=
17341   allow_undefined_flag_GCJ=
17342   enable_shared_with_static_runtimes_GCJ=no
17343   archive_cmds_GCJ=
17344   archive_expsym_cmds_GCJ=
17345   old_archive_From_new_cmds_GCJ=
17346   old_archive_from_expsyms_cmds_GCJ=
17347   export_dynamic_flag_spec_GCJ=
17348   whole_archive_flag_spec_GCJ=
17349   thread_safe_flag_spec_GCJ=
17350   hardcode_libdir_flag_spec_GCJ=
17351   hardcode_libdir_flag_spec_ld_GCJ=
17352   hardcode_libdir_separator_GCJ=
17353   hardcode_direct_GCJ=no
17354   hardcode_minus_L_GCJ=no
17355   hardcode_shlibpath_var_GCJ=unsupported
17356   link_all_deplibs_GCJ=unknown
17357   hardcode_automatic_GCJ=no
17358   module_cmds_GCJ=
17359   module_expsym_cmds_GCJ=
17360   always_export_symbols_GCJ=no
17361   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17362   # include_expsyms should be a list of space-separated symbols to be *always*
17363   # included in the symbol list
17364   include_expsyms_GCJ=
17365   # exclude_expsyms can be an extended regexp of symbols to exclude
17366   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17367   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17368   # as well as any symbol that contains `d'.
17369   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17370   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17371   # platforms (ab)use it in PIC code, but their linkers get confused if
17372   # the symbol is explicitly referenced.  Since portable code cannot
17373   # rely on this symbol name, it's probably fine to never include it in
17374   # preloaded symbol tables.
17375   # Exclude shared library initialization/finalization symbols.
17376   extract_expsyms_cmds=
17377   # Just being paranoid about ensuring that cc_basename is set.
17378   for cc_temp in $compiler""; do
17379   case $cc_temp in
17380     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17381     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17382     \-*) ;;
17383     *) break;;
17384   esac
17385 done
17386 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17387
17388   case $host_os in
17389   cygwin* | mingw* | pw32*)
17390     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17391     # When not using gcc, we currently assume that we are using
17392     # Microsoft Visual C++.
17393     if test "$GCC" != yes; then
17394       with_gnu_ld=no
17395     fi
17396     ;;
17397   interix*)
17398     # we just hope/assume this is gcc and not c89 (= MSVC++)
17399     with_gnu_ld=yes
17400     ;;
17401   openbsd*)
17402     with_gnu_ld=no
17403     ;;
17404   esac
17405
17406   ld_shlibs_GCJ=yes
17407   if test "$with_gnu_ld" = yes; then
17408     # If archive_cmds runs LD, not CC, wlarc should be empty
17409     wlarc='${wl}'
17410
17411     # Set some defaults for GNU ld with shared library support. These
17412     # are reset later if shared libraries are not supported. Putting them
17413     # here allows them to be overridden if necessary.
17414     runpath_var=LD_RUN_PATH
17415     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17416     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17417     # ancient GNU ld didn't support --whole-archive et. al.
17418     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17419         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17420       else
17421         whole_archive_flag_spec_GCJ=
17422     fi
17423     supports_anon_versioning=no
17424     case `$LD -v 2>/dev/null` in
17425       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17426       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17427       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17428       *\ 2.11.*) ;; # other 2.11 versions
17429       *) supports_anon_versioning=yes ;;
17430     esac
17431
17432     # See if GNU ld supports shared libraries.
17433     case $host_os in
17434     aix[3-9]*)
17435       # On AIX/PPC, the GNU linker is very broken
17436       if test "$host_cpu" != ia64; then
17437         ld_shlibs_GCJ=no
17438         cat <<EOF 1>&2
17439
17440 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17441 *** to be unable to reliably create shared libraries on AIX.
17442 *** Therefore, libtool is disabling shared libraries support.  If you
17443 *** really care for shared libraries, you may want to modify your PATH
17444 *** so that a non-GNU linker is found, and then restart.
17445
17446 EOF
17447       fi
17448       ;;
17449
17450     amigaos*)
17451       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17452       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17453       hardcode_minus_L_GCJ=yes
17454
17455       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17456       # that the semantics of dynamic libraries on AmigaOS, at least up
17457       # to version 4, is to share data among multiple programs linked
17458       # with the same dynamic library.  Since this doesn't match the
17459       # behavior of shared libraries on other platforms, we can't use
17460       # them.
17461       ld_shlibs_GCJ=no
17462       ;;
17463
17464     beos*)
17465       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17466         allow_undefined_flag_GCJ=unsupported
17467         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17468         # support --undefined.  This deserves some investigation.  FIXME
17469         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17470       else
17471         ld_shlibs_GCJ=no
17472       fi
17473       ;;
17474
17475     cygwin* | mingw* | pw32*)
17476       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17477       # as there is no search path for DLLs.
17478       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17479       allow_undefined_flag_GCJ=unsupported
17480       always_export_symbols_GCJ=no
17481       enable_shared_with_static_runtimes_GCJ=yes
17482       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17483
17484       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17485         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17486         # If the export-symbols file already is a .def file (1st line
17487         # is EXPORTS), use it as is; otherwise, prepend...
17488         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17489           cp $export_symbols $output_objdir/$soname.def;
17490         else
17491           echo EXPORTS > $output_objdir/$soname.def;
17492           cat $export_symbols >> $output_objdir/$soname.def;
17493         fi~
17494         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17495       else
17496         ld_shlibs_GCJ=no
17497       fi
17498       ;;
17499
17500     interix[3-9]*)
17501       hardcode_direct_GCJ=no
17502       hardcode_shlibpath_var_GCJ=no
17503       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17504       export_dynamic_flag_spec_GCJ='${wl}-E'
17505       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17506       # Instead, shared libraries are loaded at an image base (0x10000000 by
17507       # default) and relocated if they conflict, which is a slow very memory
17508       # consuming and fragmenting process.  To avoid this, we pick a random,
17509       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17510       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17511       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17512       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17513       ;;
17514
17515     gnu* | linux* | k*bsd*-gnu)
17516       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17517         tmp_addflag=
17518         case $cc_basename,$host_cpu in
17519         pgcc*)                          # Portland Group C compiler
17520           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17521           tmp_addflag=' $pic_flag'
17522           ;;
17523         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17524           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17525           tmp_addflag=' $pic_flag -Mnomain' ;;
17526         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17527           tmp_addflag=' -i_dynamic' ;;
17528         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17529           tmp_addflag=' -i_dynamic -nofor_main' ;;
17530         ifc* | ifort*)                  # Intel Fortran compiler
17531           tmp_addflag=' -nofor_main' ;;
17532         esac
17533         case `$CC -V 2>&1 | sed 5q` in
17534         *Sun\ C*)                       # Sun C 5.9
17535           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17536           tmp_sharedflag='-G' ;;
17537         *Sun\ F*)                       # Sun Fortran 8.3
17538           tmp_sharedflag='-G' ;;
17539         *)
17540           tmp_sharedflag='-shared' ;;
17541         esac
17542         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17543
17544         if test $supports_anon_versioning = yes; then
17545           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17546   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17547   $echo "local: *; };" >> $output_objdir/$libname.ver~
17548           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17549         fi
17550         link_all_deplibs_GCJ=no
17551       else
17552         ld_shlibs_GCJ=no
17553       fi
17554       ;;
17555
17556     netbsd* | netbsdelf*-gnu)
17557       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17558         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17559         wlarc=
17560       else
17561         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17562         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17563       fi
17564       ;;
17565
17566     solaris*)
17567       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17568         ld_shlibs_GCJ=no
17569         cat <<EOF 1>&2
17570
17571 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17572 *** create shared libraries on Solaris systems.  Therefore, libtool
17573 *** is disabling shared libraries support.  We urge you to upgrade GNU
17574 *** binutils to release 2.9.1 or newer.  Another option is to modify
17575 *** your PATH or compiler configuration so that the native linker is
17576 *** used, and then restart.
17577
17578 EOF
17579       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17580         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17581         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17582       else
17583         ld_shlibs_GCJ=no
17584       fi
17585       ;;
17586
17587     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17588       case `$LD -v 2>&1` in
17589         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17590         ld_shlibs_GCJ=no
17591         cat <<_LT_EOF 1>&2
17592
17593 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17594 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17595 *** is disabling shared libraries support.  We urge you to upgrade GNU
17596 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17597 *** your PATH or compiler configuration so that the native linker is
17598 *** used, and then restart.
17599
17600 _LT_EOF
17601         ;;
17602         *)
17603           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17604             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17605             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17606             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17607           else
17608             ld_shlibs_GCJ=no
17609           fi
17610         ;;
17611       esac
17612       ;;
17613
17614     sunos4*)
17615       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17616       wlarc=
17617       hardcode_direct_GCJ=yes
17618       hardcode_shlibpath_var_GCJ=no
17619       ;;
17620
17621     *)
17622       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17623         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17624         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17625       else
17626         ld_shlibs_GCJ=no
17627       fi
17628       ;;
17629     esac
17630
17631     if test "$ld_shlibs_GCJ" = no; then
17632       runpath_var=
17633       hardcode_libdir_flag_spec_GCJ=
17634       export_dynamic_flag_spec_GCJ=
17635       whole_archive_flag_spec_GCJ=
17636     fi
17637   else
17638     # PORTME fill in a description of your system's linker (not GNU ld)
17639     case $host_os in
17640     aix3*)
17641       allow_undefined_flag_GCJ=unsupported
17642       always_export_symbols_GCJ=yes
17643       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17644       # Note: this linker hardcodes the directories in LIBPATH if there
17645       # are no directories specified by -L.
17646       hardcode_minus_L_GCJ=yes
17647       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17648         # Neither direct hardcoding nor static linking is supported with a
17649         # broken collect2.
17650         hardcode_direct_GCJ=unsupported
17651       fi
17652       ;;
17653
17654     aix[4-9]*)
17655       if test "$host_cpu" = ia64; then
17656         # On IA64, the linker does run time linking by default, so we don't
17657         # have to do anything special.
17658         aix_use_runtimelinking=no
17659         exp_sym_flag='-Bexport'
17660         no_entry_flag=""
17661       else
17662         # If we're using GNU nm, then we don't want the "-C" option.
17663         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17664         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17665           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17666         else
17667           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17668         fi
17669         aix_use_runtimelinking=no
17670
17671         # Test if we are trying to use run time linking or normal
17672         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17673         # need to do runtime linking.
17674         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17675           for ld_flag in $LDFLAGS; do
17676           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17677             aix_use_runtimelinking=yes
17678             break
17679           fi
17680           done
17681           ;;
17682         esac
17683
17684         exp_sym_flag='-bexport'
17685         no_entry_flag='-bnoentry'
17686       fi
17687
17688       # When large executables or shared objects are built, AIX ld can
17689       # have problems creating the table of contents.  If linking a library
17690       # or program results in "error TOC overflow" add -mminimal-toc to
17691       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17692       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17693
17694       archive_cmds_GCJ=''
17695       hardcode_direct_GCJ=yes
17696       hardcode_libdir_separator_GCJ=':'
17697       link_all_deplibs_GCJ=yes
17698
17699       if test "$GCC" = yes; then
17700         case $host_os in aix4.[012]|aix4.[012].*)
17701         # We only want to do this on AIX 4.2 and lower, the check
17702         # below for broken collect2 doesn't work under 4.3+
17703           collect2name=`${CC} -print-prog-name=collect2`
17704           if test -f "$collect2name" && \
17705            strings "$collect2name" | grep resolve_lib_name >/dev/null
17706           then
17707           # We have reworked collect2
17708           :
17709           else
17710           # We have old collect2
17711           hardcode_direct_GCJ=unsupported
17712           # It fails to find uninstalled libraries when the uninstalled
17713           # path is not listed in the libpath.  Setting hardcode_minus_L
17714           # to unsupported forces relinking
17715           hardcode_minus_L_GCJ=yes
17716           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17717           hardcode_libdir_separator_GCJ=
17718           fi
17719           ;;
17720         esac
17721         shared_flag='-shared'
17722         if test "$aix_use_runtimelinking" = yes; then
17723           shared_flag="$shared_flag "'${wl}-G'
17724         fi
17725       else
17726         # not using gcc
17727         if test "$host_cpu" = ia64; then
17728         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17729         # chokes on -Wl,-G. The following line is correct:
17730           shared_flag='-G'
17731         else
17732           if test "$aix_use_runtimelinking" = yes; then
17733             shared_flag='${wl}-G'
17734           else
17735             shared_flag='${wl}-bM:SRE'
17736           fi
17737         fi
17738       fi
17739
17740       # It seems that -bexpall does not export symbols beginning with
17741       # underscore (_), so it is better to generate a list of symbols to export.
17742       always_export_symbols_GCJ=yes
17743       if test "$aix_use_runtimelinking" = yes; then
17744         # Warning - without using the other runtime loading flags (-brtl),
17745         # -berok will link without error, but may produce a broken library.
17746         allow_undefined_flag_GCJ='-berok'
17747        # Determine the default libpath from the value encoded in an empty executable.
17748        cat >conftest.$ac_ext <<_ACEOF
17749 /* confdefs.h.  */
17750 _ACEOF
17751 cat confdefs.h >>conftest.$ac_ext
17752 cat >>conftest.$ac_ext <<_ACEOF
17753 /* end confdefs.h.  */
17754
17755 int
17756 main ()
17757 {
17758
17759   ;
17760   return 0;
17761 }
17762 _ACEOF
17763 rm -f conftest.$ac_objext conftest$ac_exeext
17764 if { (ac_try="$ac_link"
17765 case "(($ac_try" in
17766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767   *) ac_try_echo=$ac_try;;
17768 esac
17769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770   (eval "$ac_link") 2>conftest.er1
17771   ac_status=$?
17772   grep -v '^ *+' conftest.er1 >conftest.err
17773   rm -f conftest.er1
17774   cat conftest.err >&5
17775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776   (exit $ac_status); } && {
17777          test -z "$ac_c_werror_flag" ||
17778          test ! -s conftest.err
17779        } && test -s conftest$ac_exeext &&
17780        $as_test_x conftest$ac_exeext; then
17781
17782 lt_aix_libpath_sed='
17783     /Import File Strings/,/^$/ {
17784         /^0/ {
17785             s/^0  *\(.*\)$/\1/
17786             p
17787         }
17788     }'
17789 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17790 # Check for a 64-bit object if we didn't find anything.
17791 if test -z "$aix_libpath"; then
17792   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17793 fi
17794 else
17795   echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17797
17798
17799 fi
17800
17801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17802       conftest$ac_exeext conftest.$ac_ext
17803 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17804
17805        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17806         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17807        else
17808         if test "$host_cpu" = ia64; then
17809           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17810           allow_undefined_flag_GCJ="-z nodefs"
17811           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17812         else
17813          # Determine the default libpath from the value encoded in an empty executable.
17814          cat >conftest.$ac_ext <<_ACEOF
17815 /* confdefs.h.  */
17816 _ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h.  */
17820
17821 int
17822 main ()
17823 {
17824
17825   ;
17826   return 0;
17827 }
17828 _ACEOF
17829 rm -f conftest.$ac_objext conftest$ac_exeext
17830 if { (ac_try="$ac_link"
17831 case "(($ac_try" in
17832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833   *) ac_try_echo=$ac_try;;
17834 esac
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836   (eval "$ac_link") 2>conftest.er1
17837   ac_status=$?
17838   grep -v '^ *+' conftest.er1 >conftest.err
17839   rm -f conftest.er1
17840   cat conftest.err >&5
17841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842   (exit $ac_status); } && {
17843          test -z "$ac_c_werror_flag" ||
17844          test ! -s conftest.err
17845        } && test -s conftest$ac_exeext &&
17846        $as_test_x conftest$ac_exeext; then
17847
17848 lt_aix_libpath_sed='
17849     /Import File Strings/,/^$/ {
17850         /^0/ {
17851             s/^0  *\(.*\)$/\1/
17852             p
17853         }
17854     }'
17855 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17856 # Check for a 64-bit object if we didn't find anything.
17857 if test -z "$aix_libpath"; then
17858   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17859 fi
17860 else
17861   echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17863
17864
17865 fi
17866
17867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17868       conftest$ac_exeext conftest.$ac_ext
17869 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17870
17871          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17872           # Warning - without using the other run time loading flags,
17873           # -berok will link without error, but may produce a broken library.
17874           no_undefined_flag_GCJ=' ${wl}-bernotok'
17875           allow_undefined_flag_GCJ=' ${wl}-berok'
17876           # Exported symbols can be pulled into shared objects from archives
17877           whole_archive_flag_spec_GCJ='$convenience'
17878           archive_cmds_need_lc_GCJ=yes
17879           # This is similar to how AIX traditionally builds its shared libraries.
17880           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17881         fi
17882       fi
17883       ;;
17884
17885     amigaos*)
17886       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17887       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17888       hardcode_minus_L_GCJ=yes
17889       # see comment about different semantics on the GNU ld section
17890       ld_shlibs_GCJ=no
17891       ;;
17892
17893     bsdi[45]*)
17894       export_dynamic_flag_spec_GCJ=-rdynamic
17895       ;;
17896
17897     cygwin* | mingw* | pw32*)
17898       # When not using gcc, we currently assume that we are using
17899       # Microsoft Visual C++.
17900       # hardcode_libdir_flag_spec is actually meaningless, as there is
17901       # no search path for DLLs.
17902       hardcode_libdir_flag_spec_GCJ=' '
17903       allow_undefined_flag_GCJ=unsupported
17904       # Tell ltmain to make .lib files, not .a files.
17905       libext=lib
17906       # Tell ltmain to make .dll files, not .so files.
17907       shrext_cmds=".dll"
17908       # FIXME: Setting linknames here is a bad hack.
17909       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17910       # The linker will automatically build a .lib file if we build a DLL.
17911       old_archive_From_new_cmds_GCJ='true'
17912       # FIXME: Should let the user specify the lib program.
17913       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17914       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17915       enable_shared_with_static_runtimes_GCJ=yes
17916       ;;
17917
17918     darwin* | rhapsody*)
17919       case $host_os in
17920         rhapsody* | darwin1.[012])
17921          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17922          ;;
17923        *) # Darwin 1.3 on
17924          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17925            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17926          else
17927            case ${MACOSX_DEPLOYMENT_TARGET} in
17928              10.[012])
17929                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17930                ;;
17931              10.*)
17932                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17933                ;;
17934            esac
17935          fi
17936          ;;
17937       esac
17938       archive_cmds_need_lc_GCJ=no
17939       hardcode_direct_GCJ=no
17940       hardcode_automatic_GCJ=yes
17941       hardcode_shlibpath_var_GCJ=unsupported
17942       whole_archive_flag_spec_GCJ=''
17943       link_all_deplibs_GCJ=yes
17944     if test "$GCC" = yes ; then
17945         output_verbose_link_cmd='echo'
17946         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17947         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17948         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17949         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17950     else
17951       case $cc_basename in
17952         xlc*)
17953          output_verbose_link_cmd='echo'
17954          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17955          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17956           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17957          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17958           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17959           ;;
17960        *)
17961          ld_shlibs_GCJ=no
17962           ;;
17963       esac
17964     fi
17965       ;;
17966
17967     dgux*)
17968       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17969       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17970       hardcode_shlibpath_var_GCJ=no
17971       ;;
17972
17973     freebsd1*)
17974       ld_shlibs_GCJ=no
17975       ;;
17976
17977     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17978     # support.  Future versions do this automatically, but an explicit c++rt0.o
17979     # does not break anything, and helps significantly (at the cost of a little
17980     # extra space).
17981     freebsd2.2*)
17982       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17983       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17984       hardcode_direct_GCJ=yes
17985       hardcode_shlibpath_var_GCJ=no
17986       ;;
17987
17988     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17989     freebsd2*)
17990       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17991       hardcode_direct_GCJ=yes
17992       hardcode_minus_L_GCJ=yes
17993       hardcode_shlibpath_var_GCJ=no
17994       ;;
17995
17996     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17997     freebsd* | dragonfly*)
17998       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17999       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18000       hardcode_direct_GCJ=yes
18001       hardcode_shlibpath_var_GCJ=no
18002       ;;
18003
18004     hpux9*)
18005       if test "$GCC" = yes; then
18006         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18007       else
18008         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18009       fi
18010       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18011       hardcode_libdir_separator_GCJ=:
18012       hardcode_direct_GCJ=yes
18013
18014       # hardcode_minus_L: Not really in the search PATH,
18015       # but as the default location of the library.
18016       hardcode_minus_L_GCJ=yes
18017       export_dynamic_flag_spec_GCJ='${wl}-E'
18018       ;;
18019
18020     hpux10*)
18021       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18022         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18023       else
18024         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18025       fi
18026       if test "$with_gnu_ld" = no; then
18027         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18028         hardcode_libdir_separator_GCJ=:
18029
18030         hardcode_direct_GCJ=yes
18031         export_dynamic_flag_spec_GCJ='${wl}-E'
18032
18033         # hardcode_minus_L: Not really in the search PATH,
18034         # but as the default location of the library.
18035         hardcode_minus_L_GCJ=yes
18036       fi
18037       ;;
18038
18039     hpux11*)
18040       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18041         case $host_cpu in
18042         hppa*64*)
18043           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18044           ;;
18045         ia64*)
18046           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18047           ;;
18048         *)
18049           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18050           ;;
18051         esac
18052       else
18053         case $host_cpu in
18054         hppa*64*)
18055           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18056           ;;
18057         ia64*)
18058           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18059           ;;
18060         *)
18061           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18062           ;;
18063         esac
18064       fi
18065       if test "$with_gnu_ld" = no; then
18066         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18067         hardcode_libdir_separator_GCJ=:
18068
18069         case $host_cpu in
18070         hppa*64*|ia64*)
18071           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18072           hardcode_direct_GCJ=no
18073           hardcode_shlibpath_var_GCJ=no
18074           ;;
18075         *)
18076           hardcode_direct_GCJ=yes
18077           export_dynamic_flag_spec_GCJ='${wl}-E'
18078
18079           # hardcode_minus_L: Not really in the search PATH,
18080           # but as the default location of the library.
18081           hardcode_minus_L_GCJ=yes
18082           ;;
18083         esac
18084       fi
18085       ;;
18086
18087     irix5* | irix6* | nonstopux*)
18088       if test "$GCC" = yes; then
18089         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18090       else
18091         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18092         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18093       fi
18094       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18095       hardcode_libdir_separator_GCJ=:
18096       link_all_deplibs_GCJ=yes
18097       ;;
18098
18099     netbsd* | netbsdelf*-gnu)
18100       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18101         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18102       else
18103         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18104       fi
18105       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18106       hardcode_direct_GCJ=yes
18107       hardcode_shlibpath_var_GCJ=no
18108       ;;
18109
18110     newsos6)
18111       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18112       hardcode_direct_GCJ=yes
18113       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18114       hardcode_libdir_separator_GCJ=:
18115       hardcode_shlibpath_var_GCJ=no
18116       ;;
18117
18118     openbsd*)
18119       if test -f /usr/libexec/ld.so; then
18120         hardcode_direct_GCJ=yes
18121         hardcode_shlibpath_var_GCJ=no
18122         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18123           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18124           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18125           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18126           export_dynamic_flag_spec_GCJ='${wl}-E'
18127         else
18128           case $host_os in
18129            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18130              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18131              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18132              ;;
18133            *)
18134              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18135              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18136              ;;
18137           esac
18138         fi
18139       else
18140         ld_shlibs_GCJ=no
18141       fi
18142       ;;
18143
18144     os2*)
18145       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18146       hardcode_minus_L_GCJ=yes
18147       allow_undefined_flag_GCJ=unsupported
18148       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18149       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18150       ;;
18151
18152     osf3*)
18153       if test "$GCC" = yes; then
18154         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18155         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18156       else
18157         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18158         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18159       fi
18160       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18161       hardcode_libdir_separator_GCJ=:
18162       ;;
18163
18164     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18165       if test "$GCC" = yes; then
18166         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18167         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18168         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18169       else
18170         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18171         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18172         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18173         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18174
18175         # Both c and cxx compiler support -rpath directly
18176         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18177       fi
18178       hardcode_libdir_separator_GCJ=:
18179       ;;
18180
18181     solaris*)
18182       no_undefined_flag_GCJ=' -z text'
18183       if test "$GCC" = yes; then
18184         wlarc='${wl}'
18185         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18186         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18187           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18188       else
18189         wlarc=''
18190         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18191         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18192         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18193       fi
18194       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18195       hardcode_shlibpath_var_GCJ=no
18196       case $host_os in
18197       solaris2.[0-5] | solaris2.[0-5].*) ;;
18198       *)
18199         # The compiler driver will combine and reorder linker options,
18200         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18201         # but is careful enough not to reorder.
18202         # Supported since Solaris 2.6 (maybe 2.5.1?)
18203         if test "$GCC" = yes; then
18204           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18205         else
18206           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18207         fi
18208         ;;
18209       esac
18210       link_all_deplibs_GCJ=yes
18211       ;;
18212
18213     sunos4*)
18214       if test "x$host_vendor" = xsequent; then
18215         # Use $CC to link under sequent, because it throws in some extra .o
18216         # files that make .init and .fini sections work.
18217         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18218       else
18219         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18220       fi
18221       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18222       hardcode_direct_GCJ=yes
18223       hardcode_minus_L_GCJ=yes
18224       hardcode_shlibpath_var_GCJ=no
18225       ;;
18226
18227     sysv4)
18228       case $host_vendor in
18229         sni)
18230           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18231           hardcode_direct_GCJ=yes # is this really true???
18232         ;;
18233         siemens)
18234           ## LD is ld it makes a PLAMLIB
18235           ## CC just makes a GrossModule.
18236           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18237           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18238           hardcode_direct_GCJ=no
18239         ;;
18240         motorola)
18241           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18242           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18243         ;;
18244       esac
18245       runpath_var='LD_RUN_PATH'
18246       hardcode_shlibpath_var_GCJ=no
18247       ;;
18248
18249     sysv4.3*)
18250       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18251       hardcode_shlibpath_var_GCJ=no
18252       export_dynamic_flag_spec_GCJ='-Bexport'
18253       ;;
18254
18255     sysv4*MP*)
18256       if test -d /usr/nec; then
18257         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18258         hardcode_shlibpath_var_GCJ=no
18259         runpath_var=LD_RUN_PATH
18260         hardcode_runpath_var=yes
18261         ld_shlibs_GCJ=yes
18262       fi
18263       ;;
18264
18265     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18266       no_undefined_flag_GCJ='${wl}-z,text'
18267       archive_cmds_need_lc_GCJ=no
18268       hardcode_shlibpath_var_GCJ=no
18269       runpath_var='LD_RUN_PATH'
18270
18271       if test "$GCC" = yes; then
18272         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18273         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18274       else
18275         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18276         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18277       fi
18278       ;;
18279
18280     sysv5* | sco3.2v5* | sco5v6*)
18281       # Note: We can NOT use -z defs as we might desire, because we do not
18282       # link with -lc, and that would cause any symbols used from libc to
18283       # always be unresolved, which means just about no library would
18284       # ever link correctly.  If we're not using GNU ld we use -z text
18285       # though, which does catch some bad symbols but isn't as heavy-handed
18286       # as -z defs.
18287       no_undefined_flag_GCJ='${wl}-z,text'
18288       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18289       archive_cmds_need_lc_GCJ=no
18290       hardcode_shlibpath_var_GCJ=no
18291       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18292       hardcode_libdir_separator_GCJ=':'
18293       link_all_deplibs_GCJ=yes
18294       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18295       runpath_var='LD_RUN_PATH'
18296
18297       if test "$GCC" = yes; then
18298         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18299         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18300       else
18301         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18302         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18303       fi
18304       ;;
18305
18306     uts4*)
18307       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18308       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18309       hardcode_shlibpath_var_GCJ=no
18310       ;;
18311
18312     *)
18313       ld_shlibs_GCJ=no
18314       ;;
18315     esac
18316   fi
18317
18318 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18319 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18320 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18321
18322 #
18323 # Do we need to explicitly link libc?
18324 #
18325 case "x$archive_cmds_need_lc_GCJ" in
18326 x|xyes)
18327   # Assume -lc should be added
18328   archive_cmds_need_lc_GCJ=yes
18329
18330   if test "$enable_shared" = yes && test "$GCC" = yes; then
18331     case $archive_cmds_GCJ in
18332     *'~'*)
18333       # FIXME: we may have to deal with multi-command sequences.
18334       ;;
18335     '$CC '*)
18336       # Test whether the compiler implicitly links with -lc since on some
18337       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18338       # to ld, don't add -lc before -lgcc.
18339       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18340 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18341       $rm conftest*
18342       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18343
18344       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18345   (eval $ac_compile) 2>&5
18346   ac_status=$?
18347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348   (exit $ac_status); } 2>conftest.err; then
18349         soname=conftest
18350         lib=conftest
18351         libobjs=conftest.$ac_objext
18352         deplibs=
18353         wl=$lt_prog_compiler_wl_GCJ
18354         pic_flag=$lt_prog_compiler_pic_GCJ
18355         compiler_flags=-v
18356         linker_flags=-v
18357         verstring=
18358         output_objdir=.
18359         libname=conftest
18360         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18361         allow_undefined_flag_GCJ=
18362         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18363   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18364   ac_status=$?
18365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366   (exit $ac_status); }
18367         then
18368           archive_cmds_need_lc_GCJ=no
18369         else
18370           archive_cmds_need_lc_GCJ=yes
18371         fi
18372         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18373       else
18374         cat conftest.err 1>&5
18375       fi
18376       $rm conftest*
18377       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18378 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18379       ;;
18380     esac
18381   fi
18382   ;;
18383 esac
18384
18385 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18386 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18387 library_names_spec=
18388 libname_spec='lib$name'
18389 soname_spec=
18390 shrext_cmds=".so"
18391 postinstall_cmds=
18392 postuninstall_cmds=
18393 finish_cmds=
18394 finish_eval=
18395 shlibpath_var=
18396 shlibpath_overrides_runpath=unknown
18397 version_type=none
18398 dynamic_linker="$host_os ld.so"
18399 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18400
18401 need_lib_prefix=unknown
18402 hardcode_into_libs=no
18403
18404 # when you set need_version to no, make sure it does not cause -set_version
18405 # flags to be left without arguments
18406 need_version=unknown
18407
18408 case $host_os in
18409 aix3*)
18410   version_type=linux
18411   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18412   shlibpath_var=LIBPATH
18413
18414   # AIX 3 has no versioning support, so we append a major version to the name.
18415   soname_spec='${libname}${release}${shared_ext}$major'
18416   ;;
18417
18418 aix[4-9]*)
18419   version_type=linux
18420   need_lib_prefix=no
18421   need_version=no
18422   hardcode_into_libs=yes
18423   if test "$host_cpu" = ia64; then
18424     # AIX 5 supports IA64
18425     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18426     shlibpath_var=LD_LIBRARY_PATH
18427   else
18428     # With GCC up to 2.95.x, collect2 would create an import file
18429     # for dependence libraries.  The import file would start with
18430     # the line `#! .'.  This would cause the generated library to
18431     # depend on `.', always an invalid library.  This was fixed in
18432     # development snapshots of GCC prior to 3.0.
18433     case $host_os in
18434       aix4 | aix4.[01] | aix4.[01].*)
18435       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18436            echo ' yes '
18437            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18438         :
18439       else
18440         can_build_shared=no
18441       fi
18442       ;;
18443     esac
18444     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18445     # soname into executable. Probably we can add versioning support to
18446     # collect2, so additional links can be useful in future.
18447     if test "$aix_use_runtimelinking" = yes; then
18448       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18449       # instead of lib<name>.a to let people know that these are not
18450       # typical AIX shared libraries.
18451       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18452     else
18453       # We preserve .a as extension for shared libraries through AIX4.2
18454       # and later when we are not doing run time linking.
18455       library_names_spec='${libname}${release}.a $libname.a'
18456       soname_spec='${libname}${release}${shared_ext}$major'
18457     fi
18458     shlibpath_var=LIBPATH
18459   fi
18460   ;;
18461
18462 amigaos*)
18463   library_names_spec='$libname.ixlibrary $libname.a'
18464   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18465   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18466   ;;
18467
18468 beos*)
18469   library_names_spec='${libname}${shared_ext}'
18470   dynamic_linker="$host_os ld.so"
18471   shlibpath_var=LIBRARY_PATH
18472   ;;
18473
18474 bsdi[45]*)
18475   version_type=linux
18476   need_version=no
18477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18478   soname_spec='${libname}${release}${shared_ext}$major'
18479   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18480   shlibpath_var=LD_LIBRARY_PATH
18481   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18482   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18483   # the default ld.so.conf also contains /usr/contrib/lib and
18484   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18485   # libtool to hard-code these into programs
18486   ;;
18487
18488 cygwin* | mingw* | pw32*)
18489   version_type=windows
18490   shrext_cmds=".dll"
18491   need_version=no
18492   need_lib_prefix=no
18493
18494   case $GCC,$host_os in
18495   yes,cygwin* | yes,mingw* | yes,pw32*)
18496     library_names_spec='$libname.dll.a'
18497     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18498     postinstall_cmds='base_file=`basename \${file}`~
18499       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18500       dldir=$destdir/`dirname \$dlpath`~
18501       test -d \$dldir || mkdir -p \$dldir~
18502       $install_prog $dir/$dlname \$dldir/$dlname~
18503       chmod a+x \$dldir/$dlname'
18504     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18505       dlpath=$dir/\$dldll~
18506        $rm \$dlpath'
18507     shlibpath_overrides_runpath=yes
18508
18509     case $host_os in
18510     cygwin*)
18511       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18512       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18513       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18514       ;;
18515     mingw*)
18516       # MinGW DLLs use traditional 'lib' prefix
18517       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18518       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18519       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18520         # It is most probably a Windows format PATH printed by
18521         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18522         # path with ; separators, and with drive letters. We can handle the
18523         # drive letters (cygwin fileutils understands them), so leave them,
18524         # especially as we might pass files found there to a mingw objdump,
18525         # which wouldn't understand a cygwinified path. Ahh.
18526         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18527       else
18528         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18529       fi
18530       ;;
18531     pw32*)
18532       # pw32 DLLs use 'pw' prefix rather than 'lib'
18533       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18534       ;;
18535     esac
18536     ;;
18537
18538   *)
18539     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18540     ;;
18541   esac
18542   dynamic_linker='Win32 ld.exe'
18543   # FIXME: first we should search . and the directory the executable is in
18544   shlibpath_var=PATH
18545   ;;
18546
18547 darwin* | rhapsody*)
18548   dynamic_linker="$host_os dyld"
18549   version_type=darwin
18550   need_lib_prefix=no
18551   need_version=no
18552   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18553   soname_spec='${libname}${release}${major}$shared_ext'
18554   shlibpath_overrides_runpath=yes
18555   shlibpath_var=DYLD_LIBRARY_PATH
18556   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18557
18558   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18559   ;;
18560
18561 dgux*)
18562   version_type=linux
18563   need_lib_prefix=no
18564   need_version=no
18565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18566   soname_spec='${libname}${release}${shared_ext}$major'
18567   shlibpath_var=LD_LIBRARY_PATH
18568   ;;
18569
18570 freebsd1*)
18571   dynamic_linker=no
18572   ;;
18573
18574 freebsd* | dragonfly*)
18575   # DragonFly does not have aout.  When/if they implement a new
18576   # versioning mechanism, adjust this.
18577   if test -x /usr/bin/objformat; then
18578     objformat=`/usr/bin/objformat`
18579   else
18580     case $host_os in
18581     freebsd[123]*) objformat=aout ;;
18582     *) objformat=elf ;;
18583     esac
18584   fi
18585   version_type=freebsd-$objformat
18586   case $version_type in
18587     freebsd-elf*)
18588       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18589       need_version=no
18590       need_lib_prefix=no
18591       ;;
18592     freebsd-*)
18593       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18594       need_version=yes
18595       ;;
18596   esac
18597   shlibpath_var=LD_LIBRARY_PATH
18598   case $host_os in
18599   freebsd2*)
18600     shlibpath_overrides_runpath=yes
18601     ;;
18602   freebsd3.[01]* | freebsdelf3.[01]*)
18603     shlibpath_overrides_runpath=yes
18604     hardcode_into_libs=yes
18605     ;;
18606   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18607   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18608     shlibpath_overrides_runpath=no
18609     hardcode_into_libs=yes
18610     ;;
18611   *) # from 4.6 on, and DragonFly
18612     shlibpath_overrides_runpath=yes
18613     hardcode_into_libs=yes
18614     ;;
18615   esac
18616   ;;
18617
18618 gnu*)
18619   version_type=linux
18620   need_lib_prefix=no
18621   need_version=no
18622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18623   soname_spec='${libname}${release}${shared_ext}$major'
18624   shlibpath_var=LD_LIBRARY_PATH
18625   hardcode_into_libs=yes
18626   ;;
18627
18628 hpux9* | hpux10* | hpux11*)
18629   # Give a soname corresponding to the major version so that dld.sl refuses to
18630   # link against other versions.
18631   version_type=sunos
18632   need_lib_prefix=no
18633   need_version=no
18634   case $host_cpu in
18635   ia64*)
18636     shrext_cmds='.so'
18637     hardcode_into_libs=yes
18638     dynamic_linker="$host_os dld.so"
18639     shlibpath_var=LD_LIBRARY_PATH
18640     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18641     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18642     soname_spec='${libname}${release}${shared_ext}$major'
18643     if test "X$HPUX_IA64_MODE" = X32; then
18644       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18645     else
18646       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18647     fi
18648     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18649     ;;
18650    hppa*64*)
18651      shrext_cmds='.sl'
18652      hardcode_into_libs=yes
18653      dynamic_linker="$host_os dld.sl"
18654      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18655      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18656      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18657      soname_spec='${libname}${release}${shared_ext}$major'
18658      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18659      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18660      ;;
18661    *)
18662     shrext_cmds='.sl'
18663     dynamic_linker="$host_os dld.sl"
18664     shlibpath_var=SHLIB_PATH
18665     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18666     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18667     soname_spec='${libname}${release}${shared_ext}$major'
18668     ;;
18669   esac
18670   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18671   postinstall_cmds='chmod 555 $lib'
18672   ;;
18673
18674 interix[3-9]*)
18675   version_type=linux
18676   need_lib_prefix=no
18677   need_version=no
18678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18679   soname_spec='${libname}${release}${shared_ext}$major'
18680   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18681   shlibpath_var=LD_LIBRARY_PATH
18682   shlibpath_overrides_runpath=no
18683   hardcode_into_libs=yes
18684   ;;
18685
18686 irix5* | irix6* | nonstopux*)
18687   case $host_os in
18688     nonstopux*) version_type=nonstopux ;;
18689     *)
18690         if test "$lt_cv_prog_gnu_ld" = yes; then
18691                 version_type=linux
18692         else
18693                 version_type=irix
18694         fi ;;
18695   esac
18696   need_lib_prefix=no
18697   need_version=no
18698   soname_spec='${libname}${release}${shared_ext}$major'
18699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18700   case $host_os in
18701   irix5* | nonstopux*)
18702     libsuff= shlibsuff=
18703     ;;
18704   *)
18705     case $LD in # libtool.m4 will add one of these switches to LD
18706     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18707       libsuff= shlibsuff= libmagic=32-bit;;
18708     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18709       libsuff=32 shlibsuff=N32 libmagic=N32;;
18710     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18711       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18712     *) libsuff= shlibsuff= libmagic=never-match;;
18713     esac
18714     ;;
18715   esac
18716   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18717   shlibpath_overrides_runpath=no
18718   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18719   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18720   hardcode_into_libs=yes
18721   ;;
18722
18723 # No shared lib support for Linux oldld, aout, or coff.
18724 linux*oldld* | linux*aout* | linux*coff*)
18725   dynamic_linker=no
18726   ;;
18727
18728 # This must be Linux ELF.
18729 linux* | k*bsd*-gnu)
18730   version_type=linux
18731   need_lib_prefix=no
18732   need_version=no
18733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18734   soname_spec='${libname}${release}${shared_ext}$major'
18735   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18736   shlibpath_var=LD_LIBRARY_PATH
18737   shlibpath_overrides_runpath=no
18738   # This implies no fast_install, which is unacceptable.
18739   # Some rework will be needed to allow for fast_install
18740   # before this can be enabled.
18741   hardcode_into_libs=yes
18742
18743   # Append ld.so.conf contents to the search path
18744   if test -f /etc/ld.so.conf; then
18745     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18746     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18747   fi
18748
18749   # We used to test for /lib/ld.so.1 and disable shared libraries on
18750   # powerpc, because MkLinux only supported shared libraries with the
18751   # GNU dynamic linker.  Since this was broken with cross compilers,
18752   # most powerpc-linux boxes support dynamic linking these days and
18753   # people can always --disable-shared, the test was removed, and we
18754   # assume the GNU/Linux dynamic linker is in use.
18755   dynamic_linker='GNU/Linux ld.so'
18756   ;;
18757
18758 netbsdelf*-gnu)
18759   version_type=linux
18760   need_lib_prefix=no
18761   need_version=no
18762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18763   soname_spec='${libname}${release}${shared_ext}$major'
18764   shlibpath_var=LD_LIBRARY_PATH
18765   shlibpath_overrides_runpath=no
18766   hardcode_into_libs=yes
18767   dynamic_linker='NetBSD ld.elf_so'
18768   ;;
18769
18770 netbsd*)
18771   version_type=sunos
18772   need_lib_prefix=no
18773   need_version=no
18774   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18775     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18776     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18777     dynamic_linker='NetBSD (a.out) ld.so'
18778   else
18779     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18780     soname_spec='${libname}${release}${shared_ext}$major'
18781     dynamic_linker='NetBSD ld.elf_so'
18782   fi
18783   shlibpath_var=LD_LIBRARY_PATH
18784   shlibpath_overrides_runpath=yes
18785   hardcode_into_libs=yes
18786   ;;
18787
18788 newsos6)
18789   version_type=linux
18790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18791   shlibpath_var=LD_LIBRARY_PATH
18792   shlibpath_overrides_runpath=yes
18793   ;;
18794
18795 nto-qnx*)
18796   version_type=linux
18797   need_lib_prefix=no
18798   need_version=no
18799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18800   soname_spec='${libname}${release}${shared_ext}$major'
18801   shlibpath_var=LD_LIBRARY_PATH
18802   shlibpath_overrides_runpath=yes
18803   ;;
18804
18805 openbsd*)
18806   version_type=sunos
18807   sys_lib_dlsearch_path_spec="/usr/lib"
18808   need_lib_prefix=no
18809   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18810   case $host_os in
18811     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18812     *)                         need_version=no  ;;
18813   esac
18814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18815   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18816   shlibpath_var=LD_LIBRARY_PATH
18817   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18818     case $host_os in
18819       openbsd2.[89] | openbsd2.[89].*)
18820         shlibpath_overrides_runpath=no
18821         ;;
18822       *)
18823         shlibpath_overrides_runpath=yes
18824         ;;
18825       esac
18826   else
18827     shlibpath_overrides_runpath=yes
18828   fi
18829   ;;
18830
18831 os2*)
18832   libname_spec='$name'
18833   shrext_cmds=".dll"
18834   need_lib_prefix=no
18835   library_names_spec='$libname${shared_ext} $libname.a'
18836   dynamic_linker='OS/2 ld.exe'
18837   shlibpath_var=LIBPATH
18838   ;;
18839
18840 osf3* | osf4* | osf5*)
18841   version_type=osf
18842   need_lib_prefix=no
18843   need_version=no
18844   soname_spec='${libname}${release}${shared_ext}$major'
18845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18846   shlibpath_var=LD_LIBRARY_PATH
18847   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18848   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18849   ;;
18850
18851 rdos*)
18852   dynamic_linker=no
18853   ;;
18854
18855 solaris*)
18856   version_type=linux
18857   need_lib_prefix=no
18858   need_version=no
18859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18860   soname_spec='${libname}${release}${shared_ext}$major'
18861   shlibpath_var=LD_LIBRARY_PATH
18862   shlibpath_overrides_runpath=yes
18863   hardcode_into_libs=yes
18864   # ldd complains unless libraries are executable
18865   postinstall_cmds='chmod +x $lib'
18866   ;;
18867
18868 sunos4*)
18869   version_type=sunos
18870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18871   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18872   shlibpath_var=LD_LIBRARY_PATH
18873   shlibpath_overrides_runpath=yes
18874   if test "$with_gnu_ld" = yes; then
18875     need_lib_prefix=no
18876   fi
18877   need_version=yes
18878   ;;
18879
18880 sysv4 | sysv4.3*)
18881   version_type=linux
18882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18883   soname_spec='${libname}${release}${shared_ext}$major'
18884   shlibpath_var=LD_LIBRARY_PATH
18885   case $host_vendor in
18886     sni)
18887       shlibpath_overrides_runpath=no
18888       need_lib_prefix=no
18889       export_dynamic_flag_spec='${wl}-Blargedynsym'
18890       runpath_var=LD_RUN_PATH
18891       ;;
18892     siemens)
18893       need_lib_prefix=no
18894       ;;
18895     motorola)
18896       need_lib_prefix=no
18897       need_version=no
18898       shlibpath_overrides_runpath=no
18899       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18900       ;;
18901   esac
18902   ;;
18903
18904 sysv4*MP*)
18905   if test -d /usr/nec ;then
18906     version_type=linux
18907     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18908     soname_spec='$libname${shared_ext}.$major'
18909     shlibpath_var=LD_LIBRARY_PATH
18910   fi
18911   ;;
18912
18913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18914   version_type=freebsd-elf
18915   need_lib_prefix=no
18916   need_version=no
18917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18918   soname_spec='${libname}${release}${shared_ext}$major'
18919   shlibpath_var=LD_LIBRARY_PATH
18920   hardcode_into_libs=yes
18921   if test "$with_gnu_ld" = yes; then
18922     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18923     shlibpath_overrides_runpath=no
18924   else
18925     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18926     shlibpath_overrides_runpath=yes
18927     case $host_os in
18928       sco3.2v5*)
18929         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18930         ;;
18931     esac
18932   fi
18933   sys_lib_dlsearch_path_spec='/usr/lib'
18934   ;;
18935
18936 uts4*)
18937   version_type=linux
18938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18939   soname_spec='${libname}${release}${shared_ext}$major'
18940   shlibpath_var=LD_LIBRARY_PATH
18941   ;;
18942
18943 *)
18944   dynamic_linker=no
18945   ;;
18946 esac
18947 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18948 echo "${ECHO_T}$dynamic_linker" >&6; }
18949 test "$dynamic_linker" = no && can_build_shared=no
18950
18951 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18952   echo $ECHO_N "(cached) $ECHO_C" >&6
18953 else
18954   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18955 fi
18956
18957 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18958 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18959   echo $ECHO_N "(cached) $ECHO_C" >&6
18960 else
18961   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18962 fi
18963
18964 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18965
18966 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18967 if test "$GCC" = yes; then
18968   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18969 fi
18970
18971 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18972 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18973 hardcode_action_GCJ=
18974 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18975    test -n "$runpath_var_GCJ" || \
18976    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18977
18978   # We can hardcode non-existant directories.
18979   if test "$hardcode_direct_GCJ" != no &&
18980      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18981      # have to relink, otherwise we might link with an installed library
18982      # when we should be linking with a yet-to-be-installed one
18983      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18984      test "$hardcode_minus_L_GCJ" != no; then
18985     # Linking always hardcodes the temporary library directory.
18986     hardcode_action_GCJ=relink
18987   else
18988     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18989     hardcode_action_GCJ=immediate
18990   fi
18991 else
18992   # We cannot hardcode anything, or else we can only hardcode existing
18993   # directories.
18994   hardcode_action_GCJ=unsupported
18995 fi
18996 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18997 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18998
18999 if test "$hardcode_action_GCJ" = relink; then
19000   # Fast installation is not supported
19001   enable_fast_install=no
19002 elif test "$shlibpath_overrides_runpath" = yes ||
19003      test "$enable_shared" = no; then
19004   # Fast installation is not necessary
19005   enable_fast_install=needless
19006 fi
19007
19008
19009 # The else clause should only fire when bootstrapping the
19010 # libtool distribution, otherwise you forgot to ship ltmain.sh
19011 # with your package, and you will get complaints that there are
19012 # no rules to generate ltmain.sh.
19013 if test -f "$ltmain"; then
19014   # See if we are running on zsh, and set the options which allow our commands through
19015   # without removal of \ escapes.
19016   if test -n "${ZSH_VERSION+set}" ; then
19017     setopt NO_GLOB_SUBST
19018   fi
19019   # Now quote all the things that may contain metacharacters while being
19020   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19021   # variables and quote the copies for generation of the libtool script.
19022   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19023     SED SHELL STRIP \
19024     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19025     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19026     deplibs_check_method reload_flag reload_cmds need_locks \
19027     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19028     lt_cv_sys_global_symbol_to_c_name_address \
19029     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19030     old_postinstall_cmds old_postuninstall_cmds \
19031     compiler_GCJ \
19032     CC_GCJ \
19033     LD_GCJ \
19034     lt_prog_compiler_wl_GCJ \
19035     lt_prog_compiler_pic_GCJ \
19036     lt_prog_compiler_static_GCJ \
19037     lt_prog_compiler_no_builtin_flag_GCJ \
19038     export_dynamic_flag_spec_GCJ \
19039     thread_safe_flag_spec_GCJ \
19040     whole_archive_flag_spec_GCJ \
19041     enable_shared_with_static_runtimes_GCJ \
19042     old_archive_cmds_GCJ \
19043     old_archive_from_new_cmds_GCJ \
19044     predep_objects_GCJ \
19045     postdep_objects_GCJ \
19046     predeps_GCJ \
19047     postdeps_GCJ \
19048     compiler_lib_search_path_GCJ \
19049     compiler_lib_search_dirs_GCJ \
19050     archive_cmds_GCJ \
19051     archive_expsym_cmds_GCJ \
19052     postinstall_cmds_GCJ \
19053     postuninstall_cmds_GCJ \
19054     old_archive_from_expsyms_cmds_GCJ \
19055     allow_undefined_flag_GCJ \
19056     no_undefined_flag_GCJ \
19057     export_symbols_cmds_GCJ \
19058     hardcode_libdir_flag_spec_GCJ \
19059     hardcode_libdir_flag_spec_ld_GCJ \
19060     hardcode_libdir_separator_GCJ \
19061     hardcode_automatic_GCJ \
19062     module_cmds_GCJ \
19063     module_expsym_cmds_GCJ \
19064     lt_cv_prog_compiler_c_o_GCJ \
19065     fix_srcfile_path_GCJ \
19066     exclude_expsyms_GCJ \
19067     include_expsyms_GCJ; do
19068
19069     case $var in
19070     old_archive_cmds_GCJ | \
19071     old_archive_from_new_cmds_GCJ | \
19072     archive_cmds_GCJ | \
19073     archive_expsym_cmds_GCJ | \
19074     module_cmds_GCJ | \
19075     module_expsym_cmds_GCJ | \
19076     old_archive_from_expsyms_cmds_GCJ | \
19077     export_symbols_cmds_GCJ | \
19078     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19079     postinstall_cmds | postuninstall_cmds | \
19080     old_postinstall_cmds | old_postuninstall_cmds | \
19081     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19082       # Double-quote double-evaled strings.
19083       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19084       ;;
19085     *)
19086       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19087       ;;
19088     esac
19089   done
19090
19091   case $lt_echo in
19092   *'\$0 --fallback-echo"')
19093     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19094     ;;
19095   esac
19096
19097 cfgfile="$ofile"
19098
19099   cat <<__EOF__ >> "$cfgfile"
19100 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19101
19102 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19103
19104 # Shell to use when invoking shell scripts.
19105 SHELL=$lt_SHELL
19106
19107 # Whether or not to build shared libraries.
19108 build_libtool_libs=$enable_shared
19109
19110 # Whether or not to build static libraries.
19111 build_old_libs=$enable_static
19112
19113 # Whether or not to add -lc for building shared libraries.
19114 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19115
19116 # Whether or not to disallow shared libs when runtime libs are static
19117 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19118
19119 # Whether or not to optimize for fast installation.
19120 fast_install=$enable_fast_install
19121
19122 # The host system.
19123 host_alias=$host_alias
19124 host=$host
19125 host_os=$host_os
19126
19127 # The build system.
19128 build_alias=$build_alias
19129 build=$build
19130 build_os=$build_os
19131
19132 # An echo program that does not interpret backslashes.
19133 echo=$lt_echo
19134
19135 # The archiver.
19136 AR=$lt_AR
19137 AR_FLAGS=$lt_AR_FLAGS
19138
19139 # A C compiler.
19140 LTCC=$lt_LTCC
19141
19142 # LTCC compiler flags.
19143 LTCFLAGS=$lt_LTCFLAGS
19144
19145 # A language-specific compiler.
19146 CC=$lt_compiler_GCJ
19147
19148 # Is the compiler the GNU C compiler?
19149 with_gcc=$GCC_GCJ
19150
19151 # An ERE matcher.
19152 EGREP=$lt_EGREP
19153
19154 # The linker used to build libraries.
19155 LD=$lt_LD_GCJ
19156
19157 # Whether we need hard or soft links.
19158 LN_S=$lt_LN_S
19159
19160 # A BSD-compatible nm program.
19161 NM=$lt_NM
19162
19163 # A symbol stripping program
19164 STRIP=$lt_STRIP
19165
19166 # Used to examine libraries when file_magic_cmd begins "file"
19167 MAGIC_CMD=$MAGIC_CMD
19168
19169 # Used on cygwin: DLL creation program.
19170 DLLTOOL="$DLLTOOL"
19171
19172 # Used on cygwin: object dumper.
19173 OBJDUMP="$OBJDUMP"
19174
19175 # Used on cygwin: assembler.
19176 AS="$AS"
19177
19178 # The name of the directory that contains temporary libtool files.
19179 objdir=$objdir
19180
19181 # How to create reloadable object files.
19182 reload_flag=$lt_reload_flag
19183 reload_cmds=$lt_reload_cmds
19184
19185 # How to pass a linker flag through the compiler.
19186 wl=$lt_lt_prog_compiler_wl_GCJ
19187
19188 # Object file suffix (normally "o").
19189 objext="$ac_objext"
19190
19191 # Old archive suffix (normally "a").
19192 libext="$libext"
19193
19194 # Shared library suffix (normally ".so").
19195 shrext_cmds='$shrext_cmds'
19196
19197 # Executable file suffix (normally "").
19198 exeext="$exeext"
19199
19200 # Additional compiler flags for building library objects.
19201 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19202 pic_mode=$pic_mode
19203
19204 # What is the maximum length of a command?
19205 max_cmd_len=$lt_cv_sys_max_cmd_len
19206
19207 # Does compiler simultaneously support -c and -o options?
19208 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19209
19210 # Must we lock files when doing compilation?
19211 need_locks=$lt_need_locks
19212
19213 # Do we need the lib prefix for modules?
19214 need_lib_prefix=$need_lib_prefix
19215
19216 # Do we need a version for libraries?
19217 need_version=$need_version
19218
19219 # Whether dlopen is supported.
19220 dlopen_support=$enable_dlopen
19221
19222 # Whether dlopen of programs is supported.
19223 dlopen_self=$enable_dlopen_self
19224
19225 # Whether dlopen of statically linked programs is supported.
19226 dlopen_self_static=$enable_dlopen_self_static
19227
19228 # Compiler flag to prevent dynamic linking.
19229 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19230
19231 # Compiler flag to turn off builtin functions.
19232 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19233
19234 # Compiler flag to allow reflexive dlopens.
19235 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19236
19237 # Compiler flag to generate shared objects directly from archives.
19238 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19239
19240 # Compiler flag to generate thread-safe objects.
19241 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19242
19243 # Library versioning type.
19244 version_type=$version_type
19245
19246 # Format of library name prefix.
19247 libname_spec=$lt_libname_spec
19248
19249 # List of archive names.  First name is the real one, the rest are links.
19250 # The last name is the one that the linker finds with -lNAME.
19251 library_names_spec=$lt_library_names_spec
19252
19253 # The coded name of the library, if different from the real name.
19254 soname_spec=$lt_soname_spec
19255
19256 # Commands used to build and install an old-style archive.
19257 RANLIB=$lt_RANLIB
19258 old_archive_cmds=$lt_old_archive_cmds_GCJ
19259 old_postinstall_cmds=$lt_old_postinstall_cmds
19260 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19261
19262 # Create an old-style archive from a shared archive.
19263 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19264
19265 # Create a temporary old-style archive to link instead of a shared archive.
19266 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19267
19268 # Commands used to build and install a shared archive.
19269 archive_cmds=$lt_archive_cmds_GCJ
19270 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19271 postinstall_cmds=$lt_postinstall_cmds
19272 postuninstall_cmds=$lt_postuninstall_cmds
19273
19274 # Commands used to build a loadable module (assumed same as above if empty)
19275 module_cmds=$lt_module_cmds_GCJ
19276 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19277
19278 # Commands to strip libraries.
19279 old_striplib=$lt_old_striplib
19280 striplib=$lt_striplib
19281
19282 # Dependencies to place before the objects being linked to create a
19283 # shared library.
19284 predep_objects=$lt_predep_objects_GCJ
19285
19286 # Dependencies to place after the objects being linked to create a
19287 # shared library.
19288 postdep_objects=$lt_postdep_objects_GCJ
19289
19290 # Dependencies to place before the objects being linked to create a
19291 # shared library.
19292 predeps=$lt_predeps_GCJ
19293
19294 # Dependencies to place after the objects being linked to create a
19295 # shared library.
19296 postdeps=$lt_postdeps_GCJ
19297
19298 # The directories searched by this compiler when creating a shared
19299 # library
19300 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19301
19302 # The library search path used internally by the compiler when linking
19303 # a shared library.
19304 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19305
19306 # Method to check whether dependent libraries are shared objects.
19307 deplibs_check_method=$lt_deplibs_check_method
19308
19309 # Command to use when deplibs_check_method == file_magic.
19310 file_magic_cmd=$lt_file_magic_cmd
19311
19312 # Flag that allows shared libraries with undefined symbols to be built.
19313 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19314
19315 # Flag that forces no undefined symbols.
19316 no_undefined_flag=$lt_no_undefined_flag_GCJ
19317
19318 # Commands used to finish a libtool library installation in a directory.
19319 finish_cmds=$lt_finish_cmds
19320
19321 # Same as above, but a single script fragment to be evaled but not shown.
19322 finish_eval=$lt_finish_eval
19323
19324 # Take the output of nm and produce a listing of raw symbols and C names.
19325 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19326
19327 # Transform the output of nm in a proper C declaration
19328 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19329
19330 # Transform the output of nm in a C name address pair
19331 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19332
19333 # This is the shared library runtime path variable.
19334 runpath_var=$runpath_var
19335
19336 # This is the shared library path variable.
19337 shlibpath_var=$shlibpath_var
19338
19339 # Is shlibpath searched before the hard-coded library search path?
19340 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19341
19342 # How to hardcode a shared library path into an executable.
19343 hardcode_action=$hardcode_action_GCJ
19344
19345 # Whether we should hardcode library paths into libraries.
19346 hardcode_into_libs=$hardcode_into_libs
19347
19348 # Flag to hardcode \$libdir into a binary during linking.
19349 # This must work even if \$libdir does not exist.
19350 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19351
19352 # If ld is used when linking, flag to hardcode \$libdir into
19353 # a binary during linking. This must work even if \$libdir does
19354 # not exist.
19355 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19356
19357 # Whether we need a single -rpath flag with a separated argument.
19358 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19359
19360 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19361 # resulting binary.
19362 hardcode_direct=$hardcode_direct_GCJ
19363
19364 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19365 # resulting binary.
19366 hardcode_minus_L=$hardcode_minus_L_GCJ
19367
19368 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19369 # the resulting binary.
19370 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19371
19372 # Set to yes if building a shared library automatically hardcodes DIR into the library
19373 # and all subsequent libraries and executables linked against it.
19374 hardcode_automatic=$hardcode_automatic_GCJ
19375
19376 # Variables whose values should be saved in libtool wrapper scripts and
19377 # restored at relink time.
19378 variables_saved_for_relink="$variables_saved_for_relink"
19379
19380 # Whether libtool must link a program against all its dependency libraries.
19381 link_all_deplibs=$link_all_deplibs_GCJ
19382
19383 # Compile-time system search path for libraries
19384 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19385
19386 # Run-time system search path for libraries
19387 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19388
19389 # Fix the shell variable \$srcfile for the compiler.
19390 fix_srcfile_path=$lt_fix_srcfile_path
19391
19392 # Set to yes if exported symbols are required.
19393 always_export_symbols=$always_export_symbols_GCJ
19394
19395 # The commands to list exported symbols.
19396 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19397
19398 # The commands to extract the exported symbol list from a shared archive.
19399 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19400
19401 # Symbols that should not be listed in the preloaded symbols.
19402 exclude_expsyms=$lt_exclude_expsyms_GCJ
19403
19404 # Symbols that must always be exported.
19405 include_expsyms=$lt_include_expsyms_GCJ
19406
19407 # ### END LIBTOOL TAG CONFIG: $tagname
19408
19409 __EOF__
19410
19411
19412 else
19413   # If there is no Makefile yet, we rely on a make rule to execute
19414   # `config.status --recheck' to rerun these tests and create the
19415   # libtool script then.
19416   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19417   if test -f "$ltmain_in"; then
19418     test -f Makefile && make "$ltmain"
19419   fi
19420 fi
19421
19422
19423 ac_ext=c
19424 ac_cpp='$CPP $CPPFLAGS'
19425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19428
19429 CC="$lt_save_CC"
19430
19431         else
19432           tagname=""
19433         fi
19434         ;;
19435
19436       RC)
19437
19438
19439 # Source file extension for RC test sources.
19440 ac_ext=rc
19441
19442 # Object file extension for compiled RC test sources.
19443 objext=o
19444 objext_RC=$objext
19445
19446 # Code to be used in simple compile tests
19447 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19448
19449 # Code to be used in simple link tests
19450 lt_simple_link_test_code="$lt_simple_compile_test_code"
19451
19452 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19453
19454 # If no C compiler was specified, use CC.
19455 LTCC=${LTCC-"$CC"}
19456
19457 # If no C compiler flags were specified, use CFLAGS.
19458 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19459
19460 # Allow CC to be a program name with arguments.
19461 compiler=$CC
19462
19463
19464 # save warnings/boilerplate of simple test code
19465 ac_outfile=conftest.$ac_objext
19466 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19467 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19468 _lt_compiler_boilerplate=`cat conftest.err`
19469 $rm conftest*
19470
19471 ac_outfile=conftest.$ac_objext
19472 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19473 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19474 _lt_linker_boilerplate=`cat conftest.err`
19475 $rm -r conftest*
19476
19477
19478 # Allow CC to be a program name with arguments.
19479 lt_save_CC="$CC"
19480 CC=${RC-"windres"}
19481 compiler=$CC
19482 compiler_RC=$CC
19483 for cc_temp in $compiler""; do
19484   case $cc_temp in
19485     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19486     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19487     \-*) ;;
19488     *) break;;
19489   esac
19490 done
19491 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19492
19493 lt_cv_prog_compiler_c_o_RC=yes
19494
19495 # The else clause should only fire when bootstrapping the
19496 # libtool distribution, otherwise you forgot to ship ltmain.sh
19497 # with your package, and you will get complaints that there are
19498 # no rules to generate ltmain.sh.
19499 if test -f "$ltmain"; then
19500   # See if we are running on zsh, and set the options which allow our commands through
19501   # without removal of \ escapes.
19502   if test -n "${ZSH_VERSION+set}" ; then
19503     setopt NO_GLOB_SUBST
19504   fi
19505   # Now quote all the things that may contain metacharacters while being
19506   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19507   # variables and quote the copies for generation of the libtool script.
19508   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19509     SED SHELL STRIP \
19510     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19511     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19512     deplibs_check_method reload_flag reload_cmds need_locks \
19513     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19514     lt_cv_sys_global_symbol_to_c_name_address \
19515     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19516     old_postinstall_cmds old_postuninstall_cmds \
19517     compiler_RC \
19518     CC_RC \
19519     LD_RC \
19520     lt_prog_compiler_wl_RC \
19521     lt_prog_compiler_pic_RC \
19522     lt_prog_compiler_static_RC \
19523     lt_prog_compiler_no_builtin_flag_RC \
19524     export_dynamic_flag_spec_RC \
19525     thread_safe_flag_spec_RC \
19526     whole_archive_flag_spec_RC \
19527     enable_shared_with_static_runtimes_RC \
19528     old_archive_cmds_RC \
19529     old_archive_from_new_cmds_RC \
19530     predep_objects_RC \
19531     postdep_objects_RC \
19532     predeps_RC \
19533     postdeps_RC \
19534     compiler_lib_search_path_RC \
19535     compiler_lib_search_dirs_RC \
19536     archive_cmds_RC \
19537     archive_expsym_cmds_RC \
19538     postinstall_cmds_RC \
19539     postuninstall_cmds_RC \
19540     old_archive_from_expsyms_cmds_RC \
19541     allow_undefined_flag_RC \
19542     no_undefined_flag_RC \
19543     export_symbols_cmds_RC \
19544     hardcode_libdir_flag_spec_RC \
19545     hardcode_libdir_flag_spec_ld_RC \
19546     hardcode_libdir_separator_RC \
19547     hardcode_automatic_RC \
19548     module_cmds_RC \
19549     module_expsym_cmds_RC \
19550     lt_cv_prog_compiler_c_o_RC \
19551     fix_srcfile_path_RC \
19552     exclude_expsyms_RC \
19553     include_expsyms_RC; do
19554
19555     case $var in
19556     old_archive_cmds_RC | \
19557     old_archive_from_new_cmds_RC | \
19558     archive_cmds_RC | \
19559     archive_expsym_cmds_RC | \
19560     module_cmds_RC | \
19561     module_expsym_cmds_RC | \
19562     old_archive_from_expsyms_cmds_RC | \
19563     export_symbols_cmds_RC | \
19564     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19565     postinstall_cmds | postuninstall_cmds | \
19566     old_postinstall_cmds | old_postuninstall_cmds | \
19567     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19568       # Double-quote double-evaled strings.
19569       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19570       ;;
19571     *)
19572       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19573       ;;
19574     esac
19575   done
19576
19577   case $lt_echo in
19578   *'\$0 --fallback-echo"')
19579     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19580     ;;
19581   esac
19582
19583 cfgfile="$ofile"
19584
19585   cat <<__EOF__ >> "$cfgfile"
19586 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19587
19588 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19589
19590 # Shell to use when invoking shell scripts.
19591 SHELL=$lt_SHELL
19592
19593 # Whether or not to build shared libraries.
19594 build_libtool_libs=$enable_shared
19595
19596 # Whether or not to build static libraries.
19597 build_old_libs=$enable_static
19598
19599 # Whether or not to add -lc for building shared libraries.
19600 build_libtool_need_lc=$archive_cmds_need_lc_RC
19601
19602 # Whether or not to disallow shared libs when runtime libs are static
19603 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19604
19605 # Whether or not to optimize for fast installation.
19606 fast_install=$enable_fast_install
19607
19608 # The host system.
19609 host_alias=$host_alias
19610 host=$host
19611 host_os=$host_os
19612
19613 # The build system.
19614 build_alias=$build_alias
19615 build=$build
19616 build_os=$build_os
19617
19618 # An echo program that does not interpret backslashes.
19619 echo=$lt_echo
19620
19621 # The archiver.
19622 AR=$lt_AR
19623 AR_FLAGS=$lt_AR_FLAGS
19624
19625 # A C compiler.
19626 LTCC=$lt_LTCC
19627
19628 # LTCC compiler flags.
19629 LTCFLAGS=$lt_LTCFLAGS
19630
19631 # A language-specific compiler.
19632 CC=$lt_compiler_RC
19633
19634 # Is the compiler the GNU C compiler?
19635 with_gcc=$GCC_RC
19636
19637 # An ERE matcher.
19638 EGREP=$lt_EGREP
19639
19640 # The linker used to build libraries.
19641 LD=$lt_LD_RC
19642
19643 # Whether we need hard or soft links.
19644 LN_S=$lt_LN_S
19645
19646 # A BSD-compatible nm program.
19647 NM=$lt_NM
19648
19649 # A symbol stripping program
19650 STRIP=$lt_STRIP
19651
19652 # Used to examine libraries when file_magic_cmd begins "file"
19653 MAGIC_CMD=$MAGIC_CMD
19654
19655 # Used on cygwin: DLL creation program.
19656 DLLTOOL="$DLLTOOL"
19657
19658 # Used on cygwin: object dumper.
19659 OBJDUMP="$OBJDUMP"
19660
19661 # Used on cygwin: assembler.
19662 AS="$AS"
19663
19664 # The name of the directory that contains temporary libtool files.
19665 objdir=$objdir
19666
19667 # How to create reloadable object files.
19668 reload_flag=$lt_reload_flag
19669 reload_cmds=$lt_reload_cmds
19670
19671 # How to pass a linker flag through the compiler.
19672 wl=$lt_lt_prog_compiler_wl_RC
19673
19674 # Object file suffix (normally "o").
19675 objext="$ac_objext"
19676
19677 # Old archive suffix (normally "a").
19678 libext="$libext"
19679
19680 # Shared library suffix (normally ".so").
19681 shrext_cmds='$shrext_cmds'
19682
19683 # Executable file suffix (normally "").
19684 exeext="$exeext"
19685
19686 # Additional compiler flags for building library objects.
19687 pic_flag=$lt_lt_prog_compiler_pic_RC
19688 pic_mode=$pic_mode
19689
19690 # What is the maximum length of a command?
19691 max_cmd_len=$lt_cv_sys_max_cmd_len
19692
19693 # Does compiler simultaneously support -c and -o options?
19694 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19695
19696 # Must we lock files when doing compilation?
19697 need_locks=$lt_need_locks
19698
19699 # Do we need the lib prefix for modules?
19700 need_lib_prefix=$need_lib_prefix
19701
19702 # Do we need a version for libraries?
19703 need_version=$need_version
19704
19705 # Whether dlopen is supported.
19706 dlopen_support=$enable_dlopen
19707
19708 # Whether dlopen of programs is supported.
19709 dlopen_self=$enable_dlopen_self
19710
19711 # Whether dlopen of statically linked programs is supported.
19712 dlopen_self_static=$enable_dlopen_self_static
19713
19714 # Compiler flag to prevent dynamic linking.
19715 link_static_flag=$lt_lt_prog_compiler_static_RC
19716
19717 # Compiler flag to turn off builtin functions.
19718 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19719
19720 # Compiler flag to allow reflexive dlopens.
19721 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19722
19723 # Compiler flag to generate shared objects directly from archives.
19724 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19725
19726 # Compiler flag to generate thread-safe objects.
19727 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19728
19729 # Library versioning type.
19730 version_type=$version_type
19731
19732 # Format of library name prefix.
19733 libname_spec=$lt_libname_spec
19734
19735 # List of archive names.  First name is the real one, the rest are links.
19736 # The last name is the one that the linker finds with -lNAME.
19737 library_names_spec=$lt_library_names_spec
19738
19739 # The coded name of the library, if different from the real name.
19740 soname_spec=$lt_soname_spec
19741
19742 # Commands used to build and install an old-style archive.
19743 RANLIB=$lt_RANLIB
19744 old_archive_cmds=$lt_old_archive_cmds_RC
19745 old_postinstall_cmds=$lt_old_postinstall_cmds
19746 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19747
19748 # Create an old-style archive from a shared archive.
19749 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19750
19751 # Create a temporary old-style archive to link instead of a shared archive.
19752 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19753
19754 # Commands used to build and install a shared archive.
19755 archive_cmds=$lt_archive_cmds_RC
19756 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19757 postinstall_cmds=$lt_postinstall_cmds
19758 postuninstall_cmds=$lt_postuninstall_cmds
19759
19760 # Commands used to build a loadable module (assumed same as above if empty)
19761 module_cmds=$lt_module_cmds_RC
19762 module_expsym_cmds=$lt_module_expsym_cmds_RC
19763
19764 # Commands to strip libraries.
19765 old_striplib=$lt_old_striplib
19766 striplib=$lt_striplib
19767
19768 # Dependencies to place before the objects being linked to create a
19769 # shared library.
19770 predep_objects=$lt_predep_objects_RC
19771
19772 # Dependencies to place after the objects being linked to create a
19773 # shared library.
19774 postdep_objects=$lt_postdep_objects_RC
19775
19776 # Dependencies to place before the objects being linked to create a
19777 # shared library.
19778 predeps=$lt_predeps_RC
19779
19780 # Dependencies to place after the objects being linked to create a
19781 # shared library.
19782 postdeps=$lt_postdeps_RC
19783
19784 # The directories searched by this compiler when creating a shared
19785 # library
19786 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19787
19788 # The library search path used internally by the compiler when linking
19789 # a shared library.
19790 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19791
19792 # Method to check whether dependent libraries are shared objects.
19793 deplibs_check_method=$lt_deplibs_check_method
19794
19795 # Command to use when deplibs_check_method == file_magic.
19796 file_magic_cmd=$lt_file_magic_cmd
19797
19798 # Flag that allows shared libraries with undefined symbols to be built.
19799 allow_undefined_flag=$lt_allow_undefined_flag_RC
19800
19801 # Flag that forces no undefined symbols.
19802 no_undefined_flag=$lt_no_undefined_flag_RC
19803
19804 # Commands used to finish a libtool library installation in a directory.
19805 finish_cmds=$lt_finish_cmds
19806
19807 # Same as above, but a single script fragment to be evaled but not shown.
19808 finish_eval=$lt_finish_eval
19809
19810 # Take the output of nm and produce a listing of raw symbols and C names.
19811 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19812
19813 # Transform the output of nm in a proper C declaration
19814 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19815
19816 # Transform the output of nm in a C name address pair
19817 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19818
19819 # This is the shared library runtime path variable.
19820 runpath_var=$runpath_var
19821
19822 # This is the shared library path variable.
19823 shlibpath_var=$shlibpath_var
19824
19825 # Is shlibpath searched before the hard-coded library search path?
19826 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19827
19828 # How to hardcode a shared library path into an executable.
19829 hardcode_action=$hardcode_action_RC
19830
19831 # Whether we should hardcode library paths into libraries.
19832 hardcode_into_libs=$hardcode_into_libs
19833
19834 # Flag to hardcode \$libdir into a binary during linking.
19835 # This must work even if \$libdir does not exist.
19836 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19837
19838 # If ld is used when linking, flag to hardcode \$libdir into
19839 # a binary during linking. This must work even if \$libdir does
19840 # not exist.
19841 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19842
19843 # Whether we need a single -rpath flag with a separated argument.
19844 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19845
19846 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19847 # resulting binary.
19848 hardcode_direct=$hardcode_direct_RC
19849
19850 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19851 # resulting binary.
19852 hardcode_minus_L=$hardcode_minus_L_RC
19853
19854 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19855 # the resulting binary.
19856 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19857
19858 # Set to yes if building a shared library automatically hardcodes DIR into the library
19859 # and all subsequent libraries and executables linked against it.
19860 hardcode_automatic=$hardcode_automatic_RC
19861
19862 # Variables whose values should be saved in libtool wrapper scripts and
19863 # restored at relink time.
19864 variables_saved_for_relink="$variables_saved_for_relink"
19865
19866 # Whether libtool must link a program against all its dependency libraries.
19867 link_all_deplibs=$link_all_deplibs_RC
19868
19869 # Compile-time system search path for libraries
19870 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19871
19872 # Run-time system search path for libraries
19873 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19874
19875 # Fix the shell variable \$srcfile for the compiler.
19876 fix_srcfile_path=$lt_fix_srcfile_path
19877
19878 # Set to yes if exported symbols are required.
19879 always_export_symbols=$always_export_symbols_RC
19880
19881 # The commands to list exported symbols.
19882 export_symbols_cmds=$lt_export_symbols_cmds_RC
19883
19884 # The commands to extract the exported symbol list from a shared archive.
19885 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19886
19887 # Symbols that should not be listed in the preloaded symbols.
19888 exclude_expsyms=$lt_exclude_expsyms_RC
19889
19890 # Symbols that must always be exported.
19891 include_expsyms=$lt_include_expsyms_RC
19892
19893 # ### END LIBTOOL TAG CONFIG: $tagname
19894
19895 __EOF__
19896
19897
19898 else
19899   # If there is no Makefile yet, we rely on a make rule to execute
19900   # `config.status --recheck' to rerun these tests and create the
19901   # libtool script then.
19902   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19903   if test -f "$ltmain_in"; then
19904     test -f Makefile && make "$ltmain"
19905   fi
19906 fi
19907
19908
19909 ac_ext=c
19910 ac_cpp='$CPP $CPPFLAGS'
19911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19914
19915 CC="$lt_save_CC"
19916
19917         ;;
19918
19919       *)
19920         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19921 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19922    { (exit 1); exit 1; }; }
19923         ;;
19924       esac
19925
19926       # Append the new tag name to the list of available tags.
19927       if test -n "$tagname" ; then
19928       available_tags="$available_tags $tagname"
19929     fi
19930     fi
19931   done
19932   IFS="$lt_save_ifs"
19933
19934   # Now substitute the updated list of available tags.
19935   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19936     mv "${ofile}T" "$ofile"
19937     chmod +x "$ofile"
19938   else
19939     rm -f "${ofile}T"
19940     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19941 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19942    { (exit 1); exit 1; }; }
19943   fi
19944 fi
19945
19946
19947
19948 # This can be used to rebuild libtool when needed
19949 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19950
19951 # Always use our own libtool.
19952 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19953
19954 # Prevent multiple expansion
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19977 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19978 if test "${ac_cv_header_stdc+set}" = set; then
19979   echo $ECHO_N "(cached) $ECHO_C" >&6
19980 else
19981   cat >conftest.$ac_ext <<_ACEOF
19982 /* confdefs.h.  */
19983 _ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h.  */
19987 #include <stdlib.h>
19988 #include <stdarg.h>
19989 #include <string.h>
19990 #include <float.h>
19991
19992 int
19993 main ()
19994 {
19995
19996   ;
19997   return 0;
19998 }
19999 _ACEOF
20000 rm -f conftest.$ac_objext
20001 if { (ac_try="$ac_compile"
20002 case "(($ac_try" in
20003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004   *) ac_try_echo=$ac_try;;
20005 esac
20006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007   (eval "$ac_compile") 2>conftest.er1
20008   ac_status=$?
20009   grep -v '^ *+' conftest.er1 >conftest.err
20010   rm -f conftest.er1
20011   cat conftest.err >&5
20012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013   (exit $ac_status); } && {
20014          test -z "$ac_c_werror_flag" ||
20015          test ! -s conftest.err
20016        } && test -s conftest.$ac_objext; then
20017   ac_cv_header_stdc=yes
20018 else
20019   echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20021
20022         ac_cv_header_stdc=no
20023 fi
20024
20025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20026
20027 if test $ac_cv_header_stdc = yes; then
20028   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20029   cat >conftest.$ac_ext <<_ACEOF
20030 /* confdefs.h.  */
20031 _ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h.  */
20035 #include <string.h>
20036
20037 _ACEOF
20038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20039   $EGREP "memchr" >/dev/null 2>&1; then
20040   :
20041 else
20042   ac_cv_header_stdc=no
20043 fi
20044 rm -f conftest*
20045
20046 fi
20047
20048 if test $ac_cv_header_stdc = yes; then
20049   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20050   cat >conftest.$ac_ext <<_ACEOF
20051 /* confdefs.h.  */
20052 _ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h.  */
20056 #include <stdlib.h>
20057
20058 _ACEOF
20059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20060   $EGREP "free" >/dev/null 2>&1; then
20061   :
20062 else
20063   ac_cv_header_stdc=no
20064 fi
20065 rm -f conftest*
20066
20067 fi
20068
20069 if test $ac_cv_header_stdc = yes; then
20070   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20071   if test "$cross_compiling" = yes; then
20072   :
20073 else
20074   cat >conftest.$ac_ext <<_ACEOF
20075 /* confdefs.h.  */
20076 _ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h.  */
20080 #include <ctype.h>
20081 #include <stdlib.h>
20082 #if ((' ' & 0x0FF) == 0x020)
20083 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20084 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20085 #else
20086 # define ISLOWER(c) \
20087                    (('a' <= (c) && (c) <= 'i') \
20088                      || ('j' <= (c) && (c) <= 'r') \
20089                      || ('s' <= (c) && (c) <= 'z'))
20090 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20091 #endif
20092
20093 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20094 int
20095 main ()
20096 {
20097   int i;
20098   for (i = 0; i < 256; i++)
20099     if (XOR (islower (i), ISLOWER (i))
20100         || toupper (i) != TOUPPER (i))
20101       return 2;
20102   return 0;
20103 }
20104 _ACEOF
20105 rm -f conftest$ac_exeext
20106 if { (ac_try="$ac_link"
20107 case "(($ac_try" in
20108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109   *) ac_try_echo=$ac_try;;
20110 esac
20111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112   (eval "$ac_link") 2>&5
20113   ac_status=$?
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20116   { (case "(($ac_try" in
20117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118   *) ac_try_echo=$ac_try;;
20119 esac
20120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20121   (eval "$ac_try") 2>&5
20122   ac_status=$?
20123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124   (exit $ac_status); }; }; then
20125   :
20126 else
20127   echo "$as_me: program exited with status $ac_status" >&5
20128 echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20130
20131 ( exit $ac_status )
20132 ac_cv_header_stdc=no
20133 fi
20134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20135 fi
20136
20137
20138 fi
20139 fi
20140 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20141 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20142 if test $ac_cv_header_stdc = yes; then
20143
20144 cat >>confdefs.h <<\_ACEOF
20145 #define STDC_HEADERS 1
20146 _ACEOF
20147
20148 fi
20149
20150
20151 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20152 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20153 if test "${ac_cv_header_time+set}" = set; then
20154   echo $ECHO_N "(cached) $ECHO_C" >&6
20155 else
20156   cat >conftest.$ac_ext <<_ACEOF
20157 /* confdefs.h.  */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h.  */
20162 #include <sys/types.h>
20163 #include <sys/time.h>
20164 #include <time.h>
20165
20166 int
20167 main ()
20168 {
20169 if ((struct tm *) 0)
20170 return 0;
20171   ;
20172   return 0;
20173 }
20174 _ACEOF
20175 rm -f conftest.$ac_objext
20176 if { (ac_try="$ac_compile"
20177 case "(($ac_try" in
20178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179   *) ac_try_echo=$ac_try;;
20180 esac
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182   (eval "$ac_compile") 2>conftest.er1
20183   ac_status=$?
20184   grep -v '^ *+' conftest.er1 >conftest.err
20185   rm -f conftest.er1
20186   cat conftest.err >&5
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   (exit $ac_status); } && {
20189          test -z "$ac_c_werror_flag" ||
20190          test ! -s conftest.err
20191        } && test -s conftest.$ac_objext; then
20192   ac_cv_header_time=yes
20193 else
20194   echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20196
20197         ac_cv_header_time=no
20198 fi
20199
20200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20201 fi
20202 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20203 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20204 if test $ac_cv_header_time = yes; then
20205
20206 cat >>confdefs.h <<\_ACEOF
20207 #define TIME_WITH_SYS_TIME 1
20208 _ACEOF
20209
20210 fi
20211
20212
20213
20214 { echo "$as_me:$LINENO: checking for main in -lpopt" >&5
20215 echo $ECHO_N "checking for main in -lpopt... $ECHO_C" >&6; }
20216 if test "${ac_cv_lib_popt_main+set}" = set; then
20217   echo $ECHO_N "(cached) $ECHO_C" >&6
20218 else
20219   ac_check_lib_save_LIBS=$LIBS
20220 LIBS="-lpopt  $LIBS"
20221 cat >conftest.$ac_ext <<_ACEOF
20222 /* confdefs.h.  */
20223 _ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h.  */
20227
20228
20229 int
20230 main ()
20231 {
20232 return main ();
20233   ;
20234   return 0;
20235 }
20236 _ACEOF
20237 rm -f conftest.$ac_objext conftest$ac_exeext
20238 if { (ac_try="$ac_link"
20239 case "(($ac_try" in
20240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241   *) ac_try_echo=$ac_try;;
20242 esac
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244   (eval "$ac_link") 2>conftest.er1
20245   ac_status=$?
20246   grep -v '^ *+' conftest.er1 >conftest.err
20247   rm -f conftest.er1
20248   cat conftest.err >&5
20249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250   (exit $ac_status); } && {
20251          test -z "$ac_c_werror_flag" ||
20252          test ! -s conftest.err
20253        } && test -s conftest$ac_exeext &&
20254        $as_test_x conftest$ac_exeext; then
20255   ac_cv_lib_popt_main=yes
20256 else
20257   echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20259
20260         ac_cv_lib_popt_main=no
20261 fi
20262
20263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20264       conftest$ac_exeext conftest.$ac_ext
20265 LIBS=$ac_check_lib_save_LIBS
20266 fi
20267 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_main" >&5
20268 echo "${ECHO_T}$ac_cv_lib_popt_main" >&6; }
20269 if test $ac_cv_lib_popt_main = yes; then
20270   cat >>confdefs.h <<_ACEOF
20271 #define HAVE_LIBPOPT 1
20272 _ACEOF
20273
20274   LIBS="-lpopt $LIBS"
20275
20276 fi
20277
20278
20279 { echo "$as_me:$LINENO: checking for main in -lz" >&5
20280 echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6; }
20281 if test "${ac_cv_lib_z_main+set}" = set; then
20282   echo $ECHO_N "(cached) $ECHO_C" >&6
20283 else
20284   ac_check_lib_save_LIBS=$LIBS
20285 LIBS="-lz  $LIBS"
20286 cat >conftest.$ac_ext <<_ACEOF
20287 /* confdefs.h.  */
20288 _ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h.  */
20292
20293
20294 int
20295 main ()
20296 {
20297 return main ();
20298   ;
20299   return 0;
20300 }
20301 _ACEOF
20302 rm -f conftest.$ac_objext conftest$ac_exeext
20303 if { (ac_try="$ac_link"
20304 case "(($ac_try" in
20305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306   *) ac_try_echo=$ac_try;;
20307 esac
20308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309   (eval "$ac_link") 2>conftest.er1
20310   ac_status=$?
20311   grep -v '^ *+' conftest.er1 >conftest.err
20312   rm -f conftest.er1
20313   cat conftest.err >&5
20314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315   (exit $ac_status); } && {
20316          test -z "$ac_c_werror_flag" ||
20317          test ! -s conftest.err
20318        } && test -s conftest$ac_exeext &&
20319        $as_test_x conftest$ac_exeext; then
20320   ac_cv_lib_z_main=yes
20321 else
20322   echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20324
20325         ac_cv_lib_z_main=no
20326 fi
20327
20328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20329       conftest$ac_exeext conftest.$ac_ext
20330 LIBS=$ac_check_lib_save_LIBS
20331 fi
20332 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5
20333 echo "${ECHO_T}$ac_cv_lib_z_main" >&6; }
20334 if test $ac_cv_lib_z_main = yes; then
20335   cat >>confdefs.h <<_ACEOF
20336 #define HAVE_LIBZ 1
20337 _ACEOF
20338
20339   LIBS="-lz $LIBS"
20340
20341 fi
20342
20343
20344 ac_config_files="$ac_config_files Makefile test/Makefile"
20345
20346 cat >confcache <<\_ACEOF
20347 # This file is a shell script that caches the results of configure
20348 # tests run on this system so they can be shared between configure
20349 # scripts and configure runs, see configure's option --config-cache.
20350 # It is not useful on other systems.  If it contains results you don't
20351 # want to keep, you may remove or edit it.
20352 #
20353 # config.status only pays attention to the cache file if you give it
20354 # the --recheck option to rerun configure.
20355 #
20356 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20357 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20358 # following values.
20359
20360 _ACEOF
20361
20362 # The following way of writing the cache mishandles newlines in values,
20363 # but we know of no workaround that is simple, portable, and efficient.
20364 # So, we kill variables containing newlines.
20365 # Ultrix sh set writes to stderr and can't be redirected directly,
20366 # and sets the high bit in the cache file unless we assign to the vars.
20367 (
20368   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20369     eval ac_val=\$$ac_var
20370     case $ac_val in #(
20371     *${as_nl}*)
20372       case $ac_var in #(
20373       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20374 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20375       esac
20376       case $ac_var in #(
20377       _ | IFS | as_nl) ;; #(
20378       *) $as_unset $ac_var ;;
20379       esac ;;
20380     esac
20381   done
20382
20383   (set) 2>&1 |
20384     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20385     *${as_nl}ac_space=\ *)
20386       # `set' does not quote correctly, so add quotes (double-quote
20387       # substitution turns \\\\ into \\, and sed turns \\ into \).
20388       sed -n \
20389         "s/'/'\\\\''/g;
20390           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20391       ;; #(
20392     *)
20393       # `set' quotes correctly as required by POSIX, so do not add quotes.
20394       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20395       ;;
20396     esac |
20397     sort
20398 ) |
20399   sed '
20400      /^ac_cv_env_/b end
20401      t clear
20402      :clear
20403      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20404      t end
20405      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20406      :end' >>confcache
20407 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20408   if test -w "$cache_file"; then
20409     test "x$cache_file" != "x/dev/null" &&
20410       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20411 echo "$as_me: updating cache $cache_file" >&6;}
20412     cat confcache >$cache_file
20413   else
20414     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20415 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20416   fi
20417 fi
20418 rm -f confcache
20419
20420 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20421 # Let make expand exec_prefix.
20422 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20423
20424 DEFS=-DHAVE_CONFIG_H
20425
20426 ac_libobjs=
20427 ac_ltlibobjs=
20428 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20429   # 1. Remove the extension, and $U if already installed.
20430   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20431   ac_i=`echo "$ac_i" | sed "$ac_script"`
20432   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20433   #    will be set to the directory where LIBOBJS objects are built.
20434   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20435   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20436 done
20437 LIBOBJS=$ac_libobjs
20438
20439 LTLIBOBJS=$ac_ltlibobjs
20440
20441
20442 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20443   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20444 Usually this means the macro was only invoked conditionally." >&5
20445 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20446 Usually this means the macro was only invoked conditionally." >&2;}
20447    { (exit 1); exit 1; }; }
20448 fi
20449 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20450   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20451 Usually this means the macro was only invoked conditionally." >&5
20452 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20453 Usually this means the macro was only invoked conditionally." >&2;}
20454    { (exit 1); exit 1; }; }
20455 fi
20456 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20457   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20458 Usually this means the macro was only invoked conditionally." >&5
20459 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20460 Usually this means the macro was only invoked conditionally." >&2;}
20461    { (exit 1); exit 1; }; }
20462 fi
20463 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20464   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20465 Usually this means the macro was only invoked conditionally." >&5
20466 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20467 Usually this means the macro was only invoked conditionally." >&2;}
20468    { (exit 1); exit 1; }; }
20469 fi
20470
20471 : ${CONFIG_STATUS=./config.status}
20472 ac_clean_files_save=$ac_clean_files
20473 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20474 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20475 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20476 cat >$CONFIG_STATUS <<_ACEOF
20477 #! $SHELL
20478 # Generated by $as_me.
20479 # Run this file to recreate the current configuration.
20480 # Compiler output produced by configure, useful for debugging
20481 # configure, is in config.log if it exists.
20482
20483 debug=false
20484 ac_cs_recheck=false
20485 ac_cs_silent=false
20486 SHELL=\${CONFIG_SHELL-$SHELL}
20487 _ACEOF
20488
20489 cat >>$CONFIG_STATUS <<\_ACEOF
20490 ## --------------------- ##
20491 ## M4sh Initialization.  ##
20492 ## --------------------- ##
20493
20494 # Be more Bourne compatible
20495 DUALCASE=1; export DUALCASE # for MKS sh
20496 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20497   emulate sh
20498   NULLCMD=:
20499   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20500   # is contrary to our usage.  Disable this feature.
20501   alias -g '${1+"$@"}'='"$@"'
20502   setopt NO_GLOB_SUBST
20503 else
20504   case `(set -o) 2>/dev/null` in
20505   *posix*) set -o posix ;;
20506 esac
20507
20508 fi
20509
20510
20511
20512
20513 # PATH needs CR
20514 # Avoid depending upon Character Ranges.
20515 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20516 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20517 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20518 as_cr_digits='0123456789'
20519 as_cr_alnum=$as_cr_Letters$as_cr_digits
20520
20521 # The user is always right.
20522 if test "${PATH_SEPARATOR+set}" != set; then
20523   echo "#! /bin/sh" >conf$$.sh
20524   echo  "exit 0"   >>conf$$.sh
20525   chmod +x conf$$.sh
20526   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20527     PATH_SEPARATOR=';'
20528   else
20529     PATH_SEPARATOR=:
20530   fi
20531   rm -f conf$$.sh
20532 fi
20533
20534 # Support unset when possible.
20535 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20536   as_unset=unset
20537 else
20538   as_unset=false
20539 fi
20540
20541
20542 # IFS
20543 # We need space, tab and new line, in precisely that order.  Quoting is
20544 # there to prevent editors from complaining about space-tab.
20545 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20546 # splitting by setting IFS to empty value.)
20547 as_nl='
20548 '
20549 IFS=" ""        $as_nl"
20550
20551 # Find who we are.  Look in the path if we contain no directory separator.
20552 case $0 in
20553   *[\\/]* ) as_myself=$0 ;;
20554   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20555 for as_dir in $PATH
20556 do
20557   IFS=$as_save_IFS
20558   test -z "$as_dir" && as_dir=.
20559   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20560 done
20561 IFS=$as_save_IFS
20562
20563      ;;
20564 esac
20565 # We did not find ourselves, most probably we were run as `sh COMMAND'
20566 # in which case we are not to be found in the path.
20567 if test "x$as_myself" = x; then
20568   as_myself=$0
20569 fi
20570 if test ! -f "$as_myself"; then
20571   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20572   { (exit 1); exit 1; }
20573 fi
20574
20575 # Work around bugs in pre-3.0 UWIN ksh.
20576 for as_var in ENV MAIL MAILPATH
20577 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20578 done
20579 PS1='$ '
20580 PS2='> '
20581 PS4='+ '
20582
20583 # NLS nuisances.
20584 for as_var in \
20585   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20586   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20587   LC_TELEPHONE LC_TIME
20588 do
20589   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20590     eval $as_var=C; export $as_var
20591   else
20592     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20593   fi
20594 done
20595
20596 # Required to use basename.
20597 if expr a : '\(a\)' >/dev/null 2>&1 &&
20598    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20599   as_expr=expr
20600 else
20601   as_expr=false
20602 fi
20603
20604 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20605   as_basename=basename
20606 else
20607   as_basename=false
20608 fi
20609
20610
20611 # Name of the executable.
20612 as_me=`$as_basename -- "$0" ||
20613 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20614          X"$0" : 'X\(//\)$' \| \
20615          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20616 echo X/"$0" |
20617     sed '/^.*\/\([^/][^/]*\)\/*$/{
20618             s//\1/
20619             q
20620           }
20621           /^X\/\(\/\/\)$/{
20622             s//\1/
20623             q
20624           }
20625           /^X\/\(\/\).*/{
20626             s//\1/
20627             q
20628           }
20629           s/.*/./; q'`
20630
20631 # CDPATH.
20632 $as_unset CDPATH
20633
20634
20635
20636   as_lineno_1=$LINENO
20637   as_lineno_2=$LINENO
20638   test "x$as_lineno_1" != "x$as_lineno_2" &&
20639   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20640
20641   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20642   # uniformly replaced by the line number.  The first 'sed' inserts a
20643   # line-number line after each line using $LINENO; the second 'sed'
20644   # does the real work.  The second script uses 'N' to pair each
20645   # line-number line with the line containing $LINENO, and appends
20646   # trailing '-' during substitution so that $LINENO is not a special
20647   # case at line end.
20648   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20649   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20650   # E. McMahon (1931-1989) for sed's syntax.  :-)
20651   sed -n '
20652     p
20653     /[$]LINENO/=
20654   ' <$as_myself |
20655     sed '
20656       s/[$]LINENO.*/&-/
20657       t lineno
20658       b
20659       :lineno
20660       N
20661       :loop
20662       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20663       t loop
20664       s/-\n.*//
20665     ' >$as_me.lineno &&
20666   chmod +x "$as_me.lineno" ||
20667     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20668    { (exit 1); exit 1; }; }
20669
20670   # Don't try to exec as it changes $[0], causing all sort of problems
20671   # (the dirname of $[0] is not the place where we might find the
20672   # original and so on.  Autoconf is especially sensitive to this).
20673   . "./$as_me.lineno"
20674   # Exit status is that of the last command.
20675   exit
20676 }
20677
20678
20679 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20680   as_dirname=dirname
20681 else
20682   as_dirname=false
20683 fi
20684
20685 ECHO_C= ECHO_N= ECHO_T=
20686 case `echo -n x` in
20687 -n*)
20688   case `echo 'x\c'` in
20689   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20690   *)   ECHO_C='\c';;
20691   esac;;
20692 *)
20693   ECHO_N='-n';;
20694 esac
20695
20696 if expr a : '\(a\)' >/dev/null 2>&1 &&
20697    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20698   as_expr=expr
20699 else
20700   as_expr=false
20701 fi
20702
20703 rm -f conf$$ conf$$.exe conf$$.file
20704 if test -d conf$$.dir; then
20705   rm -f conf$$.dir/conf$$.file
20706 else
20707   rm -f conf$$.dir
20708   mkdir conf$$.dir
20709 fi
20710 echo >conf$$.file
20711 if ln -s conf$$.file conf$$ 2>/dev/null; then
20712   as_ln_s='ln -s'
20713   # ... but there are two gotchas:
20714   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20715   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20716   # In both cases, we have to default to `cp -p'.
20717   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20718     as_ln_s='cp -p'
20719 elif ln conf$$.file conf$$ 2>/dev/null; then
20720   as_ln_s=ln
20721 else
20722   as_ln_s='cp -p'
20723 fi
20724 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20725 rmdir conf$$.dir 2>/dev/null
20726
20727 if mkdir -p . 2>/dev/null; then
20728   as_mkdir_p=:
20729 else
20730   test -d ./-p && rmdir ./-p
20731   as_mkdir_p=false
20732 fi
20733
20734 if test -x / >/dev/null 2>&1; then
20735   as_test_x='test -x'
20736 else
20737   if ls -dL / >/dev/null 2>&1; then
20738     as_ls_L_option=L
20739   else
20740     as_ls_L_option=
20741   fi
20742   as_test_x='
20743     eval sh -c '\''
20744       if test -d "$1"; then
20745         test -d "$1/.";
20746       else
20747         case $1 in
20748         -*)set "./$1";;
20749         esac;
20750         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20751         ???[sx]*):;;*)false;;esac;fi
20752     '\'' sh
20753   '
20754 fi
20755 as_executable_p=$as_test_x
20756
20757 # Sed expression to map a string onto a valid CPP name.
20758 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20759
20760 # Sed expression to map a string onto a valid variable name.
20761 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20762
20763
20764 exec 6>&1
20765
20766 # Save the log message, to keep $[0] and so on meaningful, and to
20767 # report actual input values of CONFIG_FILES etc. instead of their
20768 # values after options handling.
20769 ac_log="
20770 This file was extended by iec16022 $as_me 0.2.3, which was
20771 generated by GNU Autoconf 2.61.  Invocation command line was
20772
20773   CONFIG_FILES    = $CONFIG_FILES
20774   CONFIG_HEADERS  = $CONFIG_HEADERS
20775   CONFIG_LINKS    = $CONFIG_LINKS
20776   CONFIG_COMMANDS = $CONFIG_COMMANDS
20777   $ $0 $@
20778
20779 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20780 "
20781
20782 _ACEOF
20783
20784 cat >>$CONFIG_STATUS <<_ACEOF
20785 # Files that config.status was made for.
20786 config_files="$ac_config_files"
20787 config_headers="$ac_config_headers"
20788 config_commands="$ac_config_commands"
20789
20790 _ACEOF
20791
20792 cat >>$CONFIG_STATUS <<\_ACEOF
20793 ac_cs_usage="\
20794 \`$as_me' instantiates files from templates according to the
20795 current configuration.
20796
20797 Usage: $0 [OPTIONS] [FILE]...
20798
20799   -h, --help       print this help, then exit
20800   -V, --version    print version number and configuration settings, then exit
20801   -q, --quiet      do not print progress messages
20802   -d, --debug      don't remove temporary files
20803       --recheck    update $as_me by reconfiguring in the same conditions
20804   --file=FILE[:TEMPLATE]
20805                    instantiate the configuration file FILE
20806   --header=FILE[:TEMPLATE]
20807                    instantiate the configuration header FILE
20808
20809 Configuration files:
20810 $config_files
20811
20812 Configuration headers:
20813 $config_headers
20814
20815 Configuration commands:
20816 $config_commands
20817
20818 Report bugs to <bug-autoconf@gnu.org>."
20819
20820 _ACEOF
20821 cat >>$CONFIG_STATUS <<_ACEOF
20822 ac_cs_version="\\
20823 iec16022 config.status 0.2.3
20824 configured by $0, generated by GNU Autoconf 2.61,
20825   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20826
20827 Copyright (C) 2006 Free Software Foundation, Inc.
20828 This config.status script is free software; the Free Software Foundation
20829 gives unlimited permission to copy, distribute and modify it."
20830
20831 ac_pwd='$ac_pwd'
20832 srcdir='$srcdir'
20833 INSTALL='$INSTALL'
20834 _ACEOF
20835
20836 cat >>$CONFIG_STATUS <<\_ACEOF
20837 # If no file are specified by the user, then we need to provide default
20838 # value.  By we need to know if files were specified by the user.
20839 ac_need_defaults=:
20840 while test $# != 0
20841 do
20842   case $1 in
20843   --*=*)
20844     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20845     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20846     ac_shift=:
20847     ;;
20848   *)
20849     ac_option=$1
20850     ac_optarg=$2
20851     ac_shift=shift
20852     ;;
20853   esac
20854
20855   case $ac_option in
20856   # Handling of the options.
20857   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20858     ac_cs_recheck=: ;;
20859   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20860     echo "$ac_cs_version"; exit ;;
20861   --debug | --debu | --deb | --de | --d | -d )
20862     debug=: ;;
20863   --file | --fil | --fi | --f )
20864     $ac_shift
20865     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20866     ac_need_defaults=false;;
20867   --header | --heade | --head | --hea )
20868     $ac_shift
20869     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20870     ac_need_defaults=false;;
20871   --he | --h)
20872     # Conflict between --help and --header
20873     { echo "$as_me: error: ambiguous option: $1
20874 Try \`$0 --help' for more information." >&2
20875    { (exit 1); exit 1; }; };;
20876   --help | --hel | -h )
20877     echo "$ac_cs_usage"; exit ;;
20878   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20879   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20880     ac_cs_silent=: ;;
20881
20882   # This is an error.
20883   -*) { echo "$as_me: error: unrecognized option: $1
20884 Try \`$0 --help' for more information." >&2
20885    { (exit 1); exit 1; }; } ;;
20886
20887   *) ac_config_targets="$ac_config_targets $1"
20888      ac_need_defaults=false ;;
20889
20890   esac
20891   shift
20892 done
20893
20894 ac_configure_extra_args=
20895
20896 if $ac_cs_silent; then
20897   exec 6>/dev/null
20898   ac_configure_extra_args="$ac_configure_extra_args --silent"
20899 fi
20900
20901 _ACEOF
20902 cat >>$CONFIG_STATUS <<_ACEOF
20903 if \$ac_cs_recheck; then
20904   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20905   CONFIG_SHELL=$SHELL
20906   export CONFIG_SHELL
20907   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20908 fi
20909
20910 _ACEOF
20911 cat >>$CONFIG_STATUS <<\_ACEOF
20912 exec 5>>config.log
20913 {
20914   echo
20915   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20916 ## Running $as_me. ##
20917 _ASBOX
20918   echo "$ac_log"
20919 } >&5
20920
20921 _ACEOF
20922 cat >>$CONFIG_STATUS <<_ACEOF
20923 #
20924 # INIT-COMMANDS
20925 #
20926 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20927
20928 _ACEOF
20929
20930 cat >>$CONFIG_STATUS <<\_ACEOF
20931
20932 # Handling of arguments.
20933 for ac_config_target in $ac_config_targets
20934 do
20935   case $ac_config_target in
20936     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20937     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20938     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20939     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20940
20941   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20942 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20943    { (exit 1); exit 1; }; };;
20944   esac
20945 done
20946
20947
20948 # If the user did not use the arguments to specify the items to instantiate,
20949 # then the envvar interface is used.  Set only those that are not.
20950 # We use the long form for the default assignment because of an extremely
20951 # bizarre bug on SunOS 4.1.3.
20952 if $ac_need_defaults; then
20953   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20954   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20955   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20956 fi
20957
20958 # Have a temporary directory for convenience.  Make it in the build tree
20959 # simply because there is no reason against having it here, and in addition,
20960 # creating and moving files from /tmp can sometimes cause problems.
20961 # Hook for its removal unless debugging.
20962 # Note that there is a small window in which the directory will not be cleaned:
20963 # after its creation but before its name has been assigned to `$tmp'.
20964 $debug ||
20965 {
20966   tmp=
20967   trap 'exit_status=$?
20968   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20969 ' 0
20970   trap '{ (exit 1); exit 1; }' 1 2 13 15
20971 }
20972 # Create a (secure) tmp directory for tmp files.
20973
20974 {
20975   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20976   test -n "$tmp" && test -d "$tmp"
20977 }  ||
20978 {
20979   tmp=./conf$$-$RANDOM
20980   (umask 077 && mkdir "$tmp")
20981 } ||
20982 {
20983    echo "$me: cannot create a temporary directory in ." >&2
20984    { (exit 1); exit 1; }
20985 }
20986
20987 #
20988 # Set up the sed scripts for CONFIG_FILES section.
20989 #
20990
20991 # No need to generate the scripts if there are no CONFIG_FILES.
20992 # This happens for instance when ./config.status config.h
20993 if test -n "$CONFIG_FILES"; then
20994
20995 _ACEOF
20996
20997
20998
20999 ac_delim='%!_!# '
21000 for ac_last_try in false false false false false :; do
21001   cat >conf$$subs.sed <<_ACEOF
21002 SHELL!$SHELL$ac_delim
21003 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21004 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21005 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21006 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21007 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21008 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21009 exec_prefix!$exec_prefix$ac_delim
21010 prefix!$prefix$ac_delim
21011 program_transform_name!$program_transform_name$ac_delim
21012 bindir!$bindir$ac_delim
21013 sbindir!$sbindir$ac_delim
21014 libexecdir!$libexecdir$ac_delim
21015 datarootdir!$datarootdir$ac_delim
21016 datadir!$datadir$ac_delim
21017 sysconfdir!$sysconfdir$ac_delim
21018 sharedstatedir!$sharedstatedir$ac_delim
21019 localstatedir!$localstatedir$ac_delim
21020 includedir!$includedir$ac_delim
21021 oldincludedir!$oldincludedir$ac_delim
21022 docdir!$docdir$ac_delim
21023 infodir!$infodir$ac_delim
21024 htmldir!$htmldir$ac_delim
21025 dvidir!$dvidir$ac_delim
21026 pdfdir!$pdfdir$ac_delim
21027 psdir!$psdir$ac_delim
21028 libdir!$libdir$ac_delim
21029 localedir!$localedir$ac_delim
21030 mandir!$mandir$ac_delim
21031 DEFS!$DEFS$ac_delim
21032 ECHO_C!$ECHO_C$ac_delim
21033 ECHO_N!$ECHO_N$ac_delim
21034 ECHO_T!$ECHO_T$ac_delim
21035 LIBS!$LIBS$ac_delim
21036 build_alias!$build_alias$ac_delim
21037 host_alias!$host_alias$ac_delim
21038 target_alias!$target_alias$ac_delim
21039 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21040 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21041 INSTALL_DATA!$INSTALL_DATA$ac_delim
21042 CYGPATH_W!$CYGPATH_W$ac_delim
21043 PACKAGE!$PACKAGE$ac_delim
21044 VERSION!$VERSION$ac_delim
21045 ACLOCAL!$ACLOCAL$ac_delim
21046 AUTOCONF!$AUTOCONF$ac_delim
21047 AUTOMAKE!$AUTOMAKE$ac_delim
21048 AUTOHEADER!$AUTOHEADER$ac_delim
21049 MAKEINFO!$MAKEINFO$ac_delim
21050 install_sh!$install_sh$ac_delim
21051 STRIP!$STRIP$ac_delim
21052 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21053 mkdir_p!$mkdir_p$ac_delim
21054 AWK!$AWK$ac_delim
21055 SET_MAKE!$SET_MAKE$ac_delim
21056 am__leading_dot!$am__leading_dot$ac_delim
21057 AMTAR!$AMTAR$ac_delim
21058 am__tar!$am__tar$ac_delim
21059 am__untar!$am__untar$ac_delim
21060 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
21061 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
21062 MAINT!$MAINT$ac_delim
21063 CC!$CC$ac_delim
21064 CFLAGS!$CFLAGS$ac_delim
21065 LDFLAGS!$LDFLAGS$ac_delim
21066 CPPFLAGS!$CPPFLAGS$ac_delim
21067 ac_ct_CC!$ac_ct_CC$ac_delim
21068 EXEEXT!$EXEEXT$ac_delim
21069 OBJEXT!$OBJEXT$ac_delim
21070 DEPDIR!$DEPDIR$ac_delim
21071 am__include!$am__include$ac_delim
21072 am__quote!$am__quote$ac_delim
21073 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21074 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21075 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21076 CCDEPMODE!$CCDEPMODE$ac_delim
21077 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21078 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21079 build!$build$ac_delim
21080 build_cpu!$build_cpu$ac_delim
21081 build_vendor!$build_vendor$ac_delim
21082 build_os!$build_os$ac_delim
21083 host!$host$ac_delim
21084 host_cpu!$host_cpu$ac_delim
21085 host_vendor!$host_vendor$ac_delim
21086 host_os!$host_os$ac_delim
21087 SED!$SED$ac_delim
21088 GREP!$GREP$ac_delim
21089 EGREP!$EGREP$ac_delim
21090 LN_S!$LN_S$ac_delim
21091 ECHO!$ECHO$ac_delim
21092 AR!$AR$ac_delim
21093 RANLIB!$RANLIB$ac_delim
21094 DSYMUTIL!$DSYMUTIL$ac_delim
21095 NMEDIT!$NMEDIT$ac_delim
21096 CPP!$CPP$ac_delim
21097 CXX!$CXX$ac_delim
21098 CXXFLAGS!$CXXFLAGS$ac_delim
21099 _ACEOF
21100
21101   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21102     break
21103   elif $ac_last_try; then
21104     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21105 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21106    { (exit 1); exit 1; }; }
21107   else
21108     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21109   fi
21110 done
21111
21112 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21113 if test -n "$ac_eof"; then
21114   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21115   ac_eof=`expr $ac_eof + 1`
21116 fi
21117
21118 cat >>$CONFIG_STATUS <<_ACEOF
21119 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21121 _ACEOF
21122 sed '
21123 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21124 s/^/s,@/; s/!/@,|#_!!_#|/
21125 :n
21126 t n
21127 s/'"$ac_delim"'$/,g/; t
21128 s/$/\\/; p
21129 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21130 ' >>$CONFIG_STATUS <conf$$subs.sed
21131 rm -f conf$$subs.sed
21132 cat >>$CONFIG_STATUS <<_ACEOF
21133 CEOF$ac_eof
21134 _ACEOF
21135
21136
21137 ac_delim='%!_!# '
21138 for ac_last_try in false false false false false :; do
21139   cat >conf$$subs.sed <<_ACEOF
21140 ac_ct_CXX!$ac_ct_CXX$ac_delim
21141 CXXDEPMODE!$CXXDEPMODE$ac_delim
21142 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21143 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21144 CXXCPP!$CXXCPP$ac_delim
21145 F77!$F77$ac_delim
21146 FFLAGS!$FFLAGS$ac_delim
21147 ac_ct_F77!$ac_ct_F77$ac_delim
21148 LIBTOOL!$LIBTOOL$ac_delim
21149 LIBOBJS!$LIBOBJS$ac_delim
21150 LTLIBOBJS!$LTLIBOBJS$ac_delim
21151 _ACEOF
21152
21153   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
21154     break
21155   elif $ac_last_try; then
21156     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21157 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21158    { (exit 1); exit 1; }; }
21159   else
21160     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21161   fi
21162 done
21163
21164 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21165 if test -n "$ac_eof"; then
21166   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21167   ac_eof=`expr $ac_eof + 1`
21168 fi
21169
21170 cat >>$CONFIG_STATUS <<_ACEOF
21171 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21173 _ACEOF
21174 sed '
21175 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21176 s/^/s,@/; s/!/@,|#_!!_#|/
21177 :n
21178 t n
21179 s/'"$ac_delim"'$/,g/; t
21180 s/$/\\/; p
21181 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21182 ' >>$CONFIG_STATUS <conf$$subs.sed
21183 rm -f conf$$subs.sed
21184 cat >>$CONFIG_STATUS <<_ACEOF
21185 :end
21186 s/|#_!!_#|//g
21187 CEOF$ac_eof
21188 _ACEOF
21189
21190
21191 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21192 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21193 # trailing colons and then remove the whole line if VPATH becomes empty
21194 # (actually we leave an empty line to preserve line numbers).
21195 if test "x$srcdir" = x.; then
21196   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21197 s/:*\$(srcdir):*/:/
21198 s/:*\${srcdir}:*/:/
21199 s/:*@srcdir@:*/:/
21200 s/^\([^=]*=[     ]*\):*/\1/
21201 s/:*$//
21202 s/^[^=]*=[       ]*$//
21203 }'
21204 fi
21205
21206 cat >>$CONFIG_STATUS <<\_ACEOF
21207 fi # test -n "$CONFIG_FILES"
21208
21209
21210 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21211 do
21212   case $ac_tag in
21213   :[FHLC]) ac_mode=$ac_tag; continue;;
21214   esac
21215   case $ac_mode$ac_tag in
21216   :[FHL]*:*);;
21217   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21218 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21219    { (exit 1); exit 1; }; };;
21220   :[FH]-) ac_tag=-:-;;
21221   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21222   esac
21223   ac_save_IFS=$IFS
21224   IFS=:
21225   set x $ac_tag
21226   IFS=$ac_save_IFS
21227   shift
21228   ac_file=$1
21229   shift
21230
21231   case $ac_mode in
21232   :L) ac_source=$1;;
21233   :[FH])
21234     ac_file_inputs=
21235     for ac_f
21236     do
21237       case $ac_f in
21238       -) ac_f="$tmp/stdin";;
21239       *) # Look for the file first in the build tree, then in the source tree
21240          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21241          # because $ac_f cannot contain `:'.
21242          test -f "$ac_f" ||
21243            case $ac_f in
21244            [\\/$]*) false;;
21245            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21246            esac ||
21247            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21248 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21249    { (exit 1); exit 1; }; };;
21250       esac
21251       ac_file_inputs="$ac_file_inputs $ac_f"
21252     done
21253
21254     # Let's still pretend it is `configure' which instantiates (i.e., don't
21255     # use $as_me), people would be surprised to read:
21256     #    /* config.h.  Generated by config.status.  */
21257     configure_input="Generated from "`IFS=:
21258           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21259     if test x"$ac_file" != x-; then
21260       configure_input="$ac_file.  $configure_input"
21261       { echo "$as_me:$LINENO: creating $ac_file" >&5
21262 echo "$as_me: creating $ac_file" >&6;}
21263     fi
21264
21265     case $ac_tag in
21266     *:-:* | *:-) cat >"$tmp/stdin";;
21267     esac
21268     ;;
21269   esac
21270
21271   ac_dir=`$as_dirname -- "$ac_file" ||
21272 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21273          X"$ac_file" : 'X\(//\)[^/]' \| \
21274          X"$ac_file" : 'X\(//\)$' \| \
21275          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21276 echo X"$ac_file" |
21277     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21278             s//\1/
21279             q
21280           }
21281           /^X\(\/\/\)[^/].*/{
21282             s//\1/
21283             q
21284           }
21285           /^X\(\/\/\)$/{
21286             s//\1/
21287             q
21288           }
21289           /^X\(\/\).*/{
21290             s//\1/
21291             q
21292           }
21293           s/.*/./; q'`
21294   { as_dir="$ac_dir"
21295   case $as_dir in #(
21296   -*) as_dir=./$as_dir;;
21297   esac
21298   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21299     as_dirs=
21300     while :; do
21301       case $as_dir in #(
21302       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21303       *) as_qdir=$as_dir;;
21304       esac
21305       as_dirs="'$as_qdir' $as_dirs"
21306       as_dir=`$as_dirname -- "$as_dir" ||
21307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21308          X"$as_dir" : 'X\(//\)[^/]' \| \
21309          X"$as_dir" : 'X\(//\)$' \| \
21310          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21311 echo X"$as_dir" |
21312     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21313             s//\1/
21314             q
21315           }
21316           /^X\(\/\/\)[^/].*/{
21317             s//\1/
21318             q
21319           }
21320           /^X\(\/\/\)$/{
21321             s//\1/
21322             q
21323           }
21324           /^X\(\/\).*/{
21325             s//\1/
21326             q
21327           }
21328           s/.*/./; q'`
21329       test -d "$as_dir" && break
21330     done
21331     test -z "$as_dirs" || eval "mkdir $as_dirs"
21332   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21333 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21334    { (exit 1); exit 1; }; }; }
21335   ac_builddir=.
21336
21337 case "$ac_dir" in
21338 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21339 *)
21340   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21341   # A ".." for each directory in $ac_dir_suffix.
21342   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21343   case $ac_top_builddir_sub in
21344   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21345   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21346   esac ;;
21347 esac
21348 ac_abs_top_builddir=$ac_pwd
21349 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21350 # for backward compatibility:
21351 ac_top_builddir=$ac_top_build_prefix
21352
21353 case $srcdir in
21354   .)  # We are building in place.
21355     ac_srcdir=.
21356     ac_top_srcdir=$ac_top_builddir_sub
21357     ac_abs_top_srcdir=$ac_pwd ;;
21358   [\\/]* | ?:[\\/]* )  # Absolute name.
21359     ac_srcdir=$srcdir$ac_dir_suffix;
21360     ac_top_srcdir=$srcdir
21361     ac_abs_top_srcdir=$srcdir ;;
21362   *) # Relative name.
21363     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21364     ac_top_srcdir=$ac_top_build_prefix$srcdir
21365     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21366 esac
21367 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21368
21369
21370   case $ac_mode in
21371   :F)
21372   #
21373   # CONFIG_FILE
21374   #
21375
21376   case $INSTALL in
21377   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21378   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21379   esac
21380 _ACEOF
21381
21382 cat >>$CONFIG_STATUS <<\_ACEOF
21383 # If the template does not know about datarootdir, expand it.
21384 # FIXME: This hack should be removed a few years after 2.60.
21385 ac_datarootdir_hack=; ac_datarootdir_seen=
21386
21387 case `sed -n '/datarootdir/ {
21388   p
21389   q
21390 }
21391 /@datadir@/p
21392 /@docdir@/p
21393 /@infodir@/p
21394 /@localedir@/p
21395 /@mandir@/p
21396 ' $ac_file_inputs` in
21397 *datarootdir*) ac_datarootdir_seen=yes;;
21398 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21399   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21400 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21401 _ACEOF
21402 cat >>$CONFIG_STATUS <<_ACEOF
21403   ac_datarootdir_hack='
21404   s&@datadir@&$datadir&g
21405   s&@docdir@&$docdir&g
21406   s&@infodir@&$infodir&g
21407   s&@localedir@&$localedir&g
21408   s&@mandir@&$mandir&g
21409     s&\\\${datarootdir}&$datarootdir&g' ;;
21410 esac
21411 _ACEOF
21412
21413 # Neutralize VPATH when `$srcdir' = `.'.
21414 # Shell code in configure.ac might set extrasub.
21415 # FIXME: do we really want to maintain this feature?
21416 cat >>$CONFIG_STATUS <<_ACEOF
21417   sed "$ac_vpsub
21418 $extrasub
21419 _ACEOF
21420 cat >>$CONFIG_STATUS <<\_ACEOF
21421 :t
21422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21423 s&@configure_input@&$configure_input&;t t
21424 s&@top_builddir@&$ac_top_builddir_sub&;t t
21425 s&@srcdir@&$ac_srcdir&;t t
21426 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21427 s&@top_srcdir@&$ac_top_srcdir&;t t
21428 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21429 s&@builddir@&$ac_builddir&;t t
21430 s&@abs_builddir@&$ac_abs_builddir&;t t
21431 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21432 s&@INSTALL@&$ac_INSTALL&;t t
21433 $ac_datarootdir_hack
21434 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21435
21436 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21437   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21438   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21439   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21440 which seems to be undefined.  Please make sure it is defined." >&5
21441 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21442 which seems to be undefined.  Please make sure it is defined." >&2;}
21443
21444   rm -f "$tmp/stdin"
21445   case $ac_file in
21446   -) cat "$tmp/out"; rm -f "$tmp/out";;
21447   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21448   esac
21449  ;;
21450   :H)
21451   #
21452   # CONFIG_HEADER
21453   #
21454 _ACEOF
21455
21456 # Transform confdefs.h into a sed script `conftest.defines', that
21457 # substitutes the proper values into config.h.in to produce config.h.
21458 rm -f conftest.defines conftest.tail
21459 # First, append a space to every undef/define line, to ease matching.
21460 echo 's/$/ /' >conftest.defines
21461 # Then, protect against being on the right side of a sed subst, or in
21462 # an unquoted here document, in config.status.  If some macros were
21463 # called several times there might be several #defines for the same
21464 # symbol, which is useless.  But do not sort them, since the last
21465 # AC_DEFINE must be honored.
21466 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21467 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21468 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21469 # PARAMS is the parameter list in the macro definition--in most cases, it's
21470 # just an empty string.
21471 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21472 ac_dB='\\)[      (].*,\\1define\\2'
21473 ac_dC=' '
21474 ac_dD=' ,'
21475
21476 uniq confdefs.h |
21477   sed -n '
21478         t rset
21479         :rset
21480         s/^[     ]*#[    ]*define[       ][      ]*//
21481         t ok
21482         d
21483         :ok
21484         s/[\\&,]/\\&/g
21485         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21486         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21487   ' >>conftest.defines
21488
21489 # Remove the space that was appended to ease matching.
21490 # Then replace #undef with comments.  This is necessary, for
21491 # example, in the case of _POSIX_SOURCE, which is predefined and required
21492 # on some systems where configure will not decide to define it.
21493 # (The regexp can be short, since the line contains either #define or #undef.)
21494 echo 's/ $//
21495 s,^[     #]*u.*,/* & */,' >>conftest.defines
21496
21497 # Break up conftest.defines:
21498 ac_max_sed_lines=50
21499
21500 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21501 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21502 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21503 # et cetera.
21504 ac_in='$ac_file_inputs'
21505 ac_out='"$tmp/out1"'
21506 ac_nxt='"$tmp/out2"'
21507
21508 while :
21509 do
21510   # Write a here document:
21511     cat >>$CONFIG_STATUS <<_ACEOF
21512     # First, check the format of the line:
21513     cat >"\$tmp/defines.sed" <<\\CEOF
21514 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21515 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21516 b
21517 :def
21518 _ACEOF
21519   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21520   echo 'CEOF
21521     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21522   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21523   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21524   grep . conftest.tail >/dev/null || break
21525   rm -f conftest.defines
21526   mv conftest.tail conftest.defines
21527 done
21528 rm -f conftest.defines conftest.tail
21529
21530 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21531 cat >>$CONFIG_STATUS <<\_ACEOF
21532   if test x"$ac_file" != x-; then
21533     echo "/* $configure_input  */" >"$tmp/config.h"
21534     cat "$ac_result" >>"$tmp/config.h"
21535     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21536       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21537 echo "$as_me: $ac_file is unchanged" >&6;}
21538     else
21539       rm -f $ac_file
21540       mv "$tmp/config.h" $ac_file
21541     fi
21542   else
21543     echo "/* $configure_input  */"
21544     cat "$ac_result"
21545   fi
21546   rm -f "$tmp/out12"
21547 # Compute $ac_file's index in $config_headers.
21548 _am_stamp_count=1
21549 for _am_header in $config_headers :; do
21550   case $_am_header in
21551     $ac_file | $ac_file:* )
21552       break ;;
21553     * )
21554       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21555   esac
21556 done
21557 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21558 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21559          X$ac_file : 'X\(//\)[^/]' \| \
21560          X$ac_file : 'X\(//\)$' \| \
21561          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21562 echo X$ac_file |
21563     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21564             s//\1/
21565             q
21566           }
21567           /^X\(\/\/\)[^/].*/{
21568             s//\1/
21569             q
21570           }
21571           /^X\(\/\/\)$/{
21572             s//\1/
21573             q
21574           }
21575           /^X\(\/\).*/{
21576             s//\1/
21577             q
21578           }
21579           s/.*/./; q'`/stamp-h$_am_stamp_count
21580  ;;
21581
21582   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21583 echo "$as_me: executing $ac_file commands" >&6;}
21584  ;;
21585   esac
21586
21587
21588   case $ac_file$ac_mode in
21589     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21590   # Strip MF so we end up with the name of the file.
21591   mf=`echo "$mf" | sed -e 's/:.*$//'`
21592   # Check whether this is an Automake generated Makefile or not.
21593   # We used to match only the files named `Makefile.in', but
21594   # some people rename them; so instead we look at the file content.
21595   # Grep'ing the first line is not enough: some people post-process
21596   # each Makefile.in and add a new line on top of each file to say so.
21597   # So let's grep whole file.
21598   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21599     dirpart=`$as_dirname -- "$mf" ||
21600 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21601          X"$mf" : 'X\(//\)[^/]' \| \
21602          X"$mf" : 'X\(//\)$' \| \
21603          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21604 echo X"$mf" |
21605     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21606             s//\1/
21607             q
21608           }
21609           /^X\(\/\/\)[^/].*/{
21610             s//\1/
21611             q
21612           }
21613           /^X\(\/\/\)$/{
21614             s//\1/
21615             q
21616           }
21617           /^X\(\/\).*/{
21618             s//\1/
21619             q
21620           }
21621           s/.*/./; q'`
21622   else
21623     continue
21624   fi
21625   # Extract the definition of DEPDIR, am__include, and am__quote
21626   # from the Makefile without running `make'.
21627   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21628   test -z "$DEPDIR" && continue
21629   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21630   test -z "am__include" && continue
21631   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21632   # When using ansi2knr, U may be empty or an underscore; expand it
21633   U=`sed -n 's/^U = //p' < "$mf"`
21634   # Find all dependency output files, they are included files with
21635   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21636   # simplest approach to changing $(DEPDIR) to its actual value in the
21637   # expansion.
21638   for file in `sed -n "
21639     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21640        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21641     # Make sure the directory exists.
21642     test -f "$dirpart/$file" && continue
21643     fdir=`$as_dirname -- "$file" ||
21644 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21645          X"$file" : 'X\(//\)[^/]' \| \
21646          X"$file" : 'X\(//\)$' \| \
21647          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21648 echo X"$file" |
21649     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21650             s//\1/
21651             q
21652           }
21653           /^X\(\/\/\)[^/].*/{
21654             s//\1/
21655             q
21656           }
21657           /^X\(\/\/\)$/{
21658             s//\1/
21659             q
21660           }
21661           /^X\(\/\).*/{
21662             s//\1/
21663             q
21664           }
21665           s/.*/./; q'`
21666     { as_dir=$dirpart/$fdir
21667   case $as_dir in #(
21668   -*) as_dir=./$as_dir;;
21669   esac
21670   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21671     as_dirs=
21672     while :; do
21673       case $as_dir in #(
21674       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21675       *) as_qdir=$as_dir;;
21676       esac
21677       as_dirs="'$as_qdir' $as_dirs"
21678       as_dir=`$as_dirname -- "$as_dir" ||
21679 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21680          X"$as_dir" : 'X\(//\)[^/]' \| \
21681          X"$as_dir" : 'X\(//\)$' \| \
21682          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21683 echo X"$as_dir" |
21684     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21685             s//\1/
21686             q
21687           }
21688           /^X\(\/\/\)[^/].*/{
21689             s//\1/
21690             q
21691           }
21692           /^X\(\/\/\)$/{
21693             s//\1/
21694             q
21695           }
21696           /^X\(\/\).*/{
21697             s//\1/
21698             q
21699           }
21700           s/.*/./; q'`
21701       test -d "$as_dir" && break
21702     done
21703     test -z "$as_dirs" || eval "mkdir $as_dirs"
21704   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21705 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21706    { (exit 1); exit 1; }; }; }
21707     # echo "creating $dirpart/$file"
21708     echo '# dummy' > "$dirpart/$file"
21709   done
21710 done
21711  ;;
21712
21713   esac
21714 done # for ac_tag
21715
21716
21717 { (exit 0); exit 0; }
21718 _ACEOF
21719 chmod +x $CONFIG_STATUS
21720 ac_clean_files=$ac_clean_files_save
21721
21722
21723 # configure is writing to config.log, and then calls config.status.
21724 # config.status does its own redirection, appending to config.log.
21725 # Unfortunately, on DOS this fails, as config.log is still kept open
21726 # by configure, so config.status won't be able to write to it; its
21727 # output is simply discarded.  So we exec the FD to /dev/null,
21728 # effectively closing config.log, so it can be properly (re)opened and
21729 # appended to by config.status.  When coming back to configure, we
21730 # need to make the FD available again.
21731 if test "$no_create" != yes; then
21732   ac_cs_success=:
21733   ac_config_status_args=
21734   test "$silent" = yes &&
21735     ac_config_status_args="$ac_config_status_args --quiet"
21736   exec 5>/dev/null
21737   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21738   exec 5>>config.log
21739   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21740   # would make configure fail if this is the last instruction.
21741   $ac_cs_success || { (exit 1); exit 1; }
21742 fi
21743