[PR2886] Ignore stderr from ocamlc since it prints unresolvable warnings on some...
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.5svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
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 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545 case X$ECHO in
546 X*--fallback-echo)
547   # Remove one level of quotation (which was required for Make).
548   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549   ;;
550 esac
551
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554   # Discard the --no-reexec flag, and continue.
555   shift
556 elif test "X$1" = X--fallback-echo; then
557   # Avoid inline document here, it may be left over
558   :
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560   # Yippee, $echo works!
561   :
562 else
563   # Restart under the correct shell.
564   exec $SHELL "$0" --no-reexec ${1+"$@"}
565 fi
566
567 if test "X$1" = X--fallback-echo; then
568   # used as fallback echo
569   shift
570   cat <<EOF
571 $*
572 EOF
573   exit 0
574 fi
575
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586        echo_test_string=`eval $cmd` &&
587        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588     then
589       break
590     fi
591   done
592 fi
593
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596    test "X$echo_testing_string" = "X$echo_test_string"; then
597   :
598 else
599   # The Solaris, AIX, and Digital Unix default echo programs unquote
600   # backslashes.  This makes it impossible to quote backslashes using
601   #   echo "$something" | sed 's/\\/\\\\/g'
602   #
603   # So, first we look for a working echo in the user's PATH.
604
605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606   for dir in $PATH /usr/ucb; do
607     IFS="$lt_save_ifs"
608     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611        test "X$echo_testing_string" = "X$echo_test_string"; then
612       echo="$dir/echo"
613       break
614     fi
615   done
616   IFS="$lt_save_ifs"
617
618   if test "X$echo" = Xecho; then
619     # We didn't find a better echo, so look for alternatives.
620     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       # This shell has a builtin print -r that does the trick.
624       echo='print -r'
625     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626          test "X$CONFIG_SHELL" != X/bin/ksh; then
627       # If we have ksh, try running configure again with it.
628       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629       export ORIGINAL_CONFIG_SHELL
630       CONFIG_SHELL=/bin/ksh
631       export CONFIG_SHELL
632       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633     else
634       # Try using printf.
635       echo='printf %s\n'
636       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638          test "X$echo_testing_string" = "X$echo_test_string"; then
639         # Cool, printf works
640         :
641       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642            test "X$echo_testing_string" = 'X\t' &&
643            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644            test "X$echo_testing_string" = "X$echo_test_string"; then
645         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646         export CONFIG_SHELL
647         SHELL="$CONFIG_SHELL"
648         export SHELL
649         echo="$CONFIG_SHELL $0 --fallback-echo"
650       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651            test "X$echo_testing_string" = 'X\t' &&
652            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653            test "X$echo_testing_string" = "X$echo_test_string"; then
654         echo="$CONFIG_SHELL $0 --fallback-echo"
655       else
656         # maybe with a smaller string...
657         prev=:
658
659         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661           then
662             break
663           fi
664           prev="$cmd"
665         done
666
667         if test "$prev" != 'sed 50q "$0"'; then
668           echo_test_string=`eval $prev`
669           export echo_test_string
670           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671         else
672           # Oops.  We lost completely, so just stick with echo.
673           echo=echo
674         fi
675       fi
676     fi
677   fi
678 fi
679 fi
680
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 fi
687
688
689
690
691 tagnames=${tagnames+${tagnames},}CXX
692
693 tagnames=${tagnames+${tagnames},}F77
694
695 exec 7<&0 </dev/null 6>&1
696
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702 #
703 # Initializations.
704 #
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
714
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.5svn'
719 PACKAGE_STRING='llvm 2.5svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
810 OS
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 BUILD_CXX
831 CVSBUILD
832 ENABLE_OPTIMIZED
833 DISABLE_ASSERTIONS
834 ENABLE_EXPENSIVE_CHECKS
835 EXPENSIVE_CHECKS
836 DEBUG_RUNTIME
837 JIT
838 TARGET_HAS_JIT
839 ENABLE_DOXYGEN
840 ENABLE_THREADS
841 ENABLE_PIC
842 TARGETS_TO_BUILD
843 ENABLE_CBE_PRINTF_A
844 EXTRA_OPTIONS
845 CXX
846 CXXFLAGS
847 ac_ct_CXX
848 LEX
849 LEXLIB
850 LEX_OUTPUT_ROOT
851 FLEX
852 YACC
853 YFLAGS
854 BISON
855 NM
856 ifGNUmake
857 LN_S
858 CMP
859 CP
860 DATE
861 FIND
862 MKDIR
863 MV
864 RANLIB
865 RM
866 SED
867 TAR
868 BINPWD
869 GRAPHVIZ
870 DOT
871 GV
872 DOTTY
873 PERL
874 HAVE_PERL
875 INSTALL_PROGRAM
876 INSTALL_SCRIPT
877 INSTALL_DATA
878 BZIP2
879 DOXYGEN
880 GROFF
881 GZIP
882 POD2HTML
883 POD2MAN
884 RUNTEST
885 TCLSH
886 ZIP
887 OCAMLC
888 OCAMLOPT
889 OCAMLDEP
890 OCAMLDOC
891 GAS
892 INSTALL_LTDL_TRUE
893 INSTALL_LTDL_FALSE
894 CONVENIENCE_LTDL_TRUE
895 CONVENIENCE_LTDL_FALSE
896 LIBADD_DL
897 ECHO
898 AR
899 STRIP
900 CXXCPP
901 F77
902 FFLAGS
903 ac_ct_F77
904 LIBTOOL
905 LLVMGCC
906 LLVMGXX
907 USE_UDIS86
908 HAVE_PTHREAD
909 HUGE_VAL_SANITY
910 ALLOCA
911 MMAP_FILE
912 LLVMCC1
913 LLVMCC1PLUS
914 LLVMGCCDIR
915 LLVMGCCLIBEXEC
916 LLVMGCC_VERSION
917 LLVMGCC_MAJVERS
918 LLVMGCC_LANGS
919 SHLIBEXT
920 LLVM_PREFIX
921 LLVM_BINDIR
922 LLVM_LIBDIR
923 LLVM_DATADIR
924 LLVM_DOCSDIR
925 LLVM_ETCDIR
926 LLVM_INCLUDEDIR
927 LLVM_INFODIR
928 LLVM_MANDIR
929 LLVM_CONFIGTIME
930 BINDINGS_TO_BUILD
931 ALL_BINDINGS
932 OCAML_LIBDIR
933 ENABLE_VISIBILITY_INLINES_HIDDEN
934 LIBOBJS
935 LTLIBOBJS'
936 ac_subst_files=''
937       ac_precious_vars='build_alias
938 host_alias
939 target_alias
940 CC
941 CFLAGS
942 LDFLAGS
943 CPPFLAGS
944 CPP
945 CXX
946 CXXFLAGS
947 CCC
948 YACC
949 YFLAGS
950 CXXCPP
951 F77
952 FFLAGS'
953 ac_subdirs_all='projects/sample
954 projects/privbracket
955 projects/llvm-stacker
956 projects/llvm-test
957 projects/test-suite
958 projects/llvm-reopt
959 projects/llvm-gcc
960 projects/llvm-java
961 projects/llvm-tv
962 projects/llvm-poolalloc
963 projects/poolalloc
964 projects/llvm-kernel'
965
966 # Initialize some variables set by options.
967 ac_init_help=
968 ac_init_version=false
969 # The variables have the same names as the options, with
970 # dashes changed to underlines.
971 cache_file=/dev/null
972 exec_prefix=NONE
973 no_create=
974 no_recursion=
975 prefix=NONE
976 program_prefix=NONE
977 program_suffix=NONE
978 program_transform_name=s,x,x,
979 silent=
980 site=
981 srcdir=
982 verbose=
983 x_includes=NONE
984 x_libraries=NONE
985
986 # Installation directory options.
987 # These are left unexpanded so users can "make install exec_prefix=/foo"
988 # and all the variables that are supposed to be based on exec_prefix
989 # by default will actually change.
990 # Use braces instead of parens because sh, perl, etc. also accept them.
991 # (The list follows the same order as the GNU Coding Standards.)
992 bindir='${exec_prefix}/bin'
993 sbindir='${exec_prefix}/sbin'
994 libexecdir='${exec_prefix}/libexec'
995 datarootdir='${prefix}/share'
996 datadir='${datarootdir}'
997 sysconfdir='${prefix}/etc'
998 sharedstatedir='${prefix}/com'
999 localstatedir='${prefix}/var'
1000 includedir='${prefix}/include'
1001 oldincludedir='/usr/include'
1002 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1003 infodir='${datarootdir}/info'
1004 htmldir='${docdir}'
1005 dvidir='${docdir}'
1006 pdfdir='${docdir}'
1007 psdir='${docdir}'
1008 libdir='${exec_prefix}/lib'
1009 localedir='${datarootdir}/locale'
1010 mandir='${datarootdir}/man'
1011
1012 ac_prev=
1013 ac_dashdash=
1014 for ac_option
1015 do
1016   # If the previous option needs an argument, assign it.
1017   if test -n "$ac_prev"; then
1018     eval $ac_prev=\$ac_option
1019     ac_prev=
1020     continue
1021   fi
1022
1023   case $ac_option in
1024   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025   *)    ac_optarg=yes ;;
1026   esac
1027
1028   # Accept the important Cygnus configure options, so we can diagnose typos.
1029
1030   case $ac_dashdash$ac_option in
1031   --)
1032     ac_dashdash=yes ;;
1033
1034   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035     ac_prev=bindir ;;
1036   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1037     bindir=$ac_optarg ;;
1038
1039   -build | --build | --buil | --bui | --bu)
1040     ac_prev=build_alias ;;
1041   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1042     build_alias=$ac_optarg ;;
1043
1044   -cache-file | --cache-file | --cache-fil | --cache-fi \
1045   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1046     ac_prev=cache_file ;;
1047   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1048   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1049     cache_file=$ac_optarg ;;
1050
1051   --config-cache | -C)
1052     cache_file=config.cache ;;
1053
1054   -datadir | --datadir | --datadi | --datad)
1055     ac_prev=datadir ;;
1056   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1057     datadir=$ac_optarg ;;
1058
1059   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1060   | --dataroo | --dataro | --datar)
1061     ac_prev=datarootdir ;;
1062   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1063   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1064     datarootdir=$ac_optarg ;;
1065
1066   -disable-* | --disable-*)
1067     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068     # Reject names that are not valid shell variable names.
1069     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1070       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1071    { (exit 1); exit 1; }; }
1072     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1073     eval enable_$ac_feature=no ;;
1074
1075   -docdir | --docdir | --docdi | --doc | --do)
1076     ac_prev=docdir ;;
1077   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078     docdir=$ac_optarg ;;
1079
1080   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081     ac_prev=dvidir ;;
1082   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083     dvidir=$ac_optarg ;;
1084
1085   -enable-* | --enable-*)
1086     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087     # Reject names that are not valid shell variable names.
1088     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1089       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1090    { (exit 1); exit 1; }; }
1091     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1092     eval enable_$ac_feature=\$ac_optarg ;;
1093
1094   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096   | --exec | --exe | --ex)
1097     ac_prev=exec_prefix ;;
1098   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100   | --exec=* | --exe=* | --ex=*)
1101     exec_prefix=$ac_optarg ;;
1102
1103   -gas | --gas | --ga | --g)
1104     # Obsolete; use --with-gas.
1105     with_gas=yes ;;
1106
1107   -help | --help | --hel | --he | -h)
1108     ac_init_help=long ;;
1109   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110     ac_init_help=recursive ;;
1111   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112     ac_init_help=short ;;
1113
1114   -host | --host | --hos | --ho)
1115     ac_prev=host_alias ;;
1116   -host=* | --host=* | --hos=* | --ho=*)
1117     host_alias=$ac_optarg ;;
1118
1119   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120     ac_prev=htmldir ;;
1121   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122   | --ht=*)
1123     htmldir=$ac_optarg ;;
1124
1125   -includedir | --includedir | --includedi | --included | --include \
1126   | --includ | --inclu | --incl | --inc)
1127     ac_prev=includedir ;;
1128   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129   | --includ=* | --inclu=* | --incl=* | --inc=*)
1130     includedir=$ac_optarg ;;
1131
1132   -infodir | --infodir | --infodi | --infod | --info | --inf)
1133     ac_prev=infodir ;;
1134   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135     infodir=$ac_optarg ;;
1136
1137   -libdir | --libdir | --libdi | --libd)
1138     ac_prev=libdir ;;
1139   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140     libdir=$ac_optarg ;;
1141
1142   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143   | --libexe | --libex | --libe)
1144     ac_prev=libexecdir ;;
1145   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146   | --libexe=* | --libex=* | --libe=*)
1147     libexecdir=$ac_optarg ;;
1148
1149   -localedir | --localedir | --localedi | --localed | --locale)
1150     ac_prev=localedir ;;
1151   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152     localedir=$ac_optarg ;;
1153
1154   -localstatedir | --localstatedir | --localstatedi | --localstated \
1155   | --localstate | --localstat | --localsta | --localst | --locals)
1156     ac_prev=localstatedir ;;
1157   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159     localstatedir=$ac_optarg ;;
1160
1161   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162     ac_prev=mandir ;;
1163   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164     mandir=$ac_optarg ;;
1165
1166   -nfp | --nfp | --nf)
1167     # Obsolete; use --without-fp.
1168     with_fp=no ;;
1169
1170   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171   | --no-cr | --no-c | -n)
1172     no_create=yes ;;
1173
1174   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176     no_recursion=yes ;;
1177
1178   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180   | --oldin | --oldi | --old | --ol | --o)
1181     ac_prev=oldincludedir ;;
1182   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185     oldincludedir=$ac_optarg ;;
1186
1187   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188     ac_prev=prefix ;;
1189   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190     prefix=$ac_optarg ;;
1191
1192   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193   | --program-pre | --program-pr | --program-p)
1194     ac_prev=program_prefix ;;
1195   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197     program_prefix=$ac_optarg ;;
1198
1199   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200   | --program-suf | --program-su | --program-s)
1201     ac_prev=program_suffix ;;
1202   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204     program_suffix=$ac_optarg ;;
1205
1206   -program-transform-name | --program-transform-name \
1207   | --program-transform-nam | --program-transform-na \
1208   | --program-transform-n | --program-transform- \
1209   | --program-transform | --program-transfor \
1210   | --program-transfo | --program-transf \
1211   | --program-trans | --program-tran \
1212   | --progr-tra | --program-tr | --program-t)
1213     ac_prev=program_transform_name ;;
1214   -program-transform-name=* | --program-transform-name=* \
1215   | --program-transform-nam=* | --program-transform-na=* \
1216   | --program-transform-n=* | --program-transform-=* \
1217   | --program-transform=* | --program-transfor=* \
1218   | --program-transfo=* | --program-transf=* \
1219   | --program-trans=* | --program-tran=* \
1220   | --progr-tra=* | --program-tr=* | --program-t=*)
1221     program_transform_name=$ac_optarg ;;
1222
1223   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224     ac_prev=pdfdir ;;
1225   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226     pdfdir=$ac_optarg ;;
1227
1228   -psdir | --psdir | --psdi | --psd | --ps)
1229     ac_prev=psdir ;;
1230   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231     psdir=$ac_optarg ;;
1232
1233   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234   | -silent | --silent | --silen | --sile | --sil)
1235     silent=yes ;;
1236
1237   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238     ac_prev=sbindir ;;
1239   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240   | --sbi=* | --sb=*)
1241     sbindir=$ac_optarg ;;
1242
1243   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245   | --sharedst | --shareds | --shared | --share | --shar \
1246   | --sha | --sh)
1247     ac_prev=sharedstatedir ;;
1248   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251   | --sha=* | --sh=*)
1252     sharedstatedir=$ac_optarg ;;
1253
1254   -site | --site | --sit)
1255     ac_prev=site ;;
1256   -site=* | --site=* | --sit=*)
1257     site=$ac_optarg ;;
1258
1259   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260     ac_prev=srcdir ;;
1261   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262     srcdir=$ac_optarg ;;
1263
1264   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265   | --syscon | --sysco | --sysc | --sys | --sy)
1266     ac_prev=sysconfdir ;;
1267   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269     sysconfdir=$ac_optarg ;;
1270
1271   -target | --target | --targe | --targ | --tar | --ta | --t)
1272     ac_prev=target_alias ;;
1273   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274     target_alias=$ac_optarg ;;
1275
1276   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277     verbose=yes ;;
1278
1279   -version | --version | --versio | --versi | --vers | -V)
1280     ac_init_version=: ;;
1281
1282   -with-* | --with-*)
1283     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284     # Reject names that are not valid shell variable names.
1285     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1286       { echo "$as_me: error: invalid package name: $ac_package" >&2
1287    { (exit 1); exit 1; }; }
1288     ac_package=`echo $ac_package| sed 's/-/_/g'`
1289     eval with_$ac_package=\$ac_optarg ;;
1290
1291   -without-* | --without-*)
1292     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293     # Reject names that are not valid shell variable names.
1294     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1295       { echo "$as_me: error: invalid package name: $ac_package" >&2
1296    { (exit 1); exit 1; }; }
1297     ac_package=`echo $ac_package | sed 's/-/_/g'`
1298     eval with_$ac_package=no ;;
1299
1300   --x)
1301     # Obsolete; use --with-x.
1302     with_x=yes ;;
1303
1304   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1305   | --x-incl | --x-inc | --x-in | --x-i)
1306     ac_prev=x_includes ;;
1307   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1308   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1309     x_includes=$ac_optarg ;;
1310
1311   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1312   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1313     ac_prev=x_libraries ;;
1314   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1315   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1316     x_libraries=$ac_optarg ;;
1317
1318   -*) { echo "$as_me: error: unrecognized option: $ac_option
1319 Try \`$0 --help' for more information." >&2
1320    { (exit 1); exit 1; }; }
1321     ;;
1322
1323   *=*)
1324     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325     # Reject names that are not valid shell variable names.
1326     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1327       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1328    { (exit 1); exit 1; }; }
1329     eval $ac_envvar=\$ac_optarg
1330     export $ac_envvar ;;
1331
1332   *)
1333     # FIXME: should be removed in autoconf 3.0.
1334     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1335     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1336       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1337     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1338     ;;
1339
1340   esac
1341 done
1342
1343 if test -n "$ac_prev"; then
1344   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1345   { echo "$as_me: error: missing argument to $ac_option" >&2
1346    { (exit 1); exit 1; }; }
1347 fi
1348
1349 # Be sure to have absolute directory names.
1350 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351                 datadir sysconfdir sharedstatedir localstatedir includedir \
1352                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353                 libdir localedir mandir
1354 do
1355   eval ac_val=\$$ac_var
1356   case $ac_val in
1357     [\\/$]* | ?:[\\/]* )  continue;;
1358     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359   esac
1360   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1361    { (exit 1); exit 1; }; }
1362 done
1363
1364 # There might be people who depend on the old broken behavior: `$host'
1365 # used to hold the argument of --host etc.
1366 # FIXME: To remove some day.
1367 build=$build_alias
1368 host=$host_alias
1369 target=$target_alias
1370
1371 # FIXME: To remove some day.
1372 if test "x$host_alias" != x; then
1373   if test "x$build_alias" = x; then
1374     cross_compiling=maybe
1375     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1376     If a cross compiler is detected then cross compile mode will be used." >&2
1377   elif test "x$build_alias" != "x$host_alias"; then
1378     cross_compiling=yes
1379   fi
1380 fi
1381
1382 ac_tool_prefix=
1383 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384
1385 test "$silent" = yes && exec 6>/dev/null
1386
1387
1388 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389 ac_ls_di=`ls -di .` &&
1390 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391   { echo "$as_me: error: Working directory cannot be determined" >&2
1392    { (exit 1); exit 1; }; }
1393 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394   { echo "$as_me: error: pwd does not report name of working directory" >&2
1395    { (exit 1); exit 1; }; }
1396
1397
1398 # Find the source files, if location was not specified.
1399 if test -z "$srcdir"; then
1400   ac_srcdir_defaulted=yes
1401   # Try the directory containing this script, then the parent directory.
1402   ac_confdir=`$as_dirname -- "$0" ||
1403 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404          X"$0" : 'X\(//\)[^/]' \| \
1405          X"$0" : 'X\(//\)$' \| \
1406          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1407 echo X"$0" |
1408     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409             s//\1/
1410             q
1411           }
1412           /^X\(\/\/\)[^/].*/{
1413             s//\1/
1414             q
1415           }
1416           /^X\(\/\/\)$/{
1417             s//\1/
1418             q
1419           }
1420           /^X\(\/\).*/{
1421             s//\1/
1422             q
1423           }
1424           s/.*/./; q'`
1425   srcdir=$ac_confdir
1426   if test ! -r "$srcdir/$ac_unique_file"; then
1427     srcdir=..
1428   fi
1429 else
1430   ac_srcdir_defaulted=no
1431 fi
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1435    { (exit 1); exit 1; }; }
1436 fi
1437 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1438 ac_abs_confdir=`(
1439         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1440    { (exit 1); exit 1; }; }
1441         pwd)`
1442 # When building in place, set srcdir=.
1443 if test "$ac_abs_confdir" = "$ac_pwd"; then
1444   srcdir=.
1445 fi
1446 # Remove unnecessary trailing slashes from srcdir.
1447 # Double slashes in file names in object file debugging info
1448 # mess up M-x gdb in Emacs.
1449 case $srcdir in
1450 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451 esac
1452 for ac_var in $ac_precious_vars; do
1453   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454   eval ac_env_${ac_var}_value=\$${ac_var}
1455   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457 done
1458
1459 #
1460 # Report the --help message.
1461 #
1462 if test "$ac_init_help" = "long"; then
1463   # Omit some internal or obsolete options to make the list less imposing.
1464   # This message is too long to be a string in the A/UX 3.1 sh.
1465   cat <<_ACEOF
1466 \`configure' configures llvm 2.5svn to adapt to many kinds of systems.
1467
1468 Usage: $0 [OPTION]... [VAR=VALUE]...
1469
1470 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471 VAR=VALUE.  See below for descriptions of some of the useful variables.
1472
1473 Defaults for the options are specified in brackets.
1474
1475 Configuration:
1476   -h, --help              display this help and exit
1477       --help=short        display options specific to this package
1478       --help=recursive    display the short help of all the included packages
1479   -V, --version           display version information and exit
1480   -q, --quiet, --silent   do not print \`checking...' messages
1481       --cache-file=FILE   cache test results in FILE [disabled]
1482   -C, --config-cache      alias for \`--cache-file=config.cache'
1483   -n, --no-create         do not create output files
1484       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1485
1486 Installation directories:
1487   --prefix=PREFIX         install architecture-independent files in PREFIX
1488                           [$ac_default_prefix]
1489   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1490                           [PREFIX]
1491
1492 By default, \`make install' will install all the files in
1493 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1494 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495 for instance \`--prefix=\$HOME'.
1496
1497 For better control, use the options below.
1498
1499 Fine tuning of the installation directories:
1500   --bindir=DIR           user executables [EPREFIX/bin]
1501   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1502   --libexecdir=DIR       program executables [EPREFIX/libexec]
1503   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1504   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1505   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1506   --libdir=DIR           object code libraries [EPREFIX/lib]
1507   --includedir=DIR       C header files [PREFIX/include]
1508   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1509   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1510   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1511   --infodir=DIR          info documentation [DATAROOTDIR/info]
1512   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1513   --mandir=DIR           man documentation [DATAROOTDIR/man]
1514   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1515   --htmldir=DIR          html documentation [DOCDIR]
1516   --dvidir=DIR           dvi documentation [DOCDIR]
1517   --pdfdir=DIR           pdf documentation [DOCDIR]
1518   --psdir=DIR            ps documentation [DOCDIR]
1519 _ACEOF
1520
1521   cat <<\_ACEOF
1522
1523 System types:
1524   --build=BUILD     configure for building on BUILD [guessed]
1525   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1526   --target=TARGET   configure for building compilers for TARGET [HOST]
1527 _ACEOF
1528 fi
1529
1530 if test -n "$ac_init_help"; then
1531   case $ac_init_help in
1532      short | recursive ) echo "Configuration of llvm 2.5svn:";;
1533    esac
1534   cat <<\_ACEOF
1535
1536 Optional Features:
1537   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1538   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1539   --enable-optimized
1540   --enable-assertions
1541   --enable-expensive-checks
1542
1543   --enable-debug-runtime
1544   --enable-jit            Enable Just In Time Compiling (default is YES)
1545   --enable-doxygen        Build doxygen documentation (default is NO)
1546   --enable-threads        Use threads if available (default is YES)
1547   --enable-pic            Build LLVM with Position Independent Code (default
1548                           is NO)
1549   --enable-targets        Build specific host targets:
1550                           all,host-only,{target-name} (default=all)
1551   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1552                           %a (default is YES)
1553   --enable-bindings       Build specific language bindings:
1554                           all,auto,none,{binding-name} (default=auto)
1555   --enable-ltdl-install   install libltdl
1556   --enable-shared[=PKGS]  build shared libraries
1557                           [default=yes]
1558   --enable-static[=PKGS]  build static libraries
1559                           [default=yes]
1560   --enable-fast-install[=PKGS]
1561                           optimize for fast installation
1562                           [default=yes]
1563   --disable-libtool-lock  avoid locking (might break parallel builds)
1564
1565 Optional Packages:
1566   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1567   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1568   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1569                           searches PATH)
1570   --with-llvmgcc          Specify location of llvm-gcc driver (default
1571                           searches PATH)
1572   --with-llvmgxx          Specify location of llvm-g++ driver (default
1573                           searches PATH)
1574   --with-extra-options    Specify addtional options to compile LLVM with
1575   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1576                           is stdlib)
1577   --with-tclinclude       directory where tcl headers are
1578   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1579   --with-pic              try to use only PIC/non-PIC objects [default=use
1580                           both]
1581   --with-tags[=TAGS]      include additional configurations [automatic]
1582   --with-udis86=<path>    Use udis86 external x86 disassembler library
1583
1584 Some influential environment variables:
1585   CC          C compiler command
1586   CFLAGS      C compiler flags
1587   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1588               nonstandard directory <lib dir>
1589   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590               you have headers in a nonstandard directory <include dir>
1591   CPP         C preprocessor
1592   CXX         C++ compiler command
1593   CXXFLAGS    C++ compiler flags
1594   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1595               the first program found out of: `bison -y', `byacc', `yacc'.
1596   YFLAGS      The list of arguments that will be passed by default to $YACC.
1597               This script will default YFLAGS to the empty string to avoid a
1598               default value of `-d' given by some make applications.
1599   CXXCPP      C++ preprocessor
1600   F77         Fortran 77 compiler command
1601   FFLAGS      Fortran 77 compiler flags
1602
1603 Use these variables to override the choices made by `configure' or to help
1604 it to find libraries and programs with nonstandard names/locations.
1605
1606 Report bugs to <llvmbugs@cs.uiuc.edu>.
1607 _ACEOF
1608 ac_status=$?
1609 fi
1610
1611 if test "$ac_init_help" = "recursive"; then
1612   # If there are subdirs, report their specific --help.
1613   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614     test -d "$ac_dir" || continue
1615     ac_builddir=.
1616
1617 case "$ac_dir" in
1618 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *)
1620   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1621   # A ".." for each directory in $ac_dir_suffix.
1622   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1623   case $ac_top_builddir_sub in
1624   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626   esac ;;
1627 esac
1628 ac_abs_top_builddir=$ac_pwd
1629 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630 # for backward compatibility:
1631 ac_top_builddir=$ac_top_build_prefix
1632
1633 case $srcdir in
1634   .)  # We are building in place.
1635     ac_srcdir=.
1636     ac_top_srcdir=$ac_top_builddir_sub
1637     ac_abs_top_srcdir=$ac_pwd ;;
1638   [\\/]* | ?:[\\/]* )  # Absolute name.
1639     ac_srcdir=$srcdir$ac_dir_suffix;
1640     ac_top_srcdir=$srcdir
1641     ac_abs_top_srcdir=$srcdir ;;
1642   *) # Relative name.
1643     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644     ac_top_srcdir=$ac_top_build_prefix$srcdir
1645     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646 esac
1647 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648
1649     cd "$ac_dir" || { ac_status=$?; continue; }
1650     # Check for guested configure.
1651     if test -f "$ac_srcdir/configure.gnu"; then
1652       echo &&
1653       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654     elif test -f "$ac_srcdir/configure"; then
1655       echo &&
1656       $SHELL "$ac_srcdir/configure" --help=recursive
1657     else
1658       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659     fi || ac_status=$?
1660     cd "$ac_pwd" || { ac_status=$?; break; }
1661   done
1662 fi
1663
1664 test -n "$ac_init_help" && exit $ac_status
1665 if $ac_init_version; then
1666   cat <<\_ACEOF
1667 llvm configure 2.5svn
1668 generated by GNU Autoconf 2.60
1669
1670 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1671 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1672 This configure script is free software; the Free Software Foundation
1673 gives unlimited permission to copy, distribute and modify it.
1674
1675 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1676 _ACEOF
1677   exit
1678 fi
1679 cat >config.log <<_ACEOF
1680 This file contains any messages produced by compilers while
1681 running configure, to aid debugging if configure makes a mistake.
1682
1683 It was created by llvm $as_me 2.5svn, which was
1684 generated by GNU Autoconf 2.60.  Invocation command line was
1685
1686   $ $0 $@
1687
1688 _ACEOF
1689 exec 5>>config.log
1690 {
1691 cat <<_ASUNAME
1692 ## --------- ##
1693 ## Platform. ##
1694 ## --------- ##
1695
1696 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1697 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1698 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1699 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1700 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1701
1702 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1703 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1704
1705 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1706 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1707 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1708 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1709 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1710 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1711 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1712
1713 _ASUNAME
1714
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1717 do
1718   IFS=$as_save_IFS
1719   test -z "$as_dir" && as_dir=.
1720   echo "PATH: $as_dir"
1721 done
1722 IFS=$as_save_IFS
1723
1724 } >&5
1725
1726 cat >&5 <<_ACEOF
1727
1728
1729 ## ----------- ##
1730 ## Core tests. ##
1731 ## ----------- ##
1732
1733 _ACEOF
1734
1735
1736 # Keep a trace of the command line.
1737 # Strip out --no-create and --no-recursion so they do not pile up.
1738 # Strip out --silent because we don't want to record it for future runs.
1739 # Also quote any args containing shell meta-characters.
1740 # Make two passes to allow for proper duplicate-argument suppression.
1741 ac_configure_args=
1742 ac_configure_args0=
1743 ac_configure_args1=
1744 ac_must_keep_next=false
1745 for ac_pass in 1 2
1746 do
1747   for ac_arg
1748   do
1749     case $ac_arg in
1750     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1751     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1752     | -silent | --silent | --silen | --sile | --sil)
1753       continue ;;
1754     *\'*)
1755       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1756     esac
1757     case $ac_pass in
1758     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1759     2)
1760       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1761       if test $ac_must_keep_next = true; then
1762         ac_must_keep_next=false # Got value, back to normal.
1763       else
1764         case $ac_arg in
1765           *=* | --config-cache | -C | -disable-* | --disable-* \
1766           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1767           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1768           | -with-* | --with-* | -without-* | --without-* | --x)
1769             case "$ac_configure_args0 " in
1770               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1771             esac
1772             ;;
1773           -* ) ac_must_keep_next=true ;;
1774         esac
1775       fi
1776       ac_configure_args="$ac_configure_args '$ac_arg'"
1777       ;;
1778     esac
1779   done
1780 done
1781 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1782 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1783
1784 # When interrupted or exit'd, cleanup temporary files, and complete
1785 # config.log.  We remove comments because anyway the quotes in there
1786 # would cause problems or look ugly.
1787 # WARNING: Use '\'' to represent an apostrophe within the trap.
1788 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1789 trap 'exit_status=$?
1790   # Save into config.log some information that might help in debugging.
1791   {
1792     echo
1793
1794     cat <<\_ASBOX
1795 ## ---------------- ##
1796 ## Cache variables. ##
1797 ## ---------------- ##
1798 _ASBOX
1799     echo
1800     # The following way of writing the cache mishandles newlines in values,
1801 (
1802   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1803     eval ac_val=\$$ac_var
1804     case $ac_val in #(
1805     *${as_nl}*)
1806       case $ac_var in #(
1807       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1808 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1809       esac
1810       case $ac_var in #(
1811       _ | IFS | as_nl) ;; #(
1812       *) $as_unset $ac_var ;;
1813       esac ;;
1814     esac
1815   done
1816   (set) 2>&1 |
1817     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1818     *${as_nl}ac_space=\ *)
1819       sed -n \
1820         "s/'\''/'\''\\\\'\'''\''/g;
1821           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1822       ;; #(
1823     *)
1824       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1825       ;;
1826     esac |
1827     sort
1828 )
1829     echo
1830
1831     cat <<\_ASBOX
1832 ## ----------------- ##
1833 ## Output variables. ##
1834 ## ----------------- ##
1835 _ASBOX
1836     echo
1837     for ac_var in $ac_subst_vars
1838     do
1839       eval ac_val=\$$ac_var
1840       case $ac_val in
1841       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1842       esac
1843       echo "$ac_var='\''$ac_val'\''"
1844     done | sort
1845     echo
1846
1847     if test -n "$ac_subst_files"; then
1848       cat <<\_ASBOX
1849 ## ------------------- ##
1850 ## File substitutions. ##
1851 ## ------------------- ##
1852 _ASBOX
1853       echo
1854       for ac_var in $ac_subst_files
1855       do
1856         eval ac_val=\$$ac_var
1857         case $ac_val in
1858         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859         esac
1860         echo "$ac_var='\''$ac_val'\''"
1861       done | sort
1862       echo
1863     fi
1864
1865     if test -s confdefs.h; then
1866       cat <<\_ASBOX
1867 ## ----------- ##
1868 ## confdefs.h. ##
1869 ## ----------- ##
1870 _ASBOX
1871       echo
1872       cat confdefs.h
1873       echo
1874     fi
1875     test "$ac_signal" != 0 &&
1876       echo "$as_me: caught signal $ac_signal"
1877     echo "$as_me: exit $exit_status"
1878   } >&5
1879   rm -f core *.core core.conftest.* &&
1880     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1881     exit $exit_status
1882 ' 0
1883 for ac_signal in 1 2 13 15; do
1884   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1885 done
1886 ac_signal=0
1887
1888 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1889 rm -f -r conftest* confdefs.h
1890
1891 # Predefined preprocessor variables.
1892
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_NAME "$PACKAGE_NAME"
1895 _ACEOF
1896
1897
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1900 _ACEOF
1901
1902
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1905 _ACEOF
1906
1907
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_STRING "$PACKAGE_STRING"
1910 _ACEOF
1911
1912
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1915 _ACEOF
1916
1917
1918 # Let the site file select an alternate cache file if it wants to.
1919 # Prefer explicitly selected file to automatically selected ones.
1920 if test -n "$CONFIG_SITE"; then
1921   set x "$CONFIG_SITE"
1922 elif test "x$prefix" != xNONE; then
1923   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1924 else
1925   set x "$ac_default_prefix/share/config.site" \
1926         "$ac_default_prefix/etc/config.site"
1927 fi
1928 shift
1929 for ac_site_file
1930 do
1931   if test -r "$ac_site_file"; then
1932     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1933 echo "$as_me: loading site script $ac_site_file" >&6;}
1934     sed 's/^/| /' "$ac_site_file" >&5
1935     . "$ac_site_file"
1936   fi
1937 done
1938
1939 if test -r "$cache_file"; then
1940   # Some versions of bash will fail to source /dev/null (special
1941   # files actually), so we avoid doing that.
1942   if test -f "$cache_file"; then
1943     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1944 echo "$as_me: loading cache $cache_file" >&6;}
1945     case $cache_file in
1946       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1947       *)                      . "./$cache_file";;
1948     esac
1949   fi
1950 else
1951   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1952 echo "$as_me: creating cache $cache_file" >&6;}
1953   >$cache_file
1954 fi
1955
1956 # Check that the precious variables saved in the cache have kept the same
1957 # value.
1958 ac_cache_corrupted=false
1959 for ac_var in $ac_precious_vars; do
1960   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1961   eval ac_new_set=\$ac_env_${ac_var}_set
1962   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1963   eval ac_new_val=\$ac_env_${ac_var}_value
1964   case $ac_old_set,$ac_new_set in
1965     set,)
1966       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1967 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1968       ac_cache_corrupted=: ;;
1969     ,set)
1970       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1971 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1972       ac_cache_corrupted=: ;;
1973     ,);;
1974     *)
1975       if test "x$ac_old_val" != "x$ac_new_val"; then
1976         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1977 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1978         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1979 echo "$as_me:   former value:  $ac_old_val" >&2;}
1980         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1981 echo "$as_me:   current value: $ac_new_val" >&2;}
1982         ac_cache_corrupted=:
1983       fi;;
1984   esac
1985   # Pass precious variables to config.status.
1986   if test "$ac_new_set" = set; then
1987     case $ac_new_val in
1988     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1989     *) ac_arg=$ac_var=$ac_new_val ;;
1990     esac
1991     case " $ac_configure_args " in
1992       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1993       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1994     esac
1995   fi
1996 done
1997 if $ac_cache_corrupted; then
1998   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1999 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2000   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2001 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2002    { (exit 1); exit 1; }; }
2003 fi
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029 ac_ext=c
2030 ac_cpp='$CPP $CPPFLAGS'
2031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034
2035
2036
2037 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2038
2039
2040
2041
2042
2043
2044
2045 ac_aux_dir=
2046 for ac_dir in autoconf "$srcdir"/autoconf; do
2047   if test -f "$ac_dir/install-sh"; then
2048     ac_aux_dir=$ac_dir
2049     ac_install_sh="$ac_aux_dir/install-sh -c"
2050     break
2051   elif test -f "$ac_dir/install.sh"; then
2052     ac_aux_dir=$ac_dir
2053     ac_install_sh="$ac_aux_dir/install.sh -c"
2054     break
2055   elif test -f "$ac_dir/shtool"; then
2056     ac_aux_dir=$ac_dir
2057     ac_install_sh="$ac_aux_dir/shtool install -c"
2058     break
2059   fi
2060 done
2061 if test -z "$ac_aux_dir"; then
2062   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2063 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2064    { (exit 1); exit 1; }; }
2065 fi
2066
2067 # These three variables are undocumented and unsupported,
2068 # and are intended to be withdrawn in a future Autoconf release.
2069 # They can cause serious problems if a builder's source tree is in a directory
2070 # whose full name contains unusual characters.
2071 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2072 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2073 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2074
2075
2076
2077 if test ${srcdir} != "." ; then
2078   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2079     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2080 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2081    { (exit 1); exit 1; }; }
2082   fi
2083 fi
2084
2085 for i in `ls ${srcdir}/projects`
2086 do
2087   if test -d ${srcdir}/projects/${i} ; then
2088     case ${i} in
2089       CVS) ;;
2090       sample)       subdirs="$subdirs projects/sample"
2091     ;;
2092       privbracket)  subdirs="$subdirs projects/privbracket"
2093  ;;
2094       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2095  ;;
2096       # llvm-test is the old name of the test-suite, kept here for backwards
2097       # compatibility
2098       llvm-test)    subdirs="$subdirs projects/llvm-test"
2099  ;;
2100       test-suite)   subdirs="$subdirs projects/test-suite"
2101  ;;
2102       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2103 ;;
2104       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2105   ;;
2106       llvm-java)    subdirs="$subdirs projects/llvm-java"
2107  ;;
2108       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2109    ;;
2110       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2111  ;;
2112       poolalloc)    subdirs="$subdirs projects/poolalloc"
2113  ;;
2114       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2115  ;;
2116       *)
2117         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2118 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2119         ;;
2120     esac
2121   fi
2122 done
2123
2124
2125 # Make sure we can run config.sub.
2126 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2127   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2128 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2129    { (exit 1); exit 1; }; }
2130
2131 { echo "$as_me:$LINENO: checking build system type" >&5
2132 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2133 if test "${ac_cv_build+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   ac_build_alias=$build_alias
2137 test "x$ac_build_alias" = x &&
2138   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2139 test "x$ac_build_alias" = x &&
2140   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2141 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2142    { (exit 1); exit 1; }; }
2143 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2144   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2145 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2146    { (exit 1); exit 1; }; }
2147
2148 fi
2149 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2150 echo "${ECHO_T}$ac_cv_build" >&6; }
2151 case $ac_cv_build in
2152 *-*-*) ;;
2153 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2154 echo "$as_me: error: invalid value of canonical build" >&2;}
2155    { (exit 1); exit 1; }; };;
2156 esac
2157 build=$ac_cv_build
2158 ac_save_IFS=$IFS; IFS='-'
2159 set x $ac_cv_build
2160 shift
2161 build_cpu=$1
2162 build_vendor=$2
2163 shift; shift
2164 # Remember, the first character of IFS is used to create $*,
2165 # except with old shells:
2166 build_os=$*
2167 IFS=$ac_save_IFS
2168 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2169
2170
2171 { echo "$as_me:$LINENO: checking host system type" >&5
2172 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2173 if test "${ac_cv_host+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176   if test "x$host_alias" = x; then
2177   ac_cv_host=$ac_cv_build
2178 else
2179   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2180     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2181 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2182    { (exit 1); exit 1; }; }
2183 fi
2184
2185 fi
2186 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2187 echo "${ECHO_T}$ac_cv_host" >&6; }
2188 case $ac_cv_host in
2189 *-*-*) ;;
2190 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2191 echo "$as_me: error: invalid value of canonical host" >&2;}
2192    { (exit 1); exit 1; }; };;
2193 esac
2194 host=$ac_cv_host
2195 ac_save_IFS=$IFS; IFS='-'
2196 set x $ac_cv_host
2197 shift
2198 host_cpu=$1
2199 host_vendor=$2
2200 shift; shift
2201 # Remember, the first character of IFS is used to create $*,
2202 # except with old shells:
2203 host_os=$*
2204 IFS=$ac_save_IFS
2205 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2206
2207
2208 { echo "$as_me:$LINENO: checking target system type" >&5
2209 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2210 if test "${ac_cv_target+set}" = set; then
2211   echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213   if test "x$target_alias" = x; then
2214   ac_cv_target=$ac_cv_host
2215 else
2216   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2217     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2218 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2219    { (exit 1); exit 1; }; }
2220 fi
2221
2222 fi
2223 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2224 echo "${ECHO_T}$ac_cv_target" >&6; }
2225 case $ac_cv_target in
2226 *-*-*) ;;
2227 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2228 echo "$as_me: error: invalid value of canonical target" >&2;}
2229    { (exit 1); exit 1; }; };;
2230 esac
2231 target=$ac_cv_target
2232 ac_save_IFS=$IFS; IFS='-'
2233 set x $ac_cv_target
2234 shift
2235 target_cpu=$1
2236 target_vendor=$2
2237 shift; shift
2238 # Remember, the first character of IFS is used to create $*,
2239 # except with old shells:
2240 target_os=$*
2241 IFS=$ac_save_IFS
2242 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2243
2244
2245 # The aliases save the names the user supplied, while $host etc.
2246 # will get canonicalized.
2247 test -n "$target_alias" &&
2248   test "$program_prefix$program_suffix$program_transform_name" = \
2249     NONENONEs,x,x, &&
2250   program_prefix=${target_alias}-
2251
2252 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2253 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2254 if test "${llvm_cv_os_type+set}" = set; then
2255   echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257   case $host in
2258   *-*-aix*)
2259     llvm_cv_link_all_option="-Wl,--whole-archive"
2260     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261     llvm_cv_os_type="AIX"
2262     llvm_cv_platform_type="Unix" ;;
2263   *-*-irix*)
2264     llvm_cv_link_all_option="-Wl,--whole-archive"
2265     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266     llvm_cv_os_type="IRIX"
2267     llvm_cv_platform_type="Unix" ;;
2268   *-*-cygwin*)
2269     llvm_cv_link_all_option="-Wl,--whole-archive"
2270     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271     llvm_cv_os_type="Cygwin"
2272     llvm_cv_platform_type="Unix" ;;
2273   *-*-darwin*)
2274     llvm_cv_link_all_option="-Wl,-all_load"
2275     llvm_cv_no_link_all_option="-Wl,-noall_load"
2276     llvm_cv_os_type="Darwin"
2277     llvm_cv_platform_type="Unix" ;;
2278   *-*-freebsd*)
2279     llvm_cv_link_all_option="-Wl,--whole-archive"
2280     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281     llvm_cv_os_type="FreeBSD"
2282     llvm_cv_platform_type="Unix" ;;
2283   *-*-openbsd*)
2284     llvm_cv_link_all_option="-Wl,--whole-archive"
2285     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286     llvm_cv_os_type="OpenBSD"
2287     llvm_cv_platform_type="Unix" ;;
2288   *-*-netbsd*)
2289     llvm_cv_link_all_option="-Wl,--whole-archive"
2290     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291     llvm_cv_os_type="NetBSD"
2292     llvm_cv_platform_type="Unix" ;;
2293   *-*-dragonfly*)
2294     llvm_cv_link_all_option="-Wl,--whole-archive"
2295     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296     llvm_cv_os_type="DragonFly"
2297     llvm_cv_platform_type="Unix" ;;
2298   *-*-hpux*)
2299     llvm_cv_link_all_option="-Wl,--whole-archive"
2300     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301     llvm_cv_os_type="HP-UX"
2302     llvm_cv_platform_type="Unix" ;;
2303   *-*-interix*)
2304     llvm_cv_link_all_option="-Wl,--whole-archive"
2305     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2306     llvm_cv_os_type="Interix"
2307     llvm_cv_platform_type="Unix" ;;
2308   *-*-linux*)
2309     llvm_cv_link_all_option="-Wl,--whole-archive"
2310     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311     llvm_cv_os_type="Linux"
2312     llvm_cv_platform_type="Unix" ;;
2313   *-*-solaris*)
2314     llvm_cv_link_all_option="-Wl,-z,allextract"
2315     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2316     llvm_cv_os_type="SunOS"
2317     llvm_cv_platform_type="Unix" ;;
2318   *-*-win32*)
2319     llvm_cv_link_all_option="-Wl,--whole-archive"
2320     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321     llvm_cv_os_type="Win32"
2322     llvm_cv_platform_type="Win32" ;;
2323   *-*-mingw*)
2324     llvm_cv_link_all_option="-Wl,--whole-archive"
2325     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2326     llvm_cv_os_type="MingW"
2327     llvm_cv_platform_type="Win32" ;;
2328   *)
2329     llvm_cv_link_all_option=""
2330     llvm_cv_no_link_all_option=""
2331     llvm_cv_os_type="Unknown"
2332     llvm_cv_platform_type="Unknown" ;;
2333 esac
2334 fi
2335 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2336 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2337
2338 if test "$llvm_cv_os_type" = "Unknown" ; then
2339   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2340 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2341    { (exit 1); exit 1; }; }
2342 fi
2343
2344 OS=$llvm_cv_os_type
2345
2346
2347 LINKALL=$llvm_cv_link_all_option
2348
2349 NOLINKALL=$llvm_cv_no_link_all_option
2350
2351
2352 case $llvm_cv_platform_type in
2353   Unix)
2354
2355 cat >>confdefs.h <<\_ACEOF
2356 #define LLVM_ON_UNIX 1
2357 _ACEOF
2358
2359     LLVM_ON_UNIX=1
2360
2361     LLVM_ON_WIN32=0
2362
2363     ;;
2364   Win32)
2365
2366 cat >>confdefs.h <<\_ACEOF
2367 #define LLVM_ON_WIN32 1
2368 _ACEOF
2369
2370     LLVM_ON_UNIX=0
2371
2372     LLVM_ON_WIN32=1
2373
2374     ;;
2375 esac
2376
2377 { echo "$as_me:$LINENO: checking target architecture" >&5
2378 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2379 if test "${llvm_cv_target_arch+set}" = set; then
2380   echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382   case $target in
2383   i?86-*)                 llvm_cv_target_arch="x86" ;;
2384   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2385   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2386   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2387   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2388   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2389   arm-*)                  llvm_cv_target_arch="ARM" ;;
2390   mips-*)                 llvm_cv_target_arch="Mips" ;;
2391   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2392   *)                      llvm_cv_target_arch="Unknown" ;;
2393 esac
2394 fi
2395 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2396 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2397
2398 if test "$llvm_cv_target_arch" = "Unknown" ; then
2399   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2400 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2401 fi
2402
2403 ARCH=$llvm_cv_target_arch
2404
2405
2406 ac_ext=c
2407 ac_cpp='$CPP $CPPFLAGS'
2408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2411 if test -n "$ac_tool_prefix"; then
2412   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2413 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2416 if test "${ac_cv_prog_CC+set}" = set; then
2417   echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419   if test -n "$CC"; then
2420   ac_cv_prog_CC="$CC" # Let the user override the test.
2421 else
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH
2424 do
2425   IFS=$as_save_IFS
2426   test -z "$as_dir" && as_dir=.
2427   for ac_exec_ext in '' $ac_executable_extensions; do
2428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2429     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431     break 2
2432   fi
2433 done
2434 done
2435 IFS=$as_save_IFS
2436
2437 fi
2438 fi
2439 CC=$ac_cv_prog_CC
2440 if test -n "$CC"; then
2441   { echo "$as_me:$LINENO: result: $CC" >&5
2442 echo "${ECHO_T}$CC" >&6; }
2443 else
2444   { echo "$as_me:$LINENO: result: no" >&5
2445 echo "${ECHO_T}no" >&6; }
2446 fi
2447
2448
2449 fi
2450 if test -z "$ac_cv_prog_CC"; then
2451   ac_ct_CC=$CC
2452   # Extract the first word of "gcc", so it can be a program name with args.
2453 set dummy gcc; ac_word=$2
2454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2456 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2457   echo $ECHO_N "(cached) $ECHO_C" >&6
2458 else
2459   if test -n "$ac_ct_CC"; then
2460   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465   IFS=$as_save_IFS
2466   test -z "$as_dir" && as_dir=.
2467   for ac_exec_ext in '' $ac_executable_extensions; do
2468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2469     ac_cv_prog_ac_ct_CC="gcc"
2470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471     break 2
2472   fi
2473 done
2474 done
2475 IFS=$as_save_IFS
2476
2477 fi
2478 fi
2479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2480 if test -n "$ac_ct_CC"; then
2481   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2482 echo "${ECHO_T}$ac_ct_CC" >&6; }
2483 else
2484   { echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6; }
2486 fi
2487
2488   if test "x$ac_ct_CC" = x; then
2489     CC=""
2490   else
2491     case $cross_compiling:$ac_tool_warned in
2492 yes:)
2493 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2494 whose name does not start with the host triplet.  If you think this
2495 configuration is useful to you, please write to autoconf@gnu.org." >&5
2496 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2497 whose name does not start with the host triplet.  If you think this
2498 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2499 ac_tool_warned=yes ;;
2500 esac
2501     CC=$ac_ct_CC
2502   fi
2503 else
2504   CC="$ac_cv_prog_CC"
2505 fi
2506
2507 if test -z "$CC"; then
2508           if test -n "$ac_tool_prefix"; then
2509     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2510 set dummy ${ac_tool_prefix}cc; ac_word=$2
2511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2513 if test "${ac_cv_prog_CC+set}" = set; then
2514   echo $ECHO_N "(cached) $ECHO_C" >&6
2515 else
2516   if test -n "$CC"; then
2517   ac_cv_prog_CC="$CC" # Let the user override the test.
2518 else
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 for as_dir in $PATH
2521 do
2522   IFS=$as_save_IFS
2523   test -z "$as_dir" && as_dir=.
2524   for ac_exec_ext in '' $ac_executable_extensions; do
2525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2526     ac_cv_prog_CC="${ac_tool_prefix}cc"
2527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2528     break 2
2529   fi
2530 done
2531 done
2532 IFS=$as_save_IFS
2533
2534 fi
2535 fi
2536 CC=$ac_cv_prog_CC
2537 if test -n "$CC"; then
2538   { echo "$as_me:$LINENO: result: $CC" >&5
2539 echo "${ECHO_T}$CC" >&6; }
2540 else
2541   { echo "$as_me:$LINENO: result: no" >&5
2542 echo "${ECHO_T}no" >&6; }
2543 fi
2544
2545
2546   fi
2547 fi
2548 if test -z "$CC"; then
2549   # Extract the first word of "cc", so it can be a program name with args.
2550 set dummy cc; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_CC+set}" = set; then
2554   echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556   if test -n "$CC"; then
2557   ac_cv_prog_CC="$CC" # Let the user override the test.
2558 else
2559   ac_prog_rejected=no
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2562 do
2563   IFS=$as_save_IFS
2564   test -z "$as_dir" && as_dir=.
2565   for ac_exec_ext in '' $ac_executable_extensions; do
2566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2567     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2568        ac_prog_rejected=yes
2569        continue
2570      fi
2571     ac_cv_prog_CC="cc"
2572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573     break 2
2574   fi
2575 done
2576 done
2577 IFS=$as_save_IFS
2578
2579 if test $ac_prog_rejected = yes; then
2580   # We found a bogon in the path, so make sure we never use it.
2581   set dummy $ac_cv_prog_CC
2582   shift
2583   if test $# != 0; then
2584     # We chose a different compiler from the bogus one.
2585     # However, it has the same basename, so the bogon will be chosen
2586     # first if we set CC to just the basename; use the full file name.
2587     shift
2588     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2589   fi
2590 fi
2591 fi
2592 fi
2593 CC=$ac_cv_prog_CC
2594 if test -n "$CC"; then
2595   { echo "$as_me:$LINENO: result: $CC" >&5
2596 echo "${ECHO_T}$CC" >&6; }
2597 else
2598   { echo "$as_me:$LINENO: result: no" >&5
2599 echo "${ECHO_T}no" >&6; }
2600 fi
2601
2602
2603 fi
2604 if test -z "$CC"; then
2605   if test -n "$ac_tool_prefix"; then
2606   for ac_prog in cl.exe
2607   do
2608     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2609 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2612 if test "${ac_cv_prog_CC+set}" = set; then
2613   echo $ECHO_N "(cached) $ECHO_C" >&6
2614 else
2615   if test -n "$CC"; then
2616   ac_cv_prog_CC="$CC" # Let the user override the test.
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2620 do
2621   IFS=$as_save_IFS
2622   test -z "$as_dir" && as_dir=.
2623   for ac_exec_ext in '' $ac_executable_extensions; do
2624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2625     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627     break 2
2628   fi
2629 done
2630 done
2631 IFS=$as_save_IFS
2632
2633 fi
2634 fi
2635 CC=$ac_cv_prog_CC
2636 if test -n "$CC"; then
2637   { echo "$as_me:$LINENO: result: $CC" >&5
2638 echo "${ECHO_T}$CC" >&6; }
2639 else
2640   { echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6; }
2642 fi
2643
2644
2645     test -n "$CC" && break
2646   done
2647 fi
2648 if test -z "$CC"; then
2649   ac_ct_CC=$CC
2650   for ac_prog in cl.exe
2651 do
2652   # Extract the first word of "$ac_prog", so it can be a program name with args.
2653 set dummy $ac_prog; ac_word=$2
2654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2657   echo $ECHO_N "(cached) $ECHO_C" >&6
2658 else
2659   if test -n "$ac_ct_CC"; then
2660   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665   IFS=$as_save_IFS
2666   test -z "$as_dir" && as_dir=.
2667   for ac_exec_ext in '' $ac_executable_extensions; do
2668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2669     ac_cv_prog_ac_ct_CC="$ac_prog"
2670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671     break 2
2672   fi
2673 done
2674 done
2675 IFS=$as_save_IFS
2676
2677 fi
2678 fi
2679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2680 if test -n "$ac_ct_CC"; then
2681   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2682 echo "${ECHO_T}$ac_ct_CC" >&6; }
2683 else
2684   { echo "$as_me:$LINENO: result: no" >&5
2685 echo "${ECHO_T}no" >&6; }
2686 fi
2687
2688
2689   test -n "$ac_ct_CC" && break
2690 done
2691
2692   if test "x$ac_ct_CC" = x; then
2693     CC=""
2694   else
2695     case $cross_compiling:$ac_tool_warned in
2696 yes:)
2697 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2698 whose name does not start with the host triplet.  If you think this
2699 configuration is useful to you, please write to autoconf@gnu.org." >&5
2700 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2701 whose name does not start with the host triplet.  If you think this
2702 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2703 ac_tool_warned=yes ;;
2704 esac
2705     CC=$ac_ct_CC
2706   fi
2707 fi
2708
2709 fi
2710
2711
2712 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2713 See \`config.log' for more details." >&5
2714 echo "$as_me: error: no acceptable C compiler found in \$PATH
2715 See \`config.log' for more details." >&2;}
2716    { (exit 1); exit 1; }; }
2717
2718 # Provide some information about the compiler.
2719 echo "$as_me:$LINENO: checking for C compiler version" >&5
2720 ac_compiler=`set X $ac_compile; echo $2`
2721 { (ac_try="$ac_compiler --version >&5"
2722 case "(($ac_try" in
2723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724   *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727   (eval "$ac_compiler --version >&5") 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }
2731 { (ac_try="$ac_compiler -v >&5"
2732 case "(($ac_try" in
2733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734   *) ac_try_echo=$ac_try;;
2735 esac
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737   (eval "$ac_compiler -v >&5") 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }
2741 { (ac_try="$ac_compiler -V >&5"
2742 case "(($ac_try" in
2743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744   *) ac_try_echo=$ac_try;;
2745 esac
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747   (eval "$ac_compiler -V >&5") 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }
2751
2752 cat >conftest.$ac_ext <<_ACEOF
2753 /* confdefs.h.  */
2754 _ACEOF
2755 cat confdefs.h >>conftest.$ac_ext
2756 cat >>conftest.$ac_ext <<_ACEOF
2757 /* end confdefs.h.  */
2758
2759 int
2760 main ()
2761 {
2762
2763   ;
2764   return 0;
2765 }
2766 _ACEOF
2767 ac_clean_files_save=$ac_clean_files
2768 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2769 # Try to create an executable without -o first, disregard a.out.
2770 # It will help us diagnose broken compilers, and finding out an intuition
2771 # of exeext.
2772 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2773 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2774 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2775 #
2776 # List of possible output files, starting from the most likely.
2777 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2778 # only as a last resort.  b.out is created by i960 compilers.
2779 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2780 #
2781 # The IRIX 6 linker writes into existing files which may not be
2782 # executable, retaining their permissions.  Remove them first so a
2783 # subsequent execution test works.
2784 ac_rmfiles=
2785 for ac_file in $ac_files
2786 do
2787   case $ac_file in
2788     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2789     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2790   esac
2791 done
2792 rm -f $ac_rmfiles
2793
2794 if { (ac_try="$ac_link_default"
2795 case "(($ac_try" in
2796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797   *) ac_try_echo=$ac_try;;
2798 esac
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800   (eval "$ac_link_default") 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }; then
2804   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2805 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2806 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2807 # so that the user can short-circuit this test for compilers unknown to
2808 # Autoconf.
2809 for ac_file in $ac_files
2810 do
2811   test -f "$ac_file" || continue
2812   case $ac_file in
2813     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2814         ;;
2815     [ab].out )
2816         # We found the default executable, but exeext='' is most
2817         # certainly right.
2818         break;;
2819     *.* )
2820         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2821         then :; else
2822            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2823         fi
2824         # We set ac_cv_exeext here because the later test for it is not
2825         # safe: cross compilers may not add the suffix if given an `-o'
2826         # argument, so we may need to know it at that point already.
2827         # Even if this section looks crufty: it has the advantage of
2828         # actually working.
2829         break;;
2830     * )
2831         break;;
2832   esac
2833 done
2834 test "$ac_cv_exeext" = no && ac_cv_exeext=
2835
2836 else
2837   echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2839
2840 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2841 See \`config.log' for more details." >&5
2842 echo "$as_me: error: C compiler cannot create executables
2843 See \`config.log' for more details." >&2;}
2844    { (exit 77); exit 77; }; }
2845 fi
2846
2847 ac_exeext=$ac_cv_exeext
2848 { echo "$as_me:$LINENO: result: $ac_file" >&5
2849 echo "${ECHO_T}$ac_file" >&6; }
2850
2851 # Check that the compiler produces executables we can run.  If not, either
2852 # the compiler is broken, or we cross compile.
2853 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2854 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2855 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2856 # If not cross compiling, check that we can run a simple program.
2857 if test "$cross_compiling" != yes; then
2858   if { ac_try='./$ac_file'
2859   { (case "(($ac_try" in
2860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861   *) ac_try_echo=$ac_try;;
2862 esac
2863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2864   (eval "$ac_try") 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); }; }; then
2868     cross_compiling=no
2869   else
2870     if test "$cross_compiling" = maybe; then
2871         cross_compiling=yes
2872     else
2873         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2874 If you meant to cross compile, use \`--host'.
2875 See \`config.log' for more details." >&5
2876 echo "$as_me: error: cannot run C compiled programs.
2877 If you meant to cross compile, use \`--host'.
2878 See \`config.log' for more details." >&2;}
2879    { (exit 1); exit 1; }; }
2880     fi
2881   fi
2882 fi
2883 { echo "$as_me:$LINENO: result: yes" >&5
2884 echo "${ECHO_T}yes" >&6; }
2885
2886 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2887 ac_clean_files=$ac_clean_files_save
2888 # Check that the compiler produces executables we can run.  If not, either
2889 # the compiler is broken, or we cross compile.
2890 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2891 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2892 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2893 echo "${ECHO_T}$cross_compiling" >&6; }
2894
2895 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2896 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2897 if { (ac_try="$ac_link"
2898 case "(($ac_try" in
2899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900   *) ac_try_echo=$ac_try;;
2901 esac
2902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903   (eval "$ac_link") 2>&5
2904   ac_status=$?
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); }; then
2907   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2908 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2909 # work properly (i.e., refer to `conftest.exe'), while it won't with
2910 # `rm'.
2911 for ac_file in conftest.exe conftest conftest.*; do
2912   test -f "$ac_file" || continue
2913   case $ac_file in
2914     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2915     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2916           break;;
2917     * ) break;;
2918   esac
2919 done
2920 else
2921   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2922 See \`config.log' for more details." >&5
2923 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2924 See \`config.log' for more details." >&2;}
2925    { (exit 1); exit 1; }; }
2926 fi
2927
2928 rm -f conftest$ac_cv_exeext
2929 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2930 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2931
2932 rm -f conftest.$ac_ext
2933 EXEEXT=$ac_cv_exeext
2934 ac_exeext=$EXEEXT
2935 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2936 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2937 if test "${ac_cv_objext+set}" = set; then
2938   echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940   cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h.  */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h.  */
2946
2947 int
2948 main ()
2949 {
2950
2951   ;
2952   return 0;
2953 }
2954 _ACEOF
2955 rm -f conftest.o conftest.obj
2956 if { (ac_try="$ac_compile"
2957 case "(($ac_try" in
2958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959   *) ac_try_echo=$ac_try;;
2960 esac
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962   (eval "$ac_compile") 2>&5
2963   ac_status=$?
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); }; then
2966   for ac_file in conftest.o conftest.obj conftest.*; do
2967   test -f "$ac_file" || continue;
2968   case $ac_file in
2969     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2970     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2971        break;;
2972   esac
2973 done
2974 else
2975   echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2979 See \`config.log' for more details." >&5
2980 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2981 See \`config.log' for more details." >&2;}
2982    { (exit 1); exit 1; }; }
2983 fi
2984
2985 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2986 fi
2987 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2988 echo "${ECHO_T}$ac_cv_objext" >&6; }
2989 OBJEXT=$ac_cv_objext
2990 ac_objext=$OBJEXT
2991 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2992 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2993 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2994   echo $ECHO_N "(cached) $ECHO_C" >&6
2995 else
2996   cat >conftest.$ac_ext <<_ACEOF
2997 /* confdefs.h.  */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h.  */
3002
3003 int
3004 main ()
3005 {
3006 #ifndef __GNUC__
3007        choke me
3008 #endif
3009
3010   ;
3011   return 0;
3012 }
3013 _ACEOF
3014 rm -f conftest.$ac_objext
3015 if { (ac_try="$ac_compile"
3016 case "(($ac_try" in
3017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018   *) ac_try_echo=$ac_try;;
3019 esac
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021   (eval "$ac_compile") 2>conftest.er1
3022   ac_status=$?
3023   grep -v '^ *+' conftest.er1 >conftest.err
3024   rm -f conftest.er1
3025   cat conftest.err >&5
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); } &&
3028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3029   { (case "(($ac_try" in
3030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031   *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034   (eval "$ac_try") 2>&5
3035   ac_status=$?
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); }; } &&
3038          { ac_try='test -s conftest.$ac_objext'
3039   { (case "(($ac_try" in
3040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041   *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044   (eval "$ac_try") 2>&5
3045   ac_status=$?
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); }; }; then
3048   ac_compiler_gnu=yes
3049 else
3050   echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3052
3053         ac_compiler_gnu=no
3054 fi
3055
3056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3057 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3058
3059 fi
3060 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3061 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3062 GCC=`test $ac_compiler_gnu = yes && echo yes`
3063 ac_test_CFLAGS=${CFLAGS+set}
3064 ac_save_CFLAGS=$CFLAGS
3065 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3066 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3067 if test "${ac_cv_prog_cc_g+set}" = set; then
3068   echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070   ac_save_c_werror_flag=$ac_c_werror_flag
3071    ac_c_werror_flag=yes
3072    ac_cv_prog_cc_g=no
3073    CFLAGS="-g"
3074    cat >conftest.$ac_ext <<_ACEOF
3075 /* confdefs.h.  */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h.  */
3080
3081 int
3082 main ()
3083 {
3084
3085   ;
3086   return 0;
3087 }
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (ac_try="$ac_compile"
3091 case "(($ac_try" in
3092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093   *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096   (eval "$ac_compile") 2>conftest.er1
3097   ac_status=$?
3098   grep -v '^ *+' conftest.er1 >conftest.err
3099   rm -f conftest.er1
3100   cat conftest.err >&5
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); } &&
3103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3104   { (case "(($ac_try" in
3105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106   *) ac_try_echo=$ac_try;;
3107 esac
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109   (eval "$ac_try") 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); }; } &&
3113          { ac_try='test -s conftest.$ac_objext'
3114   { (case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119   (eval "$ac_try") 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); }; }; then
3123   ac_cv_prog_cc_g=yes
3124 else
3125   echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3127
3128         CFLAGS=""
3129       cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h.  */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h.  */
3135
3136 int
3137 main ()
3138 {
3139
3140   ;
3141   return 0;
3142 }
3143 _ACEOF
3144 rm -f conftest.$ac_objext
3145 if { (ac_try="$ac_compile"
3146 case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151   (eval "$ac_compile") 2>conftest.er1
3152   ac_status=$?
3153   grep -v '^ *+' conftest.er1 >conftest.err
3154   rm -f conftest.er1
3155   cat conftest.err >&5
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); } &&
3158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3159   { (case "(($ac_try" in
3160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161   *) ac_try_echo=$ac_try;;
3162 esac
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164   (eval "$ac_try") 2>&5
3165   ac_status=$?
3166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167   (exit $ac_status); }; } &&
3168          { ac_try='test -s conftest.$ac_objext'
3169   { (case "(($ac_try" in
3170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171   *) ac_try_echo=$ac_try;;
3172 esac
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174   (eval "$ac_try") 2>&5
3175   ac_status=$?
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); }; }; then
3178   :
3179 else
3180   echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3182
3183         ac_c_werror_flag=$ac_save_c_werror_flag
3184          CFLAGS="-g"
3185          cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h.  */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h.  */
3191
3192 int
3193 main ()
3194 {
3195
3196   ;
3197   return 0;
3198 }
3199 _ACEOF
3200 rm -f conftest.$ac_objext
3201 if { (ac_try="$ac_compile"
3202 case "(($ac_try" in
3203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204   *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207   (eval "$ac_compile") 2>conftest.er1
3208   ac_status=$?
3209   grep -v '^ *+' conftest.er1 >conftest.err
3210   rm -f conftest.er1
3211   cat conftest.err >&5
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); } &&
3214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3215   { (case "(($ac_try" in
3216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217   *) ac_try_echo=$ac_try;;
3218 esac
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220   (eval "$ac_try") 2>&5
3221   ac_status=$?
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); }; } &&
3224          { ac_try='test -s conftest.$ac_objext'
3225   { (case "(($ac_try" in
3226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227   *) ac_try_echo=$ac_try;;
3228 esac
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230   (eval "$ac_try") 2>&5
3231   ac_status=$?
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); }; }; then
3234   ac_cv_prog_cc_g=yes
3235 else
3236   echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3238
3239
3240 fi
3241
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 fi
3244
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 fi
3247
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249    ac_c_werror_flag=$ac_save_c_werror_flag
3250 fi
3251 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3252 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3253 if test "$ac_test_CFLAGS" = set; then
3254   CFLAGS=$ac_save_CFLAGS
3255 elif test $ac_cv_prog_cc_g = yes; then
3256   if test "$GCC" = yes; then
3257     CFLAGS="-g -O2"
3258   else
3259     CFLAGS="-g"
3260   fi
3261 else
3262   if test "$GCC" = yes; then
3263     CFLAGS="-O2"
3264   else
3265     CFLAGS=
3266   fi
3267 fi
3268 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3269 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3270 if test "${ac_cv_prog_cc_c89+set}" = set; then
3271   echo $ECHO_N "(cached) $ECHO_C" >&6
3272 else
3273   ac_cv_prog_cc_c89=no
3274 ac_save_CC=$CC
3275 cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h.  */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h.  */
3281 #include <stdarg.h>
3282 #include <stdio.h>
3283 #include <sys/types.h>
3284 #include <sys/stat.h>
3285 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3286 struct buf { int x; };
3287 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3288 static char *e (p, i)
3289      char **p;
3290      int i;
3291 {
3292   return p[i];
3293 }
3294 static char *f (char * (*g) (char **, int), char **p, ...)
3295 {
3296   char *s;
3297   va_list v;
3298   va_start (v,p);
3299   s = g (p, va_arg (v,int));
3300   va_end (v);
3301   return s;
3302 }
3303
3304 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3305    function prototypes and stuff, but not '\xHH' hex character constants.
3306    These don't provoke an error unfortunately, instead are silently treated
3307    as 'x'.  The following induces an error, until -std is added to get
3308    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3309    array size at least.  It's necessary to write '\x00'==0 to get something
3310    that's true only with -std.  */
3311 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3312
3313 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3314    inside strings and character constants.  */
3315 #define FOO(x) 'x'
3316 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3317
3318 int test (int i, double x);
3319 struct s1 {int (*f) (int a);};
3320 struct s2 {int (*f) (double a);};
3321 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3322 int argc;
3323 char **argv;
3324 int
3325 main ()
3326 {
3327 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3328   ;
3329   return 0;
3330 }
3331 _ACEOF
3332 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3333         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3334 do
3335   CC="$ac_save_CC $ac_arg"
3336   rm -f conftest.$ac_objext
3337 if { (ac_try="$ac_compile"
3338 case "(($ac_try" in
3339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340   *) ac_try_echo=$ac_try;;
3341 esac
3342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343   (eval "$ac_compile") 2>conftest.er1
3344   ac_status=$?
3345   grep -v '^ *+' conftest.er1 >conftest.err
3346   rm -f conftest.er1
3347   cat conftest.err >&5
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); } &&
3350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3351   { (case "(($ac_try" in
3352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353   *) ac_try_echo=$ac_try;;
3354 esac
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356   (eval "$ac_try") 2>&5
3357   ac_status=$?
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); }; } &&
3360          { ac_try='test -s conftest.$ac_objext'
3361   { (case "(($ac_try" in
3362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363   *) ac_try_echo=$ac_try;;
3364 esac
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366   (eval "$ac_try") 2>&5
3367   ac_status=$?
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); }; }; then
3370   ac_cv_prog_cc_c89=$ac_arg
3371 else
3372   echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374
3375
3376 fi
3377
3378 rm -f core conftest.err conftest.$ac_objext
3379   test "x$ac_cv_prog_cc_c89" != "xno" && break
3380 done
3381 rm -f conftest.$ac_ext
3382 CC=$ac_save_CC
3383
3384 fi
3385 # AC_CACHE_VAL
3386 case "x$ac_cv_prog_cc_c89" in
3387   x)
3388     { echo "$as_me:$LINENO: result: none needed" >&5
3389 echo "${ECHO_T}none needed" >&6; } ;;
3390   xno)
3391     { echo "$as_me:$LINENO: result: unsupported" >&5
3392 echo "${ECHO_T}unsupported" >&6; } ;;
3393   *)
3394     CC="$CC $ac_cv_prog_cc_c89"
3395     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3396 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3397 esac
3398
3399
3400 ac_ext=c
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405
3406
3407 ac_ext=c
3408 ac_cpp='$CPP $CPPFLAGS'
3409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3413 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3414 # On Suns, sometimes $CPP names a directory.
3415 if test -n "$CPP" && test -d "$CPP"; then
3416   CPP=
3417 fi
3418 if test -z "$CPP"; then
3419   if test "${ac_cv_prog_CPP+set}" = set; then
3420   echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422       # Double quotes because CPP needs to be expanded
3423     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3424     do
3425       ac_preproc_ok=false
3426 for ac_c_preproc_warn_flag in '' yes
3427 do
3428   # Use a header file that comes with gcc, so configuring glibc
3429   # with a fresh cross-compiler works.
3430   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3431   # <limits.h> exists even on freestanding compilers.
3432   # On the NeXT, cc -E runs the code through the compiler's parser,
3433   # not just through cpp. "Syntax error" is here to catch this case.
3434   cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h.  */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h.  */
3440 #ifdef __STDC__
3441 # include <limits.h>
3442 #else
3443 # include <assert.h>
3444 #endif
3445                      Syntax error
3446 _ACEOF
3447 if { (ac_try="$ac_cpp conftest.$ac_ext"
3448 case "(($ac_try" in
3449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450   *) ac_try_echo=$ac_try;;
3451 esac
3452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3454   ac_status=$?
3455   grep -v '^ *+' conftest.er1 >conftest.err
3456   rm -f conftest.er1
3457   cat conftest.err >&5
3458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459   (exit $ac_status); } >/dev/null; then
3460   if test -s conftest.err; then
3461     ac_cpp_err=$ac_c_preproc_warn_flag
3462     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3463   else
3464     ac_cpp_err=
3465   fi
3466 else
3467   ac_cpp_err=yes
3468 fi
3469 if test -z "$ac_cpp_err"; then
3470   :
3471 else
3472   echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3474
3475   # Broken: fails on valid input.
3476 continue
3477 fi
3478
3479 rm -f conftest.err conftest.$ac_ext
3480
3481   # OK, works on sane cases.  Now check whether nonexistent headers
3482   # can be detected and how.
3483   cat >conftest.$ac_ext <<_ACEOF
3484 /* confdefs.h.  */
3485 _ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h.  */
3489 #include <ac_nonexistent.h>
3490 _ACEOF
3491 if { (ac_try="$ac_cpp conftest.$ac_ext"
3492 case "(($ac_try" in
3493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494   *) ac_try_echo=$ac_try;;
3495 esac
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3498   ac_status=$?
3499   grep -v '^ *+' conftest.er1 >conftest.err
3500   rm -f conftest.er1
3501   cat conftest.err >&5
3502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503   (exit $ac_status); } >/dev/null; then
3504   if test -s conftest.err; then
3505     ac_cpp_err=$ac_c_preproc_warn_flag
3506     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3507   else
3508     ac_cpp_err=
3509   fi
3510 else
3511   ac_cpp_err=yes
3512 fi
3513 if test -z "$ac_cpp_err"; then
3514   # Broken: success on invalid input.
3515 continue
3516 else
3517   echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520   # Passes both tests.
3521 ac_preproc_ok=:
3522 break
3523 fi
3524
3525 rm -f conftest.err conftest.$ac_ext
3526
3527 done
3528 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3529 rm -f conftest.err conftest.$ac_ext
3530 if $ac_preproc_ok; then
3531   break
3532 fi
3533
3534     done
3535     ac_cv_prog_CPP=$CPP
3536
3537 fi
3538   CPP=$ac_cv_prog_CPP
3539 else
3540   ac_cv_prog_CPP=$CPP
3541 fi
3542 { echo "$as_me:$LINENO: result: $CPP" >&5
3543 echo "${ECHO_T}$CPP" >&6; }
3544 ac_preproc_ok=false
3545 for ac_c_preproc_warn_flag in '' yes
3546 do
3547   # Use a header file that comes with gcc, so configuring glibc
3548   # with a fresh cross-compiler works.
3549   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3550   # <limits.h> exists even on freestanding compilers.
3551   # On the NeXT, cc -E runs the code through the compiler's parser,
3552   # not just through cpp. "Syntax error" is here to catch this case.
3553   cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h.  */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h.  */
3559 #ifdef __STDC__
3560 # include <limits.h>
3561 #else
3562 # include <assert.h>
3563 #endif
3564                      Syntax error
3565 _ACEOF
3566 if { (ac_try="$ac_cpp conftest.$ac_ext"
3567 case "(($ac_try" in
3568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569   *) ac_try_echo=$ac_try;;
3570 esac
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3573   ac_status=$?
3574   grep -v '^ *+' conftest.er1 >conftest.err
3575   rm -f conftest.er1
3576   cat conftest.err >&5
3577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); } >/dev/null; then
3579   if test -s conftest.err; then
3580     ac_cpp_err=$ac_c_preproc_warn_flag
3581     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3582   else
3583     ac_cpp_err=
3584   fi
3585 else
3586   ac_cpp_err=yes
3587 fi
3588 if test -z "$ac_cpp_err"; then
3589   :
3590 else
3591   echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3593
3594   # Broken: fails on valid input.
3595 continue
3596 fi
3597
3598 rm -f conftest.err conftest.$ac_ext
3599
3600   # OK, works on sane cases.  Now check whether nonexistent headers
3601   # can be detected and how.
3602   cat >conftest.$ac_ext <<_ACEOF
3603 /* confdefs.h.  */
3604 _ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h.  */
3608 #include <ac_nonexistent.h>
3609 _ACEOF
3610 if { (ac_try="$ac_cpp conftest.$ac_ext"
3611 case "(($ac_try" in
3612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613   *) ac_try_echo=$ac_try;;
3614 esac
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3617   ac_status=$?
3618   grep -v '^ *+' conftest.er1 >conftest.err
3619   rm -f conftest.er1
3620   cat conftest.err >&5
3621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622   (exit $ac_status); } >/dev/null; then
3623   if test -s conftest.err; then
3624     ac_cpp_err=$ac_c_preproc_warn_flag
3625     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3626   else
3627     ac_cpp_err=
3628   fi
3629 else
3630   ac_cpp_err=yes
3631 fi
3632 if test -z "$ac_cpp_err"; then
3633   # Broken: success on invalid input.
3634 continue
3635 else
3636   echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3638
3639   # Passes both tests.
3640 ac_preproc_ok=:
3641 break
3642 fi
3643
3644 rm -f conftest.err conftest.$ac_ext
3645
3646 done
3647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3648 rm -f conftest.err conftest.$ac_ext
3649 if $ac_preproc_ok; then
3650   :
3651 else
3652   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3653 See \`config.log' for more details." >&5
3654 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3655 See \`config.log' for more details." >&2;}
3656    { (exit 1); exit 1; }; }
3657 fi
3658
3659 ac_ext=c
3660 ac_cpp='$CPP $CPPFLAGS'
3661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664
3665
3666 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3667 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3668 if test "${ac_cv_path_GREP+set}" = set; then
3669   echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671   # Extract the first word of "grep ggrep" to use in msg output
3672 if test -z "$GREP"; then
3673 set dummy grep ggrep; ac_prog_name=$2
3674 if test "${ac_cv_path_GREP+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   ac_path_GREP_found=false
3678 # Loop through the user's path and test for each of PROGNAME-LIST
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3681 do
3682   IFS=$as_save_IFS
3683   test -z "$as_dir" && as_dir=.
3684   for ac_prog in grep ggrep; do
3685   for ac_exec_ext in '' $ac_executable_extensions; do
3686     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3687     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3688     # Check for GNU ac_path_GREP and select it if it is found.
3689   # Check for GNU $ac_path_GREP
3690 case `"$ac_path_GREP" --version 2>&1` in
3691 *GNU*)
3692   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3693 *)
3694   ac_count=0
3695   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3696   while :
3697   do
3698     cat "conftest.in" "conftest.in" >"conftest.tmp"
3699     mv "conftest.tmp" "conftest.in"
3700     cp "conftest.in" "conftest.nl"
3701     echo 'GREP' >> "conftest.nl"
3702     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3703     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3704     ac_count=`expr $ac_count + 1`
3705     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3706       # Best one so far, save it but keep looking for a better one
3707       ac_cv_path_GREP="$ac_path_GREP"
3708       ac_path_GREP_max=$ac_count
3709     fi
3710     # 10*(2^10) chars as input seems more than enough
3711     test $ac_count -gt 10 && break
3712   done
3713   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3714 esac
3715
3716
3717     $ac_path_GREP_found && break 3
3718   done
3719 done
3720
3721 done
3722 IFS=$as_save_IFS
3723
3724
3725 fi
3726
3727 GREP="$ac_cv_path_GREP"
3728 if test -z "$GREP"; then
3729   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3730 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3731    { (exit 1); exit 1; }; }
3732 fi
3733
3734 else
3735   ac_cv_path_GREP=$GREP
3736 fi
3737
3738
3739 fi
3740 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3741 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3742  GREP="$ac_cv_path_GREP"
3743
3744
3745 { echo "$as_me:$LINENO: checking for egrep" >&5
3746 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3747 if test "${ac_cv_path_EGREP+set}" = set; then
3748   echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3751    then ac_cv_path_EGREP="$GREP -E"
3752    else
3753      # Extract the first word of "egrep" to use in msg output
3754 if test -z "$EGREP"; then
3755 set dummy egrep; ac_prog_name=$2
3756 if test "${ac_cv_path_EGREP+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   ac_path_EGREP_found=false
3760 # Loop through the user's path and test for each of PROGNAME-LIST
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3763 do
3764   IFS=$as_save_IFS
3765   test -z "$as_dir" && as_dir=.
3766   for ac_prog in egrep; do
3767   for ac_exec_ext in '' $ac_executable_extensions; do
3768     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3769     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3770     # Check for GNU ac_path_EGREP and select it if it is found.
3771   # Check for GNU $ac_path_EGREP
3772 case `"$ac_path_EGREP" --version 2>&1` in
3773 *GNU*)
3774   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3775 *)
3776   ac_count=0
3777   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3778   while :
3779   do
3780     cat "conftest.in" "conftest.in" >"conftest.tmp"
3781     mv "conftest.tmp" "conftest.in"
3782     cp "conftest.in" "conftest.nl"
3783     echo 'EGREP' >> "conftest.nl"
3784     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3785     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3786     ac_count=`expr $ac_count + 1`
3787     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3788       # Best one so far, save it but keep looking for a better one
3789       ac_cv_path_EGREP="$ac_path_EGREP"
3790       ac_path_EGREP_max=$ac_count
3791     fi
3792     # 10*(2^10) chars as input seems more than enough
3793     test $ac_count -gt 10 && break
3794   done
3795   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3796 esac
3797
3798
3799     $ac_path_EGREP_found && break 3
3800   done
3801 done
3802
3803 done
3804 IFS=$as_save_IFS
3805
3806
3807 fi
3808
3809 EGREP="$ac_cv_path_EGREP"
3810 if test -z "$EGREP"; then
3811   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3812 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3813    { (exit 1); exit 1; }; }
3814 fi
3815
3816 else
3817   ac_cv_path_EGREP=$EGREP
3818 fi
3819
3820
3821    fi
3822 fi
3823 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3824 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3825  EGREP="$ac_cv_path_EGREP"
3826
3827
3828 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3829 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3830 if test "${ac_cv_header_stdc+set}" = set; then
3831   echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833   cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h.  */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h.  */
3839 #include <stdlib.h>
3840 #include <stdarg.h>
3841 #include <string.h>
3842 #include <float.h>
3843
3844 int
3845 main ()
3846 {
3847
3848   ;
3849   return 0;
3850 }
3851 _ACEOF
3852 rm -f conftest.$ac_objext
3853 if { (ac_try="$ac_compile"
3854 case "(($ac_try" in
3855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856   *) ac_try_echo=$ac_try;;
3857 esac
3858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3859   (eval "$ac_compile") 2>conftest.er1
3860   ac_status=$?
3861   grep -v '^ *+' conftest.er1 >conftest.err
3862   rm -f conftest.er1
3863   cat conftest.err >&5
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); } &&
3866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3867   { (case "(($ac_try" in
3868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869   *) ac_try_echo=$ac_try;;
3870 esac
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872   (eval "$ac_try") 2>&5
3873   ac_status=$?
3874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875   (exit $ac_status); }; } &&
3876          { ac_try='test -s conftest.$ac_objext'
3877   { (case "(($ac_try" in
3878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879   *) ac_try_echo=$ac_try;;
3880 esac
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882   (eval "$ac_try") 2>&5
3883   ac_status=$?
3884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885   (exit $ac_status); }; }; then
3886   ac_cv_header_stdc=yes
3887 else
3888   echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3890
3891         ac_cv_header_stdc=no
3892 fi
3893
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895
3896 if test $ac_cv_header_stdc = yes; then
3897   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3898   cat >conftest.$ac_ext <<_ACEOF
3899 /* confdefs.h.  */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h.  */
3904 #include <string.h>
3905
3906 _ACEOF
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908   $EGREP "memchr" >/dev/null 2>&1; then
3909   :
3910 else
3911   ac_cv_header_stdc=no
3912 fi
3913 rm -f conftest*
3914
3915 fi
3916
3917 if test $ac_cv_header_stdc = yes; then
3918   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3919   cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h.  */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h.  */
3925 #include <stdlib.h>
3926
3927 _ACEOF
3928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3929   $EGREP "free" >/dev/null 2>&1; then
3930   :
3931 else
3932   ac_cv_header_stdc=no
3933 fi
3934 rm -f conftest*
3935
3936 fi
3937
3938 if test $ac_cv_header_stdc = yes; then
3939   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3940   if test "$cross_compiling" = yes; then
3941   :
3942 else
3943   cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h.  */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h.  */
3949 #include <ctype.h>
3950 #include <stdlib.h>
3951 #if ((' ' & 0x0FF) == 0x020)
3952 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3953 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3954 #else
3955 # define ISLOWER(c) \
3956                    (('a' <= (c) && (c) <= 'i') \
3957                      || ('j' <= (c) && (c) <= 'r') \
3958                      || ('s' <= (c) && (c) <= 'z'))
3959 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3960 #endif
3961
3962 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3963 int
3964 main ()
3965 {
3966   int i;
3967   for (i = 0; i < 256; i++)
3968     if (XOR (islower (i), ISLOWER (i))
3969         || toupper (i) != TOUPPER (i))
3970       return 2;
3971   return 0;
3972 }
3973 _ACEOF
3974 rm -f conftest$ac_exeext
3975 if { (ac_try="$ac_link"
3976 case "(($ac_try" in
3977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978   *) ac_try_echo=$ac_try;;
3979 esac
3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981   (eval "$ac_link") 2>&5
3982   ac_status=$?
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3985   { (case "(($ac_try" in
3986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987   *) ac_try_echo=$ac_try;;
3988 esac
3989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990   (eval "$ac_try") 2>&5
3991   ac_status=$?
3992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993   (exit $ac_status); }; }; then
3994   :
3995 else
3996   echo "$as_me: program exited with status $ac_status" >&5
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
3999
4000 ( exit $ac_status )
4001 ac_cv_header_stdc=no
4002 fi
4003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4004 fi
4005
4006
4007 fi
4008 fi
4009 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4010 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4011 if test $ac_cv_header_stdc = yes; then
4012
4013 cat >>confdefs.h <<\_ACEOF
4014 #define STDC_HEADERS 1
4015 _ACEOF
4016
4017 fi
4018
4019 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4030                   inttypes.h stdint.h unistd.h
4031 do
4032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4036   echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038   cat >conftest.$ac_ext <<_ACEOF
4039 /* confdefs.h.  */
4040 _ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h.  */
4044 $ac_includes_default
4045
4046 #include <$ac_header>
4047 _ACEOF
4048 rm -f conftest.$ac_objext
4049 if { (ac_try="$ac_compile"
4050 case "(($ac_try" in
4051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052   *) ac_try_echo=$ac_try;;
4053 esac
4054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4055   (eval "$ac_compile") 2>conftest.er1
4056   ac_status=$?
4057   grep -v '^ *+' conftest.er1 >conftest.err
4058   rm -f conftest.er1
4059   cat conftest.err >&5
4060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061   (exit $ac_status); } &&
4062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4063   { (case "(($ac_try" in
4064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065   *) ac_try_echo=$ac_try;;
4066 esac
4067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068   (eval "$ac_try") 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); }; } &&
4072          { ac_try='test -s conftest.$ac_objext'
4073   { (case "(($ac_try" in
4074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075   *) ac_try_echo=$ac_try;;
4076 esac
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078   (eval "$ac_try") 2>&5
4079   ac_status=$?
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); }; }; then
4082   eval "$as_ac_Header=yes"
4083 else
4084   echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4086
4087         eval "$as_ac_Header=no"
4088 fi
4089
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091 fi
4092 ac_res=`eval echo '${'$as_ac_Header'}'`
4093                { echo "$as_me:$LINENO: result: $ac_res" >&5
4094 echo "${ECHO_T}$ac_res" >&6; }
4095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4096   cat >>confdefs.h <<_ACEOF
4097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4098 _ACEOF
4099
4100 fi
4101
4102 done
4103
4104
4105 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4106 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4107 if test "${ac_cv_c_bigendian+set}" = set; then
4108   echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110   # See if sys/param.h defines the BYTE_ORDER macro.
4111 cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h.  */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h.  */
4117 #include <sys/types.h>
4118 #include <sys/param.h>
4119
4120 int
4121 main ()
4122 {
4123 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4124  bogus endian macros
4125 #endif
4126
4127   ;
4128   return 0;
4129 }
4130 _ACEOF
4131 rm -f conftest.$ac_objext
4132 if { (ac_try="$ac_compile"
4133 case "(($ac_try" in
4134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135   *) ac_try_echo=$ac_try;;
4136 esac
4137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138   (eval "$ac_compile") 2>conftest.er1
4139   ac_status=$?
4140   grep -v '^ *+' conftest.er1 >conftest.err
4141   rm -f conftest.er1
4142   cat conftest.err >&5
4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144   (exit $ac_status); } &&
4145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4146   { (case "(($ac_try" in
4147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148   *) ac_try_echo=$ac_try;;
4149 esac
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151   (eval "$ac_try") 2>&5
4152   ac_status=$?
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); }; } &&
4155          { ac_try='test -s conftest.$ac_objext'
4156   { (case "(($ac_try" in
4157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158   *) ac_try_echo=$ac_try;;
4159 esac
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161   (eval "$ac_try") 2>&5
4162   ac_status=$?
4163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164   (exit $ac_status); }; }; then
4165   # It does; now see whether it defined to BIG_ENDIAN or not.
4166 cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h.  */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h.  */
4172 #include <sys/types.h>
4173 #include <sys/param.h>
4174
4175 int
4176 main ()
4177 {
4178 #if BYTE_ORDER != BIG_ENDIAN
4179  not big endian
4180 #endif
4181
4182   ;
4183   return 0;
4184 }
4185 _ACEOF
4186 rm -f conftest.$ac_objext
4187 if { (ac_try="$ac_compile"
4188 case "(($ac_try" in
4189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190   *) ac_try_echo=$ac_try;;
4191 esac
4192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193   (eval "$ac_compile") 2>conftest.er1
4194   ac_status=$?
4195   grep -v '^ *+' conftest.er1 >conftest.err
4196   rm -f conftest.er1
4197   cat conftest.err >&5
4198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199   (exit $ac_status); } &&
4200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4201   { (case "(($ac_try" in
4202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203   *) ac_try_echo=$ac_try;;
4204 esac
4205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206   (eval "$ac_try") 2>&5
4207   ac_status=$?
4208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209   (exit $ac_status); }; } &&
4210          { ac_try='test -s conftest.$ac_objext'
4211   { (case "(($ac_try" in
4212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213   *) ac_try_echo=$ac_try;;
4214 esac
4215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4216   (eval "$ac_try") 2>&5
4217   ac_status=$?
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); }; }; then
4220   ac_cv_c_bigendian=yes
4221 else
4222   echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4224
4225         ac_cv_c_bigendian=no
4226 fi
4227
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 else
4230   echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4232
4233         # It does not; compile a test program.
4234 if test "$cross_compiling" = yes; then
4235   # try to guess the endianness by grepping values into an object file
4236   ac_cv_c_bigendian=unknown
4237   cat >conftest.$ac_ext <<_ACEOF
4238 /* confdefs.h.  */
4239 _ACEOF
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h.  */
4243 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4244 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4245 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4246 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4247 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4248 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4249 int
4250 main ()
4251 {
4252  _ascii (); _ebcdic ();
4253   ;
4254   return 0;
4255 }
4256 _ACEOF
4257 rm -f conftest.$ac_objext
4258 if { (ac_try="$ac_compile"
4259 case "(($ac_try" in
4260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261   *) ac_try_echo=$ac_try;;
4262 esac
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264   (eval "$ac_compile") 2>conftest.er1
4265   ac_status=$?
4266   grep -v '^ *+' conftest.er1 >conftest.err
4267   rm -f conftest.er1
4268   cat conftest.err >&5
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); } &&
4271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4272   { (case "(($ac_try" in
4273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274   *) ac_try_echo=$ac_try;;
4275 esac
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277   (eval "$ac_try") 2>&5
4278   ac_status=$?
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); }; } &&
4281          { ac_try='test -s conftest.$ac_objext'
4282   { (case "(($ac_try" in
4283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284   *) ac_try_echo=$ac_try;;
4285 esac
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287   (eval "$ac_try") 2>&5
4288   ac_status=$?
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); }; }; then
4291   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4292   ac_cv_c_bigendian=yes
4293 fi
4294 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4295   if test "$ac_cv_c_bigendian" = unknown; then
4296     ac_cv_c_bigendian=no
4297   else
4298     # finding both strings is unlikely to happen, but who knows?
4299     ac_cv_c_bigendian=unknown
4300   fi
4301 fi
4302 else
4303   echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4305
4306
4307 fi
4308
4309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310 else
4311   cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h.  */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h.  */
4317 $ac_includes_default
4318 int
4319 main ()
4320 {
4321
4322   /* Are we little or big endian?  From Harbison&Steele.  */
4323   union
4324   {
4325     long int l;
4326     char c[sizeof (long int)];
4327   } u;
4328   u.l = 1;
4329   return u.c[sizeof (long int) - 1] == 1;
4330
4331   ;
4332   return 0;
4333 }
4334 _ACEOF
4335 rm -f conftest$ac_exeext
4336 if { (ac_try="$ac_link"
4337 case "(($ac_try" in
4338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339   *) ac_try_echo=$ac_try;;
4340 esac
4341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4342   (eval "$ac_link") 2>&5
4343   ac_status=$?
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4346   { (case "(($ac_try" in
4347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348   *) ac_try_echo=$ac_try;;
4349 esac
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351   (eval "$ac_try") 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); }; }; then
4355   ac_cv_c_bigendian=no
4356 else
4357   echo "$as_me: program exited with status $ac_status" >&5
4358 echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4360
4361 ( exit $ac_status )
4362 ac_cv_c_bigendian=yes
4363 fi
4364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4365 fi
4366
4367
4368 fi
4369
4370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371 fi
4372 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4373 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4374 case $ac_cv_c_bigendian in
4375   yes)
4376     ENDIAN=big
4377  ;;
4378   no)
4379     ENDIAN=little
4380  ;;
4381   *)
4382     { { echo "$as_me:$LINENO: error: unknown endianness
4383 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4384 echo "$as_me: error: unknown endianness
4385 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4386    { (exit 1); exit 1; }; } ;;
4387 esac
4388
4389
4390 if test "$cross_compiling" = yes; then
4391   LLVM_CROSS_COMPILING=1
4392
4393
4394 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4395 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4396 if test "${ac_cv_build_exeext+set}" = set; then
4397   echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4400   ac_cv_build_exeext=.exe
4401 else
4402   ac_build_prefix=${build_alias}-
4403
4404   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4405 set dummy ${ac_build_prefix}gcc; ac_word=$2
4406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4408 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4409   echo $ECHO_N "(cached) $ECHO_C" >&6
4410 else
4411   if test -n "$BUILD_CC"; then
4412   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4413 else
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4416 do
4417   IFS=$as_save_IFS
4418   test -z "$as_dir" && as_dir=.
4419   for ac_exec_ext in '' $ac_executable_extensions; do
4420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4421     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423     break 2
4424   fi
4425 done
4426 done
4427 IFS=$as_save_IFS
4428
4429 fi
4430 fi
4431 BUILD_CC=$ac_cv_prog_BUILD_CC
4432 if test -n "$BUILD_CC"; then
4433   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4434 echo "${ECHO_T}$BUILD_CC" >&6; }
4435 else
4436   { echo "$as_me:$LINENO: result: no" >&5
4437 echo "${ECHO_T}no" >&6; }
4438 fi
4439
4440
4441   if test -z "$BUILD_CC"; then
4442      # Extract the first word of "gcc", so it can be a program name with args.
4443 set dummy gcc; ac_word=$2
4444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4446 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4447   echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449   if test -n "$BUILD_CC"; then
4450   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4454 do
4455   IFS=$as_save_IFS
4456   test -z "$as_dir" && as_dir=.
4457   for ac_exec_ext in '' $ac_executable_extensions; do
4458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4459     ac_cv_prog_BUILD_CC="gcc"
4460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461     break 2
4462   fi
4463 done
4464 done
4465 IFS=$as_save_IFS
4466
4467 fi
4468 fi
4469 BUILD_CC=$ac_cv_prog_BUILD_CC
4470 if test -n "$BUILD_CC"; then
4471   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4472 echo "${ECHO_T}$BUILD_CC" >&6; }
4473 else
4474   { echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6; }
4476 fi
4477
4478
4479      if test -z "$BUILD_CC"; then
4480        # Extract the first word of "cc", so it can be a program name with args.
4481 set dummy cc; ac_word=$2
4482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4484 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4485   echo $ECHO_N "(cached) $ECHO_C" >&6
4486 else
4487   if test -n "$BUILD_CC"; then
4488   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4489 else
4490   ac_prog_rejected=no
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4493 do
4494   IFS=$as_save_IFS
4495   test -z "$as_dir" && as_dir=.
4496   for ac_exec_ext in '' $ac_executable_extensions; do
4497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4498     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4499        ac_prog_rejected=yes
4500        continue
4501      fi
4502     ac_cv_prog_BUILD_CC="cc"
4503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4504     break 2
4505   fi
4506 done
4507 done
4508 IFS=$as_save_IFS
4509
4510 if test $ac_prog_rejected = yes; then
4511   # We found a bogon in the path, so make sure we never use it.
4512   set dummy $ac_cv_prog_BUILD_CC
4513   shift
4514   if test $# != 0; then
4515     # We chose a different compiler from the bogus one.
4516     # However, it has the same basename, so the bogon will be chosen
4517     # first if we set BUILD_CC to just the basename; use the full file name.
4518     shift
4519     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4520   fi
4521 fi
4522 fi
4523 fi
4524 BUILD_CC=$ac_cv_prog_BUILD_CC
4525 if test -n "$BUILD_CC"; then
4526   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4527 echo "${ECHO_T}$BUILD_CC" >&6; }
4528 else
4529   { echo "$as_me:$LINENO: result: no" >&5
4530 echo "${ECHO_T}no" >&6; }
4531 fi
4532
4533
4534      fi
4535   fi
4536   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4537 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4538    { (exit 1); exit 1; }; }
4539   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4540   rm -f conftest*
4541   echo 'int main () { return 0; }' > conftest.$ac_ext
4542   ac_cv_build_exeext=
4543   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4544   (eval $ac_build_link) 2>&5
4545   ac_status=$?
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); }; then
4548     for file in conftest.*; do
4549       case $file in
4550       *.c | *.o | *.obj | *.dSYM) ;;
4551       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4552       esac
4553     done
4554   else
4555     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4556 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4557    { (exit 1); exit 1; }; }
4558   fi
4559   rm -f conftest*
4560   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4561 fi
4562 fi
4563
4564 BUILD_EXEEXT=""
4565 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4566 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4567 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4568 ac_build_exeext=$BUILD_EXEEXT
4569
4570   ac_build_prefix=${build_alias}-
4571   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4572 set dummy ${ac_build_prefix}g++; ac_word=$2
4573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4575 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   if test -n "$BUILD_CXX"; then
4579   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4580 else
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4583 do
4584   IFS=$as_save_IFS
4585   test -z "$as_dir" && as_dir=.
4586   for ac_exec_ext in '' $ac_executable_extensions; do
4587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4588     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590     break 2
4591   fi
4592 done
4593 done
4594 IFS=$as_save_IFS
4595
4596 fi
4597 fi
4598 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4599 if test -n "$BUILD_CXX"; then
4600   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4601 echo "${ECHO_T}$BUILD_CXX" >&6; }
4602 else
4603   { echo "$as_me:$LINENO: result: no" >&5
4604 echo "${ECHO_T}no" >&6; }
4605 fi
4606
4607
4608   if test -z "$BUILD_CXX"; then
4609      # Extract the first word of "g++", so it can be a program name with args.
4610 set dummy g++; ac_word=$2
4611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4613 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4614   echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616   if test -n "$BUILD_CXX"; then
4617   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4618 else
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4621 do
4622   IFS=$as_save_IFS
4623   test -z "$as_dir" && as_dir=.
4624   for ac_exec_ext in '' $ac_executable_extensions; do
4625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4626     ac_cv_prog_BUILD_CXX="g++"
4627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628     break 2
4629   fi
4630 done
4631 done
4632 IFS=$as_save_IFS
4633
4634 fi
4635 fi
4636 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4637 if test -n "$BUILD_CXX"; then
4638   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4639 echo "${ECHO_T}$BUILD_CXX" >&6; }
4640 else
4641   { echo "$as_me:$LINENO: result: no" >&5
4642 echo "${ECHO_T}no" >&6; }
4643 fi
4644
4645
4646      if test -z "$BUILD_CXX"; then
4647        # Extract the first word of "c++", so it can be a program name with args.
4648 set dummy c++; ac_word=$2
4649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4651 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4652   echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654   if test -n "$BUILD_CXX"; then
4655   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4656 else
4657   ac_prog_rejected=no
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661   IFS=$as_save_IFS
4662   test -z "$as_dir" && as_dir=.
4663   for ac_exec_ext in '' $ac_executable_extensions; do
4664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4665     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4666        ac_prog_rejected=yes
4667        continue
4668      fi
4669     ac_cv_prog_BUILD_CXX="c++"
4670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671     break 2
4672   fi
4673 done
4674 done
4675 IFS=$as_save_IFS
4676
4677 if test $ac_prog_rejected = yes; then
4678   # We found a bogon in the path, so make sure we never use it.
4679   set dummy $ac_cv_prog_BUILD_CXX
4680   shift
4681   if test $# != 0; then
4682     # We chose a different compiler from the bogus one.
4683     # However, it has the same basename, so the bogon will be chosen
4684     # first if we set BUILD_CXX to just the basename; use the full file name.
4685     shift
4686     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4687   fi
4688 fi
4689 fi
4690 fi
4691 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4692 if test -n "$BUILD_CXX"; then
4693   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4694 echo "${ECHO_T}$BUILD_CXX" >&6; }
4695 else
4696   { echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6; }
4698 fi
4699
4700
4701      fi
4702   fi
4703 else
4704   LLVM_CROSS_COMPILING=0
4705
4706 fi
4707
4708 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4709   cvsbuild="yes"
4710   optimize="no"
4711   CVSBUILD=CVSBUILD=1
4712
4713 else
4714   cvsbuild="no"
4715   optimize="yes"
4716 fi
4717
4718
4719 # Check whether --enable-optimized was given.
4720 if test "${enable_optimized+set}" = set; then
4721   enableval=$enable_optimized;
4722 else
4723   enableval=$optimize
4724 fi
4725
4726 if test ${enableval} = "no" ; then
4727   ENABLE_OPTIMIZED=
4728
4729 else
4730   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4731
4732 fi
4733
4734 # Check whether --enable-assertions was given.
4735 if test "${enable_assertions+set}" = set; then
4736   enableval=$enable_assertions;
4737 else
4738   enableval="yes"
4739 fi
4740
4741 if test ${enableval} = "yes" ; then
4742   DISABLE_ASSERTIONS=
4743
4744 else
4745   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4746
4747 fi
4748
4749 # Check whether --enable-expensive-checks was given.
4750 if test "${enable_expensive_checks+set}" = set; then
4751   enableval=$enable_expensive_checks;
4752 else
4753   enableval="no"
4754 fi
4755
4756 if test ${enableval} = "yes" ; then
4757   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4758
4759   EXPENSIVE_CHECKS=yes
4760
4761 else
4762   ENABLE_EXPENSIVE_CHECKS=
4763
4764   EXPENSIVE_CHECKS=no
4765
4766 fi
4767
4768 # Check whether --enable-debug-runtime was given.
4769 if test "${enable_debug_runtime+set}" = set; then
4770   enableval=$enable_debug_runtime;
4771 else
4772   enableval=no
4773 fi
4774
4775 if test ${enableval} = "no" ; then
4776   DEBUG_RUNTIME=
4777
4778 else
4779   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4780
4781 fi
4782
4783 # Check whether --enable-jit was given.
4784 if test "${enable_jit+set}" = set; then
4785   enableval=$enable_jit;
4786 else
4787   enableval=default
4788 fi
4789
4790 if test ${enableval} = "no"
4791 then
4792   JIT=
4793
4794 else
4795   case "$llvm_cv_target_arch" in
4796     x86)     TARGET_HAS_JIT=1
4797  ;;
4798     Sparc)   TARGET_HAS_JIT=0
4799  ;;
4800     PowerPC) TARGET_HAS_JIT=1
4801  ;;
4802     x86_64)  TARGET_HAS_JIT=1
4803  ;;
4804     Alpha)   TARGET_HAS_JIT=1
4805  ;;
4806     IA64)    TARGET_HAS_JIT=0
4807  ;;
4808     ARM)     TARGET_HAS_JIT=0
4809  ;;
4810     Mips)    TARGET_HAS_JIT=0
4811  ;;
4812     PIC16)   TARGET_HAS_JIT=0
4813  ;;
4814     *)       TARGET_HAS_JIT=0
4815  ;;
4816   esac
4817 fi
4818
4819 # Check whether --enable-doxygen was given.
4820 if test "${enable_doxygen+set}" = set; then
4821   enableval=$enable_doxygen;
4822 else
4823   enableval=default
4824 fi
4825
4826 case "$enableval" in
4827   yes) ENABLE_DOXYGEN=1
4828  ;;
4829   no)  ENABLE_DOXYGEN=0
4830  ;;
4831   default) ENABLE_DOXYGEN=0
4832  ;;
4833   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4834 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4835    { (exit 1); exit 1; }; } ;;
4836 esac
4837
4838 # Check whether --enable-threads was given.
4839 if test "${enable_threads+set}" = set; then
4840   enableval=$enable_threads;
4841 else
4842   enableval=default
4843 fi
4844
4845 case "$enableval" in
4846   yes) ENABLE_THREADS=1
4847  ;;
4848   no)  ENABLE_THREADS=0
4849  ;;
4850   default) ENABLE_THREADS=1
4851  ;;
4852   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4853 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4854    { (exit 1); exit 1; }; } ;;
4855 esac
4856
4857 cat >>confdefs.h <<_ACEOF
4858 #define ENABLE_THREADS $ENABLE_THREADS
4859 _ACEOF
4860
4861
4862 # Check whether --enable-pic was given.
4863 if test "${enable_pic+set}" = set; then
4864   enableval=$enable_pic;
4865 else
4866   enableval=default
4867 fi
4868
4869 case "$enableval" in
4870   yes) ENABLE_PIC=1
4871  ;;
4872   no)  ENABLE_PIC=0
4873  ;;
4874   default) ENABLE_PIC=0
4875  ;;
4876   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4877 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4878    { (exit 1); exit 1; }; } ;;
4879 esac
4880
4881 cat >>confdefs.h <<_ACEOF
4882 #define ENABLE_PIC $ENABLE_PIC
4883 _ACEOF
4884
4885
4886 TARGETS_TO_BUILD=""
4887 # Check whether --enable-targets was given.
4888 if test "${enable_targets+set}" = set; then
4889   enableval=$enable_targets;
4890 else
4891   enableval=all
4892 fi
4893
4894 case "$enableval" in
4895   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
4896   host-only)
4897     case "$llvm_cv_target_arch" in
4898       x86)     TARGETS_TO_BUILD="X86" ;;
4899       x86_64)  TARGETS_TO_BUILD="X86" ;;
4900       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4901       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4902       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4903       IA64)    TARGETS_TO_BUILD="IA64" ;;
4904       ARM)     TARGETS_TO_BUILD="ARM" ;;
4905       Mips)    TARGETS_TO_BUILD="Mips" ;;
4906       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4907       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4908       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4909 echo "$as_me: error: Can not set target to build" >&2;}
4910    { (exit 1); exit 1; }; } ;;
4911     esac
4912     ;;
4913   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4914       case "$a_target" in
4915         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4916         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4917         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4918         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4919         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4920         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4921         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4922         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4923         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4924         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4925         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4926         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4927         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4928         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4929 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4930    { (exit 1); exit 1; }; } ;;
4931       esac
4932   done
4933   ;;
4934 esac
4935 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4936
4937
4938 # Check whether --enable-cbe-printf-a was given.
4939 if test "${enable_cbe_printf_a+set}" = set; then
4940   enableval=$enable_cbe_printf_a;
4941 else
4942   enableval=default
4943 fi
4944
4945 case "$enableval" in
4946   yes) ENABLE_CBE_PRINTF_A=1
4947  ;;
4948   no)  ENABLE_CBE_PRINTF_A=0
4949  ;;
4950   default)  ENABLE_CBE_PRINTF_A=1
4951  ;;
4952   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4953 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4954    { (exit 1); exit 1; }; } ;;
4955 esac
4956
4957 cat >>confdefs.h <<_ACEOF
4958 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4959 _ACEOF
4960
4961
4962
4963 # Check whether --with-llvmgccdir was given.
4964 if test "${with_llvmgccdir+set}" = set; then
4965   withval=$with_llvmgccdir;
4966 else
4967   withval=default
4968 fi
4969
4970 case "$withval" in
4971   default) WITH_LLVMGCCDIR=default ;;
4972   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4973   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4974 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4975    { (exit 1); exit 1; }; } ;;
4976 esac
4977
4978
4979 # Check whether --with-llvmgcc was given.
4980 if test "${with_llvmgcc+set}" = set; then
4981   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4982       WITH_LLVMGCCDIR=""
4983 fi
4984
4985
4986
4987 # Check whether --with-llvmgxx was given.
4988 if test "${with_llvmgxx+set}" = set; then
4989   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4990     WITH_LLVMGCCDIR=""
4991 fi
4992
4993
4994 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4995    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4996 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4997    { (exit 1); exit 1; }; };
4998 fi
4999
5000 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5001    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5002 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5003    { (exit 1); exit 1; }; };
5004 fi
5005
5006
5007 # Check whether --with-extra-options was given.
5008 if test "${with_extra_options+set}" = set; then
5009   withval=$with_extra_options;
5010 else
5011   withval=default
5012 fi
5013
5014 case "$withval" in
5015   default) EXTRA_OPTIONS= ;;
5016   *) EXTRA_OPTIONS=$withval ;;
5017 esac
5018 EXTRA_OPTIONS=$EXTRA_OPTIONS
5019
5020
5021 # Check whether --enable-bindings was given.
5022 if test "${enable_bindings+set}" = set; then
5023   enableval=$enable_bindings;
5024 else
5025   enableval=default
5026 fi
5027
5028 BINDINGS_TO_BUILD=""
5029 case "$enableval" in
5030   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5031   all ) BINDINGS_TO_BUILD="ocaml" ;;
5032   none | no) BINDINGS_TO_BUILD="" ;;
5033   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5034       case "$a_binding" in
5035         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5036         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5037 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5038    { (exit 1); exit 1; }; } ;;
5039       esac
5040   done
5041   ;;
5042 esac
5043
5044
5045 # Check whether --with-ocaml-libdir was given.
5046 if test "${with_ocaml_libdir+set}" = set; then
5047   withval=$with_ocaml_libdir;
5048 else
5049   withval=auto
5050 fi
5051
5052 case "$withval" in
5053   auto) with_ocaml_libdir="$withval" ;;
5054   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5055   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5056 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5057    { (exit 1); exit 1; }; } ;;
5058 esac
5059
5060
5061 ac_ext=c
5062 ac_cpp='$CPP $CPPFLAGS'
5063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5066 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5067 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5068 # On Suns, sometimes $CPP names a directory.
5069 if test -n "$CPP" && test -d "$CPP"; then
5070   CPP=
5071 fi
5072 if test -z "$CPP"; then
5073   if test "${ac_cv_prog_CPP+set}" = set; then
5074   echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076       # Double quotes because CPP needs to be expanded
5077     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5078     do
5079       ac_preproc_ok=false
5080 for ac_c_preproc_warn_flag in '' yes
5081 do
5082   # Use a header file that comes with gcc, so configuring glibc
5083   # with a fresh cross-compiler works.
5084   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5085   # <limits.h> exists even on freestanding compilers.
5086   # On the NeXT, cc -E runs the code through the compiler's parser,
5087   # not just through cpp. "Syntax error" is here to catch this case.
5088   cat >conftest.$ac_ext <<_ACEOF
5089 /* confdefs.h.  */
5090 _ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h.  */
5094 #ifdef __STDC__
5095 # include <limits.h>
5096 #else
5097 # include <assert.h>
5098 #endif
5099                      Syntax error
5100 _ACEOF
5101 if { (ac_try="$ac_cpp conftest.$ac_ext"
5102 case "(($ac_try" in
5103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104   *) ac_try_echo=$ac_try;;
5105 esac
5106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5108   ac_status=$?
5109   grep -v '^ *+' conftest.er1 >conftest.err
5110   rm -f conftest.er1
5111   cat conftest.err >&5
5112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113   (exit $ac_status); } >/dev/null; then
5114   if test -s conftest.err; then
5115     ac_cpp_err=$ac_c_preproc_warn_flag
5116     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5117   else
5118     ac_cpp_err=
5119   fi
5120 else
5121   ac_cpp_err=yes
5122 fi
5123 if test -z "$ac_cpp_err"; then
5124   :
5125 else
5126   echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5128
5129   # Broken: fails on valid input.
5130 continue
5131 fi
5132
5133 rm -f conftest.err conftest.$ac_ext
5134
5135   # OK, works on sane cases.  Now check whether nonexistent headers
5136   # can be detected and how.
5137   cat >conftest.$ac_ext <<_ACEOF
5138 /* confdefs.h.  */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h.  */
5143 #include <ac_nonexistent.h>
5144 _ACEOF
5145 if { (ac_try="$ac_cpp conftest.$ac_ext"
5146 case "(($ac_try" in
5147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148   *) ac_try_echo=$ac_try;;
5149 esac
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5152   ac_status=$?
5153   grep -v '^ *+' conftest.er1 >conftest.err
5154   rm -f conftest.er1
5155   cat conftest.err >&5
5156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157   (exit $ac_status); } >/dev/null; then
5158   if test -s conftest.err; then
5159     ac_cpp_err=$ac_c_preproc_warn_flag
5160     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5161   else
5162     ac_cpp_err=
5163   fi
5164 else
5165   ac_cpp_err=yes
5166 fi
5167 if test -z "$ac_cpp_err"; then
5168   # Broken: success on invalid input.
5169 continue
5170 else
5171   echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5173
5174   # Passes both tests.
5175 ac_preproc_ok=:
5176 break
5177 fi
5178
5179 rm -f conftest.err conftest.$ac_ext
5180
5181 done
5182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5183 rm -f conftest.err conftest.$ac_ext
5184 if $ac_preproc_ok; then
5185   break
5186 fi
5187
5188     done
5189     ac_cv_prog_CPP=$CPP
5190
5191 fi
5192   CPP=$ac_cv_prog_CPP
5193 else
5194   ac_cv_prog_CPP=$CPP
5195 fi
5196 { echo "$as_me:$LINENO: result: $CPP" >&5
5197 echo "${ECHO_T}$CPP" >&6; }
5198 ac_preproc_ok=false
5199 for ac_c_preproc_warn_flag in '' yes
5200 do
5201   # Use a header file that comes with gcc, so configuring glibc
5202   # with a fresh cross-compiler works.
5203   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5204   # <limits.h> exists even on freestanding compilers.
5205   # On the NeXT, cc -E runs the code through the compiler's parser,
5206   # not just through cpp. "Syntax error" is here to catch this case.
5207   cat >conftest.$ac_ext <<_ACEOF
5208 /* confdefs.h.  */
5209 _ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h.  */
5213 #ifdef __STDC__
5214 # include <limits.h>
5215 #else
5216 # include <assert.h>
5217 #endif
5218                      Syntax error
5219 _ACEOF
5220 if { (ac_try="$ac_cpp conftest.$ac_ext"
5221 case "(($ac_try" in
5222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223   *) ac_try_echo=$ac_try;;
5224 esac
5225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5227   ac_status=$?
5228   grep -v '^ *+' conftest.er1 >conftest.err
5229   rm -f conftest.er1
5230   cat conftest.err >&5
5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232   (exit $ac_status); } >/dev/null; then
5233   if test -s conftest.err; then
5234     ac_cpp_err=$ac_c_preproc_warn_flag
5235     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5236   else
5237     ac_cpp_err=
5238   fi
5239 else
5240   ac_cpp_err=yes
5241 fi
5242 if test -z "$ac_cpp_err"; then
5243   :
5244 else
5245   echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5247
5248   # Broken: fails on valid input.
5249 continue
5250 fi
5251
5252 rm -f conftest.err conftest.$ac_ext
5253
5254   # OK, works on sane cases.  Now check whether nonexistent headers
5255   # can be detected and how.
5256   cat >conftest.$ac_ext <<_ACEOF
5257 /* confdefs.h.  */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h.  */
5262 #include <ac_nonexistent.h>
5263 _ACEOF
5264 if { (ac_try="$ac_cpp conftest.$ac_ext"
5265 case "(($ac_try" in
5266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267   *) ac_try_echo=$ac_try;;
5268 esac
5269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5271   ac_status=$?
5272   grep -v '^ *+' conftest.er1 >conftest.err
5273   rm -f conftest.er1
5274   cat conftest.err >&5
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); } >/dev/null; then
5277   if test -s conftest.err; then
5278     ac_cpp_err=$ac_c_preproc_warn_flag
5279     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5280   else
5281     ac_cpp_err=
5282   fi
5283 else
5284   ac_cpp_err=yes
5285 fi
5286 if test -z "$ac_cpp_err"; then
5287   # Broken: success on invalid input.
5288 continue
5289 else
5290   echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5292
5293   # Passes both tests.
5294 ac_preproc_ok=:
5295 break
5296 fi
5297
5298 rm -f conftest.err conftest.$ac_ext
5299
5300 done
5301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5302 rm -f conftest.err conftest.$ac_ext
5303 if $ac_preproc_ok; then
5304   :
5305 else
5306   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5307 See \`config.log' for more details." >&5
5308 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5309 See \`config.log' for more details." >&2;}
5310    { (exit 1); exit 1; }; }
5311 fi
5312
5313 ac_ext=c
5314 ac_cpp='$CPP $CPPFLAGS'
5315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5318
5319 ac_ext=c
5320 ac_cpp='$CPP $CPPFLAGS'
5321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5324 if test -n "$ac_tool_prefix"; then
5325   for ac_prog in gcc
5326   do
5327     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5328 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5331 if test "${ac_cv_prog_CC+set}" = set; then
5332   echo $ECHO_N "(cached) $ECHO_C" >&6
5333 else
5334   if test -n "$CC"; then
5335   ac_cv_prog_CC="$CC" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5339 do
5340   IFS=$as_save_IFS
5341   test -z "$as_dir" && as_dir=.
5342   for ac_exec_ext in '' $ac_executable_extensions; do
5343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5344     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346     break 2
5347   fi
5348 done
5349 done
5350 IFS=$as_save_IFS
5351
5352 fi
5353 fi
5354 CC=$ac_cv_prog_CC
5355 if test -n "$CC"; then
5356   { echo "$as_me:$LINENO: result: $CC" >&5
5357 echo "${ECHO_T}$CC" >&6; }
5358 else
5359   { echo "$as_me:$LINENO: result: no" >&5
5360 echo "${ECHO_T}no" >&6; }
5361 fi
5362
5363
5364     test -n "$CC" && break
5365   done
5366 fi
5367 if test -z "$CC"; then
5368   ac_ct_CC=$CC
5369   for ac_prog in gcc
5370 do
5371   # Extract the first word of "$ac_prog", so it can be a program name with args.
5372 set dummy $ac_prog; ac_word=$2
5373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5375 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5376   echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378   if test -n "$ac_ct_CC"; then
5379   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5380 else
5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 for as_dir in $PATH
5383 do
5384   IFS=$as_save_IFS
5385   test -z "$as_dir" && as_dir=.
5386   for ac_exec_ext in '' $ac_executable_extensions; do
5387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5388     ac_cv_prog_ac_ct_CC="$ac_prog"
5389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5390     break 2
5391   fi
5392 done
5393 done
5394 IFS=$as_save_IFS
5395
5396 fi
5397 fi
5398 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5399 if test -n "$ac_ct_CC"; then
5400   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5401 echo "${ECHO_T}$ac_ct_CC" >&6; }
5402 else
5403   { echo "$as_me:$LINENO: result: no" >&5
5404 echo "${ECHO_T}no" >&6; }
5405 fi
5406
5407
5408   test -n "$ac_ct_CC" && break
5409 done
5410
5411   if test "x$ac_ct_CC" = x; then
5412     CC=""
5413   else
5414     case $cross_compiling:$ac_tool_warned in
5415 yes:)
5416 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5417 whose name does not start with the host triplet.  If you think this
5418 configuration is useful to you, please write to autoconf@gnu.org." >&5
5419 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5420 whose name does not start with the host triplet.  If you think this
5421 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5422 ac_tool_warned=yes ;;
5423 esac
5424     CC=$ac_ct_CC
5425   fi
5426 fi
5427
5428
5429 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5430 See \`config.log' for more details." >&5
5431 echo "$as_me: error: no acceptable C compiler found in \$PATH
5432 See \`config.log' for more details." >&2;}
5433    { (exit 1); exit 1; }; }
5434
5435 # Provide some information about the compiler.
5436 echo "$as_me:$LINENO: checking for C compiler version" >&5
5437 ac_compiler=`set X $ac_compile; echo $2`
5438 { (ac_try="$ac_compiler --version >&5"
5439 case "(($ac_try" in
5440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441   *) ac_try_echo=$ac_try;;
5442 esac
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444   (eval "$ac_compiler --version >&5") 2>&5
5445   ac_status=$?
5446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447   (exit $ac_status); }
5448 { (ac_try="$ac_compiler -v >&5"
5449 case "(($ac_try" in
5450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451   *) ac_try_echo=$ac_try;;
5452 esac
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454   (eval "$ac_compiler -v >&5") 2>&5
5455   ac_status=$?
5456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); }
5458 { (ac_try="$ac_compiler -V >&5"
5459 case "(($ac_try" in
5460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461   *) ac_try_echo=$ac_try;;
5462 esac
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464   (eval "$ac_compiler -V >&5") 2>&5
5465   ac_status=$?
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); }
5468
5469 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5470 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5471 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5472   echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474   cat >conftest.$ac_ext <<_ACEOF
5475 /* confdefs.h.  */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h.  */
5480
5481 int
5482 main ()
5483 {
5484 #ifndef __GNUC__
5485        choke me
5486 #endif
5487
5488   ;
5489   return 0;
5490 }
5491 _ACEOF
5492 rm -f conftest.$ac_objext
5493 if { (ac_try="$ac_compile"
5494 case "(($ac_try" in
5495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496   *) ac_try_echo=$ac_try;;
5497 esac
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499   (eval "$ac_compile") 2>conftest.er1
5500   ac_status=$?
5501   grep -v '^ *+' conftest.er1 >conftest.err
5502   rm -f conftest.er1
5503   cat conftest.err >&5
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); } &&
5506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5507   { (case "(($ac_try" in
5508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509   *) ac_try_echo=$ac_try;;
5510 esac
5511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512   (eval "$ac_try") 2>&5
5513   ac_status=$?
5514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515   (exit $ac_status); }; } &&
5516          { ac_try='test -s conftest.$ac_objext'
5517   { (case "(($ac_try" in
5518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519   *) ac_try_echo=$ac_try;;
5520 esac
5521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522   (eval "$ac_try") 2>&5
5523   ac_status=$?
5524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525   (exit $ac_status); }; }; then
5526   ac_compiler_gnu=yes
5527 else
5528   echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5530
5531         ac_compiler_gnu=no
5532 fi
5533
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5536
5537 fi
5538 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5539 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5540 GCC=`test $ac_compiler_gnu = yes && echo yes`
5541 ac_test_CFLAGS=${CFLAGS+set}
5542 ac_save_CFLAGS=$CFLAGS
5543 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5544 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5545 if test "${ac_cv_prog_cc_g+set}" = set; then
5546   echo $ECHO_N "(cached) $ECHO_C" >&6
5547 else
5548   ac_save_c_werror_flag=$ac_c_werror_flag
5549    ac_c_werror_flag=yes
5550    ac_cv_prog_cc_g=no
5551    CFLAGS="-g"
5552    cat >conftest.$ac_ext <<_ACEOF
5553 /* confdefs.h.  */
5554 _ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h.  */
5558
5559 int
5560 main ()
5561 {
5562
5563   ;
5564   return 0;
5565 }
5566 _ACEOF
5567 rm -f conftest.$ac_objext
5568 if { (ac_try="$ac_compile"
5569 case "(($ac_try" in
5570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571   *) ac_try_echo=$ac_try;;
5572 esac
5573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574   (eval "$ac_compile") 2>conftest.er1
5575   ac_status=$?
5576   grep -v '^ *+' conftest.er1 >conftest.err
5577   rm -f conftest.er1
5578   cat conftest.err >&5
5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); } &&
5581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5582   { (case "(($ac_try" in
5583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584   *) ac_try_echo=$ac_try;;
5585 esac
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587   (eval "$ac_try") 2>&5
5588   ac_status=$?
5589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590   (exit $ac_status); }; } &&
5591          { ac_try='test -s conftest.$ac_objext'
5592   { (case "(($ac_try" in
5593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594   *) ac_try_echo=$ac_try;;
5595 esac
5596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597   (eval "$ac_try") 2>&5
5598   ac_status=$?
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); }; }; then
5601   ac_cv_prog_cc_g=yes
5602 else
5603   echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5605
5606         CFLAGS=""
5607       cat >conftest.$ac_ext <<_ACEOF
5608 /* confdefs.h.  */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h.  */
5613
5614 int
5615 main ()
5616 {
5617
5618   ;
5619   return 0;
5620 }
5621 _ACEOF
5622 rm -f conftest.$ac_objext
5623 if { (ac_try="$ac_compile"
5624 case "(($ac_try" in
5625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626   *) ac_try_echo=$ac_try;;
5627 esac
5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629   (eval "$ac_compile") 2>conftest.er1
5630   ac_status=$?
5631   grep -v '^ *+' conftest.er1 >conftest.err
5632   rm -f conftest.er1
5633   cat conftest.err >&5
5634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635   (exit $ac_status); } &&
5636          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5637   { (case "(($ac_try" in
5638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639   *) ac_try_echo=$ac_try;;
5640 esac
5641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5642   (eval "$ac_try") 2>&5
5643   ac_status=$?
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); }; } &&
5646          { ac_try='test -s conftest.$ac_objext'
5647   { (case "(($ac_try" in
5648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649   *) ac_try_echo=$ac_try;;
5650 esac
5651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5652   (eval "$ac_try") 2>&5
5653   ac_status=$?
5654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655   (exit $ac_status); }; }; then
5656   :
5657 else
5658   echo "$as_me: failed program was:" >&5
5659 sed 's/^/| /' conftest.$ac_ext >&5
5660
5661         ac_c_werror_flag=$ac_save_c_werror_flag
5662          CFLAGS="-g"
5663          cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h.  */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h.  */
5669
5670 int
5671 main ()
5672 {
5673
5674   ;
5675   return 0;
5676 }
5677 _ACEOF
5678 rm -f conftest.$ac_objext
5679 if { (ac_try="$ac_compile"
5680 case "(($ac_try" in
5681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682   *) ac_try_echo=$ac_try;;
5683 esac
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685   (eval "$ac_compile") 2>conftest.er1
5686   ac_status=$?
5687   grep -v '^ *+' conftest.er1 >conftest.err
5688   rm -f conftest.er1
5689   cat conftest.err >&5
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); } &&
5692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5693   { (case "(($ac_try" in
5694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695   *) ac_try_echo=$ac_try;;
5696 esac
5697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698   (eval "$ac_try") 2>&5
5699   ac_status=$?
5700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701   (exit $ac_status); }; } &&
5702          { ac_try='test -s conftest.$ac_objext'
5703   { (case "(($ac_try" in
5704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705   *) ac_try_echo=$ac_try;;
5706 esac
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708   (eval "$ac_try") 2>&5
5709   ac_status=$?
5710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711   (exit $ac_status); }; }; then
5712   ac_cv_prog_cc_g=yes
5713 else
5714   echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5716
5717
5718 fi
5719
5720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721 fi
5722
5723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 fi
5725
5726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727    ac_c_werror_flag=$ac_save_c_werror_flag
5728 fi
5729 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5730 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5731 if test "$ac_test_CFLAGS" = set; then
5732   CFLAGS=$ac_save_CFLAGS
5733 elif test $ac_cv_prog_cc_g = yes; then
5734   if test "$GCC" = yes; then
5735     CFLAGS="-g -O2"
5736   else
5737     CFLAGS="-g"
5738   fi
5739 else
5740   if test "$GCC" = yes; then
5741     CFLAGS="-O2"
5742   else
5743     CFLAGS=
5744   fi
5745 fi
5746 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5747 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5748 if test "${ac_cv_prog_cc_c89+set}" = set; then
5749   echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751   ac_cv_prog_cc_c89=no
5752 ac_save_CC=$CC
5753 cat >conftest.$ac_ext <<_ACEOF
5754 /* confdefs.h.  */
5755 _ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h.  */
5759 #include <stdarg.h>
5760 #include <stdio.h>
5761 #include <sys/types.h>
5762 #include <sys/stat.h>
5763 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5764 struct buf { int x; };
5765 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5766 static char *e (p, i)
5767      char **p;
5768      int i;
5769 {
5770   return p[i];
5771 }
5772 static char *f (char * (*g) (char **, int), char **p, ...)
5773 {
5774   char *s;
5775   va_list v;
5776   va_start (v,p);
5777   s = g (p, va_arg (v,int));
5778   va_end (v);
5779   return s;
5780 }
5781
5782 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5783    function prototypes and stuff, but not '\xHH' hex character constants.
5784    These don't provoke an error unfortunately, instead are silently treated
5785    as 'x'.  The following induces an error, until -std is added to get
5786    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5787    array size at least.  It's necessary to write '\x00'==0 to get something
5788    that's true only with -std.  */
5789 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5790
5791 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5792    inside strings and character constants.  */
5793 #define FOO(x) 'x'
5794 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5795
5796 int test (int i, double x);
5797 struct s1 {int (*f) (int a);};
5798 struct s2 {int (*f) (double a);};
5799 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5800 int argc;
5801 char **argv;
5802 int
5803 main ()
5804 {
5805 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5806   ;
5807   return 0;
5808 }
5809 _ACEOF
5810 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5811         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5812 do
5813   CC="$ac_save_CC $ac_arg"
5814   rm -f conftest.$ac_objext
5815 if { (ac_try="$ac_compile"
5816 case "(($ac_try" in
5817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818   *) ac_try_echo=$ac_try;;
5819 esac
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821   (eval "$ac_compile") 2>conftest.er1
5822   ac_status=$?
5823   grep -v '^ *+' conftest.er1 >conftest.err
5824   rm -f conftest.er1
5825   cat conftest.err >&5
5826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827   (exit $ac_status); } &&
5828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5829   { (case "(($ac_try" in
5830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831   *) ac_try_echo=$ac_try;;
5832 esac
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834   (eval "$ac_try") 2>&5
5835   ac_status=$?
5836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837   (exit $ac_status); }; } &&
5838          { ac_try='test -s conftest.$ac_objext'
5839   { (case "(($ac_try" in
5840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841   *) ac_try_echo=$ac_try;;
5842 esac
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844   (eval "$ac_try") 2>&5
5845   ac_status=$?
5846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847   (exit $ac_status); }; }; then
5848   ac_cv_prog_cc_c89=$ac_arg
5849 else
5850   echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5852
5853
5854 fi
5855
5856 rm -f core conftest.err conftest.$ac_objext
5857   test "x$ac_cv_prog_cc_c89" != "xno" && break
5858 done
5859 rm -f conftest.$ac_ext
5860 CC=$ac_save_CC
5861
5862 fi
5863 # AC_CACHE_VAL
5864 case "x$ac_cv_prog_cc_c89" in
5865   x)
5866     { echo "$as_me:$LINENO: result: none needed" >&5
5867 echo "${ECHO_T}none needed" >&6; } ;;
5868   xno)
5869     { echo "$as_me:$LINENO: result: unsupported" >&5
5870 echo "${ECHO_T}unsupported" >&6; } ;;
5871   *)
5872     CC="$CC $ac_cv_prog_cc_c89"
5873     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5874 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5875 esac
5876
5877
5878 ac_ext=c
5879 ac_cpp='$CPP $CPPFLAGS'
5880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5883
5884 ac_ext=cpp
5885 ac_cpp='$CXXCPP $CPPFLAGS'
5886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5889 if test -z "$CXX"; then
5890   if test -n "$CCC"; then
5891     CXX=$CCC
5892   else
5893     if test -n "$ac_tool_prefix"; then
5894   for ac_prog in g++
5895   do
5896     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5900 if test "${ac_cv_prog_CXX+set}" = set; then
5901   echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903   if test -n "$CXX"; then
5904   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5905 else
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $PATH
5908 do
5909   IFS=$as_save_IFS
5910   test -z "$as_dir" && as_dir=.
5911   for ac_exec_ext in '' $ac_executable_extensions; do
5912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5913     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915     break 2
5916   fi
5917 done
5918 done
5919 IFS=$as_save_IFS
5920
5921 fi
5922 fi
5923 CXX=$ac_cv_prog_CXX
5924 if test -n "$CXX"; then
5925   { echo "$as_me:$LINENO: result: $CXX" >&5
5926 echo "${ECHO_T}$CXX" >&6; }
5927 else
5928   { echo "$as_me:$LINENO: result: no" >&5
5929 echo "${ECHO_T}no" >&6; }
5930 fi
5931
5932
5933     test -n "$CXX" && break
5934   done
5935 fi
5936 if test -z "$CXX"; then
5937   ac_ct_CXX=$CXX
5938   for ac_prog in g++
5939 do
5940   # Extract the first word of "$ac_prog", so it can be a program name with args.
5941 set dummy $ac_prog; ac_word=$2
5942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5944 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5945   echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947   if test -n "$ac_ct_CXX"; then
5948   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5949 else
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH
5952 do
5953   IFS=$as_save_IFS
5954   test -z "$as_dir" && as_dir=.
5955   for ac_exec_ext in '' $ac_executable_extensions; do
5956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5957     ac_cv_prog_ac_ct_CXX="$ac_prog"
5958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959     break 2
5960   fi
5961 done
5962 done
5963 IFS=$as_save_IFS
5964
5965 fi
5966 fi
5967 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5968 if test -n "$ac_ct_CXX"; then
5969   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5970 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5971 else
5972   { echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6; }
5974 fi
5975
5976
5977   test -n "$ac_ct_CXX" && break
5978 done
5979
5980   if test "x$ac_ct_CXX" = x; then
5981     CXX="g++"
5982   else
5983     case $cross_compiling:$ac_tool_warned in
5984 yes:)
5985 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5986 whose name does not start with the host triplet.  If you think this
5987 configuration is useful to you, please write to autoconf@gnu.org." >&5
5988 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5989 whose name does not start with the host triplet.  If you think this
5990 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5991 ac_tool_warned=yes ;;
5992 esac
5993     CXX=$ac_ct_CXX
5994   fi
5995 fi
5996
5997   fi
5998 fi
5999 # Provide some information about the compiler.
6000 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6001 ac_compiler=`set X $ac_compile; echo $2`
6002 { (ac_try="$ac_compiler --version >&5"
6003 case "(($ac_try" in
6004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005   *) ac_try_echo=$ac_try;;
6006 esac
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008   (eval "$ac_compiler --version >&5") 2>&5
6009   ac_status=$?
6010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011   (exit $ac_status); }
6012 { (ac_try="$ac_compiler -v >&5"
6013 case "(($ac_try" in
6014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015   *) ac_try_echo=$ac_try;;
6016 esac
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018   (eval "$ac_compiler -v >&5") 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }
6022 { (ac_try="$ac_compiler -V >&5"
6023 case "(($ac_try" in
6024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025   *) ac_try_echo=$ac_try;;
6026 esac
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028   (eval "$ac_compiler -V >&5") 2>&5
6029   ac_status=$?
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); }
6032
6033 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6034 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6035 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6036   echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038   cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h.  */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h.  */
6044
6045 int
6046 main ()
6047 {
6048 #ifndef __GNUC__
6049        choke me
6050 #endif
6051
6052   ;
6053   return 0;
6054 }
6055 _ACEOF
6056 rm -f conftest.$ac_objext
6057 if { (ac_try="$ac_compile"
6058 case "(($ac_try" in
6059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060   *) ac_try_echo=$ac_try;;
6061 esac
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063   (eval "$ac_compile") 2>conftest.er1
6064   ac_status=$?
6065   grep -v '^ *+' conftest.er1 >conftest.err
6066   rm -f conftest.er1
6067   cat conftest.err >&5
6068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069   (exit $ac_status); } &&
6070          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6071   { (case "(($ac_try" in
6072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073   *) ac_try_echo=$ac_try;;
6074 esac
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076   (eval "$ac_try") 2>&5
6077   ac_status=$?
6078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079   (exit $ac_status); }; } &&
6080          { ac_try='test -s conftest.$ac_objext'
6081   { (case "(($ac_try" in
6082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083   *) ac_try_echo=$ac_try;;
6084 esac
6085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086   (eval "$ac_try") 2>&5
6087   ac_status=$?
6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089   (exit $ac_status); }; }; then
6090   ac_compiler_gnu=yes
6091 else
6092   echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6094
6095         ac_compiler_gnu=no
6096 fi
6097
6098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6100
6101 fi
6102 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6103 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6104 GXX=`test $ac_compiler_gnu = yes && echo yes`
6105 ac_test_CXXFLAGS=${CXXFLAGS+set}
6106 ac_save_CXXFLAGS=$CXXFLAGS
6107 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6108 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6109 if test "${ac_cv_prog_cxx_g+set}" = set; then
6110   echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6113    ac_cxx_werror_flag=yes
6114    ac_cv_prog_cxx_g=no
6115    CXXFLAGS="-g"
6116    cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h.  */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h.  */
6122
6123 int
6124 main ()
6125 {
6126
6127   ;
6128   return 0;
6129 }
6130 _ACEOF
6131 rm -f conftest.$ac_objext
6132 if { (ac_try="$ac_compile"
6133 case "(($ac_try" in
6134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135   *) ac_try_echo=$ac_try;;
6136 esac
6137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6138   (eval "$ac_compile") 2>conftest.er1
6139   ac_status=$?
6140   grep -v '^ *+' conftest.er1 >conftest.err
6141   rm -f conftest.er1
6142   cat conftest.err >&5
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); } &&
6145          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6146   { (case "(($ac_try" in
6147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148   *) ac_try_echo=$ac_try;;
6149 esac
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151   (eval "$ac_try") 2>&5
6152   ac_status=$?
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); }; } &&
6155          { ac_try='test -s conftest.$ac_objext'
6156   { (case "(($ac_try" in
6157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158   *) ac_try_echo=$ac_try;;
6159 esac
6160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161   (eval "$ac_try") 2>&5
6162   ac_status=$?
6163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164   (exit $ac_status); }; }; then
6165   ac_cv_prog_cxx_g=yes
6166 else
6167   echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6169
6170         CXXFLAGS=""
6171       cat >conftest.$ac_ext <<_ACEOF
6172 /* confdefs.h.  */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h.  */
6177
6178 int
6179 main ()
6180 {
6181
6182   ;
6183   return 0;
6184 }
6185 _ACEOF
6186 rm -f conftest.$ac_objext
6187 if { (ac_try="$ac_compile"
6188 case "(($ac_try" in
6189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190   *) ac_try_echo=$ac_try;;
6191 esac
6192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193   (eval "$ac_compile") 2>conftest.er1
6194   ac_status=$?
6195   grep -v '^ *+' conftest.er1 >conftest.err
6196   rm -f conftest.er1
6197   cat conftest.err >&5
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); } &&
6200          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6201   { (case "(($ac_try" in
6202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203   *) ac_try_echo=$ac_try;;
6204 esac
6205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206   (eval "$ac_try") 2>&5
6207   ac_status=$?
6208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209   (exit $ac_status); }; } &&
6210          { ac_try='test -s conftest.$ac_objext'
6211   { (case "(($ac_try" in
6212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213   *) ac_try_echo=$ac_try;;
6214 esac
6215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216   (eval "$ac_try") 2>&5
6217   ac_status=$?
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); }; }; then
6220   :
6221 else
6222   echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6224
6225         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6226          CXXFLAGS="-g"
6227          cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h.  */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h.  */
6233
6234 int
6235 main ()
6236 {
6237
6238   ;
6239   return 0;
6240 }
6241 _ACEOF
6242 rm -f conftest.$ac_objext
6243 if { (ac_try="$ac_compile"
6244 case "(($ac_try" in
6245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246   *) ac_try_echo=$ac_try;;
6247 esac
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249   (eval "$ac_compile") 2>conftest.er1
6250   ac_status=$?
6251   grep -v '^ *+' conftest.er1 >conftest.err
6252   rm -f conftest.er1
6253   cat conftest.err >&5
6254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255   (exit $ac_status); } &&
6256          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6257   { (case "(($ac_try" in
6258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259   *) ac_try_echo=$ac_try;;
6260 esac
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262   (eval "$ac_try") 2>&5
6263   ac_status=$?
6264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265   (exit $ac_status); }; } &&
6266          { ac_try='test -s conftest.$ac_objext'
6267   { (case "(($ac_try" in
6268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269   *) ac_try_echo=$ac_try;;
6270 esac
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272   (eval "$ac_try") 2>&5
6273   ac_status=$?
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); }; }; then
6276   ac_cv_prog_cxx_g=yes
6277 else
6278   echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6280
6281
6282 fi
6283
6284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285 fi
6286
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288 fi
6289
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6292 fi
6293 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6294 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6295 if test "$ac_test_CXXFLAGS" = set; then
6296   CXXFLAGS=$ac_save_CXXFLAGS
6297 elif test $ac_cv_prog_cxx_g = yes; then
6298   if test "$GXX" = yes; then
6299     CXXFLAGS="-g -O2"
6300   else
6301     CXXFLAGS="-g"
6302   fi
6303 else
6304   if test "$GXX" = yes; then
6305     CXXFLAGS="-O2"
6306   else
6307     CXXFLAGS=
6308   fi
6309 fi
6310 ac_ext=c
6311 ac_cpp='$CPP $CPPFLAGS'
6312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6315
6316 { echo "$as_me:$LINENO: checking " >&5
6317 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6318 if test "${ac_cv_has_flex+set}" = set; then
6319   echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321   for ac_prog in flex lex
6322 do
6323   # Extract the first word of "$ac_prog", so it can be a program name with args.
6324 set dummy $ac_prog; ac_word=$2
6325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6327 if test "${ac_cv_prog_LEX+set}" = set; then
6328   echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330   if test -n "$LEX"; then
6331   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336   IFS=$as_save_IFS
6337   test -z "$as_dir" && as_dir=.
6338   for ac_exec_ext in '' $ac_executable_extensions; do
6339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6340     ac_cv_prog_LEX="$ac_prog"
6341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342     break 2
6343   fi
6344 done
6345 done
6346 IFS=$as_save_IFS
6347
6348 fi
6349 fi
6350 LEX=$ac_cv_prog_LEX
6351 if test -n "$LEX"; then
6352   { echo "$as_me:$LINENO: result: $LEX" >&5
6353 echo "${ECHO_T}$LEX" >&6; }
6354 else
6355   { echo "$as_me:$LINENO: result: no" >&5
6356 echo "${ECHO_T}no" >&6; }
6357 fi
6358
6359
6360   test -n "$LEX" && break
6361 done
6362 test -n "$LEX" || LEX=":"
6363
6364 if test -z "$LEXLIB"
6365 then
6366   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6367 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6368 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6369   echo $ECHO_N "(cached) $ECHO_C" >&6
6370 else
6371   ac_check_lib_save_LIBS=$LIBS
6372 LIBS="-lfl  $LIBS"
6373 cat >conftest.$ac_ext <<_ACEOF
6374 /* confdefs.h.  */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h.  */
6379
6380 /* Override any GCC internal prototype to avoid an error.
6381    Use char because int might match the return type of a GCC
6382    builtin and then its argument prototype would still apply.  */
6383 #ifdef __cplusplus
6384 extern "C"
6385 #endif
6386 char yywrap ();
6387 int
6388 main ()
6389 {
6390 return yywrap ();
6391   ;
6392   return 0;
6393 }
6394 _ACEOF
6395 rm -f conftest.$ac_objext conftest$ac_exeext
6396 if { (ac_try="$ac_link"
6397 case "(($ac_try" in
6398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399   *) ac_try_echo=$ac_try;;
6400 esac
6401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402   (eval "$ac_link") 2>conftest.er1
6403   ac_status=$?
6404   grep -v '^ *+' conftest.er1 >conftest.err
6405   rm -f conftest.er1
6406   cat conftest.err >&5
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); } &&
6409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6410   { (case "(($ac_try" in
6411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412   *) ac_try_echo=$ac_try;;
6413 esac
6414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415   (eval "$ac_try") 2>&5
6416   ac_status=$?
6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418   (exit $ac_status); }; } &&
6419          { ac_try='test -s conftest$ac_exeext'
6420   { (case "(($ac_try" in
6421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422   *) ac_try_echo=$ac_try;;
6423 esac
6424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425   (eval "$ac_try") 2>&5
6426   ac_status=$?
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); }; }; then
6429   ac_cv_lib_fl_yywrap=yes
6430 else
6431   echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434         ac_cv_lib_fl_yywrap=no
6435 fi
6436
6437 rm -f core conftest.err conftest.$ac_objext \
6438       conftest$ac_exeext conftest.$ac_ext
6439 LIBS=$ac_check_lib_save_LIBS
6440 fi
6441 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6442 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6443 if test $ac_cv_lib_fl_yywrap = yes; then
6444   LEXLIB="-lfl"
6445 else
6446   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6447 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6448 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6449   echo $ECHO_N "(cached) $ECHO_C" >&6
6450 else
6451   ac_check_lib_save_LIBS=$LIBS
6452 LIBS="-ll  $LIBS"
6453 cat >conftest.$ac_ext <<_ACEOF
6454 /* confdefs.h.  */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h.  */
6459
6460 /* Override any GCC internal prototype to avoid an error.
6461    Use char because int might match the return type of a GCC
6462    builtin and then its argument prototype would still apply.  */
6463 #ifdef __cplusplus
6464 extern "C"
6465 #endif
6466 char yywrap ();
6467 int
6468 main ()
6469 {
6470 return yywrap ();
6471   ;
6472   return 0;
6473 }
6474 _ACEOF
6475 rm -f conftest.$ac_objext conftest$ac_exeext
6476 if { (ac_try="$ac_link"
6477 case "(($ac_try" in
6478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479   *) ac_try_echo=$ac_try;;
6480 esac
6481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482   (eval "$ac_link") 2>conftest.er1
6483   ac_status=$?
6484   grep -v '^ *+' conftest.er1 >conftest.err
6485   rm -f conftest.er1
6486   cat conftest.err >&5
6487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488   (exit $ac_status); } &&
6489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6490   { (case "(($ac_try" in
6491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492   *) ac_try_echo=$ac_try;;
6493 esac
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495   (eval "$ac_try") 2>&5
6496   ac_status=$?
6497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498   (exit $ac_status); }; } &&
6499          { ac_try='test -s conftest$ac_exeext'
6500   { (case "(($ac_try" in
6501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502   *) ac_try_echo=$ac_try;;
6503 esac
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505   (eval "$ac_try") 2>&5
6506   ac_status=$?
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); }; }; then
6509   ac_cv_lib_l_yywrap=yes
6510 else
6511   echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6513
6514         ac_cv_lib_l_yywrap=no
6515 fi
6516
6517 rm -f core conftest.err conftest.$ac_objext \
6518       conftest$ac_exeext conftest.$ac_ext
6519 LIBS=$ac_check_lib_save_LIBS
6520 fi
6521 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6522 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6523 if test $ac_cv_lib_l_yywrap = yes; then
6524   LEXLIB="-ll"
6525 fi
6526
6527 fi
6528
6529 fi
6530
6531 if test "x$LEX" != "x:"; then
6532   { echo "$as_me:$LINENO: checking lex output file root" >&5
6533 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6534 if test "${ac_cv_prog_lex_root+set}" = set; then
6535   echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537   # The minimal lex program is just a single line: %%.  But some broken lexes
6538 # (Solaris, I think it was) want two %% lines, so accommodate them.
6539 cat >conftest.l <<_ACEOF
6540 %%
6541 %%
6542 _ACEOF
6543 { (ac_try="$LEX conftest.l"
6544 case "(($ac_try" in
6545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6546   *) ac_try_echo=$ac_try;;
6547 esac
6548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549   (eval "$LEX conftest.l") 2>&5
6550   ac_status=$?
6551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552   (exit $ac_status); }
6553 if test -f lex.yy.c; then
6554   ac_cv_prog_lex_root=lex.yy
6555 elif test -f lexyy.c; then
6556   ac_cv_prog_lex_root=lexyy
6557 else
6558   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6559 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6560    { (exit 1); exit 1; }; }
6561 fi
6562 fi
6563 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6564 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6565 rm -f conftest.l
6566 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6567
6568 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6569 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6570 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6571   echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573   # POSIX says lex can declare yytext either as a pointer or an array; the
6574 # default is implementation-dependent. Figure out which it is, since
6575 # not all implementations provide the %pointer and %array declarations.
6576 ac_cv_prog_lex_yytext_pointer=no
6577 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6578 ac_save_LIBS=$LIBS
6579 LIBS="$LIBS $LEXLIB"
6580 cat >conftest.$ac_ext <<_ACEOF
6581 `cat $LEX_OUTPUT_ROOT.c`
6582 _ACEOF
6583 rm -f conftest.$ac_objext conftest$ac_exeext
6584 if { (ac_try="$ac_link"
6585 case "(($ac_try" in
6586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587   *) ac_try_echo=$ac_try;;
6588 esac
6589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6590   (eval "$ac_link") 2>conftest.er1
6591   ac_status=$?
6592   grep -v '^ *+' conftest.er1 >conftest.err
6593   rm -f conftest.er1
6594   cat conftest.err >&5
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); } &&
6597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6598   { (case "(($ac_try" in
6599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600   *) ac_try_echo=$ac_try;;
6601 esac
6602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603   (eval "$ac_try") 2>&5
6604   ac_status=$?
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); }; } &&
6607          { ac_try='test -s conftest$ac_exeext'
6608   { (case "(($ac_try" in
6609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610   *) ac_try_echo=$ac_try;;
6611 esac
6612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613   (eval "$ac_try") 2>&5
6614   ac_status=$?
6615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616   (exit $ac_status); }; }; then
6617   ac_cv_prog_lex_yytext_pointer=yes
6618 else
6619   echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6621
6622
6623 fi
6624
6625 rm -f core conftest.err conftest.$ac_objext \
6626       conftest$ac_exeext conftest.$ac_ext
6627 LIBS=$ac_save_LIBS
6628 rm -f "${LEX_OUTPUT_ROOT}.c"
6629
6630 fi
6631 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6632 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6633 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6634
6635 cat >>confdefs.h <<\_ACEOF
6636 #define YYTEXT_POINTER 1
6637 _ACEOF
6638
6639 fi
6640
6641 fi
6642
6643 fi
6644 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6645 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6646 if test "$LEX" != "flex"; then
6647   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6648 echo "$as_me: error: flex not found but required" >&2;}
6649    { (exit 1); exit 1; }; }
6650 else
6651   FLEX=flex
6652
6653 fi
6654
6655 { echo "$as_me:$LINENO: checking " >&5
6656 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6657 if test "${llvm_cv_has_bison+set}" = set; then
6658   echo $ECHO_N "(cached) $ECHO_C" >&6
6659 else
6660   for ac_prog in 'bison -y' byacc
6661 do
6662   # Extract the first word of "$ac_prog", so it can be a program name with args.
6663 set dummy $ac_prog; ac_word=$2
6664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666 if test "${ac_cv_prog_YACC+set}" = set; then
6667   echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669   if test -n "$YACC"; then
6670   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675   IFS=$as_save_IFS
6676   test -z "$as_dir" && as_dir=.
6677   for ac_exec_ext in '' $ac_executable_extensions; do
6678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6679     ac_cv_prog_YACC="$ac_prog"
6680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681     break 2
6682   fi
6683 done
6684 done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 YACC=$ac_cv_prog_YACC
6690 if test -n "$YACC"; then
6691   { echo "$as_me:$LINENO: result: $YACC" >&5
6692 echo "${ECHO_T}$YACC" >&6; }
6693 else
6694   { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6696 fi
6697
6698
6699   test -n "$YACC" && break
6700 done
6701 test -n "$YACC" || YACC="yacc"
6702
6703 fi
6704 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6705 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6706 if test "$YACC" != "bison -y"; then
6707
6708   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6709 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6710 else
6711   BISON=bison
6712
6713 fi
6714
6715 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6716 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6717 if test "${lt_cv_path_NM+set}" = set; then
6718   echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720   if test -n "$NM"; then
6721   # Let the user override the test.
6722   lt_cv_path_NM="$NM"
6723 else
6724   lt_nm_to_check="${ac_tool_prefix}nm"
6725   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6726     lt_nm_to_check="$lt_nm_to_check nm"
6727   fi
6728   for lt_tmp_nm in $lt_nm_to_check; do
6729     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6730     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6731       IFS="$lt_save_ifs"
6732       test -z "$ac_dir" && ac_dir=.
6733       tmp_nm="$ac_dir/$lt_tmp_nm"
6734       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6735         # Check to see if the nm accepts a BSD-compat flag.
6736         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6737         #   nm: unknown option "B" ignored
6738         # Tru64's nm complains that /dev/null is an invalid object file
6739         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6740         */dev/null* | *'Invalid file or object type'*)
6741           lt_cv_path_NM="$tmp_nm -B"
6742           break
6743           ;;
6744         *)
6745           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6746           */dev/null*)
6747             lt_cv_path_NM="$tmp_nm -p"
6748             break
6749             ;;
6750           *)
6751             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6752             continue # so that we can try to find one that supports BSD flags
6753             ;;
6754           esac
6755           ;;
6756         esac
6757       fi
6758     done
6759     IFS="$lt_save_ifs"
6760   done
6761   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6762 fi
6763 fi
6764 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6765 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6766 NM="$lt_cv_path_NM"
6767
6768
6769
6770 { echo "$as_me:$LINENO: checking for GNU make" >&5
6771 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6772 if test "${llvm_cv_gnu_make_command+set}" = set; then
6773   echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775   llvm_cv_gnu_make_command=''
6776  for a in "$MAKE" make gmake gnumake ; do
6777   if test -z "$a" ; then continue ; fi ;
6778   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6779   then
6780    llvm_cv_gnu_make_command=$a ;
6781    break;
6782   fi
6783  done
6784 fi
6785 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6786 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6787  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6788    ifGNUmake='' ;
6789  else
6790    ifGNUmake='#' ;
6791    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6792 echo "${ECHO_T}\"Not found\"" >&6; };
6793  fi
6794
6795
6796 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6797 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6798 LN_S=$as_ln_s
6799 if test "$LN_S" = "ln -s"; then
6800   { echo "$as_me:$LINENO: result: yes" >&5
6801 echo "${ECHO_T}yes" >&6; }
6802 else
6803   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6804 echo "${ECHO_T}no, using $LN_S" >&6; }
6805 fi
6806
6807 # Extract the first word of "cmp", so it can be a program name with args.
6808 set dummy cmp; ac_word=$2
6809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811 if test "${ac_cv_path_CMP+set}" = set; then
6812   echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814   case $CMP in
6815   [\\/]* | ?:[\\/]*)
6816   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6817   ;;
6818   *)
6819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822   IFS=$as_save_IFS
6823   test -z "$as_dir" && as_dir=.
6824   for ac_exec_ext in '' $ac_executable_extensions; do
6825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828     break 2
6829   fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6835   ;;
6836 esac
6837 fi
6838 CMP=$ac_cv_path_CMP
6839 if test -n "$CMP"; then
6840   { echo "$as_me:$LINENO: result: $CMP" >&5
6841 echo "${ECHO_T}$CMP" >&6; }
6842 else
6843   { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6845 fi
6846
6847
6848 # Extract the first word of "cp", so it can be a program name with args.
6849 set dummy cp; ac_word=$2
6850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852 if test "${ac_cv_path_CP+set}" = set; then
6853   echo $ECHO_N "(cached) $ECHO_C" >&6
6854 else
6855   case $CP in
6856   [\\/]* | ?:[\\/]*)
6857   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6858   ;;
6859   *)
6860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863   IFS=$as_save_IFS
6864   test -z "$as_dir" && as_dir=.
6865   for ac_exec_ext in '' $ac_executable_extensions; do
6866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6867     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869     break 2
6870   fi
6871 done
6872 done
6873 IFS=$as_save_IFS
6874
6875   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6876   ;;
6877 esac
6878 fi
6879 CP=$ac_cv_path_CP
6880 if test -n "$CP"; then
6881   { echo "$as_me:$LINENO: result: $CP" >&5
6882 echo "${ECHO_T}$CP" >&6; }
6883 else
6884   { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6886 fi
6887
6888
6889 # Extract the first word of "date", so it can be a program name with args.
6890 set dummy date; ac_word=$2
6891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893 if test "${ac_cv_path_DATE+set}" = set; then
6894   echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896   case $DATE in
6897   [\\/]* | ?:[\\/]*)
6898   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6899   ;;
6900   *)
6901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904   IFS=$as_save_IFS
6905   test -z "$as_dir" && as_dir=.
6906   for ac_exec_ext in '' $ac_executable_extensions; do
6907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910     break 2
6911   fi
6912 done
6913 done
6914 IFS=$as_save_IFS
6915
6916   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6917   ;;
6918 esac
6919 fi
6920 DATE=$ac_cv_path_DATE
6921 if test -n "$DATE"; then
6922   { echo "$as_me:$LINENO: result: $DATE" >&5
6923 echo "${ECHO_T}$DATE" >&6; }
6924 else
6925   { echo "$as_me:$LINENO: result: no" >&5
6926 echo "${ECHO_T}no" >&6; }
6927 fi
6928
6929
6930 # Extract the first word of "find", so it can be a program name with args.
6931 set dummy find; ac_word=$2
6932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6934 if test "${ac_cv_path_FIND+set}" = set; then
6935   echo $ECHO_N "(cached) $ECHO_C" >&6
6936 else
6937   case $FIND in
6938   [\\/]* | ?:[\\/]*)
6939   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6940   ;;
6941   *)
6942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945   IFS=$as_save_IFS
6946   test -z "$as_dir" && as_dir=.
6947   for ac_exec_ext in '' $ac_executable_extensions; do
6948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6949     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951     break 2
6952   fi
6953 done
6954 done
6955 IFS=$as_save_IFS
6956
6957   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6958   ;;
6959 esac
6960 fi
6961 FIND=$ac_cv_path_FIND
6962 if test -n "$FIND"; then
6963   { echo "$as_me:$LINENO: result: $FIND" >&5
6964 echo "${ECHO_T}$FIND" >&6; }
6965 else
6966   { echo "$as_me:$LINENO: result: no" >&5
6967 echo "${ECHO_T}no" >&6; }
6968 fi
6969
6970
6971 # Extract the first word of "grep", so it can be a program name with args.
6972 set dummy grep; ac_word=$2
6973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6975 if test "${ac_cv_path_GREP+set}" = set; then
6976   echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978   case $GREP in
6979   [\\/]* | ?:[\\/]*)
6980   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6981   ;;
6982   *)
6983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986   IFS=$as_save_IFS
6987   test -z "$as_dir" && as_dir=.
6988   for ac_exec_ext in '' $ac_executable_extensions; do
6989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6990     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992     break 2
6993   fi
6994 done
6995 done
6996 IFS=$as_save_IFS
6997
6998   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6999   ;;
7000 esac
7001 fi
7002 GREP=$ac_cv_path_GREP
7003 if test -n "$GREP"; then
7004   { echo "$as_me:$LINENO: result: $GREP" >&5
7005 echo "${ECHO_T}$GREP" >&6; }
7006 else
7007   { echo "$as_me:$LINENO: result: no" >&5
7008 echo "${ECHO_T}no" >&6; }
7009 fi
7010
7011
7012 # Extract the first word of "mkdir", so it can be a program name with args.
7013 set dummy mkdir; ac_word=$2
7014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016 if test "${ac_cv_path_MKDIR+set}" = set; then
7017   echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019   case $MKDIR in
7020   [\\/]* | ?:[\\/]*)
7021   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7022   ;;
7023   *)
7024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027   IFS=$as_save_IFS
7028   test -z "$as_dir" && as_dir=.
7029   for ac_exec_ext in '' $ac_executable_extensions; do
7030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7031     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033     break 2
7034   fi
7035 done
7036 done
7037 IFS=$as_save_IFS
7038
7039   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7040   ;;
7041 esac
7042 fi
7043 MKDIR=$ac_cv_path_MKDIR
7044 if test -n "$MKDIR"; then
7045   { echo "$as_me:$LINENO: result: $MKDIR" >&5
7046 echo "${ECHO_T}$MKDIR" >&6; }
7047 else
7048   { echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6; }
7050 fi
7051
7052
7053 # Extract the first word of "mv", so it can be a program name with args.
7054 set dummy mv; ac_word=$2
7055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7057 if test "${ac_cv_path_MV+set}" = set; then
7058   echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060   case $MV in
7061   [\\/]* | ?:[\\/]*)
7062   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7063   ;;
7064   *)
7065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7067 do
7068   IFS=$as_save_IFS
7069   test -z "$as_dir" && as_dir=.
7070   for ac_exec_ext in '' $ac_executable_extensions; do
7071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7072     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7074     break 2
7075   fi
7076 done
7077 done
7078 IFS=$as_save_IFS
7079
7080   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7081   ;;
7082 esac
7083 fi
7084 MV=$ac_cv_path_MV
7085 if test -n "$MV"; then
7086   { echo "$as_me:$LINENO: result: $MV" >&5
7087 echo "${ECHO_T}$MV" >&6; }
7088 else
7089   { echo "$as_me:$LINENO: result: no" >&5
7090 echo "${ECHO_T}no" >&6; }
7091 fi
7092
7093
7094 if test -n "$ac_tool_prefix"; then
7095   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7096 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7099 if test "${ac_cv_prog_RANLIB+set}" = set; then
7100   echo $ECHO_N "(cached) $ECHO_C" >&6
7101 else
7102   if test -n "$RANLIB"; then
7103   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7104 else
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108   IFS=$as_save_IFS
7109   test -z "$as_dir" && as_dir=.
7110   for ac_exec_ext in '' $ac_executable_extensions; do
7111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7112     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114     break 2
7115   fi
7116 done
7117 done
7118 IFS=$as_save_IFS
7119
7120 fi
7121 fi
7122 RANLIB=$ac_cv_prog_RANLIB
7123 if test -n "$RANLIB"; then
7124   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7125 echo "${ECHO_T}$RANLIB" >&6; }
7126 else
7127   { echo "$as_me:$LINENO: result: no" >&5
7128 echo "${ECHO_T}no" >&6; }
7129 fi
7130
7131
7132 fi
7133 if test -z "$ac_cv_prog_RANLIB"; then
7134   ac_ct_RANLIB=$RANLIB
7135   # Extract the first word of "ranlib", so it can be a program name with args.
7136 set dummy ranlib; ac_word=$2
7137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7139 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7140   echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142   if test -n "$ac_ct_RANLIB"; then
7143   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7144 else
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
7148   IFS=$as_save_IFS
7149   test -z "$as_dir" && as_dir=.
7150   for ac_exec_ext in '' $ac_executable_extensions; do
7151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7152     ac_cv_prog_ac_ct_RANLIB="ranlib"
7153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154     break 2
7155   fi
7156 done
7157 done
7158 IFS=$as_save_IFS
7159
7160 fi
7161 fi
7162 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7163 if test -n "$ac_ct_RANLIB"; then
7164   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7165 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7166 else
7167   { echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6; }
7169 fi
7170
7171   if test "x$ac_ct_RANLIB" = x; then
7172     RANLIB=":"
7173   else
7174     case $cross_compiling:$ac_tool_warned in
7175 yes:)
7176 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7177 whose name does not start with the host triplet.  If you think this
7178 configuration is useful to you, please write to autoconf@gnu.org." >&5
7179 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7180 whose name does not start with the host triplet.  If you think this
7181 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7182 ac_tool_warned=yes ;;
7183 esac
7184     RANLIB=$ac_ct_RANLIB
7185   fi
7186 else
7187   RANLIB="$ac_cv_prog_RANLIB"
7188 fi
7189
7190 # Extract the first word of "rm", so it can be a program name with args.
7191 set dummy rm; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_path_RM+set}" = set; then
7195   echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197   case $RM in
7198   [\\/]* | ?:[\\/]*)
7199   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7200   ;;
7201   *)
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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7209     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
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   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7218   ;;
7219 esac
7220 fi
7221 RM=$ac_cv_path_RM
7222 if test -n "$RM"; then
7223   { echo "$as_me:$LINENO: result: $RM" >&5
7224 echo "${ECHO_T}$RM" >&6; }
7225 else
7226   { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7228 fi
7229
7230
7231 # Extract the first word of "sed", so it can be a program name with args.
7232 set dummy sed; ac_word=$2
7233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235 if test "${ac_cv_path_SED+set}" = set; then
7236   echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238   case $SED in
7239   [\\/]* | ?:[\\/]*)
7240   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7241   ;;
7242   *)
7243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7245 do
7246   IFS=$as_save_IFS
7247   test -z "$as_dir" && as_dir=.
7248   for ac_exec_ext in '' $ac_executable_extensions; do
7249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7250     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252     break 2
7253   fi
7254 done
7255 done
7256 IFS=$as_save_IFS
7257
7258   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7259   ;;
7260 esac
7261 fi
7262 SED=$ac_cv_path_SED
7263 if test -n "$SED"; then
7264   { echo "$as_me:$LINENO: result: $SED" >&5
7265 echo "${ECHO_T}$SED" >&6; }
7266 else
7267   { echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6; }
7269 fi
7270
7271
7272 # Extract the first word of "tar", so it can be a program name with args.
7273 set dummy tar; ac_word=$2
7274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7276 if test "${ac_cv_path_TAR+set}" = set; then
7277   echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279   case $TAR in
7280   [\\/]* | ?:[\\/]*)
7281   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7282   ;;
7283   *)
7284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 for as_dir in $PATH
7286 do
7287   IFS=$as_save_IFS
7288   test -z "$as_dir" && as_dir=.
7289   for ac_exec_ext in '' $ac_executable_extensions; do
7290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7291     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7293     break 2
7294   fi
7295 done
7296 done
7297 IFS=$as_save_IFS
7298
7299   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7300   ;;
7301 esac
7302 fi
7303 TAR=$ac_cv_path_TAR
7304 if test -n "$TAR"; then
7305   { echo "$as_me:$LINENO: result: $TAR" >&5
7306 echo "${ECHO_T}$TAR" >&6; }
7307 else
7308   { echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6; }
7310 fi
7311
7312
7313 # Extract the first word of "pwd", so it can be a program name with args.
7314 set dummy pwd; ac_word=$2
7315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7317 if test "${ac_cv_path_BINPWD+set}" = set; then
7318   echo $ECHO_N "(cached) $ECHO_C" >&6
7319 else
7320   case $BINPWD in
7321   [\\/]* | ?:[\\/]*)
7322   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7323   ;;
7324   *)
7325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328   IFS=$as_save_IFS
7329   test -z "$as_dir" && as_dir=.
7330   for ac_exec_ext in '' $ac_executable_extensions; do
7331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7332     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334     break 2
7335   fi
7336 done
7337 done
7338 IFS=$as_save_IFS
7339
7340   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7341   ;;
7342 esac
7343 fi
7344 BINPWD=$ac_cv_path_BINPWD
7345 if test -n "$BINPWD"; then
7346   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7347 echo "${ECHO_T}$BINPWD" >&6; }
7348 else
7349   { echo "$as_me:$LINENO: result: no" >&5
7350 echo "${ECHO_T}no" >&6; }
7351 fi
7352
7353
7354
7355 # Extract the first word of "Graphviz", so it can be a program name with args.
7356 set dummy Graphviz; ac_word=$2
7357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7359 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7360   echo $ECHO_N "(cached) $ECHO_C" >&6
7361 else
7362   case $GRAPHVIZ in
7363   [\\/]* | ?:[\\/]*)
7364   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7365   ;;
7366   *)
7367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 for as_dir in $PATH
7369 do
7370   IFS=$as_save_IFS
7371   test -z "$as_dir" && as_dir=.
7372   for ac_exec_ext in '' $ac_executable_extensions; do
7373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7374     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376     break 2
7377   fi
7378 done
7379 done
7380 IFS=$as_save_IFS
7381
7382   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7383   ;;
7384 esac
7385 fi
7386 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7387 if test -n "$GRAPHVIZ"; then
7388   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7389 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7390 else
7391   { echo "$as_me:$LINENO: result: no" >&5
7392 echo "${ECHO_T}no" >&6; }
7393 fi
7394
7395
7396 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7397
7398 cat >>confdefs.h <<\_ACEOF
7399 #define HAVE_GRAPHVIZ 1
7400 _ACEOF
7401
7402     if test "$llvm_cv_os_type" = "MingW" ; then
7403     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7404   fi
7405
7406 cat >>confdefs.h <<_ACEOF
7407 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7408 _ACEOF
7409
7410 fi
7411 # Extract the first word of "dot", so it can be a program name with args.
7412 set dummy dot; ac_word=$2
7413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7415 if test "${ac_cv_path_DOT+set}" = set; then
7416   echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418   case $DOT in
7419   [\\/]* | ?:[\\/]*)
7420   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7421   ;;
7422   *)
7423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426   IFS=$as_save_IFS
7427   test -z "$as_dir" && as_dir=.
7428   for ac_exec_ext in '' $ac_executable_extensions; do
7429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7430     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432     break 2
7433   fi
7434 done
7435 done
7436 IFS=$as_save_IFS
7437
7438   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7439   ;;
7440 esac
7441 fi
7442 DOT=$ac_cv_path_DOT
7443 if test -n "$DOT"; then
7444   { echo "$as_me:$LINENO: result: $DOT" >&5
7445 echo "${ECHO_T}$DOT" >&6; }
7446 else
7447   { echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6; }
7449 fi
7450
7451
7452 if test "$DOT" != "echo dot" ; then
7453
7454 cat >>confdefs.h <<\_ACEOF
7455 #define HAVE_DOT 1
7456 _ACEOF
7457
7458     if test "$llvm_cv_os_type" = "MingW" ; then
7459     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7460   fi
7461
7462 cat >>confdefs.h <<_ACEOF
7463 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7464 _ACEOF
7465
7466 fi
7467 for ac_prog in gv gsview32
7468 do
7469   # Extract the first word of "$ac_prog", so it can be a program name with args.
7470 set dummy $ac_prog; ac_word=$2
7471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7473 if test "${ac_cv_path_GV+set}" = set; then
7474   echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476   case $GV in
7477   [\\/]* | ?:[\\/]*)
7478   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7479   ;;
7480   *)
7481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 for as_dir in $PATH
7483 do
7484   IFS=$as_save_IFS
7485   test -z "$as_dir" && as_dir=.
7486   for ac_exec_ext in '' $ac_executable_extensions; do
7487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7488     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490     break 2
7491   fi
7492 done
7493 done
7494 IFS=$as_save_IFS
7495
7496   ;;
7497 esac
7498 fi
7499 GV=$ac_cv_path_GV
7500 if test -n "$GV"; then
7501   { echo "$as_me:$LINENO: result: $GV" >&5
7502 echo "${ECHO_T}$GV" >&6; }
7503 else
7504   { echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6; }
7506 fi
7507
7508
7509   test -n "$GV" && break
7510 done
7511 test -n "$GV" || GV="echo gv"
7512
7513 if test "$GV" != "echo gv" ; then
7514
7515 cat >>confdefs.h <<\_ACEOF
7516 #define HAVE_GV 1
7517 _ACEOF
7518
7519     if test "$llvm_cv_os_type" = "MingW" ; then
7520     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7521   fi
7522
7523 cat >>confdefs.h <<_ACEOF
7524 #define LLVM_PATH_GV "$GV${EXEEXT}"
7525 _ACEOF
7526
7527 fi
7528 # Extract the first word of "dotty", so it can be a program name with args.
7529 set dummy dotty; ac_word=$2
7530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7532 if test "${ac_cv_path_DOTTY+set}" = set; then
7533   echo $ECHO_N "(cached) $ECHO_C" >&6
7534 else
7535   case $DOTTY in
7536   [\\/]* | ?:[\\/]*)
7537   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7538   ;;
7539   *)
7540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7542 do
7543   IFS=$as_save_IFS
7544   test -z "$as_dir" && as_dir=.
7545   for ac_exec_ext in '' $ac_executable_extensions; do
7546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7547     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7549     break 2
7550   fi
7551 done
7552 done
7553 IFS=$as_save_IFS
7554
7555   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7556   ;;
7557 esac
7558 fi
7559 DOTTY=$ac_cv_path_DOTTY
7560 if test -n "$DOTTY"; then
7561   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7562 echo "${ECHO_T}$DOTTY" >&6; }
7563 else
7564   { echo "$as_me:$LINENO: result: no" >&5
7565 echo "${ECHO_T}no" >&6; }
7566 fi
7567
7568
7569 if test "$DOTTY" != "echo dotty" ; then
7570
7571 cat >>confdefs.h <<\_ACEOF
7572 #define HAVE_DOTTY 1
7573 _ACEOF
7574
7575     if test "$llvm_cv_os_type" = "MingW" ; then
7576     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7577   fi
7578
7579 cat >>confdefs.h <<_ACEOF
7580 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7581 _ACEOF
7582
7583 fi
7584
7585
7586 # Extract the first word of "perl", so it can be a program name with args.
7587 set dummy perl; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_path_PERL+set}" = set; then
7591   echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593   case $PERL in
7594   [\\/]* | ?:[\\/]*)
7595   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7596   ;;
7597   *)
7598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603   for ac_exec_ext in '' $ac_executable_extensions; do
7604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610 done
7611 IFS=$as_save_IFS
7612
7613   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7614   ;;
7615 esac
7616 fi
7617 PERL=$ac_cv_path_PERL
7618 if test -n "$PERL"; then
7619   { echo "$as_me:$LINENO: result: $PERL" >&5
7620 echo "${ECHO_T}$PERL" >&6; }
7621 else
7622   { echo "$as_me:$LINENO: result: no" >&5
7623 echo "${ECHO_T}no" >&6; }
7624 fi
7625
7626
7627 if test "$PERL" != "none"; then
7628   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7629 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7630   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7631     { echo "$as_me:$LINENO: result: yes" >&5
7632 echo "${ECHO_T}yes" >&6; }
7633   else
7634     PERL=none
7635     { echo "$as_me:$LINENO: result: not found" >&5
7636 echo "${ECHO_T}not found" >&6; }
7637   fi
7638 fi
7639
7640
7641 if test x"$PERL" = xnone; then
7642    HAVE_PERL=0
7643
7644    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7645 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7646    { (exit 1); exit 1; }; }
7647 else
7648    HAVE_PERL=1
7649
7650 fi
7651
7652 # Find a good install program.  We prefer a C program (faster),
7653 # so one script is as good as another.  But avoid the broken or
7654 # incompatible versions:
7655 # SysV /etc/install, /usr/sbin/install
7656 # SunOS /usr/etc/install
7657 # IRIX /sbin/install
7658 # AIX /bin/install
7659 # AmigaOS /C/install, which installs bootblocks on floppy discs
7660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7663 # OS/2's system install, which has a completely different semantic
7664 # ./install, which can be erroneously created by make from ./install.sh.
7665 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7666 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7667 if test -z "$INSTALL"; then
7668 if test "${ac_cv_path_install+set}" = set; then
7669   echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676   # Account for people who put trailing slashes in PATH elements.
7677 case $as_dir/ in
7678   ./ | .// | /cC/* | \
7679   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7680   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7681   /usr/ucb/* ) ;;
7682   *)
7683     # OSF1 and SCO ODT 3.0 have their own names for install.
7684     # Don't use installbsd from OSF since it installs stuff as root
7685     # by default.
7686     for ac_prog in ginstall scoinst install; do
7687       for ac_exec_ext in '' $ac_executable_extensions; do
7688         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7689           if test $ac_prog = install &&
7690             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7691             # AIX install.  It has an incompatible calling convention.
7692             :
7693           elif test $ac_prog = install &&
7694             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7695             # program-specific install script used by HP pwplus--don't use.
7696             :
7697           else
7698             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7699             break 3
7700           fi
7701         fi
7702       done
7703     done
7704     ;;
7705 esac
7706 done
7707 IFS=$as_save_IFS
7708
7709
7710 fi
7711   if test "${ac_cv_path_install+set}" = set; then
7712     INSTALL=$ac_cv_path_install
7713   else
7714     # As a last resort, use the slow shell script.  Don't cache a
7715     # value for INSTALL within a source directory, because that will
7716     # break other packages using the cache if that directory is
7717     # removed, or if the value is a relative name.
7718     INSTALL=$ac_install_sh
7719   fi
7720 fi
7721 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7722 echo "${ECHO_T}$INSTALL" >&6; }
7723
7724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7725 # It thinks the first close brace ends the variable substitution.
7726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7727
7728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7729
7730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7731
7732
7733 # Extract the first word of "bzip2", so it can be a program name with args.
7734 set dummy bzip2; ac_word=$2
7735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7737 if test "${ac_cv_path_BZIP2+set}" = set; then
7738   echo $ECHO_N "(cached) $ECHO_C" >&6
7739 else
7740   case $BZIP2 in
7741   [\\/]* | ?:[\\/]*)
7742   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7743   ;;
7744   *)
7745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7747 do
7748   IFS=$as_save_IFS
7749   test -z "$as_dir" && as_dir=.
7750   for ac_exec_ext in '' $ac_executable_extensions; do
7751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7752     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7754     break 2
7755   fi
7756 done
7757 done
7758 IFS=$as_save_IFS
7759
7760   ;;
7761 esac
7762 fi
7763 BZIP2=$ac_cv_path_BZIP2
7764 if test -n "$BZIP2"; then
7765   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7766 echo "${ECHO_T}$BZIP2" >&6; }
7767 else
7768   { echo "$as_me:$LINENO: result: no" >&5
7769 echo "${ECHO_T}no" >&6; }
7770 fi
7771
7772
7773 # Extract the first word of "doxygen", so it can be a program name with args.
7774 set dummy doxygen; ac_word=$2
7775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7777 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7778   echo $ECHO_N "(cached) $ECHO_C" >&6
7779 else
7780   case $DOXYGEN in
7781   [\\/]* | ?:[\\/]*)
7782   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7783   ;;
7784   *)
7785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7787 do
7788   IFS=$as_save_IFS
7789   test -z "$as_dir" && as_dir=.
7790   for ac_exec_ext in '' $ac_executable_extensions; do
7791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7792     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794     break 2
7795   fi
7796 done
7797 done
7798 IFS=$as_save_IFS
7799
7800   ;;
7801 esac
7802 fi
7803 DOXYGEN=$ac_cv_path_DOXYGEN
7804 if test -n "$DOXYGEN"; then
7805   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7806 echo "${ECHO_T}$DOXYGEN" >&6; }
7807 else
7808   { echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6; }
7810 fi
7811
7812
7813 # Extract the first word of "groff", so it can be a program name with args.
7814 set dummy groff; ac_word=$2
7815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7817 if test "${ac_cv_path_GROFF+set}" = set; then
7818   echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820   case $GROFF in
7821   [\\/]* | ?:[\\/]*)
7822   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7823   ;;
7824   *)
7825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 for as_dir in $PATH
7827 do
7828   IFS=$as_save_IFS
7829   test -z "$as_dir" && as_dir=.
7830   for ac_exec_ext in '' $ac_executable_extensions; do
7831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7832     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7834     break 2
7835   fi
7836 done
7837 done
7838 IFS=$as_save_IFS
7839
7840   ;;
7841 esac
7842 fi
7843 GROFF=$ac_cv_path_GROFF
7844 if test -n "$GROFF"; then
7845   { echo "$as_me:$LINENO: result: $GROFF" >&5
7846 echo "${ECHO_T}$GROFF" >&6; }
7847 else
7848   { echo "$as_me:$LINENO: result: no" >&5
7849 echo "${ECHO_T}no" >&6; }
7850 fi
7851
7852
7853 # Extract the first word of "gzip", so it can be a program name with args.
7854 set dummy gzip; ac_word=$2
7855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7857 if test "${ac_cv_path_GZIP+set}" = set; then
7858   echo $ECHO_N "(cached) $ECHO_C" >&6
7859 else
7860   case $GZIP in
7861   [\\/]* | ?:[\\/]*)
7862   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7863   ;;
7864   *)
7865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 for as_dir in $PATH
7867 do
7868   IFS=$as_save_IFS
7869   test -z "$as_dir" && as_dir=.
7870   for ac_exec_ext in '' $ac_executable_extensions; do
7871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7872     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7874     break 2
7875   fi
7876 done
7877 done
7878 IFS=$as_save_IFS
7879
7880   ;;
7881 esac
7882 fi
7883 GZIP=$ac_cv_path_GZIP
7884 if test -n "$GZIP"; then
7885   { echo "$as_me:$LINENO: result: $GZIP" >&5
7886 echo "${ECHO_T}$GZIP" >&6; }
7887 else
7888   { echo "$as_me:$LINENO: result: no" >&5
7889 echo "${ECHO_T}no" >&6; }
7890 fi
7891
7892
7893 # Extract the first word of "pod2html", so it can be a program name with args.
7894 set dummy pod2html; ac_word=$2
7895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7897 if test "${ac_cv_path_POD2HTML+set}" = set; then
7898   echo $ECHO_N "(cached) $ECHO_C" >&6
7899 else
7900   case $POD2HTML in
7901   [\\/]* | ?:[\\/]*)
7902   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7903   ;;
7904   *)
7905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 for as_dir in $PATH
7907 do
7908   IFS=$as_save_IFS
7909   test -z "$as_dir" && as_dir=.
7910   for ac_exec_ext in '' $ac_executable_extensions; do
7911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7912     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7914     break 2
7915   fi
7916 done
7917 done
7918 IFS=$as_save_IFS
7919
7920   ;;
7921 esac
7922 fi
7923 POD2HTML=$ac_cv_path_POD2HTML
7924 if test -n "$POD2HTML"; then
7925   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7926 echo "${ECHO_T}$POD2HTML" >&6; }
7927 else
7928   { echo "$as_me:$LINENO: result: no" >&5
7929 echo "${ECHO_T}no" >&6; }
7930 fi
7931
7932
7933 # Extract the first word of "pod2man", so it can be a program name with args.
7934 set dummy pod2man; ac_word=$2
7935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7937 if test "${ac_cv_path_POD2MAN+set}" = set; then
7938   echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940   case $POD2MAN in
7941   [\\/]* | ?:[\\/]*)
7942   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7943   ;;
7944   *)
7945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7947 do
7948   IFS=$as_save_IFS
7949   test -z "$as_dir" && as_dir=.
7950   for ac_exec_ext in '' $ac_executable_extensions; do
7951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7952     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7954     break 2
7955   fi
7956 done
7957 done
7958 IFS=$as_save_IFS
7959
7960   ;;
7961 esac
7962 fi
7963 POD2MAN=$ac_cv_path_POD2MAN
7964 if test -n "$POD2MAN"; then
7965   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7966 echo "${ECHO_T}$POD2MAN" >&6; }
7967 else
7968   { echo "$as_me:$LINENO: result: no" >&5
7969 echo "${ECHO_T}no" >&6; }
7970 fi
7971
7972
7973 # Extract the first word of "runtest", so it can be a program name with args.
7974 set dummy runtest; ac_word=$2
7975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7977 if test "${ac_cv_path_RUNTEST+set}" = set; then
7978   echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980   case $RUNTEST in
7981   [\\/]* | ?:[\\/]*)
7982   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7983   ;;
7984   *)
7985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in $PATH
7987 do
7988   IFS=$as_save_IFS
7989   test -z "$as_dir" && as_dir=.
7990   for ac_exec_ext in '' $ac_executable_extensions; do
7991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7992     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7994     break 2
7995   fi
7996 done
7997 done
7998 IFS=$as_save_IFS
7999
8000   ;;
8001 esac
8002 fi
8003 RUNTEST=$ac_cv_path_RUNTEST
8004 if test -n "$RUNTEST"; then
8005   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8006 echo "${ECHO_T}$RUNTEST" >&6; }
8007 else
8008   { echo "$as_me:$LINENO: result: no" >&5
8009 echo "${ECHO_T}no" >&6; }
8010 fi
8011
8012
8013
8014 no_itcl=true
8015 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8016 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8017
8018 # Check whether --with-tclinclude was given.
8019 if test "${with_tclinclude+set}" = set; then
8020   withval=$with_tclinclude; with_tclinclude=${withval}
8021 else
8022   with_tclinclude=''
8023 fi
8024
8025 if test "${ac_cv_path_tclsh+set}" = set; then
8026   echo $ECHO_N "(cached) $ECHO_C" >&6
8027 else
8028
8029 if test x"${with_tclinclude}" != x ; then
8030   if test -f ${with_tclinclude}/tclsh ; then
8031     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8032   elif test -f ${with_tclinclude}/src/tclsh ; then
8033     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8034   else
8035     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8036 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8037    { (exit 1); exit 1; }; }
8038   fi
8039 fi
8040
8041 if test x"${ac_cv_path_tclsh}" = x ; then
8042   { echo "$as_me:$LINENO: result: none" >&5
8043 echo "${ECHO_T}none" >&6; }
8044   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
8045 do
8046   # Extract the first word of "$ac_prog", so it can be a program name with args.
8047 set dummy $ac_prog; ac_word=$2
8048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8050 if test "${ac_cv_path_TCLSH+set}" = set; then
8051   echo $ECHO_N "(cached) $ECHO_C" >&6
8052 else
8053   case $TCLSH in
8054   [\\/]* | ?:[\\/]*)
8055   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8056   ;;
8057   *)
8058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059 for as_dir in $PATH
8060 do
8061   IFS=$as_save_IFS
8062   test -z "$as_dir" && as_dir=.
8063   for ac_exec_ext in '' $ac_executable_extensions; do
8064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8065     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8067     break 2
8068   fi
8069 done
8070 done
8071 IFS=$as_save_IFS
8072
8073   ;;
8074 esac
8075 fi
8076 TCLSH=$ac_cv_path_TCLSH
8077 if test -n "$TCLSH"; then
8078   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8079 echo "${ECHO_T}$TCLSH" >&6; }
8080 else
8081   { echo "$as_me:$LINENO: result: no" >&5
8082 echo "${ECHO_T}no" >&6; }
8083 fi
8084
8085
8086   test -n "$TCLSH" && break
8087 done
8088
8089   if test x"${TCLSH}" = x ; then
8090     ac_cv_path_tclsh='';
8091   else
8092     ac_cv_path_tclsh="${TCLSH}";
8093   fi
8094 else
8095   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8096 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8097   TCLSH="${ac_cv_path_tclsh}"
8098
8099 fi
8100
8101 fi
8102
8103 # Extract the first word of "zip", so it can be a program name with args.
8104 set dummy zip; ac_word=$2
8105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8107 if test "${ac_cv_path_ZIP+set}" = set; then
8108   echo $ECHO_N "(cached) $ECHO_C" >&6
8109 else
8110   case $ZIP in
8111   [\\/]* | ?:[\\/]*)
8112   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8113   ;;
8114   *)
8115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 for as_dir in $PATH
8117 do
8118   IFS=$as_save_IFS
8119   test -z "$as_dir" && as_dir=.
8120   for ac_exec_ext in '' $ac_executable_extensions; do
8121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8122     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8124     break 2
8125   fi
8126 done
8127 done
8128 IFS=$as_save_IFS
8129
8130   ;;
8131 esac
8132 fi
8133 ZIP=$ac_cv_path_ZIP
8134 if test -n "$ZIP"; then
8135   { echo "$as_me:$LINENO: result: $ZIP" >&5
8136 echo "${ECHO_T}$ZIP" >&6; }
8137 else
8138   { echo "$as_me:$LINENO: result: no" >&5
8139 echo "${ECHO_T}no" >&6; }
8140 fi
8141
8142
8143 for ac_prog in ocamlc
8144 do
8145   # Extract the first word of "$ac_prog", so it can be a program name with args.
8146 set dummy $ac_prog; ac_word=$2
8147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8149 if test "${ac_cv_path_OCAMLC+set}" = set; then
8150   echo $ECHO_N "(cached) $ECHO_C" >&6
8151 else
8152   case $OCAMLC in
8153   [\\/]* | ?:[\\/]*)
8154   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8155   ;;
8156   *)
8157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158 for as_dir in $PATH
8159 do
8160   IFS=$as_save_IFS
8161   test -z "$as_dir" && as_dir=.
8162   for ac_exec_ext in '' $ac_executable_extensions; do
8163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8164     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8166     break 2
8167   fi
8168 done
8169 done
8170 IFS=$as_save_IFS
8171
8172   ;;
8173 esac
8174 fi
8175 OCAMLC=$ac_cv_path_OCAMLC
8176 if test -n "$OCAMLC"; then
8177   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8178 echo "${ECHO_T}$OCAMLC" >&6; }
8179 else
8180   { echo "$as_me:$LINENO: result: no" >&5
8181 echo "${ECHO_T}no" >&6; }
8182 fi
8183
8184
8185   test -n "$OCAMLC" && break
8186 done
8187
8188 for ac_prog in ocamlopt
8189 do
8190   # Extract the first word of "$ac_prog", so it can be a program name with args.
8191 set dummy $ac_prog; ac_word=$2
8192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8194 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8195   echo $ECHO_N "(cached) $ECHO_C" >&6
8196 else
8197   case $OCAMLOPT in
8198   [\\/]* | ?:[\\/]*)
8199   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8200   ;;
8201   *)
8202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203 for as_dir in $PATH
8204 do
8205   IFS=$as_save_IFS
8206   test -z "$as_dir" && as_dir=.
8207   for ac_exec_ext in '' $ac_executable_extensions; do
8208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8209     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8211     break 2
8212   fi
8213 done
8214 done
8215 IFS=$as_save_IFS
8216
8217   ;;
8218 esac
8219 fi
8220 OCAMLOPT=$ac_cv_path_OCAMLOPT
8221 if test -n "$OCAMLOPT"; then
8222   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8223 echo "${ECHO_T}$OCAMLOPT" >&6; }
8224 else
8225   { echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6; }
8227 fi
8228
8229
8230   test -n "$OCAMLOPT" && break
8231 done
8232
8233 for ac_prog in ocamldep
8234 do
8235   # Extract the first word of "$ac_prog", so it can be a program name with args.
8236 set dummy $ac_prog; ac_word=$2
8237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8239 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8240   echo $ECHO_N "(cached) $ECHO_C" >&6
8241 else
8242   case $OCAMLDEP in
8243   [\\/]* | ?:[\\/]*)
8244   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8245   ;;
8246   *)
8247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 for as_dir in $PATH
8249 do
8250   IFS=$as_save_IFS
8251   test -z "$as_dir" && as_dir=.
8252   for ac_exec_ext in '' $ac_executable_extensions; do
8253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8254     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8256     break 2
8257   fi
8258 done
8259 done
8260 IFS=$as_save_IFS
8261
8262   ;;
8263 esac
8264 fi
8265 OCAMLDEP=$ac_cv_path_OCAMLDEP
8266 if test -n "$OCAMLDEP"; then
8267   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8268 echo "${ECHO_T}$OCAMLDEP" >&6; }
8269 else
8270   { echo "$as_me:$LINENO: result: no" >&5
8271 echo "${ECHO_T}no" >&6; }
8272 fi
8273
8274
8275   test -n "$OCAMLDEP" && break
8276 done
8277
8278 for ac_prog in ocamldoc
8279 do
8280   # Extract the first word of "$ac_prog", so it can be a program name with args.
8281 set dummy $ac_prog; ac_word=$2
8282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8284 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8285   echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287   case $OCAMLDOC in
8288   [\\/]* | ?:[\\/]*)
8289   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8290   ;;
8291   *)
8292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 for as_dir in $PATH
8294 do
8295   IFS=$as_save_IFS
8296   test -z "$as_dir" && as_dir=.
8297   for ac_exec_ext in '' $ac_executable_extensions; do
8298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8299     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8301     break 2
8302   fi
8303 done
8304 done
8305 IFS=$as_save_IFS
8306
8307   ;;
8308 esac
8309 fi
8310 OCAMLDOC=$ac_cv_path_OCAMLDOC
8311 if test -n "$OCAMLDOC"; then
8312   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8313 echo "${ECHO_T}$OCAMLDOC" >&6; }
8314 else
8315   { echo "$as_me:$LINENO: result: no" >&5
8316 echo "${ECHO_T}no" >&6; }
8317 fi
8318
8319
8320   test -n "$OCAMLDOC" && break
8321 done
8322
8323 for ac_prog in gas as
8324 do
8325   # Extract the first word of "$ac_prog", so it can be a program name with args.
8326 set dummy $ac_prog; ac_word=$2
8327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8329 if test "${ac_cv_path_GAS+set}" = set; then
8330   echo $ECHO_N "(cached) $ECHO_C" >&6
8331 else
8332   case $GAS in
8333   [\\/]* | ?:[\\/]*)
8334   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8335   ;;
8336   *)
8337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338 for as_dir in $PATH
8339 do
8340   IFS=$as_save_IFS
8341   test -z "$as_dir" && as_dir=.
8342   for ac_exec_ext in '' $ac_executable_extensions; do
8343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8344     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8346     break 2
8347   fi
8348 done
8349 done
8350 IFS=$as_save_IFS
8351
8352   ;;
8353 esac
8354 fi
8355 GAS=$ac_cv_path_GAS
8356 if test -n "$GAS"; then
8357   { echo "$as_me:$LINENO: result: $GAS" >&5
8358 echo "${ECHO_T}$GAS" >&6; }
8359 else
8360   { echo "$as_me:$LINENO: result: no" >&5
8361 echo "${ECHO_T}no" >&6; }
8362 fi
8363
8364
8365   test -n "$GAS" && break
8366 done
8367
8368
8369 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8370 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8371 if test "${llvm_cv_link_use_r+set}" = set; then
8372   echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374    ac_ext=c
8375 ac_cpp='$CPP $CPPFLAGS'
8376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8379
8380   oldcflags="$CFLAGS"
8381   CFLAGS="$CFLAGS -Wl,-R."
8382   cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h.  */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h.  */
8388
8389 int
8390 main ()
8391 {
8392 int main() { return 0; }
8393   ;
8394   return 0;
8395 }
8396 _ACEOF
8397 rm -f conftest.$ac_objext conftest$ac_exeext
8398 if { (ac_try="$ac_link"
8399 case "(($ac_try" in
8400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401   *) ac_try_echo=$ac_try;;
8402 esac
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404   (eval "$ac_link") 2>conftest.er1
8405   ac_status=$?
8406   grep -v '^ *+' conftest.er1 >conftest.err
8407   rm -f conftest.er1
8408   cat conftest.err >&5
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); } &&
8411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8412   { (case "(($ac_try" in
8413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414   *) ac_try_echo=$ac_try;;
8415 esac
8416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417   (eval "$ac_try") 2>&5
8418   ac_status=$?
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); }; } &&
8421          { ac_try='test -s conftest$ac_exeext'
8422   { (case "(($ac_try" in
8423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424   *) ac_try_echo=$ac_try;;
8425 esac
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427   (eval "$ac_try") 2>&5
8428   ac_status=$?
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); }; }; then
8431   llvm_cv_link_use_r=yes
8432 else
8433   echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8435
8436         llvm_cv_link_use_r=no
8437 fi
8438
8439 rm -f core conftest.err conftest.$ac_objext \
8440       conftest$ac_exeext conftest.$ac_ext
8441   CFLAGS="$oldcflags"
8442   ac_ext=c
8443 ac_cpp='$CPP $CPPFLAGS'
8444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8447
8448
8449 fi
8450 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8451 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8452 if test "$llvm_cv_link_use_r" = yes ; then
8453
8454 cat >>confdefs.h <<\_ACEOF
8455 #define HAVE_LINK_R 1
8456 _ACEOF
8457
8458   fi
8459
8460
8461
8462
8463 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8464 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8465 if test "${ac_cv_c_const+set}" = set; then
8466   echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468   cat >conftest.$ac_ext <<_ACEOF
8469 /* confdefs.h.  */
8470 _ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h.  */
8474
8475 int
8476 main ()
8477 {
8478 /* FIXME: Include the comments suggested by Paul. */
8479 #ifndef __cplusplus
8480   /* Ultrix mips cc rejects this.  */
8481   typedef int charset[2];
8482   const charset x;
8483   /* SunOS 4.1.1 cc rejects this.  */
8484   char const *const *ccp;
8485   char **p;
8486   /* NEC SVR4.0.2 mips cc rejects this.  */
8487   struct point {int x, y;};
8488   static struct point const zero = {0,0};
8489   /* AIX XL C 1.02.0.0 rejects this.
8490      It does not let you subtract one const X* pointer from another in
8491      an arm of an if-expression whose if-part is not a constant
8492      expression */
8493   const char *g = "string";
8494   ccp = &g + (g ? g-g : 0);
8495   /* HPUX 7.0 cc rejects these. */
8496   ++ccp;
8497   p = (char**) ccp;
8498   ccp = (char const *const *) p;
8499   { /* SCO 3.2v4 cc rejects this.  */
8500     char *t;
8501     char const *s = 0 ? (char *) 0 : (char const *) 0;
8502
8503     *t++ = 0;
8504     if (s) return 0;
8505   }
8506   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8507     int x[] = {25, 17};
8508     const int *foo = &x[0];
8509     ++foo;
8510   }
8511   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8512     typedef const int *iptr;
8513     iptr p = 0;
8514     ++p;
8515   }
8516   { /* AIX XL C 1.02.0.0 rejects this saying
8517        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8518     struct s { int j; const int *ap[3]; };
8519     struct s *b; b->j = 5;
8520   }
8521   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8522     const int foo = 10;
8523     if (!foo) return 0;
8524   }
8525   return !x[0] && !zero.x;
8526 #endif
8527
8528   ;
8529   return 0;
8530 }
8531 _ACEOF
8532 rm -f conftest.$ac_objext
8533 if { (ac_try="$ac_compile"
8534 case "(($ac_try" in
8535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536   *) ac_try_echo=$ac_try;;
8537 esac
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539   (eval "$ac_compile") 2>conftest.er1
8540   ac_status=$?
8541   grep -v '^ *+' conftest.er1 >conftest.err
8542   rm -f conftest.er1
8543   cat conftest.err >&5
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); } &&
8546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8547   { (case "(($ac_try" in
8548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549   *) ac_try_echo=$ac_try;;
8550 esac
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552   (eval "$ac_try") 2>&5
8553   ac_status=$?
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); }; } &&
8556          { ac_try='test -s conftest.$ac_objext'
8557   { (case "(($ac_try" in
8558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559   *) ac_try_echo=$ac_try;;
8560 esac
8561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562   (eval "$ac_try") 2>&5
8563   ac_status=$?
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); }; }; then
8566   ac_cv_c_const=yes
8567 else
8568   echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571         ac_cv_c_const=no
8572 fi
8573
8574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8575 fi
8576 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8577 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8578 if test $ac_cv_c_const = no; then
8579
8580 cat >>confdefs.h <<\_ACEOF
8581 #define const
8582 _ACEOF
8583
8584 fi
8585
8586
8587
8588
8589
8590
8591 ac_header_dirent=no
8592 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8593   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8594 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8595 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8597   echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599   cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h.  */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h.  */
8605 #include <sys/types.h>
8606 #include <$ac_hdr>
8607
8608 int
8609 main ()
8610 {
8611 if ((DIR *) 0)
8612 return 0;
8613   ;
8614   return 0;
8615 }
8616 _ACEOF
8617 rm -f conftest.$ac_objext
8618 if { (ac_try="$ac_compile"
8619 case "(($ac_try" in
8620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621   *) ac_try_echo=$ac_try;;
8622 esac
8623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624   (eval "$ac_compile") 2>conftest.er1
8625   ac_status=$?
8626   grep -v '^ *+' conftest.er1 >conftest.err
8627   rm -f conftest.er1
8628   cat conftest.err >&5
8629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630   (exit $ac_status); } &&
8631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8632   { (case "(($ac_try" in
8633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634   *) ac_try_echo=$ac_try;;
8635 esac
8636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637   (eval "$ac_try") 2>&5
8638   ac_status=$?
8639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640   (exit $ac_status); }; } &&
8641          { ac_try='test -s conftest.$ac_objext'
8642   { (case "(($ac_try" in
8643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644   *) ac_try_echo=$ac_try;;
8645 esac
8646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647   (eval "$ac_try") 2>&5
8648   ac_status=$?
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); }; }; then
8651   eval "$as_ac_Header=yes"
8652 else
8653   echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8655
8656         eval "$as_ac_Header=no"
8657 fi
8658
8659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8660 fi
8661 ac_res=`eval echo '${'$as_ac_Header'}'`
8662                { echo "$as_me:$LINENO: result: $ac_res" >&5
8663 echo "${ECHO_T}$ac_res" >&6; }
8664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8665   cat >>confdefs.h <<_ACEOF
8666 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8667 _ACEOF
8668
8669 ac_header_dirent=$ac_hdr; break
8670 fi
8671
8672 done
8673 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8674 if test $ac_header_dirent = dirent.h; then
8675   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8676 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8677 if test "${ac_cv_search_opendir+set}" = set; then
8678   echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680   ac_func_search_save_LIBS=$LIBS
8681 cat >conftest.$ac_ext <<_ACEOF
8682 /* confdefs.h.  */
8683 _ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h.  */
8687
8688 /* Override any GCC internal prototype to avoid an error.
8689    Use char because int might match the return type of a GCC
8690    builtin and then its argument prototype would still apply.  */
8691 #ifdef __cplusplus
8692 extern "C"
8693 #endif
8694 char opendir ();
8695 int
8696 main ()
8697 {
8698 return opendir ();
8699   ;
8700   return 0;
8701 }
8702 _ACEOF
8703 for ac_lib in '' dir; do
8704   if test -z "$ac_lib"; then
8705     ac_res="none required"
8706   else
8707     ac_res=-l$ac_lib
8708     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8709   fi
8710   rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (ac_try="$ac_link"
8712 case "(($ac_try" in
8713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714   *) ac_try_echo=$ac_try;;
8715 esac
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717   (eval "$ac_link") 2>conftest.er1
8718   ac_status=$?
8719   grep -v '^ *+' conftest.er1 >conftest.err
8720   rm -f conftest.er1
8721   cat conftest.err >&5
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); } &&
8724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8725   { (case "(($ac_try" in
8726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8727   *) ac_try_echo=$ac_try;;
8728 esac
8729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8730   (eval "$ac_try") 2>&5
8731   ac_status=$?
8732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733   (exit $ac_status); }; } &&
8734          { ac_try='test -s conftest$ac_exeext'
8735   { (case "(($ac_try" in
8736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737   *) ac_try_echo=$ac_try;;
8738 esac
8739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740   (eval "$ac_try") 2>&5
8741   ac_status=$?
8742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743   (exit $ac_status); }; }; then
8744   ac_cv_search_opendir=$ac_res
8745 else
8746   echo "$as_me: failed program was:" >&5
8747 sed 's/^/| /' conftest.$ac_ext >&5
8748
8749
8750 fi
8751
8752 rm -f core conftest.err conftest.$ac_objext \
8753       conftest$ac_exeext
8754   if test "${ac_cv_search_opendir+set}" = set; then
8755   break
8756 fi
8757 done
8758 if test "${ac_cv_search_opendir+set}" = set; then
8759   :
8760 else
8761   ac_cv_search_opendir=no
8762 fi
8763 rm conftest.$ac_ext
8764 LIBS=$ac_func_search_save_LIBS
8765 fi
8766 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8767 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8768 ac_res=$ac_cv_search_opendir
8769 if test "$ac_res" != no; then
8770   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8771
8772 fi
8773
8774 else
8775   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8776 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8777 if test "${ac_cv_search_opendir+set}" = set; then
8778   echo $ECHO_N "(cached) $ECHO_C" >&6
8779 else
8780   ac_func_search_save_LIBS=$LIBS
8781 cat >conftest.$ac_ext <<_ACEOF
8782 /* confdefs.h.  */
8783 _ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h.  */
8787
8788 /* Override any GCC internal prototype to avoid an error.
8789    Use char because int might match the return type of a GCC
8790    builtin and then its argument prototype would still apply.  */
8791 #ifdef __cplusplus
8792 extern "C"
8793 #endif
8794 char opendir ();
8795 int
8796 main ()
8797 {
8798 return opendir ();
8799   ;
8800   return 0;
8801 }
8802 _ACEOF
8803 for ac_lib in '' x; do
8804   if test -z "$ac_lib"; then
8805     ac_res="none required"
8806   else
8807     ac_res=-l$ac_lib
8808     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8809   fi
8810   rm -f conftest.$ac_objext conftest$ac_exeext
8811 if { (ac_try="$ac_link"
8812 case "(($ac_try" in
8813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814   *) ac_try_echo=$ac_try;;
8815 esac
8816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8817   (eval "$ac_link") 2>conftest.er1
8818   ac_status=$?
8819   grep -v '^ *+' conftest.er1 >conftest.err
8820   rm -f conftest.er1
8821   cat conftest.err >&5
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); } &&
8824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8825   { (case "(($ac_try" in
8826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827   *) ac_try_echo=$ac_try;;
8828 esac
8829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8830   (eval "$ac_try") 2>&5
8831   ac_status=$?
8832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); }; } &&
8834          { ac_try='test -s conftest$ac_exeext'
8835   { (case "(($ac_try" in
8836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837   *) ac_try_echo=$ac_try;;
8838 esac
8839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8840   (eval "$ac_try") 2>&5
8841   ac_status=$?
8842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); }; }; then
8844   ac_cv_search_opendir=$ac_res
8845 else
8846   echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8848
8849
8850 fi
8851
8852 rm -f core conftest.err conftest.$ac_objext \
8853       conftest$ac_exeext
8854   if test "${ac_cv_search_opendir+set}" = set; then
8855   break
8856 fi
8857 done
8858 if test "${ac_cv_search_opendir+set}" = set; then
8859   :
8860 else
8861   ac_cv_search_opendir=no
8862 fi
8863 rm conftest.$ac_ext
8864 LIBS=$ac_func_search_save_LIBS
8865 fi
8866 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8867 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8868 ac_res=$ac_cv_search_opendir
8869 if test "$ac_res" != no; then
8870   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8871
8872 fi
8873
8874 fi
8875
8876
8877 for ac_header in dlfcn.h
8878 do
8879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8881   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8884   echo $ECHO_N "(cached) $ECHO_C" >&6
8885 fi
8886 ac_res=`eval echo '${'$as_ac_Header'}'`
8887                { echo "$as_me:$LINENO: result: $ac_res" >&5
8888 echo "${ECHO_T}$ac_res" >&6; }
8889 else
8890   # Is the header compilable?
8891 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8893 cat >conftest.$ac_ext <<_ACEOF
8894 /* confdefs.h.  */
8895 _ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h.  */
8899 $ac_includes_default
8900 #include <$ac_header>
8901 _ACEOF
8902 rm -f conftest.$ac_objext
8903 if { (ac_try="$ac_compile"
8904 case "(($ac_try" in
8905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906   *) ac_try_echo=$ac_try;;
8907 esac
8908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909   (eval "$ac_compile") 2>conftest.er1
8910   ac_status=$?
8911   grep -v '^ *+' conftest.er1 >conftest.err
8912   rm -f conftest.er1
8913   cat conftest.err >&5
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); } &&
8916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8917   { (case "(($ac_try" in
8918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919   *) ac_try_echo=$ac_try;;
8920 esac
8921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8922   (eval "$ac_try") 2>&5
8923   ac_status=$?
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); }; } &&
8926          { ac_try='test -s conftest.$ac_objext'
8927   { (case "(($ac_try" in
8928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929   *) ac_try_echo=$ac_try;;
8930 esac
8931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932   (eval "$ac_try") 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; }; then
8936   ac_header_compiler=yes
8937 else
8938   echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8940
8941         ac_header_compiler=no
8942 fi
8943
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8945 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8946 echo "${ECHO_T}$ac_header_compiler" >&6; }
8947
8948 # Is the header present?
8949 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8951 cat >conftest.$ac_ext <<_ACEOF
8952 /* confdefs.h.  */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h.  */
8957 #include <$ac_header>
8958 _ACEOF
8959 if { (ac_try="$ac_cpp conftest.$ac_ext"
8960 case "(($ac_try" in
8961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962   *) ac_try_echo=$ac_try;;
8963 esac
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8966   ac_status=$?
8967   grep -v '^ *+' conftest.er1 >conftest.err
8968   rm -f conftest.er1
8969   cat conftest.err >&5
8970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971   (exit $ac_status); } >/dev/null; then
8972   if test -s conftest.err; then
8973     ac_cpp_err=$ac_c_preproc_warn_flag
8974     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8975   else
8976     ac_cpp_err=
8977   fi
8978 else
8979   ac_cpp_err=yes
8980 fi
8981 if test -z "$ac_cpp_err"; then
8982   ac_header_preproc=yes
8983 else
8984   echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8986
8987   ac_header_preproc=no
8988 fi
8989
8990 rm -f conftest.err conftest.$ac_ext
8991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8992 echo "${ECHO_T}$ac_header_preproc" >&6; }
8993
8994 # So?  What about this header?
8995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8996   yes:no: )
8997     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9001     ac_header_preproc=yes
9002     ;;
9003   no:yes:* )
9004     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9006     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9007 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9008     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9010     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9011 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9014     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9016     ( cat <<\_ASBOX
9017 ## ----------------------------------- ##
9018 ## Report this to llvmbugs@cs.uiuc.edu ##
9019 ## ----------------------------------- ##
9020 _ASBOX
9021      ) | sed "s/^/$as_me: WARNING:     /" >&2
9022     ;;
9023 esac
9024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9027   echo $ECHO_N "(cached) $ECHO_C" >&6
9028 else
9029   eval "$as_ac_Header=\$ac_header_preproc"
9030 fi
9031 ac_res=`eval echo '${'$as_ac_Header'}'`
9032                { echo "$as_me:$LINENO: result: $ac_res" >&5
9033 echo "${ECHO_T}$ac_res" >&6; }
9034
9035 fi
9036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9037   cat >>confdefs.h <<_ACEOF
9038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9039 _ACEOF
9040
9041 fi
9042
9043 done
9044
9045 # Check whether --enable-ltdl-install was given.
9046 if test "${enable_ltdl_install+set}" = set; then
9047   enableval=$enable_ltdl_install;
9048 fi
9049
9050
9051
9052
9053 if test x"${enable_ltdl_install-no}" != xno; then
9054   INSTALL_LTDL_TRUE=
9055   INSTALL_LTDL_FALSE='#'
9056 else
9057   INSTALL_LTDL_TRUE='#'
9058   INSTALL_LTDL_FALSE=
9059 fi
9060
9061
9062
9063 if test x"${enable_ltdl_convenience-no}" != xno; then
9064   CONVENIENCE_LTDL_TRUE=
9065   CONVENIENCE_LTDL_FALSE='#'
9066 else
9067   CONVENIENCE_LTDL_TRUE='#'
9068   CONVENIENCE_LTDL_FALSE=
9069 fi
9070
9071
9072 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9073 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9074 library_names_spec=
9075 libname_spec='lib$name'
9076 soname_spec=
9077 shrext_cmds=".so"
9078 postinstall_cmds=
9079 postuninstall_cmds=
9080 finish_cmds=
9081 finish_eval=
9082 shlibpath_var=
9083 shlibpath_overrides_runpath=unknown
9084 version_type=none
9085 dynamic_linker="$host_os ld.so"
9086 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9087 if test "$GCC" = yes; then
9088   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9089   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9090     # if the path contains ";" then we assume it to be the separator
9091     # otherwise default to the standard path separator (i.e. ":") - it is
9092     # assumed that no part of a normal pathname contains ";" but that should
9093     # okay in the real world where ";" in dirpaths is itself problematic.
9094     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9095   else
9096     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9097   fi
9098 else
9099   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9100 fi
9101 need_lib_prefix=unknown
9102 hardcode_into_libs=no
9103
9104 # when you set need_version to no, make sure it does not cause -set_version
9105 # flags to be left without arguments
9106 need_version=unknown
9107
9108 case $host_os in
9109 aix3*)
9110   version_type=linux
9111   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9112   shlibpath_var=LIBPATH
9113
9114   # AIX 3 has no versioning support, so we append a major version to the name.
9115   soname_spec='${libname}${release}${shared_ext}$major'
9116   ;;
9117
9118 aix4* | aix5*)
9119   version_type=linux
9120   need_lib_prefix=no
9121   need_version=no
9122   hardcode_into_libs=yes
9123   if test "$host_cpu" = ia64; then
9124     # AIX 5 supports IA64
9125     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9126     shlibpath_var=LD_LIBRARY_PATH
9127   else
9128     # With GCC up to 2.95.x, collect2 would create an import file
9129     # for dependence libraries.  The import file would start with
9130     # the line `#! .'.  This would cause the generated library to
9131     # depend on `.', always an invalid library.  This was fixed in
9132     # development snapshots of GCC prior to 3.0.
9133     case $host_os in
9134       aix4 | aix4.[01] | aix4.[01].*)
9135       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9136            echo ' yes '
9137            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9138         :
9139       else
9140         can_build_shared=no
9141       fi
9142       ;;
9143     esac
9144     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9145     # soname into executable. Probably we can add versioning support to
9146     # collect2, so additional links can be useful in future.
9147     if test "$aix_use_runtimelinking" = yes; then
9148       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9149       # instead of lib<name>.a to let people know that these are not
9150       # typical AIX shared libraries.
9151       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152     else
9153       # We preserve .a as extension for shared libraries through AIX4.2
9154       # and later when we are not doing run time linking.
9155       library_names_spec='${libname}${release}.a $libname.a'
9156       soname_spec='${libname}${release}${shared_ext}$major'
9157     fi
9158     shlibpath_var=LIBPATH
9159   fi
9160   ;;
9161
9162 amigaos*)
9163   library_names_spec='$libname.ixlibrary $libname.a'
9164   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9165   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'
9166   ;;
9167
9168 beos*)
9169   library_names_spec='${libname}${shared_ext}'
9170   dynamic_linker="$host_os ld.so"
9171   shlibpath_var=LIBRARY_PATH
9172   ;;
9173
9174 bsdi[45]*)
9175   version_type=linux
9176   need_version=no
9177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178   soname_spec='${libname}${release}${shared_ext}$major'
9179   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9180   shlibpath_var=LD_LIBRARY_PATH
9181   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9182   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9183   # the default ld.so.conf also contains /usr/contrib/lib and
9184   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9185   # libtool to hard-code these into programs
9186   ;;
9187
9188 cygwin* | mingw* | pw32*)
9189   version_type=windows
9190   shrext_cmds=".dll"
9191   need_version=no
9192   need_lib_prefix=no
9193
9194   case $GCC,$host_os in
9195   yes,cygwin* | yes,mingw* | yes,pw32*)
9196     library_names_spec='$libname.dll.a'
9197     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9198     postinstall_cmds='base_file=`basename \${file}`~
9199       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9200       dldir=$destdir/`dirname \$dlpath`~
9201       test -d \$dldir || mkdir -p \$dldir~
9202       $install_prog $dir/$dlname \$dldir/$dlname~
9203       chmod a+x \$dldir/$dlname'
9204     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9205       dlpath=$dir/\$dldll~
9206        $rm \$dlpath'
9207     shlibpath_overrides_runpath=yes
9208
9209     case $host_os in
9210     cygwin*)
9211       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9212       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9213       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9214       ;;
9215     mingw*)
9216       # MinGW DLLs use traditional 'lib' prefix
9217       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9218       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9219       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9220         # It is most probably a Windows format PATH printed by
9221         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9222         # path with ; separators, and with drive letters. We can handle the
9223         # drive letters (cygwin fileutils understands them), so leave them,
9224         # especially as we might pass files found there to a mingw objdump,
9225         # which wouldn't understand a cygwinified path. Ahh.
9226         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9227       else
9228         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9229       fi
9230       ;;
9231     pw32*)
9232       # pw32 DLLs use 'pw' prefix rather than 'lib'
9233       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9234       ;;
9235     esac
9236     ;;
9237
9238   *)
9239     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9240     ;;
9241   esac
9242   dynamic_linker='Win32 ld.exe'
9243   # FIXME: first we should search . and the directory the executable is in
9244   shlibpath_var=PATH
9245   ;;
9246
9247 darwin* | rhapsody*)
9248   dynamic_linker="$host_os dyld"
9249   version_type=darwin
9250   need_lib_prefix=no
9251   need_version=no
9252   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9253   soname_spec='${libname}${release}${major}$shared_ext'
9254   shlibpath_overrides_runpath=yes
9255   shlibpath_var=DYLD_LIBRARY_PATH
9256   shrext_cmds='.dylib'
9257   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9258   if test "$GCC" = yes; then
9259     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9260   else
9261     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9262   fi
9263   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9264   ;;
9265
9266 dgux*)
9267   version_type=linux
9268   need_lib_prefix=no
9269   need_version=no
9270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9271   soname_spec='${libname}${release}${shared_ext}$major'
9272   shlibpath_var=LD_LIBRARY_PATH
9273   ;;
9274
9275 freebsd1*)
9276   dynamic_linker=no
9277   ;;
9278
9279 kfreebsd*-gnu)
9280   version_type=linux
9281   need_lib_prefix=no
9282   need_version=no
9283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9284   soname_spec='${libname}${release}${shared_ext}$major'
9285   shlibpath_var=LD_LIBRARY_PATH
9286   shlibpath_overrides_runpath=no
9287   hardcode_into_libs=yes
9288   dynamic_linker='GNU ld.so'
9289   ;;
9290
9291 freebsd* | dragonfly*)
9292   # DragonFly does not have aout.  When/if they implement a new
9293   # versioning mechanism, adjust this.
9294   if test -x /usr/bin/objformat; then
9295     objformat=`/usr/bin/objformat`
9296   else
9297     case $host_os in
9298     freebsd[123]*) objformat=aout ;;
9299     *) objformat=elf ;;
9300     esac
9301   fi
9302   version_type=freebsd-$objformat
9303   case $version_type in
9304     freebsd-elf*)
9305       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9306       need_version=no
9307       need_lib_prefix=no
9308       ;;
9309     freebsd-*)
9310       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9311       need_version=yes
9312       ;;
9313   esac
9314   shlibpath_var=LD_LIBRARY_PATH
9315   case $host_os in
9316   freebsd2*)
9317     shlibpath_overrides_runpath=yes
9318     ;;
9319   freebsd3.[01]* | freebsdelf3.[01]*)
9320     shlibpath_overrides_runpath=yes
9321     hardcode_into_libs=yes
9322     ;;
9323   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9324   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9325     shlibpath_overrides_runpath=no
9326     hardcode_into_libs=yes
9327     ;;
9328   freebsd*) # from 4.6 on
9329     shlibpath_overrides_runpath=yes
9330     hardcode_into_libs=yes
9331     ;;
9332   esac
9333   ;;
9334
9335 gnu*)
9336   version_type=linux
9337   need_lib_prefix=no
9338   need_version=no
9339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9340   soname_spec='${libname}${release}${shared_ext}$major'
9341   shlibpath_var=LD_LIBRARY_PATH
9342   hardcode_into_libs=yes
9343   ;;
9344
9345 hpux9* | hpux10* | hpux11*)
9346   # Give a soname corresponding to the major version so that dld.sl refuses to
9347   # link against other versions.
9348   version_type=sunos
9349   need_lib_prefix=no
9350   need_version=no
9351   case $host_cpu in
9352   ia64*)
9353     shrext_cmds='.so'
9354     hardcode_into_libs=yes
9355     dynamic_linker="$host_os dld.so"
9356     shlibpath_var=LD_LIBRARY_PATH
9357     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9358     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9359     soname_spec='${libname}${release}${shared_ext}$major'
9360     if test "X$HPUX_IA64_MODE" = X32; then
9361       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9362     else
9363       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9364     fi
9365     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9366     ;;
9367    hppa*64*)
9368      shrext_cmds='.sl'
9369      hardcode_into_libs=yes
9370      dynamic_linker="$host_os dld.sl"
9371      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9372      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9373      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374      soname_spec='${libname}${release}${shared_ext}$major'
9375      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9376      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9377      ;;
9378    *)
9379     shrext_cmds='.sl'
9380     dynamic_linker="$host_os dld.sl"
9381     shlibpath_var=SHLIB_PATH
9382     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9383     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384     soname_spec='${libname}${release}${shared_ext}$major'
9385     ;;
9386   esac
9387   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9388   postinstall_cmds='chmod 555 $lib'
9389   ;;
9390
9391 interix3*)
9392   version_type=linux
9393   need_lib_prefix=no
9394   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9398   shlibpath_var=LD_LIBRARY_PATH
9399   shlibpath_overrides_runpath=no
9400   hardcode_into_libs=yes
9401   ;;
9402
9403 irix5* | irix6* | nonstopux*)
9404   case $host_os in
9405     nonstopux*) version_type=nonstopux ;;
9406     *)
9407         if test "$lt_cv_prog_gnu_ld" = yes; then
9408                 version_type=linux
9409         else
9410                 version_type=irix
9411         fi ;;
9412   esac
9413   need_lib_prefix=no
9414   need_version=no
9415   soname_spec='${libname}${release}${shared_ext}$major'
9416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9417   case $host_os in
9418   irix5* | nonstopux*)
9419     libsuff= shlibsuff=
9420     ;;
9421   *)
9422     case $LD in # libtool.m4 will add one of these switches to LD
9423     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9424       libsuff= shlibsuff= libmagic=32-bit;;
9425     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9426       libsuff=32 shlibsuff=N32 libmagic=N32;;
9427     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9428       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9429     *) libsuff= shlibsuff= libmagic=never-match;;
9430     esac
9431     ;;
9432   esac
9433   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9434   shlibpath_overrides_runpath=no
9435   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9436   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9437   hardcode_into_libs=yes
9438   ;;
9439
9440 # No shared lib support for Linux oldld, aout, or coff.
9441 linux*oldld* | linux*aout* | linux*coff*)
9442   dynamic_linker=no
9443   ;;
9444
9445 # This must be Linux ELF.
9446 linux*)
9447   version_type=linux
9448   need_lib_prefix=no
9449   need_version=no
9450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451   soname_spec='${libname}${release}${shared_ext}$major'
9452   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9453   shlibpath_var=LD_LIBRARY_PATH
9454   shlibpath_overrides_runpath=no
9455   # This implies no fast_install, which is unacceptable.
9456   # Some rework will be needed to allow for fast_install
9457   # before this can be enabled.
9458   hardcode_into_libs=yes
9459
9460   # Append ld.so.conf contents to the search path
9461   if test -f /etc/ld.so.conf; then
9462     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9463     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9464   fi
9465
9466   # We used to test for /lib/ld.so.1 and disable shared libraries on
9467   # powerpc, because MkLinux only supported shared libraries with the
9468   # GNU dynamic linker.  Since this was broken with cross compilers,
9469   # most powerpc-linux boxes support dynamic linking these days and
9470   # people can always --disable-shared, the test was removed, and we
9471   # assume the GNU/Linux dynamic linker is in use.
9472   dynamic_linker='GNU/Linux ld.so'
9473   ;;
9474
9475 knetbsd*-gnu)
9476   version_type=linux
9477   need_lib_prefix=no
9478   need_version=no
9479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9480   soname_spec='${libname}${release}${shared_ext}$major'
9481   shlibpath_var=LD_LIBRARY_PATH
9482   shlibpath_overrides_runpath=no
9483   hardcode_into_libs=yes
9484   dynamic_linker='GNU ld.so'
9485   ;;
9486
9487 netbsd*)
9488   version_type=sunos
9489   need_lib_prefix=no
9490   need_version=no
9491   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9492     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9493     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9494     dynamic_linker='NetBSD (a.out) ld.so'
9495   else
9496     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9497     soname_spec='${libname}${release}${shared_ext}$major'
9498     dynamic_linker='NetBSD ld.elf_so'
9499   fi
9500   shlibpath_var=LD_LIBRARY_PATH
9501   shlibpath_overrides_runpath=yes
9502   hardcode_into_libs=yes
9503   ;;
9504
9505 newsos6)
9506   version_type=linux
9507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9508   shlibpath_var=LD_LIBRARY_PATH
9509   shlibpath_overrides_runpath=yes
9510   ;;
9511
9512 nto-qnx*)
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=yes
9520   ;;
9521
9522 openbsd*)
9523   version_type=sunos
9524   sys_lib_dlsearch_path_spec="/usr/lib"
9525   need_lib_prefix=no
9526   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9527   case $host_os in
9528     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9529     *)                         need_version=no  ;;
9530   esac
9531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9532   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9533   shlibpath_var=LD_LIBRARY_PATH
9534   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9535     case $host_os in
9536       openbsd2.[89] | openbsd2.[89].*)
9537         shlibpath_overrides_runpath=no
9538         ;;
9539       *)
9540         shlibpath_overrides_runpath=yes
9541         ;;
9542       esac
9543   else
9544     shlibpath_overrides_runpath=yes
9545   fi
9546   ;;
9547
9548 os2*)
9549   libname_spec='$name'
9550   shrext_cmds=".dll"
9551   need_lib_prefix=no
9552   library_names_spec='$libname${shared_ext} $libname.a'
9553   dynamic_linker='OS/2 ld.exe'
9554   shlibpath_var=LIBPATH
9555   ;;
9556
9557 osf3* | osf4* | osf5*)
9558   version_type=osf
9559   need_lib_prefix=no
9560   need_version=no
9561   soname_spec='${libname}${release}${shared_ext}$major'
9562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9563   shlibpath_var=LD_LIBRARY_PATH
9564   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9565   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9566   ;;
9567
9568 solaris*)
9569   version_type=linux
9570   need_lib_prefix=no
9571   need_version=no
9572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573   soname_spec='${libname}${release}${shared_ext}$major'
9574   shlibpath_var=LD_LIBRARY_PATH
9575   shlibpath_overrides_runpath=yes
9576   hardcode_into_libs=yes
9577   # ldd complains unless libraries are executable
9578   postinstall_cmds='chmod +x $lib'
9579   ;;
9580
9581 sunos4*)
9582   version_type=sunos
9583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9584   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9585   shlibpath_var=LD_LIBRARY_PATH
9586   shlibpath_overrides_runpath=yes
9587   if test "$with_gnu_ld" = yes; then
9588     need_lib_prefix=no
9589   fi
9590   need_version=yes
9591   ;;
9592
9593 sysv4 | sysv4.3*)
9594   version_type=linux
9595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596   soname_spec='${libname}${release}${shared_ext}$major'
9597   shlibpath_var=LD_LIBRARY_PATH
9598   case $host_vendor in
9599     sni)
9600       shlibpath_overrides_runpath=no
9601       need_lib_prefix=no
9602       export_dynamic_flag_spec='${wl}-Blargedynsym'
9603       runpath_var=LD_RUN_PATH
9604       ;;
9605     siemens)
9606       need_lib_prefix=no
9607       ;;
9608     motorola)
9609       need_lib_prefix=no
9610       need_version=no
9611       shlibpath_overrides_runpath=no
9612       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9613       ;;
9614   esac
9615   ;;
9616
9617 sysv4*MP*)
9618   if test -d /usr/nec ;then
9619     version_type=linux
9620     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9621     soname_spec='$libname${shared_ext}.$major'
9622     shlibpath_var=LD_LIBRARY_PATH
9623   fi
9624   ;;
9625
9626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9627   version_type=freebsd-elf
9628   need_lib_prefix=no
9629   need_version=no
9630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9631   soname_spec='${libname}${release}${shared_ext}$major'
9632   shlibpath_var=LD_LIBRARY_PATH
9633   hardcode_into_libs=yes
9634   if test "$with_gnu_ld" = yes; then
9635     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9636     shlibpath_overrides_runpath=no
9637   else
9638     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9639     shlibpath_overrides_runpath=yes
9640     case $host_os in
9641       sco3.2v5*)
9642         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9643         ;;
9644     esac
9645   fi
9646   sys_lib_dlsearch_path_spec='/usr/lib'
9647   ;;
9648
9649 uts4*)
9650   version_type=linux
9651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652   soname_spec='${libname}${release}${shared_ext}$major'
9653   shlibpath_var=LD_LIBRARY_PATH
9654   ;;
9655
9656 *)
9657   dynamic_linker=no
9658   ;;
9659 esac
9660 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9661 echo "${ECHO_T}$dynamic_linker" >&6; }
9662 test "$dynamic_linker" = no && can_build_shared=no
9663
9664 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9665 if test "$GCC" = yes; then
9666   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9667 fi
9668
9669
9670 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9671 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9672 if test "${libltdl_cv_shlibext+set}" = set; then
9673   echo $ECHO_N "(cached) $ECHO_C" >&6
9674 else
9675
9676 module=yes
9677 eval libltdl_cv_shlibext=$shrext_cmds
9678
9679 fi
9680 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9681 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9682 if test -n "$libltdl_cv_shlibext"; then
9683
9684 cat >>confdefs.h <<_ACEOF
9685 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9686 _ACEOF
9687
9688 fi
9689
9690
9691 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9692 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9693 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9694   echo $ECHO_N "(cached) $ECHO_C" >&6
9695 else
9696   libltdl_cv_shlibpath_var="$shlibpath_var"
9697 fi
9698 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9699 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9700 if test -n "$libltdl_cv_shlibpath_var"; then
9701
9702 cat >>confdefs.h <<_ACEOF
9703 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9704 _ACEOF
9705
9706 fi
9707
9708
9709 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9710 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9711 if test "${libltdl_cv_sys_search_path+set}" = set; then
9712   echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9715 fi
9716 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9717 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9718 if test -n "$libltdl_cv_sys_search_path"; then
9719   sys_search_path=
9720   for dir in $libltdl_cv_sys_search_path; do
9721     if test -z "$sys_search_path"; then
9722       sys_search_path="$dir"
9723     else
9724       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9725     fi
9726   done
9727
9728 cat >>confdefs.h <<_ACEOF
9729 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9730 _ACEOF
9731
9732 fi
9733
9734 { echo "$as_me:$LINENO: checking for objdir" >&5
9735 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9736 if test "${libltdl_cv_objdir+set}" = set; then
9737   echo $ECHO_N "(cached) $ECHO_C" >&6
9738 else
9739   libltdl_cv_objdir="$objdir"
9740   if test -n "$objdir"; then
9741     :
9742   else
9743     rm -f .libs 2>/dev/null
9744     mkdir .libs 2>/dev/null
9745     if test -d .libs; then
9746       libltdl_cv_objdir=.libs
9747     else
9748       # MS-DOS does not allow filenames that begin with a dot.
9749       libltdl_cv_objdir=_libs
9750     fi
9751   rmdir .libs 2>/dev/null
9752   fi
9753
9754 fi
9755 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9756 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9757
9758 cat >>confdefs.h <<_ACEOF
9759 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9760 _ACEOF
9761
9762
9763
9764
9765
9766
9767 # Check for command to grab the raw symbol name followed by C symbol from nm.
9768 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9769 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9770 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9771   echo $ECHO_N "(cached) $ECHO_C" >&6
9772 else
9773
9774 # These are sane defaults that work on at least a few old systems.
9775 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9776
9777 # Character class describing NM global symbol codes.
9778 symcode='[BCDEGRST]'
9779
9780 # Regexp to match symbols that can be accessed directly from C.
9781 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9782
9783 # Transform an extracted symbol line into a proper C declaration
9784 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9785
9786 # Transform an extracted symbol line into symbol name and symbol address
9787 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'"
9788
9789 # Define system-specific variables.
9790 case $host_os in
9791 aix*)
9792   symcode='[BCDT]'
9793   ;;
9794 cygwin* | mingw* | pw32*)
9795   symcode='[ABCDGISTW]'
9796   ;;
9797 hpux*) # Its linker distinguishes data from code symbols
9798   if test "$host_cpu" = ia64; then
9799     symcode='[ABCDEGRST]'
9800   fi
9801   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9802   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'"
9803   ;;
9804 linux*)
9805   if test "$host_cpu" = ia64; then
9806     symcode='[ABCDGIRSTW]'
9807     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9808     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'"
9809   fi
9810   ;;
9811 irix* | nonstopux*)
9812   symcode='[BCDEGRST]'
9813   ;;
9814 osf*)
9815   symcode='[BCDEGQRST]'
9816   ;;
9817 solaris*)
9818   symcode='[BDRT]'
9819   ;;
9820 sco3.2v5*)
9821   symcode='[DT]'
9822   ;;
9823 sysv4.2uw2*)
9824   symcode='[DT]'
9825   ;;
9826 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9827   symcode='[ABDT]'
9828   ;;
9829 sysv4)
9830   symcode='[DFNSTU]'
9831   ;;
9832 esac
9833
9834 # Handle CRLF in mingw tool chain
9835 opt_cr=
9836 case $build_os in
9837 mingw*)
9838   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9839   ;;
9840 esac
9841
9842 # If we're using GNU nm, then use its standard symbol codes.
9843 case `$NM -V 2>&1` in
9844 *GNU* | *'with BFD'*)
9845   symcode='[ABCDGIRSTW]' ;;
9846 esac
9847
9848 # Try without a prefix undercore, then with it.
9849 for ac_symprfx in "" "_"; do
9850
9851   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9852   symxfrm="\\1 $ac_symprfx\\2 \\2"
9853
9854   # Write the raw and C identifiers.
9855   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9856
9857   # Check to see that the pipe works correctly.
9858   pipe_works=no
9859
9860   rm -f conftest*
9861   cat > conftest.$ac_ext <<EOF
9862 #ifdef __cplusplus
9863 extern "C" {
9864 #endif
9865 char nm_test_var;
9866 void nm_test_func(){}
9867 #ifdef __cplusplus
9868 }
9869 #endif
9870 int main(){nm_test_var='a';nm_test_func();return(0);}
9871 EOF
9872
9873   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9874   (eval $ac_compile) 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); }; then
9878     # Now try to grab the symbols.
9879     nlist=conftest.nm
9880     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9881   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); } && test -s "$nlist"; then
9885       # Try sorting and uniquifying the output.
9886       if sort "$nlist" | uniq > "$nlist"T; then
9887         mv -f "$nlist"T "$nlist"
9888       else
9889         rm -f "$nlist"T
9890       fi
9891
9892       # Make sure that we snagged all the symbols we need.
9893       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9894         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9895           cat <<EOF > conftest.$ac_ext
9896 #ifdef __cplusplus
9897 extern "C" {
9898 #endif
9899
9900 EOF
9901           # Now generate the symbol file.
9902           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9903
9904           cat <<EOF >> conftest.$ac_ext
9905 #if defined (__STDC__) && __STDC__
9906 # define lt_ptr_t void *
9907 #else
9908 # define lt_ptr_t char *
9909 # define const
9910 #endif
9911
9912 /* The mapping between symbol names and symbols. */
9913 const struct {
9914   const char *name;
9915   lt_ptr_t address;
9916 }
9917 lt_preloaded_symbols[] =
9918 {
9919 EOF
9920           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9921           cat <<\EOF >> conftest.$ac_ext
9922   {0, (lt_ptr_t) 0}
9923 };
9924
9925 #ifdef __cplusplus
9926 }
9927 #endif
9928 EOF
9929           # Now try linking the two files.
9930           mv conftest.$ac_objext conftstm.$ac_objext
9931           lt_save_LIBS="$LIBS"
9932           lt_save_CFLAGS="$CFLAGS"
9933           LIBS="conftstm.$ac_objext"
9934           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9935           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9936   (eval $ac_link) 2>&5
9937   ac_status=$?
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9940             pipe_works=yes
9941           fi
9942           LIBS="$lt_save_LIBS"
9943           CFLAGS="$lt_save_CFLAGS"
9944         else
9945           echo "cannot find nm_test_func in $nlist" >&5
9946         fi
9947       else
9948         echo "cannot find nm_test_var in $nlist" >&5
9949       fi
9950     else
9951       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9952     fi
9953   else
9954     echo "$progname: failed program was:" >&5
9955     cat conftest.$ac_ext >&5
9956   fi
9957   rm -f conftest* conftst*
9958
9959   # Do not use the global_symbol_pipe unless it works.
9960   if test "$pipe_works" = yes; then
9961     break
9962   else
9963     lt_cv_sys_global_symbol_pipe=
9964   fi
9965 done
9966
9967 fi
9968
9969 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9970   lt_cv_sys_global_symbol_to_cdecl=
9971 fi
9972 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9973   { echo "$as_me:$LINENO: result: failed" >&5
9974 echo "${ECHO_T}failed" >&6; }
9975 else
9976   { echo "$as_me:$LINENO: result: ok" >&5
9977 echo "${ECHO_T}ok" >&6; }
9978 fi
9979
9980
9981 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9982 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9983 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9984   echo $ECHO_N "(cached) $ECHO_C" >&6
9985 else
9986   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9987     libltdl_cv_preloaded_symbols=yes
9988   else
9989     libltdl_cv_preloaded_symbols=no
9990   fi
9991
9992 fi
9993 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9994 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9995 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9996
9997 cat >>confdefs.h <<\_ACEOF
9998 #define HAVE_PRELOADED_SYMBOLS 1
9999 _ACEOF
10000
10001 fi
10002
10003 LIBADD_DL=
10004
10005 ac_ext=c
10006 ac_cpp='$CPP $CPPFLAGS'
10007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10010
10011
10012 { echo "$as_me:$LINENO: checking for shl_load" >&5
10013 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10014 if test "${ac_cv_func_shl_load+set}" = set; then
10015   echo $ECHO_N "(cached) $ECHO_C" >&6
10016 else
10017   cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h.  */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h.  */
10023 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10025 #define shl_load innocuous_shl_load
10026
10027 /* System header to define __stub macros and hopefully few prototypes,
10028     which can conflict with char shl_load (); below.
10029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10030     <limits.h> exists even on freestanding compilers.  */
10031
10032 #ifdef __STDC__
10033 # include <limits.h>
10034 #else
10035 # include <assert.h>
10036 #endif
10037
10038 #undef shl_load
10039
10040 /* Override any GCC internal prototype to avoid an error.
10041    Use char because int might match the return type of a GCC
10042    builtin and then its argument prototype would still apply.  */
10043 #ifdef __cplusplus
10044 extern "C"
10045 #endif
10046 char shl_load ();
10047 /* The GNU C library defines this for functions which it implements
10048     to always fail with ENOSYS.  Some functions are actually named
10049     something starting with __ and the normal name is an alias.  */
10050 #if defined __stub_shl_load || defined __stub___shl_load
10051 choke me
10052 #endif
10053
10054 int
10055 main ()
10056 {
10057 return shl_load ();
10058   ;
10059   return 0;
10060 }
10061 _ACEOF
10062 rm -f conftest.$ac_objext conftest$ac_exeext
10063 if { (ac_try="$ac_link"
10064 case "(($ac_try" in
10065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066   *) ac_try_echo=$ac_try;;
10067 esac
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069   (eval "$ac_link") 2>conftest.er1
10070   ac_status=$?
10071   grep -v '^ *+' conftest.er1 >conftest.err
10072   rm -f conftest.er1
10073   cat conftest.err >&5
10074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075   (exit $ac_status); } &&
10076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10077   { (case "(($ac_try" in
10078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079   *) ac_try_echo=$ac_try;;
10080 esac
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082   (eval "$ac_try") 2>&5
10083   ac_status=$?
10084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085   (exit $ac_status); }; } &&
10086          { ac_try='test -s conftest$ac_exeext'
10087   { (case "(($ac_try" in
10088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089   *) ac_try_echo=$ac_try;;
10090 esac
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092   (eval "$ac_try") 2>&5
10093   ac_status=$?
10094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095   (exit $ac_status); }; }; then
10096   ac_cv_func_shl_load=yes
10097 else
10098   echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10100
10101         ac_cv_func_shl_load=no
10102 fi
10103
10104 rm -f core conftest.err conftest.$ac_objext \
10105       conftest$ac_exeext conftest.$ac_ext
10106 fi
10107 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10108 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10109 if test $ac_cv_func_shl_load = yes; then
10110
10111 cat >>confdefs.h <<\_ACEOF
10112 #define HAVE_SHL_LOAD 1
10113 _ACEOF
10114
10115 else
10116   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10117 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10118 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10119   echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121   ac_check_lib_save_LIBS=$LIBS
10122 LIBS="-ldld  $LIBS"
10123 cat >conftest.$ac_ext <<_ACEOF
10124 /* confdefs.h.  */
10125 _ACEOF
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h.  */
10129
10130 /* Override any GCC internal prototype to avoid an error.
10131    Use char because int might match the return type of a GCC
10132    builtin and then its argument prototype would still apply.  */
10133 #ifdef __cplusplus
10134 extern "C"
10135 #endif
10136 char shl_load ();
10137 int
10138 main ()
10139 {
10140 return shl_load ();
10141   ;
10142   return 0;
10143 }
10144 _ACEOF
10145 rm -f conftest.$ac_objext conftest$ac_exeext
10146 if { (ac_try="$ac_link"
10147 case "(($ac_try" in
10148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149   *) ac_try_echo=$ac_try;;
10150 esac
10151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152   (eval "$ac_link") 2>conftest.er1
10153   ac_status=$?
10154   grep -v '^ *+' conftest.er1 >conftest.err
10155   rm -f conftest.er1
10156   cat conftest.err >&5
10157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158   (exit $ac_status); } &&
10159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10160   { (case "(($ac_try" in
10161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162   *) ac_try_echo=$ac_try;;
10163 esac
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165   (eval "$ac_try") 2>&5
10166   ac_status=$?
10167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168   (exit $ac_status); }; } &&
10169          { ac_try='test -s conftest$ac_exeext'
10170   { (case "(($ac_try" in
10171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172   *) ac_try_echo=$ac_try;;
10173 esac
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175   (eval "$ac_try") 2>&5
10176   ac_status=$?
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); }; }; then
10179   ac_cv_lib_dld_shl_load=yes
10180 else
10181   echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10183
10184         ac_cv_lib_dld_shl_load=no
10185 fi
10186
10187 rm -f core conftest.err conftest.$ac_objext \
10188       conftest$ac_exeext conftest.$ac_ext
10189 LIBS=$ac_check_lib_save_LIBS
10190 fi
10191 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10192 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10193 if test $ac_cv_lib_dld_shl_load = yes; then
10194
10195 cat >>confdefs.h <<\_ACEOF
10196 #define HAVE_SHL_LOAD 1
10197 _ACEOF
10198
10199         LIBADD_DL="$LIBADD_DL -ldld"
10200 else
10201   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10202 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10203 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10204   echo $ECHO_N "(cached) $ECHO_C" >&6
10205 else
10206   ac_check_lib_save_LIBS=$LIBS
10207 LIBS="-ldl  $LIBS"
10208 cat >conftest.$ac_ext <<_ACEOF
10209 /* confdefs.h.  */
10210 _ACEOF
10211 cat confdefs.h >>conftest.$ac_ext
10212 cat >>conftest.$ac_ext <<_ACEOF
10213 /* end confdefs.h.  */
10214
10215 /* Override any GCC internal prototype to avoid an error.
10216    Use char because int might match the return type of a GCC
10217    builtin and then its argument prototype would still apply.  */
10218 #ifdef __cplusplus
10219 extern "C"
10220 #endif
10221 char dlopen ();
10222 int
10223 main ()
10224 {
10225 return dlopen ();
10226   ;
10227   return 0;
10228 }
10229 _ACEOF
10230 rm -f conftest.$ac_objext conftest$ac_exeext
10231 if { (ac_try="$ac_link"
10232 case "(($ac_try" in
10233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234   *) ac_try_echo=$ac_try;;
10235 esac
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237   (eval "$ac_link") 2>conftest.er1
10238   ac_status=$?
10239   grep -v '^ *+' conftest.er1 >conftest.err
10240   rm -f conftest.er1
10241   cat conftest.err >&5
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); } &&
10244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10245   { (case "(($ac_try" in
10246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247   *) ac_try_echo=$ac_try;;
10248 esac
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250   (eval "$ac_try") 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; } &&
10254          { ac_try='test -s conftest$ac_exeext'
10255   { (case "(($ac_try" in
10256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257   *) ac_try_echo=$ac_try;;
10258 esac
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260   (eval "$ac_try") 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); }; }; then
10264   ac_cv_lib_dl_dlopen=yes
10265 else
10266   echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10268
10269         ac_cv_lib_dl_dlopen=no
10270 fi
10271
10272 rm -f core conftest.err conftest.$ac_objext \
10273       conftest$ac_exeext conftest.$ac_ext
10274 LIBS=$ac_check_lib_save_LIBS
10275 fi
10276 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10277 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10278 if test $ac_cv_lib_dl_dlopen = yes; then
10279
10280 cat >>confdefs.h <<\_ACEOF
10281 #define HAVE_LIBDL 1
10282 _ACEOF
10283
10284                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10285 else
10286   cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h.  */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h.  */
10292 #if HAVE_DLFCN_H
10293 #  include <dlfcn.h>
10294 #endif
10295
10296 int
10297 main ()
10298 {
10299 dlopen(0, 0);
10300   ;
10301   return 0;
10302 }
10303 _ACEOF
10304 rm -f conftest.$ac_objext conftest$ac_exeext
10305 if { (ac_try="$ac_link"
10306 case "(($ac_try" in
10307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308   *) ac_try_echo=$ac_try;;
10309 esac
10310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311   (eval "$ac_link") 2>conftest.er1
10312   ac_status=$?
10313   grep -v '^ *+' conftest.er1 >conftest.err
10314   rm -f conftest.er1
10315   cat conftest.err >&5
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); } &&
10318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10319   { (case "(($ac_try" in
10320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321   *) ac_try_echo=$ac_try;;
10322 esac
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324   (eval "$ac_try") 2>&5
10325   ac_status=$?
10326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327   (exit $ac_status); }; } &&
10328          { ac_try='test -s conftest$ac_exeext'
10329   { (case "(($ac_try" in
10330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331   *) ac_try_echo=$ac_try;;
10332 esac
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334   (eval "$ac_try") 2>&5
10335   ac_status=$?
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   (exit $ac_status); }; }; then
10338
10339 cat >>confdefs.h <<\_ACEOF
10340 #define HAVE_LIBDL 1
10341 _ACEOF
10342  libltdl_cv_func_dlopen="yes"
10343 else
10344   echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10346
10347         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10348 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10349 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10350   echo $ECHO_N "(cached) $ECHO_C" >&6
10351 else
10352   ac_check_lib_save_LIBS=$LIBS
10353 LIBS="-lsvld  $LIBS"
10354 cat >conftest.$ac_ext <<_ACEOF
10355 /* confdefs.h.  */
10356 _ACEOF
10357 cat confdefs.h >>conftest.$ac_ext
10358 cat >>conftest.$ac_ext <<_ACEOF
10359 /* end confdefs.h.  */
10360
10361 /* Override any GCC internal prototype to avoid an error.
10362    Use char because int might match the return type of a GCC
10363    builtin and then its argument prototype would still apply.  */
10364 #ifdef __cplusplus
10365 extern "C"
10366 #endif
10367 char dlopen ();
10368 int
10369 main ()
10370 {
10371 return dlopen ();
10372   ;
10373   return 0;
10374 }
10375 _ACEOF
10376 rm -f conftest.$ac_objext conftest$ac_exeext
10377 if { (ac_try="$ac_link"
10378 case "(($ac_try" in
10379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380   *) ac_try_echo=$ac_try;;
10381 esac
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383   (eval "$ac_link") 2>conftest.er1
10384   ac_status=$?
10385   grep -v '^ *+' conftest.er1 >conftest.err
10386   rm -f conftest.er1
10387   cat conftest.err >&5
10388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389   (exit $ac_status); } &&
10390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10391   { (case "(($ac_try" in
10392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393   *) ac_try_echo=$ac_try;;
10394 esac
10395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396   (eval "$ac_try") 2>&5
10397   ac_status=$?
10398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); }; } &&
10400          { ac_try='test -s conftest$ac_exeext'
10401   { (case "(($ac_try" in
10402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403   *) ac_try_echo=$ac_try;;
10404 esac
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406   (eval "$ac_try") 2>&5
10407   ac_status=$?
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); }; }; then
10410   ac_cv_lib_svld_dlopen=yes
10411 else
10412   echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10414
10415         ac_cv_lib_svld_dlopen=no
10416 fi
10417
10418 rm -f core conftest.err conftest.$ac_objext \
10419       conftest$ac_exeext conftest.$ac_ext
10420 LIBS=$ac_check_lib_save_LIBS
10421 fi
10422 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10423 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10424 if test $ac_cv_lib_svld_dlopen = yes; then
10425
10426 cat >>confdefs.h <<\_ACEOF
10427 #define HAVE_LIBDL 1
10428 _ACEOF
10429
10430                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10431 else
10432   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10433 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10434 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10435   echo $ECHO_N "(cached) $ECHO_C" >&6
10436 else
10437   ac_check_lib_save_LIBS=$LIBS
10438 LIBS="-ldld  $LIBS"
10439 cat >conftest.$ac_ext <<_ACEOF
10440 /* confdefs.h.  */
10441 _ACEOF
10442 cat confdefs.h >>conftest.$ac_ext
10443 cat >>conftest.$ac_ext <<_ACEOF
10444 /* end confdefs.h.  */
10445
10446 /* Override any GCC internal prototype to avoid an error.
10447    Use char because int might match the return type of a GCC
10448    builtin and then its argument prototype would still apply.  */
10449 #ifdef __cplusplus
10450 extern "C"
10451 #endif
10452 char dld_link ();
10453 int
10454 main ()
10455 {
10456 return dld_link ();
10457   ;
10458   return 0;
10459 }
10460 _ACEOF
10461 rm -f conftest.$ac_objext conftest$ac_exeext
10462 if { (ac_try="$ac_link"
10463 case "(($ac_try" in
10464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465   *) ac_try_echo=$ac_try;;
10466 esac
10467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468   (eval "$ac_link") 2>conftest.er1
10469   ac_status=$?
10470   grep -v '^ *+' conftest.er1 >conftest.err
10471   rm -f conftest.er1
10472   cat conftest.err >&5
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); } &&
10475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10476   { (case "(($ac_try" in
10477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478   *) ac_try_echo=$ac_try;;
10479 esac
10480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481   (eval "$ac_try") 2>&5
10482   ac_status=$?
10483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484   (exit $ac_status); }; } &&
10485          { ac_try='test -s conftest$ac_exeext'
10486   { (case "(($ac_try" in
10487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488   *) ac_try_echo=$ac_try;;
10489 esac
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491   (eval "$ac_try") 2>&5
10492   ac_status=$?
10493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494   (exit $ac_status); }; }; then
10495   ac_cv_lib_dld_dld_link=yes
10496 else
10497   echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10499
10500         ac_cv_lib_dld_dld_link=no
10501 fi
10502
10503 rm -f core conftest.err conftest.$ac_objext \
10504       conftest$ac_exeext conftest.$ac_ext
10505 LIBS=$ac_check_lib_save_LIBS
10506 fi
10507 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10508 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10509 if test $ac_cv_lib_dld_dld_link = yes; then
10510
10511 cat >>confdefs.h <<\_ACEOF
10512 #define HAVE_DLD 1
10513 _ACEOF
10514
10515                 LIBADD_DL="$LIBADD_DL -ldld"
10516 else
10517   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10518 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10519 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10520   echo $ECHO_N "(cached) $ECHO_C" >&6
10521 else
10522   cat >conftest.$ac_ext <<_ACEOF
10523 /* confdefs.h.  */
10524 _ACEOF
10525 cat confdefs.h >>conftest.$ac_ext
10526 cat >>conftest.$ac_ext <<_ACEOF
10527 /* end confdefs.h.  */
10528 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10530 #define _dyld_func_lookup innocuous__dyld_func_lookup
10531
10532 /* System header to define __stub macros and hopefully few prototypes,
10533     which can conflict with char _dyld_func_lookup (); below.
10534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10535     <limits.h> exists even on freestanding compilers.  */
10536
10537 #ifdef __STDC__
10538 # include <limits.h>
10539 #else
10540 # include <assert.h>
10541 #endif
10542
10543 #undef _dyld_func_lookup
10544
10545 /* Override any GCC internal prototype to avoid an error.
10546    Use char because int might match the return type of a GCC
10547    builtin and then its argument prototype would still apply.  */
10548 #ifdef __cplusplus
10549 extern "C"
10550 #endif
10551 char _dyld_func_lookup ();
10552 /* The GNU C library defines this for functions which it implements
10553     to always fail with ENOSYS.  Some functions are actually named
10554     something starting with __ and the normal name is an alias.  */
10555 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10556 choke me
10557 #endif
10558
10559 int
10560 main ()
10561 {
10562 return _dyld_func_lookup ();
10563   ;
10564   return 0;
10565 }
10566 _ACEOF
10567 rm -f conftest.$ac_objext conftest$ac_exeext
10568 if { (ac_try="$ac_link"
10569 case "(($ac_try" in
10570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571   *) ac_try_echo=$ac_try;;
10572 esac
10573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574   (eval "$ac_link") 2>conftest.er1
10575   ac_status=$?
10576   grep -v '^ *+' conftest.er1 >conftest.err
10577   rm -f conftest.er1
10578   cat conftest.err >&5
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); } &&
10581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10582   { (case "(($ac_try" in
10583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584   *) ac_try_echo=$ac_try;;
10585 esac
10586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587   (eval "$ac_try") 2>&5
10588   ac_status=$?
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); }; } &&
10591          { ac_try='test -s conftest$ac_exeext'
10592   { (case "(($ac_try" in
10593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594   *) ac_try_echo=$ac_try;;
10595 esac
10596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597   (eval "$ac_try") 2>&5
10598   ac_status=$?
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); }; }; then
10601   ac_cv_func__dyld_func_lookup=yes
10602 else
10603   echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10605
10606         ac_cv_func__dyld_func_lookup=no
10607 fi
10608
10609 rm -f core conftest.err conftest.$ac_objext \
10610       conftest$ac_exeext conftest.$ac_ext
10611 fi
10612 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10613 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10614 if test $ac_cv_func__dyld_func_lookup = yes; then
10615
10616 cat >>confdefs.h <<\_ACEOF
10617 #define HAVE_DYLD 1
10618 _ACEOF
10619
10620 fi
10621
10622
10623 fi
10624
10625
10626 fi
10627
10628
10629 fi
10630
10631 rm -f core conftest.err conftest.$ac_objext \
10632       conftest$ac_exeext conftest.$ac_ext
10633
10634 fi
10635
10636
10637 fi
10638
10639
10640 fi
10641
10642
10643 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10644 then
10645   lt_save_LIBS="$LIBS"
10646   LIBS="$LIBS $LIBADD_DL"
10647
10648 for ac_func in dlerror
10649 do
10650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10654   echo $ECHO_N "(cached) $ECHO_C" >&6
10655 else
10656   cat >conftest.$ac_ext <<_ACEOF
10657 /* confdefs.h.  */
10658 _ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h.  */
10662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10664 #define $ac_func innocuous_$ac_func
10665
10666 /* System header to define __stub macros and hopefully few prototypes,
10667     which can conflict with char $ac_func (); below.
10668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10669     <limits.h> exists even on freestanding compilers.  */
10670
10671 #ifdef __STDC__
10672 # include <limits.h>
10673 #else
10674 # include <assert.h>
10675 #endif
10676
10677 #undef $ac_func
10678
10679 /* Override any GCC internal prototype to avoid an error.
10680    Use char because int might match the return type of a GCC
10681    builtin and then its argument prototype would still apply.  */
10682 #ifdef __cplusplus
10683 extern "C"
10684 #endif
10685 char $ac_func ();
10686 /* The GNU C library defines this for functions which it implements
10687     to always fail with ENOSYS.  Some functions are actually named
10688     something starting with __ and the normal name is an alias.  */
10689 #if defined __stub_$ac_func || defined __stub___$ac_func
10690 choke me
10691 #endif
10692
10693 int
10694 main ()
10695 {
10696 return $ac_func ();
10697   ;
10698   return 0;
10699 }
10700 _ACEOF
10701 rm -f conftest.$ac_objext conftest$ac_exeext
10702 if { (ac_try="$ac_link"
10703 case "(($ac_try" in
10704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705   *) ac_try_echo=$ac_try;;
10706 esac
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708   (eval "$ac_link") 2>conftest.er1
10709   ac_status=$?
10710   grep -v '^ *+' conftest.er1 >conftest.err
10711   rm -f conftest.er1
10712   cat conftest.err >&5
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); } &&
10715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10716   { (case "(($ac_try" in
10717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718   *) ac_try_echo=$ac_try;;
10719 esac
10720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721   (eval "$ac_try") 2>&5
10722   ac_status=$?
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); }; } &&
10725          { ac_try='test -s conftest$ac_exeext'
10726   { (case "(($ac_try" in
10727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728   *) ac_try_echo=$ac_try;;
10729 esac
10730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10731   (eval "$ac_try") 2>&5
10732   ac_status=$?
10733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734   (exit $ac_status); }; }; then
10735   eval "$as_ac_var=yes"
10736 else
10737   echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10739
10740         eval "$as_ac_var=no"
10741 fi
10742
10743 rm -f core conftest.err conftest.$ac_objext \
10744       conftest$ac_exeext conftest.$ac_ext
10745 fi
10746 ac_res=`eval echo '${'$as_ac_var'}'`
10747                { echo "$as_me:$LINENO: result: $ac_res" >&5
10748 echo "${ECHO_T}$ac_res" >&6; }
10749 if test `eval echo '${'$as_ac_var'}'` = yes; then
10750   cat >>confdefs.h <<_ACEOF
10751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10752 _ACEOF
10753
10754 fi
10755 done
10756
10757   LIBS="$lt_save_LIBS"
10758 fi
10759 ac_ext=c
10760 ac_cpp='$CPP $CPPFLAGS'
10761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10764
10765
10766
10767 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10768 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10769 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10770   echo $ECHO_N "(cached) $ECHO_C" >&6
10771 else
10772   ac_cv_sys_symbol_underscore=no
10773   cat > conftest.$ac_ext <<EOF
10774 void nm_test_func(){}
10775 int main(){nm_test_func;return 0;}
10776 EOF
10777   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10778   (eval $ac_compile) 2>&5
10779   ac_status=$?
10780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781   (exit $ac_status); }; then
10782     # Now try to grab the symbols.
10783     ac_nlist=conftest.nm
10784     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10785   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10786   ac_status=$?
10787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788   (exit $ac_status); } && test -s "$ac_nlist"; then
10789       # See whether the symbols have a leading underscore.
10790       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10791         ac_cv_sys_symbol_underscore=yes
10792       else
10793         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10794           :
10795         else
10796           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10797         fi
10798       fi
10799     else
10800       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10801     fi
10802   else
10803     echo "configure: failed program was:" >&5
10804     cat conftest.c >&5
10805   fi
10806   rm -rf conftest*
10807
10808 fi
10809 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10810 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10811
10812
10813 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10814   if test x"$libltdl_cv_func_dlopen" = xyes ||
10815      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10816         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10817 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10818 if test "${libltdl_cv_need_uscore+set}" = set; then
10819   echo $ECHO_N "(cached) $ECHO_C" >&6
10820 else
10821   libltdl_cv_need_uscore=unknown
10822           save_LIBS="$LIBS"
10823           LIBS="$LIBS $LIBADD_DL"
10824           if test "$cross_compiling" = yes; then :
10825   libltdl_cv_need_uscore=cross
10826 else
10827   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10828   lt_status=$lt_dlunknown
10829   cat > conftest.$ac_ext <<EOF
10830 #line 10830 "configure"
10831 #include "confdefs.h"
10832
10833 #if HAVE_DLFCN_H
10834 #include <dlfcn.h>
10835 #endif
10836
10837 #include <stdio.h>
10838
10839 #ifdef RTLD_GLOBAL
10840 #  define LT_DLGLOBAL           RTLD_GLOBAL
10841 #else
10842 #  ifdef DL_GLOBAL
10843 #    define LT_DLGLOBAL         DL_GLOBAL
10844 #  else
10845 #    define LT_DLGLOBAL         0
10846 #  endif
10847 #endif
10848
10849 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10850    find out it does not work in some platform. */
10851 #ifndef LT_DLLAZY_OR_NOW
10852 #  ifdef RTLD_LAZY
10853 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10854 #  else
10855 #    ifdef DL_LAZY
10856 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10857 #    else
10858 #      ifdef RTLD_NOW
10859 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10860 #      else
10861 #        ifdef DL_NOW
10862 #          define LT_DLLAZY_OR_NOW      DL_NOW
10863 #        else
10864 #          define LT_DLLAZY_OR_NOW      0
10865 #        endif
10866 #      endif
10867 #    endif
10868 #  endif
10869 #endif
10870
10871 #ifdef __cplusplus
10872 extern "C" void exit (int);
10873 #endif
10874
10875 void fnord() { int i=42;}
10876 int main ()
10877 {
10878   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10879   int status = $lt_dlunknown;
10880
10881   if (self)
10882     {
10883       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10884       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10885       /* dlclose (self); */
10886     }
10887   else
10888     puts (dlerror ());
10889
10890     exit (status);
10891 }
10892 EOF
10893   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10894   (eval $ac_link) 2>&5
10895   ac_status=$?
10896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10898     (./conftest; exit; ) >&5 2>/dev/null
10899     lt_status=$?
10900     case x$lt_status in
10901       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10902       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10903       x$lt_dlunknown|x*)  ;;
10904     esac
10905   else :
10906     # compilation failed
10907
10908   fi
10909 fi
10910 rm -fr conftest*
10911
10912           LIBS="$save_LIBS"
10913
10914 fi
10915 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10916 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10917   fi
10918 fi
10919
10920 if test x"$libltdl_cv_need_uscore" = xyes; then
10921
10922 cat >>confdefs.h <<\_ACEOF
10923 #define NEED_USCORE 1
10924 _ACEOF
10925
10926 fi
10927
10928
10929 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10930 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10931 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10932   echo $ECHO_N "(cached) $ECHO_C" >&6
10933 else
10934   # PORTME does your system automatically load deplibs for dlopen?
10935   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10936   # For now, we just catch OSes we know something about -- in the
10937   # future, we'll try test this programmatically.
10938   libltdl_cv_sys_dlopen_deplibs=unknown
10939   case "$host_os" in
10940   aix3*|aix4.1.*|aix4.2.*)
10941     # Unknown whether this is true for these versions of AIX, but
10942     # we want this `case' here to explicitly catch those versions.
10943     libltdl_cv_sys_dlopen_deplibs=unknown
10944     ;;
10945   aix[45]*)
10946     libltdl_cv_sys_dlopen_deplibs=yes
10947     ;;
10948   darwin*)
10949     # Assuming the user has installed a libdl from somewhere, this is true
10950     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10951     libltdl_cv_sys_dlopen_deplibs=yes
10952     ;;
10953   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10954     # GNU and its variants, using gnu ld.so (Glibc)
10955     libltdl_cv_sys_dlopen_deplibs=yes
10956     ;;
10957   hpux10*|hpux11*)
10958     libltdl_cv_sys_dlopen_deplibs=yes
10959     ;;
10960   interix*)
10961     libltdl_cv_sys_dlopen_deplibs=yes
10962     ;;
10963   irix[12345]*|irix6.[01]*)
10964     # Catch all versions of IRIX before 6.2, and indicate that we don't
10965     # know how it worked for any of those versions.
10966     libltdl_cv_sys_dlopen_deplibs=unknown
10967     ;;
10968   irix*)
10969     # The case above catches anything before 6.2, and it's known that
10970     # at 6.2 and later dlopen does load deplibs.
10971     libltdl_cv_sys_dlopen_deplibs=yes
10972     ;;
10973   netbsd*)
10974     libltdl_cv_sys_dlopen_deplibs=yes
10975     ;;
10976   openbsd*)
10977     libltdl_cv_sys_dlopen_deplibs=yes
10978     ;;
10979   osf[1234]*)
10980     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10981     # it did *not* use an RPATH in a shared library to find objects the
10982     # library depends on, so we explictly say `no'.
10983     libltdl_cv_sys_dlopen_deplibs=no
10984     ;;
10985   osf5.0|osf5.0a|osf5.1)
10986     # dlopen *does* load deplibs and with the right loader patch applied
10987     # it even uses RPATH in a shared library to search for shared objects
10988     # that the library depends on, but there's no easy way to know if that
10989     # patch is installed.  Since this is the case, all we can really
10990     # say is unknown -- it depends on the patch being installed.  If
10991     # it is, this changes to `yes'.  Without it, it would be `no'.
10992     libltdl_cv_sys_dlopen_deplibs=unknown
10993     ;;
10994   osf*)
10995     # the two cases above should catch all versions of osf <= 5.1.  Read
10996     # the comments above for what we know about them.
10997     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10998     # is used to find them so we can finally say `yes'.
10999     libltdl_cv_sys_dlopen_deplibs=yes
11000     ;;
11001   solaris*)
11002     libltdl_cv_sys_dlopen_deplibs=yes
11003     ;;
11004   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11005     libltdl_cv_sys_dlopen_deplibs=yes
11006     ;;
11007   esac
11008
11009 fi
11010 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11011 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11012 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11013
11014 cat >>confdefs.h <<\_ACEOF
11015 #define LTDL_DLOPEN_DEPLIBS 1
11016 _ACEOF
11017
11018 fi
11019
11020
11021 for ac_header in argz.h
11022 do
11023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11025   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11028   echo $ECHO_N "(cached) $ECHO_C" >&6
11029 fi
11030 ac_res=`eval echo '${'$as_ac_Header'}'`
11031                { echo "$as_me:$LINENO: result: $ac_res" >&5
11032 echo "${ECHO_T}$ac_res" >&6; }
11033 else
11034   # Is the header compilable?
11035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11037 cat >conftest.$ac_ext <<_ACEOF
11038 /* confdefs.h.  */
11039 _ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h.  */
11043 $ac_includes_default
11044 #include <$ac_header>
11045 _ACEOF
11046 rm -f conftest.$ac_objext
11047 if { (ac_try="$ac_compile"
11048 case "(($ac_try" in
11049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050   *) ac_try_echo=$ac_try;;
11051 esac
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053   (eval "$ac_compile") 2>conftest.er1
11054   ac_status=$?
11055   grep -v '^ *+' conftest.er1 >conftest.err
11056   rm -f conftest.er1
11057   cat conftest.err >&5
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); } &&
11060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11061   { (case "(($ac_try" in
11062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063   *) ac_try_echo=$ac_try;;
11064 esac
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066   (eval "$ac_try") 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); }; } &&
11070          { ac_try='test -s conftest.$ac_objext'
11071   { (case "(($ac_try" in
11072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073   *) ac_try_echo=$ac_try;;
11074 esac
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076   (eval "$ac_try") 2>&5
11077   ac_status=$?
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); }; }; then
11080   ac_header_compiler=yes
11081 else
11082   echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11084
11085         ac_header_compiler=no
11086 fi
11087
11088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11090 echo "${ECHO_T}$ac_header_compiler" >&6; }
11091
11092 # Is the header present?
11093 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11095 cat >conftest.$ac_ext <<_ACEOF
11096 /* confdefs.h.  */
11097 _ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h.  */
11101 #include <$ac_header>
11102 _ACEOF
11103 if { (ac_try="$ac_cpp conftest.$ac_ext"
11104 case "(($ac_try" in
11105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106   *) ac_try_echo=$ac_try;;
11107 esac
11108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11110   ac_status=$?
11111   grep -v '^ *+' conftest.er1 >conftest.err
11112   rm -f conftest.er1
11113   cat conftest.err >&5
11114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115   (exit $ac_status); } >/dev/null; then
11116   if test -s conftest.err; then
11117     ac_cpp_err=$ac_c_preproc_warn_flag
11118     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11119   else
11120     ac_cpp_err=
11121   fi
11122 else
11123   ac_cpp_err=yes
11124 fi
11125 if test -z "$ac_cpp_err"; then
11126   ac_header_preproc=yes
11127 else
11128   echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.$ac_ext >&5
11130
11131   ac_header_preproc=no
11132 fi
11133
11134 rm -f conftest.err conftest.$ac_ext
11135 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11136 echo "${ECHO_T}$ac_header_preproc" >&6; }
11137
11138 # So?  What about this header?
11139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11140   yes:no: )
11141     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11145     ac_header_preproc=yes
11146     ;;
11147   no:yes:* )
11148     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11150     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11151 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11152     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11154     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11155 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11156     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11158     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11160     ( cat <<\_ASBOX
11161 ## ----------------------------------- ##
11162 ## Report this to llvmbugs@cs.uiuc.edu ##
11163 ## ----------------------------------- ##
11164 _ASBOX
11165      ) | sed "s/^/$as_me: WARNING:     /" >&2
11166     ;;
11167 esac
11168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11171   echo $ECHO_N "(cached) $ECHO_C" >&6
11172 else
11173   eval "$as_ac_Header=\$ac_header_preproc"
11174 fi
11175 ac_res=`eval echo '${'$as_ac_Header'}'`
11176                { echo "$as_me:$LINENO: result: $ac_res" >&5
11177 echo "${ECHO_T}$ac_res" >&6; }
11178
11179 fi
11180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11181   cat >>confdefs.h <<_ACEOF
11182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11183 _ACEOF
11184
11185 fi
11186
11187 done
11188
11189
11190 { echo "$as_me:$LINENO: checking for error_t" >&5
11191 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11192 if test "${ac_cv_type_error_t+set}" = set; then
11193   echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195   cat >conftest.$ac_ext <<_ACEOF
11196 /* confdefs.h.  */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h.  */
11201 #if HAVE_ARGZ_H
11202 #  include <argz.h>
11203 #endif
11204
11205 typedef error_t ac__type_new_;
11206 int
11207 main ()
11208 {
11209 if ((ac__type_new_ *) 0)
11210   return 0;
11211 if (sizeof (ac__type_new_))
11212   return 0;
11213   ;
11214   return 0;
11215 }
11216 _ACEOF
11217 rm -f conftest.$ac_objext
11218 if { (ac_try="$ac_compile"
11219 case "(($ac_try" in
11220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221   *) ac_try_echo=$ac_try;;
11222 esac
11223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224   (eval "$ac_compile") 2>conftest.er1
11225   ac_status=$?
11226   grep -v '^ *+' conftest.er1 >conftest.err
11227   rm -f conftest.er1
11228   cat conftest.err >&5
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); } &&
11231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11232   { (case "(($ac_try" in
11233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234   *) ac_try_echo=$ac_try;;
11235 esac
11236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237   (eval "$ac_try") 2>&5
11238   ac_status=$?
11239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240   (exit $ac_status); }; } &&
11241          { ac_try='test -s conftest.$ac_objext'
11242   { (case "(($ac_try" in
11243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11244   *) ac_try_echo=$ac_try;;
11245 esac
11246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11247   (eval "$ac_try") 2>&5
11248   ac_status=$?
11249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250   (exit $ac_status); }; }; then
11251   ac_cv_type_error_t=yes
11252 else
11253   echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11255
11256         ac_cv_type_error_t=no
11257 fi
11258
11259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11260 fi
11261 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11262 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11263 if test $ac_cv_type_error_t = yes; then
11264
11265 cat >>confdefs.h <<_ACEOF
11266 #define HAVE_ERROR_T 1
11267 _ACEOF
11268
11269
11270 else
11271
11272 cat >>confdefs.h <<\_ACEOF
11273 #define error_t int
11274 _ACEOF
11275
11276 fi
11277
11278
11279
11280
11281
11282
11283
11284 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11285 do
11286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11287 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11289 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11290   echo $ECHO_N "(cached) $ECHO_C" >&6
11291 else
11292   cat >conftest.$ac_ext <<_ACEOF
11293 /* confdefs.h.  */
11294 _ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h.  */
11298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11299    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11300 #define $ac_func innocuous_$ac_func
11301
11302 /* System header to define __stub macros and hopefully few prototypes,
11303     which can conflict with char $ac_func (); below.
11304     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11305     <limits.h> exists even on freestanding compilers.  */
11306
11307 #ifdef __STDC__
11308 # include <limits.h>
11309 #else
11310 # include <assert.h>
11311 #endif
11312
11313 #undef $ac_func
11314
11315 /* Override any GCC internal prototype to avoid an error.
11316    Use char because int might match the return type of a GCC
11317    builtin and then its argument prototype would still apply.  */
11318 #ifdef __cplusplus
11319 extern "C"
11320 #endif
11321 char $ac_func ();
11322 /* The GNU C library defines this for functions which it implements
11323     to always fail with ENOSYS.  Some functions are actually named
11324     something starting with __ and the normal name is an alias.  */
11325 #if defined __stub_$ac_func || defined __stub___$ac_func
11326 choke me
11327 #endif
11328
11329 int
11330 main ()
11331 {
11332 return $ac_func ();
11333   ;
11334   return 0;
11335 }
11336 _ACEOF
11337 rm -f conftest.$ac_objext conftest$ac_exeext
11338 if { (ac_try="$ac_link"
11339 case "(($ac_try" in
11340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341   *) ac_try_echo=$ac_try;;
11342 esac
11343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344   (eval "$ac_link") 2>conftest.er1
11345   ac_status=$?
11346   grep -v '^ *+' conftest.er1 >conftest.err
11347   rm -f conftest.er1
11348   cat conftest.err >&5
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); } &&
11351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11352   { (case "(($ac_try" in
11353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354   *) ac_try_echo=$ac_try;;
11355 esac
11356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357   (eval "$ac_try") 2>&5
11358   ac_status=$?
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); }; } &&
11361          { ac_try='test -s conftest$ac_exeext'
11362   { (case "(($ac_try" in
11363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364   *) ac_try_echo=$ac_try;;
11365 esac
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367   (eval "$ac_try") 2>&5
11368   ac_status=$?
11369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370   (exit $ac_status); }; }; then
11371   eval "$as_ac_var=yes"
11372 else
11373   echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11375
11376         eval "$as_ac_var=no"
11377 fi
11378
11379 rm -f core conftest.err conftest.$ac_objext \
11380       conftest$ac_exeext conftest.$ac_ext
11381 fi
11382 ac_res=`eval echo '${'$as_ac_var'}'`
11383                { echo "$as_me:$LINENO: result: $ac_res" >&5
11384 echo "${ECHO_T}$ac_res" >&6; }
11385 if test `eval echo '${'$as_ac_var'}'` = yes; then
11386   cat >>confdefs.h <<_ACEOF
11387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11388 _ACEOF
11389
11390 fi
11391 done
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11421                   stdio.h unistd.h
11422 do
11423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11425   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11428   echo $ECHO_N "(cached) $ECHO_C" >&6
11429 fi
11430 ac_res=`eval echo '${'$as_ac_Header'}'`
11431                { echo "$as_me:$LINENO: result: $ac_res" >&5
11432 echo "${ECHO_T}$ac_res" >&6; }
11433 else
11434   # Is the header compilable?
11435 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11437 cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h.  */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h.  */
11443 $ac_includes_default
11444 #include <$ac_header>
11445 _ACEOF
11446 rm -f conftest.$ac_objext
11447 if { (ac_try="$ac_compile"
11448 case "(($ac_try" in
11449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450   *) ac_try_echo=$ac_try;;
11451 esac
11452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453   (eval "$ac_compile") 2>conftest.er1
11454   ac_status=$?
11455   grep -v '^ *+' conftest.er1 >conftest.err
11456   rm -f conftest.er1
11457   cat conftest.err >&5
11458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459   (exit $ac_status); } &&
11460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11461   { (case "(($ac_try" in
11462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463   *) ac_try_echo=$ac_try;;
11464 esac
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466   (eval "$ac_try") 2>&5
11467   ac_status=$?
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); }; } &&
11470          { ac_try='test -s conftest.$ac_objext'
11471   { (case "(($ac_try" in
11472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473   *) ac_try_echo=$ac_try;;
11474 esac
11475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476   (eval "$ac_try") 2>&5
11477   ac_status=$?
11478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479   (exit $ac_status); }; }; then
11480   ac_header_compiler=yes
11481 else
11482   echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11484
11485         ac_header_compiler=no
11486 fi
11487
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11490 echo "${ECHO_T}$ac_header_compiler" >&6; }
11491
11492 # Is the header present?
11493 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11495 cat >conftest.$ac_ext <<_ACEOF
11496 /* confdefs.h.  */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h.  */
11501 #include <$ac_header>
11502 _ACEOF
11503 if { (ac_try="$ac_cpp conftest.$ac_ext"
11504 case "(($ac_try" in
11505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506   *) ac_try_echo=$ac_try;;
11507 esac
11508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11510   ac_status=$?
11511   grep -v '^ *+' conftest.er1 >conftest.err
11512   rm -f conftest.er1
11513   cat conftest.err >&5
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); } >/dev/null; then
11516   if test -s conftest.err; then
11517     ac_cpp_err=$ac_c_preproc_warn_flag
11518     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11519   else
11520     ac_cpp_err=
11521   fi
11522 else
11523   ac_cpp_err=yes
11524 fi
11525 if test -z "$ac_cpp_err"; then
11526   ac_header_preproc=yes
11527 else
11528   echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11530
11531   ac_header_preproc=no
11532 fi
11533
11534 rm -f conftest.err conftest.$ac_ext
11535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11536 echo "${ECHO_T}$ac_header_preproc" >&6; }
11537
11538 # So?  What about this header?
11539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11540   yes:no: )
11541     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11543     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11545     ac_header_preproc=yes
11546     ;;
11547   no:yes:* )
11548     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11550     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11551 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11552     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11554     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11555 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11556     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11558     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11560     ( cat <<\_ASBOX
11561 ## ----------------------------------- ##
11562 ## Report this to llvmbugs@cs.uiuc.edu ##
11563 ## ----------------------------------- ##
11564 _ASBOX
11565      ) | sed "s/^/$as_me: WARNING:     /" >&2
11566     ;;
11567 esac
11568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11571   echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573   eval "$as_ac_Header=\$ac_header_preproc"
11574 fi
11575 ac_res=`eval echo '${'$as_ac_Header'}'`
11576                { echo "$as_me:$LINENO: result: $ac_res" >&5
11577 echo "${ECHO_T}$ac_res" >&6; }
11578
11579 fi
11580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11581   cat >>confdefs.h <<_ACEOF
11582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11583 _ACEOF
11584
11585 fi
11586
11587 done
11588
11589
11590
11591
11592
11593 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11594 do
11595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11597   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11600   echo $ECHO_N "(cached) $ECHO_C" >&6
11601 fi
11602 ac_res=`eval echo '${'$as_ac_Header'}'`
11603                { echo "$as_me:$LINENO: result: $ac_res" >&5
11604 echo "${ECHO_T}$ac_res" >&6; }
11605 else
11606   # Is the header compilable?
11607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11609 cat >conftest.$ac_ext <<_ACEOF
11610 /* confdefs.h.  */
11611 _ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h.  */
11615 $ac_includes_default
11616 #include <$ac_header>
11617 _ACEOF
11618 rm -f conftest.$ac_objext
11619 if { (ac_try="$ac_compile"
11620 case "(($ac_try" in
11621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622   *) ac_try_echo=$ac_try;;
11623 esac
11624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625   (eval "$ac_compile") 2>conftest.er1
11626   ac_status=$?
11627   grep -v '^ *+' conftest.er1 >conftest.err
11628   rm -f conftest.er1
11629   cat conftest.err >&5
11630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631   (exit $ac_status); } &&
11632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11633   { (case "(($ac_try" in
11634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635   *) ac_try_echo=$ac_try;;
11636 esac
11637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638   (eval "$ac_try") 2>&5
11639   ac_status=$?
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); }; } &&
11642          { ac_try='test -s conftest.$ac_objext'
11643   { (case "(($ac_try" in
11644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645   *) ac_try_echo=$ac_try;;
11646 esac
11647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648   (eval "$ac_try") 2>&5
11649   ac_status=$?
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); }; }; then
11652   ac_header_compiler=yes
11653 else
11654   echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11656
11657         ac_header_compiler=no
11658 fi
11659
11660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11662 echo "${ECHO_T}$ac_header_compiler" >&6; }
11663
11664 # Is the header present?
11665 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11667 cat >conftest.$ac_ext <<_ACEOF
11668 /* confdefs.h.  */
11669 _ACEOF
11670 cat confdefs.h >>conftest.$ac_ext
11671 cat >>conftest.$ac_ext <<_ACEOF
11672 /* end confdefs.h.  */
11673 #include <$ac_header>
11674 _ACEOF
11675 if { (ac_try="$ac_cpp conftest.$ac_ext"
11676 case "(($ac_try" in
11677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678   *) ac_try_echo=$ac_try;;
11679 esac
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11682   ac_status=$?
11683   grep -v '^ *+' conftest.er1 >conftest.err
11684   rm -f conftest.er1
11685   cat conftest.err >&5
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); } >/dev/null; then
11688   if test -s conftest.err; then
11689     ac_cpp_err=$ac_c_preproc_warn_flag
11690     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11691   else
11692     ac_cpp_err=
11693   fi
11694 else
11695   ac_cpp_err=yes
11696 fi
11697 if test -z "$ac_cpp_err"; then
11698   ac_header_preproc=yes
11699 else
11700   echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11702
11703   ac_header_preproc=no
11704 fi
11705
11706 rm -f conftest.err conftest.$ac_ext
11707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11708 echo "${ECHO_T}$ac_header_preproc" >&6; }
11709
11710 # So?  What about this header?
11711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11712   yes:no: )
11713     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11717     ac_header_preproc=yes
11718     ;;
11719   no:yes:* )
11720     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11722     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11723 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11724     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11726     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11727 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11730     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11732     ( cat <<\_ASBOX
11733 ## ----------------------------------- ##
11734 ## Report this to llvmbugs@cs.uiuc.edu ##
11735 ## ----------------------------------- ##
11736 _ASBOX
11737      ) | sed "s/^/$as_me: WARNING:     /" >&2
11738     ;;
11739 esac
11740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11743   echo $ECHO_N "(cached) $ECHO_C" >&6
11744 else
11745   eval "$as_ac_Header=\$ac_header_preproc"
11746 fi
11747 ac_res=`eval echo '${'$as_ac_Header'}'`
11748                { echo "$as_me:$LINENO: result: $ac_res" >&5
11749 echo "${ECHO_T}$ac_res" >&6; }
11750
11751 fi
11752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11753   cat >>confdefs.h <<_ACEOF
11754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11755 _ACEOF
11756
11757 fi
11758
11759 done
11760
11761
11762
11763 for ac_header in string.h strings.h
11764 do
11765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11767   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11770   echo $ECHO_N "(cached) $ECHO_C" >&6
11771 fi
11772 ac_res=`eval echo '${'$as_ac_Header'}'`
11773                { echo "$as_me:$LINENO: result: $ac_res" >&5
11774 echo "${ECHO_T}$ac_res" >&6; }
11775 else
11776   # Is the header compilable?
11777 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11779 cat >conftest.$ac_ext <<_ACEOF
11780 /* confdefs.h.  */
11781 _ACEOF
11782 cat confdefs.h >>conftest.$ac_ext
11783 cat >>conftest.$ac_ext <<_ACEOF
11784 /* end confdefs.h.  */
11785 $ac_includes_default
11786 #include <$ac_header>
11787 _ACEOF
11788 rm -f conftest.$ac_objext
11789 if { (ac_try="$ac_compile"
11790 case "(($ac_try" in
11791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792   *) ac_try_echo=$ac_try;;
11793 esac
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795   (eval "$ac_compile") 2>conftest.er1
11796   ac_status=$?
11797   grep -v '^ *+' conftest.er1 >conftest.err
11798   rm -f conftest.er1
11799   cat conftest.err >&5
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); } &&
11802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11803   { (case "(($ac_try" in
11804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805   *) ac_try_echo=$ac_try;;
11806 esac
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808   (eval "$ac_try") 2>&5
11809   ac_status=$?
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); }; } &&
11812          { ac_try='test -s conftest.$ac_objext'
11813   { (case "(($ac_try" in
11814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815   *) ac_try_echo=$ac_try;;
11816 esac
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818   (eval "$ac_try") 2>&5
11819   ac_status=$?
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); }; }; then
11822   ac_header_compiler=yes
11823 else
11824   echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11826
11827         ac_header_compiler=no
11828 fi
11829
11830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11832 echo "${ECHO_T}$ac_header_compiler" >&6; }
11833
11834 # Is the header present?
11835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11837 cat >conftest.$ac_ext <<_ACEOF
11838 /* confdefs.h.  */
11839 _ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h.  */
11843 #include <$ac_header>
11844 _ACEOF
11845 if { (ac_try="$ac_cpp conftest.$ac_ext"
11846 case "(($ac_try" in
11847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848   *) ac_try_echo=$ac_try;;
11849 esac
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11852   ac_status=$?
11853   grep -v '^ *+' conftest.er1 >conftest.err
11854   rm -f conftest.er1
11855   cat conftest.err >&5
11856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   (exit $ac_status); } >/dev/null; then
11858   if test -s conftest.err; then
11859     ac_cpp_err=$ac_c_preproc_warn_flag
11860     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11861   else
11862     ac_cpp_err=
11863   fi
11864 else
11865   ac_cpp_err=yes
11866 fi
11867 if test -z "$ac_cpp_err"; then
11868   ac_header_preproc=yes
11869 else
11870   echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11872
11873   ac_header_preproc=no
11874 fi
11875
11876 rm -f conftest.err conftest.$ac_ext
11877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11878 echo "${ECHO_T}$ac_header_preproc" >&6; }
11879
11880 # So?  What about this header?
11881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11882   yes:no: )
11883     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11885     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11887     ac_header_preproc=yes
11888     ;;
11889   no:yes:* )
11890     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11892     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11893 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11894     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11896     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11897 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11900     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11902     ( cat <<\_ASBOX
11903 ## ----------------------------------- ##
11904 ## Report this to llvmbugs@cs.uiuc.edu ##
11905 ## ----------------------------------- ##
11906 _ASBOX
11907      ) | sed "s/^/$as_me: WARNING:     /" >&2
11908     ;;
11909 esac
11910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11913   echo $ECHO_N "(cached) $ECHO_C" >&6
11914 else
11915   eval "$as_ac_Header=\$ac_header_preproc"
11916 fi
11917 ac_res=`eval echo '${'$as_ac_Header'}'`
11918                { echo "$as_me:$LINENO: result: $ac_res" >&5
11919 echo "${ECHO_T}$ac_res" >&6; }
11920
11921 fi
11922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11923   cat >>confdefs.h <<_ACEOF
11924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11925 _ACEOF
11926  break
11927 fi
11928
11929 done
11930
11931
11932
11933
11934 for ac_func in strchr index
11935 do
11936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11940   echo $ECHO_N "(cached) $ECHO_C" >&6
11941 else
11942   cat >conftest.$ac_ext <<_ACEOF
11943 /* confdefs.h.  */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h.  */
11948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11950 #define $ac_func innocuous_$ac_func
11951
11952 /* System header to define __stub macros and hopefully few prototypes,
11953     which can conflict with char $ac_func (); below.
11954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11955     <limits.h> exists even on freestanding compilers.  */
11956
11957 #ifdef __STDC__
11958 # include <limits.h>
11959 #else
11960 # include <assert.h>
11961 #endif
11962
11963 #undef $ac_func
11964
11965 /* Override any GCC internal prototype to avoid an error.
11966    Use char because int might match the return type of a GCC
11967    builtin and then its argument prototype would still apply.  */
11968 #ifdef __cplusplus
11969 extern "C"
11970 #endif
11971 char $ac_func ();
11972 /* The GNU C library defines this for functions which it implements
11973     to always fail with ENOSYS.  Some functions are actually named
11974     something starting with __ and the normal name is an alias.  */
11975 #if defined __stub_$ac_func || defined __stub___$ac_func
11976 choke me
11977 #endif
11978
11979 int
11980 main ()
11981 {
11982 return $ac_func ();
11983   ;
11984   return 0;
11985 }
11986 _ACEOF
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (ac_try="$ac_link"
11989 case "(($ac_try" in
11990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991   *) ac_try_echo=$ac_try;;
11992 esac
11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994   (eval "$ac_link") 2>conftest.er1
11995   ac_status=$?
11996   grep -v '^ *+' conftest.er1 >conftest.err
11997   rm -f conftest.er1
11998   cat conftest.err >&5
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); } &&
12001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12002   { (case "(($ac_try" in
12003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004   *) ac_try_echo=$ac_try;;
12005 esac
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007   (eval "$ac_try") 2>&5
12008   ac_status=$?
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); }; } &&
12011          { ac_try='test -s conftest$ac_exeext'
12012   { (case "(($ac_try" in
12013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014   *) ac_try_echo=$ac_try;;
12015 esac
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017   (eval "$ac_try") 2>&5
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); }; }; then
12021   eval "$as_ac_var=yes"
12022 else
12023   echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12025
12026         eval "$as_ac_var=no"
12027 fi
12028
12029 rm -f core conftest.err conftest.$ac_objext \
12030       conftest$ac_exeext conftest.$ac_ext
12031 fi
12032 ac_res=`eval echo '${'$as_ac_var'}'`
12033                { echo "$as_me:$LINENO: result: $ac_res" >&5
12034 echo "${ECHO_T}$ac_res" >&6; }
12035 if test `eval echo '${'$as_ac_var'}'` = yes; then
12036   cat >>confdefs.h <<_ACEOF
12037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12038 _ACEOF
12039  break
12040 fi
12041 done
12042
12043
12044
12045 for ac_func in strrchr rindex
12046 do
12047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12051   echo $ECHO_N "(cached) $ECHO_C" >&6
12052 else
12053   cat >conftest.$ac_ext <<_ACEOF
12054 /* confdefs.h.  */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h.  */
12059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12061 #define $ac_func innocuous_$ac_func
12062
12063 /* System header to define __stub macros and hopefully few prototypes,
12064     which can conflict with char $ac_func (); below.
12065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12066     <limits.h> exists even on freestanding compilers.  */
12067
12068 #ifdef __STDC__
12069 # include <limits.h>
12070 #else
12071 # include <assert.h>
12072 #endif
12073
12074 #undef $ac_func
12075
12076 /* Override any GCC internal prototype to avoid an error.
12077    Use char because int might match the return type of a GCC
12078    builtin and then its argument prototype would still apply.  */
12079 #ifdef __cplusplus
12080 extern "C"
12081 #endif
12082 char $ac_func ();
12083 /* The GNU C library defines this for functions which it implements
12084     to always fail with ENOSYS.  Some functions are actually named
12085     something starting with __ and the normal name is an alias.  */
12086 #if defined __stub_$ac_func || defined __stub___$ac_func
12087 choke me
12088 #endif
12089
12090 int
12091 main ()
12092 {
12093 return $ac_func ();
12094   ;
12095   return 0;
12096 }
12097 _ACEOF
12098 rm -f conftest.$ac_objext conftest$ac_exeext
12099 if { (ac_try="$ac_link"
12100 case "(($ac_try" in
12101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102   *) ac_try_echo=$ac_try;;
12103 esac
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105   (eval "$ac_link") 2>conftest.er1
12106   ac_status=$?
12107   grep -v '^ *+' conftest.er1 >conftest.err
12108   rm -f conftest.er1
12109   cat conftest.err >&5
12110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111   (exit $ac_status); } &&
12112          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12113   { (case "(($ac_try" in
12114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115   *) ac_try_echo=$ac_try;;
12116 esac
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118   (eval "$ac_try") 2>&5
12119   ac_status=$?
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); }; } &&
12122          { ac_try='test -s conftest$ac_exeext'
12123   { (case "(($ac_try" in
12124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125   *) ac_try_echo=$ac_try;;
12126 esac
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128   (eval "$ac_try") 2>&5
12129   ac_status=$?
12130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131   (exit $ac_status); }; }; then
12132   eval "$as_ac_var=yes"
12133 else
12134   echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12136
12137         eval "$as_ac_var=no"
12138 fi
12139
12140 rm -f core conftest.err conftest.$ac_objext \
12141       conftest$ac_exeext conftest.$ac_ext
12142 fi
12143 ac_res=`eval echo '${'$as_ac_var'}'`
12144                { echo "$as_me:$LINENO: result: $ac_res" >&5
12145 echo "${ECHO_T}$ac_res" >&6; }
12146 if test `eval echo '${'$as_ac_var'}'` = yes; then
12147   cat >>confdefs.h <<_ACEOF
12148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12149 _ACEOF
12150  break
12151 fi
12152 done
12153
12154
12155
12156 for ac_func in memcpy bcopy
12157 do
12158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12159 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12162   echo $ECHO_N "(cached) $ECHO_C" >&6
12163 else
12164   cat >conftest.$ac_ext <<_ACEOF
12165 /* confdefs.h.  */
12166 _ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h.  */
12170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12172 #define $ac_func innocuous_$ac_func
12173
12174 /* System header to define __stub macros and hopefully few prototypes,
12175     which can conflict with char $ac_func (); below.
12176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12177     <limits.h> exists even on freestanding compilers.  */
12178
12179 #ifdef __STDC__
12180 # include <limits.h>
12181 #else
12182 # include <assert.h>
12183 #endif
12184
12185 #undef $ac_func
12186
12187 /* Override any GCC internal prototype to avoid an error.
12188    Use char because int might match the return type of a GCC
12189    builtin and then its argument prototype would still apply.  */
12190 #ifdef __cplusplus
12191 extern "C"
12192 #endif
12193 char $ac_func ();
12194 /* The GNU C library defines this for functions which it implements
12195     to always fail with ENOSYS.  Some functions are actually named
12196     something starting with __ and the normal name is an alias.  */
12197 #if defined __stub_$ac_func || defined __stub___$ac_func
12198 choke me
12199 #endif
12200
12201 int
12202 main ()
12203 {
12204 return $ac_func ();
12205   ;
12206   return 0;
12207 }
12208 _ACEOF
12209 rm -f conftest.$ac_objext conftest$ac_exeext
12210 if { (ac_try="$ac_link"
12211 case "(($ac_try" in
12212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213   *) ac_try_echo=$ac_try;;
12214 esac
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216   (eval "$ac_link") 2>conftest.er1
12217   ac_status=$?
12218   grep -v '^ *+' conftest.er1 >conftest.err
12219   rm -f conftest.er1
12220   cat conftest.err >&5
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); } &&
12223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12224   { (case "(($ac_try" in
12225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12226   *) ac_try_echo=$ac_try;;
12227 esac
12228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12229   (eval "$ac_try") 2>&5
12230   ac_status=$?
12231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232   (exit $ac_status); }; } &&
12233          { ac_try='test -s conftest$ac_exeext'
12234   { (case "(($ac_try" in
12235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236   *) ac_try_echo=$ac_try;;
12237 esac
12238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12239   (eval "$ac_try") 2>&5
12240   ac_status=$?
12241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242   (exit $ac_status); }; }; then
12243   eval "$as_ac_var=yes"
12244 else
12245   echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12247
12248         eval "$as_ac_var=no"
12249 fi
12250
12251 rm -f core conftest.err conftest.$ac_objext \
12252       conftest$ac_exeext conftest.$ac_ext
12253 fi
12254 ac_res=`eval echo '${'$as_ac_var'}'`
12255                { echo "$as_me:$LINENO: result: $ac_res" >&5
12256 echo "${ECHO_T}$ac_res" >&6; }
12257 if test `eval echo '${'$as_ac_var'}'` = yes; then
12258   cat >>confdefs.h <<_ACEOF
12259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12260 _ACEOF
12261  break
12262 fi
12263 done
12264
12265
12266
12267 for ac_func in memmove strcmp
12268 do
12269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12273   echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275   cat >conftest.$ac_ext <<_ACEOF
12276 /* confdefs.h.  */
12277 _ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h.  */
12281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12283 #define $ac_func innocuous_$ac_func
12284
12285 /* System header to define __stub macros and hopefully few prototypes,
12286     which can conflict with char $ac_func (); below.
12287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12288     <limits.h> exists even on freestanding compilers.  */
12289
12290 #ifdef __STDC__
12291 # include <limits.h>
12292 #else
12293 # include <assert.h>
12294 #endif
12295
12296 #undef $ac_func
12297
12298 /* Override any GCC internal prototype to avoid an error.
12299    Use char because int might match the return type of a GCC
12300    builtin and then its argument prototype would still apply.  */
12301 #ifdef __cplusplus
12302 extern "C"
12303 #endif
12304 char $ac_func ();
12305 /* The GNU C library defines this for functions which it implements
12306     to always fail with ENOSYS.  Some functions are actually named
12307     something starting with __ and the normal name is an alias.  */
12308 #if defined __stub_$ac_func || defined __stub___$ac_func
12309 choke me
12310 #endif
12311
12312 int
12313 main ()
12314 {
12315 return $ac_func ();
12316   ;
12317   return 0;
12318 }
12319 _ACEOF
12320 rm -f conftest.$ac_objext conftest$ac_exeext
12321 if { (ac_try="$ac_link"
12322 case "(($ac_try" in
12323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324   *) ac_try_echo=$ac_try;;
12325 esac
12326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12327   (eval "$ac_link") 2>conftest.er1
12328   ac_status=$?
12329   grep -v '^ *+' conftest.er1 >conftest.err
12330   rm -f conftest.er1
12331   cat conftest.err >&5
12332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333   (exit $ac_status); } &&
12334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12335   { (case "(($ac_try" in
12336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337   *) ac_try_echo=$ac_try;;
12338 esac
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340   (eval "$ac_try") 2>&5
12341   ac_status=$?
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); }; } &&
12344          { ac_try='test -s conftest$ac_exeext'
12345   { (case "(($ac_try" in
12346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347   *) ac_try_echo=$ac_try;;
12348 esac
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350   (eval "$ac_try") 2>&5
12351   ac_status=$?
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); }; }; then
12354   eval "$as_ac_var=yes"
12355 else
12356   echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12358
12359         eval "$as_ac_var=no"
12360 fi
12361
12362 rm -f core conftest.err conftest.$ac_objext \
12363       conftest$ac_exeext conftest.$ac_ext
12364 fi
12365 ac_res=`eval echo '${'$as_ac_var'}'`
12366                { echo "$as_me:$LINENO: result: $ac_res" >&5
12367 echo "${ECHO_T}$ac_res" >&6; }
12368 if test `eval echo '${'$as_ac_var'}'` = yes; then
12369   cat >>confdefs.h <<_ACEOF
12370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12371 _ACEOF
12372
12373 fi
12374 done
12375
12376
12377
12378
12379 for ac_func in closedir opendir readdir
12380 do
12381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12382 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12384 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12385   echo $ECHO_N "(cached) $ECHO_C" >&6
12386 else
12387   cat >conftest.$ac_ext <<_ACEOF
12388 /* confdefs.h.  */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h.  */
12393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12395 #define $ac_func innocuous_$ac_func
12396
12397 /* System header to define __stub macros and hopefully few prototypes,
12398     which can conflict with char $ac_func (); below.
12399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12400     <limits.h> exists even on freestanding compilers.  */
12401
12402 #ifdef __STDC__
12403 # include <limits.h>
12404 #else
12405 # include <assert.h>
12406 #endif
12407
12408 #undef $ac_func
12409
12410 /* Override any GCC internal prototype to avoid an error.
12411    Use char because int might match the return type of a GCC
12412    builtin and then its argument prototype would still apply.  */
12413 #ifdef __cplusplus
12414 extern "C"
12415 #endif
12416 char $ac_func ();
12417 /* The GNU C library defines this for functions which it implements
12418     to always fail with ENOSYS.  Some functions are actually named
12419     something starting with __ and the normal name is an alias.  */
12420 #if defined __stub_$ac_func || defined __stub___$ac_func
12421 choke me
12422 #endif
12423
12424 int
12425 main ()
12426 {
12427 return $ac_func ();
12428   ;
12429   return 0;
12430 }
12431 _ACEOF
12432 rm -f conftest.$ac_objext conftest$ac_exeext
12433 if { (ac_try="$ac_link"
12434 case "(($ac_try" in
12435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436   *) ac_try_echo=$ac_try;;
12437 esac
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439   (eval "$ac_link") 2>conftest.er1
12440   ac_status=$?
12441   grep -v '^ *+' conftest.er1 >conftest.err
12442   rm -f conftest.er1
12443   cat conftest.err >&5
12444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445   (exit $ac_status); } &&
12446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12447   { (case "(($ac_try" in
12448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449   *) ac_try_echo=$ac_try;;
12450 esac
12451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452   (eval "$ac_try") 2>&5
12453   ac_status=$?
12454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455   (exit $ac_status); }; } &&
12456          { ac_try='test -s conftest$ac_exeext'
12457   { (case "(($ac_try" in
12458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12459   *) ac_try_echo=$ac_try;;
12460 esac
12461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12462   (eval "$ac_try") 2>&5
12463   ac_status=$?
12464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465   (exit $ac_status); }; }; then
12466   eval "$as_ac_var=yes"
12467 else
12468   echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12470
12471         eval "$as_ac_var=no"
12472 fi
12473
12474 rm -f core conftest.err conftest.$ac_objext \
12475       conftest$ac_exeext conftest.$ac_ext
12476 fi
12477 ac_res=`eval echo '${'$as_ac_var'}'`
12478                { echo "$as_me:$LINENO: result: $ac_res" >&5
12479 echo "${ECHO_T}$ac_res" >&6; }
12480 if test `eval echo '${'$as_ac_var'}'` = yes; then
12481   cat >>confdefs.h <<_ACEOF
12482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12483 _ACEOF
12484
12485 fi
12486 done
12487
12488
12489 # Check whether --enable-shared was given.
12490 if test "${enable_shared+set}" = set; then
12491   enableval=$enable_shared; p=${PACKAGE-default}
12492     case $enableval in
12493     yes) enable_shared=yes ;;
12494     no) enable_shared=no ;;
12495     *)
12496       enable_shared=no
12497       # Look at the argument we got.  We use all the common list separators.
12498       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12499       for pkg in $enableval; do
12500         IFS="$lt_save_ifs"
12501         if test "X$pkg" = "X$p"; then
12502           enable_shared=yes
12503         fi
12504       done
12505       IFS="$lt_save_ifs"
12506       ;;
12507     esac
12508 else
12509   enable_shared=yes
12510 fi
12511
12512
12513 # Check whether --enable-static was given.
12514 if test "${enable_static+set}" = set; then
12515   enableval=$enable_static; p=${PACKAGE-default}
12516     case $enableval in
12517     yes) enable_static=yes ;;
12518     no) enable_static=no ;;
12519     *)
12520      enable_static=no
12521       # Look at the argument we got.  We use all the common list separators.
12522       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12523       for pkg in $enableval; do
12524         IFS="$lt_save_ifs"
12525         if test "X$pkg" = "X$p"; then
12526           enable_static=yes
12527         fi
12528       done
12529       IFS="$lt_save_ifs"
12530       ;;
12531     esac
12532 else
12533   enable_static=yes
12534 fi
12535
12536
12537 # Check whether --enable-fast-install was given.
12538 if test "${enable_fast_install+set}" = set; then
12539   enableval=$enable_fast_install; p=${PACKAGE-default}
12540     case $enableval in
12541     yes) enable_fast_install=yes ;;
12542     no) enable_fast_install=no ;;
12543     *)
12544       enable_fast_install=no
12545       # Look at the argument we got.  We use all the common list separators.
12546       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12547       for pkg in $enableval; do
12548         IFS="$lt_save_ifs"
12549         if test "X$pkg" = "X$p"; then
12550           enable_fast_install=yes
12551         fi
12552       done
12553       IFS="$lt_save_ifs"
12554       ;;
12555     esac
12556 else
12557   enable_fast_install=yes
12558 fi
12559
12560
12561 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12562 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12563 if test "${lt_cv_path_SED+set}" = set; then
12564   echo $ECHO_N "(cached) $ECHO_C" >&6
12565 else
12566   # Loop through the user's path and test for sed and gsed.
12567 # Then use that list of sed's as ones to test for truncation.
12568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569 for as_dir in $PATH
12570 do
12571   IFS=$as_save_IFS
12572   test -z "$as_dir" && as_dir=.
12573   for lt_ac_prog in sed gsed; do
12574     for ac_exec_ext in '' $ac_executable_extensions; do
12575       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12576         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12577       fi
12578     done
12579   done
12580 done
12581 lt_ac_max=0
12582 lt_ac_count=0
12583 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12584 # along with /bin/sed that truncates output.
12585 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12586   test ! -f $lt_ac_sed && continue
12587   cat /dev/null > conftest.in
12588   lt_ac_count=0
12589   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12590   # Check for GNU sed and select it if it is found.
12591   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12592     lt_cv_path_SED=$lt_ac_sed
12593     break
12594   fi
12595   while true; do
12596     cat conftest.in conftest.in >conftest.tmp
12597     mv conftest.tmp conftest.in
12598     cp conftest.in conftest.nl
12599     echo >>conftest.nl
12600     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12601     cmp -s conftest.out conftest.nl || break
12602     # 10000 chars as input seems more than enough
12603     test $lt_ac_count -gt 10 && break
12604     lt_ac_count=`expr $lt_ac_count + 1`
12605     if test $lt_ac_count -gt $lt_ac_max; then
12606       lt_ac_max=$lt_ac_count
12607       lt_cv_path_SED=$lt_ac_sed
12608     fi
12609   done
12610 done
12611
12612 fi
12613
12614 SED=$lt_cv_path_SED
12615 { echo "$as_me:$LINENO: result: $SED" >&5
12616 echo "${ECHO_T}$SED" >&6; }
12617
12618
12619 # Check whether --with-gnu-ld was given.
12620 if test "${with_gnu_ld+set}" = set; then
12621   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12622 else
12623   with_gnu_ld=no
12624 fi
12625
12626 ac_prog=ld
12627 if test "$GCC" = yes; then
12628   # Check if gcc -print-prog-name=ld gives a path.
12629   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12630 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12631   case $host in
12632   *-*-mingw*)
12633     # gcc leaves a trailing carriage return which upsets mingw
12634     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12635   *)
12636     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12637   esac
12638   case $ac_prog in
12639     # Accept absolute paths.
12640     [\\/]* | ?:[\\/]*)
12641       re_direlt='/[^/][^/]*/\.\./'
12642       # Canonicalize the pathname of ld
12643       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12644       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12645         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12646       done
12647       test -z "$LD" && LD="$ac_prog"
12648       ;;
12649   "")
12650     # If it fails, then pretend we aren't using GCC.
12651     ac_prog=ld
12652     ;;
12653   *)
12654     # If it is relative, then search for the first ld in PATH.
12655     with_gnu_ld=unknown
12656     ;;
12657   esac
12658 elif test "$with_gnu_ld" = yes; then
12659   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12660 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12661 else
12662   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12663 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12664 fi
12665 if test "${lt_cv_path_LD+set}" = set; then
12666   echo $ECHO_N "(cached) $ECHO_C" >&6
12667 else
12668   if test -z "$LD"; then
12669   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12670   for ac_dir in $PATH; do
12671     IFS="$lt_save_ifs"
12672     test -z "$ac_dir" && ac_dir=.
12673     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12674       lt_cv_path_LD="$ac_dir/$ac_prog"
12675       # Check to see if the program is GNU ld.  I'd rather use --version,
12676       # but apparently some variants of GNU ld only accept -v.
12677       # Break only if it was the GNU/non-GNU ld that we prefer.
12678       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12679       *GNU* | *'with BFD'*)
12680         test "$with_gnu_ld" != no && break
12681         ;;
12682       *)
12683         test "$with_gnu_ld" != yes && break
12684         ;;
12685       esac
12686     fi
12687   done
12688   IFS="$lt_save_ifs"
12689 else
12690   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12691 fi
12692 fi
12693
12694 LD="$lt_cv_path_LD"
12695 if test -n "$LD"; then
12696   { echo "$as_me:$LINENO: result: $LD" >&5
12697 echo "${ECHO_T}$LD" >&6; }
12698 else
12699   { echo "$as_me:$LINENO: result: no" >&5
12700 echo "${ECHO_T}no" >&6; }
12701 fi
12702 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12703 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12704    { (exit 1); exit 1; }; }
12705 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12706 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12707 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12708   echo $ECHO_N "(cached) $ECHO_C" >&6
12709 else
12710   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12711 case `$LD -v 2>&1 </dev/null` in
12712 *GNU* | *'with BFD'*)
12713   lt_cv_prog_gnu_ld=yes
12714   ;;
12715 *)
12716   lt_cv_prog_gnu_ld=no
12717   ;;
12718 esac
12719 fi
12720 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12721 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12722 with_gnu_ld=$lt_cv_prog_gnu_ld
12723
12724
12725 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12726 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12727 if test "${lt_cv_ld_reload_flag+set}" = set; then
12728   echo $ECHO_N "(cached) $ECHO_C" >&6
12729 else
12730   lt_cv_ld_reload_flag='-r'
12731 fi
12732 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12733 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12734 reload_flag=$lt_cv_ld_reload_flag
12735 case $reload_flag in
12736 "" | " "*) ;;
12737 *) reload_flag=" $reload_flag" ;;
12738 esac
12739 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12740 case $host_os in
12741   darwin*)
12742     if test "$GCC" = yes; then
12743       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12744     else
12745       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12746     fi
12747     ;;
12748 esac
12749
12750 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12751 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12752 if test "${lt_cv_deplibs_check_method+set}" = set; then
12753   echo $ECHO_N "(cached) $ECHO_C" >&6
12754 else
12755   lt_cv_file_magic_cmd='$MAGIC_CMD'
12756 lt_cv_file_magic_test_file=
12757 lt_cv_deplibs_check_method='unknown'
12758 # Need to set the preceding variable on all platforms that support
12759 # interlibrary dependencies.
12760 # 'none' -- dependencies not supported.
12761 # `unknown' -- same as none, but documents that we really don't know.
12762 # 'pass_all' -- all dependencies passed with no checks.
12763 # 'test_compile' -- check by making test program.
12764 # 'file_magic [[regex]]' -- check by looking for files in library path
12765 # which responds to the $file_magic_cmd with a given extended regex.
12766 # If you have `file' or equivalent on your system and you're not sure
12767 # whether `pass_all' will *always* work, you probably want this one.
12768
12769 case $host_os in
12770 aix4* | aix5*)
12771   lt_cv_deplibs_check_method=pass_all
12772   ;;
12773
12774 beos*)
12775   lt_cv_deplibs_check_method=pass_all
12776   ;;
12777
12778 bsdi[45]*)
12779   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12780   lt_cv_file_magic_cmd='/usr/bin/file -L'
12781   lt_cv_file_magic_test_file=/shlib/libc.so
12782   ;;
12783
12784 cygwin*)
12785   # func_win32_libid is a shell function defined in ltmain.sh
12786   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12787   lt_cv_file_magic_cmd='func_win32_libid'
12788   ;;
12789
12790 mingw* | pw32*)
12791   # Base MSYS/MinGW do not provide the 'file' command needed by
12792   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12793   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12794   lt_cv_file_magic_cmd='$OBJDUMP -f'
12795   ;;
12796
12797 darwin* | rhapsody*)
12798   lt_cv_deplibs_check_method=pass_all
12799   ;;
12800
12801 freebsd* | kfreebsd*-gnu | dragonfly*)
12802   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12803     case $host_cpu in
12804     i*86 )
12805       # Not sure whether the presence of OpenBSD here was a mistake.
12806       # Let's accept both of them until this is cleared up.
12807       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12808       lt_cv_file_magic_cmd=/usr/bin/file
12809       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12810       ;;
12811     esac
12812   else
12813     lt_cv_deplibs_check_method=pass_all
12814   fi
12815   ;;
12816
12817 gnu*)
12818   lt_cv_deplibs_check_method=pass_all
12819   ;;
12820
12821 hpux10.20* | hpux11*)
12822   lt_cv_file_magic_cmd=/usr/bin/file
12823   case $host_cpu in
12824   ia64*)
12825     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12826     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12827     ;;
12828   hppa*64*)
12829     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]'
12830     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12831     ;;
12832   *)
12833     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12834     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12835     ;;
12836   esac
12837   ;;
12838
12839 interix3*)
12840   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12841   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12842   ;;
12843
12844 irix5* | irix6* | nonstopux*)
12845   case $LD in
12846   *-32|*"-32 ") libmagic=32-bit;;
12847   *-n32|*"-n32 ") libmagic=N32;;
12848   *-64|*"-64 ") libmagic=64-bit;;
12849   *) libmagic=never-match;;
12850   esac
12851   lt_cv_deplibs_check_method=pass_all
12852   ;;
12853
12854 # This must be Linux ELF.
12855 linux*)
12856   lt_cv_deplibs_check_method=pass_all
12857   ;;
12858
12859 netbsd*)
12860   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12861     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12862   else
12863     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12864   fi
12865   ;;
12866
12867 newos6*)
12868   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12869   lt_cv_file_magic_cmd=/usr/bin/file
12870   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12871   ;;
12872
12873 nto-qnx*)
12874   lt_cv_deplibs_check_method=unknown
12875   ;;
12876
12877 openbsd*)
12878   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12879     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12880   else
12881     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12882   fi
12883   ;;
12884
12885 osf3* | osf4* | osf5*)
12886   lt_cv_deplibs_check_method=pass_all
12887   ;;
12888
12889 solaris*)
12890   lt_cv_deplibs_check_method=pass_all
12891   ;;
12892
12893 sysv4 | sysv4.3*)
12894   case $host_vendor in
12895   motorola)
12896     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]'
12897     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12898     ;;
12899   ncr)
12900     lt_cv_deplibs_check_method=pass_all
12901     ;;
12902   sequent)
12903     lt_cv_file_magic_cmd='/bin/file'
12904     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12905     ;;
12906   sni)
12907     lt_cv_file_magic_cmd='/bin/file'
12908     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12909     lt_cv_file_magic_test_file=/lib/libc.so
12910     ;;
12911   siemens)
12912     lt_cv_deplibs_check_method=pass_all
12913     ;;
12914   pc)
12915     lt_cv_deplibs_check_method=pass_all
12916     ;;
12917   esac
12918   ;;
12919
12920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12921   lt_cv_deplibs_check_method=pass_all
12922   ;;
12923 esac
12924
12925 fi
12926 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12927 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12928 file_magic_cmd=$lt_cv_file_magic_cmd
12929 deplibs_check_method=$lt_cv_deplibs_check_method
12930 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12931
12932
12933
12934 # If no C compiler was specified, use CC.
12935 LTCC=${LTCC-"$CC"}
12936
12937 # If no C compiler flags were specified, use CFLAGS.
12938 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12939
12940 # Allow CC to be a program name with arguments.
12941 compiler=$CC
12942
12943 # Check whether --enable-libtool-lock was given.
12944 if test "${enable_libtool_lock+set}" = set; then
12945   enableval=$enable_libtool_lock;
12946 fi
12947
12948 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12949
12950 # Some flags need to be propagated to the compiler or linker for good
12951 # libtool support.
12952 case $host in
12953 ia64-*-hpux*)
12954   # Find out which ABI we are using.
12955   echo 'int i;' > conftest.$ac_ext
12956   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957   (eval $ac_compile) 2>&5
12958   ac_status=$?
12959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); }; then
12961     case `/usr/bin/file conftest.$ac_objext` in
12962     *ELF-32*)
12963       HPUX_IA64_MODE="32"
12964       ;;
12965     *ELF-64*)
12966       HPUX_IA64_MODE="64"
12967       ;;
12968     esac
12969   fi
12970   rm -rf conftest*
12971   ;;
12972 *-*-irix6*)
12973   # Find out which ABI we are using.
12974   echo '#line 12974 "configure"' > conftest.$ac_ext
12975   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12976   (eval $ac_compile) 2>&5
12977   ac_status=$?
12978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); }; then
12980    if test "$lt_cv_prog_gnu_ld" = yes; then
12981     case `/usr/bin/file conftest.$ac_objext` in
12982     *32-bit*)
12983       LD="${LD-ld} -melf32bsmip"
12984       ;;
12985     *N32*)
12986       LD="${LD-ld} -melf32bmipn32"
12987       ;;
12988     *64-bit*)
12989       LD="${LD-ld} -melf64bmip"
12990       ;;
12991     esac
12992    else
12993     case `/usr/bin/file conftest.$ac_objext` in
12994     *32-bit*)
12995       LD="${LD-ld} -32"
12996       ;;
12997     *N32*)
12998       LD="${LD-ld} -n32"
12999       ;;
13000     *64-bit*)
13001       LD="${LD-ld} -64"
13002       ;;
13003     esac
13004    fi
13005   fi
13006   rm -rf conftest*
13007   ;;
13008
13009 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13010   # Find out which ABI we are using.
13011   echo 'int i;' > conftest.$ac_ext
13012   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13013   (eval $ac_compile) 2>&5
13014   ac_status=$?
13015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016   (exit $ac_status); }; then
13017     case `/usr/bin/file conftest.o` in
13018     *32-bit*)
13019       case $host in
13020         x86_64-*linux*)
13021           LD="${LD-ld} -m elf_i386"
13022           ;;
13023         ppc64-*linux*|powerpc64-*linux*)
13024           LD="${LD-ld} -m elf32ppclinux"
13025           ;;
13026         s390x-*linux*)
13027           LD="${LD-ld} -m elf_s390"
13028           ;;
13029         sparc64-*linux*)
13030           LD="${LD-ld} -m elf32_sparc"
13031           ;;
13032       esac
13033       ;;
13034     *64-bit*)
13035       case $host in
13036         x86_64-*linux*)
13037           LD="${LD-ld} -m elf_x86_64"
13038           ;;
13039         ppc*-*linux*|powerpc*-*linux*)
13040           LD="${LD-ld} -m elf64ppc"
13041           ;;
13042         s390*-*linux*)
13043           LD="${LD-ld} -m elf64_s390"
13044           ;;
13045         sparc*-*linux*)
13046           LD="${LD-ld} -m elf64_sparc"
13047           ;;
13048       esac
13049       ;;
13050     esac
13051   fi
13052   rm -rf conftest*
13053   ;;
13054
13055 *-*-sco3.2v5*)
13056   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13057   SAVE_CFLAGS="$CFLAGS"
13058   CFLAGS="$CFLAGS -belf"
13059   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13060 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13061 if test "${lt_cv_cc_needs_belf+set}" = set; then
13062   echo $ECHO_N "(cached) $ECHO_C" >&6
13063 else
13064   ac_ext=c
13065 ac_cpp='$CPP $CPPFLAGS'
13066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13069
13070      cat >conftest.$ac_ext <<_ACEOF
13071 /* confdefs.h.  */
13072 _ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h.  */
13076
13077 int
13078 main ()
13079 {
13080
13081   ;
13082   return 0;
13083 }
13084 _ACEOF
13085 rm -f conftest.$ac_objext conftest$ac_exeext
13086 if { (ac_try="$ac_link"
13087 case "(($ac_try" in
13088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089   *) ac_try_echo=$ac_try;;
13090 esac
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092   (eval "$ac_link") 2>conftest.er1
13093   ac_status=$?
13094   grep -v '^ *+' conftest.er1 >conftest.err
13095   rm -f conftest.er1
13096   cat conftest.err >&5
13097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098   (exit $ac_status); } &&
13099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13100   { (case "(($ac_try" in
13101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102   *) ac_try_echo=$ac_try;;
13103 esac
13104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13105   (eval "$ac_try") 2>&5
13106   ac_status=$?
13107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108   (exit $ac_status); }; } &&
13109          { ac_try='test -s conftest$ac_exeext'
13110   { (case "(($ac_try" in
13111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112   *) ac_try_echo=$ac_try;;
13113 esac
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115   (eval "$ac_try") 2>&5
13116   ac_status=$?
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); }; }; then
13119   lt_cv_cc_needs_belf=yes
13120 else
13121   echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13123
13124         lt_cv_cc_needs_belf=no
13125 fi
13126
13127 rm -f core conftest.err conftest.$ac_objext \
13128       conftest$ac_exeext conftest.$ac_ext
13129      ac_ext=c
13130 ac_cpp='$CPP $CPPFLAGS'
13131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13134
13135 fi
13136 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13137 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13138   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13139     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13140     CFLAGS="$SAVE_CFLAGS"
13141   fi
13142   ;;
13143 sparc*-*solaris*)
13144   # Find out which ABI we are using.
13145   echo 'int i;' > conftest.$ac_ext
13146   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13147   (eval $ac_compile) 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); }; then
13151     case `/usr/bin/file conftest.o` in
13152     *64-bit*)
13153       case $lt_cv_prog_gnu_ld in
13154       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13155       *)    LD="${LD-ld} -64" ;;
13156       esac
13157       ;;
13158     esac
13159   fi
13160   rm -rf conftest*
13161   ;;
13162
13163
13164 esac
13165
13166 need_locks="$enable_libtool_lock"
13167
13168
13169
13170
13171 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13172     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13173     (test "X$CXX" != "Xg++"))) ; then
13174   ac_ext=cpp
13175 ac_cpp='$CXXCPP $CPPFLAGS'
13176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13179 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13180 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13181 if test -z "$CXXCPP"; then
13182   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13183   echo $ECHO_N "(cached) $ECHO_C" >&6
13184 else
13185       # Double quotes because CXXCPP needs to be expanded
13186     for CXXCPP in "$CXX -E" "/lib/cpp"
13187     do
13188       ac_preproc_ok=false
13189 for ac_cxx_preproc_warn_flag in '' yes
13190 do
13191   # Use a header file that comes with gcc, so configuring glibc
13192   # with a fresh cross-compiler works.
13193   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13194   # <limits.h> exists even on freestanding compilers.
13195   # On the NeXT, cc -E runs the code through the compiler's parser,
13196   # not just through cpp. "Syntax error" is here to catch this case.
13197   cat >conftest.$ac_ext <<_ACEOF
13198 /* confdefs.h.  */
13199 _ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h.  */
13203 #ifdef __STDC__
13204 # include <limits.h>
13205 #else
13206 # include <assert.h>
13207 #endif
13208                      Syntax error
13209 _ACEOF
13210 if { (ac_try="$ac_cpp conftest.$ac_ext"
13211 case "(($ac_try" in
13212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213   *) ac_try_echo=$ac_try;;
13214 esac
13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13217   ac_status=$?
13218   grep -v '^ *+' conftest.er1 >conftest.err
13219   rm -f conftest.er1
13220   cat conftest.err >&5
13221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222   (exit $ac_status); } >/dev/null; then
13223   if test -s conftest.err; then
13224     ac_cpp_err=$ac_cxx_preproc_warn_flag
13225     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13226   else
13227     ac_cpp_err=
13228   fi
13229 else
13230   ac_cpp_err=yes
13231 fi
13232 if test -z "$ac_cpp_err"; then
13233   :
13234 else
13235   echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13237
13238   # Broken: fails on valid input.
13239 continue
13240 fi
13241
13242 rm -f conftest.err conftest.$ac_ext
13243
13244   # OK, works on sane cases.  Now check whether nonexistent headers
13245   # can be detected and how.
13246   cat >conftest.$ac_ext <<_ACEOF
13247 /* confdefs.h.  */
13248 _ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h.  */
13252 #include <ac_nonexistent.h>
13253 _ACEOF
13254 if { (ac_try="$ac_cpp conftest.$ac_ext"
13255 case "(($ac_try" in
13256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257   *) ac_try_echo=$ac_try;;
13258 esac
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13261   ac_status=$?
13262   grep -v '^ *+' conftest.er1 >conftest.err
13263   rm -f conftest.er1
13264   cat conftest.err >&5
13265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266   (exit $ac_status); } >/dev/null; then
13267   if test -s conftest.err; then
13268     ac_cpp_err=$ac_cxx_preproc_warn_flag
13269     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13270   else
13271     ac_cpp_err=
13272   fi
13273 else
13274   ac_cpp_err=yes
13275 fi
13276 if test -z "$ac_cpp_err"; then
13277   # Broken: success on invalid input.
13278 continue
13279 else
13280   echo "$as_me: failed program was:" >&5
13281 sed 's/^/| /' conftest.$ac_ext >&5
13282
13283   # Passes both tests.
13284 ac_preproc_ok=:
13285 break
13286 fi
13287
13288 rm -f conftest.err conftest.$ac_ext
13289
13290 done
13291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13292 rm -f conftest.err conftest.$ac_ext
13293 if $ac_preproc_ok; then
13294   break
13295 fi
13296
13297     done
13298     ac_cv_prog_CXXCPP=$CXXCPP
13299
13300 fi
13301   CXXCPP=$ac_cv_prog_CXXCPP
13302 else
13303   ac_cv_prog_CXXCPP=$CXXCPP
13304 fi
13305 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13306 echo "${ECHO_T}$CXXCPP" >&6; }
13307 ac_preproc_ok=false
13308 for ac_cxx_preproc_warn_flag in '' yes
13309 do
13310   # Use a header file that comes with gcc, so configuring glibc
13311   # with a fresh cross-compiler works.
13312   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13313   # <limits.h> exists even on freestanding compilers.
13314   # On the NeXT, cc -E runs the code through the compiler's parser,
13315   # not just through cpp. "Syntax error" is here to catch this case.
13316   cat >conftest.$ac_ext <<_ACEOF
13317 /* confdefs.h.  */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h.  */
13322 #ifdef __STDC__
13323 # include <limits.h>
13324 #else
13325 # include <assert.h>
13326 #endif
13327                      Syntax error
13328 _ACEOF
13329 if { (ac_try="$ac_cpp conftest.$ac_ext"
13330 case "(($ac_try" in
13331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332   *) ac_try_echo=$ac_try;;
13333 esac
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13336   ac_status=$?
13337   grep -v '^ *+' conftest.er1 >conftest.err
13338   rm -f conftest.er1
13339   cat conftest.err >&5
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); } >/dev/null; then
13342   if test -s conftest.err; then
13343     ac_cpp_err=$ac_cxx_preproc_warn_flag
13344     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13345   else
13346     ac_cpp_err=
13347   fi
13348 else
13349   ac_cpp_err=yes
13350 fi
13351 if test -z "$ac_cpp_err"; then
13352   :
13353 else
13354   echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13356
13357   # Broken: fails on valid input.
13358 continue
13359 fi
13360
13361 rm -f conftest.err conftest.$ac_ext
13362
13363   # OK, works on sane cases.  Now check whether nonexistent headers
13364   # can be detected and how.
13365   cat >conftest.$ac_ext <<_ACEOF
13366 /* confdefs.h.  */
13367 _ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h.  */
13371 #include <ac_nonexistent.h>
13372 _ACEOF
13373 if { (ac_try="$ac_cpp conftest.$ac_ext"
13374 case "(($ac_try" in
13375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376   *) ac_try_echo=$ac_try;;
13377 esac
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13380   ac_status=$?
13381   grep -v '^ *+' conftest.er1 >conftest.err
13382   rm -f conftest.er1
13383   cat conftest.err >&5
13384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385   (exit $ac_status); } >/dev/null; then
13386   if test -s conftest.err; then
13387     ac_cpp_err=$ac_cxx_preproc_warn_flag
13388     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13389   else
13390     ac_cpp_err=
13391   fi
13392 else
13393   ac_cpp_err=yes
13394 fi
13395 if test -z "$ac_cpp_err"; then
13396   # Broken: success on invalid input.
13397 continue
13398 else
13399   echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13401
13402   # Passes both tests.
13403 ac_preproc_ok=:
13404 break
13405 fi
13406
13407 rm -f conftest.err conftest.$ac_ext
13408
13409 done
13410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13411 rm -f conftest.err conftest.$ac_ext
13412 if $ac_preproc_ok; then
13413   :
13414 else
13415   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13416 See \`config.log' for more details." >&5
13417 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13418 See \`config.log' for more details." >&2;}
13419    { (exit 1); exit 1; }; }
13420 fi
13421
13422 ac_ext=cpp
13423 ac_cpp='$CXXCPP $CPPFLAGS'
13424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13427
13428 fi
13429
13430
13431 ac_ext=f
13432 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13433 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13434 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13435 if test -n "$ac_tool_prefix"; then
13436   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13437   do
13438     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13439 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13442 if test "${ac_cv_prog_F77+set}" = set; then
13443   echo $ECHO_N "(cached) $ECHO_C" >&6
13444 else
13445   if test -n "$F77"; then
13446   ac_cv_prog_F77="$F77" # Let the user override the test.
13447 else
13448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449 for as_dir in $PATH
13450 do
13451   IFS=$as_save_IFS
13452   test -z "$as_dir" && as_dir=.
13453   for ac_exec_ext in '' $ac_executable_extensions; do
13454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13455     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13457     break 2
13458   fi
13459 done
13460 done
13461 IFS=$as_save_IFS
13462
13463 fi
13464 fi
13465 F77=$ac_cv_prog_F77
13466 if test -n "$F77"; then
13467   { echo "$as_me:$LINENO: result: $F77" >&5
13468 echo "${ECHO_T}$F77" >&6; }
13469 else
13470   { echo "$as_me:$LINENO: result: no" >&5
13471 echo "${ECHO_T}no" >&6; }
13472 fi
13473
13474
13475     test -n "$F77" && break
13476   done
13477 fi
13478 if test -z "$F77"; then
13479   ac_ct_F77=$F77
13480   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13481 do
13482   # Extract the first word of "$ac_prog", so it can be a program name with args.
13483 set dummy $ac_prog; ac_word=$2
13484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13486 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13487   echo $ECHO_N "(cached) $ECHO_C" >&6
13488 else
13489   if test -n "$ac_ct_F77"; then
13490   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13491 else
13492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13493 for as_dir in $PATH
13494 do
13495   IFS=$as_save_IFS
13496   test -z "$as_dir" && as_dir=.
13497   for ac_exec_ext in '' $ac_executable_extensions; do
13498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13499     ac_cv_prog_ac_ct_F77="$ac_prog"
13500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13501     break 2
13502   fi
13503 done
13504 done
13505 IFS=$as_save_IFS
13506
13507 fi
13508 fi
13509 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13510 if test -n "$ac_ct_F77"; then
13511   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13512 echo "${ECHO_T}$ac_ct_F77" >&6; }
13513 else
13514   { echo "$as_me:$LINENO: result: no" >&5
13515 echo "${ECHO_T}no" >&6; }
13516 fi
13517
13518
13519   test -n "$ac_ct_F77" && break
13520 done
13521
13522   if test "x$ac_ct_F77" = x; then
13523     F77=""
13524   else
13525     case $cross_compiling:$ac_tool_warned in
13526 yes:)
13527 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13528 whose name does not start with the host triplet.  If you think this
13529 configuration is useful to you, please write to autoconf@gnu.org." >&5
13530 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13531 whose name does not start with the host triplet.  If you think this
13532 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13533 ac_tool_warned=yes ;;
13534 esac
13535     F77=$ac_ct_F77
13536   fi
13537 fi
13538
13539
13540 # Provide some information about the compiler.
13541 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13542 ac_compiler=`set X $ac_compile; echo $2`
13543 { (ac_try="$ac_compiler --version >&5"
13544 case "(($ac_try" in
13545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546   *) ac_try_echo=$ac_try;;
13547 esac
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549   (eval "$ac_compiler --version >&5") 2>&5
13550   ac_status=$?
13551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552   (exit $ac_status); }
13553 { (ac_try="$ac_compiler -v >&5"
13554 case "(($ac_try" in
13555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556   *) ac_try_echo=$ac_try;;
13557 esac
13558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559   (eval "$ac_compiler -v >&5") 2>&5
13560   ac_status=$?
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); }
13563 { (ac_try="$ac_compiler -V >&5"
13564 case "(($ac_try" in
13565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566   *) ac_try_echo=$ac_try;;
13567 esac
13568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13569   (eval "$ac_compiler -V >&5") 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); }
13573 rm -f a.out
13574
13575 # If we don't use `.F' as extension, the preprocessor is not run on the
13576 # input file.  (Note that this only needs to work for GNU compilers.)
13577 ac_save_ext=$ac_ext
13578 ac_ext=F
13579 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13580 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13581 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13582   echo $ECHO_N "(cached) $ECHO_C" >&6
13583 else
13584   cat >conftest.$ac_ext <<_ACEOF
13585       program main
13586 #ifndef __GNUC__
13587        choke me
13588 #endif
13589
13590       end
13591 _ACEOF
13592 rm -f conftest.$ac_objext
13593 if { (ac_try="$ac_compile"
13594 case "(($ac_try" in
13595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596   *) ac_try_echo=$ac_try;;
13597 esac
13598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599   (eval "$ac_compile") 2>conftest.er1
13600   ac_status=$?
13601   grep -v '^ *+' conftest.er1 >conftest.err
13602   rm -f conftest.er1
13603   cat conftest.err >&5
13604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605   (exit $ac_status); } &&
13606          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13607   { (case "(($ac_try" in
13608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609   *) ac_try_echo=$ac_try;;
13610 esac
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612   (eval "$ac_try") 2>&5
13613   ac_status=$?
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); }; } &&
13616          { ac_try='test -s conftest.$ac_objext'
13617   { (case "(($ac_try" in
13618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619   *) ac_try_echo=$ac_try;;
13620 esac
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622   (eval "$ac_try") 2>&5
13623   ac_status=$?
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); }; }; then
13626   ac_compiler_gnu=yes
13627 else
13628   echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13630
13631         ac_compiler_gnu=no
13632 fi
13633
13634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13635 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13636
13637 fi
13638 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13639 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13640 ac_ext=$ac_save_ext
13641 ac_test_FFLAGS=${FFLAGS+set}
13642 ac_save_FFLAGS=$FFLAGS
13643 FFLAGS=
13644 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13645 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13646 if test "${ac_cv_prog_f77_g+set}" = set; then
13647   echo $ECHO_N "(cached) $ECHO_C" >&6
13648 else
13649   FFLAGS=-g
13650 cat >conftest.$ac_ext <<_ACEOF
13651       program main
13652
13653       end
13654 _ACEOF
13655 rm -f conftest.$ac_objext
13656 if { (ac_try="$ac_compile"
13657 case "(($ac_try" in
13658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659   *) ac_try_echo=$ac_try;;
13660 esac
13661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662   (eval "$ac_compile") 2>conftest.er1
13663   ac_status=$?
13664   grep -v '^ *+' conftest.er1 >conftest.err
13665   rm -f conftest.er1
13666   cat conftest.err >&5
13667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); } &&
13669          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13670   { (case "(($ac_try" in
13671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13672   *) ac_try_echo=$ac_try;;
13673 esac
13674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13675   (eval "$ac_try") 2>&5
13676   ac_status=$?
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); }; } &&
13679          { ac_try='test -s conftest.$ac_objext'
13680   { (case "(($ac_try" in
13681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682   *) ac_try_echo=$ac_try;;
13683 esac
13684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685   (eval "$ac_try") 2>&5
13686   ac_status=$?
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); }; }; then
13689   ac_cv_prog_f77_g=yes
13690 else
13691   echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13693
13694         ac_cv_prog_f77_g=no
13695 fi
13696
13697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13698
13699 fi
13700 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13701 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13702 if test "$ac_test_FFLAGS" = set; then
13703   FFLAGS=$ac_save_FFLAGS
13704 elif test $ac_cv_prog_f77_g = yes; then
13705   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13706     FFLAGS="-g -O2"
13707   else
13708     FFLAGS="-g"
13709   fi
13710 else
13711   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13712     FFLAGS="-O2"
13713   else
13714     FFLAGS=
13715   fi
13716 fi
13717
13718 G77=`test $ac_compiler_gnu = yes && echo yes`
13719 ac_ext=c
13720 ac_cpp='$CPP $CPPFLAGS'
13721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13724
13725
13726
13727 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13728
13729 # find the maximum length of command line arguments
13730 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13731 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13732 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13733   echo $ECHO_N "(cached) $ECHO_C" >&6
13734 else
13735     i=0
13736   teststring="ABCD"
13737
13738   case $build_os in
13739   msdosdjgpp*)
13740     # On DJGPP, this test can blow up pretty badly due to problems in libc
13741     # (any single argument exceeding 2000 bytes causes a buffer overrun
13742     # during glob expansion).  Even if it were fixed, the result of this
13743     # check would be larger than it should be.
13744     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13745     ;;
13746
13747   gnu*)
13748     # Under GNU Hurd, this test is not required because there is
13749     # no limit to the length of command line arguments.
13750     # Libtool will interpret -1 as no limit whatsoever
13751     lt_cv_sys_max_cmd_len=-1;
13752     ;;
13753
13754   cygwin* | mingw*)
13755     # On Win9x/ME, this test blows up -- it succeeds, but takes
13756     # about 5 minutes as the teststring grows exponentially.
13757     # Worse, since 9x/ME are not pre-emptively multitasking,
13758     # you end up with a "frozen" computer, even though with patience
13759     # the test eventually succeeds (with a max line length of 256k).
13760     # Instead, let's just punt: use the minimum linelength reported by
13761     # all of the supported platforms: 8192 (on NT/2K/XP).
13762     lt_cv_sys_max_cmd_len=8192;
13763     ;;
13764
13765   amigaos*)
13766     # On AmigaOS with pdksh, this test takes hours, literally.
13767     # So we just punt and use a minimum line length of 8192.
13768     lt_cv_sys_max_cmd_len=8192;
13769     ;;
13770
13771   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13772     # This has been around since 386BSD, at least.  Likely further.
13773     if test -x /sbin/sysctl; then
13774       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13775     elif test -x /usr/sbin/sysctl; then
13776       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13777     else
13778       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13779     fi
13780     # And add a safety zone
13781     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13782     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13783     ;;
13784
13785   interix*)
13786     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13787     lt_cv_sys_max_cmd_len=196608
13788     ;;
13789
13790   osf*)
13791     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13792     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13793     # nice to cause kernel panics so lets avoid the loop below.
13794     # First set a reasonable default.
13795     lt_cv_sys_max_cmd_len=16384
13796     #
13797     if test -x /sbin/sysconfig; then
13798       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13799         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13800       esac
13801     fi
13802     ;;
13803   sco3.2v5*)
13804     lt_cv_sys_max_cmd_len=102400
13805     ;;
13806   sysv5* | sco5v6* | sysv4.2uw2*)
13807     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13808     if test -n "$kargmax"; then
13809       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13810     else
13811       lt_cv_sys_max_cmd_len=32768
13812     fi
13813     ;;
13814   *)
13815     # If test is not a shell built-in, we'll probably end up computing a
13816     # maximum length that is only half of the actual maximum length, but
13817     # we can't tell.
13818     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13819     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13820                = "XX$teststring") >/dev/null 2>&1 &&
13821             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13822             lt_cv_sys_max_cmd_len=$new_result &&
13823             test $i != 17 # 1/2 MB should be enough
13824     do
13825       i=`expr $i + 1`
13826       teststring=$teststring$teststring
13827     done
13828     teststring=
13829     # Add a significant safety factor because C++ compilers can tack on massive
13830     # amounts of additional arguments before passing them to the linker.
13831     # It appears as though 1/2 is a usable value.
13832     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13833     ;;
13834   esac
13835
13836 fi
13837
13838 if test -n $lt_cv_sys_max_cmd_len ; then
13839   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13840 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13841 else
13842   { echo "$as_me:$LINENO: result: none" >&5
13843 echo "${ECHO_T}none" >&6; }
13844 fi
13845
13846
13847
13848
13849 # Check for command to grab the raw symbol name followed by C symbol from nm.
13850 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13851 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13852 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13853   echo $ECHO_N "(cached) $ECHO_C" >&6
13854 else
13855
13856 # These are sane defaults that work on at least a few old systems.
13857 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13858
13859 # Character class describing NM global symbol codes.
13860 symcode='[BCDEGRST]'
13861
13862 # Regexp to match symbols that can be accessed directly from C.
13863 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13864
13865 # Transform an extracted symbol line into a proper C declaration
13866 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13867
13868 # Transform an extracted symbol line into symbol name and symbol address
13869 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'"
13870
13871 # Define system-specific variables.
13872 case $host_os in
13873 aix*)
13874   symcode='[BCDT]'
13875   ;;
13876 cygwin* | mingw* | pw32*)
13877   symcode='[ABCDGISTW]'
13878   ;;
13879 hpux*) # Its linker distinguishes data from code symbols
13880   if test "$host_cpu" = ia64; then
13881     symcode='[ABCDEGRST]'
13882   fi
13883   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13884   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'"
13885   ;;
13886 linux*)
13887   if test "$host_cpu" = ia64; then
13888     symcode='[ABCDGIRSTW]'
13889     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13890     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'"
13891   fi
13892   ;;
13893 irix* | nonstopux*)
13894   symcode='[BCDEGRST]'
13895   ;;
13896 osf*)
13897   symcode='[BCDEGQRST]'
13898   ;;
13899 solaris*)
13900   symcode='[BDRT]'
13901   ;;
13902 sco3.2v5*)
13903   symcode='[DT]'
13904   ;;
13905 sysv4.2uw2*)
13906   symcode='[DT]'
13907   ;;
13908 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13909   symcode='[ABDT]'
13910   ;;
13911 sysv4)
13912   symcode='[DFNSTU]'
13913   ;;
13914 esac
13915
13916 # Handle CRLF in mingw tool chain
13917 opt_cr=
13918 case $build_os in
13919 mingw*)
13920   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13921   ;;
13922 esac
13923
13924 # If we're using GNU nm, then use its standard symbol codes.
13925 case `$NM -V 2>&1` in
13926 *GNU* | *'with BFD'*)
13927   symcode='[ABCDGIRSTW]' ;;
13928 esac
13929
13930 # Try without a prefix undercore, then with it.
13931 for ac_symprfx in "" "_"; do
13932
13933   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13934   symxfrm="\\1 $ac_symprfx\\2 \\2"
13935
13936   # Write the raw and C identifiers.
13937   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13938
13939   # Check to see that the pipe works correctly.
13940   pipe_works=no
13941
13942   rm -f conftest*
13943   cat > conftest.$ac_ext <<EOF
13944 #ifdef __cplusplus
13945 extern "C" {
13946 #endif
13947 char nm_test_var;
13948 void nm_test_func(){}
13949 #ifdef __cplusplus
13950 }
13951 #endif
13952 int main(){nm_test_var='a';nm_test_func();return(0);}
13953 EOF
13954
13955   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13956   (eval $ac_compile) 2>&5
13957   ac_status=$?
13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); }; then
13960     # Now try to grab the symbols.
13961     nlist=conftest.nm
13962     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13963   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13964   ac_status=$?
13965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966   (exit $ac_status); } && test -s "$nlist"; then
13967       # Try sorting and uniquifying the output.
13968       if sort "$nlist" | uniq > "$nlist"T; then
13969         mv -f "$nlist"T "$nlist"
13970       else
13971         rm -f "$nlist"T
13972       fi
13973
13974       # Make sure that we snagged all the symbols we need.
13975       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13976         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13977           cat <<EOF > conftest.$ac_ext
13978 #ifdef __cplusplus
13979 extern "C" {
13980 #endif
13981
13982 EOF
13983           # Now generate the symbol file.
13984           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13985
13986           cat <<EOF >> conftest.$ac_ext
13987 #if defined (__STDC__) && __STDC__
13988 # define lt_ptr_t void *
13989 #else
13990 # define lt_ptr_t char *
13991 # define const
13992 #endif
13993
13994 /* The mapping between symbol names and symbols. */
13995 const struct {
13996   const char *name;
13997   lt_ptr_t address;
13998 }
13999 lt_preloaded_symbols[] =
14000 {
14001 EOF
14002           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14003           cat <<\EOF >> conftest.$ac_ext
14004   {0, (lt_ptr_t) 0}
14005 };
14006
14007 #ifdef __cplusplus
14008 }
14009 #endif
14010 EOF
14011           # Now try linking the two files.
14012           mv conftest.$ac_objext conftstm.$ac_objext
14013           lt_save_LIBS="$LIBS"
14014           lt_save_CFLAGS="$CFLAGS"
14015           LIBS="conftstm.$ac_objext"
14016           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14017           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14018   (eval $ac_link) 2>&5
14019   ac_status=$?
14020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021   (exit $ac_status); } && test -s conftest${ac_exeext}; then
14022             pipe_works=yes
14023           fi
14024           LIBS="$lt_save_LIBS"
14025           CFLAGS="$lt_save_CFLAGS"
14026         else
14027           echo "cannot find nm_test_func in $nlist" >&5
14028         fi
14029       else
14030         echo "cannot find nm_test_var in $nlist" >&5
14031       fi
14032     else
14033       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14034     fi
14035   else
14036     echo "$progname: failed program was:" >&5
14037     cat conftest.$ac_ext >&5
14038   fi
14039   rm -f conftest* conftst*
14040
14041   # Do not use the global_symbol_pipe unless it works.
14042   if test "$pipe_works" = yes; then
14043     break
14044   else
14045     lt_cv_sys_global_symbol_pipe=
14046   fi
14047 done
14048
14049 fi
14050
14051 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14052   lt_cv_sys_global_symbol_to_cdecl=
14053 fi
14054 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14055   { echo "$as_me:$LINENO: result: failed" >&5
14056 echo "${ECHO_T}failed" >&6; }
14057 else
14058   { echo "$as_me:$LINENO: result: ok" >&5
14059 echo "${ECHO_T}ok" >&6; }
14060 fi
14061
14062 { echo "$as_me:$LINENO: checking for objdir" >&5
14063 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14064 if test "${lt_cv_objdir+set}" = set; then
14065   echo $ECHO_N "(cached) $ECHO_C" >&6
14066 else
14067   rm -f .libs 2>/dev/null
14068 mkdir .libs 2>/dev/null
14069 if test -d .libs; then
14070   lt_cv_objdir=.libs
14071 else
14072   # MS-DOS does not allow filenames that begin with a dot.
14073   lt_cv_objdir=_libs
14074 fi
14075 rmdir .libs 2>/dev/null
14076 fi
14077 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14078 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14079 objdir=$lt_cv_objdir
14080
14081
14082
14083
14084
14085 case $host_os in
14086 aix3*)
14087   # AIX sometimes has problems with the GCC collect2 program.  For some
14088   # reason, if we set the COLLECT_NAMES environment variable, the problems
14089   # vanish in a puff of smoke.
14090   if test "X${COLLECT_NAMES+set}" != Xset; then
14091     COLLECT_NAMES=
14092     export COLLECT_NAMES
14093   fi
14094   ;;
14095 esac
14096
14097 # Sed substitution that helps us do robust quoting.  It backslashifies
14098 # metacharacters that are still active within double-quoted strings.
14099 Xsed='sed -e 1s/^X//'
14100 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14101
14102 # Same as above, but do not quote variable references.
14103 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14104
14105 # Sed substitution to delay expansion of an escaped shell variable in a
14106 # double_quote_subst'ed string.
14107 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14108
14109 # Sed substitution to avoid accidental globbing in evaled expressions
14110 no_glob_subst='s/\*/\\\*/g'
14111
14112 # Constants:
14113 rm="rm -f"
14114
14115 # Global variables:
14116 default_ofile=mklib
14117 can_build_shared=yes
14118
14119 # All known linkers require a `.a' archive for static linking (except MSVC,
14120 # which needs '.lib').
14121 libext=a
14122 ltmain="$ac_aux_dir/ltmain.sh"
14123 ofile="$default_ofile"
14124 with_gnu_ld="$lt_cv_prog_gnu_ld"
14125
14126 if test -n "$ac_tool_prefix"; then
14127   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14128 set dummy ${ac_tool_prefix}ar; ac_word=$2
14129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14131 if test "${ac_cv_prog_AR+set}" = set; then
14132   echo $ECHO_N "(cached) $ECHO_C" >&6
14133 else
14134   if test -n "$AR"; then
14135   ac_cv_prog_AR="$AR" # Let the user override the test.
14136 else
14137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138 for as_dir in $PATH
14139 do
14140   IFS=$as_save_IFS
14141   test -z "$as_dir" && as_dir=.
14142   for ac_exec_ext in '' $ac_executable_extensions; do
14143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14144     ac_cv_prog_AR="${ac_tool_prefix}ar"
14145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14146     break 2
14147   fi
14148 done
14149 done
14150 IFS=$as_save_IFS
14151
14152 fi
14153 fi
14154 AR=$ac_cv_prog_AR
14155 if test -n "$AR"; then
14156   { echo "$as_me:$LINENO: result: $AR" >&5
14157 echo "${ECHO_T}$AR" >&6; }
14158 else
14159   { echo "$as_me:$LINENO: result: no" >&5
14160 echo "${ECHO_T}no" >&6; }
14161 fi
14162
14163
14164 fi
14165 if test -z "$ac_cv_prog_AR"; then
14166   ac_ct_AR=$AR
14167   # Extract the first word of "ar", so it can be a program name with args.
14168 set dummy ar; ac_word=$2
14169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14171 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14172   echo $ECHO_N "(cached) $ECHO_C" >&6
14173 else
14174   if test -n "$ac_ct_AR"; then
14175   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14176 else
14177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178 for as_dir in $PATH
14179 do
14180   IFS=$as_save_IFS
14181   test -z "$as_dir" && as_dir=.
14182   for ac_exec_ext in '' $ac_executable_extensions; do
14183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14184     ac_cv_prog_ac_ct_AR="ar"
14185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14186     break 2
14187   fi
14188 done
14189 done
14190 IFS=$as_save_IFS
14191
14192 fi
14193 fi
14194 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14195 if test -n "$ac_ct_AR"; then
14196   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14197 echo "${ECHO_T}$ac_ct_AR" >&6; }
14198 else
14199   { echo "$as_me:$LINENO: result: no" >&5
14200 echo "${ECHO_T}no" >&6; }
14201 fi
14202
14203   if test "x$ac_ct_AR" = x; then
14204     AR="false"
14205   else
14206     case $cross_compiling:$ac_tool_warned in
14207 yes:)
14208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14209 whose name does not start with the host triplet.  If you think this
14210 configuration is useful to you, please write to autoconf@gnu.org." >&5
14211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14212 whose name does not start with the host triplet.  If you think this
14213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14214 ac_tool_warned=yes ;;
14215 esac
14216     AR=$ac_ct_AR
14217   fi
14218 else
14219   AR="$ac_cv_prog_AR"
14220 fi
14221
14222 if test -n "$ac_tool_prefix"; then
14223   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14224 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14227 if test "${ac_cv_prog_RANLIB+set}" = set; then
14228   echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230   if test -n "$RANLIB"; then
14231   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14232 else
14233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14234 for as_dir in $PATH
14235 do
14236   IFS=$as_save_IFS
14237   test -z "$as_dir" && as_dir=.
14238   for ac_exec_ext in '' $ac_executable_extensions; do
14239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14240     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14242     break 2
14243   fi
14244 done
14245 done
14246 IFS=$as_save_IFS
14247
14248 fi
14249 fi
14250 RANLIB=$ac_cv_prog_RANLIB
14251 if test -n "$RANLIB"; then
14252   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14253 echo "${ECHO_T}$RANLIB" >&6; }
14254 else
14255   { echo "$as_me:$LINENO: result: no" >&5
14256 echo "${ECHO_T}no" >&6; }
14257 fi
14258
14259
14260 fi
14261 if test -z "$ac_cv_prog_RANLIB"; then
14262   ac_ct_RANLIB=$RANLIB
14263   # Extract the first word of "ranlib", so it can be a program name with args.
14264 set dummy ranlib; ac_word=$2
14265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14267 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14268   echo $ECHO_N "(cached) $ECHO_C" >&6
14269 else
14270   if test -n "$ac_ct_RANLIB"; then
14271   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14272 else
14273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14274 for as_dir in $PATH
14275 do
14276   IFS=$as_save_IFS
14277   test -z "$as_dir" && as_dir=.
14278   for ac_exec_ext in '' $ac_executable_extensions; do
14279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14280     ac_cv_prog_ac_ct_RANLIB="ranlib"
14281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14282     break 2
14283   fi
14284 done
14285 done
14286 IFS=$as_save_IFS
14287
14288 fi
14289 fi
14290 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14291 if test -n "$ac_ct_RANLIB"; then
14292   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14293 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14294 else
14295   { echo "$as_me:$LINENO: result: no" >&5
14296 echo "${ECHO_T}no" >&6; }
14297 fi
14298
14299   if test "x$ac_ct_RANLIB" = x; then
14300     RANLIB=":"
14301   else
14302     case $cross_compiling:$ac_tool_warned in
14303 yes:)
14304 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14305 whose name does not start with the host triplet.  If you think this
14306 configuration is useful to you, please write to autoconf@gnu.org." >&5
14307 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14308 whose name does not start with the host triplet.  If you think this
14309 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14310 ac_tool_warned=yes ;;
14311 esac
14312     RANLIB=$ac_ct_RANLIB
14313   fi
14314 else
14315   RANLIB="$ac_cv_prog_RANLIB"
14316 fi
14317
14318 if test -n "$ac_tool_prefix"; then
14319   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14320 set dummy ${ac_tool_prefix}strip; ac_word=$2
14321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14323 if test "${ac_cv_prog_STRIP+set}" = set; then
14324   echo $ECHO_N "(cached) $ECHO_C" >&6
14325 else
14326   if test -n "$STRIP"; then
14327   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14328 else
14329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14330 for as_dir in $PATH
14331 do
14332   IFS=$as_save_IFS
14333   test -z "$as_dir" && as_dir=.
14334   for ac_exec_ext in '' $ac_executable_extensions; do
14335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14336     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14338     break 2
14339   fi
14340 done
14341 done
14342 IFS=$as_save_IFS
14343
14344 fi
14345 fi
14346 STRIP=$ac_cv_prog_STRIP
14347 if test -n "$STRIP"; then
14348   { echo "$as_me:$LINENO: result: $STRIP" >&5
14349 echo "${ECHO_T}$STRIP" >&6; }
14350 else
14351   { echo "$as_me:$LINENO: result: no" >&5
14352 echo "${ECHO_T}no" >&6; }
14353 fi
14354
14355
14356 fi
14357 if test -z "$ac_cv_prog_STRIP"; then
14358   ac_ct_STRIP=$STRIP
14359   # Extract the first word of "strip", so it can be a program name with args.
14360 set dummy strip; ac_word=$2
14361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14363 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14364   echo $ECHO_N "(cached) $ECHO_C" >&6
14365 else
14366   if test -n "$ac_ct_STRIP"; then
14367   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14368 else
14369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14370 for as_dir in $PATH
14371 do
14372   IFS=$as_save_IFS
14373   test -z "$as_dir" && as_dir=.
14374   for ac_exec_ext in '' $ac_executable_extensions; do
14375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14376     ac_cv_prog_ac_ct_STRIP="strip"
14377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14378     break 2
14379   fi
14380 done
14381 done
14382 IFS=$as_save_IFS
14383
14384 fi
14385 fi
14386 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14387 if test -n "$ac_ct_STRIP"; then
14388   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14389 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14390 else
14391   { echo "$as_me:$LINENO: result: no" >&5
14392 echo "${ECHO_T}no" >&6; }
14393 fi
14394
14395   if test "x$ac_ct_STRIP" = x; then
14396     STRIP=":"
14397   else
14398     case $cross_compiling:$ac_tool_warned in
14399 yes:)
14400 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14401 whose name does not start with the host triplet.  If you think this
14402 configuration is useful to you, please write to autoconf@gnu.org." >&5
14403 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14404 whose name does not start with the host triplet.  If you think this
14405 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14406 ac_tool_warned=yes ;;
14407 esac
14408     STRIP=$ac_ct_STRIP
14409   fi
14410 else
14411   STRIP="$ac_cv_prog_STRIP"
14412 fi
14413
14414
14415 old_CC="$CC"
14416 old_CFLAGS="$CFLAGS"
14417
14418 # Set sane defaults for various variables
14419 test -z "$AR" && AR=ar
14420 test -z "$AR_FLAGS" && AR_FLAGS=cru
14421 test -z "$AS" && AS=as
14422 test -z "$CC" && CC=cc
14423 test -z "$LTCC" && LTCC=$CC
14424 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14425 test -z "$DLLTOOL" && DLLTOOL=dlltool
14426 test -z "$LD" && LD=ld
14427 test -z "$LN_S" && LN_S="ln -s"
14428 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14429 test -z "$NM" && NM=nm
14430 test -z "$SED" && SED=sed
14431 test -z "$OBJDUMP" && OBJDUMP=objdump
14432 test -z "$RANLIB" && RANLIB=:
14433 test -z "$STRIP" && STRIP=:
14434 test -z "$ac_objext" && ac_objext=o
14435
14436 # Determine commands to create old-style static archives.
14437 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14438 old_postinstall_cmds='chmod 644 $oldlib'
14439 old_postuninstall_cmds=
14440
14441 if test -n "$RANLIB"; then
14442   case $host_os in
14443   openbsd*)
14444     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14445     ;;
14446   *)
14447     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14448     ;;
14449   esac
14450   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14451 fi
14452
14453 for cc_temp in $compiler""; do
14454   case $cc_temp in
14455     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14456     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14457     \-*) ;;
14458     *) break;;
14459   esac
14460 done
14461 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14462
14463
14464 # Only perform the check for file, if the check method requires it
14465 case $deplibs_check_method in
14466 file_magic*)
14467   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14468     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14469 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14470 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14471   echo $ECHO_N "(cached) $ECHO_C" >&6
14472 else
14473   case $MAGIC_CMD in
14474 [\\/*] |  ?:[\\/]*)
14475   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14476   ;;
14477 *)
14478   lt_save_MAGIC_CMD="$MAGIC_CMD"
14479   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14480   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14481   for ac_dir in $ac_dummy; do
14482     IFS="$lt_save_ifs"
14483     test -z "$ac_dir" && ac_dir=.
14484     if test -f $ac_dir/${ac_tool_prefix}file; then
14485       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14486       if test -n "$file_magic_test_file"; then
14487         case $deplibs_check_method in
14488         "file_magic "*)
14489           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14490           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14491           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14492             $EGREP "$file_magic_regex" > /dev/null; then
14493             :
14494           else
14495             cat <<EOF 1>&2
14496
14497 *** Warning: the command libtool uses to detect shared libraries,
14498 *** $file_magic_cmd, produces output that libtool cannot recognize.
14499 *** The result is that libtool may fail to recognize shared libraries
14500 *** as such.  This will affect the creation of libtool libraries that
14501 *** depend on shared libraries, but programs linked with such libtool
14502 *** libraries will work regardless of this problem.  Nevertheless, you
14503 *** may want to report the problem to your system manager and/or to
14504 *** bug-libtool@gnu.org
14505
14506 EOF
14507           fi ;;
14508         esac
14509       fi
14510       break
14511     fi
14512   done
14513   IFS="$lt_save_ifs"
14514   MAGIC_CMD="$lt_save_MAGIC_CMD"
14515   ;;
14516 esac
14517 fi
14518
14519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14520 if test -n "$MAGIC_CMD"; then
14521   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14522 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14523 else
14524   { echo "$as_me:$LINENO: result: no" >&5
14525 echo "${ECHO_T}no" >&6; }
14526 fi
14527
14528 if test -z "$lt_cv_path_MAGIC_CMD"; then
14529   if test -n "$ac_tool_prefix"; then
14530     { echo "$as_me:$LINENO: checking for file" >&5
14531 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14532 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14533   echo $ECHO_N "(cached) $ECHO_C" >&6
14534 else
14535   case $MAGIC_CMD in
14536 [\\/*] |  ?:[\\/]*)
14537   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14538   ;;
14539 *)
14540   lt_save_MAGIC_CMD="$MAGIC_CMD"
14541   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14542   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14543   for ac_dir in $ac_dummy; do
14544     IFS="$lt_save_ifs"
14545     test -z "$ac_dir" && ac_dir=.
14546     if test -f $ac_dir/file; then
14547       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14548       if test -n "$file_magic_test_file"; then
14549         case $deplibs_check_method in
14550         "file_magic "*)
14551           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14552           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14553           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14554             $EGREP "$file_magic_regex" > /dev/null; then
14555             :
14556           else
14557             cat <<EOF 1>&2
14558
14559 *** Warning: the command libtool uses to detect shared libraries,
14560 *** $file_magic_cmd, produces output that libtool cannot recognize.
14561 *** The result is that libtool may fail to recognize shared libraries
14562 *** as such.  This will affect the creation of libtool libraries that
14563 *** depend on shared libraries, but programs linked with such libtool
14564 *** libraries will work regardless of this problem.  Nevertheless, you
14565 *** may want to report the problem to your system manager and/or to
14566 *** bug-libtool@gnu.org
14567
14568 EOF
14569           fi ;;
14570         esac
14571       fi
14572       break
14573     fi
14574   done
14575   IFS="$lt_save_ifs"
14576   MAGIC_CMD="$lt_save_MAGIC_CMD"
14577   ;;
14578 esac
14579 fi
14580
14581 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14582 if test -n "$MAGIC_CMD"; then
14583   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14584 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14585 else
14586   { echo "$as_me:$LINENO: result: no" >&5
14587 echo "${ECHO_T}no" >&6; }
14588 fi
14589
14590   else
14591     MAGIC_CMD=:
14592   fi
14593 fi
14594
14595   fi
14596   ;;
14597 esac
14598
14599 enable_dlopen=yes
14600 enable_win32_dll=no
14601
14602 # Check whether --enable-libtool-lock was given.
14603 if test "${enable_libtool_lock+set}" = set; then
14604   enableval=$enable_libtool_lock;
14605 fi
14606
14607 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14608
14609
14610 # Check whether --with-pic was given.
14611 if test "${with_pic+set}" = set; then
14612   withval=$with_pic; pic_mode="$withval"
14613 else
14614   pic_mode=default
14615 fi
14616
14617 test -z "$pic_mode" && pic_mode=default
14618
14619 # Use C for the default configuration in the libtool script
14620 tagname=
14621 lt_save_CC="$CC"
14622 ac_ext=c
14623 ac_cpp='$CPP $CPPFLAGS'
14624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14627
14628
14629 # Source file extension for C test sources.
14630 ac_ext=c
14631
14632 # Object file extension for compiled C test sources.
14633 objext=o
14634 objext=$objext
14635
14636 # Code to be used in simple compile tests
14637 lt_simple_compile_test_code="int some_variable = 0;\n"
14638
14639 # Code to be used in simple link tests
14640 lt_simple_link_test_code='int main(){return(0);}\n'
14641
14642
14643 # If no C compiler was specified, use CC.
14644 LTCC=${LTCC-"$CC"}
14645
14646 # If no C compiler flags were specified, use CFLAGS.
14647 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14648
14649 # Allow CC to be a program name with arguments.
14650 compiler=$CC
14651
14652
14653 # save warnings/boilerplate of simple test code
14654 ac_outfile=conftest.$ac_objext
14655 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14656 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14657 _lt_compiler_boilerplate=`cat conftest.err`
14658 $rm conftest*
14659
14660 ac_outfile=conftest.$ac_objext
14661 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14662 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14663 _lt_linker_boilerplate=`cat conftest.err`
14664 $rm conftest*
14665
14666
14667
14668 lt_prog_compiler_no_builtin_flag=
14669
14670 if test "$GCC" = yes; then
14671   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14672
14673
14674 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14675 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14676 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14677   echo $ECHO_N "(cached) $ECHO_C" >&6
14678 else
14679   lt_cv_prog_compiler_rtti_exceptions=no
14680   ac_outfile=conftest.$ac_objext
14681    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14682    lt_compiler_flag="-fno-rtti -fno-exceptions"
14683    # Insert the option either (1) after the last *FLAGS variable, or
14684    # (2) before a word containing "conftest.", or (3) at the end.
14685    # Note that $ac_compile itself does not contain backslashes and begins
14686    # with a dollar sign (not a hyphen), so the echo should work correctly.
14687    # The option is referenced via a variable to avoid confusing sed.
14688    lt_compile=`echo "$ac_compile" | $SED \
14689    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14690    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14691    -e 's:$: $lt_compiler_flag:'`
14692    (eval echo "\"\$as_me:14692: $lt_compile\"" >&5)
14693    (eval "$lt_compile" 2>conftest.err)
14694    ac_status=$?
14695    cat conftest.err >&5
14696    echo "$as_me:14696: \$? = $ac_status" >&5
14697    if (exit $ac_status) && test -s "$ac_outfile"; then
14698      # The compiler can only warn and ignore the option if not recognized
14699      # So say no if there are warnings other than the usual output.
14700      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14701      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14702      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14703        lt_cv_prog_compiler_rtti_exceptions=yes
14704      fi
14705    fi
14706    $rm conftest*
14707
14708 fi
14709 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14710 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14711
14712 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14713     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14714 else
14715     :
14716 fi
14717
14718 fi
14719
14720 lt_prog_compiler_wl=
14721 lt_prog_compiler_pic=
14722 lt_prog_compiler_static=
14723
14724 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14725 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14726
14727   if test "$GCC" = yes; then
14728     lt_prog_compiler_wl='-Wl,'
14729     lt_prog_compiler_static='-static'
14730
14731     case $host_os in
14732       aix*)
14733       # All AIX code is PIC.
14734       if test "$host_cpu" = ia64; then
14735         # AIX 5 now supports IA64 processor
14736         lt_prog_compiler_static='-Bstatic'
14737       fi
14738       ;;
14739
14740     amigaos*)
14741       # FIXME: we need at least 68020 code to build shared libraries, but
14742       # adding the `-m68020' flag to GCC prevents building anything better,
14743       # like `-m68040'.
14744       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14745       ;;
14746
14747     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14748       # PIC is the default for these OSes.
14749       ;;
14750
14751     mingw* | pw32* | os2*)
14752       # This hack is so that the source file can tell whether it is being
14753       # built for inclusion in a dll (and should export symbols for example).
14754       lt_prog_compiler_pic='-DDLL_EXPORT'
14755       ;;
14756
14757     darwin* | rhapsody*)
14758       # PIC is the default on this platform
14759       # Common symbols not allowed in MH_DYLIB files
14760       lt_prog_compiler_pic='-fno-common'
14761       ;;
14762
14763     interix3*)
14764       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14765       # Instead, we relocate shared libraries at runtime.
14766       ;;
14767
14768     msdosdjgpp*)
14769       # Just because we use GCC doesn't mean we suddenly get shared libraries
14770       # on systems that don't support them.
14771       lt_prog_compiler_can_build_shared=no
14772       enable_shared=no
14773       ;;
14774
14775     sysv4*MP*)
14776       if test -d /usr/nec; then
14777         lt_prog_compiler_pic=-Kconform_pic
14778       fi
14779       ;;
14780
14781     hpux*)
14782       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14783       # not for PA HP-UX.
14784       case $host_cpu in
14785       hppa*64*|ia64*)
14786         # +Z the default
14787         ;;
14788       *)
14789         lt_prog_compiler_pic='-fPIC'
14790         ;;
14791       esac
14792       ;;
14793
14794     *)
14795       lt_prog_compiler_pic='-fPIC'
14796       ;;
14797     esac
14798   else
14799     # PORTME Check for flag to pass linker flags through the system compiler.
14800     case $host_os in
14801     aix*)
14802       lt_prog_compiler_wl='-Wl,'
14803       if test "$host_cpu" = ia64; then
14804         # AIX 5 now supports IA64 processor
14805         lt_prog_compiler_static='-Bstatic'
14806       else
14807         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14808       fi
14809       ;;
14810       darwin*)
14811         # PIC is the default on this platform
14812         # Common symbols not allowed in MH_DYLIB files
14813        case $cc_basename in
14814          xlc*)
14815          lt_prog_compiler_pic='-qnocommon'
14816          lt_prog_compiler_wl='-Wl,'
14817          ;;
14818        esac
14819        ;;
14820
14821     mingw* | pw32* | os2*)
14822       # This hack is so that the source file can tell whether it is being
14823       # built for inclusion in a dll (and should export symbols for example).
14824       lt_prog_compiler_pic='-DDLL_EXPORT'
14825       ;;
14826
14827     hpux9* | hpux10* | hpux11*)
14828       lt_prog_compiler_wl='-Wl,'
14829       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14830       # not for PA HP-UX.
14831       case $host_cpu in
14832       hppa*64*|ia64*)
14833         # +Z the default
14834         ;;
14835       *)
14836         lt_prog_compiler_pic='+Z'
14837         ;;
14838       esac
14839       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14840       lt_prog_compiler_static='${wl}-a ${wl}archive'
14841       ;;
14842
14843     irix5* | irix6* | nonstopux*)
14844       lt_prog_compiler_wl='-Wl,'
14845       # PIC (with -KPIC) is the default.
14846       lt_prog_compiler_static='-non_shared'
14847       ;;
14848
14849     newsos6)
14850       lt_prog_compiler_pic='-KPIC'
14851       lt_prog_compiler_static='-Bstatic'
14852       ;;
14853
14854     linux*)
14855       case $cc_basename in
14856       icc* | ecc*)
14857         lt_prog_compiler_wl='-Wl,'
14858         lt_prog_compiler_pic='-KPIC'
14859         lt_prog_compiler_static='-static'
14860         ;;
14861       pgcc* | pgf77* | pgf90* | pgf95*)
14862         # Portland Group compilers (*not* the Pentium gcc compiler,
14863         # which looks to be a dead project)
14864         lt_prog_compiler_wl='-Wl,'
14865         lt_prog_compiler_pic='-fpic'
14866         lt_prog_compiler_static='-Bstatic'
14867         ;;
14868       ccc*)
14869         lt_prog_compiler_wl='-Wl,'
14870         # All Alpha code is PIC.
14871         lt_prog_compiler_static='-non_shared'
14872         ;;
14873       esac
14874       ;;
14875
14876     osf3* | osf4* | osf5*)
14877       lt_prog_compiler_wl='-Wl,'
14878       # All OSF/1 code is PIC.
14879       lt_prog_compiler_static='-non_shared'
14880       ;;
14881
14882     solaris*)
14883       lt_prog_compiler_pic='-KPIC'
14884       lt_prog_compiler_static='-Bstatic'
14885       case $cc_basename in
14886       f77* | f90* | f95*)
14887         lt_prog_compiler_wl='-Qoption ld ';;
14888       *)
14889         lt_prog_compiler_wl='-Wl,';;
14890       esac
14891       ;;
14892
14893     sunos4*)
14894       lt_prog_compiler_wl='-Qoption ld '
14895       lt_prog_compiler_pic='-PIC'
14896       lt_prog_compiler_static='-Bstatic'
14897       ;;
14898
14899     sysv4 | sysv4.2uw2* | sysv4.3*)
14900       lt_prog_compiler_wl='-Wl,'
14901       lt_prog_compiler_pic='-KPIC'
14902       lt_prog_compiler_static='-Bstatic'
14903       ;;
14904
14905     sysv4*MP*)
14906       if test -d /usr/nec ;then
14907         lt_prog_compiler_pic='-Kconform_pic'
14908         lt_prog_compiler_static='-Bstatic'
14909       fi
14910       ;;
14911
14912     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14913       lt_prog_compiler_wl='-Wl,'
14914       lt_prog_compiler_pic='-KPIC'
14915       lt_prog_compiler_static='-Bstatic'
14916       ;;
14917
14918     unicos*)
14919       lt_prog_compiler_wl='-Wl,'
14920       lt_prog_compiler_can_build_shared=no
14921       ;;
14922
14923     uts4*)
14924       lt_prog_compiler_pic='-pic'
14925       lt_prog_compiler_static='-Bstatic'
14926       ;;
14927
14928     *)
14929       lt_prog_compiler_can_build_shared=no
14930       ;;
14931     esac
14932   fi
14933
14934 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14935 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14936
14937 #
14938 # Check to make sure the PIC flag actually works.
14939 #
14940 if test -n "$lt_prog_compiler_pic"; then
14941
14942 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14943 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14944 if test "${lt_prog_compiler_pic_works+set}" = set; then
14945   echo $ECHO_N "(cached) $ECHO_C" >&6
14946 else
14947   lt_prog_compiler_pic_works=no
14948   ac_outfile=conftest.$ac_objext
14949    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14950    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14951    # Insert the option either (1) after the last *FLAGS variable, or
14952    # (2) before a word containing "conftest.", or (3) at the end.
14953    # Note that $ac_compile itself does not contain backslashes and begins
14954    # with a dollar sign (not a hyphen), so the echo should work correctly.
14955    # The option is referenced via a variable to avoid confusing sed.
14956    lt_compile=`echo "$ac_compile" | $SED \
14957    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14958    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14959    -e 's:$: $lt_compiler_flag:'`
14960    (eval echo "\"\$as_me:14960: $lt_compile\"" >&5)
14961    (eval "$lt_compile" 2>conftest.err)
14962    ac_status=$?
14963    cat conftest.err >&5
14964    echo "$as_me:14964: \$? = $ac_status" >&5
14965    if (exit $ac_status) && test -s "$ac_outfile"; then
14966      # The compiler can only warn and ignore the option if not recognized
14967      # So say no if there are warnings other than the usual output.
14968      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14969      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14970      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14971        lt_prog_compiler_pic_works=yes
14972      fi
14973    fi
14974    $rm conftest*
14975
14976 fi
14977 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14978 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14979
14980 if test x"$lt_prog_compiler_pic_works" = xyes; then
14981     case $lt_prog_compiler_pic in
14982      "" | " "*) ;;
14983      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14984      esac
14985 else
14986     lt_prog_compiler_pic=
14987      lt_prog_compiler_can_build_shared=no
14988 fi
14989
14990 fi
14991 case $host_os in
14992   # For platforms which do not support PIC, -DPIC is meaningless:
14993   *djgpp*)
14994     lt_prog_compiler_pic=
14995     ;;
14996   *)
14997     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14998     ;;
14999 esac
15000
15001 #
15002 # Check to make sure the static flag actually works.
15003 #
15004 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15005 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15006 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15007 if test "${lt_prog_compiler_static_works+set}" = set; then
15008   echo $ECHO_N "(cached) $ECHO_C" >&6
15009 else
15010   lt_prog_compiler_static_works=no
15011    save_LDFLAGS="$LDFLAGS"
15012    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15013    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15014    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15015      # The linker can only warn and ignore the option if not recognized
15016      # So say no if there are warnings
15017      if test -s conftest.err; then
15018        # Append any errors to the config.log.
15019        cat conftest.err 1>&5
15020        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15021        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15022        if diff conftest.exp conftest.er2 >/dev/null; then
15023          lt_prog_compiler_static_works=yes
15024        fi
15025      else
15026        lt_prog_compiler_static_works=yes
15027      fi
15028    fi
15029    $rm conftest*
15030    LDFLAGS="$save_LDFLAGS"
15031
15032 fi
15033 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15034 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15035
15036 if test x"$lt_prog_compiler_static_works" = xyes; then
15037     :
15038 else
15039     lt_prog_compiler_static=
15040 fi
15041
15042
15043 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15044 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15045 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15046   echo $ECHO_N "(cached) $ECHO_C" >&6
15047 else
15048   lt_cv_prog_compiler_c_o=no
15049    $rm -r conftest 2>/dev/null
15050    mkdir conftest
15051    cd conftest
15052    mkdir out
15053    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15054
15055    lt_compiler_flag="-o out/conftest2.$ac_objext"
15056    # Insert the option either (1) after the last *FLAGS variable, or
15057    # (2) before a word containing "conftest.", or (3) at the end.
15058    # Note that $ac_compile itself does not contain backslashes and begins
15059    # with a dollar sign (not a hyphen), so the echo should work correctly.
15060    lt_compile=`echo "$ac_compile" | $SED \
15061    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15062    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15063    -e 's:$: $lt_compiler_flag:'`
15064    (eval echo "\"\$as_me:15064: $lt_compile\"" >&5)
15065    (eval "$lt_compile" 2>out/conftest.err)
15066    ac_status=$?
15067    cat out/conftest.err >&5
15068    echo "$as_me:15068: \$? = $ac_status" >&5
15069    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15070    then
15071      # The compiler can only warn and ignore the option if not recognized
15072      # So say no if there are warnings
15073      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15074      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15075      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15076        lt_cv_prog_compiler_c_o=yes
15077      fi
15078    fi
15079    chmod u+w . 2>&5
15080    $rm conftest*
15081    # SGI C++ compiler will create directory out/ii_files/ for
15082    # template instantiation
15083    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15084    $rm out/* && rmdir out
15085    cd ..
15086    rmdir conftest
15087    $rm conftest*
15088
15089 fi
15090 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15091 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15092
15093
15094 hard_links="nottested"
15095 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15096   # do not overwrite the value of need_locks provided by the user
15097   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15098 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15099   hard_links=yes
15100   $rm conftest*
15101   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15102   touch conftest.a
15103   ln conftest.a conftest.b 2>&5 || hard_links=no
15104   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15105   { echo "$as_me:$LINENO: result: $hard_links" >&5
15106 echo "${ECHO_T}$hard_links" >&6; }
15107   if test "$hard_links" = no; then
15108     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15109 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15110     need_locks=warn
15111   fi
15112 else
15113   need_locks=no
15114 fi
15115
15116 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15117 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15118
15119   runpath_var=
15120   allow_undefined_flag=
15121   enable_shared_with_static_runtimes=no
15122   archive_cmds=
15123   archive_expsym_cmds=
15124   old_archive_From_new_cmds=
15125   old_archive_from_expsyms_cmds=
15126   export_dynamic_flag_spec=
15127   whole_archive_flag_spec=
15128   thread_safe_flag_spec=
15129   hardcode_libdir_flag_spec=
15130   hardcode_libdir_flag_spec_ld=
15131   hardcode_libdir_separator=
15132   hardcode_direct=no
15133   hardcode_minus_L=no
15134   hardcode_shlibpath_var=unsupported
15135   link_all_deplibs=unknown
15136   hardcode_automatic=no
15137   module_cmds=
15138   module_expsym_cmds=
15139   always_export_symbols=no
15140   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15141   # include_expsyms should be a list of space-separated symbols to be *always*
15142   # included in the symbol list
15143   include_expsyms=
15144   # exclude_expsyms can be an extended regexp of symbols to exclude
15145   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15146   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15147   # as well as any symbol that contains `d'.
15148   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15149   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15150   # platforms (ab)use it in PIC code, but their linkers get confused if
15151   # the symbol is explicitly referenced.  Since portable code cannot
15152   # rely on this symbol name, it's probably fine to never include it in
15153   # preloaded symbol tables.
15154   extract_expsyms_cmds=
15155   # Just being paranoid about ensuring that cc_basename is set.
15156   for cc_temp in $compiler""; do
15157   case $cc_temp in
15158     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15159     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15160     \-*) ;;
15161     *) break;;
15162   esac
15163 done
15164 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15165
15166   case $host_os in
15167   cygwin* | mingw* | pw32*)
15168     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15169     # When not using gcc, we currently assume that we are using
15170     # Microsoft Visual C++.
15171     if test "$GCC" != yes; then
15172       with_gnu_ld=no
15173     fi
15174     ;;
15175   interix*)
15176     # we just hope/assume this is gcc and not c89 (= MSVC++)
15177     with_gnu_ld=yes
15178     ;;
15179   openbsd*)
15180     with_gnu_ld=no
15181     ;;
15182   esac
15183
15184   ld_shlibs=yes
15185   if test "$with_gnu_ld" = yes; then
15186     # If archive_cmds runs LD, not CC, wlarc should be empty
15187     wlarc='${wl}'
15188
15189     # Set some defaults for GNU ld with shared library support. These
15190     # are reset later if shared libraries are not supported. Putting them
15191     # here allows them to be overridden if necessary.
15192     runpath_var=LD_RUN_PATH
15193     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15194     export_dynamic_flag_spec='${wl}--export-dynamic'
15195     # ancient GNU ld didn't support --whole-archive et. al.
15196     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15197         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15198       else
15199         whole_archive_flag_spec=
15200     fi
15201     supports_anon_versioning=no
15202     case `$LD -v 2>/dev/null` in
15203       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15204       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15205       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15206       *\ 2.11.*) ;; # other 2.11 versions
15207       *) supports_anon_versioning=yes ;;
15208     esac
15209
15210     # See if GNU ld supports shared libraries.
15211     case $host_os in
15212     aix3* | aix4* | aix5*)
15213       # On AIX/PPC, the GNU linker is very broken
15214       if test "$host_cpu" != ia64; then
15215         ld_shlibs=no
15216         cat <<EOF 1>&2
15217
15218 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15219 *** to be unable to reliably create shared libraries on AIX.
15220 *** Therefore, libtool is disabling shared libraries support.  If you
15221 *** really care for shared libraries, you may want to modify your PATH
15222 *** so that a non-GNU linker is found, and then restart.
15223
15224 EOF
15225       fi
15226       ;;
15227
15228     amigaos*)
15229       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)'
15230       hardcode_libdir_flag_spec='-L$libdir'
15231       hardcode_minus_L=yes
15232
15233       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15234       # that the semantics of dynamic libraries on AmigaOS, at least up
15235       # to version 4, is to share data among multiple programs linked
15236       # with the same dynamic library.  Since this doesn't match the
15237       # behavior of shared libraries on other platforms, we can't use
15238       # them.
15239       ld_shlibs=no
15240       ;;
15241
15242     beos*)
15243       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15244         allow_undefined_flag=unsupported
15245         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15246         # support --undefined.  This deserves some investigation.  FIXME
15247         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15248       else
15249         ld_shlibs=no
15250       fi
15251       ;;
15252
15253     cygwin* | mingw* | pw32*)
15254       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15255       # as there is no search path for DLLs.
15256       hardcode_libdir_flag_spec='-L$libdir'
15257       allow_undefined_flag=unsupported
15258       always_export_symbols=no
15259       enable_shared_with_static_runtimes=yes
15260       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15261
15262       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15263         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15264         # If the export-symbols file already is a .def file (1st line
15265         # is EXPORTS), use it as is; otherwise, prepend...
15266         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15267           cp $export_symbols $output_objdir/$soname.def;
15268         else
15269           echo EXPORTS > $output_objdir/$soname.def;
15270           cat $export_symbols >> $output_objdir/$soname.def;
15271         fi~
15272         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15273       else
15274         ld_shlibs=no
15275       fi
15276       ;;
15277
15278     interix3*)
15279       hardcode_direct=no
15280       hardcode_shlibpath_var=no
15281       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15282       export_dynamic_flag_spec='${wl}-E'
15283       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15284       # Instead, shared libraries are loaded at an image base (0x10000000 by
15285       # default) and relocated if they conflict, which is a slow very memory
15286       # consuming and fragmenting process.  To avoid this, we pick a random,
15287       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15288       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15289       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15290       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'
15291       ;;
15292
15293     linux*)
15294       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15295         tmp_addflag=
15296         case $cc_basename,$host_cpu in
15297         pgcc*)                          # Portland Group C compiler
15298           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'
15299           tmp_addflag=' $pic_flag'
15300           ;;
15301         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15302           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'
15303           tmp_addflag=' $pic_flag -Mnomain' ;;
15304         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15305           tmp_addflag=' -i_dynamic' ;;
15306         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15307           tmp_addflag=' -i_dynamic -nofor_main' ;;
15308         ifc* | ifort*)                  # Intel Fortran compiler
15309           tmp_addflag=' -nofor_main' ;;
15310         esac
15311         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15312
15313         if test $supports_anon_versioning = yes; then
15314           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15315   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15316   $echo "local: *; };" >> $output_objdir/$libname.ver~
15317           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15318         fi
15319       else
15320         ld_shlibs=no
15321       fi
15322       ;;
15323
15324     netbsd*)
15325       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15326         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15327         wlarc=
15328       else
15329         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15330         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15331       fi
15332       ;;
15333
15334     solaris*)
15335       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15336         ld_shlibs=no
15337         cat <<EOF 1>&2
15338
15339 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15340 *** create shared libraries on Solaris systems.  Therefore, libtool
15341 *** is disabling shared libraries support.  We urge you to upgrade GNU
15342 *** binutils to release 2.9.1 or newer.  Another option is to modify
15343 *** your PATH or compiler configuration so that the native linker is
15344 *** used, and then restart.
15345
15346 EOF
15347       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15348         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15349         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15350       else
15351         ld_shlibs=no
15352       fi
15353       ;;
15354
15355     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15356       case `$LD -v 2>&1` in
15357         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15358         ld_shlibs=no
15359         cat <<_LT_EOF 1>&2
15360
15361 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15362 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15363 *** is disabling shared libraries support.  We urge you to upgrade GNU
15364 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15365 *** your PATH or compiler configuration so that the native linker is
15366 *** used, and then restart.
15367
15368 _LT_EOF
15369         ;;
15370         *)
15371           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15372             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15373             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15374             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15375           else
15376             ld_shlibs=no
15377           fi
15378         ;;
15379       esac
15380       ;;
15381
15382     sunos4*)
15383       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15384       wlarc=
15385       hardcode_direct=yes
15386       hardcode_shlibpath_var=no
15387       ;;
15388
15389     *)
15390       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15391         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15392         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15393       else
15394         ld_shlibs=no
15395       fi
15396       ;;
15397     esac
15398
15399     if test "$ld_shlibs" = no; then
15400       runpath_var=
15401       hardcode_libdir_flag_spec=
15402       export_dynamic_flag_spec=
15403       whole_archive_flag_spec=
15404     fi
15405   else
15406     # PORTME fill in a description of your system's linker (not GNU ld)
15407     case $host_os in
15408     aix3*)
15409       allow_undefined_flag=unsupported
15410       always_export_symbols=yes
15411       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'
15412       # Note: this linker hardcodes the directories in LIBPATH if there
15413       # are no directories specified by -L.
15414       hardcode_minus_L=yes
15415       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15416         # Neither direct hardcoding nor static linking is supported with a
15417         # broken collect2.
15418         hardcode_direct=unsupported
15419       fi
15420       ;;
15421
15422     aix4* | aix5*)
15423       if test "$host_cpu" = ia64; then
15424         # On IA64, the linker does run time linking by default, so we don't
15425         # have to do anything special.
15426         aix_use_runtimelinking=no
15427         exp_sym_flag='-Bexport'
15428         no_entry_flag=""
15429       else
15430         # If we're using GNU nm, then we don't want the "-C" option.
15431         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15432         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15433           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'
15434         else
15435           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'
15436         fi
15437         aix_use_runtimelinking=no
15438
15439         # Test if we are trying to use run time linking or normal
15440         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15441         # need to do runtime linking.
15442         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15443           for ld_flag in $LDFLAGS; do
15444           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15445             aix_use_runtimelinking=yes
15446             break
15447           fi
15448           done
15449           ;;
15450         esac
15451
15452         exp_sym_flag='-bexport'
15453         no_entry_flag='-bnoentry'
15454       fi
15455
15456       # When large executables or shared objects are built, AIX ld can
15457       # have problems creating the table of contents.  If linking a library
15458       # or program results in "error TOC overflow" add -mminimal-toc to
15459       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15460       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15461
15462       archive_cmds=''
15463       hardcode_direct=yes
15464       hardcode_libdir_separator=':'
15465       link_all_deplibs=yes
15466
15467       if test "$GCC" = yes; then
15468         case $host_os in aix4.[012]|aix4.[012].*)
15469         # We only want to do this on AIX 4.2 and lower, the check
15470         # below for broken collect2 doesn't work under 4.3+
15471           collect2name=`${CC} -print-prog-name=collect2`
15472           if test -f "$collect2name" && \
15473            strings "$collect2name" | grep resolve_lib_name >/dev/null
15474           then
15475           # We have reworked collect2
15476           hardcode_direct=yes
15477           else
15478           # We have old collect2
15479           hardcode_direct=unsupported
15480           # It fails to find uninstalled libraries when the uninstalled
15481           # path is not listed in the libpath.  Setting hardcode_minus_L
15482           # to unsupported forces relinking
15483           hardcode_minus_L=yes
15484           hardcode_libdir_flag_spec='-L$libdir'
15485           hardcode_libdir_separator=
15486           fi
15487           ;;
15488         esac
15489         shared_flag='-shared'
15490         if test "$aix_use_runtimelinking" = yes; then
15491           shared_flag="$shared_flag "'${wl}-G'
15492         fi
15493       else
15494         # not using gcc
15495         if test "$host_cpu" = ia64; then
15496         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15497         # chokes on -Wl,-G. The following line is correct:
15498           shared_flag='-G'
15499         else
15500           if test "$aix_use_runtimelinking" = yes; then
15501             shared_flag='${wl}-G'
15502           else
15503             shared_flag='${wl}-bM:SRE'
15504           fi
15505         fi
15506       fi
15507
15508       # It seems that -bexpall does not export symbols beginning with
15509       # underscore (_), so it is better to generate a list of symbols to export.
15510       always_export_symbols=yes
15511       if test "$aix_use_runtimelinking" = yes; then
15512         # Warning - without using the other runtime loading flags (-brtl),
15513         # -berok will link without error, but may produce a broken library.
15514         allow_undefined_flag='-berok'
15515        # Determine the default libpath from the value encoded in an empty executable.
15516        cat >conftest.$ac_ext <<_ACEOF
15517 /* confdefs.h.  */
15518 _ACEOF
15519 cat confdefs.h >>conftest.$ac_ext
15520 cat >>conftest.$ac_ext <<_ACEOF
15521 /* end confdefs.h.  */
15522
15523 int
15524 main ()
15525 {
15526
15527   ;
15528   return 0;
15529 }
15530 _ACEOF
15531 rm -f conftest.$ac_objext conftest$ac_exeext
15532 if { (ac_try="$ac_link"
15533 case "(($ac_try" in
15534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535   *) ac_try_echo=$ac_try;;
15536 esac
15537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15538   (eval "$ac_link") 2>conftest.er1
15539   ac_status=$?
15540   grep -v '^ *+' conftest.er1 >conftest.err
15541   rm -f conftest.er1
15542   cat conftest.err >&5
15543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); } &&
15545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15546   { (case "(($ac_try" in
15547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548   *) ac_try_echo=$ac_try;;
15549 esac
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551   (eval "$ac_try") 2>&5
15552   ac_status=$?
15553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554   (exit $ac_status); }; } &&
15555          { ac_try='test -s conftest$ac_exeext'
15556   { (case "(($ac_try" in
15557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558   *) ac_try_echo=$ac_try;;
15559 esac
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561   (eval "$ac_try") 2>&5
15562   ac_status=$?
15563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564   (exit $ac_status); }; }; then
15565
15566 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15567 }'`
15568 # Check for a 64-bit object if we didn't find anything.
15569 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15570 }'`; fi
15571 else
15572   echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15574
15575
15576 fi
15577
15578 rm -f core conftest.err conftest.$ac_objext \
15579       conftest$ac_exeext conftest.$ac_ext
15580 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15581
15582        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15583         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"
15584        else
15585         if test "$host_cpu" = ia64; then
15586           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15587           allow_undefined_flag="-z nodefs"
15588           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"
15589         else
15590          # Determine the default libpath from the value encoded in an empty executable.
15591          cat >conftest.$ac_ext <<_ACEOF
15592 /* confdefs.h.  */
15593 _ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h.  */
15597
15598 int
15599 main ()
15600 {
15601
15602   ;
15603   return 0;
15604 }
15605 _ACEOF
15606 rm -f conftest.$ac_objext conftest$ac_exeext
15607 if { (ac_try="$ac_link"
15608 case "(($ac_try" in
15609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610   *) ac_try_echo=$ac_try;;
15611 esac
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613   (eval "$ac_link") 2>conftest.er1
15614   ac_status=$?
15615   grep -v '^ *+' conftest.er1 >conftest.err
15616   rm -f conftest.er1
15617   cat conftest.err >&5
15618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619   (exit $ac_status); } &&
15620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15621   { (case "(($ac_try" in
15622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623   *) ac_try_echo=$ac_try;;
15624 esac
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626   (eval "$ac_try") 2>&5
15627   ac_status=$?
15628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629   (exit $ac_status); }; } &&
15630          { ac_try='test -s conftest$ac_exeext'
15631   { (case "(($ac_try" in
15632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633   *) ac_try_echo=$ac_try;;
15634 esac
15635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636   (eval "$ac_try") 2>&5
15637   ac_status=$?
15638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639   (exit $ac_status); }; }; then
15640
15641 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15642 }'`
15643 # Check for a 64-bit object if we didn't find anything.
15644 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15645 }'`; fi
15646 else
15647   echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15649
15650
15651 fi
15652
15653 rm -f core conftest.err conftest.$ac_objext \
15654       conftest$ac_exeext conftest.$ac_ext
15655 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15656
15657          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15658           # Warning - without using the other run time loading flags,
15659           # -berok will link without error, but may produce a broken library.
15660           no_undefined_flag=' ${wl}-bernotok'
15661           allow_undefined_flag=' ${wl}-berok'
15662           # Exported symbols can be pulled into shared objects from archives
15663           whole_archive_flag_spec='$convenience'
15664           archive_cmds_need_lc=yes
15665           # This is similar to how AIX traditionally builds its shared libraries.
15666           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'
15667         fi
15668       fi
15669       ;;
15670
15671     amigaos*)
15672       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)'
15673       hardcode_libdir_flag_spec='-L$libdir'
15674       hardcode_minus_L=yes
15675       # see comment about different semantics on the GNU ld section
15676       ld_shlibs=no
15677       ;;
15678
15679     bsdi[45]*)
15680       export_dynamic_flag_spec=-rdynamic
15681       ;;
15682
15683     cygwin* | mingw* | pw32*)
15684       # When not using gcc, we currently assume that we are using
15685       # Microsoft Visual C++.
15686       # hardcode_libdir_flag_spec is actually meaningless, as there is
15687       # no search path for DLLs.
15688       hardcode_libdir_flag_spec=' '
15689       allow_undefined_flag=unsupported
15690       # Tell ltmain to make .lib files, not .a files.
15691       libext=lib
15692       # Tell ltmain to make .dll files, not .so files.
15693       shrext_cmds=".dll"
15694       # FIXME: Setting linknames here is a bad hack.
15695       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15696       # The linker will automatically build a .lib file if we build a DLL.
15697       old_archive_From_new_cmds='true'
15698       # FIXME: Should let the user specify the lib program.
15699       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15700       fix_srcfile_path='`cygpath -w "$srcfile"`'
15701       enable_shared_with_static_runtimes=yes
15702       ;;
15703
15704     darwin* | rhapsody*)
15705       case $host_os in
15706         rhapsody* | darwin1.[012])
15707          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15708          ;;
15709        *) # Darwin 1.3 on
15710          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15711            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15712          else
15713            case ${MACOSX_DEPLOYMENT_TARGET} in
15714              10.[012])
15715                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15716                ;;
15717              10.*)
15718                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15719                ;;
15720            esac
15721          fi
15722          ;;
15723       esac
15724       archive_cmds_need_lc=no
15725       hardcode_direct=no
15726       hardcode_automatic=yes
15727       hardcode_shlibpath_var=unsupported
15728       whole_archive_flag_spec=''
15729       link_all_deplibs=yes
15730     if test "$GCC" = yes ; then
15731         output_verbose_link_cmd='echo'
15732         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15733       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15734       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15735       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15736       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}'
15737     else
15738       case $cc_basename in
15739         xlc*)
15740          output_verbose_link_cmd='echo'
15741          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15742          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15743           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15744          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15745           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}'
15746           ;;
15747        *)
15748          ld_shlibs=no
15749           ;;
15750       esac
15751     fi
15752       ;;
15753
15754     dgux*)
15755       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15756       hardcode_libdir_flag_spec='-L$libdir'
15757       hardcode_shlibpath_var=no
15758       ;;
15759
15760     freebsd1*)
15761       ld_shlibs=no
15762       ;;
15763
15764     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15765     # support.  Future versions do this automatically, but an explicit c++rt0.o
15766     # does not break anything, and helps significantly (at the cost of a little
15767     # extra space).
15768     freebsd2.2*)
15769       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15770       hardcode_libdir_flag_spec='-R$libdir'
15771       hardcode_direct=yes
15772       hardcode_shlibpath_var=no
15773       ;;
15774
15775     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15776     freebsd2*)
15777       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15778       hardcode_direct=yes
15779       hardcode_minus_L=yes
15780       hardcode_shlibpath_var=no
15781       ;;
15782
15783     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15784     freebsd* | kfreebsd*-gnu | dragonfly*)
15785       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15786       hardcode_libdir_flag_spec='-R$libdir'
15787       hardcode_direct=yes
15788       hardcode_shlibpath_var=no
15789       ;;
15790
15791     hpux9*)
15792       if test "$GCC" = yes; then
15793         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'
15794       else
15795         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'
15796       fi
15797       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15798       hardcode_libdir_separator=:
15799       hardcode_direct=yes
15800
15801       # hardcode_minus_L: Not really in the search PATH,
15802       # but as the default location of the library.
15803       hardcode_minus_L=yes
15804       export_dynamic_flag_spec='${wl}-E'
15805       ;;
15806
15807     hpux10*)
15808       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15809         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15810       else
15811         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15812       fi
15813       if test "$with_gnu_ld" = no; then
15814         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15815         hardcode_libdir_separator=:
15816
15817         hardcode_direct=yes
15818         export_dynamic_flag_spec='${wl}-E'
15819
15820         # hardcode_minus_L: Not really in the search PATH,
15821         # but as the default location of the library.
15822         hardcode_minus_L=yes
15823       fi
15824       ;;
15825
15826     hpux11*)
15827       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15828         case $host_cpu in
15829         hppa*64*)
15830           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15831           ;;
15832         ia64*)
15833           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15834           ;;
15835         *)
15836           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15837           ;;
15838         esac
15839       else
15840         case $host_cpu in
15841         hppa*64*)
15842           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15843           ;;
15844         ia64*)
15845           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15846           ;;
15847         *)
15848           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15849           ;;
15850         esac
15851       fi
15852       if test "$with_gnu_ld" = no; then
15853         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15854         hardcode_libdir_separator=:
15855
15856         case $host_cpu in
15857         hppa*64*|ia64*)
15858           hardcode_libdir_flag_spec_ld='+b $libdir'
15859           hardcode_direct=no
15860           hardcode_shlibpath_var=no
15861           ;;
15862         *)
15863           hardcode_direct=yes
15864           export_dynamic_flag_spec='${wl}-E'
15865
15866           # hardcode_minus_L: Not really in the search PATH,
15867           # but as the default location of the library.
15868           hardcode_minus_L=yes
15869           ;;
15870         esac
15871       fi
15872       ;;
15873
15874     irix5* | irix6* | nonstopux*)
15875       if test "$GCC" = yes; then
15876         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'
15877       else
15878         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'
15879         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15880       fi
15881       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15882       hardcode_libdir_separator=:
15883       link_all_deplibs=yes
15884       ;;
15885
15886     netbsd*)
15887       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15888         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15889       else
15890         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15891       fi
15892       hardcode_libdir_flag_spec='-R$libdir'
15893       hardcode_direct=yes
15894       hardcode_shlibpath_var=no
15895       ;;
15896
15897     newsos6)
15898       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15899       hardcode_direct=yes
15900       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15901       hardcode_libdir_separator=:
15902       hardcode_shlibpath_var=no
15903       ;;
15904
15905     openbsd*)
15906       hardcode_direct=yes
15907       hardcode_shlibpath_var=no
15908       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15909         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15910         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15911         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15912         export_dynamic_flag_spec='${wl}-E'
15913       else
15914        case $host_os in
15915          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15916            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15917            hardcode_libdir_flag_spec='-R$libdir'
15918            ;;
15919          *)
15920            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15921            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15922            ;;
15923        esac
15924       fi
15925       ;;
15926
15927     os2*)
15928       hardcode_libdir_flag_spec='-L$libdir'
15929       hardcode_minus_L=yes
15930       allow_undefined_flag=unsupported
15931       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'
15932       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15933       ;;
15934
15935     osf3*)
15936       if test "$GCC" = yes; then
15937         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15938         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'
15939       else
15940         allow_undefined_flag=' -expect_unresolved \*'
15941         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'
15942       fi
15943       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15944       hardcode_libdir_separator=:
15945       ;;
15946
15947     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15948       if test "$GCC" = yes; then
15949         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15950         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'
15951         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15952       else
15953         allow_undefined_flag=' -expect_unresolved \*'
15954         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'
15955         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15956         $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'
15957
15958         # Both c and cxx compiler support -rpath directly
15959         hardcode_libdir_flag_spec='-rpath $libdir'
15960       fi
15961       hardcode_libdir_separator=:
15962       ;;
15963
15964     solaris*)
15965       no_undefined_flag=' -z text'
15966       if test "$GCC" = yes; then
15967         wlarc='${wl}'
15968         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15969         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15970           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15971       else
15972         wlarc=''
15973         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15974         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15975         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15976       fi
15977       hardcode_libdir_flag_spec='-R$libdir'
15978       hardcode_shlibpath_var=no
15979       case $host_os in
15980       solaris2.[0-5] | solaris2.[0-5].*) ;;
15981       *)
15982         # The compiler driver will combine linker options so we
15983         # cannot just pass the convience library names through
15984         # without $wl, iff we do not link with $LD.
15985         # Luckily, gcc supports the same syntax we need for Sun Studio.
15986         # Supported since Solaris 2.6 (maybe 2.5.1?)
15987         case $wlarc in
15988         '')
15989           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15990         *)
15991           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15992         esac ;;
15993       esac
15994       link_all_deplibs=yes
15995       ;;
15996
15997     sunos4*)
15998       if test "x$host_vendor" = xsequent; then
15999         # Use $CC to link under sequent, because it throws in some extra .o
16000         # files that make .init and .fini sections work.
16001         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16002       else
16003         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16004       fi
16005       hardcode_libdir_flag_spec='-L$libdir'
16006       hardcode_direct=yes
16007       hardcode_minus_L=yes
16008       hardcode_shlibpath_var=no
16009       ;;
16010
16011     sysv4)
16012       case $host_vendor in
16013         sni)
16014           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16015           hardcode_direct=yes # is this really true???
16016         ;;
16017         siemens)
16018           ## LD is ld it makes a PLAMLIB
16019           ## CC just makes a GrossModule.
16020           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16021           reload_cmds='$CC -r -o $output$reload_objs'
16022           hardcode_direct=no
16023         ;;
16024         motorola)
16025           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16026           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16027         ;;
16028       esac
16029       runpath_var='LD_RUN_PATH'
16030       hardcode_shlibpath_var=no
16031       ;;
16032
16033     sysv4.3*)
16034       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16035       hardcode_shlibpath_var=no
16036       export_dynamic_flag_spec='-Bexport'
16037       ;;
16038
16039     sysv4*MP*)
16040       if test -d /usr/nec; then
16041         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16042         hardcode_shlibpath_var=no
16043         runpath_var=LD_RUN_PATH
16044         hardcode_runpath_var=yes
16045         ld_shlibs=yes
16046       fi
16047       ;;
16048
16049     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16050       no_undefined_flag='${wl}-z,text'
16051       archive_cmds_need_lc=no
16052       hardcode_shlibpath_var=no
16053       runpath_var='LD_RUN_PATH'
16054
16055       if test "$GCC" = yes; then
16056         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16057         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16058       else
16059         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16060         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16061       fi
16062       ;;
16063
16064     sysv5* | sco3.2v5* | sco5v6*)
16065       # Note: We can NOT use -z defs as we might desire, because we do not
16066       # link with -lc, and that would cause any symbols used from libc to
16067       # always be unresolved, which means just about no library would
16068       # ever link correctly.  If we're not using GNU ld we use -z text
16069       # though, which does catch some bad symbols but isn't as heavy-handed
16070       # as -z defs.
16071       no_undefined_flag='${wl}-z,text'
16072       allow_undefined_flag='${wl}-z,nodefs'
16073       archive_cmds_need_lc=no
16074       hardcode_shlibpath_var=no
16075       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16076       hardcode_libdir_separator=':'
16077       link_all_deplibs=yes
16078       export_dynamic_flag_spec='${wl}-Bexport'
16079       runpath_var='LD_RUN_PATH'
16080
16081       if test "$GCC" = yes; then
16082         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16083         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16084       else
16085         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16086         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16087       fi
16088       ;;
16089
16090     uts4*)
16091       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16092       hardcode_libdir_flag_spec='-L$libdir'
16093       hardcode_shlibpath_var=no
16094       ;;
16095
16096     *)
16097       ld_shlibs=no
16098       ;;
16099     esac
16100   fi
16101
16102 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16103 echo "${ECHO_T}$ld_shlibs" >&6; }
16104 test "$ld_shlibs" = no && can_build_shared=no
16105
16106 #
16107 # Do we need to explicitly link libc?
16108 #
16109 case "x$archive_cmds_need_lc" in
16110 x|xyes)
16111   # Assume -lc should be added
16112   archive_cmds_need_lc=yes
16113
16114   if test "$enable_shared" = yes && test "$GCC" = yes; then
16115     case $archive_cmds in
16116     *'~'*)
16117       # FIXME: we may have to deal with multi-command sequences.
16118       ;;
16119     '$CC '*)
16120       # Test whether the compiler implicitly links with -lc since on some
16121       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16122       # to ld, don't add -lc before -lgcc.
16123       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16124 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16125       $rm conftest*
16126       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16127
16128       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16129   (eval $ac_compile) 2>&5
16130   ac_status=$?
16131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132   (exit $ac_status); } 2>conftest.err; then
16133         soname=conftest
16134         lib=conftest
16135         libobjs=conftest.$ac_objext
16136         deplibs=
16137         wl=$lt_prog_compiler_wl
16138         pic_flag=$lt_prog_compiler_pic
16139         compiler_flags=-v
16140         linker_flags=-v
16141         verstring=
16142         output_objdir=.
16143         libname=conftest
16144         lt_save_allow_undefined_flag=$allow_undefined_flag
16145         allow_undefined_flag=
16146         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16147   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16148   ac_status=$?
16149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); }
16151         then
16152           archive_cmds_need_lc=no
16153         else
16154           archive_cmds_need_lc=yes
16155         fi
16156         allow_undefined_flag=$lt_save_allow_undefined_flag
16157       else
16158         cat conftest.err 1>&5
16159       fi
16160       $rm conftest*
16161       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16162 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16163       ;;
16164     esac
16165   fi
16166   ;;
16167 esac
16168
16169 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16170 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16171 library_names_spec=
16172 libname_spec='lib$name'
16173 soname_spec=
16174 shrext_cmds=".so"
16175 postinstall_cmds=
16176 postuninstall_cmds=
16177 finish_cmds=
16178 finish_eval=
16179 shlibpath_var=
16180 shlibpath_overrides_runpath=unknown
16181 version_type=none
16182 dynamic_linker="$host_os ld.so"
16183 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16184 if test "$GCC" = yes; then
16185   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16186   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16187     # if the path contains ";" then we assume it to be the separator
16188     # otherwise default to the standard path separator (i.e. ":") - it is
16189     # assumed that no part of a normal pathname contains ";" but that should
16190     # okay in the real world where ";" in dirpaths is itself problematic.
16191     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16192   else
16193     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16194   fi
16195 else
16196   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16197 fi
16198 need_lib_prefix=unknown
16199 hardcode_into_libs=no
16200
16201 # when you set need_version to no, make sure it does not cause -set_version
16202 # flags to be left without arguments
16203 need_version=unknown
16204
16205 case $host_os in
16206 aix3*)
16207   version_type=linux
16208   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16209   shlibpath_var=LIBPATH
16210
16211   # AIX 3 has no versioning support, so we append a major version to the name.
16212   soname_spec='${libname}${release}${shared_ext}$major'
16213   ;;
16214
16215 aix4* | aix5*)
16216   version_type=linux
16217   need_lib_prefix=no
16218   need_version=no
16219   hardcode_into_libs=yes
16220   if test "$host_cpu" = ia64; then
16221     # AIX 5 supports IA64
16222     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16223     shlibpath_var=LD_LIBRARY_PATH
16224   else
16225     # With GCC up to 2.95.x, collect2 would create an import file
16226     # for dependence libraries.  The import file would start with
16227     # the line `#! .'.  This would cause the generated library to
16228     # depend on `.', always an invalid library.  This was fixed in
16229     # development snapshots of GCC prior to 3.0.
16230     case $host_os in
16231       aix4 | aix4.[01] | aix4.[01].*)
16232       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16233            echo ' yes '
16234            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16235         :
16236       else
16237         can_build_shared=no
16238       fi
16239       ;;
16240     esac
16241     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16242     # soname into executable. Probably we can add versioning support to
16243     # collect2, so additional links can be useful in future.
16244     if test "$aix_use_runtimelinking" = yes; then
16245       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16246       # instead of lib<name>.a to let people know that these are not
16247       # typical AIX shared libraries.
16248       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249     else
16250       # We preserve .a as extension for shared libraries through AIX4.2
16251       # and later when we are not doing run time linking.
16252       library_names_spec='${libname}${release}.a $libname.a'
16253       soname_spec='${libname}${release}${shared_ext}$major'
16254     fi
16255     shlibpath_var=LIBPATH
16256   fi
16257   ;;
16258
16259 amigaos*)
16260   library_names_spec='$libname.ixlibrary $libname.a'
16261   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16262   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'
16263   ;;
16264
16265 beos*)
16266   library_names_spec='${libname}${shared_ext}'
16267   dynamic_linker="$host_os ld.so"
16268   shlibpath_var=LIBRARY_PATH
16269   ;;
16270
16271 bsdi[45]*)
16272   version_type=linux
16273   need_version=no
16274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275   soname_spec='${libname}${release}${shared_ext}$major'
16276   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16277   shlibpath_var=LD_LIBRARY_PATH
16278   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16279   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16280   # the default ld.so.conf also contains /usr/contrib/lib and
16281   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16282   # libtool to hard-code these into programs
16283   ;;
16284
16285 cygwin* | mingw* | pw32*)
16286   version_type=windows
16287   shrext_cmds=".dll"
16288   need_version=no
16289   need_lib_prefix=no
16290
16291   case $GCC,$host_os in
16292   yes,cygwin* | yes,mingw* | yes,pw32*)
16293     library_names_spec='$libname.dll.a'
16294     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16295     postinstall_cmds='base_file=`basename \${file}`~
16296       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16297       dldir=$destdir/`dirname \$dlpath`~
16298       test -d \$dldir || mkdir -p \$dldir~
16299       $install_prog $dir/$dlname \$dldir/$dlname~
16300       chmod a+x \$dldir/$dlname'
16301     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16302       dlpath=$dir/\$dldll~
16303        $rm \$dlpath'
16304     shlibpath_overrides_runpath=yes
16305
16306     case $host_os in
16307     cygwin*)
16308       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16309       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16310       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16311       ;;
16312     mingw*)
16313       # MinGW DLLs use traditional 'lib' prefix
16314       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16315       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16316       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16317         # It is most probably a Windows format PATH printed by
16318         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16319         # path with ; separators, and with drive letters. We can handle the
16320         # drive letters (cygwin fileutils understands them), so leave them,
16321         # especially as we might pass files found there to a mingw objdump,
16322         # which wouldn't understand a cygwinified path. Ahh.
16323         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16324       else
16325         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16326       fi
16327       ;;
16328     pw32*)
16329       # pw32 DLLs use 'pw' prefix rather than 'lib'
16330       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16331       ;;
16332     esac
16333     ;;
16334
16335   *)
16336     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16337     ;;
16338   esac
16339   dynamic_linker='Win32 ld.exe'
16340   # FIXME: first we should search . and the directory the executable is in
16341   shlibpath_var=PATH
16342   ;;
16343
16344 darwin* | rhapsody*)
16345   dynamic_linker="$host_os dyld"
16346   version_type=darwin
16347   need_lib_prefix=no
16348   need_version=no
16349   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16350   soname_spec='${libname}${release}${major}$shared_ext'
16351   shlibpath_overrides_runpath=yes
16352   shlibpath_var=DYLD_LIBRARY_PATH
16353   shrext_cmds='.dylib'
16354   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16355   if test "$GCC" = yes; then
16356     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16357   else
16358     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16359   fi
16360   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16361   ;;
16362
16363 dgux*)
16364   version_type=linux
16365   need_lib_prefix=no
16366   need_version=no
16367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16368   soname_spec='${libname}${release}${shared_ext}$major'
16369   shlibpath_var=LD_LIBRARY_PATH
16370   ;;
16371
16372 freebsd1*)
16373   dynamic_linker=no
16374   ;;
16375
16376 kfreebsd*-gnu)
16377   version_type=linux
16378   need_lib_prefix=no
16379   need_version=no
16380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16381   soname_spec='${libname}${release}${shared_ext}$major'
16382   shlibpath_var=LD_LIBRARY_PATH
16383   shlibpath_overrides_runpath=no
16384   hardcode_into_libs=yes
16385   dynamic_linker='GNU ld.so'
16386   ;;
16387
16388 freebsd* | dragonfly*)
16389   # DragonFly does not have aout.  When/if they implement a new
16390   # versioning mechanism, adjust this.
16391   if test -x /usr/bin/objformat; then
16392     objformat=`/usr/bin/objformat`
16393   else
16394     case $host_os in
16395     freebsd[123]*) objformat=aout ;;
16396     *) objformat=elf ;;
16397     esac
16398   fi
16399   version_type=freebsd-$objformat
16400   case $version_type in
16401     freebsd-elf*)
16402       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16403       need_version=no
16404       need_lib_prefix=no
16405       ;;
16406     freebsd-*)
16407       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16408       need_version=yes
16409       ;;
16410   esac
16411   shlibpath_var=LD_LIBRARY_PATH
16412   case $host_os in
16413   freebsd2*)
16414     shlibpath_overrides_runpath=yes
16415     ;;
16416   freebsd3.[01]* | freebsdelf3.[01]*)
16417     shlibpath_overrides_runpath=yes
16418     hardcode_into_libs=yes
16419     ;;
16420   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16421   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16422     shlibpath_overrides_runpath=no
16423     hardcode_into_libs=yes
16424     ;;
16425   freebsd*) # from 4.6 on
16426     shlibpath_overrides_runpath=yes
16427     hardcode_into_libs=yes
16428     ;;
16429   esac
16430   ;;
16431
16432 gnu*)
16433   version_type=linux
16434   need_lib_prefix=no
16435   need_version=no
16436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16437   soname_spec='${libname}${release}${shared_ext}$major'
16438   shlibpath_var=LD_LIBRARY_PATH
16439   hardcode_into_libs=yes
16440   ;;
16441
16442 hpux9* | hpux10* | hpux11*)
16443   # Give a soname corresponding to the major version so that dld.sl refuses to
16444   # link against other versions.
16445   version_type=sunos
16446   need_lib_prefix=no
16447   need_version=no
16448   case $host_cpu in
16449   ia64*)
16450     shrext_cmds='.so'
16451     hardcode_into_libs=yes
16452     dynamic_linker="$host_os dld.so"
16453     shlibpath_var=LD_LIBRARY_PATH
16454     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16455     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16456     soname_spec='${libname}${release}${shared_ext}$major'
16457     if test "X$HPUX_IA64_MODE" = X32; then
16458       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16459     else
16460       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16461     fi
16462     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16463     ;;
16464    hppa*64*)
16465      shrext_cmds='.sl'
16466      hardcode_into_libs=yes
16467      dynamic_linker="$host_os dld.sl"
16468      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16469      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16470      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16471      soname_spec='${libname}${release}${shared_ext}$major'
16472      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16473      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16474      ;;
16475    *)
16476     shrext_cmds='.sl'
16477     dynamic_linker="$host_os dld.sl"
16478     shlibpath_var=SHLIB_PATH
16479     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16480     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16481     soname_spec='${libname}${release}${shared_ext}$major'
16482     ;;
16483   esac
16484   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16485   postinstall_cmds='chmod 555 $lib'
16486   ;;
16487
16488 interix3*)
16489   version_type=linux
16490   need_lib_prefix=no
16491   need_version=no
16492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16493   soname_spec='${libname}${release}${shared_ext}$major'
16494   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16495   shlibpath_var=LD_LIBRARY_PATH
16496   shlibpath_overrides_runpath=no
16497   hardcode_into_libs=yes
16498   ;;
16499
16500 irix5* | irix6* | nonstopux*)
16501   case $host_os in
16502     nonstopux*) version_type=nonstopux ;;
16503     *)
16504         if test "$lt_cv_prog_gnu_ld" = yes; then
16505                 version_type=linux
16506         else
16507                 version_type=irix
16508         fi ;;
16509   esac
16510   need_lib_prefix=no
16511   need_version=no
16512   soname_spec='${libname}${release}${shared_ext}$major'
16513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16514   case $host_os in
16515   irix5* | nonstopux*)
16516     libsuff= shlibsuff=
16517     ;;
16518   *)
16519     case $LD in # libtool.m4 will add one of these switches to LD
16520     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16521       libsuff= shlibsuff= libmagic=32-bit;;
16522     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16523       libsuff=32 shlibsuff=N32 libmagic=N32;;
16524     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16525       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16526     *) libsuff= shlibsuff= libmagic=never-match;;
16527     esac
16528     ;;
16529   esac
16530   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16531   shlibpath_overrides_runpath=no
16532   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16533   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16534   hardcode_into_libs=yes
16535   ;;
16536
16537 # No shared lib support for Linux oldld, aout, or coff.
16538 linux*oldld* | linux*aout* | linux*coff*)
16539   dynamic_linker=no
16540   ;;
16541
16542 # This must be Linux ELF.
16543 linux*)
16544   version_type=linux
16545   need_lib_prefix=no
16546   need_version=no
16547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16548   soname_spec='${libname}${release}${shared_ext}$major'
16549   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16550   shlibpath_var=LD_LIBRARY_PATH
16551   shlibpath_overrides_runpath=no
16552   # This implies no fast_install, which is unacceptable.
16553   # Some rework will be needed to allow for fast_install
16554   # before this can be enabled.
16555   hardcode_into_libs=yes
16556
16557   # Append ld.so.conf contents to the search path
16558   if test -f /etc/ld.so.conf; then
16559     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16560     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16561   fi
16562
16563   # We used to test for /lib/ld.so.1 and disable shared libraries on
16564   # powerpc, because MkLinux only supported shared libraries with the
16565   # GNU dynamic linker.  Since this was broken with cross compilers,
16566   # most powerpc-linux boxes support dynamic linking these days and
16567   # people can always --disable-shared, the test was removed, and we
16568   # assume the GNU/Linux dynamic linker is in use.
16569   dynamic_linker='GNU/Linux ld.so'
16570   ;;
16571
16572 knetbsd*-gnu)
16573   version_type=linux
16574   need_lib_prefix=no
16575   need_version=no
16576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16577   soname_spec='${libname}${release}${shared_ext}$major'
16578   shlibpath_var=LD_LIBRARY_PATH
16579   shlibpath_overrides_runpath=no
16580   hardcode_into_libs=yes
16581   dynamic_linker='GNU ld.so'
16582   ;;
16583
16584 netbsd*)
16585   version_type=sunos
16586   need_lib_prefix=no
16587   need_version=no
16588   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16589     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16590     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16591     dynamic_linker='NetBSD (a.out) ld.so'
16592   else
16593     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16594     soname_spec='${libname}${release}${shared_ext}$major'
16595     dynamic_linker='NetBSD ld.elf_so'
16596   fi
16597   shlibpath_var=LD_LIBRARY_PATH
16598   shlibpath_overrides_runpath=yes
16599   hardcode_into_libs=yes
16600   ;;
16601
16602 newsos6)
16603   version_type=linux
16604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16605   shlibpath_var=LD_LIBRARY_PATH
16606   shlibpath_overrides_runpath=yes
16607   ;;
16608
16609 nto-qnx*)
16610   version_type=linux
16611   need_lib_prefix=no
16612   need_version=no
16613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16614   soname_spec='${libname}${release}${shared_ext}$major'
16615   shlibpath_var=LD_LIBRARY_PATH
16616   shlibpath_overrides_runpath=yes
16617   ;;
16618
16619 openbsd*)
16620   version_type=sunos
16621   sys_lib_dlsearch_path_spec="/usr/lib"
16622   need_lib_prefix=no
16623   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16624   case $host_os in
16625     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16626     *)                         need_version=no  ;;
16627   esac
16628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16629   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16630   shlibpath_var=LD_LIBRARY_PATH
16631   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16632     case $host_os in
16633       openbsd2.[89] | openbsd2.[89].*)
16634         shlibpath_overrides_runpath=no
16635         ;;
16636       *)
16637         shlibpath_overrides_runpath=yes
16638         ;;
16639       esac
16640   else
16641     shlibpath_overrides_runpath=yes
16642   fi
16643   ;;
16644
16645 os2*)
16646   libname_spec='$name'
16647   shrext_cmds=".dll"
16648   need_lib_prefix=no
16649   library_names_spec='$libname${shared_ext} $libname.a'
16650   dynamic_linker='OS/2 ld.exe'
16651   shlibpath_var=LIBPATH
16652   ;;
16653
16654 osf3* | osf4* | osf5*)
16655   version_type=osf
16656   need_lib_prefix=no
16657   need_version=no
16658   soname_spec='${libname}${release}${shared_ext}$major'
16659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16660   shlibpath_var=LD_LIBRARY_PATH
16661   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16662   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16663   ;;
16664
16665 solaris*)
16666   version_type=linux
16667   need_lib_prefix=no
16668   need_version=no
16669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16670   soname_spec='${libname}${release}${shared_ext}$major'
16671   shlibpath_var=LD_LIBRARY_PATH
16672   shlibpath_overrides_runpath=yes
16673   hardcode_into_libs=yes
16674   # ldd complains unless libraries are executable
16675   postinstall_cmds='chmod +x $lib'
16676   ;;
16677
16678 sunos4*)
16679   version_type=sunos
16680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16681   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16682   shlibpath_var=LD_LIBRARY_PATH
16683   shlibpath_overrides_runpath=yes
16684   if test "$with_gnu_ld" = yes; then
16685     need_lib_prefix=no
16686   fi
16687   need_version=yes
16688   ;;
16689
16690 sysv4 | sysv4.3*)
16691   version_type=linux
16692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693   soname_spec='${libname}${release}${shared_ext}$major'
16694   shlibpath_var=LD_LIBRARY_PATH
16695   case $host_vendor in
16696     sni)
16697       shlibpath_overrides_runpath=no
16698       need_lib_prefix=no
16699       export_dynamic_flag_spec='${wl}-Blargedynsym'
16700       runpath_var=LD_RUN_PATH
16701       ;;
16702     siemens)
16703       need_lib_prefix=no
16704       ;;
16705     motorola)
16706       need_lib_prefix=no
16707       need_version=no
16708       shlibpath_overrides_runpath=no
16709       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16710       ;;
16711   esac
16712   ;;
16713
16714 sysv4*MP*)
16715   if test -d /usr/nec ;then
16716     version_type=linux
16717     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16718     soname_spec='$libname${shared_ext}.$major'
16719     shlibpath_var=LD_LIBRARY_PATH
16720   fi
16721   ;;
16722
16723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16724   version_type=freebsd-elf
16725   need_lib_prefix=no
16726   need_version=no
16727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16728   soname_spec='${libname}${release}${shared_ext}$major'
16729   shlibpath_var=LD_LIBRARY_PATH
16730   hardcode_into_libs=yes
16731   if test "$with_gnu_ld" = yes; then
16732     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16733     shlibpath_overrides_runpath=no
16734   else
16735     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16736     shlibpath_overrides_runpath=yes
16737     case $host_os in
16738       sco3.2v5*)
16739         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16740         ;;
16741     esac
16742   fi
16743   sys_lib_dlsearch_path_spec='/usr/lib'
16744   ;;
16745
16746 uts4*)
16747   version_type=linux
16748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749   soname_spec='${libname}${release}${shared_ext}$major'
16750   shlibpath_var=LD_LIBRARY_PATH
16751   ;;
16752
16753 *)
16754   dynamic_linker=no
16755   ;;
16756 esac
16757 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16758 echo "${ECHO_T}$dynamic_linker" >&6; }
16759 test "$dynamic_linker" = no && can_build_shared=no
16760
16761 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16762 if test "$GCC" = yes; then
16763   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16764 fi
16765
16766 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16767 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16768 hardcode_action=
16769 if test -n "$hardcode_libdir_flag_spec" || \
16770    test -n "$runpath_var" || \
16771    test "X$hardcode_automatic" = "Xyes" ; then
16772
16773   # We can hardcode non-existant directories.
16774   if test "$hardcode_direct" != no &&
16775      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16776      # have to relink, otherwise we might link with an installed library
16777      # when we should be linking with a yet-to-be-installed one
16778      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16779      test "$hardcode_minus_L" != no; then
16780     # Linking always hardcodes the temporary library directory.
16781     hardcode_action=relink
16782   else
16783     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16784     hardcode_action=immediate
16785   fi
16786 else
16787   # We cannot hardcode anything, or else we can only hardcode existing
16788   # directories.
16789   hardcode_action=unsupported
16790 fi
16791 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16792 echo "${ECHO_T}$hardcode_action" >&6; }
16793
16794 if test "$hardcode_action" = relink; then
16795   # Fast installation is not supported
16796   enable_fast_install=no
16797 elif test "$shlibpath_overrides_runpath" = yes ||
16798      test "$enable_shared" = no; then
16799   # Fast installation is not necessary
16800   enable_fast_install=needless
16801 fi
16802
16803 striplib=
16804 old_striplib=
16805 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16806 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16807 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16808   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16809   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16810   { echo "$as_me:$LINENO: result: yes" >&5
16811 echo "${ECHO_T}yes" >&6; }
16812 else
16813 # FIXME - insert some real tests, host_os isn't really good enough
16814   case $host_os in
16815    darwin*)
16816        if test -n "$STRIP" ; then
16817          striplib="$STRIP -x"
16818          { echo "$as_me:$LINENO: result: yes" >&5
16819 echo "${ECHO_T}yes" >&6; }
16820        else
16821   { echo "$as_me:$LINENO: result: no" >&5
16822 echo "${ECHO_T}no" >&6; }
16823 fi
16824        ;;
16825    *)
16826   { echo "$as_me:$LINENO: result: no" >&5
16827 echo "${ECHO_T}no" >&6; }
16828     ;;
16829   esac
16830 fi
16831
16832 if test "x$enable_dlopen" != xyes; then
16833   enable_dlopen=unknown
16834   enable_dlopen_self=unknown
16835   enable_dlopen_self_static=unknown
16836 else
16837   lt_cv_dlopen=no
16838   lt_cv_dlopen_libs=
16839
16840   case $host_os in
16841   beos*)
16842     lt_cv_dlopen="load_add_on"
16843     lt_cv_dlopen_libs=
16844     lt_cv_dlopen_self=yes
16845     ;;
16846
16847   mingw* | pw32*)
16848     lt_cv_dlopen="LoadLibrary"
16849     lt_cv_dlopen_libs=
16850    ;;
16851
16852   cygwin*)
16853     lt_cv_dlopen="dlopen"
16854     lt_cv_dlopen_libs=
16855    ;;
16856
16857   darwin*)
16858   # if libdl is installed we need to link against it
16859     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16860 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16861 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16862   echo $ECHO_N "(cached) $ECHO_C" >&6
16863 else
16864   ac_check_lib_save_LIBS=$LIBS
16865 LIBS="-ldl  $LIBS"
16866 cat >conftest.$ac_ext <<_ACEOF
16867 /* confdefs.h.  */
16868 _ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h.  */
16872
16873 /* Override any GCC internal prototype to avoid an error.
16874    Use char because int might match the return type of a GCC
16875    builtin and then its argument prototype would still apply.  */
16876 #ifdef __cplusplus
16877 extern "C"
16878 #endif
16879 char dlopen ();
16880 int
16881 main ()
16882 {
16883 return dlopen ();
16884   ;
16885   return 0;
16886 }
16887 _ACEOF
16888 rm -f conftest.$ac_objext conftest$ac_exeext
16889 if { (ac_try="$ac_link"
16890 case "(($ac_try" in
16891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892   *) ac_try_echo=$ac_try;;
16893 esac
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895   (eval "$ac_link") 2>conftest.er1
16896   ac_status=$?
16897   grep -v '^ *+' conftest.er1 >conftest.err
16898   rm -f conftest.er1
16899   cat conftest.err >&5
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); } &&
16902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16903   { (case "(($ac_try" in
16904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905   *) ac_try_echo=$ac_try;;
16906 esac
16907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908   (eval "$ac_try") 2>&5
16909   ac_status=$?
16910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911   (exit $ac_status); }; } &&
16912          { ac_try='test -s conftest$ac_exeext'
16913   { (case "(($ac_try" in
16914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915   *) ac_try_echo=$ac_try;;
16916 esac
16917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918   (eval "$ac_try") 2>&5
16919   ac_status=$?
16920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921   (exit $ac_status); }; }; then
16922   ac_cv_lib_dl_dlopen=yes
16923 else
16924   echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16926
16927         ac_cv_lib_dl_dlopen=no
16928 fi
16929
16930 rm -f core conftest.err conftest.$ac_objext \
16931       conftest$ac_exeext conftest.$ac_ext
16932 LIBS=$ac_check_lib_save_LIBS
16933 fi
16934 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16935 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16936 if test $ac_cv_lib_dl_dlopen = yes; then
16937   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16938 else
16939
16940     lt_cv_dlopen="dyld"
16941     lt_cv_dlopen_libs=
16942     lt_cv_dlopen_self=yes
16943
16944 fi
16945
16946    ;;
16947
16948   *)
16949     { echo "$as_me:$LINENO: checking for shl_load" >&5
16950 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16951 if test "${ac_cv_func_shl_load+set}" = set; then
16952   echo $ECHO_N "(cached) $ECHO_C" >&6
16953 else
16954   cat >conftest.$ac_ext <<_ACEOF
16955 /* confdefs.h.  */
16956 _ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h.  */
16960 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16962 #define shl_load innocuous_shl_load
16963
16964 /* System header to define __stub macros and hopefully few prototypes,
16965     which can conflict with char shl_load (); below.
16966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16967     <limits.h> exists even on freestanding compilers.  */
16968
16969 #ifdef __STDC__
16970 # include <limits.h>
16971 #else
16972 # include <assert.h>
16973 #endif
16974
16975 #undef shl_load
16976
16977 /* Override any GCC internal prototype to avoid an error.
16978    Use char because int might match the return type of a GCC
16979    builtin and then its argument prototype would still apply.  */
16980 #ifdef __cplusplus
16981 extern "C"
16982 #endif
16983 char shl_load ();
16984 /* The GNU C library defines this for functions which it implements
16985     to always fail with ENOSYS.  Some functions are actually named
16986     something starting with __ and the normal name is an alias.  */
16987 #if defined __stub_shl_load || defined __stub___shl_load
16988 choke me
16989 #endif
16990
16991 int
16992 main ()
16993 {
16994 return shl_load ();
16995   ;
16996   return 0;
16997 }
16998 _ACEOF
16999 rm -f conftest.$ac_objext conftest$ac_exeext
17000 if { (ac_try="$ac_link"
17001 case "(($ac_try" in
17002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003   *) ac_try_echo=$ac_try;;
17004 esac
17005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006   (eval "$ac_link") 2>conftest.er1
17007   ac_status=$?
17008   grep -v '^ *+' conftest.er1 >conftest.err
17009   rm -f conftest.er1
17010   cat conftest.err >&5
17011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012   (exit $ac_status); } &&
17013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17014   { (case "(($ac_try" in
17015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016   *) ac_try_echo=$ac_try;;
17017 esac
17018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019   (eval "$ac_try") 2>&5
17020   ac_status=$?
17021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022   (exit $ac_status); }; } &&
17023          { ac_try='test -s conftest$ac_exeext'
17024   { (case "(($ac_try" in
17025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026   *) ac_try_echo=$ac_try;;
17027 esac
17028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029   (eval "$ac_try") 2>&5
17030   ac_status=$?
17031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032   (exit $ac_status); }; }; then
17033   ac_cv_func_shl_load=yes
17034 else
17035   echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17037
17038         ac_cv_func_shl_load=no
17039 fi
17040
17041 rm -f core conftest.err conftest.$ac_objext \
17042       conftest$ac_exeext conftest.$ac_ext
17043 fi
17044 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17045 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17046 if test $ac_cv_func_shl_load = yes; then
17047   lt_cv_dlopen="shl_load"
17048 else
17049   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17050 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17051 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17052   echo $ECHO_N "(cached) $ECHO_C" >&6
17053 else
17054   ac_check_lib_save_LIBS=$LIBS
17055 LIBS="-ldld  $LIBS"
17056 cat >conftest.$ac_ext <<_ACEOF
17057 /* confdefs.h.  */
17058 _ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h.  */
17062
17063 /* Override any GCC internal prototype to avoid an error.
17064    Use char because int might match the return type of a GCC
17065    builtin and then its argument prototype would still apply.  */
17066 #ifdef __cplusplus
17067 extern "C"
17068 #endif
17069 char shl_load ();
17070 int
17071 main ()
17072 {
17073 return shl_load ();
17074   ;
17075   return 0;
17076 }
17077 _ACEOF
17078 rm -f conftest.$ac_objext conftest$ac_exeext
17079 if { (ac_try="$ac_link"
17080 case "(($ac_try" in
17081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082   *) ac_try_echo=$ac_try;;
17083 esac
17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085   (eval "$ac_link") 2>conftest.er1
17086   ac_status=$?
17087   grep -v '^ *+' conftest.er1 >conftest.err
17088   rm -f conftest.er1
17089   cat conftest.err >&5
17090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091   (exit $ac_status); } &&
17092          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17093   { (case "(($ac_try" in
17094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095   *) ac_try_echo=$ac_try;;
17096 esac
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098   (eval "$ac_try") 2>&5
17099   ac_status=$?
17100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101   (exit $ac_status); }; } &&
17102          { ac_try='test -s conftest$ac_exeext'
17103   { (case "(($ac_try" in
17104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17105   *) ac_try_echo=$ac_try;;
17106 esac
17107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108   (eval "$ac_try") 2>&5
17109   ac_status=$?
17110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111   (exit $ac_status); }; }; then
17112   ac_cv_lib_dld_shl_load=yes
17113 else
17114   echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17116
17117         ac_cv_lib_dld_shl_load=no
17118 fi
17119
17120 rm -f core conftest.err conftest.$ac_objext \
17121       conftest$ac_exeext conftest.$ac_ext
17122 LIBS=$ac_check_lib_save_LIBS
17123 fi
17124 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17125 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17126 if test $ac_cv_lib_dld_shl_load = yes; then
17127   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17128 else
17129   { echo "$as_me:$LINENO: checking for dlopen" >&5
17130 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17131 if test "${ac_cv_func_dlopen+set}" = set; then
17132   echo $ECHO_N "(cached) $ECHO_C" >&6
17133 else
17134   cat >conftest.$ac_ext <<_ACEOF
17135 /* confdefs.h.  */
17136 _ACEOF
17137 cat confdefs.h >>conftest.$ac_ext
17138 cat >>conftest.$ac_ext <<_ACEOF
17139 /* end confdefs.h.  */
17140 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17142 #define dlopen innocuous_dlopen
17143
17144 /* System header to define __stub macros and hopefully few prototypes,
17145     which can conflict with char dlopen (); below.
17146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17147     <limits.h> exists even on freestanding compilers.  */
17148
17149 #ifdef __STDC__
17150 # include <limits.h>
17151 #else
17152 # include <assert.h>
17153 #endif
17154
17155 #undef dlopen
17156
17157 /* Override any GCC internal prototype to avoid an error.
17158    Use char because int might match the return type of a GCC
17159    builtin and then its argument prototype would still apply.  */
17160 #ifdef __cplusplus
17161 extern "C"
17162 #endif
17163 char dlopen ();
17164 /* The GNU C library defines this for functions which it implements
17165     to always fail with ENOSYS.  Some functions are actually named
17166     something starting with __ and the normal name is an alias.  */
17167 #if defined __stub_dlopen || defined __stub___dlopen
17168 choke me
17169 #endif
17170
17171 int
17172 main ()
17173 {
17174 return dlopen ();
17175   ;
17176   return 0;
17177 }
17178 _ACEOF
17179 rm -f conftest.$ac_objext conftest$ac_exeext
17180 if { (ac_try="$ac_link"
17181 case "(($ac_try" in
17182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183   *) ac_try_echo=$ac_try;;
17184 esac
17185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186   (eval "$ac_link") 2>conftest.er1
17187   ac_status=$?
17188   grep -v '^ *+' conftest.er1 >conftest.err
17189   rm -f conftest.er1
17190   cat conftest.err >&5
17191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192   (exit $ac_status); } &&
17193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17194   { (case "(($ac_try" in
17195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196   *) ac_try_echo=$ac_try;;
17197 esac
17198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199   (eval "$ac_try") 2>&5
17200   ac_status=$?
17201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202   (exit $ac_status); }; } &&
17203          { ac_try='test -s conftest$ac_exeext'
17204   { (case "(($ac_try" in
17205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206   *) ac_try_echo=$ac_try;;
17207 esac
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209   (eval "$ac_try") 2>&5
17210   ac_status=$?
17211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212   (exit $ac_status); }; }; then
17213   ac_cv_func_dlopen=yes
17214 else
17215   echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17217
17218         ac_cv_func_dlopen=no
17219 fi
17220
17221 rm -f core conftest.err conftest.$ac_objext \
17222       conftest$ac_exeext conftest.$ac_ext
17223 fi
17224 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17225 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17226 if test $ac_cv_func_dlopen = yes; then
17227   lt_cv_dlopen="dlopen"
17228 else
17229   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17230 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17231 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17232   echo $ECHO_N "(cached) $ECHO_C" >&6
17233 else
17234   ac_check_lib_save_LIBS=$LIBS
17235 LIBS="-ldl  $LIBS"
17236 cat >conftest.$ac_ext <<_ACEOF
17237 /* confdefs.h.  */
17238 _ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h.  */
17242
17243 /* Override any GCC internal prototype to avoid an error.
17244    Use char because int might match the return type of a GCC
17245    builtin and then its argument prototype would still apply.  */
17246 #ifdef __cplusplus
17247 extern "C"
17248 #endif
17249 char dlopen ();
17250 int
17251 main ()
17252 {
17253 return dlopen ();
17254   ;
17255   return 0;
17256 }
17257 _ACEOF
17258 rm -f conftest.$ac_objext conftest$ac_exeext
17259 if { (ac_try="$ac_link"
17260 case "(($ac_try" in
17261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262   *) ac_try_echo=$ac_try;;
17263 esac
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265   (eval "$ac_link") 2>conftest.er1
17266   ac_status=$?
17267   grep -v '^ *+' conftest.er1 >conftest.err
17268   rm -f conftest.er1
17269   cat conftest.err >&5
17270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271   (exit $ac_status); } &&
17272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17273   { (case "(($ac_try" in
17274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275   *) ac_try_echo=$ac_try;;
17276 esac
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278   (eval "$ac_try") 2>&5
17279   ac_status=$?
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); }; } &&
17282          { ac_try='test -s conftest$ac_exeext'
17283   { (case "(($ac_try" in
17284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285   *) ac_try_echo=$ac_try;;
17286 esac
17287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288   (eval "$ac_try") 2>&5
17289   ac_status=$?
17290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291   (exit $ac_status); }; }; then
17292   ac_cv_lib_dl_dlopen=yes
17293 else
17294   echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17296
17297         ac_cv_lib_dl_dlopen=no
17298 fi
17299
17300 rm -f core conftest.err conftest.$ac_objext \
17301       conftest$ac_exeext conftest.$ac_ext
17302 LIBS=$ac_check_lib_save_LIBS
17303 fi
17304 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17305 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17306 if test $ac_cv_lib_dl_dlopen = yes; then
17307   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17308 else
17309   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17310 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17311 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17312   echo $ECHO_N "(cached) $ECHO_C" >&6
17313 else
17314   ac_check_lib_save_LIBS=$LIBS
17315 LIBS="-lsvld  $LIBS"
17316 cat >conftest.$ac_ext <<_ACEOF
17317 /* confdefs.h.  */
17318 _ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h.  */
17322
17323 /* Override any GCC internal prototype to avoid an error.
17324    Use char because int might match the return type of a GCC
17325    builtin and then its argument prototype would still apply.  */
17326 #ifdef __cplusplus
17327 extern "C"
17328 #endif
17329 char dlopen ();
17330 int
17331 main ()
17332 {
17333 return dlopen ();
17334   ;
17335   return 0;
17336 }
17337 _ACEOF
17338 rm -f conftest.$ac_objext conftest$ac_exeext
17339 if { (ac_try="$ac_link"
17340 case "(($ac_try" in
17341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342   *) ac_try_echo=$ac_try;;
17343 esac
17344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345   (eval "$ac_link") 2>conftest.er1
17346   ac_status=$?
17347   grep -v '^ *+' conftest.er1 >conftest.err
17348   rm -f conftest.er1
17349   cat conftest.err >&5
17350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351   (exit $ac_status); } &&
17352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17353   { (case "(($ac_try" in
17354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355   *) ac_try_echo=$ac_try;;
17356 esac
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358   (eval "$ac_try") 2>&5
17359   ac_status=$?
17360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361   (exit $ac_status); }; } &&
17362          { ac_try='test -s conftest$ac_exeext'
17363   { (case "(($ac_try" in
17364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365   *) ac_try_echo=$ac_try;;
17366 esac
17367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17368   (eval "$ac_try") 2>&5
17369   ac_status=$?
17370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371   (exit $ac_status); }; }; then
17372   ac_cv_lib_svld_dlopen=yes
17373 else
17374   echo "$as_me: failed program was:" >&5
17375 sed 's/^/| /' conftest.$ac_ext >&5
17376
17377         ac_cv_lib_svld_dlopen=no
17378 fi
17379
17380 rm -f core conftest.err conftest.$ac_objext \
17381       conftest$ac_exeext conftest.$ac_ext
17382 LIBS=$ac_check_lib_save_LIBS
17383 fi
17384 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17385 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17386 if test $ac_cv_lib_svld_dlopen = yes; then
17387   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17388 else
17389   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17390 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17391 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17392   echo $ECHO_N "(cached) $ECHO_C" >&6
17393 else
17394   ac_check_lib_save_LIBS=$LIBS
17395 LIBS="-ldld  $LIBS"
17396 cat >conftest.$ac_ext <<_ACEOF
17397 /* confdefs.h.  */
17398 _ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h.  */
17402
17403 /* Override any GCC internal prototype to avoid an error.
17404    Use char because int might match the return type of a GCC
17405    builtin and then its argument prototype would still apply.  */
17406 #ifdef __cplusplus
17407 extern "C"
17408 #endif
17409 char dld_link ();
17410 int
17411 main ()
17412 {
17413 return dld_link ();
17414   ;
17415   return 0;
17416 }
17417 _ACEOF
17418 rm -f conftest.$ac_objext conftest$ac_exeext
17419 if { (ac_try="$ac_link"
17420 case "(($ac_try" in
17421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422   *) ac_try_echo=$ac_try;;
17423 esac
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425   (eval "$ac_link") 2>conftest.er1
17426   ac_status=$?
17427   grep -v '^ *+' conftest.er1 >conftest.err
17428   rm -f conftest.er1
17429   cat conftest.err >&5
17430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431   (exit $ac_status); } &&
17432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17433   { (case "(($ac_try" in
17434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435   *) ac_try_echo=$ac_try;;
17436 esac
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438   (eval "$ac_try") 2>&5
17439   ac_status=$?
17440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441   (exit $ac_status); }; } &&
17442          { ac_try='test -s conftest$ac_exeext'
17443   { (case "(($ac_try" in
17444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445   *) ac_try_echo=$ac_try;;
17446 esac
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448   (eval "$ac_try") 2>&5
17449   ac_status=$?
17450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451   (exit $ac_status); }; }; then
17452   ac_cv_lib_dld_dld_link=yes
17453 else
17454   echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17456
17457         ac_cv_lib_dld_dld_link=no
17458 fi
17459
17460 rm -f core conftest.err conftest.$ac_objext \
17461       conftest$ac_exeext conftest.$ac_ext
17462 LIBS=$ac_check_lib_save_LIBS
17463 fi
17464 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17465 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17466 if test $ac_cv_lib_dld_dld_link = yes; then
17467   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17468 fi
17469
17470
17471 fi
17472
17473
17474 fi
17475
17476
17477 fi
17478
17479
17480 fi
17481
17482
17483 fi
17484
17485     ;;
17486   esac
17487
17488   if test "x$lt_cv_dlopen" != xno; then
17489     enable_dlopen=yes
17490   else
17491     enable_dlopen=no
17492   fi
17493
17494   case $lt_cv_dlopen in
17495   dlopen)
17496     save_CPPFLAGS="$CPPFLAGS"
17497     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17498
17499     save_LDFLAGS="$LDFLAGS"
17500     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17501
17502     save_LIBS="$LIBS"
17503     LIBS="$lt_cv_dlopen_libs $LIBS"
17504
17505     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17506 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17507 if test "${lt_cv_dlopen_self+set}" = set; then
17508   echo $ECHO_N "(cached) $ECHO_C" >&6
17509 else
17510           if test "$cross_compiling" = yes; then :
17511   lt_cv_dlopen_self=cross
17512 else
17513   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17514   lt_status=$lt_dlunknown
17515   cat > conftest.$ac_ext <<EOF
17516 #line 17516 "configure"
17517 #include "confdefs.h"
17518
17519 #if HAVE_DLFCN_H
17520 #include <dlfcn.h>
17521 #endif
17522
17523 #include <stdio.h>
17524
17525 #ifdef RTLD_GLOBAL
17526 #  define LT_DLGLOBAL           RTLD_GLOBAL
17527 #else
17528 #  ifdef DL_GLOBAL
17529 #    define LT_DLGLOBAL         DL_GLOBAL
17530 #  else
17531 #    define LT_DLGLOBAL         0
17532 #  endif
17533 #endif
17534
17535 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17536    find out it does not work in some platform. */
17537 #ifndef LT_DLLAZY_OR_NOW
17538 #  ifdef RTLD_LAZY
17539 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17540 #  else
17541 #    ifdef DL_LAZY
17542 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17543 #    else
17544 #      ifdef RTLD_NOW
17545 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17546 #      else
17547 #        ifdef DL_NOW
17548 #          define LT_DLLAZY_OR_NOW      DL_NOW
17549 #        else
17550 #          define LT_DLLAZY_OR_NOW      0
17551 #        endif
17552 #      endif
17553 #    endif
17554 #  endif
17555 #endif
17556
17557 #ifdef __cplusplus
17558 extern "C" void exit (int);
17559 #endif
17560
17561 void fnord() { int i=42;}
17562 int main ()
17563 {
17564   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17565   int status = $lt_dlunknown;
17566
17567   if (self)
17568     {
17569       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17570       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17571       /* dlclose (self); */
17572     }
17573   else
17574     puts (dlerror ());
17575
17576     exit (status);
17577 }
17578 EOF
17579   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17580   (eval $ac_link) 2>&5
17581   ac_status=$?
17582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17584     (./conftest; exit; ) >&5 2>/dev/null
17585     lt_status=$?
17586     case x$lt_status in
17587       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17588       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17589       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17590     esac
17591   else :
17592     # compilation failed
17593     lt_cv_dlopen_self=no
17594   fi
17595 fi
17596 rm -fr conftest*
17597
17598
17599 fi
17600 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17601 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17602
17603     if test "x$lt_cv_dlopen_self" = xyes; then
17604       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17605       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17606 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17607 if test "${lt_cv_dlopen_self_static+set}" = set; then
17608   echo $ECHO_N "(cached) $ECHO_C" >&6
17609 else
17610           if test "$cross_compiling" = yes; then :
17611   lt_cv_dlopen_self_static=cross
17612 else
17613   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17614   lt_status=$lt_dlunknown
17615   cat > conftest.$ac_ext <<EOF
17616 #line 17616 "configure"
17617 #include "confdefs.h"
17618
17619 #if HAVE_DLFCN_H
17620 #include <dlfcn.h>
17621 #endif
17622
17623 #include <stdio.h>
17624
17625 #ifdef RTLD_GLOBAL
17626 #  define LT_DLGLOBAL           RTLD_GLOBAL
17627 #else
17628 #  ifdef DL_GLOBAL
17629 #    define LT_DLGLOBAL         DL_GLOBAL
17630 #  else
17631 #    define LT_DLGLOBAL         0
17632 #  endif
17633 #endif
17634
17635 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17636    find out it does not work in some platform. */
17637 #ifndef LT_DLLAZY_OR_NOW
17638 #  ifdef RTLD_LAZY
17639 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17640 #  else
17641 #    ifdef DL_LAZY
17642 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17643 #    else
17644 #      ifdef RTLD_NOW
17645 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17646 #      else
17647 #        ifdef DL_NOW
17648 #          define LT_DLLAZY_OR_NOW      DL_NOW
17649 #        else
17650 #          define LT_DLLAZY_OR_NOW      0
17651 #        endif
17652 #      endif
17653 #    endif
17654 #  endif
17655 #endif
17656
17657 #ifdef __cplusplus
17658 extern "C" void exit (int);
17659 #endif
17660
17661 void fnord() { int i=42;}
17662 int main ()
17663 {
17664   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17665   int status = $lt_dlunknown;
17666
17667   if (self)
17668     {
17669       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17670       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17671       /* dlclose (self); */
17672     }
17673   else
17674     puts (dlerror ());
17675
17676     exit (status);
17677 }
17678 EOF
17679   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17680   (eval $ac_link) 2>&5
17681   ac_status=$?
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17684     (./conftest; exit; ) >&5 2>/dev/null
17685     lt_status=$?
17686     case x$lt_status in
17687       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17688       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17689       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17690     esac
17691   else :
17692     # compilation failed
17693     lt_cv_dlopen_self_static=no
17694   fi
17695 fi
17696 rm -fr conftest*
17697
17698
17699 fi
17700 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17701 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17702     fi
17703
17704     CPPFLAGS="$save_CPPFLAGS"
17705     LDFLAGS="$save_LDFLAGS"
17706     LIBS="$save_LIBS"
17707     ;;
17708   esac
17709
17710   case $lt_cv_dlopen_self in
17711   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17712   *) enable_dlopen_self=unknown ;;
17713   esac
17714
17715   case $lt_cv_dlopen_self_static in
17716   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17717   *) enable_dlopen_self_static=unknown ;;
17718   esac
17719 fi
17720
17721
17722 # Report which library types will actually be built
17723 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17724 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17725 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17726 echo "${ECHO_T}$can_build_shared" >&6; }
17727
17728 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17729 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17730 test "$can_build_shared" = "no" && enable_shared=no
17731
17732 # On AIX, shared libraries and static libraries use the same namespace, and
17733 # are all built from PIC.
17734 case $host_os in
17735 aix3*)
17736   test "$enable_shared" = yes && enable_static=no
17737   if test -n "$RANLIB"; then
17738     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17739     postinstall_cmds='$RANLIB $lib'
17740   fi
17741   ;;
17742
17743 aix4* | aix5*)
17744   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17745     test "$enable_shared" = yes && enable_static=no
17746   fi
17747     ;;
17748 esac
17749 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17750 echo "${ECHO_T}$enable_shared" >&6; }
17751
17752 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17753 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17754 # Make sure either enable_shared or enable_static is yes.
17755 test "$enable_shared" = yes || enable_static=yes
17756 { echo "$as_me:$LINENO: result: $enable_static" >&5
17757 echo "${ECHO_T}$enable_static" >&6; }
17758
17759 # The else clause should only fire when bootstrapping the
17760 # libtool distribution, otherwise you forgot to ship ltmain.sh
17761 # with your package, and you will get complaints that there are
17762 # no rules to generate ltmain.sh.
17763 if test -f "$ltmain"; then
17764   # See if we are running on zsh, and set the options which allow our commands through
17765   # without removal of \ escapes.
17766   if test -n "${ZSH_VERSION+set}" ; then
17767     setopt NO_GLOB_SUBST
17768   fi
17769   # Now quote all the things that may contain metacharacters while being
17770   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17771   # variables and quote the copies for generation of the libtool script.
17772   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17773     SED SHELL STRIP \
17774     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17775     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17776     deplibs_check_method reload_flag reload_cmds need_locks \
17777     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17778     lt_cv_sys_global_symbol_to_c_name_address \
17779     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17780     old_postinstall_cmds old_postuninstall_cmds \
17781     compiler \
17782     CC \
17783     LD \
17784     lt_prog_compiler_wl \
17785     lt_prog_compiler_pic \
17786     lt_prog_compiler_static \
17787     lt_prog_compiler_no_builtin_flag \
17788     export_dynamic_flag_spec \
17789     thread_safe_flag_spec \
17790     whole_archive_flag_spec \
17791     enable_shared_with_static_runtimes \
17792     old_archive_cmds \
17793     old_archive_from_new_cmds \
17794     predep_objects \
17795     postdep_objects \
17796     predeps \
17797     postdeps \
17798     compiler_lib_search_path \
17799     archive_cmds \
17800     archive_expsym_cmds \
17801     postinstall_cmds \
17802     postuninstall_cmds \
17803     old_archive_from_expsyms_cmds \
17804     allow_undefined_flag \
17805     no_undefined_flag \
17806     export_symbols_cmds \
17807     hardcode_libdir_flag_spec \
17808     hardcode_libdir_flag_spec_ld \
17809     hardcode_libdir_separator \
17810     hardcode_automatic \
17811     module_cmds \
17812     module_expsym_cmds \
17813     lt_cv_prog_compiler_c_o \
17814     exclude_expsyms \
17815     include_expsyms; do
17816
17817     case $var in
17818     old_archive_cmds | \
17819     old_archive_from_new_cmds | \
17820     archive_cmds | \
17821     archive_expsym_cmds | \
17822     module_cmds | \
17823     module_expsym_cmds | \
17824     old_archive_from_expsyms_cmds | \
17825     export_symbols_cmds | \
17826     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17827     postinstall_cmds | postuninstall_cmds | \
17828     old_postinstall_cmds | old_postuninstall_cmds | \
17829     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17830       # Double-quote double-evaled strings.
17831       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17832       ;;
17833     *)
17834       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17835       ;;
17836     esac
17837   done
17838
17839   case $lt_echo in
17840   *'\$0 --fallback-echo"')
17841     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17842     ;;
17843   esac
17844
17845 cfgfile="${ofile}T"
17846   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17847   $rm -f "$cfgfile"
17848   { echo "$as_me:$LINENO: creating $ofile" >&5
17849 echo "$as_me: creating $ofile" >&6;}
17850
17851   cat <<__EOF__ >> "$cfgfile"
17852 #! $SHELL
17853
17854 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17855 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17856 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17857 #
17858 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17859 # Free Software Foundation, Inc.
17860 #
17861 # This file is part of GNU Libtool:
17862 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17863 #
17864 # This program is free software; you can redistribute it and/or modify
17865 # it under the terms of the GNU General Public License as published by
17866 # the Free Software Foundation; either version 2 of the License, or
17867 # (at your option) any later version.
17868 #
17869 # This program is distributed in the hope that it will be useful, but
17870 # WITHOUT ANY WARRANTY; without even the implied warranty of
17871 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17872 # General Public License for more details.
17873 #
17874 # You should have received a copy of the GNU General Public License
17875 # along with this program; if not, write to the Free Software
17876 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17877 #
17878 # As a special exception to the GNU General Public License, if you
17879 # distribute this file as part of a program that contains a
17880 # configuration script generated by Autoconf, you may include it under
17881 # the same distribution terms that you use for the rest of that program.
17882
17883 # A sed program that does not truncate output.
17884 SED=$lt_SED
17885
17886 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17887 Xsed="$SED -e 1s/^X//"
17888
17889 # The HP-UX ksh and POSIX shell print the target directory to stdout
17890 # if CDPATH is set.
17891 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17892
17893 # The names of the tagged configurations supported by this script.
17894 available_tags=
17895
17896 # ### BEGIN LIBTOOL CONFIG
17897
17898 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17899
17900 # Shell to use when invoking shell scripts.
17901 SHELL=$lt_SHELL
17902
17903 # Whether or not to build shared libraries.
17904 build_libtool_libs=$enable_shared
17905
17906 # Whether or not to build static libraries.
17907 build_old_libs=$enable_static
17908
17909 # Whether or not to add -lc for building shared libraries.
17910 build_libtool_need_lc=$archive_cmds_need_lc
17911
17912 # Whether or not to disallow shared libs when runtime libs are static
17913 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17914
17915 # Whether or not to optimize for fast installation.
17916 fast_install=$enable_fast_install
17917
17918 # The host system.
17919 host_alias=$host_alias
17920 host=$host
17921 host_os=$host_os
17922
17923 # The build system.
17924 build_alias=$build_alias
17925 build=$build
17926 build_os=$build_os
17927
17928 # An echo program that does not interpret backslashes.
17929 echo=$lt_echo
17930
17931 # The archiver.
17932 AR=$lt_AR
17933 AR_FLAGS=$lt_AR_FLAGS
17934
17935 # A C compiler.
17936 LTCC=$lt_LTCC
17937
17938 # LTCC compiler flags.
17939 LTCFLAGS=$lt_LTCFLAGS
17940
17941 # A language-specific compiler.
17942 CC=$lt_compiler
17943
17944 # Is the compiler the GNU C compiler?
17945 with_gcc=$GCC
17946
17947 # An ERE matcher.
17948 EGREP=$lt_EGREP
17949
17950 # The linker used to build libraries.
17951 LD=$lt_LD
17952
17953 # Whether we need hard or soft links.
17954 LN_S=$lt_LN_S
17955
17956 # A BSD-compatible nm program.
17957 NM=$lt_NM
17958
17959 # A symbol stripping program
17960 STRIP=$lt_STRIP
17961
17962 # Used to examine libraries when file_magic_cmd begins "file"
17963 MAGIC_CMD=$MAGIC_CMD
17964
17965 # Used on cygwin: DLL creation program.
17966 DLLTOOL="$DLLTOOL"
17967
17968 # Used on cygwin: object dumper.
17969 OBJDUMP="$OBJDUMP"
17970
17971 # Used on cygwin: assembler.
17972 AS="$AS"
17973
17974 # The name of the directory that contains temporary libtool files.
17975 objdir=$objdir
17976
17977 # How to create reloadable object files.
17978 reload_flag=$lt_reload_flag
17979 reload_cmds=$lt_reload_cmds
17980
17981 # How to pass a linker flag through the compiler.
17982 wl=$lt_lt_prog_compiler_wl
17983
17984 # Object file suffix (normally "o").
17985 objext="$ac_objext"
17986
17987 # Old archive suffix (normally "a").
17988 libext="$libext"
17989
17990 # Shared library suffix (normally ".so").
17991 shrext_cmds='$shrext_cmds'
17992
17993 # Executable file suffix (normally "").
17994 exeext="$exeext"
17995
17996 # Additional compiler flags for building library objects.
17997 pic_flag=$lt_lt_prog_compiler_pic
17998 pic_mode=$pic_mode
17999
18000 # What is the maximum length of a command?
18001 max_cmd_len=$lt_cv_sys_max_cmd_len
18002
18003 # Does compiler simultaneously support -c and -o options?
18004 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18005
18006 # Must we lock files when doing compilation?
18007 need_locks=$lt_need_locks
18008
18009 # Do we need the lib prefix for modules?
18010 need_lib_prefix=$need_lib_prefix
18011
18012 # Do we need a version for libraries?
18013 need_version=$need_version
18014
18015 # Whether dlopen is supported.
18016 dlopen_support=$enable_dlopen
18017
18018 # Whether dlopen of programs is supported.
18019 dlopen_self=$enable_dlopen_self
18020
18021 # Whether dlopen of statically linked programs is supported.
18022 dlopen_self_static=$enable_dlopen_self_static
18023
18024 # Compiler flag to prevent dynamic linking.
18025 link_static_flag=$lt_lt_prog_compiler_static
18026
18027 # Compiler flag to turn off builtin functions.
18028 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18029
18030 # Compiler flag to allow reflexive dlopens.
18031 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18032
18033 # Compiler flag to generate shared objects directly from archives.
18034 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18035
18036 # Compiler flag to generate thread-safe objects.
18037 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18038
18039 # Library versioning type.
18040 version_type=$version_type
18041
18042 # Format of library name prefix.
18043 libname_spec=$lt_libname_spec
18044
18045 # List of archive names.  First name is the real one, the rest are links.
18046 # The last name is the one that the linker finds with -lNAME.
18047 library_names_spec=$lt_library_names_spec
18048
18049 # The coded name of the library, if different from the real name.
18050 soname_spec=$lt_soname_spec
18051
18052 # Commands used to build and install an old-style archive.
18053 RANLIB=$lt_RANLIB
18054 old_archive_cmds=$lt_old_archive_cmds
18055 old_postinstall_cmds=$lt_old_postinstall_cmds
18056 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18057
18058 # Create an old-style archive from a shared archive.
18059 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18060
18061 # Create a temporary old-style archive to link instead of a shared archive.
18062 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18063
18064 # Commands used to build and install a shared archive.
18065 archive_cmds=$lt_archive_cmds
18066 archive_expsym_cmds=$lt_archive_expsym_cmds
18067 postinstall_cmds=$lt_postinstall_cmds
18068 postuninstall_cmds=$lt_postuninstall_cmds
18069
18070 # Commands used to build a loadable module (assumed same as above if empty)
18071 module_cmds=$lt_module_cmds
18072 module_expsym_cmds=$lt_module_expsym_cmds
18073
18074 # Commands to strip libraries.
18075 old_striplib=$lt_old_striplib
18076 striplib=$lt_striplib
18077
18078 # Dependencies to place before the objects being linked to create a
18079 # shared library.
18080 predep_objects=$lt_predep_objects
18081
18082 # Dependencies to place after the objects being linked to create a
18083 # shared library.
18084 postdep_objects=$lt_postdep_objects
18085
18086 # Dependencies to place before the objects being linked to create a
18087 # shared library.
18088 predeps=$lt_predeps
18089
18090 # Dependencies to place after the objects being linked to create a
18091 # shared library.
18092 postdeps=$lt_postdeps
18093
18094 # The library search path used internally by the compiler when linking
18095 # a shared library.
18096 compiler_lib_search_path=$lt_compiler_lib_search_path
18097
18098 # Method to check whether dependent libraries are shared objects.
18099 deplibs_check_method=$lt_deplibs_check_method
18100
18101 # Command to use when deplibs_check_method == file_magic.
18102 file_magic_cmd=$lt_file_magic_cmd
18103
18104 # Flag that allows shared libraries with undefined symbols to be built.
18105 allow_undefined_flag=$lt_allow_undefined_flag
18106
18107 # Flag that forces no undefined symbols.
18108 no_undefined_flag=$lt_no_undefined_flag
18109
18110 # Commands used to finish a libtool library installation in a directory.
18111 finish_cmds=$lt_finish_cmds
18112
18113 # Same as above, but a single script fragment to be evaled but not shown.
18114 finish_eval=$lt_finish_eval
18115
18116 # Take the output of nm and produce a listing of raw symbols and C names.
18117 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18118
18119 # Transform the output of nm in a proper C declaration
18120 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18121
18122 # Transform the output of nm in a C name address pair
18123 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18124
18125 # This is the shared library runtime path variable.
18126 runpath_var=$runpath_var
18127
18128 # This is the shared library path variable.
18129 shlibpath_var=$shlibpath_var
18130
18131 # Is shlibpath searched before the hard-coded library search path?
18132 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18133
18134 # How to hardcode a shared library path into an executable.
18135 hardcode_action=$hardcode_action
18136
18137 # Whether we should hardcode library paths into libraries.
18138 hardcode_into_libs=$hardcode_into_libs
18139
18140 # Flag to hardcode \$libdir into a binary during linking.
18141 # This must work even if \$libdir does not exist.
18142 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18143
18144 # If ld is used when linking, flag to hardcode \$libdir into
18145 # a binary during linking. This must work even if \$libdir does
18146 # not exist.
18147 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18148
18149 # Whether we need a single -rpath flag with a separated argument.
18150 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18151
18152 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18153 # resulting binary.
18154 hardcode_direct=$hardcode_direct
18155
18156 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18157 # resulting binary.
18158 hardcode_minus_L=$hardcode_minus_L
18159
18160 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18161 # the resulting binary.
18162 hardcode_shlibpath_var=$hardcode_shlibpath_var
18163
18164 # Set to yes if building a shared library automatically hardcodes DIR into the library
18165 # and all subsequent libraries and executables linked against it.
18166 hardcode_automatic=$hardcode_automatic
18167
18168 # Variables whose values should be saved in libtool wrapper scripts and
18169 # restored at relink time.
18170 variables_saved_for_relink="$variables_saved_for_relink"
18171
18172 # Whether libtool must link a program against all its dependency libraries.
18173 link_all_deplibs=$link_all_deplibs
18174
18175 # Compile-time system search path for libraries
18176 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18177
18178 # Run-time system search path for libraries
18179 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18180
18181 # Fix the shell variable \$srcfile for the compiler.
18182 fix_srcfile_path="$fix_srcfile_path"
18183
18184 # Set to yes if exported symbols are required.
18185 always_export_symbols=$always_export_symbols
18186
18187 # The commands to list exported symbols.
18188 export_symbols_cmds=$lt_export_symbols_cmds
18189
18190 # The commands to extract the exported symbol list from a shared archive.
18191 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18192
18193 # Symbols that should not be listed in the preloaded symbols.
18194 exclude_expsyms=$lt_exclude_expsyms
18195
18196 # Symbols that must always be exported.
18197 include_expsyms=$lt_include_expsyms
18198
18199 # ### END LIBTOOL CONFIG
18200
18201 __EOF__
18202
18203
18204   case $host_os in
18205   aix3*)
18206     cat <<\EOF >> "$cfgfile"
18207
18208 # AIX sometimes has problems with the GCC collect2 program.  For some
18209 # reason, if we set the COLLECT_NAMES environment variable, the problems
18210 # vanish in a puff of smoke.
18211 if test "X${COLLECT_NAMES+set}" != Xset; then
18212   COLLECT_NAMES=
18213   export COLLECT_NAMES
18214 fi
18215 EOF
18216     ;;
18217   esac
18218
18219   # We use sed instead of cat because bash on DJGPP gets confused if
18220   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18221   # text mode, it properly converts lines to CR/LF.  This bash problem
18222   # is reportedly fixed, but why not run on old versions too?
18223   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18224
18225   mv -f "$cfgfile" "$ofile" || \
18226     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18227   chmod +x "$ofile"
18228
18229 else
18230   # If there is no Makefile yet, we rely on a make rule to execute
18231   # `config.status --recheck' to rerun these tests and create the
18232   # libtool script then.
18233   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18234   if test -f "$ltmain_in"; then
18235     test -f Makefile && make "$ltmain"
18236   fi
18237 fi
18238
18239
18240 ac_ext=c
18241 ac_cpp='$CPP $CPPFLAGS'
18242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18245
18246 CC="$lt_save_CC"
18247
18248
18249 # Check whether --with-tags was given.
18250 if test "${with_tags+set}" = set; then
18251   withval=$with_tags; tagnames="$withval"
18252 fi
18253
18254
18255 if test -f "$ltmain" && test -n "$tagnames"; then
18256   if test ! -f "${ofile}"; then
18257     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18258 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18259   fi
18260
18261   if test -z "$LTCC"; then
18262     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18263     if test -z "$LTCC"; then
18264       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18265 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18266     else
18267       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18268 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18269     fi
18270   fi
18271   if test -z "$LTCFLAGS"; then
18272     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18273   fi
18274
18275   # Extract list of available tagged configurations in $ofile.
18276   # Note that this assumes the entire list is on one line.
18277   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18278
18279   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18280   for tagname in $tagnames; do
18281     IFS="$lt_save_ifs"
18282     # Check whether tagname contains only valid characters
18283     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18284     "") ;;
18285     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18286 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18287    { (exit 1); exit 1; }; }
18288         ;;
18289     esac
18290
18291     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18292     then
18293       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18294 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18295    { (exit 1); exit 1; }; }
18296     fi
18297
18298     # Update the list of available tags.
18299     if test -n "$tagname"; then
18300       echo appending configuration tag \"$tagname\" to $ofile
18301
18302       case $tagname in
18303       CXX)
18304         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18305             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18306             (test "X$CXX" != "Xg++"))) ; then
18307           ac_ext=cpp
18308 ac_cpp='$CXXCPP $CPPFLAGS'
18309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18312
18313
18314
18315
18316 archive_cmds_need_lc_CXX=no
18317 allow_undefined_flag_CXX=
18318 always_export_symbols_CXX=no
18319 archive_expsym_cmds_CXX=
18320 export_dynamic_flag_spec_CXX=
18321 hardcode_direct_CXX=no
18322 hardcode_libdir_flag_spec_CXX=
18323 hardcode_libdir_flag_spec_ld_CXX=
18324 hardcode_libdir_separator_CXX=
18325 hardcode_minus_L_CXX=no
18326 hardcode_shlibpath_var_CXX=unsupported
18327 hardcode_automatic_CXX=no
18328 module_cmds_CXX=
18329 module_expsym_cmds_CXX=
18330 link_all_deplibs_CXX=unknown
18331 old_archive_cmds_CXX=$old_archive_cmds
18332 no_undefined_flag_CXX=
18333 whole_archive_flag_spec_CXX=
18334 enable_shared_with_static_runtimes_CXX=no
18335
18336 # Dependencies to place before and after the object being linked:
18337 predep_objects_CXX=
18338 postdep_objects_CXX=
18339 predeps_CXX=
18340 postdeps_CXX=
18341 compiler_lib_search_path_CXX=
18342
18343 # Source file extension for C++ test sources.
18344 ac_ext=cpp
18345
18346 # Object file extension for compiled C++ test sources.
18347 objext=o
18348 objext_CXX=$objext
18349
18350 # Code to be used in simple compile tests
18351 lt_simple_compile_test_code="int some_variable = 0;\n"
18352
18353 # Code to be used in simple link tests
18354 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18355
18356 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18357
18358 # If no C compiler was specified, use CC.
18359 LTCC=${LTCC-"$CC"}
18360
18361 # If no C compiler flags were specified, use CFLAGS.
18362 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18363
18364 # Allow CC to be a program name with arguments.
18365 compiler=$CC
18366
18367
18368 # save warnings/boilerplate of simple test code
18369 ac_outfile=conftest.$ac_objext
18370 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18371 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18372 _lt_compiler_boilerplate=`cat conftest.err`
18373 $rm conftest*
18374
18375 ac_outfile=conftest.$ac_objext
18376 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18377 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18378 _lt_linker_boilerplate=`cat conftest.err`
18379 $rm conftest*
18380
18381
18382 # Allow CC to be a program name with arguments.
18383 lt_save_CC=$CC
18384 lt_save_LD=$LD
18385 lt_save_GCC=$GCC
18386 GCC=$GXX
18387 lt_save_with_gnu_ld=$with_gnu_ld
18388 lt_save_path_LD=$lt_cv_path_LD
18389 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18390   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18391 else
18392   $as_unset lt_cv_prog_gnu_ld
18393 fi
18394 if test -n "${lt_cv_path_LDCXX+set}"; then
18395   lt_cv_path_LD=$lt_cv_path_LDCXX
18396 else
18397   $as_unset lt_cv_path_LD
18398 fi
18399 test -z "${LDCXX+set}" || LD=$LDCXX
18400 CC=${CXX-"c++"}
18401 compiler=$CC
18402 compiler_CXX=$CC
18403 for cc_temp in $compiler""; do
18404   case $cc_temp in
18405     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18406     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18407     \-*) ;;
18408     *) break;;
18409   esac
18410 done
18411 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18412
18413
18414 # We don't want -fno-exception wen compiling C++ code, so set the
18415 # no_builtin_flag separately
18416 if test "$GXX" = yes; then
18417   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18418 else
18419   lt_prog_compiler_no_builtin_flag_CXX=
18420 fi
18421
18422 if test "$GXX" = yes; then
18423   # Set up default GNU C++ configuration
18424
18425
18426 # Check whether --with-gnu-ld was given.
18427 if test "${with_gnu_ld+set}" = set; then
18428   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18429 else
18430   with_gnu_ld=no
18431 fi
18432
18433 ac_prog=ld
18434 if test "$GCC" = yes; then
18435   # Check if gcc -print-prog-name=ld gives a path.
18436   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18437 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18438   case $host in
18439   *-*-mingw*)
18440     # gcc leaves a trailing carriage return which upsets mingw
18441     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18442   *)
18443     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18444   esac
18445   case $ac_prog in
18446     # Accept absolute paths.
18447     [\\/]* | ?:[\\/]*)
18448       re_direlt='/[^/][^/]*/\.\./'
18449       # Canonicalize the pathname of ld
18450       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18451       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18452         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18453       done
18454       test -z "$LD" && LD="$ac_prog"
18455       ;;
18456   "")
18457     # If it fails, then pretend we aren't using GCC.
18458     ac_prog=ld
18459     ;;
18460   *)
18461     # If it is relative, then search for the first ld in PATH.
18462     with_gnu_ld=unknown
18463     ;;
18464   esac
18465 elif test "$with_gnu_ld" = yes; then
18466   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18467 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18468 else
18469   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18470 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18471 fi
18472 if test "${lt_cv_path_LD+set}" = set; then
18473   echo $ECHO_N "(cached) $ECHO_C" >&6
18474 else
18475   if test -z "$LD"; then
18476   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18477   for ac_dir in $PATH; do
18478     IFS="$lt_save_ifs"
18479     test -z "$ac_dir" && ac_dir=.
18480     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18481       lt_cv_path_LD="$ac_dir/$ac_prog"
18482       # Check to see if the program is GNU ld.  I'd rather use --version,
18483       # but apparently some variants of GNU ld only accept -v.
18484       # Break only if it was the GNU/non-GNU ld that we prefer.
18485       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18486       *GNU* | *'with BFD'*)
18487         test "$with_gnu_ld" != no && break
18488         ;;
18489       *)
18490         test "$with_gnu_ld" != yes && break
18491         ;;
18492       esac
18493     fi
18494   done
18495   IFS="$lt_save_ifs"
18496 else
18497   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18498 fi
18499 fi
18500
18501 LD="$lt_cv_path_LD"
18502 if test -n "$LD"; then
18503   { echo "$as_me:$LINENO: result: $LD" >&5
18504 echo "${ECHO_T}$LD" >&6; }
18505 else
18506   { echo "$as_me:$LINENO: result: no" >&5
18507 echo "${ECHO_T}no" >&6; }
18508 fi
18509 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18510 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18511    { (exit 1); exit 1; }; }
18512 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18513 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18514 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18515   echo $ECHO_N "(cached) $ECHO_C" >&6
18516 else
18517   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18518 case `$LD -v 2>&1 </dev/null` in
18519 *GNU* | *'with BFD'*)
18520   lt_cv_prog_gnu_ld=yes
18521   ;;
18522 *)
18523   lt_cv_prog_gnu_ld=no
18524   ;;
18525 esac
18526 fi
18527 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18528 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18529 with_gnu_ld=$lt_cv_prog_gnu_ld
18530
18531
18532
18533   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18534   # archiving commands below assume that GNU ld is being used.
18535   if test "$with_gnu_ld" = yes; then
18536     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18537     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'
18538
18539     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18540     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18541
18542     # If archive_cmds runs LD, not CC, wlarc should be empty
18543     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18544     #     investigate it a little bit more. (MM)
18545     wlarc='${wl}'
18546
18547     # ancient GNU ld didn't support --whole-archive et. al.
18548     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18549         grep 'no-whole-archive' > /dev/null; then
18550       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18551     else
18552       whole_archive_flag_spec_CXX=
18553     fi
18554   else
18555     with_gnu_ld=no
18556     wlarc=
18557
18558     # A generic and very simple default shared library creation
18559     # command for GNU C++ for the case where it uses the native
18560     # linker, instead of GNU ld.  If possible, this setting should
18561     # overridden to take advantage of the native linker features on
18562     # the platform it is being used on.
18563     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18564   fi
18565
18566   # Commands to make compiler produce verbose output that lists
18567   # what "hidden" libraries, object files and flags are used when
18568   # linking a shared library.
18569   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18570
18571 else
18572   GXX=no
18573   with_gnu_ld=no
18574   wlarc=
18575 fi
18576
18577 # PORTME: fill in a description of your system's C++ link characteristics
18578 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18579 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18580 ld_shlibs_CXX=yes
18581 case $host_os in
18582   aix3*)
18583     # FIXME: insert proper C++ library support
18584     ld_shlibs_CXX=no
18585     ;;
18586   aix4* | aix5*)
18587     if test "$host_cpu" = ia64; then
18588       # On IA64, the linker does run time linking by default, so we don't
18589       # have to do anything special.
18590       aix_use_runtimelinking=no
18591       exp_sym_flag='-Bexport'
18592       no_entry_flag=""
18593     else
18594       aix_use_runtimelinking=no
18595
18596       # Test if we are trying to use run time linking or normal
18597       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18598       # need to do runtime linking.
18599       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18600         for ld_flag in $LDFLAGS; do
18601           case $ld_flag in
18602           *-brtl*)
18603             aix_use_runtimelinking=yes
18604             break
18605             ;;
18606           esac
18607         done
18608         ;;
18609       esac
18610
18611       exp_sym_flag='-bexport'
18612       no_entry_flag='-bnoentry'
18613     fi
18614
18615     # When large executables or shared objects are built, AIX ld can
18616     # have problems creating the table of contents.  If linking a library
18617     # or program results in "error TOC overflow" add -mminimal-toc to
18618     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18619     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18620
18621     archive_cmds_CXX=''
18622     hardcode_direct_CXX=yes
18623     hardcode_libdir_separator_CXX=':'
18624     link_all_deplibs_CXX=yes
18625
18626     if test "$GXX" = yes; then
18627       case $host_os in aix4.[012]|aix4.[012].*)
18628       # We only want to do this on AIX 4.2 and lower, the check
18629       # below for broken collect2 doesn't work under 4.3+
18630         collect2name=`${CC} -print-prog-name=collect2`
18631         if test -f "$collect2name" && \
18632            strings "$collect2name" | grep resolve_lib_name >/dev/null
18633         then
18634           # We have reworked collect2
18635           hardcode_direct_CXX=yes
18636         else
18637           # We have old collect2
18638           hardcode_direct_CXX=unsupported
18639           # It fails to find uninstalled libraries when the uninstalled
18640           # path is not listed in the libpath.  Setting hardcode_minus_L
18641           # to unsupported forces relinking
18642           hardcode_minus_L_CXX=yes
18643           hardcode_libdir_flag_spec_CXX='-L$libdir'
18644           hardcode_libdir_separator_CXX=
18645         fi
18646         ;;
18647       esac
18648       shared_flag='-shared'
18649       if test "$aix_use_runtimelinking" = yes; then
18650         shared_flag="$shared_flag "'${wl}-G'
18651       fi
18652     else
18653       # not using gcc
18654       if test "$host_cpu" = ia64; then
18655         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18656         # chokes on -Wl,-G. The following line is correct:
18657         shared_flag='-G'
18658       else
18659         if test "$aix_use_runtimelinking" = yes; then
18660           shared_flag='${wl}-G'
18661         else
18662           shared_flag='${wl}-bM:SRE'
18663         fi
18664       fi
18665     fi
18666
18667     # It seems that -bexpall does not export symbols beginning with
18668     # underscore (_), so it is better to generate a list of symbols to export.
18669     always_export_symbols_CXX=yes
18670     if test "$aix_use_runtimelinking" = yes; then
18671       # Warning - without using the other runtime loading flags (-brtl),
18672       # -berok will link without error, but may produce a broken library.
18673       allow_undefined_flag_CXX='-berok'
18674       # Determine the default libpath from the value encoded in an empty executable.
18675       cat >conftest.$ac_ext <<_ACEOF
18676 /* confdefs.h.  */
18677 _ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h.  */
18681
18682 int
18683 main ()
18684 {
18685
18686   ;
18687   return 0;
18688 }
18689 _ACEOF
18690 rm -f conftest.$ac_objext conftest$ac_exeext
18691 if { (ac_try="$ac_link"
18692 case "(($ac_try" in
18693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694   *) ac_try_echo=$ac_try;;
18695 esac
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697   (eval "$ac_link") 2>conftest.er1
18698   ac_status=$?
18699   grep -v '^ *+' conftest.er1 >conftest.err
18700   rm -f conftest.er1
18701   cat conftest.err >&5
18702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703   (exit $ac_status); } &&
18704          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18705   { (case "(($ac_try" in
18706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707   *) ac_try_echo=$ac_try;;
18708 esac
18709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710   (eval "$ac_try") 2>&5
18711   ac_status=$?
18712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713   (exit $ac_status); }; } &&
18714          { ac_try='test -s conftest$ac_exeext'
18715   { (case "(($ac_try" in
18716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717   *) ac_try_echo=$ac_try;;
18718 esac
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720   (eval "$ac_try") 2>&5
18721   ac_status=$?
18722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723   (exit $ac_status); }; }; then
18724
18725 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18726 }'`
18727 # Check for a 64-bit object if we didn't find anything.
18728 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18729 }'`; fi
18730 else
18731   echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18733
18734
18735 fi
18736
18737 rm -f core conftest.err conftest.$ac_objext \
18738       conftest$ac_exeext conftest.$ac_ext
18739 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18740
18741       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18742
18743       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"
18744      else
18745       if test "$host_cpu" = ia64; then
18746         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18747         allow_undefined_flag_CXX="-z nodefs"
18748         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"
18749       else
18750         # Determine the default libpath from the value encoded in an empty executable.
18751         cat >conftest.$ac_ext <<_ACEOF
18752 /* confdefs.h.  */
18753 _ACEOF
18754 cat confdefs.h >>conftest.$ac_ext
18755 cat >>conftest.$ac_ext <<_ACEOF
18756 /* end confdefs.h.  */
18757
18758 int
18759 main ()
18760 {
18761
18762   ;
18763   return 0;
18764 }
18765 _ACEOF
18766 rm -f conftest.$ac_objext conftest$ac_exeext
18767 if { (ac_try="$ac_link"
18768 case "(($ac_try" in
18769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770   *) ac_try_echo=$ac_try;;
18771 esac
18772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773   (eval "$ac_link") 2>conftest.er1
18774   ac_status=$?
18775   grep -v '^ *+' conftest.er1 >conftest.err
18776   rm -f conftest.er1
18777   cat conftest.err >&5
18778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779   (exit $ac_status); } &&
18780          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18781   { (case "(($ac_try" in
18782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783   *) ac_try_echo=$ac_try;;
18784 esac
18785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786   (eval "$ac_try") 2>&5
18787   ac_status=$?
18788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789   (exit $ac_status); }; } &&
18790          { ac_try='test -s conftest$ac_exeext'
18791   { (case "(($ac_try" in
18792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793   *) ac_try_echo=$ac_try;;
18794 esac
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796   (eval "$ac_try") 2>&5
18797   ac_status=$?
18798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799   (exit $ac_status); }; }; then
18800
18801 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18802 }'`
18803 # Check for a 64-bit object if we didn't find anything.
18804 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18805 }'`; fi
18806 else
18807   echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18809
18810
18811 fi
18812
18813 rm -f core conftest.err conftest.$ac_objext \
18814       conftest$ac_exeext conftest.$ac_ext
18815 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18816
18817         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18818         # Warning - without using the other run time loading flags,
18819         # -berok will link without error, but may produce a broken library.
18820         no_undefined_flag_CXX=' ${wl}-bernotok'
18821         allow_undefined_flag_CXX=' ${wl}-berok'
18822         # Exported symbols can be pulled into shared objects from archives
18823         whole_archive_flag_spec_CXX='$convenience'
18824         archive_cmds_need_lc_CXX=yes
18825         # This is similar to how AIX traditionally builds its shared libraries.
18826         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'
18827       fi
18828     fi
18829     ;;
18830
18831   beos*)
18832     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18833       allow_undefined_flag_CXX=unsupported
18834       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18835       # support --undefined.  This deserves some investigation.  FIXME
18836       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18837     else
18838       ld_shlibs_CXX=no
18839     fi
18840     ;;
18841
18842   chorus*)
18843     case $cc_basename in
18844       *)
18845         # FIXME: insert proper C++ library support
18846         ld_shlibs_CXX=no
18847         ;;
18848     esac
18849     ;;
18850
18851   cygwin* | mingw* | pw32*)
18852     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18853     # as there is no search path for DLLs.
18854     hardcode_libdir_flag_spec_CXX='-L$libdir'
18855     allow_undefined_flag_CXX=unsupported
18856     always_export_symbols_CXX=no
18857     enable_shared_with_static_runtimes_CXX=yes
18858
18859     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18860       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'
18861       # If the export-symbols file already is a .def file (1st line
18862       # is EXPORTS), use it as is; otherwise, prepend...
18863       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18864         cp $export_symbols $output_objdir/$soname.def;
18865       else
18866         echo EXPORTS > $output_objdir/$soname.def;
18867         cat $export_symbols >> $output_objdir/$soname.def;
18868       fi~
18869       $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'
18870     else
18871       ld_shlibs_CXX=no
18872     fi
18873   ;;
18874       darwin* | rhapsody*)
18875         case $host_os in
18876         rhapsody* | darwin1.[012])
18877          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18878          ;;
18879        *) # Darwin 1.3 on
18880          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18881            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18882          else
18883            case ${MACOSX_DEPLOYMENT_TARGET} in
18884              10.[012])
18885                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18886                ;;
18887              10.*)
18888                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18889                ;;
18890            esac
18891          fi
18892          ;;
18893         esac
18894       archive_cmds_need_lc_CXX=no
18895       hardcode_direct_CXX=no
18896       hardcode_automatic_CXX=yes
18897       hardcode_shlibpath_var_CXX=unsupported
18898       whole_archive_flag_spec_CXX=''
18899       link_all_deplibs_CXX=yes
18900
18901     if test "$GXX" = yes ; then
18902       lt_int_apple_cc_single_mod=no
18903       output_verbose_link_cmd='echo'
18904       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18905        lt_int_apple_cc_single_mod=yes
18906       fi
18907       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18908        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18909       else
18910           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'
18911         fi
18912         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18913         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18914           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18915             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18916           else
18917             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18918           fi
18919             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}'
18920       else
18921       case $cc_basename in
18922         xlc*)
18923          output_verbose_link_cmd='echo'
18924           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18925           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18926           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18927           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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18928           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}'
18929           ;;
18930        *)
18931          ld_shlibs_CXX=no
18932           ;;
18933       esac
18934       fi
18935         ;;
18936
18937   dgux*)
18938     case $cc_basename in
18939       ec++*)
18940         # FIXME: insert proper C++ library support
18941         ld_shlibs_CXX=no
18942         ;;
18943       ghcx*)
18944         # Green Hills C++ Compiler
18945         # FIXME: insert proper C++ library support
18946         ld_shlibs_CXX=no
18947         ;;
18948       *)
18949         # FIXME: insert proper C++ library support
18950         ld_shlibs_CXX=no
18951         ;;
18952     esac
18953     ;;
18954   freebsd[12]*)
18955     # C++ shared libraries reported to be fairly broken before switch to ELF
18956     ld_shlibs_CXX=no
18957     ;;
18958   freebsd-elf*)
18959     archive_cmds_need_lc_CXX=no
18960     ;;
18961   freebsd* | kfreebsd*-gnu | dragonfly*)
18962     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18963     # conventions
18964     ld_shlibs_CXX=yes
18965     ;;
18966   gnu*)
18967     ;;
18968   hpux9*)
18969     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18970     hardcode_libdir_separator_CXX=:
18971     export_dynamic_flag_spec_CXX='${wl}-E'
18972     hardcode_direct_CXX=yes
18973     hardcode_minus_L_CXX=yes # Not in the search PATH,
18974                                 # but as the default
18975                                 # location of the library.
18976
18977     case $cc_basename in
18978     CC*)
18979       # FIXME: insert proper C++ library support
18980       ld_shlibs_CXX=no
18981       ;;
18982     aCC*)
18983       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'
18984       # Commands to make compiler produce verbose output that lists
18985       # what "hidden" libraries, object files and flags are used when
18986       # linking a shared library.
18987       #
18988       # There doesn't appear to be a way to prevent this compiler from
18989       # explicitly linking system object files so we need to strip them
18990       # from the output so that they don't get included in the library
18991       # dependencies.
18992       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'
18993       ;;
18994     *)
18995       if test "$GXX" = yes; then
18996         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'
18997       else
18998         # FIXME: insert proper C++ library support
18999         ld_shlibs_CXX=no
19000       fi
19001       ;;
19002     esac
19003     ;;
19004   hpux10*|hpux11*)
19005     if test $with_gnu_ld = no; then
19006       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19007       hardcode_libdir_separator_CXX=:
19008
19009       case $host_cpu in
19010       hppa*64*|ia64*)
19011         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19012         ;;
19013       *)
19014         export_dynamic_flag_spec_CXX='${wl}-E'
19015         ;;
19016       esac
19017     fi
19018     case $host_cpu in
19019     hppa*64*|ia64*)
19020       hardcode_direct_CXX=no
19021       hardcode_shlibpath_var_CXX=no
19022       ;;
19023     *)
19024       hardcode_direct_CXX=yes
19025       hardcode_minus_L_CXX=yes # Not in the search PATH,
19026                                               # but as the default
19027                                               # location of the library.
19028       ;;
19029     esac
19030
19031     case $cc_basename in
19032       CC*)
19033         # FIXME: insert proper C++ library support
19034         ld_shlibs_CXX=no
19035         ;;
19036       aCC*)
19037         case $host_cpu in
19038         hppa*64*)
19039           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19040           ;;
19041         ia64*)
19042           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19043           ;;
19044         *)
19045           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19046           ;;
19047         esac
19048         # Commands to make compiler produce verbose output that lists
19049         # what "hidden" libraries, object files and flags are used when
19050         # linking a shared library.
19051         #
19052         # There doesn't appear to be a way to prevent this compiler from
19053         # explicitly linking system object files so we need to strip them
19054         # from the output so that they don't get included in the library
19055         # dependencies.
19056         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'
19057         ;;
19058       *)
19059         if test "$GXX" = yes; then
19060           if test $with_gnu_ld = no; then
19061             case $host_cpu in
19062             hppa*64*)
19063               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19064               ;;
19065             ia64*)
19066               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19067               ;;
19068             *)
19069               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'
19070               ;;
19071             esac
19072           fi
19073         else
19074           # FIXME: insert proper C++ library support
19075           ld_shlibs_CXX=no
19076         fi
19077         ;;
19078     esac
19079     ;;
19080   interix3*)
19081     hardcode_direct_CXX=no
19082     hardcode_shlibpath_var_CXX=no
19083     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19084     export_dynamic_flag_spec_CXX='${wl}-E'
19085     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19086     # Instead, shared libraries are loaded at an image base (0x10000000 by
19087     # default) and relocated if they conflict, which is a slow very memory
19088     # consuming and fragmenting process.  To avoid this, we pick a random,
19089     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19090     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19091     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'
19092     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'
19093     ;;
19094   irix5* | irix6*)
19095     case $cc_basename in
19096       CC*)
19097         # SGI C++
19098         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'
19099
19100         # Archives containing C++ object files must be created using
19101         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19102         # necessary to make sure instantiated templates are included
19103         # in the archive.
19104         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19105         ;;
19106       *)
19107         if test "$GXX" = yes; then
19108           if test "$with_gnu_ld" = no; then
19109             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'
19110           else
19111             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'
19112           fi
19113         fi
19114         link_all_deplibs_CXX=yes
19115         ;;
19116     esac
19117     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19118     hardcode_libdir_separator_CXX=:
19119     ;;
19120   linux*)
19121     case $cc_basename in
19122       KCC*)
19123         # Kuck and Associates, Inc. (KAI) C++ Compiler
19124
19125         # KCC will only create a shared library if the output file
19126         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19127         # to its proper name (with version) after linking.
19128         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'
19129         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'
19130         # Commands to make compiler produce verbose output that lists
19131         # what "hidden" libraries, object files and flags are used when
19132         # linking a shared library.
19133         #
19134         # There doesn't appear to be a way to prevent this compiler from
19135         # explicitly linking system object files so we need to strip them
19136         # from the output so that they don't get included in the library
19137         # dependencies.
19138         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'
19139
19140         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19141         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19142
19143         # Archives containing C++ object files must be created using
19144         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19145         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19146         ;;
19147       icpc*)
19148         # Intel C++
19149         with_gnu_ld=yes
19150         # version 8.0 and above of icpc choke on multiply defined symbols
19151         # if we add $predep_objects and $postdep_objects, however 7.1 and
19152         # earlier do not add the objects themselves.
19153         case `$CC -V 2>&1` in
19154         *"Version 7."*)
19155           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19156           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'
19157           ;;
19158         *)  # Version 8.0 or newer
19159           tmp_idyn=
19160           case $host_cpu in
19161             ia64*) tmp_idyn=' -i_dynamic';;
19162           esac
19163           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19164           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'
19165           ;;
19166         esac
19167         archive_cmds_need_lc_CXX=no
19168         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19169         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19170         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19171         ;;
19172       pgCC*)
19173         # Portland Group C++ compiler
19174         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19175         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'
19176
19177         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19178         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19179         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'
19180         ;;
19181       cxx*)
19182         # Compaq C++
19183         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19184         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'
19185
19186         runpath_var=LD_RUN_PATH
19187         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19188         hardcode_libdir_separator_CXX=:
19189
19190         # Commands to make compiler produce verbose output that lists
19191         # what "hidden" libraries, object files and flags are used when
19192         # linking a shared library.
19193         #
19194         # There doesn't appear to be a way to prevent this compiler from
19195         # explicitly linking system object files so we need to strip them
19196         # from the output so that they don't get included in the library
19197         # dependencies.
19198         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'
19199         ;;
19200     esac
19201     ;;
19202   lynxos*)
19203     # FIXME: insert proper C++ library support
19204     ld_shlibs_CXX=no
19205     ;;
19206   m88k*)
19207     # FIXME: insert proper C++ library support
19208     ld_shlibs_CXX=no
19209     ;;
19210   mvs*)
19211     case $cc_basename in
19212       cxx*)
19213         # FIXME: insert proper C++ library support
19214         ld_shlibs_CXX=no
19215         ;;
19216       *)
19217         # FIXME: insert proper C++ library support
19218         ld_shlibs_CXX=no
19219         ;;
19220     esac
19221     ;;
19222   netbsd*)
19223     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19224       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19225       wlarc=
19226       hardcode_libdir_flag_spec_CXX='-R$libdir'
19227       hardcode_direct_CXX=yes
19228       hardcode_shlibpath_var_CXX=no
19229     fi
19230     # Workaround some broken pre-1.5 toolchains
19231     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19232     ;;
19233   openbsd2*)
19234     # C++ shared libraries are fairly broken
19235     ld_shlibs_CXX=no
19236     ;;
19237   openbsd*)
19238     hardcode_direct_CXX=yes
19239     hardcode_shlibpath_var_CXX=no
19240     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19241     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19242     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19243       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19244       export_dynamic_flag_spec_CXX='${wl}-E'
19245       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19246     fi
19247     output_verbose_link_cmd='echo'
19248     ;;
19249   osf3*)
19250     case $cc_basename in
19251       KCC*)
19252         # Kuck and Associates, Inc. (KAI) C++ Compiler
19253
19254         # KCC will only create a shared library if the output file
19255         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19256         # to its proper name (with version) after linking.
19257         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'
19258
19259         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19260         hardcode_libdir_separator_CXX=:
19261
19262         # Archives containing C++ object files must be created using
19263         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19264         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19265
19266         ;;
19267       RCC*)
19268         # Rational C++ 2.4.1
19269         # FIXME: insert proper C++ library support
19270         ld_shlibs_CXX=no
19271         ;;
19272       cxx*)
19273         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19274         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'
19275
19276         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19277         hardcode_libdir_separator_CXX=:
19278
19279         # Commands to make compiler produce verbose output that lists
19280         # what "hidden" libraries, object files and flags are used when
19281         # linking a shared library.
19282         #
19283         # There doesn't appear to be a way to prevent this compiler from
19284         # explicitly linking system object files so we need to strip them
19285         # from the output so that they don't get included in the library
19286         # dependencies.
19287         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'
19288         ;;
19289       *)
19290         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19291           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19292           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'
19293
19294           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19295           hardcode_libdir_separator_CXX=:
19296
19297           # Commands to make compiler produce verbose output that lists
19298           # what "hidden" libraries, object files and flags are used when
19299           # linking a shared library.
19300           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19301
19302         else
19303           # FIXME: insert proper C++ library support
19304           ld_shlibs_CXX=no
19305         fi
19306         ;;
19307     esac
19308     ;;
19309   osf4* | osf5*)
19310     case $cc_basename in
19311       KCC*)
19312         # Kuck and Associates, Inc. (KAI) C++ Compiler
19313
19314         # KCC will only create a shared library if the output file
19315         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19316         # to its proper name (with version) after linking.
19317         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'
19318
19319         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19320         hardcode_libdir_separator_CXX=:
19321
19322         # Archives containing C++ object files must be created using
19323         # the KAI C++ compiler.
19324         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19325         ;;
19326       RCC*)
19327         # Rational C++ 2.4.1
19328         # FIXME: insert proper C++ library support
19329         ld_shlibs_CXX=no
19330         ;;
19331       cxx*)
19332         allow_undefined_flag_CXX=' -expect_unresolved \*'
19333         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'
19334         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19335           echo "-hidden">> $lib.exp~
19336           $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~
19337           $rm $lib.exp'
19338
19339         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19340         hardcode_libdir_separator_CXX=:
19341
19342         # Commands to make compiler produce verbose output that lists
19343         # what "hidden" libraries, object files and flags are used when
19344         # linking a shared library.
19345         #
19346         # There doesn't appear to be a way to prevent this compiler from
19347         # explicitly linking system object files so we need to strip them
19348         # from the output so that they don't get included in the library
19349         # dependencies.
19350         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'
19351         ;;
19352       *)
19353         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19354           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19355          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'
19356
19357           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19358           hardcode_libdir_separator_CXX=:
19359
19360           # Commands to make compiler produce verbose output that lists
19361           # what "hidden" libraries, object files and flags are used when
19362           # linking a shared library.
19363           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19364
19365         else
19366           # FIXME: insert proper C++ library support
19367           ld_shlibs_CXX=no
19368         fi
19369         ;;
19370     esac
19371     ;;
19372   psos*)
19373     # FIXME: insert proper C++ library support
19374     ld_shlibs_CXX=no
19375     ;;
19376   sunos4*)
19377     case $cc_basename in
19378       CC*)
19379         # Sun C++ 4.x
19380         # FIXME: insert proper C++ library support
19381         ld_shlibs_CXX=no
19382         ;;
19383       lcc*)
19384         # Lucid
19385         # FIXME: insert proper C++ library support
19386         ld_shlibs_CXX=no
19387         ;;
19388       *)
19389         # FIXME: insert proper C++ library support
19390         ld_shlibs_CXX=no
19391         ;;
19392     esac
19393     ;;
19394   solaris*)
19395     case $cc_basename in
19396       CC*)
19397         # Sun C++ 4.2, 5.x and Centerline C++
19398         archive_cmds_need_lc_CXX=yes
19399         no_undefined_flag_CXX=' -zdefs'
19400         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19401         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19402         $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'
19403
19404         hardcode_libdir_flag_spec_CXX='-R$libdir'
19405         hardcode_shlibpath_var_CXX=no
19406         case $host_os in
19407           solaris2.[0-5] | solaris2.[0-5].*) ;;
19408           *)
19409             # The C++ compiler is used as linker so we must use $wl
19410             # flag to pass the commands to the underlying system
19411             # linker. We must also pass each convience library through
19412             # to the system linker between allextract/defaultextract.
19413             # The C++ compiler will combine linker options so we
19414             # cannot just pass the convience library names through
19415             # without $wl.
19416             # Supported since Solaris 2.6 (maybe 2.5.1?)
19417             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
19418             ;;
19419         esac
19420         link_all_deplibs_CXX=yes
19421
19422         output_verbose_link_cmd='echo'
19423
19424         # Archives containing C++ object files must be created using
19425         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19426         # necessary to make sure instantiated templates are included
19427         # in the archive.
19428         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19429         ;;
19430       gcx*)
19431         # Green Hills C++ Compiler
19432         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19433
19434         # The C++ compiler must be used to create the archive.
19435         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19436         ;;
19437       *)
19438         # GNU C++ compiler with Solaris linker
19439         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19440           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19441           if $CC --version | grep -v '^2\.7' > /dev/null; then
19442             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19443             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19444                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19445
19446             # Commands to make compiler produce verbose output that lists
19447             # what "hidden" libraries, object files and flags are used when
19448             # linking a shared library.
19449             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19450           else
19451             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19452             # platform.
19453             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19454             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19455                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19456
19457             # Commands to make compiler produce verbose output that lists
19458             # what "hidden" libraries, object files and flags are used when
19459             # linking a shared library.
19460             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19461           fi
19462
19463           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19464         fi
19465         ;;
19466     esac
19467     ;;
19468   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19469     no_undefined_flag_CXX='${wl}-z,text'
19470     archive_cmds_need_lc_CXX=no
19471     hardcode_shlibpath_var_CXX=no
19472     runpath_var='LD_RUN_PATH'
19473
19474     case $cc_basename in
19475       CC*)
19476         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19477         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19478         ;;
19479       *)
19480         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19481         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19482         ;;
19483     esac
19484     ;;
19485   sysv5* | sco3.2v5* | sco5v6*)
19486     # Note: We can NOT use -z defs as we might desire, because we do not
19487     # link with -lc, and that would cause any symbols used from libc to
19488     # always be unresolved, which means just about no library would
19489     # ever link correctly.  If we're not using GNU ld we use -z text
19490     # though, which does catch some bad symbols but isn't as heavy-handed
19491     # as -z defs.
19492     # For security reasons, it is highly recommended that you always
19493     # use absolute paths for naming shared libraries, and exclude the
19494     # DT_RUNPATH tag from executables and libraries.  But doing so
19495     # requires that you compile everything twice, which is a pain.
19496     # So that behaviour is only enabled if SCOABSPATH is set to a
19497     # non-empty value in the environment.  Most likely only useful for
19498     # creating official distributions of packages.
19499     # This is a hack until libtool officially supports absolute path
19500     # names for shared libraries.
19501     no_undefined_flag_CXX='${wl}-z,text'
19502     allow_undefined_flag_CXX='${wl}-z,nodefs'
19503     archive_cmds_need_lc_CXX=no
19504     hardcode_shlibpath_var_CXX=no
19505     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19506     hardcode_libdir_separator_CXX=':'
19507     link_all_deplibs_CXX=yes
19508     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19509     runpath_var='LD_RUN_PATH'
19510
19511     case $cc_basename in
19512       CC*)
19513         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19514         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19515         ;;
19516       *)
19517         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19518         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19519         ;;
19520     esac
19521     ;;
19522   tandem*)
19523     case $cc_basename in
19524       NCC*)
19525         # NonStop-UX NCC 3.20
19526         # FIXME: insert proper C++ library support
19527         ld_shlibs_CXX=no
19528         ;;
19529       *)
19530         # FIXME: insert proper C++ library support
19531         ld_shlibs_CXX=no
19532         ;;
19533     esac
19534     ;;
19535   vxworks*)
19536     # FIXME: insert proper C++ library support
19537     ld_shlibs_CXX=no
19538     ;;
19539   *)
19540     # FIXME: insert proper C++ library support
19541     ld_shlibs_CXX=no
19542     ;;
19543 esac
19544 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19545 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19546 test "$ld_shlibs_CXX" = no && can_build_shared=no
19547
19548 GCC_CXX="$GXX"
19549 LD_CXX="$LD"
19550
19551
19552 cat > conftest.$ac_ext <<EOF
19553 class Foo
19554 {
19555 public:
19556   Foo (void) { a = 0; }
19557 private:
19558   int a;
19559 };
19560 EOF
19561
19562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19563   (eval $ac_compile) 2>&5
19564   ac_status=$?
19565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566   (exit $ac_status); }; then
19567   # Parse the compiler output and extract the necessary
19568   # objects, libraries and library flags.
19569
19570   # Sentinel used to keep track of whether or not we are before
19571   # the conftest object file.
19572   pre_test_object_deps_done=no
19573
19574   # The `*' in the case matches for architectures that use `case' in
19575   # $output_verbose_cmd can trigger glob expansion during the loop
19576   # eval without this substitution.
19577   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19578
19579   for p in `eval $output_verbose_link_cmd`; do
19580     case $p in
19581
19582     -L* | -R* | -l*)
19583        # Some compilers place space between "-{L,R}" and the path.
19584        # Remove the space.
19585        if test $p = "-L" \
19586           || test $p = "-R"; then
19587          prev=$p
19588          continue
19589        else
19590          prev=
19591        fi
19592
19593        if test "$pre_test_object_deps_done" = no; then
19594          case $p in
19595          -L* | -R*)
19596            # Internal compiler library paths should come after those
19597            # provided the user.  The postdeps already come after the
19598            # user supplied libs so there is no need to process them.
19599            if test -z "$compiler_lib_search_path_CXX"; then
19600              compiler_lib_search_path_CXX="${prev}${p}"
19601            else
19602              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19603            fi
19604            ;;
19605          # The "-l" case would never come before the object being
19606          # linked, so don't bother handling this case.
19607          esac
19608        else
19609          if test -z "$postdeps_CXX"; then
19610            postdeps_CXX="${prev}${p}"
19611          else
19612            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19613          fi
19614        fi
19615        ;;
19616
19617     *.$objext)
19618        # This assumes that the test object file only shows up
19619        # once in the compiler output.
19620        if test "$p" = "conftest.$objext"; then
19621          pre_test_object_deps_done=yes
19622          continue
19623        fi
19624
19625        if test "$pre_test_object_deps_done" = no; then
19626          if test -z "$predep_objects_CXX"; then
19627            predep_objects_CXX="$p"
19628          else
19629            predep_objects_CXX="$predep_objects_CXX $p"
19630          fi
19631        else
19632          if test -z "$postdep_objects_CXX"; then
19633            postdep_objects_CXX="$p"
19634          else
19635            postdep_objects_CXX="$postdep_objects_CXX $p"
19636          fi
19637        fi
19638        ;;
19639
19640     *) ;; # Ignore the rest.
19641
19642     esac
19643   done
19644
19645   # Clean up.
19646   rm -f a.out a.exe
19647 else
19648   echo "libtool.m4: error: problem compiling CXX test program"
19649 fi
19650
19651 $rm -f confest.$objext
19652
19653 # PORTME: override above test on systems where it is broken
19654 case $host_os in
19655 interix3*)
19656   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19657   # hack all around it, let's just trust "g++" to DTRT.
19658   predep_objects_CXX=
19659   postdep_objects_CXX=
19660   postdeps_CXX=
19661   ;;
19662
19663 solaris*)
19664   case $cc_basename in
19665   CC*)
19666     # Adding this requires a known-good setup of shared libraries for
19667     # Sun compiler versions before 5.6, else PIC objects from an old
19668     # archive will be linked into the output, leading to subtle bugs.
19669     postdeps_CXX='-lCstd -lCrun'
19670     ;;
19671   esac
19672   ;;
19673 esac
19674
19675
19676 case " $postdeps_CXX " in
19677 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19678 esac
19679
19680 lt_prog_compiler_wl_CXX=
19681 lt_prog_compiler_pic_CXX=
19682 lt_prog_compiler_static_CXX=
19683
19684 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19685 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19686
19687   # C++ specific cases for pic, static, wl, etc.
19688   if test "$GXX" = yes; then
19689     lt_prog_compiler_wl_CXX='-Wl,'
19690     lt_prog_compiler_static_CXX='-static'
19691
19692     case $host_os in
19693     aix*)
19694       # All AIX code is PIC.
19695       if test "$host_cpu" = ia64; then
19696         # AIX 5 now supports IA64 processor
19697         lt_prog_compiler_static_CXX='-Bstatic'
19698       fi
19699       ;;
19700     amigaos*)
19701       # FIXME: we need at least 68020 code to build shared libraries, but
19702       # adding the `-m68020' flag to GCC prevents building anything better,
19703       # like `-m68040'.
19704       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19705       ;;
19706     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19707       # PIC is the default for these OSes.
19708       ;;
19709     mingw* | os2* | pw32*)
19710       # This hack is so that the source file can tell whether it is being
19711       # built for inclusion in a dll (and should export symbols for example).
19712       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19713       ;;
19714     darwin* | rhapsody*)
19715       # PIC is the default on this platform
19716       # Common symbols not allowed in MH_DYLIB files
19717       lt_prog_compiler_pic_CXX='-fno-common'
19718       ;;
19719     *djgpp*)
19720       # DJGPP does not support shared libraries at all
19721       lt_prog_compiler_pic_CXX=
19722       ;;
19723     interix3*)
19724       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19725       # Instead, we relocate shared libraries at runtime.
19726       ;;
19727     sysv4*MP*)
19728       if test -d /usr/nec; then
19729         lt_prog_compiler_pic_CXX=-Kconform_pic
19730       fi
19731       ;;
19732     hpux*)
19733       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19734       # not for PA HP-UX.
19735       case $host_cpu in
19736       hppa*64*|ia64*)
19737         ;;
19738       *)
19739         lt_prog_compiler_pic_CXX='-fPIC'
19740         ;;
19741       esac
19742       ;;
19743     *)
19744       lt_prog_compiler_pic_CXX='-fPIC'
19745       ;;
19746     esac
19747   else
19748     case $host_os in
19749       aix4* | aix5*)
19750         # All AIX code is PIC.
19751         if test "$host_cpu" = ia64; then
19752           # AIX 5 now supports IA64 processor
19753           lt_prog_compiler_static_CXX='-Bstatic'
19754         else
19755           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19756         fi
19757         ;;
19758       chorus*)
19759         case $cc_basename in
19760         cxch68*)
19761           # Green Hills C++ Compiler
19762           # _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"
19763           ;;
19764         esac
19765         ;;
19766        darwin*)
19767          # PIC is the default on this platform
19768          # Common symbols not allowed in MH_DYLIB files
19769          case $cc_basename in
19770            xlc*)
19771            lt_prog_compiler_pic_CXX='-qnocommon'
19772            lt_prog_compiler_wl_CXX='-Wl,'
19773            ;;
19774          esac
19775        ;;
19776       dgux*)
19777         case $cc_basename in
19778           ec++*)
19779             lt_prog_compiler_pic_CXX='-KPIC'
19780             ;;
19781           ghcx*)
19782             # Green Hills C++ Compiler
19783             lt_prog_compiler_pic_CXX='-pic'
19784             ;;
19785           *)
19786             ;;
19787         esac
19788         ;;
19789       freebsd* | kfreebsd*-gnu | dragonfly*)
19790         # FreeBSD uses GNU C++
19791         ;;
19792       hpux9* | hpux10* | hpux11*)
19793         case $cc_basename in
19794           CC*)
19795             lt_prog_compiler_wl_CXX='-Wl,'
19796             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19797             if test "$host_cpu" != ia64; then
19798               lt_prog_compiler_pic_CXX='+Z'
19799             fi
19800             ;;
19801           aCC*)
19802             lt_prog_compiler_wl_CXX='-Wl,'
19803             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19804             case $host_cpu in
19805             hppa*64*|ia64*)
19806               # +Z the default
19807               ;;
19808             *)
19809               lt_prog_compiler_pic_CXX='+Z'
19810               ;;
19811             esac
19812             ;;
19813           *)
19814             ;;
19815         esac
19816         ;;
19817       interix*)
19818         # This is c89, which is MS Visual C++ (no shared libs)
19819         # Anyone wants to do a port?
19820         ;;
19821       irix5* | irix6* | nonstopux*)
19822         case $cc_basename in
19823           CC*)
19824             lt_prog_compiler_wl_CXX='-Wl,'
19825             lt_prog_compiler_static_CXX='-non_shared'
19826             # CC pic flag -KPIC is the default.
19827             ;;
19828           *)
19829             ;;
19830         esac
19831         ;;
19832       linux*)
19833         case $cc_basename in
19834           KCC*)
19835             # KAI C++ Compiler
19836             lt_prog_compiler_wl_CXX='--backend -Wl,'
19837             lt_prog_compiler_pic_CXX='-fPIC'
19838             ;;
19839           icpc* | ecpc*)
19840             # Intel C++
19841             lt_prog_compiler_wl_CXX='-Wl,'
19842             lt_prog_compiler_pic_CXX='-KPIC'
19843             lt_prog_compiler_static_CXX='-static'
19844             ;;
19845           pgCC*)
19846             # Portland Group C++ compiler.
19847             lt_prog_compiler_wl_CXX='-Wl,'
19848             lt_prog_compiler_pic_CXX='-fpic'
19849             lt_prog_compiler_static_CXX='-Bstatic'
19850             ;;
19851           cxx*)
19852             # Compaq C++
19853             # Make sure the PIC flag is empty.  It appears that all Alpha
19854             # Linux and Compaq Tru64 Unix objects are PIC.
19855             lt_prog_compiler_pic_CXX=
19856             lt_prog_compiler_static_CXX='-non_shared'
19857             ;;
19858           *)
19859             ;;
19860         esac
19861         ;;
19862       lynxos*)
19863         ;;
19864       m88k*)
19865         ;;
19866       mvs*)
19867         case $cc_basename in
19868           cxx*)
19869             lt_prog_compiler_pic_CXX='-W c,exportall'
19870             ;;
19871           *)
19872             ;;
19873         esac
19874         ;;
19875       netbsd*)
19876         ;;
19877       osf3* | osf4* | osf5*)
19878         case $cc_basename in
19879           KCC*)
19880             lt_prog_compiler_wl_CXX='--backend -Wl,'
19881             ;;
19882           RCC*)
19883             # Rational C++ 2.4.1
19884             lt_prog_compiler_pic_CXX='-pic'
19885             ;;
19886           cxx*)
19887             # Digital/Compaq C++
19888             lt_prog_compiler_wl_CXX='-Wl,'
19889             # Make sure the PIC flag is empty.  It appears that all Alpha
19890             # Linux and Compaq Tru64 Unix objects are PIC.
19891             lt_prog_compiler_pic_CXX=
19892             lt_prog_compiler_static_CXX='-non_shared'
19893             ;;
19894           *)
19895             ;;
19896         esac
19897         ;;
19898       psos*)
19899         ;;
19900       solaris*)
19901         case $cc_basename in
19902           CC*)
19903             # Sun C++ 4.2, 5.x and Centerline C++
19904             lt_prog_compiler_pic_CXX='-KPIC'
19905             lt_prog_compiler_static_CXX='-Bstatic'
19906             lt_prog_compiler_wl_CXX='-Qoption ld '
19907             ;;
19908           gcx*)
19909             # Green Hills C++ Compiler
19910             lt_prog_compiler_pic_CXX='-PIC'
19911             ;;
19912           *)
19913             ;;
19914         esac
19915         ;;
19916       sunos4*)
19917         case $cc_basename in
19918           CC*)
19919             # Sun C++ 4.x
19920             lt_prog_compiler_pic_CXX='-pic'
19921             lt_prog_compiler_static_CXX='-Bstatic'
19922             ;;
19923           lcc*)
19924             # Lucid
19925             lt_prog_compiler_pic_CXX='-pic'
19926             ;;
19927           *)
19928             ;;
19929         esac
19930         ;;
19931       tandem*)
19932         case $cc_basename in
19933           NCC*)
19934             # NonStop-UX NCC 3.20
19935             lt_prog_compiler_pic_CXX='-KPIC'
19936             ;;
19937           *)
19938             ;;
19939         esac
19940         ;;
19941       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19942         case $cc_basename in
19943           CC*)
19944             lt_prog_compiler_wl_CXX='-Wl,'
19945             lt_prog_compiler_pic_CXX='-KPIC'
19946             lt_prog_compiler_static_CXX='-Bstatic'
19947             ;;
19948         esac
19949         ;;
19950       vxworks*)
19951         ;;
19952       *)
19953         lt_prog_compiler_can_build_shared_CXX=no
19954         ;;
19955     esac
19956   fi
19957
19958 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19959 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19960
19961 #
19962 # Check to make sure the PIC flag actually works.
19963 #
19964 if test -n "$lt_prog_compiler_pic_CXX"; then
19965
19966 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19967 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19968 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19969   echo $ECHO_N "(cached) $ECHO_C" >&6
19970 else
19971   lt_prog_compiler_pic_works_CXX=no
19972   ac_outfile=conftest.$ac_objext
19973    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19974    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19975    # Insert the option either (1) after the last *FLAGS variable, or
19976    # (2) before a word containing "conftest.", or (3) at the end.
19977    # Note that $ac_compile itself does not contain backslashes and begins
19978    # with a dollar sign (not a hyphen), so the echo should work correctly.
19979    # The option is referenced via a variable to avoid confusing sed.
19980    lt_compile=`echo "$ac_compile" | $SED \
19981    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19982    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19983    -e 's:$: $lt_compiler_flag:'`
19984    (eval echo "\"\$as_me:19984: $lt_compile\"" >&5)
19985    (eval "$lt_compile" 2>conftest.err)
19986    ac_status=$?
19987    cat conftest.err >&5
19988    echo "$as_me:19988: \$? = $ac_status" >&5
19989    if (exit $ac_status) && test -s "$ac_outfile"; then
19990      # The compiler can only warn and ignore the option if not recognized
19991      # So say no if there are warnings other than the usual output.
19992      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19993      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19994      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19995        lt_prog_compiler_pic_works_CXX=yes
19996      fi
19997    fi
19998    $rm conftest*
19999
20000 fi
20001 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20002 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20003
20004 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20005     case $lt_prog_compiler_pic_CXX in
20006      "" | " "*) ;;
20007      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20008      esac
20009 else
20010     lt_prog_compiler_pic_CXX=
20011      lt_prog_compiler_can_build_shared_CXX=no
20012 fi
20013
20014 fi
20015 case $host_os in
20016   # For platforms which do not support PIC, -DPIC is meaningless:
20017   *djgpp*)
20018     lt_prog_compiler_pic_CXX=
20019     ;;
20020   *)
20021     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20022     ;;
20023 esac
20024
20025 #
20026 # Check to make sure the static flag actually works.
20027 #
20028 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20029 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20030 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20031 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20032   echo $ECHO_N "(cached) $ECHO_C" >&6
20033 else
20034   lt_prog_compiler_static_works_CXX=no
20035    save_LDFLAGS="$LDFLAGS"
20036    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20037    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20038    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20039      # The linker can only warn and ignore the option if not recognized
20040      # So say no if there are warnings
20041      if test -s conftest.err; then
20042        # Append any errors to the config.log.
20043        cat conftest.err 1>&5
20044        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20045        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20046        if diff conftest.exp conftest.er2 >/dev/null; then
20047          lt_prog_compiler_static_works_CXX=yes
20048        fi
20049      else
20050        lt_prog_compiler_static_works_CXX=yes
20051      fi
20052    fi
20053    $rm conftest*
20054    LDFLAGS="$save_LDFLAGS"
20055
20056 fi
20057 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20058 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20059
20060 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20061     :
20062 else
20063     lt_prog_compiler_static_CXX=
20064 fi
20065
20066
20067 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20068 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20069 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20070   echo $ECHO_N "(cached) $ECHO_C" >&6
20071 else
20072   lt_cv_prog_compiler_c_o_CXX=no
20073    $rm -r conftest 2>/dev/null
20074    mkdir conftest
20075    cd conftest
20076    mkdir out
20077    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20078
20079    lt_compiler_flag="-o out/conftest2.$ac_objext"
20080    # Insert the option either (1) after the last *FLAGS variable, or
20081    # (2) before a word containing "conftest.", or (3) at the end.
20082    # Note that $ac_compile itself does not contain backslashes and begins
20083    # with a dollar sign (not a hyphen), so the echo should work correctly.
20084    lt_compile=`echo "$ac_compile" | $SED \
20085    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20086    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20087    -e 's:$: $lt_compiler_flag:'`
20088    (eval echo "\"\$as_me:20088: $lt_compile\"" >&5)
20089    (eval "$lt_compile" 2>out/conftest.err)
20090    ac_status=$?
20091    cat out/conftest.err >&5
20092    echo "$as_me:20092: \$? = $ac_status" >&5
20093    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20094    then
20095      # The compiler can only warn and ignore the option if not recognized
20096      # So say no if there are warnings
20097      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20098      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20099      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20100        lt_cv_prog_compiler_c_o_CXX=yes
20101      fi
20102    fi
20103    chmod u+w . 2>&5
20104    $rm conftest*
20105    # SGI C++ compiler will create directory out/ii_files/ for
20106    # template instantiation
20107    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20108    $rm out/* && rmdir out
20109    cd ..
20110    rmdir conftest
20111    $rm conftest*
20112
20113 fi
20114 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20115 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20116
20117
20118 hard_links="nottested"
20119 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20120   # do not overwrite the value of need_locks provided by the user
20121   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20122 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20123   hard_links=yes
20124   $rm conftest*
20125   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20126   touch conftest.a
20127   ln conftest.a conftest.b 2>&5 || hard_links=no
20128   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20129   { echo "$as_me:$LINENO: result: $hard_links" >&5
20130 echo "${ECHO_T}$hard_links" >&6; }
20131   if test "$hard_links" = no; then
20132     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20133 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20134     need_locks=warn
20135   fi
20136 else
20137   need_locks=no
20138 fi
20139
20140 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20141 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20142
20143   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20144   case $host_os in
20145   aix4* | aix5*)
20146     # If we're using GNU nm, then we don't want the "-C" option.
20147     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20148     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20149       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'
20150     else
20151       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'
20152     fi
20153     ;;
20154   pw32*)
20155     export_symbols_cmds_CXX="$ltdll_cmds"
20156   ;;
20157   cygwin* | mingw*)
20158     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'
20159   ;;
20160   *)
20161     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20162   ;;
20163   esac
20164
20165 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20166 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20167 test "$ld_shlibs_CXX" = no && can_build_shared=no
20168
20169 #
20170 # Do we need to explicitly link libc?
20171 #
20172 case "x$archive_cmds_need_lc_CXX" in
20173 x|xyes)
20174   # Assume -lc should be added
20175   archive_cmds_need_lc_CXX=yes
20176
20177   if test "$enable_shared" = yes && test "$GCC" = yes; then
20178     case $archive_cmds_CXX in
20179     *'~'*)
20180       # FIXME: we may have to deal with multi-command sequences.
20181       ;;
20182     '$CC '*)
20183       # Test whether the compiler implicitly links with -lc since on some
20184       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20185       # to ld, don't add -lc before -lgcc.
20186       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20187 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20188       $rm conftest*
20189       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20190
20191       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20192   (eval $ac_compile) 2>&5
20193   ac_status=$?
20194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); } 2>conftest.err; then
20196         soname=conftest
20197         lib=conftest
20198         libobjs=conftest.$ac_objext
20199         deplibs=
20200         wl=$lt_prog_compiler_wl_CXX
20201         pic_flag=$lt_prog_compiler_pic_CXX
20202         compiler_flags=-v
20203         linker_flags=-v
20204         verstring=
20205         output_objdir=.
20206         libname=conftest
20207         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20208         allow_undefined_flag_CXX=
20209         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20210   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20211   ac_status=$?
20212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213   (exit $ac_status); }
20214         then
20215           archive_cmds_need_lc_CXX=no
20216         else
20217           archive_cmds_need_lc_CXX=yes
20218         fi
20219         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20220       else
20221         cat conftest.err 1>&5
20222       fi
20223       $rm conftest*
20224       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20225 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20226       ;;
20227     esac
20228   fi
20229   ;;
20230 esac
20231
20232 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20233 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20234 library_names_spec=
20235 libname_spec='lib$name'
20236 soname_spec=
20237 shrext_cmds=".so"
20238 postinstall_cmds=
20239 postuninstall_cmds=
20240 finish_cmds=
20241 finish_eval=
20242 shlibpath_var=
20243 shlibpath_overrides_runpath=unknown
20244 version_type=none
20245 dynamic_linker="$host_os ld.so"
20246 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20247 if test "$GCC" = yes; then
20248   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20249   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20250     # if the path contains ";" then we assume it to be the separator
20251     # otherwise default to the standard path separator (i.e. ":") - it is
20252     # assumed that no part of a normal pathname contains ";" but that should
20253     # okay in the real world where ";" in dirpaths is itself problematic.
20254     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20255   else
20256     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20257   fi
20258 else
20259   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20260 fi
20261 need_lib_prefix=unknown
20262 hardcode_into_libs=no
20263
20264 # when you set need_version to no, make sure it does not cause -set_version
20265 # flags to be left without arguments
20266 need_version=unknown
20267
20268 case $host_os in
20269 aix3*)
20270   version_type=linux
20271   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20272   shlibpath_var=LIBPATH
20273
20274   # AIX 3 has no versioning support, so we append a major version to the name.
20275   soname_spec='${libname}${release}${shared_ext}$major'
20276   ;;
20277
20278 aix4* | aix5*)
20279   version_type=linux
20280   need_lib_prefix=no
20281   need_version=no
20282   hardcode_into_libs=yes
20283   if test "$host_cpu" = ia64; then
20284     # AIX 5 supports IA64
20285     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20286     shlibpath_var=LD_LIBRARY_PATH
20287   else
20288     # With GCC up to 2.95.x, collect2 would create an import file
20289     # for dependence libraries.  The import file would start with
20290     # the line `#! .'.  This would cause the generated library to
20291     # depend on `.', always an invalid library.  This was fixed in
20292     # development snapshots of GCC prior to 3.0.
20293     case $host_os in
20294       aix4 | aix4.[01] | aix4.[01].*)
20295       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20296            echo ' yes '
20297            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20298         :
20299       else
20300         can_build_shared=no
20301       fi
20302       ;;
20303     esac
20304     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20305     # soname into executable. Probably we can add versioning support to
20306     # collect2, so additional links can be useful in future.
20307     if test "$aix_use_runtimelinking" = yes; then
20308       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20309       # instead of lib<name>.a to let people know that these are not
20310       # typical AIX shared libraries.
20311       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20312     else
20313       # We preserve .a as extension for shared libraries through AIX4.2
20314       # and later when we are not doing run time linking.
20315       library_names_spec='${libname}${release}.a $libname.a'
20316       soname_spec='${libname}${release}${shared_ext}$major'
20317     fi
20318     shlibpath_var=LIBPATH
20319   fi
20320   ;;
20321
20322 amigaos*)
20323   library_names_spec='$libname.ixlibrary $libname.a'
20324   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20325   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'
20326   ;;
20327
20328 beos*)
20329   library_names_spec='${libname}${shared_ext}'
20330   dynamic_linker="$host_os ld.so"
20331   shlibpath_var=LIBRARY_PATH
20332   ;;
20333
20334 bsdi[45]*)
20335   version_type=linux
20336   need_version=no
20337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20338   soname_spec='${libname}${release}${shared_ext}$major'
20339   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20340   shlibpath_var=LD_LIBRARY_PATH
20341   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20342   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20343   # the default ld.so.conf also contains /usr/contrib/lib and
20344   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20345   # libtool to hard-code these into programs
20346   ;;
20347
20348 cygwin* | mingw* | pw32*)
20349   version_type=windows
20350   shrext_cmds=".dll"
20351   need_version=no
20352   need_lib_prefix=no
20353
20354   case $GCC,$host_os in
20355   yes,cygwin* | yes,mingw* | yes,pw32*)
20356     library_names_spec='$libname.dll.a'
20357     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20358     postinstall_cmds='base_file=`basename \${file}`~
20359       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20360       dldir=$destdir/`dirname \$dlpath`~
20361       test -d \$dldir || mkdir -p \$dldir~
20362       $install_prog $dir/$dlname \$dldir/$dlname~
20363       chmod a+x \$dldir/$dlname'
20364     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20365       dlpath=$dir/\$dldll~
20366        $rm \$dlpath'
20367     shlibpath_overrides_runpath=yes
20368
20369     case $host_os in
20370     cygwin*)
20371       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20372       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20373       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20374       ;;
20375     mingw*)
20376       # MinGW DLLs use traditional 'lib' prefix
20377       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20378       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20379       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20380         # It is most probably a Windows format PATH printed by
20381         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20382         # path with ; separators, and with drive letters. We can handle the
20383         # drive letters (cygwin fileutils understands them), so leave them,
20384         # especially as we might pass files found there to a mingw objdump,
20385         # which wouldn't understand a cygwinified path. Ahh.
20386         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20387       else
20388         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20389       fi
20390       ;;
20391     pw32*)
20392       # pw32 DLLs use 'pw' prefix rather than 'lib'
20393       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20394       ;;
20395     esac
20396     ;;
20397
20398   *)
20399     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20400     ;;
20401   esac
20402   dynamic_linker='Win32 ld.exe'
20403   # FIXME: first we should search . and the directory the executable is in
20404   shlibpath_var=PATH
20405   ;;
20406
20407 darwin* | rhapsody*)
20408   dynamic_linker="$host_os dyld"
20409   version_type=darwin
20410   need_lib_prefix=no
20411   need_version=no
20412   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20413   soname_spec='${libname}${release}${major}$shared_ext'
20414   shlibpath_overrides_runpath=yes
20415   shlibpath_var=DYLD_LIBRARY_PATH
20416   shrext_cmds='.dylib'
20417   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20418   if test "$GCC" = yes; then
20419     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
20420   else
20421     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20422   fi
20423   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20424   ;;
20425
20426 dgux*)
20427   version_type=linux
20428   need_lib_prefix=no
20429   need_version=no
20430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20431   soname_spec='${libname}${release}${shared_ext}$major'
20432   shlibpath_var=LD_LIBRARY_PATH
20433   ;;
20434
20435 freebsd1*)
20436   dynamic_linker=no
20437   ;;
20438
20439 kfreebsd*-gnu)
20440   version_type=linux
20441   need_lib_prefix=no
20442   need_version=no
20443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20444   soname_spec='${libname}${release}${shared_ext}$major'
20445   shlibpath_var=LD_LIBRARY_PATH
20446   shlibpath_overrides_runpath=no
20447   hardcode_into_libs=yes
20448   dynamic_linker='GNU ld.so'
20449   ;;
20450
20451 freebsd* | dragonfly*)
20452   # DragonFly does not have aout.  When/if they implement a new
20453   # versioning mechanism, adjust this.
20454   if test -x /usr/bin/objformat; then
20455     objformat=`/usr/bin/objformat`
20456   else
20457     case $host_os in
20458     freebsd[123]*) objformat=aout ;;
20459     *) objformat=elf ;;
20460     esac
20461   fi
20462   version_type=freebsd-$objformat
20463   case $version_type in
20464     freebsd-elf*)
20465       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20466       need_version=no
20467       need_lib_prefix=no
20468       ;;
20469     freebsd-*)
20470       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20471       need_version=yes
20472       ;;
20473   esac
20474   shlibpath_var=LD_LIBRARY_PATH
20475   case $host_os in
20476   freebsd2*)
20477     shlibpath_overrides_runpath=yes
20478     ;;
20479   freebsd3.[01]* | freebsdelf3.[01]*)
20480     shlibpath_overrides_runpath=yes
20481     hardcode_into_libs=yes
20482     ;;
20483   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20484   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20485     shlibpath_overrides_runpath=no
20486     hardcode_into_libs=yes
20487     ;;
20488   freebsd*) # from 4.6 on
20489     shlibpath_overrides_runpath=yes
20490     hardcode_into_libs=yes
20491     ;;
20492   esac
20493   ;;
20494
20495 gnu*)
20496   version_type=linux
20497   need_lib_prefix=no
20498   need_version=no
20499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20500   soname_spec='${libname}${release}${shared_ext}$major'
20501   shlibpath_var=LD_LIBRARY_PATH
20502   hardcode_into_libs=yes
20503   ;;
20504
20505 hpux9* | hpux10* | hpux11*)
20506   # Give a soname corresponding to the major version so that dld.sl refuses to
20507   # link against other versions.
20508   version_type=sunos
20509   need_lib_prefix=no
20510   need_version=no
20511   case $host_cpu in
20512   ia64*)
20513     shrext_cmds='.so'
20514     hardcode_into_libs=yes
20515     dynamic_linker="$host_os dld.so"
20516     shlibpath_var=LD_LIBRARY_PATH
20517     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20518     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20519     soname_spec='${libname}${release}${shared_ext}$major'
20520     if test "X$HPUX_IA64_MODE" = X32; then
20521       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20522     else
20523       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20524     fi
20525     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20526     ;;
20527    hppa*64*)
20528      shrext_cmds='.sl'
20529      hardcode_into_libs=yes
20530      dynamic_linker="$host_os dld.sl"
20531      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20532      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20533      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20534      soname_spec='${libname}${release}${shared_ext}$major'
20535      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20536      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20537      ;;
20538    *)
20539     shrext_cmds='.sl'
20540     dynamic_linker="$host_os dld.sl"
20541     shlibpath_var=SHLIB_PATH
20542     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20543     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20544     soname_spec='${libname}${release}${shared_ext}$major'
20545     ;;
20546   esac
20547   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20548   postinstall_cmds='chmod 555 $lib'
20549   ;;
20550
20551 interix3*)
20552   version_type=linux
20553   need_lib_prefix=no
20554   need_version=no
20555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20556   soname_spec='${libname}${release}${shared_ext}$major'
20557   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20558   shlibpath_var=LD_LIBRARY_PATH
20559   shlibpath_overrides_runpath=no
20560   hardcode_into_libs=yes
20561   ;;
20562
20563 irix5* | irix6* | nonstopux*)
20564   case $host_os in
20565     nonstopux*) version_type=nonstopux ;;
20566     *)
20567         if test "$lt_cv_prog_gnu_ld" = yes; then
20568                 version_type=linux
20569         else
20570                 version_type=irix
20571         fi ;;
20572   esac
20573   need_lib_prefix=no
20574   need_version=no
20575   soname_spec='${libname}${release}${shared_ext}$major'
20576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20577   case $host_os in
20578   irix5* | nonstopux*)
20579     libsuff= shlibsuff=
20580     ;;
20581   *)
20582     case $LD in # libtool.m4 will add one of these switches to LD
20583     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20584       libsuff= shlibsuff= libmagic=32-bit;;
20585     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20586       libsuff=32 shlibsuff=N32 libmagic=N32;;
20587     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20588       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20589     *) libsuff= shlibsuff= libmagic=never-match;;
20590     esac
20591     ;;
20592   esac
20593   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20594   shlibpath_overrides_runpath=no
20595   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20596   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20597   hardcode_into_libs=yes
20598   ;;
20599
20600 # No shared lib support for Linux oldld, aout, or coff.
20601 linux*oldld* | linux*aout* | linux*coff*)
20602   dynamic_linker=no
20603   ;;
20604
20605 # This must be Linux ELF.
20606 linux*)
20607   version_type=linux
20608   need_lib_prefix=no
20609   need_version=no
20610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20611   soname_spec='${libname}${release}${shared_ext}$major'
20612   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20613   shlibpath_var=LD_LIBRARY_PATH
20614   shlibpath_overrides_runpath=no
20615   # This implies no fast_install, which is unacceptable.
20616   # Some rework will be needed to allow for fast_install
20617   # before this can be enabled.
20618   hardcode_into_libs=yes
20619
20620   # Append ld.so.conf contents to the search path
20621   if test -f /etc/ld.so.conf; then
20622     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20623     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20624   fi
20625
20626   # We used to test for /lib/ld.so.1 and disable shared libraries on
20627   # powerpc, because MkLinux only supported shared libraries with the
20628   # GNU dynamic linker.  Since this was broken with cross compilers,
20629   # most powerpc-linux boxes support dynamic linking these days and
20630   # people can always --disable-shared, the test was removed, and we
20631   # assume the GNU/Linux dynamic linker is in use.
20632   dynamic_linker='GNU/Linux ld.so'
20633   ;;
20634
20635 knetbsd*-gnu)
20636   version_type=linux
20637   need_lib_prefix=no
20638   need_version=no
20639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20640   soname_spec='${libname}${release}${shared_ext}$major'
20641   shlibpath_var=LD_LIBRARY_PATH
20642   shlibpath_overrides_runpath=no
20643   hardcode_into_libs=yes
20644   dynamic_linker='GNU ld.so'
20645   ;;
20646
20647 netbsd*)
20648   version_type=sunos
20649   need_lib_prefix=no
20650   need_version=no
20651   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20652     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20653     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20654     dynamic_linker='NetBSD (a.out) ld.so'
20655   else
20656     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20657     soname_spec='${libname}${release}${shared_ext}$major'
20658     dynamic_linker='NetBSD ld.elf_so'
20659   fi
20660   shlibpath_var=LD_LIBRARY_PATH
20661   shlibpath_overrides_runpath=yes
20662   hardcode_into_libs=yes
20663   ;;
20664
20665 newsos6)
20666   version_type=linux
20667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20668   shlibpath_var=LD_LIBRARY_PATH
20669   shlibpath_overrides_runpath=yes
20670   ;;
20671
20672 nto-qnx*)
20673   version_type=linux
20674   need_lib_prefix=no
20675   need_version=no
20676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20677   soname_spec='${libname}${release}${shared_ext}$major'
20678   shlibpath_var=LD_LIBRARY_PATH
20679   shlibpath_overrides_runpath=yes
20680   ;;
20681
20682 openbsd*)
20683   version_type=sunos
20684   sys_lib_dlsearch_path_spec="/usr/lib"
20685   need_lib_prefix=no
20686   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20687   case $host_os in
20688     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20689     *)                         need_version=no  ;;
20690   esac
20691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20692   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20693   shlibpath_var=LD_LIBRARY_PATH
20694   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20695     case $host_os in
20696       openbsd2.[89] | openbsd2.[89].*)
20697         shlibpath_overrides_runpath=no
20698         ;;
20699       *)
20700         shlibpath_overrides_runpath=yes
20701         ;;
20702       esac
20703   else
20704     shlibpath_overrides_runpath=yes
20705   fi
20706   ;;
20707
20708 os2*)
20709   libname_spec='$name'
20710   shrext_cmds=".dll"
20711   need_lib_prefix=no
20712   library_names_spec='$libname${shared_ext} $libname.a'
20713   dynamic_linker='OS/2 ld.exe'
20714   shlibpath_var=LIBPATH
20715   ;;
20716
20717 osf3* | osf4* | osf5*)
20718   version_type=osf
20719   need_lib_prefix=no
20720   need_version=no
20721   soname_spec='${libname}${release}${shared_ext}$major'
20722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20723   shlibpath_var=LD_LIBRARY_PATH
20724   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20725   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20726   ;;
20727
20728 solaris*)
20729   version_type=linux
20730   need_lib_prefix=no
20731   need_version=no
20732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20733   soname_spec='${libname}${release}${shared_ext}$major'
20734   shlibpath_var=LD_LIBRARY_PATH
20735   shlibpath_overrides_runpath=yes
20736   hardcode_into_libs=yes
20737   # ldd complains unless libraries are executable
20738   postinstall_cmds='chmod +x $lib'
20739   ;;
20740
20741 sunos4*)
20742   version_type=sunos
20743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20744   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20745   shlibpath_var=LD_LIBRARY_PATH
20746   shlibpath_overrides_runpath=yes
20747   if test "$with_gnu_ld" = yes; then
20748     need_lib_prefix=no
20749   fi
20750   need_version=yes
20751   ;;
20752
20753 sysv4 | sysv4.3*)
20754   version_type=linux
20755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20756   soname_spec='${libname}${release}${shared_ext}$major'
20757   shlibpath_var=LD_LIBRARY_PATH
20758   case $host_vendor in
20759     sni)
20760       shlibpath_overrides_runpath=no
20761       need_lib_prefix=no
20762       export_dynamic_flag_spec='${wl}-Blargedynsym'
20763       runpath_var=LD_RUN_PATH
20764       ;;
20765     siemens)
20766       need_lib_prefix=no
20767       ;;
20768     motorola)
20769       need_lib_prefix=no
20770       need_version=no
20771       shlibpath_overrides_runpath=no
20772       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20773       ;;
20774   esac
20775   ;;
20776
20777 sysv4*MP*)
20778   if test -d /usr/nec ;then
20779     version_type=linux
20780     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20781     soname_spec='$libname${shared_ext}.$major'
20782     shlibpath_var=LD_LIBRARY_PATH
20783   fi
20784   ;;
20785
20786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20787   version_type=freebsd-elf
20788   need_lib_prefix=no
20789   need_version=no
20790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20791   soname_spec='${libname}${release}${shared_ext}$major'
20792   shlibpath_var=LD_LIBRARY_PATH
20793   hardcode_into_libs=yes
20794   if test "$with_gnu_ld" = yes; then
20795     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20796     shlibpath_overrides_runpath=no
20797   else
20798     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20799     shlibpath_overrides_runpath=yes
20800     case $host_os in
20801       sco3.2v5*)
20802         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20803         ;;
20804     esac
20805   fi
20806   sys_lib_dlsearch_path_spec='/usr/lib'
20807   ;;
20808
20809 uts4*)
20810   version_type=linux
20811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20812   soname_spec='${libname}${release}${shared_ext}$major'
20813   shlibpath_var=LD_LIBRARY_PATH
20814   ;;
20815
20816 *)
20817   dynamic_linker=no
20818   ;;
20819 esac
20820 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20821 echo "${ECHO_T}$dynamic_linker" >&6; }
20822 test "$dynamic_linker" = no && can_build_shared=no
20823
20824 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20825 if test "$GCC" = yes; then
20826   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20827 fi
20828
20829 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20830 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20831 hardcode_action_CXX=
20832 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20833    test -n "$runpath_var_CXX" || \
20834    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20835
20836   # We can hardcode non-existant directories.
20837   if test "$hardcode_direct_CXX" != no &&
20838      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20839      # have to relink, otherwise we might link with an installed library
20840      # when we should be linking with a yet-to-be-installed one
20841      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20842      test "$hardcode_minus_L_CXX" != no; then
20843     # Linking always hardcodes the temporary library directory.
20844     hardcode_action_CXX=relink
20845   else
20846     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20847     hardcode_action_CXX=immediate
20848   fi
20849 else
20850   # We cannot hardcode anything, or else we can only hardcode existing
20851   # directories.
20852   hardcode_action_CXX=unsupported
20853 fi
20854 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20855 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20856
20857 if test "$hardcode_action_CXX" = relink; then
20858   # Fast installation is not supported
20859   enable_fast_install=no
20860 elif test "$shlibpath_overrides_runpath" = yes ||
20861      test "$enable_shared" = no; then
20862   # Fast installation is not necessary
20863   enable_fast_install=needless
20864 fi
20865
20866
20867 # The else clause should only fire when bootstrapping the
20868 # libtool distribution, otherwise you forgot to ship ltmain.sh
20869 # with your package, and you will get complaints that there are
20870 # no rules to generate ltmain.sh.
20871 if test -f "$ltmain"; then
20872   # See if we are running on zsh, and set the options which allow our commands through
20873   # without removal of \ escapes.
20874   if test -n "${ZSH_VERSION+set}" ; then
20875     setopt NO_GLOB_SUBST
20876   fi
20877   # Now quote all the things that may contain metacharacters while being
20878   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20879   # variables and quote the copies for generation of the libtool script.
20880   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20881     SED SHELL STRIP \
20882     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20883     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20884     deplibs_check_method reload_flag reload_cmds need_locks \
20885     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20886     lt_cv_sys_global_symbol_to_c_name_address \
20887     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20888     old_postinstall_cmds old_postuninstall_cmds \
20889     compiler_CXX \
20890     CC_CXX \
20891     LD_CXX \
20892     lt_prog_compiler_wl_CXX \
20893     lt_prog_compiler_pic_CXX \
20894     lt_prog_compiler_static_CXX \
20895     lt_prog_compiler_no_builtin_flag_CXX \
20896     export_dynamic_flag_spec_CXX \
20897     thread_safe_flag_spec_CXX \
20898     whole_archive_flag_spec_CXX \
20899     enable_shared_with_static_runtimes_CXX \
20900     old_archive_cmds_CXX \
20901     old_archive_from_new_cmds_CXX \
20902     predep_objects_CXX \
20903     postdep_objects_CXX \
20904     predeps_CXX \
20905     postdeps_CXX \
20906     compiler_lib_search_path_CXX \
20907     archive_cmds_CXX \
20908     archive_expsym_cmds_CXX \
20909     postinstall_cmds_CXX \
20910     postuninstall_cmds_CXX \
20911     old_archive_from_expsyms_cmds_CXX \
20912     allow_undefined_flag_CXX \
20913     no_undefined_flag_CXX \
20914     export_symbols_cmds_CXX \
20915     hardcode_libdir_flag_spec_CXX \
20916     hardcode_libdir_flag_spec_ld_CXX \
20917     hardcode_libdir_separator_CXX \
20918     hardcode_automatic_CXX \
20919     module_cmds_CXX \
20920     module_expsym_cmds_CXX \
20921     lt_cv_prog_compiler_c_o_CXX \
20922     exclude_expsyms_CXX \
20923     include_expsyms_CXX; do
20924
20925     case $var in
20926     old_archive_cmds_CXX | \
20927     old_archive_from_new_cmds_CXX | \
20928     archive_cmds_CXX | \
20929     archive_expsym_cmds_CXX | \
20930     module_cmds_CXX | \
20931     module_expsym_cmds_CXX | \
20932     old_archive_from_expsyms_cmds_CXX | \
20933     export_symbols_cmds_CXX | \
20934     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20935     postinstall_cmds | postuninstall_cmds | \
20936     old_postinstall_cmds | old_postuninstall_cmds | \
20937     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20938       # Double-quote double-evaled strings.
20939       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20940       ;;
20941     *)
20942       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20943       ;;
20944     esac
20945   done
20946
20947   case $lt_echo in
20948   *'\$0 --fallback-echo"')
20949     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20950     ;;
20951   esac
20952
20953 cfgfile="$ofile"
20954
20955   cat <<__EOF__ >> "$cfgfile"
20956 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20957
20958 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20959
20960 # Shell to use when invoking shell scripts.
20961 SHELL=$lt_SHELL
20962
20963 # Whether or not to build shared libraries.
20964 build_libtool_libs=$enable_shared
20965
20966 # Whether or not to build static libraries.
20967 build_old_libs=$enable_static
20968
20969 # Whether or not to add -lc for building shared libraries.
20970 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20971
20972 # Whether or not to disallow shared libs when runtime libs are static
20973 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20974
20975 # Whether or not to optimize for fast installation.
20976 fast_install=$enable_fast_install
20977
20978 # The host system.
20979 host_alias=$host_alias
20980 host=$host
20981 host_os=$host_os
20982
20983 # The build system.
20984 build_alias=$build_alias
20985 build=$build
20986 build_os=$build_os
20987
20988 # An echo program that does not interpret backslashes.
20989 echo=$lt_echo
20990
20991 # The archiver.
20992 AR=$lt_AR
20993 AR_FLAGS=$lt_AR_FLAGS
20994
20995 # A C compiler.
20996 LTCC=$lt_LTCC
20997
20998 # LTCC compiler flags.
20999 LTCFLAGS=$lt_LTCFLAGS
21000
21001 # A language-specific compiler.
21002 CC=$lt_compiler_CXX
21003
21004 # Is the compiler the GNU C compiler?
21005 with_gcc=$GCC_CXX
21006
21007 # An ERE matcher.
21008 EGREP=$lt_EGREP
21009
21010 # The linker used to build libraries.
21011 LD=$lt_LD_CXX
21012
21013 # Whether we need hard or soft links.
21014 LN_S=$lt_LN_S
21015
21016 # A BSD-compatible nm program.
21017 NM=$lt_NM
21018
21019 # A symbol stripping program
21020 STRIP=$lt_STRIP
21021
21022 # Used to examine libraries when file_magic_cmd begins "file"
21023 MAGIC_CMD=$MAGIC_CMD
21024
21025 # Used on cygwin: DLL creation program.
21026 DLLTOOL="$DLLTOOL"
21027
21028 # Used on cygwin: object dumper.
21029 OBJDUMP="$OBJDUMP"
21030
21031 # Used on cygwin: assembler.
21032 AS="$AS"
21033
21034 # The name of the directory that contains temporary libtool files.
21035 objdir=$objdir
21036
21037 # How to create reloadable object files.
21038 reload_flag=$lt_reload_flag
21039 reload_cmds=$lt_reload_cmds
21040
21041 # How to pass a linker flag through the compiler.
21042 wl=$lt_lt_prog_compiler_wl_CXX
21043
21044 # Object file suffix (normally "o").
21045 objext="$ac_objext"
21046
21047 # Old archive suffix (normally "a").
21048 libext="$libext"
21049
21050 # Shared library suffix (normally ".so").
21051 shrext_cmds='$shrext_cmds'
21052
21053 # Executable file suffix (normally "").
21054 exeext="$exeext"
21055
21056 # Additional compiler flags for building library objects.
21057 pic_flag=$lt_lt_prog_compiler_pic_CXX
21058 pic_mode=$pic_mode
21059
21060 # What is the maximum length of a command?
21061 max_cmd_len=$lt_cv_sys_max_cmd_len
21062
21063 # Does compiler simultaneously support -c and -o options?
21064 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21065
21066 # Must we lock files when doing compilation?
21067 need_locks=$lt_need_locks
21068
21069 # Do we need the lib prefix for modules?
21070 need_lib_prefix=$need_lib_prefix
21071
21072 # Do we need a version for libraries?
21073 need_version=$need_version
21074
21075 # Whether dlopen is supported.
21076 dlopen_support=$enable_dlopen
21077
21078 # Whether dlopen of programs is supported.
21079 dlopen_self=$enable_dlopen_self
21080
21081 # Whether dlopen of statically linked programs is supported.
21082 dlopen_self_static=$enable_dlopen_self_static
21083
21084 # Compiler flag to prevent dynamic linking.
21085 link_static_flag=$lt_lt_prog_compiler_static_CXX
21086
21087 # Compiler flag to turn off builtin functions.
21088 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21089
21090 # Compiler flag to allow reflexive dlopens.
21091 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21092
21093 # Compiler flag to generate shared objects directly from archives.
21094 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21095
21096 # Compiler flag to generate thread-safe objects.
21097 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21098
21099 # Library versioning type.
21100 version_type=$version_type
21101
21102 # Format of library name prefix.
21103 libname_spec=$lt_libname_spec
21104
21105 # List of archive names.  First name is the real one, the rest are links.
21106 # The last name is the one that the linker finds with -lNAME.
21107 library_names_spec=$lt_library_names_spec
21108
21109 # The coded name of the library, if different from the real name.
21110 soname_spec=$lt_soname_spec
21111
21112 # Commands used to build and install an old-style archive.
21113 RANLIB=$lt_RANLIB
21114 old_archive_cmds=$lt_old_archive_cmds_CXX
21115 old_postinstall_cmds=$lt_old_postinstall_cmds
21116 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21117
21118 # Create an old-style archive from a shared archive.
21119 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21120
21121 # Create a temporary old-style archive to link instead of a shared archive.
21122 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21123
21124 # Commands used to build and install a shared archive.
21125 archive_cmds=$lt_archive_cmds_CXX
21126 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21127 postinstall_cmds=$lt_postinstall_cmds
21128 postuninstall_cmds=$lt_postuninstall_cmds
21129
21130 # Commands used to build a loadable module (assumed same as above if empty)
21131 module_cmds=$lt_module_cmds_CXX
21132 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21133
21134 # Commands to strip libraries.
21135 old_striplib=$lt_old_striplib
21136 striplib=$lt_striplib
21137
21138 # Dependencies to place before the objects being linked to create a
21139 # shared library.
21140 predep_objects=$lt_predep_objects_CXX
21141
21142 # Dependencies to place after the objects being linked to create a
21143 # shared library.
21144 postdep_objects=$lt_postdep_objects_CXX
21145
21146 # Dependencies to place before the objects being linked to create a
21147 # shared library.
21148 predeps=$lt_predeps_CXX
21149
21150 # Dependencies to place after the objects being linked to create a
21151 # shared library.
21152 postdeps=$lt_postdeps_CXX
21153
21154 # The library search path used internally by the compiler when linking
21155 # a shared library.
21156 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21157
21158 # Method to check whether dependent libraries are shared objects.
21159 deplibs_check_method=$lt_deplibs_check_method
21160
21161 # Command to use when deplibs_check_method == file_magic.
21162 file_magic_cmd=$lt_file_magic_cmd
21163
21164 # Flag that allows shared libraries with undefined symbols to be built.
21165 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21166
21167 # Flag that forces no undefined symbols.
21168 no_undefined_flag=$lt_no_undefined_flag_CXX
21169
21170 # Commands used to finish a libtool library installation in a directory.
21171 finish_cmds=$lt_finish_cmds
21172
21173 # Same as above, but a single script fragment to be evaled but not shown.
21174 finish_eval=$lt_finish_eval
21175
21176 # Take the output of nm and produce a listing of raw symbols and C names.
21177 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21178
21179 # Transform the output of nm in a proper C declaration
21180 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21181
21182 # Transform the output of nm in a C name address pair
21183 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21184
21185 # This is the shared library runtime path variable.
21186 runpath_var=$runpath_var
21187
21188 # This is the shared library path variable.
21189 shlibpath_var=$shlibpath_var
21190
21191 # Is shlibpath searched before the hard-coded library search path?
21192 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21193
21194 # How to hardcode a shared library path into an executable.
21195 hardcode_action=$hardcode_action_CXX
21196
21197 # Whether we should hardcode library paths into libraries.
21198 hardcode_into_libs=$hardcode_into_libs
21199
21200 # Flag to hardcode \$libdir into a binary during linking.
21201 # This must work even if \$libdir does not exist.
21202 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21203
21204 # If ld is used when linking, flag to hardcode \$libdir into
21205 # a binary during linking. This must work even if \$libdir does
21206 # not exist.
21207 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21208
21209 # Whether we need a single -rpath flag with a separated argument.
21210 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21211
21212 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21213 # resulting binary.
21214 hardcode_direct=$hardcode_direct_CXX
21215
21216 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21217 # resulting binary.
21218 hardcode_minus_L=$hardcode_minus_L_CXX
21219
21220 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21221 # the resulting binary.
21222 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21223
21224 # Set to yes if building a shared library automatically hardcodes DIR into the library
21225 # and all subsequent libraries and executables linked against it.
21226 hardcode_automatic=$hardcode_automatic_CXX
21227
21228 # Variables whose values should be saved in libtool wrapper scripts and
21229 # restored at relink time.
21230 variables_saved_for_relink="$variables_saved_for_relink"
21231
21232 # Whether libtool must link a program against all its dependency libraries.
21233 link_all_deplibs=$link_all_deplibs_CXX
21234
21235 # Compile-time system search path for libraries
21236 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21237
21238 # Run-time system search path for libraries
21239 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21240
21241 # Fix the shell variable \$srcfile for the compiler.
21242 fix_srcfile_path="$fix_srcfile_path_CXX"
21243
21244 # Set to yes if exported symbols are required.
21245 always_export_symbols=$always_export_symbols_CXX
21246
21247 # The commands to list exported symbols.
21248 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21249
21250 # The commands to extract the exported symbol list from a shared archive.
21251 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21252
21253 # Symbols that should not be listed in the preloaded symbols.
21254 exclude_expsyms=$lt_exclude_expsyms_CXX
21255
21256 # Symbols that must always be exported.
21257 include_expsyms=$lt_include_expsyms_CXX
21258
21259 # ### END LIBTOOL TAG CONFIG: $tagname
21260
21261 __EOF__
21262
21263
21264 else
21265   # If there is no Makefile yet, we rely on a make rule to execute
21266   # `config.status --recheck' to rerun these tests and create the
21267   # libtool script then.
21268   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21269   if test -f "$ltmain_in"; then
21270     test -f Makefile && make "$ltmain"
21271   fi
21272 fi
21273
21274
21275 ac_ext=c
21276 ac_cpp='$CPP $CPPFLAGS'
21277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21280
21281 CC=$lt_save_CC
21282 LDCXX=$LD
21283 LD=$lt_save_LD
21284 GCC=$lt_save_GCC
21285 with_gnu_ldcxx=$with_gnu_ld
21286 with_gnu_ld=$lt_save_with_gnu_ld
21287 lt_cv_path_LDCXX=$lt_cv_path_LD
21288 lt_cv_path_LD=$lt_save_path_LD
21289 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21290 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21291
21292         else
21293           tagname=""
21294         fi
21295         ;;
21296
21297       F77)
21298         if test -n "$F77" && test "X$F77" != "Xno"; then
21299
21300 ac_ext=f
21301 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21302 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21303 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21304
21305
21306 archive_cmds_need_lc_F77=no
21307 allow_undefined_flag_F77=
21308 always_export_symbols_F77=no
21309 archive_expsym_cmds_F77=
21310 export_dynamic_flag_spec_F77=
21311 hardcode_direct_F77=no
21312 hardcode_libdir_flag_spec_F77=
21313 hardcode_libdir_flag_spec_ld_F77=
21314 hardcode_libdir_separator_F77=
21315 hardcode_minus_L_F77=no
21316 hardcode_automatic_F77=no
21317 module_cmds_F77=
21318 module_expsym_cmds_F77=
21319 link_all_deplibs_F77=unknown
21320 old_archive_cmds_F77=$old_archive_cmds
21321 no_undefined_flag_F77=
21322 whole_archive_flag_spec_F77=
21323 enable_shared_with_static_runtimes_F77=no
21324
21325 # Source file extension for f77 test sources.
21326 ac_ext=f
21327
21328 # Object file extension for compiled f77 test sources.
21329 objext=o
21330 objext_F77=$objext
21331
21332 # Code to be used in simple compile tests
21333 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21334
21335 # Code to be used in simple link tests
21336 lt_simple_link_test_code="      program t\n      end\n"
21337
21338 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21339
21340 # If no C compiler was specified, use CC.
21341 LTCC=${LTCC-"$CC"}
21342
21343 # If no C compiler flags were specified, use CFLAGS.
21344 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21345
21346 # Allow CC to be a program name with arguments.
21347 compiler=$CC
21348
21349
21350 # save warnings/boilerplate of simple test code
21351 ac_outfile=conftest.$ac_objext
21352 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21353 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21354 _lt_compiler_boilerplate=`cat conftest.err`
21355 $rm conftest*
21356
21357 ac_outfile=conftest.$ac_objext
21358 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21359 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21360 _lt_linker_boilerplate=`cat conftest.err`
21361 $rm conftest*
21362
21363
21364 # Allow CC to be a program name with arguments.
21365 lt_save_CC="$CC"
21366 CC=${F77-"f77"}
21367 compiler=$CC
21368 compiler_F77=$CC
21369 for cc_temp in $compiler""; do
21370   case $cc_temp in
21371     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21372     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21373     \-*) ;;
21374     *) break;;
21375   esac
21376 done
21377 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21378
21379
21380 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21381 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21382 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21383 echo "${ECHO_T}$can_build_shared" >&6; }
21384
21385 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21386 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21387 test "$can_build_shared" = "no" && enable_shared=no
21388
21389 # On AIX, shared libraries and static libraries use the same namespace, and
21390 # are all built from PIC.
21391 case $host_os in
21392 aix3*)
21393   test "$enable_shared" = yes && enable_static=no
21394   if test -n "$RANLIB"; then
21395     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21396     postinstall_cmds='$RANLIB $lib'
21397   fi
21398   ;;
21399 aix4* | aix5*)
21400   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21401     test "$enable_shared" = yes && enable_static=no
21402   fi
21403   ;;
21404 esac
21405 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21406 echo "${ECHO_T}$enable_shared" >&6; }
21407
21408 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21409 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21410 # Make sure either enable_shared or enable_static is yes.
21411 test "$enable_shared" = yes || enable_static=yes
21412 { echo "$as_me:$LINENO: result: $enable_static" >&5
21413 echo "${ECHO_T}$enable_static" >&6; }
21414
21415 GCC_F77="$G77"
21416 LD_F77="$LD"
21417
21418 lt_prog_compiler_wl_F77=
21419 lt_prog_compiler_pic_F77=
21420 lt_prog_compiler_static_F77=
21421
21422 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21423 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21424
21425   if test "$GCC" = yes; then
21426     lt_prog_compiler_wl_F77='-Wl,'
21427     lt_prog_compiler_static_F77='-static'
21428
21429     case $host_os in
21430       aix*)
21431       # All AIX code is PIC.
21432       if test "$host_cpu" = ia64; then
21433         # AIX 5 now supports IA64 processor
21434         lt_prog_compiler_static_F77='-Bstatic'
21435       fi
21436       ;;
21437
21438     amigaos*)
21439       # FIXME: we need at least 68020 code to build shared libraries, but
21440       # adding the `-m68020' flag to GCC prevents building anything better,
21441       # like `-m68040'.
21442       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21443       ;;
21444
21445     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21446       # PIC is the default for these OSes.
21447       ;;
21448
21449     mingw* | pw32* | os2*)
21450       # This hack is so that the source file can tell whether it is being
21451       # built for inclusion in a dll (and should export symbols for example).
21452       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21453       ;;
21454
21455     darwin* | rhapsody*)
21456       # PIC is the default on this platform
21457       # Common symbols not allowed in MH_DYLIB files
21458       lt_prog_compiler_pic_F77='-fno-common'
21459       ;;
21460
21461     interix3*)
21462       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21463       # Instead, we relocate shared libraries at runtime.
21464       ;;
21465
21466     msdosdjgpp*)
21467       # Just because we use GCC doesn't mean we suddenly get shared libraries
21468       # on systems that don't support them.
21469       lt_prog_compiler_can_build_shared_F77=no
21470       enable_shared=no
21471       ;;
21472
21473     sysv4*MP*)
21474       if test -d /usr/nec; then
21475         lt_prog_compiler_pic_F77=-Kconform_pic
21476       fi
21477       ;;
21478
21479     hpux*)
21480       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21481       # not for PA HP-UX.
21482       case $host_cpu in
21483       hppa*64*|ia64*)
21484         # +Z the default
21485         ;;
21486       *)
21487         lt_prog_compiler_pic_F77='-fPIC'
21488         ;;
21489       esac
21490       ;;
21491
21492     *)
21493       lt_prog_compiler_pic_F77='-fPIC'
21494       ;;
21495     esac
21496   else
21497     # PORTME Check for flag to pass linker flags through the system compiler.
21498     case $host_os in
21499     aix*)
21500       lt_prog_compiler_wl_F77='-Wl,'
21501       if test "$host_cpu" = ia64; then
21502         # AIX 5 now supports IA64 processor
21503         lt_prog_compiler_static_F77='-Bstatic'
21504       else
21505         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21506       fi
21507       ;;
21508       darwin*)
21509         # PIC is the default on this platform
21510         # Common symbols not allowed in MH_DYLIB files
21511        case $cc_basename in
21512          xlc*)
21513          lt_prog_compiler_pic_F77='-qnocommon'
21514          lt_prog_compiler_wl_F77='-Wl,'
21515          ;;
21516        esac
21517        ;;
21518
21519     mingw* | pw32* | os2*)
21520       # This hack is so that the source file can tell whether it is being
21521       # built for inclusion in a dll (and should export symbols for example).
21522       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21523       ;;
21524
21525     hpux9* | hpux10* | hpux11*)
21526       lt_prog_compiler_wl_F77='-Wl,'
21527       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21528       # not for PA HP-UX.
21529       case $host_cpu in
21530       hppa*64*|ia64*)
21531         # +Z the default
21532         ;;
21533       *)
21534         lt_prog_compiler_pic_F77='+Z'
21535         ;;
21536       esac
21537       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21538       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21539       ;;
21540
21541     irix5* | irix6* | nonstopux*)
21542       lt_prog_compiler_wl_F77='-Wl,'
21543       # PIC (with -KPIC) is the default.
21544       lt_prog_compiler_static_F77='-non_shared'
21545       ;;
21546
21547     newsos6)
21548       lt_prog_compiler_pic_F77='-KPIC'
21549       lt_prog_compiler_static_F77='-Bstatic'
21550       ;;
21551
21552     linux*)
21553       case $cc_basename in
21554       icc* | ecc*)
21555         lt_prog_compiler_wl_F77='-Wl,'
21556         lt_prog_compiler_pic_F77='-KPIC'
21557         lt_prog_compiler_static_F77='-static'
21558         ;;
21559       pgcc* | pgf77* | pgf90* | pgf95*)
21560         # Portland Group compilers (*not* the Pentium gcc compiler,
21561         # which looks to be a dead project)
21562         lt_prog_compiler_wl_F77='-Wl,'
21563         lt_prog_compiler_pic_F77='-fpic'
21564         lt_prog_compiler_static_F77='-Bstatic'
21565         ;;
21566       ccc*)
21567         lt_prog_compiler_wl_F77='-Wl,'
21568         # All Alpha code is PIC.
21569         lt_prog_compiler_static_F77='-non_shared'
21570         ;;
21571       esac
21572       ;;
21573
21574     osf3* | osf4* | osf5*)
21575       lt_prog_compiler_wl_F77='-Wl,'
21576       # All OSF/1 code is PIC.
21577       lt_prog_compiler_static_F77='-non_shared'
21578       ;;
21579
21580     solaris*)
21581       lt_prog_compiler_pic_F77='-KPIC'
21582       lt_prog_compiler_static_F77='-Bstatic'
21583       case $cc_basename in
21584       f77* | f90* | f95*)
21585         lt_prog_compiler_wl_F77='-Qoption ld ';;
21586       *)
21587         lt_prog_compiler_wl_F77='-Wl,';;
21588       esac
21589       ;;
21590
21591     sunos4*)
21592       lt_prog_compiler_wl_F77='-Qoption ld '
21593       lt_prog_compiler_pic_F77='-PIC'
21594       lt_prog_compiler_static_F77='-Bstatic'
21595       ;;
21596
21597     sysv4 | sysv4.2uw2* | sysv4.3*)
21598       lt_prog_compiler_wl_F77='-Wl,'
21599       lt_prog_compiler_pic_F77='-KPIC'
21600       lt_prog_compiler_static_F77='-Bstatic'
21601       ;;
21602
21603     sysv4*MP*)
21604       if test -d /usr/nec ;then
21605         lt_prog_compiler_pic_F77='-Kconform_pic'
21606         lt_prog_compiler_static_F77='-Bstatic'
21607       fi
21608       ;;
21609
21610     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21611       lt_prog_compiler_wl_F77='-Wl,'
21612       lt_prog_compiler_pic_F77='-KPIC'
21613       lt_prog_compiler_static_F77='-Bstatic'
21614       ;;
21615
21616     unicos*)
21617       lt_prog_compiler_wl_F77='-Wl,'
21618       lt_prog_compiler_can_build_shared_F77=no
21619       ;;
21620
21621     uts4*)
21622       lt_prog_compiler_pic_F77='-pic'
21623       lt_prog_compiler_static_F77='-Bstatic'
21624       ;;
21625
21626     *)
21627       lt_prog_compiler_can_build_shared_F77=no
21628       ;;
21629     esac
21630   fi
21631
21632 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21633 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21634
21635 #
21636 # Check to make sure the PIC flag actually works.
21637 #
21638 if test -n "$lt_prog_compiler_pic_F77"; then
21639
21640 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21641 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21642 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21643   echo $ECHO_N "(cached) $ECHO_C" >&6
21644 else
21645   lt_prog_compiler_pic_works_F77=no
21646   ac_outfile=conftest.$ac_objext
21647    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21648    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21649    # Insert the option either (1) after the last *FLAGS variable, or
21650    # (2) before a word containing "conftest.", or (3) at the end.
21651    # Note that $ac_compile itself does not contain backslashes and begins
21652    # with a dollar sign (not a hyphen), so the echo should work correctly.
21653    # The option is referenced via a variable to avoid confusing sed.
21654    lt_compile=`echo "$ac_compile" | $SED \
21655    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21656    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21657    -e 's:$: $lt_compiler_flag:'`
21658    (eval echo "\"\$as_me:21658: $lt_compile\"" >&5)
21659    (eval "$lt_compile" 2>conftest.err)
21660    ac_status=$?
21661    cat conftest.err >&5
21662    echo "$as_me:21662: \$? = $ac_status" >&5
21663    if (exit $ac_status) && test -s "$ac_outfile"; then
21664      # The compiler can only warn and ignore the option if not recognized
21665      # So say no if there are warnings other than the usual output.
21666      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21667      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21668      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21669        lt_prog_compiler_pic_works_F77=yes
21670      fi
21671    fi
21672    $rm conftest*
21673
21674 fi
21675 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21676 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21677
21678 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21679     case $lt_prog_compiler_pic_F77 in
21680      "" | " "*) ;;
21681      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21682      esac
21683 else
21684     lt_prog_compiler_pic_F77=
21685      lt_prog_compiler_can_build_shared_F77=no
21686 fi
21687
21688 fi
21689 case $host_os in
21690   # For platforms which do not support PIC, -DPIC is meaningless:
21691   *djgpp*)
21692     lt_prog_compiler_pic_F77=
21693     ;;
21694   *)
21695     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21696     ;;
21697 esac
21698
21699 #
21700 # Check to make sure the static flag actually works.
21701 #
21702 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21703 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21704 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21705 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21706   echo $ECHO_N "(cached) $ECHO_C" >&6
21707 else
21708   lt_prog_compiler_static_works_F77=no
21709    save_LDFLAGS="$LDFLAGS"
21710    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21711    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21712    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21713      # The linker can only warn and ignore the option if not recognized
21714      # So say no if there are warnings
21715      if test -s conftest.err; then
21716        # Append any errors to the config.log.
21717        cat conftest.err 1>&5
21718        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21719        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21720        if diff conftest.exp conftest.er2 >/dev/null; then
21721          lt_prog_compiler_static_works_F77=yes
21722        fi
21723      else
21724        lt_prog_compiler_static_works_F77=yes
21725      fi
21726    fi
21727    $rm conftest*
21728    LDFLAGS="$save_LDFLAGS"
21729
21730 fi
21731 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21732 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21733
21734 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21735     :
21736 else
21737     lt_prog_compiler_static_F77=
21738 fi
21739
21740
21741 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21742 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21743 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21744   echo $ECHO_N "(cached) $ECHO_C" >&6
21745 else
21746   lt_cv_prog_compiler_c_o_F77=no
21747    $rm -r conftest 2>/dev/null
21748    mkdir conftest
21749    cd conftest
21750    mkdir out
21751    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21752
21753    lt_compiler_flag="-o out/conftest2.$ac_objext"
21754    # Insert the option either (1) after the last *FLAGS variable, or
21755    # (2) before a word containing "conftest.", or (3) at the end.
21756    # Note that $ac_compile itself does not contain backslashes and begins
21757    # with a dollar sign (not a hyphen), so the echo should work correctly.
21758    lt_compile=`echo "$ac_compile" | $SED \
21759    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21760    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21761    -e 's:$: $lt_compiler_flag:'`
21762    (eval echo "\"\$as_me:21762: $lt_compile\"" >&5)
21763    (eval "$lt_compile" 2>out/conftest.err)
21764    ac_status=$?
21765    cat out/conftest.err >&5
21766    echo "$as_me:21766: \$? = $ac_status" >&5
21767    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21768    then
21769      # The compiler can only warn and ignore the option if not recognized
21770      # So say no if there are warnings
21771      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21772      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21773      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21774        lt_cv_prog_compiler_c_o_F77=yes
21775      fi
21776    fi
21777    chmod u+w . 2>&5
21778    $rm conftest*
21779    # SGI C++ compiler will create directory out/ii_files/ for
21780    # template instantiation
21781    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21782    $rm out/* && rmdir out
21783    cd ..
21784    rmdir conftest
21785    $rm conftest*
21786
21787 fi
21788 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21789 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21790
21791
21792 hard_links="nottested"
21793 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21794   # do not overwrite the value of need_locks provided by the user
21795   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21796 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21797   hard_links=yes
21798   $rm conftest*
21799   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21800   touch conftest.a
21801   ln conftest.a conftest.b 2>&5 || hard_links=no
21802   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21803   { echo "$as_me:$LINENO: result: $hard_links" >&5
21804 echo "${ECHO_T}$hard_links" >&6; }
21805   if test "$hard_links" = no; then
21806     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21807 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21808     need_locks=warn
21809   fi
21810 else
21811   need_locks=no
21812 fi
21813
21814 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21815 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21816
21817   runpath_var=
21818   allow_undefined_flag_F77=
21819   enable_shared_with_static_runtimes_F77=no
21820   archive_cmds_F77=
21821   archive_expsym_cmds_F77=
21822   old_archive_From_new_cmds_F77=
21823   old_archive_from_expsyms_cmds_F77=
21824   export_dynamic_flag_spec_F77=
21825   whole_archive_flag_spec_F77=
21826   thread_safe_flag_spec_F77=
21827   hardcode_libdir_flag_spec_F77=
21828   hardcode_libdir_flag_spec_ld_F77=
21829   hardcode_libdir_separator_F77=
21830   hardcode_direct_F77=no
21831   hardcode_minus_L_F77=no
21832   hardcode_shlibpath_var_F77=unsupported
21833   link_all_deplibs_F77=unknown
21834   hardcode_automatic_F77=no
21835   module_cmds_F77=
21836   module_expsym_cmds_F77=
21837   always_export_symbols_F77=no
21838   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21839   # include_expsyms should be a list of space-separated symbols to be *always*
21840   # included in the symbol list
21841   include_expsyms_F77=
21842   # exclude_expsyms can be an extended regexp of symbols to exclude
21843   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21844   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21845   # as well as any symbol that contains `d'.
21846   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21847   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21848   # platforms (ab)use it in PIC code, but their linkers get confused if
21849   # the symbol is explicitly referenced.  Since portable code cannot
21850   # rely on this symbol name, it's probably fine to never include it in
21851   # preloaded symbol tables.
21852   extract_expsyms_cmds=
21853   # Just being paranoid about ensuring that cc_basename is set.
21854   for cc_temp in $compiler""; do
21855   case $cc_temp in
21856     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21857     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21858     \-*) ;;
21859     *) break;;
21860   esac
21861 done
21862 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21863
21864   case $host_os in
21865   cygwin* | mingw* | pw32*)
21866     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21867     # When not using gcc, we currently assume that we are using
21868     # Microsoft Visual C++.
21869     if test "$GCC" != yes; then
21870       with_gnu_ld=no
21871     fi
21872     ;;
21873   interix*)
21874     # we just hope/assume this is gcc and not c89 (= MSVC++)
21875     with_gnu_ld=yes
21876     ;;
21877   openbsd*)
21878     with_gnu_ld=no
21879     ;;
21880   esac
21881
21882   ld_shlibs_F77=yes
21883   if test "$with_gnu_ld" = yes; then
21884     # If archive_cmds runs LD, not CC, wlarc should be empty
21885     wlarc='${wl}'
21886
21887     # Set some defaults for GNU ld with shared library support. These
21888     # are reset later if shared libraries are not supported. Putting them
21889     # here allows them to be overridden if necessary.
21890     runpath_var=LD_RUN_PATH
21891     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21892     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21893     # ancient GNU ld didn't support --whole-archive et. al.
21894     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21895         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21896       else
21897         whole_archive_flag_spec_F77=
21898     fi
21899     supports_anon_versioning=no
21900     case `$LD -v 2>/dev/null` in
21901       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21902       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21903       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21904       *\ 2.11.*) ;; # other 2.11 versions
21905       *) supports_anon_versioning=yes ;;
21906     esac
21907
21908     # See if GNU ld supports shared libraries.
21909     case $host_os in
21910     aix3* | aix4* | aix5*)
21911       # On AIX/PPC, the GNU linker is very broken
21912       if test "$host_cpu" != ia64; then
21913         ld_shlibs_F77=no
21914         cat <<EOF 1>&2
21915
21916 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21917 *** to be unable to reliably create shared libraries on AIX.
21918 *** Therefore, libtool is disabling shared libraries support.  If you
21919 *** really care for shared libraries, you may want to modify your PATH
21920 *** so that a non-GNU linker is found, and then restart.
21921
21922 EOF
21923       fi
21924       ;;
21925
21926     amigaos*)
21927       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)'
21928       hardcode_libdir_flag_spec_F77='-L$libdir'
21929       hardcode_minus_L_F77=yes
21930
21931       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21932       # that the semantics of dynamic libraries on AmigaOS, at least up
21933       # to version 4, is to share data among multiple programs linked
21934       # with the same dynamic library.  Since this doesn't match the
21935       # behavior of shared libraries on other platforms, we can't use
21936       # them.
21937       ld_shlibs_F77=no
21938       ;;
21939
21940     beos*)
21941       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21942         allow_undefined_flag_F77=unsupported
21943         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21944         # support --undefined.  This deserves some investigation.  FIXME
21945         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21946       else
21947         ld_shlibs_F77=no
21948       fi
21949       ;;
21950
21951     cygwin* | mingw* | pw32*)
21952       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21953       # as there is no search path for DLLs.
21954       hardcode_libdir_flag_spec_F77='-L$libdir'
21955       allow_undefined_flag_F77=unsupported
21956       always_export_symbols_F77=no
21957       enable_shared_with_static_runtimes_F77=yes
21958       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21959
21960       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21961         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21962         # If the export-symbols file already is a .def file (1st line
21963         # is EXPORTS), use it as is; otherwise, prepend...
21964         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21965           cp $export_symbols $output_objdir/$soname.def;
21966         else
21967           echo EXPORTS > $output_objdir/$soname.def;
21968           cat $export_symbols >> $output_objdir/$soname.def;
21969         fi~
21970         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21971       else
21972         ld_shlibs_F77=no
21973       fi
21974       ;;
21975
21976     interix3*)
21977       hardcode_direct_F77=no
21978       hardcode_shlibpath_var_F77=no
21979       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21980       export_dynamic_flag_spec_F77='${wl}-E'
21981       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21982       # Instead, shared libraries are loaded at an image base (0x10000000 by
21983       # default) and relocated if they conflict, which is a slow very memory
21984       # consuming and fragmenting process.  To avoid this, we pick a random,
21985       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21986       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21987       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'
21988       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'
21989       ;;
21990
21991     linux*)
21992       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21993         tmp_addflag=
21994         case $cc_basename,$host_cpu in
21995         pgcc*)                          # Portland Group C compiler
21996           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'
21997           tmp_addflag=' $pic_flag'
21998           ;;
21999         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22000           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'
22001           tmp_addflag=' $pic_flag -Mnomain' ;;
22002         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22003           tmp_addflag=' -i_dynamic' ;;
22004         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22005           tmp_addflag=' -i_dynamic -nofor_main' ;;
22006         ifc* | ifort*)                  # Intel Fortran compiler
22007           tmp_addflag=' -nofor_main' ;;
22008         esac
22009         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22010
22011         if test $supports_anon_versioning = yes; then
22012           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22013   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22014   $echo "local: *; };" >> $output_objdir/$libname.ver~
22015           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22016         fi
22017       else
22018         ld_shlibs_F77=no
22019       fi
22020       ;;
22021
22022     netbsd*)
22023       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22024         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22025         wlarc=
22026       else
22027         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22028         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22029       fi
22030       ;;
22031
22032     solaris*)
22033       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22034         ld_shlibs_F77=no
22035         cat <<EOF 1>&2
22036
22037 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22038 *** create shared libraries on Solaris systems.  Therefore, libtool
22039 *** is disabling shared libraries support.  We urge you to upgrade GNU
22040 *** binutils to release 2.9.1 or newer.  Another option is to modify
22041 *** your PATH or compiler configuration so that the native linker is
22042 *** used, and then restart.
22043
22044 EOF
22045       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22046         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22047         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22048       else
22049         ld_shlibs_F77=no
22050       fi
22051       ;;
22052
22053     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22054       case `$LD -v 2>&1` in
22055         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22056         ld_shlibs_F77=no
22057         cat <<_LT_EOF 1>&2
22058
22059 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22060 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22061 *** is disabling shared libraries support.  We urge you to upgrade GNU
22062 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22063 *** your PATH or compiler configuration so that the native linker is
22064 *** used, and then restart.
22065
22066 _LT_EOF
22067         ;;
22068         *)
22069           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22070             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22071             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22072             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22073           else
22074             ld_shlibs_F77=no
22075           fi
22076         ;;
22077       esac
22078       ;;
22079
22080     sunos4*)
22081       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22082       wlarc=
22083       hardcode_direct_F77=yes
22084       hardcode_shlibpath_var_F77=no
22085       ;;
22086
22087     *)
22088       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22089         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22090         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22091       else
22092         ld_shlibs_F77=no
22093       fi
22094       ;;
22095     esac
22096
22097     if test "$ld_shlibs_F77" = no; then
22098       runpath_var=
22099       hardcode_libdir_flag_spec_F77=
22100       export_dynamic_flag_spec_F77=
22101       whole_archive_flag_spec_F77=
22102     fi
22103   else
22104     # PORTME fill in a description of your system's linker (not GNU ld)
22105     case $host_os in
22106     aix3*)
22107       allow_undefined_flag_F77=unsupported
22108       always_export_symbols_F77=yes
22109       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'
22110       # Note: this linker hardcodes the directories in LIBPATH if there
22111       # are no directories specified by -L.
22112       hardcode_minus_L_F77=yes
22113       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22114         # Neither direct hardcoding nor static linking is supported with a
22115         # broken collect2.
22116         hardcode_direct_F77=unsupported
22117       fi
22118       ;;
22119
22120     aix4* | aix5*)
22121       if test "$host_cpu" = ia64; then
22122         # On IA64, the linker does run time linking by default, so we don't
22123         # have to do anything special.
22124         aix_use_runtimelinking=no
22125         exp_sym_flag='-Bexport'
22126         no_entry_flag=""
22127       else
22128         # If we're using GNU nm, then we don't want the "-C" option.
22129         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22130         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22131           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'
22132         else
22133           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'
22134         fi
22135         aix_use_runtimelinking=no
22136
22137         # Test if we are trying to use run time linking or normal
22138         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22139         # need to do runtime linking.
22140         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22141           for ld_flag in $LDFLAGS; do
22142           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22143             aix_use_runtimelinking=yes
22144             break
22145           fi
22146           done
22147           ;;
22148         esac
22149
22150         exp_sym_flag='-bexport'
22151         no_entry_flag='-bnoentry'
22152       fi
22153
22154       # When large executables or shared objects are built, AIX ld can
22155       # have problems creating the table of contents.  If linking a library
22156       # or program results in "error TOC overflow" add -mminimal-toc to
22157       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22158       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22159
22160       archive_cmds_F77=''
22161       hardcode_direct_F77=yes
22162       hardcode_libdir_separator_F77=':'
22163       link_all_deplibs_F77=yes
22164
22165       if test "$GCC" = yes; then
22166         case $host_os in aix4.[012]|aix4.[012].*)
22167         # We only want to do this on AIX 4.2 and lower, the check
22168         # below for broken collect2 doesn't work under 4.3+
22169           collect2name=`${CC} -print-prog-name=collect2`
22170           if test -f "$collect2name" && \
22171            strings "$collect2name" | grep resolve_lib_name >/dev/null
22172           then
22173           # We have reworked collect2
22174           hardcode_direct_F77=yes
22175           else
22176           # We have old collect2
22177           hardcode_direct_F77=unsupported
22178           # It fails to find uninstalled libraries when the uninstalled
22179           # path is not listed in the libpath.  Setting hardcode_minus_L
22180           # to unsupported forces relinking
22181           hardcode_minus_L_F77=yes
22182           hardcode_libdir_flag_spec_F77='-L$libdir'
22183           hardcode_libdir_separator_F77=
22184           fi
22185           ;;
22186         esac
22187         shared_flag='-shared'
22188         if test "$aix_use_runtimelinking" = yes; then
22189           shared_flag="$shared_flag "'${wl}-G'
22190         fi
22191       else
22192         # not using gcc
22193         if test "$host_cpu" = ia64; then
22194         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22195         # chokes on -Wl,-G. The following line is correct:
22196           shared_flag='-G'
22197         else
22198           if test "$aix_use_runtimelinking" = yes; then
22199             shared_flag='${wl}-G'
22200           else
22201             shared_flag='${wl}-bM:SRE'
22202           fi
22203         fi
22204       fi
22205
22206       # It seems that -bexpall does not export symbols beginning with
22207       # underscore (_), so it is better to generate a list of symbols to export.
22208       always_export_symbols_F77=yes
22209       if test "$aix_use_runtimelinking" = yes; then
22210         # Warning - without using the other runtime loading flags (-brtl),
22211         # -berok will link without error, but may produce a broken library.
22212         allow_undefined_flag_F77='-berok'
22213        # Determine the default libpath from the value encoded in an empty executable.
22214        cat >conftest.$ac_ext <<_ACEOF
22215       program main
22216
22217       end
22218 _ACEOF
22219 rm -f conftest.$ac_objext conftest$ac_exeext
22220 if { (ac_try="$ac_link"
22221 case "(($ac_try" in
22222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223   *) ac_try_echo=$ac_try;;
22224 esac
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226   (eval "$ac_link") 2>conftest.er1
22227   ac_status=$?
22228   grep -v '^ *+' conftest.er1 >conftest.err
22229   rm -f conftest.er1
22230   cat conftest.err >&5
22231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232   (exit $ac_status); } &&
22233          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22234   { (case "(($ac_try" in
22235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22236   *) ac_try_echo=$ac_try;;
22237 esac
22238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22239   (eval "$ac_try") 2>&5
22240   ac_status=$?
22241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242   (exit $ac_status); }; } &&
22243          { ac_try='test -s conftest$ac_exeext'
22244   { (case "(($ac_try" in
22245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22246   *) ac_try_echo=$ac_try;;
22247 esac
22248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22249   (eval "$ac_try") 2>&5
22250   ac_status=$?
22251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252   (exit $ac_status); }; }; then
22253
22254 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22255 }'`
22256 # Check for a 64-bit object if we didn't find anything.
22257 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22258 }'`; fi
22259 else
22260   echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.$ac_ext >&5
22262
22263
22264 fi
22265
22266 rm -f core conftest.err conftest.$ac_objext \
22267       conftest$ac_exeext conftest.$ac_ext
22268 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22269
22270        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22271         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"
22272        else
22273         if test "$host_cpu" = ia64; then
22274           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22275           allow_undefined_flag_F77="-z nodefs"
22276           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"
22277         else
22278          # Determine the default libpath from the value encoded in an empty executable.
22279          cat >conftest.$ac_ext <<_ACEOF
22280       program main
22281
22282       end
22283 _ACEOF
22284 rm -f conftest.$ac_objext conftest$ac_exeext
22285 if { (ac_try="$ac_link"
22286 case "(($ac_try" in
22287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288   *) ac_try_echo=$ac_try;;
22289 esac
22290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291   (eval "$ac_link") 2>conftest.er1
22292   ac_status=$?
22293   grep -v '^ *+' conftest.er1 >conftest.err
22294   rm -f conftest.er1
22295   cat conftest.err >&5
22296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297   (exit $ac_status); } &&
22298          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22299   { (case "(($ac_try" in
22300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301   *) ac_try_echo=$ac_try;;
22302 esac
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304   (eval "$ac_try") 2>&5
22305   ac_status=$?
22306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307   (exit $ac_status); }; } &&
22308          { ac_try='test -s conftest$ac_exeext'
22309   { (case "(($ac_try" in
22310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311   *) ac_try_echo=$ac_try;;
22312 esac
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314   (eval "$ac_try") 2>&5
22315   ac_status=$?
22316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317   (exit $ac_status); }; }; then
22318
22319 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22320 }'`
22321 # Check for a 64-bit object if we didn't find anything.
22322 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22323 }'`; fi
22324 else
22325   echo "$as_me: failed program was:" >&5
22326 sed 's/^/| /' conftest.$ac_ext >&5
22327
22328
22329 fi
22330
22331 rm -f core conftest.err conftest.$ac_objext \
22332       conftest$ac_exeext conftest.$ac_ext
22333 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22334
22335          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22336           # Warning - without using the other run time loading flags,
22337           # -berok will link without error, but may produce a broken library.
22338           no_undefined_flag_F77=' ${wl}-bernotok'
22339           allow_undefined_flag_F77=' ${wl}-berok'
22340           # Exported symbols can be pulled into shared objects from archives
22341           whole_archive_flag_spec_F77='$convenience'
22342           archive_cmds_need_lc_F77=yes
22343           # This is similar to how AIX traditionally builds its shared libraries.
22344           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'
22345         fi
22346       fi
22347       ;;
22348
22349     amigaos*)
22350       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)'
22351       hardcode_libdir_flag_spec_F77='-L$libdir'
22352       hardcode_minus_L_F77=yes
22353       # see comment about different semantics on the GNU ld section
22354       ld_shlibs_F77=no
22355       ;;
22356
22357     bsdi[45]*)
22358       export_dynamic_flag_spec_F77=-rdynamic
22359       ;;
22360
22361     cygwin* | mingw* | pw32*)
22362       # When not using gcc, we currently assume that we are using
22363       # Microsoft Visual C++.
22364       # hardcode_libdir_flag_spec is actually meaningless, as there is
22365       # no search path for DLLs.
22366       hardcode_libdir_flag_spec_F77=' '
22367       allow_undefined_flag_F77=unsupported
22368       # Tell ltmain to make .lib files, not .a files.
22369       libext=lib
22370       # Tell ltmain to make .dll files, not .so files.
22371       shrext_cmds=".dll"
22372       # FIXME: Setting linknames here is a bad hack.
22373       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22374       # The linker will automatically build a .lib file if we build a DLL.
22375       old_archive_From_new_cmds_F77='true'
22376       # FIXME: Should let the user specify the lib program.
22377       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22378       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22379       enable_shared_with_static_runtimes_F77=yes
22380       ;;
22381
22382     darwin* | rhapsody*)
22383       case $host_os in
22384         rhapsody* | darwin1.[012])
22385          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22386          ;;
22387        *) # Darwin 1.3 on
22388          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22389            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22390          else
22391            case ${MACOSX_DEPLOYMENT_TARGET} in
22392              10.[012])
22393                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22394                ;;
22395              10.*)
22396                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22397                ;;
22398            esac
22399          fi
22400          ;;
22401       esac
22402       archive_cmds_need_lc_F77=no
22403       hardcode_direct_F77=no
22404       hardcode_automatic_F77=yes
22405       hardcode_shlibpath_var_F77=unsupported
22406       whole_archive_flag_spec_F77=''
22407       link_all_deplibs_F77=yes
22408     if test "$GCC" = yes ; then
22409         output_verbose_link_cmd='echo'
22410         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22411       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22412       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22413       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22414       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}'
22415     else
22416       case $cc_basename in
22417         xlc*)
22418          output_verbose_link_cmd='echo'
22419          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22420          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22421           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22422          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22423           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}'
22424           ;;
22425        *)
22426          ld_shlibs_F77=no
22427           ;;
22428       esac
22429     fi
22430       ;;
22431
22432     dgux*)
22433       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22434       hardcode_libdir_flag_spec_F77='-L$libdir'
22435       hardcode_shlibpath_var_F77=no
22436       ;;
22437
22438     freebsd1*)
22439       ld_shlibs_F77=no
22440       ;;
22441
22442     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22443     # support.  Future versions do this automatically, but an explicit c++rt0.o
22444     # does not break anything, and helps significantly (at the cost of a little
22445     # extra space).
22446     freebsd2.2*)
22447       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22448       hardcode_libdir_flag_spec_F77='-R$libdir'
22449       hardcode_direct_F77=yes
22450       hardcode_shlibpath_var_F77=no
22451       ;;
22452
22453     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22454     freebsd2*)
22455       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22456       hardcode_direct_F77=yes
22457       hardcode_minus_L_F77=yes
22458       hardcode_shlibpath_var_F77=no
22459       ;;
22460
22461     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22462     freebsd* | kfreebsd*-gnu | dragonfly*)
22463       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22464       hardcode_libdir_flag_spec_F77='-R$libdir'
22465       hardcode_direct_F77=yes
22466       hardcode_shlibpath_var_F77=no
22467       ;;
22468
22469     hpux9*)
22470       if test "$GCC" = yes; then
22471         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'
22472       else
22473         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'
22474       fi
22475       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22476       hardcode_libdir_separator_F77=:
22477       hardcode_direct_F77=yes
22478
22479       # hardcode_minus_L: Not really in the search PATH,
22480       # but as the default location of the library.
22481       hardcode_minus_L_F77=yes
22482       export_dynamic_flag_spec_F77='${wl}-E'
22483       ;;
22484
22485     hpux10*)
22486       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22487         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22488       else
22489         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22490       fi
22491       if test "$with_gnu_ld" = no; then
22492         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22493         hardcode_libdir_separator_F77=:
22494
22495         hardcode_direct_F77=yes
22496         export_dynamic_flag_spec_F77='${wl}-E'
22497
22498         # hardcode_minus_L: Not really in the search PATH,
22499         # but as the default location of the library.
22500         hardcode_minus_L_F77=yes
22501       fi
22502       ;;
22503
22504     hpux11*)
22505       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22506         case $host_cpu in
22507         hppa*64*)
22508           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22509           ;;
22510         ia64*)
22511           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22512           ;;
22513         *)
22514           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22515           ;;
22516         esac
22517       else
22518         case $host_cpu in
22519         hppa*64*)
22520           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22521           ;;
22522         ia64*)
22523           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22524           ;;
22525         *)
22526           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22527           ;;
22528         esac
22529       fi
22530       if test "$with_gnu_ld" = no; then
22531         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22532         hardcode_libdir_separator_F77=:
22533
22534         case $host_cpu in
22535         hppa*64*|ia64*)
22536           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22537           hardcode_direct_F77=no
22538           hardcode_shlibpath_var_F77=no
22539           ;;
22540         *)
22541           hardcode_direct_F77=yes
22542           export_dynamic_flag_spec_F77='${wl}-E'
22543
22544           # hardcode_minus_L: Not really in the search PATH,
22545           # but as the default location of the library.
22546           hardcode_minus_L_F77=yes
22547           ;;
22548         esac
22549       fi
22550       ;;
22551
22552     irix5* | irix6* | nonstopux*)
22553       if test "$GCC" = yes; then
22554         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'
22555       else
22556         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'
22557         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22558       fi
22559       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22560       hardcode_libdir_separator_F77=:
22561       link_all_deplibs_F77=yes
22562       ;;
22563
22564     netbsd*)
22565       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22566         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22567       else
22568         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22569       fi
22570       hardcode_libdir_flag_spec_F77='-R$libdir'
22571       hardcode_direct_F77=yes
22572       hardcode_shlibpath_var_F77=no
22573       ;;
22574
22575     newsos6)
22576       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22577       hardcode_direct_F77=yes
22578       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22579       hardcode_libdir_separator_F77=:
22580       hardcode_shlibpath_var_F77=no
22581       ;;
22582
22583     openbsd*)
22584       hardcode_direct_F77=yes
22585       hardcode_shlibpath_var_F77=no
22586       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22587         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22588         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22589         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22590         export_dynamic_flag_spec_F77='${wl}-E'
22591       else
22592        case $host_os in
22593          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22594            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22595            hardcode_libdir_flag_spec_F77='-R$libdir'
22596            ;;
22597          *)
22598            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22599            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22600            ;;
22601        esac
22602       fi
22603       ;;
22604
22605     os2*)
22606       hardcode_libdir_flag_spec_F77='-L$libdir'
22607       hardcode_minus_L_F77=yes
22608       allow_undefined_flag_F77=unsupported
22609       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'
22610       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22611       ;;
22612
22613     osf3*)
22614       if test "$GCC" = yes; then
22615         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22616         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'
22617       else
22618         allow_undefined_flag_F77=' -expect_unresolved \*'
22619         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'
22620       fi
22621       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22622       hardcode_libdir_separator_F77=:
22623       ;;
22624
22625     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22626       if test "$GCC" = yes; then
22627         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22628         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'
22629         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22630       else
22631         allow_undefined_flag_F77=' -expect_unresolved \*'
22632         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'
22633         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~
22634         $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'
22635
22636         # Both c and cxx compiler support -rpath directly
22637         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22638       fi
22639       hardcode_libdir_separator_F77=:
22640       ;;
22641
22642     solaris*)
22643       no_undefined_flag_F77=' -z text'
22644       if test "$GCC" = yes; then
22645         wlarc='${wl}'
22646         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22647         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22648           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22649       else
22650         wlarc=''
22651         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22652         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22653         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22654       fi
22655       hardcode_libdir_flag_spec_F77='-R$libdir'
22656       hardcode_shlibpath_var_F77=no
22657       case $host_os in
22658       solaris2.[0-5] | solaris2.[0-5].*) ;;
22659       *)
22660         # The compiler driver will combine linker options so we
22661         # cannot just pass the convience library names through
22662         # without $wl, iff we do not link with $LD.
22663         # Luckily, gcc supports the same syntax we need for Sun Studio.
22664         # Supported since Solaris 2.6 (maybe 2.5.1?)
22665         case $wlarc in
22666         '')
22667           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22668         *)
22669           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
22670         esac ;;
22671       esac
22672       link_all_deplibs_F77=yes
22673       ;;
22674
22675     sunos4*)
22676       if test "x$host_vendor" = xsequent; then
22677         # Use $CC to link under sequent, because it throws in some extra .o
22678         # files that make .init and .fini sections work.
22679         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22680       else
22681         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22682       fi
22683       hardcode_libdir_flag_spec_F77='-L$libdir'
22684       hardcode_direct_F77=yes
22685       hardcode_minus_L_F77=yes
22686       hardcode_shlibpath_var_F77=no
22687       ;;
22688
22689     sysv4)
22690       case $host_vendor in
22691         sni)
22692           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22693           hardcode_direct_F77=yes # is this really true???
22694         ;;
22695         siemens)
22696           ## LD is ld it makes a PLAMLIB
22697           ## CC just makes a GrossModule.
22698           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22699           reload_cmds_F77='$CC -r -o $output$reload_objs'
22700           hardcode_direct_F77=no
22701         ;;
22702         motorola)
22703           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22704           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22705         ;;
22706       esac
22707       runpath_var='LD_RUN_PATH'
22708       hardcode_shlibpath_var_F77=no
22709       ;;
22710
22711     sysv4.3*)
22712       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22713       hardcode_shlibpath_var_F77=no
22714       export_dynamic_flag_spec_F77='-Bexport'
22715       ;;
22716
22717     sysv4*MP*)
22718       if test -d /usr/nec; then
22719         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22720         hardcode_shlibpath_var_F77=no
22721         runpath_var=LD_RUN_PATH
22722         hardcode_runpath_var=yes
22723         ld_shlibs_F77=yes
22724       fi
22725       ;;
22726
22727     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22728       no_undefined_flag_F77='${wl}-z,text'
22729       archive_cmds_need_lc_F77=no
22730       hardcode_shlibpath_var_F77=no
22731       runpath_var='LD_RUN_PATH'
22732
22733       if test "$GCC" = yes; then
22734         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22735         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22736       else
22737         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22738         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22739       fi
22740       ;;
22741
22742     sysv5* | sco3.2v5* | sco5v6*)
22743       # Note: We can NOT use -z defs as we might desire, because we do not
22744       # link with -lc, and that would cause any symbols used from libc to
22745       # always be unresolved, which means just about no library would
22746       # ever link correctly.  If we're not using GNU ld we use -z text
22747       # though, which does catch some bad symbols but isn't as heavy-handed
22748       # as -z defs.
22749       no_undefined_flag_F77='${wl}-z,text'
22750       allow_undefined_flag_F77='${wl}-z,nodefs'
22751       archive_cmds_need_lc_F77=no
22752       hardcode_shlibpath_var_F77=no
22753       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22754       hardcode_libdir_separator_F77=':'
22755       link_all_deplibs_F77=yes
22756       export_dynamic_flag_spec_F77='${wl}-Bexport'
22757       runpath_var='LD_RUN_PATH'
22758
22759       if test "$GCC" = yes; then
22760         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22761         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22762       else
22763         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22764         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22765       fi
22766       ;;
22767
22768     uts4*)
22769       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22770       hardcode_libdir_flag_spec_F77='-L$libdir'
22771       hardcode_shlibpath_var_F77=no
22772       ;;
22773
22774     *)
22775       ld_shlibs_F77=no
22776       ;;
22777     esac
22778   fi
22779
22780 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22781 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22782 test "$ld_shlibs_F77" = no && can_build_shared=no
22783
22784 #
22785 # Do we need to explicitly link libc?
22786 #
22787 case "x$archive_cmds_need_lc_F77" in
22788 x|xyes)
22789   # Assume -lc should be added
22790   archive_cmds_need_lc_F77=yes
22791
22792   if test "$enable_shared" = yes && test "$GCC" = yes; then
22793     case $archive_cmds_F77 in
22794     *'~'*)
22795       # FIXME: we may have to deal with multi-command sequences.
22796       ;;
22797     '$CC '*)
22798       # Test whether the compiler implicitly links with -lc since on some
22799       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22800       # to ld, don't add -lc before -lgcc.
22801       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22802 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22803       $rm conftest*
22804       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22805
22806       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22807   (eval $ac_compile) 2>&5
22808   ac_status=$?
22809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810   (exit $ac_status); } 2>conftest.err; then
22811         soname=conftest
22812         lib=conftest
22813         libobjs=conftest.$ac_objext
22814         deplibs=
22815         wl=$lt_prog_compiler_wl_F77
22816         pic_flag=$lt_prog_compiler_pic_F77
22817         compiler_flags=-v
22818         linker_flags=-v
22819         verstring=
22820         output_objdir=.
22821         libname=conftest
22822         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22823         allow_undefined_flag_F77=
22824         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22825   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22826   ac_status=$?
22827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828   (exit $ac_status); }
22829         then
22830           archive_cmds_need_lc_F77=no
22831         else
22832           archive_cmds_need_lc_F77=yes
22833         fi
22834         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22835       else
22836         cat conftest.err 1>&5
22837       fi
22838       $rm conftest*
22839       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22840 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22841       ;;
22842     esac
22843   fi
22844   ;;
22845 esac
22846
22847 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22848 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22849 library_names_spec=
22850 libname_spec='lib$name'
22851 soname_spec=
22852 shrext_cmds=".so"
22853 postinstall_cmds=
22854 postuninstall_cmds=
22855 finish_cmds=
22856 finish_eval=
22857 shlibpath_var=
22858 shlibpath_overrides_runpath=unknown
22859 version_type=none
22860 dynamic_linker="$host_os ld.so"
22861 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22862 if test "$GCC" = yes; then
22863   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22864   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22865     # if the path contains ";" then we assume it to be the separator
22866     # otherwise default to the standard path separator (i.e. ":") - it is
22867     # assumed that no part of a normal pathname contains ";" but that should
22868     # okay in the real world where ";" in dirpaths is itself problematic.
22869     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22870   else
22871     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22872   fi
22873 else
22874   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22875 fi
22876 need_lib_prefix=unknown
22877 hardcode_into_libs=no
22878
22879 # when you set need_version to no, make sure it does not cause -set_version
22880 # flags to be left without arguments
22881 need_version=unknown
22882
22883 case $host_os in
22884 aix3*)
22885   version_type=linux
22886   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22887   shlibpath_var=LIBPATH
22888
22889   # AIX 3 has no versioning support, so we append a major version to the name.
22890   soname_spec='${libname}${release}${shared_ext}$major'
22891   ;;
22892
22893 aix4* | aix5*)
22894   version_type=linux
22895   need_lib_prefix=no
22896   need_version=no
22897   hardcode_into_libs=yes
22898   if test "$host_cpu" = ia64; then
22899     # AIX 5 supports IA64
22900     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22901     shlibpath_var=LD_LIBRARY_PATH
22902   else
22903     # With GCC up to 2.95.x, collect2 would create an import file
22904     # for dependence libraries.  The import file would start with
22905     # the line `#! .'.  This would cause the generated library to
22906     # depend on `.', always an invalid library.  This was fixed in
22907     # development snapshots of GCC prior to 3.0.
22908     case $host_os in
22909       aix4 | aix4.[01] | aix4.[01].*)
22910       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22911            echo ' yes '
22912            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22913         :
22914       else
22915         can_build_shared=no
22916       fi
22917       ;;
22918     esac
22919     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22920     # soname into executable. Probably we can add versioning support to
22921     # collect2, so additional links can be useful in future.
22922     if test "$aix_use_runtimelinking" = yes; then
22923       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22924       # instead of lib<name>.a to let people know that these are not
22925       # typical AIX shared libraries.
22926       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22927     else
22928       # We preserve .a as extension for shared libraries through AIX4.2
22929       # and later when we are not doing run time linking.
22930       library_names_spec='${libname}${release}.a $libname.a'
22931       soname_spec='${libname}${release}${shared_ext}$major'
22932     fi
22933     shlibpath_var=LIBPATH
22934   fi
22935   ;;
22936
22937 amigaos*)
22938   library_names_spec='$libname.ixlibrary $libname.a'
22939   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22940   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'
22941   ;;
22942
22943 beos*)
22944   library_names_spec='${libname}${shared_ext}'
22945   dynamic_linker="$host_os ld.so"
22946   shlibpath_var=LIBRARY_PATH
22947   ;;
22948
22949 bsdi[45]*)
22950   version_type=linux
22951   need_version=no
22952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22953   soname_spec='${libname}${release}${shared_ext}$major'
22954   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22955   shlibpath_var=LD_LIBRARY_PATH
22956   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22957   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22958   # the default ld.so.conf also contains /usr/contrib/lib and
22959   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22960   # libtool to hard-code these into programs
22961   ;;
22962
22963 cygwin* | mingw* | pw32*)
22964   version_type=windows
22965   shrext_cmds=".dll"
22966   need_version=no
22967   need_lib_prefix=no
22968
22969   case $GCC,$host_os in
22970   yes,cygwin* | yes,mingw* | yes,pw32*)
22971     library_names_spec='$libname.dll.a'
22972     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22973     postinstall_cmds='base_file=`basename \${file}`~
22974       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22975       dldir=$destdir/`dirname \$dlpath`~
22976       test -d \$dldir || mkdir -p \$dldir~
22977       $install_prog $dir/$dlname \$dldir/$dlname~
22978       chmod a+x \$dldir/$dlname'
22979     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22980       dlpath=$dir/\$dldll~
22981        $rm \$dlpath'
22982     shlibpath_overrides_runpath=yes
22983
22984     case $host_os in
22985     cygwin*)
22986       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22987       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22988       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22989       ;;
22990     mingw*)
22991       # MinGW DLLs use traditional 'lib' prefix
22992       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22993       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22994       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22995         # It is most probably a Windows format PATH printed by
22996         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22997         # path with ; separators, and with drive letters. We can handle the
22998         # drive letters (cygwin fileutils understands them), so leave them,
22999         # especially as we might pass files found there to a mingw objdump,
23000         # which wouldn't understand a cygwinified path. Ahh.
23001         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23002       else
23003         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23004       fi
23005       ;;
23006     pw32*)
23007       # pw32 DLLs use 'pw' prefix rather than 'lib'
23008       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23009       ;;
23010     esac
23011     ;;
23012
23013   *)
23014     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23015     ;;
23016   esac
23017   dynamic_linker='Win32 ld.exe'
23018   # FIXME: first we should search . and the directory the executable is in
23019   shlibpath_var=PATH
23020   ;;
23021
23022 darwin* | rhapsody*)
23023   dynamic_linker="$host_os dyld"
23024   version_type=darwin
23025   need_lib_prefix=no
23026   need_version=no
23027   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23028   soname_spec='${libname}${release}${major}$shared_ext'
23029   shlibpath_overrides_runpath=yes
23030   shlibpath_var=DYLD_LIBRARY_PATH
23031   shrext_cmds='.dylib'
23032   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23033   if test "$GCC" = yes; then
23034     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
23035   else
23036     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23037   fi
23038   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23039   ;;
23040
23041 dgux*)
23042   version_type=linux
23043   need_lib_prefix=no
23044   need_version=no
23045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23046   soname_spec='${libname}${release}${shared_ext}$major'
23047   shlibpath_var=LD_LIBRARY_PATH
23048   ;;
23049
23050 freebsd1*)
23051   dynamic_linker=no
23052   ;;
23053
23054 kfreebsd*-gnu)
23055   version_type=linux
23056   need_lib_prefix=no
23057   need_version=no
23058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23059   soname_spec='${libname}${release}${shared_ext}$major'
23060   shlibpath_var=LD_LIBRARY_PATH
23061   shlibpath_overrides_runpath=no
23062   hardcode_into_libs=yes
23063   dynamic_linker='GNU ld.so'
23064   ;;
23065
23066 freebsd* | dragonfly*)
23067   # DragonFly does not have aout.  When/if they implement a new
23068   # versioning mechanism, adjust this.
23069   if test -x /usr/bin/objformat; then
23070     objformat=`/usr/bin/objformat`
23071   else
23072     case $host_os in
23073     freebsd[123]*) objformat=aout ;;
23074     *) objformat=elf ;;
23075     esac
23076   fi
23077   version_type=freebsd-$objformat
23078   case $version_type in
23079     freebsd-elf*)
23080       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23081       need_version=no
23082       need_lib_prefix=no
23083       ;;
23084     freebsd-*)
23085       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23086       need_version=yes
23087       ;;
23088   esac
23089   shlibpath_var=LD_LIBRARY_PATH
23090   case $host_os in
23091   freebsd2*)
23092     shlibpath_overrides_runpath=yes
23093     ;;
23094   freebsd3.[01]* | freebsdelf3.[01]*)
23095     shlibpath_overrides_runpath=yes
23096     hardcode_into_libs=yes
23097     ;;
23098   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23099   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23100     shlibpath_overrides_runpath=no
23101     hardcode_into_libs=yes
23102     ;;
23103   freebsd*) # from 4.6 on
23104     shlibpath_overrides_runpath=yes
23105     hardcode_into_libs=yes
23106     ;;
23107   esac
23108   ;;
23109
23110 gnu*)
23111   version_type=linux
23112   need_lib_prefix=no
23113   need_version=no
23114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23115   soname_spec='${libname}${release}${shared_ext}$major'
23116   shlibpath_var=LD_LIBRARY_PATH
23117   hardcode_into_libs=yes
23118   ;;
23119
23120 hpux9* | hpux10* | hpux11*)
23121   # Give a soname corresponding to the major version so that dld.sl refuses to
23122   # link against other versions.
23123   version_type=sunos
23124   need_lib_prefix=no
23125   need_version=no
23126   case $host_cpu in
23127   ia64*)
23128     shrext_cmds='.so'
23129     hardcode_into_libs=yes
23130     dynamic_linker="$host_os dld.so"
23131     shlibpath_var=LD_LIBRARY_PATH
23132     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23133     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23134     soname_spec='${libname}${release}${shared_ext}$major'
23135     if test "X$HPUX_IA64_MODE" = X32; then
23136       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23137     else
23138       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23139     fi
23140     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23141     ;;
23142    hppa*64*)
23143      shrext_cmds='.sl'
23144      hardcode_into_libs=yes
23145      dynamic_linker="$host_os dld.sl"
23146      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23147      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23148      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23149      soname_spec='${libname}${release}${shared_ext}$major'
23150      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23151      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23152      ;;
23153    *)
23154     shrext_cmds='.sl'
23155     dynamic_linker="$host_os dld.sl"
23156     shlibpath_var=SHLIB_PATH
23157     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23159     soname_spec='${libname}${release}${shared_ext}$major'
23160     ;;
23161   esac
23162   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23163   postinstall_cmds='chmod 555 $lib'
23164   ;;
23165
23166 interix3*)
23167   version_type=linux
23168   need_lib_prefix=no
23169   need_version=no
23170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23171   soname_spec='${libname}${release}${shared_ext}$major'
23172   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23173   shlibpath_var=LD_LIBRARY_PATH
23174   shlibpath_overrides_runpath=no
23175   hardcode_into_libs=yes
23176   ;;
23177
23178 irix5* | irix6* | nonstopux*)
23179   case $host_os in
23180     nonstopux*) version_type=nonstopux ;;
23181     *)
23182         if test "$lt_cv_prog_gnu_ld" = yes; then
23183                 version_type=linux
23184         else
23185                 version_type=irix
23186         fi ;;
23187   esac
23188   need_lib_prefix=no
23189   need_version=no
23190   soname_spec='${libname}${release}${shared_ext}$major'
23191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23192   case $host_os in
23193   irix5* | nonstopux*)
23194     libsuff= shlibsuff=
23195     ;;
23196   *)
23197     case $LD in # libtool.m4 will add one of these switches to LD
23198     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23199       libsuff= shlibsuff= libmagic=32-bit;;
23200     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23201       libsuff=32 shlibsuff=N32 libmagic=N32;;
23202     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23203       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23204     *) libsuff= shlibsuff= libmagic=never-match;;
23205     esac
23206     ;;
23207   esac
23208   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23209   shlibpath_overrides_runpath=no
23210   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23211   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23212   hardcode_into_libs=yes
23213   ;;
23214
23215 # No shared lib support for Linux oldld, aout, or coff.
23216 linux*oldld* | linux*aout* | linux*coff*)
23217   dynamic_linker=no
23218   ;;
23219
23220 # This must be Linux ELF.
23221 linux*)
23222   version_type=linux
23223   need_lib_prefix=no
23224   need_version=no
23225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23226   soname_spec='${libname}${release}${shared_ext}$major'
23227   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23228   shlibpath_var=LD_LIBRARY_PATH
23229   shlibpath_overrides_runpath=no
23230   # This implies no fast_install, which is unacceptable.
23231   # Some rework will be needed to allow for fast_install
23232   # before this can be enabled.
23233   hardcode_into_libs=yes
23234
23235   # Append ld.so.conf contents to the search path
23236   if test -f /etc/ld.so.conf; then
23237     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
23238     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23239   fi
23240
23241   # We used to test for /lib/ld.so.1 and disable shared libraries on
23242   # powerpc, because MkLinux only supported shared libraries with the
23243   # GNU dynamic linker.  Since this was broken with cross compilers,
23244   # most powerpc-linux boxes support dynamic linking these days and
23245   # people can always --disable-shared, the test was removed, and we
23246   # assume the GNU/Linux dynamic linker is in use.
23247   dynamic_linker='GNU/Linux ld.so'
23248   ;;
23249
23250 knetbsd*-gnu)
23251   version_type=linux
23252   need_lib_prefix=no
23253   need_version=no
23254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23255   soname_spec='${libname}${release}${shared_ext}$major'
23256   shlibpath_var=LD_LIBRARY_PATH
23257   shlibpath_overrides_runpath=no
23258   hardcode_into_libs=yes
23259   dynamic_linker='GNU ld.so'
23260   ;;
23261
23262 netbsd*)
23263   version_type=sunos
23264   need_lib_prefix=no
23265   need_version=no
23266   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23267     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23268     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23269     dynamic_linker='NetBSD (a.out) ld.so'
23270   else
23271     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23272     soname_spec='${libname}${release}${shared_ext}$major'
23273     dynamic_linker='NetBSD ld.elf_so'
23274   fi
23275   shlibpath_var=LD_LIBRARY_PATH
23276   shlibpath_overrides_runpath=yes
23277   hardcode_into_libs=yes
23278   ;;
23279
23280 newsos6)
23281   version_type=linux
23282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23283   shlibpath_var=LD_LIBRARY_PATH
23284   shlibpath_overrides_runpath=yes
23285   ;;
23286
23287 nto-qnx*)
23288   version_type=linux
23289   need_lib_prefix=no
23290   need_version=no
23291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23292   soname_spec='${libname}${release}${shared_ext}$major'
23293   shlibpath_var=LD_LIBRARY_PATH
23294   shlibpath_overrides_runpath=yes
23295   ;;
23296
23297 openbsd*)
23298   version_type=sunos
23299   sys_lib_dlsearch_path_spec="/usr/lib"
23300   need_lib_prefix=no
23301   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23302   case $host_os in
23303     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23304     *)                         need_version=no  ;;
23305   esac
23306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23307   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23308   shlibpath_var=LD_LIBRARY_PATH
23309   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23310     case $host_os in
23311       openbsd2.[89] | openbsd2.[89].*)
23312         shlibpath_overrides_runpath=no
23313         ;;
23314       *)
23315         shlibpath_overrides_runpath=yes
23316         ;;
23317       esac
23318   else
23319     shlibpath_overrides_runpath=yes
23320   fi
23321   ;;
23322
23323 os2*)
23324   libname_spec='$name'
23325   shrext_cmds=".dll"
23326   need_lib_prefix=no
23327   library_names_spec='$libname${shared_ext} $libname.a'
23328   dynamic_linker='OS/2 ld.exe'
23329   shlibpath_var=LIBPATH
23330   ;;
23331
23332 osf3* | osf4* | osf5*)
23333   version_type=osf
23334   need_lib_prefix=no
23335   need_version=no
23336   soname_spec='${libname}${release}${shared_ext}$major'
23337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23338   shlibpath_var=LD_LIBRARY_PATH
23339   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23340   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23341   ;;
23342
23343 solaris*)
23344   version_type=linux
23345   need_lib_prefix=no
23346   need_version=no
23347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23348   soname_spec='${libname}${release}${shared_ext}$major'
23349   shlibpath_var=LD_LIBRARY_PATH
23350   shlibpath_overrides_runpath=yes
23351   hardcode_into_libs=yes
23352   # ldd complains unless libraries are executable
23353   postinstall_cmds='chmod +x $lib'
23354   ;;
23355
23356 sunos4*)
23357   version_type=sunos
23358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23359   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23360   shlibpath_var=LD_LIBRARY_PATH
23361   shlibpath_overrides_runpath=yes
23362   if test "$with_gnu_ld" = yes; then
23363     need_lib_prefix=no
23364   fi
23365   need_version=yes
23366   ;;
23367
23368 sysv4 | sysv4.3*)
23369   version_type=linux
23370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23371   soname_spec='${libname}${release}${shared_ext}$major'
23372   shlibpath_var=LD_LIBRARY_PATH
23373   case $host_vendor in
23374     sni)
23375       shlibpath_overrides_runpath=no
23376       need_lib_prefix=no
23377       export_dynamic_flag_spec='${wl}-Blargedynsym'
23378       runpath_var=LD_RUN_PATH
23379       ;;
23380     siemens)
23381       need_lib_prefix=no
23382       ;;
23383     motorola)
23384       need_lib_prefix=no
23385       need_version=no
23386       shlibpath_overrides_runpath=no
23387       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23388       ;;
23389   esac
23390   ;;
23391
23392 sysv4*MP*)
23393   if test -d /usr/nec ;then
23394     version_type=linux
23395     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23396     soname_spec='$libname${shared_ext}.$major'
23397     shlibpath_var=LD_LIBRARY_PATH
23398   fi
23399   ;;
23400
23401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23402   version_type=freebsd-elf
23403   need_lib_prefix=no
23404   need_version=no
23405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23406   soname_spec='${libname}${release}${shared_ext}$major'
23407   shlibpath_var=LD_LIBRARY_PATH
23408   hardcode_into_libs=yes
23409   if test "$with_gnu_ld" = yes; then
23410     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23411     shlibpath_overrides_runpath=no
23412   else
23413     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23414     shlibpath_overrides_runpath=yes
23415     case $host_os in
23416       sco3.2v5*)
23417         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23418         ;;
23419     esac
23420   fi
23421   sys_lib_dlsearch_path_spec='/usr/lib'
23422   ;;
23423
23424 uts4*)
23425   version_type=linux
23426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23427   soname_spec='${libname}${release}${shared_ext}$major'
23428   shlibpath_var=LD_LIBRARY_PATH
23429   ;;
23430
23431 *)
23432   dynamic_linker=no
23433   ;;
23434 esac
23435 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23436 echo "${ECHO_T}$dynamic_linker" >&6; }
23437 test "$dynamic_linker" = no && can_build_shared=no
23438
23439 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23440 if test "$GCC" = yes; then
23441   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23442 fi
23443
23444 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23445 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23446 hardcode_action_F77=
23447 if test -n "$hardcode_libdir_flag_spec_F77" || \
23448    test -n "$runpath_var_F77" || \
23449    test "X$hardcode_automatic_F77" = "Xyes" ; then
23450
23451   # We can hardcode non-existant directories.
23452   if test "$hardcode_direct_F77" != no &&
23453      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23454      # have to relink, otherwise we might link with an installed library
23455      # when we should be linking with a yet-to-be-installed one
23456      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23457      test "$hardcode_minus_L_F77" != no; then
23458     # Linking always hardcodes the temporary library directory.
23459     hardcode_action_F77=relink
23460   else
23461     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23462     hardcode_action_F77=immediate
23463   fi
23464 else
23465   # We cannot hardcode anything, or else we can only hardcode existing
23466   # directories.
23467   hardcode_action_F77=unsupported
23468 fi
23469 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23470 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23471
23472 if test "$hardcode_action_F77" = relink; then
23473   # Fast installation is not supported
23474   enable_fast_install=no
23475 elif test "$shlibpath_overrides_runpath" = yes ||
23476      test "$enable_shared" = no; then
23477   # Fast installation is not necessary
23478   enable_fast_install=needless
23479 fi
23480
23481
23482 # The else clause should only fire when bootstrapping the
23483 # libtool distribution, otherwise you forgot to ship ltmain.sh
23484 # with your package, and you will get complaints that there are
23485 # no rules to generate ltmain.sh.
23486 if test -f "$ltmain"; then
23487   # See if we are running on zsh, and set the options which allow our commands through
23488   # without removal of \ escapes.
23489   if test -n "${ZSH_VERSION+set}" ; then
23490     setopt NO_GLOB_SUBST
23491   fi
23492   # Now quote all the things that may contain metacharacters while being
23493   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23494   # variables and quote the copies for generation of the libtool script.
23495   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23496     SED SHELL STRIP \
23497     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23498     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23499     deplibs_check_method reload_flag reload_cmds need_locks \
23500     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23501     lt_cv_sys_global_symbol_to_c_name_address \
23502     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23503     old_postinstall_cmds old_postuninstall_cmds \
23504     compiler_F77 \
23505     CC_F77 \
23506     LD_F77 \
23507     lt_prog_compiler_wl_F77 \
23508     lt_prog_compiler_pic_F77 \
23509     lt_prog_compiler_static_F77 \
23510     lt_prog_compiler_no_builtin_flag_F77 \
23511     export_dynamic_flag_spec_F77 \
23512     thread_safe_flag_spec_F77 \
23513     whole_archive_flag_spec_F77 \
23514     enable_shared_with_static_runtimes_F77 \
23515     old_archive_cmds_F77 \
23516     old_archive_from_new_cmds_F77 \
23517     predep_objects_F77 \
23518     postdep_objects_F77 \
23519     predeps_F77 \
23520     postdeps_F77 \
23521     compiler_lib_search_path_F77 \
23522     archive_cmds_F77 \
23523     archive_expsym_cmds_F77 \
23524     postinstall_cmds_F77 \
23525     postuninstall_cmds_F77 \
23526     old_archive_from_expsyms_cmds_F77 \
23527     allow_undefined_flag_F77 \
23528     no_undefined_flag_F77 \
23529     export_symbols_cmds_F77 \
23530     hardcode_libdir_flag_spec_F77 \
23531     hardcode_libdir_flag_spec_ld_F77 \
23532     hardcode_libdir_separator_F77 \
23533     hardcode_automatic_F77 \
23534     module_cmds_F77 \
23535     module_expsym_cmds_F77 \
23536     lt_cv_prog_compiler_c_o_F77 \
23537     exclude_expsyms_F77 \
23538     include_expsyms_F77; do
23539
23540     case $var in
23541     old_archive_cmds_F77 | \
23542     old_archive_from_new_cmds_F77 | \
23543     archive_cmds_F77 | \
23544     archive_expsym_cmds_F77 | \
23545     module_cmds_F77 | \
23546     module_expsym_cmds_F77 | \
23547     old_archive_from_expsyms_cmds_F77 | \
23548     export_symbols_cmds_F77 | \
23549     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23550     postinstall_cmds | postuninstall_cmds | \
23551     old_postinstall_cmds | old_postuninstall_cmds | \
23552     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23553       # Double-quote double-evaled strings.
23554       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23555       ;;
23556     *)
23557       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23558       ;;
23559     esac
23560   done
23561
23562   case $lt_echo in
23563   *'\$0 --fallback-echo"')
23564     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23565     ;;
23566   esac
23567
23568 cfgfile="$ofile"
23569
23570   cat <<__EOF__ >> "$cfgfile"
23571 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23572
23573 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23574
23575 # Shell to use when invoking shell scripts.
23576 SHELL=$lt_SHELL
23577
23578 # Whether or not to build shared libraries.
23579 build_libtool_libs=$enable_shared
23580
23581 # Whether or not to build static libraries.
23582 build_old_libs=$enable_static
23583
23584 # Whether or not to add -lc for building shared libraries.
23585 build_libtool_need_lc=$archive_cmds_need_lc_F77
23586
23587 # Whether or not to disallow shared libs when runtime libs are static
23588 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23589
23590 # Whether or not to optimize for fast installation.
23591 fast_install=$enable_fast_install
23592
23593 # The host system.
23594 host_alias=$host_alias
23595 host=$host
23596 host_os=$host_os
23597
23598 # The build system.
23599 build_alias=$build_alias
23600 build=$build
23601 build_os=$build_os
23602
23603 # An echo program that does not interpret backslashes.
23604 echo=$lt_echo
23605
23606 # The archiver.
23607 AR=$lt_AR
23608 AR_FLAGS=$lt_AR_FLAGS
23609
23610 # A C compiler.
23611 LTCC=$lt_LTCC
23612
23613 # LTCC compiler flags.
23614 LTCFLAGS=$lt_LTCFLAGS
23615
23616 # A language-specific compiler.
23617 CC=$lt_compiler_F77
23618
23619 # Is the compiler the GNU C compiler?
23620 with_gcc=$GCC_F77
23621
23622 # An ERE matcher.
23623 EGREP=$lt_EGREP
23624
23625 # The linker used to build libraries.
23626 LD=$lt_LD_F77
23627
23628 # Whether we need hard or soft links.
23629 LN_S=$lt_LN_S
23630
23631 # A BSD-compatible nm program.
23632 NM=$lt_NM
23633
23634 # A symbol stripping program
23635 STRIP=$lt_STRIP
23636
23637 # Used to examine libraries when file_magic_cmd begins "file"
23638 MAGIC_CMD=$MAGIC_CMD
23639
23640 # Used on cygwin: DLL creation program.
23641 DLLTOOL="$DLLTOOL"
23642
23643 # Used on cygwin: object dumper.
23644 OBJDUMP="$OBJDUMP"
23645
23646 # Used on cygwin: assembler.
23647 AS="$AS"
23648
23649 # The name of the directory that contains temporary libtool files.
23650 objdir=$objdir
23651
23652 # How to create reloadable object files.
23653 reload_flag=$lt_reload_flag
23654 reload_cmds=$lt_reload_cmds
23655
23656 # How to pass a linker flag through the compiler.
23657 wl=$lt_lt_prog_compiler_wl_F77
23658
23659 # Object file suffix (normally "o").
23660 objext="$ac_objext"
23661
23662 # Old archive suffix (normally "a").
23663 libext="$libext"
23664
23665 # Shared library suffix (normally ".so").
23666 shrext_cmds='$shrext_cmds'
23667
23668 # Executable file suffix (normally "").
23669 exeext="$exeext"
23670
23671 # Additional compiler flags for building library objects.
23672 pic_flag=$lt_lt_prog_compiler_pic_F77
23673 pic_mode=$pic_mode
23674
23675 # What is the maximum length of a command?
23676 max_cmd_len=$lt_cv_sys_max_cmd_len
23677
23678 # Does compiler simultaneously support -c and -o options?
23679 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23680
23681 # Must we lock files when doing compilation?
23682 need_locks=$lt_need_locks
23683
23684 # Do we need the lib prefix for modules?
23685 need_lib_prefix=$need_lib_prefix
23686
23687 # Do we need a version for libraries?
23688 need_version=$need_version
23689
23690 # Whether dlopen is supported.
23691 dlopen_support=$enable_dlopen
23692
23693 # Whether dlopen of programs is supported.
23694 dlopen_self=$enable_dlopen_self
23695
23696 # Whether dlopen of statically linked programs is supported.
23697 dlopen_self_static=$enable_dlopen_self_static
23698
23699 # Compiler flag to prevent dynamic linking.
23700 link_static_flag=$lt_lt_prog_compiler_static_F77
23701
23702 # Compiler flag to turn off builtin functions.
23703 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23704
23705 # Compiler flag to allow reflexive dlopens.
23706 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23707
23708 # Compiler flag to generate shared objects directly from archives.
23709 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23710
23711 # Compiler flag to generate thread-safe objects.
23712 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23713
23714 # Library versioning type.
23715 version_type=$version_type
23716
23717 # Format of library name prefix.
23718 libname_spec=$lt_libname_spec
23719
23720 # List of archive names.  First name is the real one, the rest are links.
23721 # The last name is the one that the linker finds with -lNAME.
23722 library_names_spec=$lt_library_names_spec
23723
23724 # The coded name of the library, if different from the real name.
23725 soname_spec=$lt_soname_spec
23726
23727 # Commands used to build and install an old-style archive.
23728 RANLIB=$lt_RANLIB
23729 old_archive_cmds=$lt_old_archive_cmds_F77
23730 old_postinstall_cmds=$lt_old_postinstall_cmds
23731 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23732
23733 # Create an old-style archive from a shared archive.
23734 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23735
23736 # Create a temporary old-style archive to link instead of a shared archive.
23737 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23738
23739 # Commands used to build and install a shared archive.
23740 archive_cmds=$lt_archive_cmds_F77
23741 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23742 postinstall_cmds=$lt_postinstall_cmds
23743 postuninstall_cmds=$lt_postuninstall_cmds
23744
23745 # Commands used to build a loadable module (assumed same as above if empty)
23746 module_cmds=$lt_module_cmds_F77
23747 module_expsym_cmds=$lt_module_expsym_cmds_F77
23748
23749 # Commands to strip libraries.
23750 old_striplib=$lt_old_striplib
23751 striplib=$lt_striplib
23752
23753 # Dependencies to place before the objects being linked to create a
23754 # shared library.
23755 predep_objects=$lt_predep_objects_F77
23756
23757 # Dependencies to place after the objects being linked to create a
23758 # shared library.
23759 postdep_objects=$lt_postdep_objects_F77
23760
23761 # Dependencies to place before the objects being linked to create a
23762 # shared library.
23763 predeps=$lt_predeps_F77
23764
23765 # Dependencies to place after the objects being linked to create a
23766 # shared library.
23767 postdeps=$lt_postdeps_F77
23768
23769 # The library search path used internally by the compiler when linking
23770 # a shared library.
23771 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23772
23773 # Method to check whether dependent libraries are shared objects.
23774 deplibs_check_method=$lt_deplibs_check_method
23775
23776 # Command to use when deplibs_check_method == file_magic.
23777 file_magic_cmd=$lt_file_magic_cmd
23778
23779 # Flag that allows shared libraries with undefined symbols to be built.
23780 allow_undefined_flag=$lt_allow_undefined_flag_F77
23781
23782 # Flag that forces no undefined symbols.
23783 no_undefined_flag=$lt_no_undefined_flag_F77
23784
23785 # Commands used to finish a libtool library installation in a directory.
23786 finish_cmds=$lt_finish_cmds
23787
23788 # Same as above, but a single script fragment to be evaled but not shown.
23789 finish_eval=$lt_finish_eval
23790
23791 # Take the output of nm and produce a listing of raw symbols and C names.
23792 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23793
23794 # Transform the output of nm in a proper C declaration
23795 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23796
23797 # Transform the output of nm in a C name address pair
23798 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23799
23800 # This is the shared library runtime path variable.
23801 runpath_var=$runpath_var
23802
23803 # This is the shared library path variable.
23804 shlibpath_var=$shlibpath_var
23805
23806 # Is shlibpath searched before the hard-coded library search path?
23807 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23808
23809 # How to hardcode a shared library path into an executable.
23810 hardcode_action=$hardcode_action_F77
23811
23812 # Whether we should hardcode library paths into libraries.
23813 hardcode_into_libs=$hardcode_into_libs
23814
23815 # Flag to hardcode \$libdir into a binary during linking.
23816 # This must work even if \$libdir does not exist.
23817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23818
23819 # If ld is used when linking, flag to hardcode \$libdir into
23820 # a binary during linking. This must work even if \$libdir does
23821 # not exist.
23822 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23823
23824 # Whether we need a single -rpath flag with a separated argument.
23825 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23826
23827 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23828 # resulting binary.
23829 hardcode_direct=$hardcode_direct_F77
23830
23831 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23832 # resulting binary.
23833 hardcode_minus_L=$hardcode_minus_L_F77
23834
23835 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23836 # the resulting binary.
23837 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23838
23839 # Set to yes if building a shared library automatically hardcodes DIR into the library
23840 # and all subsequent libraries and executables linked against it.
23841 hardcode_automatic=$hardcode_automatic_F77
23842
23843 # Variables whose values should be saved in libtool wrapper scripts and
23844 # restored at relink time.
23845 variables_saved_for_relink="$variables_saved_for_relink"
23846
23847 # Whether libtool must link a program against all its dependency libraries.
23848 link_all_deplibs=$link_all_deplibs_F77
23849
23850 # Compile-time system search path for libraries
23851 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23852
23853 # Run-time system search path for libraries
23854 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23855
23856 # Fix the shell variable \$srcfile for the compiler.
23857 fix_srcfile_path="$fix_srcfile_path_F77"
23858
23859 # Set to yes if exported symbols are required.
23860 always_export_symbols=$always_export_symbols_F77
23861
23862 # The commands to list exported symbols.
23863 export_symbols_cmds=$lt_export_symbols_cmds_F77
23864
23865 # The commands to extract the exported symbol list from a shared archive.
23866 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23867
23868 # Symbols that should not be listed in the preloaded symbols.
23869 exclude_expsyms=$lt_exclude_expsyms_F77
23870
23871 # Symbols that must always be exported.
23872 include_expsyms=$lt_include_expsyms_F77
23873
23874 # ### END LIBTOOL TAG CONFIG: $tagname
23875
23876 __EOF__
23877
23878
23879 else
23880   # If there is no Makefile yet, we rely on a make rule to execute
23881   # `config.status --recheck' to rerun these tests and create the
23882   # libtool script then.
23883   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23884   if test -f "$ltmain_in"; then
23885     test -f Makefile && make "$ltmain"
23886   fi
23887 fi
23888
23889
23890 ac_ext=c
23891 ac_cpp='$CPP $CPPFLAGS'
23892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23895
23896 CC="$lt_save_CC"
23897
23898         else
23899           tagname=""
23900         fi
23901         ;;
23902
23903       GCJ)
23904         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23905           ac_ext=c
23906 ac_cpp='$CPP $CPPFLAGS'
23907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23910
23911
23912 # Source file extension for Java test sources.
23913 ac_ext=java
23914
23915 # Object file extension for compiled Java test sources.
23916 objext=o
23917 objext_GCJ=$objext
23918
23919 # Code to be used in simple compile tests
23920 lt_simple_compile_test_code="class foo {}\n"
23921
23922 # Code to be used in simple link tests
23923 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23924
23925 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23926
23927 # If no C compiler was specified, use CC.
23928 LTCC=${LTCC-"$CC"}
23929
23930 # If no C compiler flags were specified, use CFLAGS.
23931 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23932
23933 # Allow CC to be a program name with arguments.
23934 compiler=$CC
23935
23936
23937 # save warnings/boilerplate of simple test code
23938 ac_outfile=conftest.$ac_objext
23939 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23940 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23941 _lt_compiler_boilerplate=`cat conftest.err`
23942 $rm conftest*
23943
23944 ac_outfile=conftest.$ac_objext
23945 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23946 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23947 _lt_linker_boilerplate=`cat conftest.err`
23948 $rm conftest*
23949
23950
23951 # Allow CC to be a program name with arguments.
23952 lt_save_CC="$CC"
23953 CC=${GCJ-"gcj"}
23954 compiler=$CC
23955 compiler_GCJ=$CC
23956 for cc_temp in $compiler""; do
23957   case $cc_temp in
23958     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23959     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23960     \-*) ;;
23961     *) break;;
23962   esac
23963 done
23964 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23965
23966
23967 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23968 archive_cmds_need_lc_GCJ=no
23969
23970 old_archive_cmds_GCJ=$old_archive_cmds
23971
23972
23973 lt_prog_compiler_no_builtin_flag_GCJ=
23974
23975 if test "$GCC" = yes; then
23976   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23977
23978
23979 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23980 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23981 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23982   echo $ECHO_N "(cached) $ECHO_C" >&6
23983 else
23984   lt_cv_prog_compiler_rtti_exceptions=no
23985   ac_outfile=conftest.$ac_objext
23986    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23987    lt_compiler_flag="-fno-rtti -fno-exceptions"
23988    # Insert the option either (1) after the last *FLAGS variable, or
23989    # (2) before a word containing "conftest.", or (3) at the end.
23990    # Note that $ac_compile itself does not contain backslashes and begins
23991    # with a dollar sign (not a hyphen), so the echo should work correctly.
23992    # The option is referenced via a variable to avoid confusing sed.
23993    lt_compile=`echo "$ac_compile" | $SED \
23994    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23995    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23996    -e 's:$: $lt_compiler_flag:'`
23997    (eval echo "\"\$as_me:23997: $lt_compile\"" >&5)
23998    (eval "$lt_compile" 2>conftest.err)
23999    ac_status=$?
24000    cat conftest.err >&5
24001    echo "$as_me:24001: \$? = $ac_status" >&5
24002    if (exit $ac_status) && test -s "$ac_outfile"; then
24003      # The compiler can only warn and ignore the option if not recognized
24004      # So say no if there are warnings other than the usual output.
24005      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24006      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24007      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24008        lt_cv_prog_compiler_rtti_exceptions=yes
24009      fi
24010    fi
24011    $rm conftest*
24012
24013 fi
24014 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24015 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24016
24017 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24018     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24019 else
24020     :
24021 fi
24022
24023 fi
24024
24025 lt_prog_compiler_wl_GCJ=
24026 lt_prog_compiler_pic_GCJ=
24027 lt_prog_compiler_static_GCJ=
24028
24029 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24030 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24031
24032   if test "$GCC" = yes; then
24033     lt_prog_compiler_wl_GCJ='-Wl,'
24034     lt_prog_compiler_static_GCJ='-static'
24035
24036     case $host_os in
24037       aix*)
24038       # All AIX code is PIC.
24039       if test "$host_cpu" = ia64; then
24040         # AIX 5 now supports IA64 processor
24041         lt_prog_compiler_static_GCJ='-Bstatic'
24042       fi
24043       ;;
24044
24045     amigaos*)
24046       # FIXME: we need at least 68020 code to build shared libraries, but
24047       # adding the `-m68020' flag to GCC prevents building anything better,
24048       # like `-m68040'.
24049       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24050       ;;
24051
24052     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24053       # PIC is the default for these OSes.
24054       ;;
24055
24056     mingw* | pw32* | os2*)
24057       # This hack is so that the source file can tell whether it is being
24058       # built for inclusion in a dll (and should export symbols for example).
24059       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24060       ;;
24061
24062     darwin* | rhapsody*)
24063       # PIC is the default on this platform
24064       # Common symbols not allowed in MH_DYLIB files
24065       lt_prog_compiler_pic_GCJ='-fno-common'
24066       ;;
24067
24068     interix3*)
24069       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24070       # Instead, we relocate shared libraries at runtime.
24071       ;;
24072
24073     msdosdjgpp*)
24074       # Just because we use GCC doesn't mean we suddenly get shared libraries
24075       # on systems that don't support them.
24076       lt_prog_compiler_can_build_shared_GCJ=no
24077       enable_shared=no
24078       ;;
24079
24080     sysv4*MP*)
24081       if test -d /usr/nec; then
24082         lt_prog_compiler_pic_GCJ=-Kconform_pic
24083       fi
24084       ;;
24085
24086     hpux*)
24087       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24088       # not for PA HP-UX.
24089       case $host_cpu in
24090       hppa*64*|ia64*)
24091         # +Z the default
24092         ;;
24093       *)
24094         lt_prog_compiler_pic_GCJ='-fPIC'
24095         ;;
24096       esac
24097       ;;
24098
24099     *)
24100       lt_prog_compiler_pic_GCJ='-fPIC'
24101       ;;
24102     esac
24103   else
24104     # PORTME Check for flag to pass linker flags through the system compiler.
24105     case $host_os in
24106     aix*)
24107       lt_prog_compiler_wl_GCJ='-Wl,'
24108       if test "$host_cpu" = ia64; then
24109         # AIX 5 now supports IA64 processor
24110         lt_prog_compiler_static_GCJ='-Bstatic'
24111       else
24112         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24113       fi
24114       ;;
24115       darwin*)
24116         # PIC is the default on this platform
24117         # Common symbols not allowed in MH_DYLIB files
24118        case $cc_basename in
24119          xlc*)
24120          lt_prog_compiler_pic_GCJ='-qnocommon'
24121          lt_prog_compiler_wl_GCJ='-Wl,'
24122          ;;
24123        esac
24124        ;;
24125
24126     mingw* | pw32* | os2*)
24127       # This hack is so that the source file can tell whether it is being
24128       # built for inclusion in a dll (and should export symbols for example).
24129       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24130       ;;
24131
24132     hpux9* | hpux10* | hpux11*)
24133       lt_prog_compiler_wl_GCJ='-Wl,'
24134       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24135       # not for PA HP-UX.
24136       case $host_cpu in
24137       hppa*64*|ia64*)
24138         # +Z the default
24139         ;;
24140       *)
24141         lt_prog_compiler_pic_GCJ='+Z'
24142         ;;
24143       esac
24144       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24145       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24146       ;;
24147
24148     irix5* | irix6* | nonstopux*)
24149       lt_prog_compiler_wl_GCJ='-Wl,'
24150       # PIC (with -KPIC) is the default.
24151       lt_prog_compiler_static_GCJ='-non_shared'
24152       ;;
24153
24154     newsos6)
24155       lt_prog_compiler_pic_GCJ='-KPIC'
24156       lt_prog_compiler_static_GCJ='-Bstatic'
24157       ;;
24158
24159     linux*)
24160       case $cc_basename in
24161       icc* | ecc*)
24162         lt_prog_compiler_wl_GCJ='-Wl,'
24163         lt_prog_compiler_pic_GCJ='-KPIC'
24164         lt_prog_compiler_static_GCJ='-static'
24165         ;;
24166       pgcc* | pgf77* | pgf90* | pgf95*)
24167         # Portland Group compilers (*not* the Pentium gcc compiler,
24168         # which looks to be a dead project)
24169         lt_prog_compiler_wl_GCJ='-Wl,'
24170         lt_prog_compiler_pic_GCJ='-fpic'
24171         lt_prog_compiler_static_GCJ='-Bstatic'
24172         ;;
24173       ccc*)
24174         lt_prog_compiler_wl_GCJ='-Wl,'
24175         # All Alpha code is PIC.
24176         lt_prog_compiler_static_GCJ='-non_shared'
24177         ;;
24178       esac
24179       ;;
24180
24181     osf3* | osf4* | osf5*)
24182       lt_prog_compiler_wl_GCJ='-Wl,'
24183       # All OSF/1 code is PIC.
24184       lt_prog_compiler_static_GCJ='-non_shared'
24185       ;;
24186
24187     solaris*)
24188       lt_prog_compiler_pic_GCJ='-KPIC'
24189       lt_prog_compiler_static_GCJ='-Bstatic'
24190       case $cc_basename in
24191       f77* | f90* | f95*)
24192         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24193       *)
24194         lt_prog_compiler_wl_GCJ='-Wl,';;
24195       esac
24196       ;;
24197
24198     sunos4*)
24199       lt_prog_compiler_wl_GCJ='-Qoption ld '
24200       lt_prog_compiler_pic_GCJ='-PIC'
24201       lt_prog_compiler_static_GCJ='-Bstatic'
24202       ;;
24203
24204     sysv4 | sysv4.2uw2* | sysv4.3*)
24205       lt_prog_compiler_wl_GCJ='-Wl,'
24206       lt_prog_compiler_pic_GCJ='-KPIC'
24207       lt_prog_compiler_static_GCJ='-Bstatic'
24208       ;;
24209
24210     sysv4*MP*)
24211       if test -d /usr/nec ;then
24212         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24213         lt_prog_compiler_static_GCJ='-Bstatic'
24214       fi
24215       ;;
24216
24217     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24218       lt_prog_compiler_wl_GCJ='-Wl,'
24219       lt_prog_compiler_pic_GCJ='-KPIC'
24220       lt_prog_compiler_static_GCJ='-Bstatic'
24221       ;;
24222
24223     unicos*)
24224       lt_prog_compiler_wl_GCJ='-Wl,'
24225       lt_prog_compiler_can_build_shared_GCJ=no
24226       ;;
24227
24228     uts4*)
24229       lt_prog_compiler_pic_GCJ='-pic'
24230       lt_prog_compiler_static_GCJ='-Bstatic'
24231       ;;
24232
24233     *)
24234       lt_prog_compiler_can_build_shared_GCJ=no
24235       ;;
24236     esac
24237   fi
24238
24239 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24240 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24241
24242 #
24243 # Check to make sure the PIC flag actually works.
24244 #
24245 if test -n "$lt_prog_compiler_pic_GCJ"; then
24246
24247 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24248 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24249 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24250   echo $ECHO_N "(cached) $ECHO_C" >&6
24251 else
24252   lt_prog_compiler_pic_works_GCJ=no
24253   ac_outfile=conftest.$ac_objext
24254    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24255    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24256    # Insert the option either (1) after the last *FLAGS variable, or
24257    # (2) before a word containing "conftest.", or (3) at the end.
24258    # Note that $ac_compile itself does not contain backslashes and begins
24259    # with a dollar sign (not a hyphen), so the echo should work correctly.
24260    # The option is referenced via a variable to avoid confusing sed.
24261    lt_compile=`echo "$ac_compile" | $SED \
24262    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24263    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24264    -e 's:$: $lt_compiler_flag:'`
24265    (eval echo "\"\$as_me:24265: $lt_compile\"" >&5)
24266    (eval "$lt_compile" 2>conftest.err)
24267    ac_status=$?
24268    cat conftest.err >&5
24269    echo "$as_me:24269: \$? = $ac_status" >&5
24270    if (exit $ac_status) && test -s "$ac_outfile"; then
24271      # The compiler can only warn and ignore the option if not recognized
24272      # So say no if there are warnings other than the usual output.
24273      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24274      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24275      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24276        lt_prog_compiler_pic_works_GCJ=yes
24277      fi
24278    fi
24279    $rm conftest*
24280
24281 fi
24282 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24283 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24284
24285 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24286     case $lt_prog_compiler_pic_GCJ in
24287      "" | " "*) ;;
24288      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24289      esac
24290 else
24291     lt_prog_compiler_pic_GCJ=
24292      lt_prog_compiler_can_build_shared_GCJ=no
24293 fi
24294
24295 fi
24296 case $host_os in
24297   # For platforms which do not support PIC, -DPIC is meaningless:
24298   *djgpp*)
24299     lt_prog_compiler_pic_GCJ=
24300     ;;
24301   *)
24302     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24303     ;;
24304 esac
24305
24306 #
24307 # Check to make sure the static flag actually works.
24308 #
24309 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24310 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24311 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24312 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24313   echo $ECHO_N "(cached) $ECHO_C" >&6
24314 else
24315   lt_prog_compiler_static_works_GCJ=no
24316    save_LDFLAGS="$LDFLAGS"
24317    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24318    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24319    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24320      # The linker can only warn and ignore the option if not recognized
24321      # So say no if there are warnings
24322      if test -s conftest.err; then
24323        # Append any errors to the config.log.
24324        cat conftest.err 1>&5
24325        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24326        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24327        if diff conftest.exp conftest.er2 >/dev/null; then
24328          lt_prog_compiler_static_works_GCJ=yes
24329        fi
24330      else
24331        lt_prog_compiler_static_works_GCJ=yes
24332      fi
24333    fi
24334    $rm conftest*
24335    LDFLAGS="$save_LDFLAGS"
24336
24337 fi
24338 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24339 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24340
24341 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24342     :
24343 else
24344     lt_prog_compiler_static_GCJ=
24345 fi
24346
24347
24348 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24349 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24350 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24351   echo $ECHO_N "(cached) $ECHO_C" >&6
24352 else
24353   lt_cv_prog_compiler_c_o_GCJ=no
24354    $rm -r conftest 2>/dev/null
24355    mkdir conftest
24356    cd conftest
24357    mkdir out
24358    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24359
24360    lt_compiler_flag="-o out/conftest2.$ac_objext"
24361    # Insert the option either (1) after the last *FLAGS variable, or
24362    # (2) before a word containing "conftest.", or (3) at the end.
24363    # Note that $ac_compile itself does not contain backslashes and begins
24364    # with a dollar sign (not a hyphen), so the echo should work correctly.
24365    lt_compile=`echo "$ac_compile" | $SED \
24366    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24367    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24368    -e 's:$: $lt_compiler_flag:'`
24369    (eval echo "\"\$as_me:24369: $lt_compile\"" >&5)
24370    (eval "$lt_compile" 2>out/conftest.err)
24371    ac_status=$?
24372    cat out/conftest.err >&5
24373    echo "$as_me:24373: \$? = $ac_status" >&5
24374    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24375    then
24376      # The compiler can only warn and ignore the option if not recognized
24377      # So say no if there are warnings
24378      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24379      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24380      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24381        lt_cv_prog_compiler_c_o_GCJ=yes
24382      fi
24383    fi
24384    chmod u+w . 2>&5
24385    $rm conftest*
24386    # SGI C++ compiler will create directory out/ii_files/ for
24387    # template instantiation
24388    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24389    $rm out/* && rmdir out
24390    cd ..
24391    rmdir conftest
24392    $rm conftest*
24393
24394 fi
24395 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24396 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24397
24398
24399 hard_links="nottested"
24400 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24401   # do not overwrite the value of need_locks provided by the user
24402   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24403 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24404   hard_links=yes
24405   $rm conftest*
24406   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24407   touch conftest.a
24408   ln conftest.a conftest.b 2>&5 || hard_links=no
24409   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24410   { echo "$as_me:$LINENO: result: $hard_links" >&5
24411 echo "${ECHO_T}$hard_links" >&6; }
24412   if test "$hard_links" = no; then
24413     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24414 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24415     need_locks=warn
24416   fi
24417 else
24418   need_locks=no
24419 fi
24420
24421 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24422 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24423
24424   runpath_var=
24425   allow_undefined_flag_GCJ=
24426   enable_shared_with_static_runtimes_GCJ=no
24427   archive_cmds_GCJ=
24428   archive_expsym_cmds_GCJ=
24429   old_archive_From_new_cmds_GCJ=
24430   old_archive_from_expsyms_cmds_GCJ=
24431   export_dynamic_flag_spec_GCJ=
24432   whole_archive_flag_spec_GCJ=
24433   thread_safe_flag_spec_GCJ=
24434   hardcode_libdir_flag_spec_GCJ=
24435   hardcode_libdir_flag_spec_ld_GCJ=
24436   hardcode_libdir_separator_GCJ=
24437   hardcode_direct_GCJ=no
24438   hardcode_minus_L_GCJ=no
24439   hardcode_shlibpath_var_GCJ=unsupported
24440   link_all_deplibs_GCJ=unknown
24441   hardcode_automatic_GCJ=no
24442   module_cmds_GCJ=
24443   module_expsym_cmds_GCJ=
24444   always_export_symbols_GCJ=no
24445   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24446   # include_expsyms should be a list of space-separated symbols to be *always*
24447   # included in the symbol list
24448   include_expsyms_GCJ=
24449   # exclude_expsyms can be an extended regexp of symbols to exclude
24450   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24451   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24452   # as well as any symbol that contains `d'.
24453   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24454   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24455   # platforms (ab)use it in PIC code, but their linkers get confused if
24456   # the symbol is explicitly referenced.  Since portable code cannot
24457   # rely on this symbol name, it's probably fine to never include it in
24458   # preloaded symbol tables.
24459   extract_expsyms_cmds=
24460   # Just being paranoid about ensuring that cc_basename is set.
24461   for cc_temp in $compiler""; do
24462   case $cc_temp in
24463     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24464     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24465     \-*) ;;
24466     *) break;;
24467   esac
24468 done
24469 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24470
24471   case $host_os in
24472   cygwin* | mingw* | pw32*)
24473     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24474     # When not using gcc, we currently assume that we are using
24475     # Microsoft Visual C++.
24476     if test "$GCC" != yes; then
24477       with_gnu_ld=no
24478     fi
24479     ;;
24480   interix*)
24481     # we just hope/assume this is gcc and not c89 (= MSVC++)
24482     with_gnu_ld=yes
24483     ;;
24484   openbsd*)
24485     with_gnu_ld=no
24486     ;;
24487   esac
24488
24489   ld_shlibs_GCJ=yes
24490   if test "$with_gnu_ld" = yes; then
24491     # If archive_cmds runs LD, not CC, wlarc should be empty
24492     wlarc='${wl}'
24493
24494     # Set some defaults for GNU ld with shared library support. These
24495     # are reset later if shared libraries are not supported. Putting them
24496     # here allows them to be overridden if necessary.
24497     runpath_var=LD_RUN_PATH
24498     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24499     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24500     # ancient GNU ld didn't support --whole-archive et. al.
24501     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24502         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24503       else
24504         whole_archive_flag_spec_GCJ=
24505     fi
24506     supports_anon_versioning=no
24507     case `$LD -v 2>/dev/null` in
24508       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24509       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24510       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24511       *\ 2.11.*) ;; # other 2.11 versions
24512       *) supports_anon_versioning=yes ;;
24513     esac
24514
24515     # See if GNU ld supports shared libraries.
24516     case $host_os in
24517     aix3* | aix4* | aix5*)
24518       # On AIX/PPC, the GNU linker is very broken
24519       if test "$host_cpu" != ia64; then
24520         ld_shlibs_GCJ=no
24521         cat <<EOF 1>&2
24522
24523 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24524 *** to be unable to reliably create shared libraries on AIX.
24525 *** Therefore, libtool is disabling shared libraries support.  If you
24526 *** really care for shared libraries, you may want to modify your PATH
24527 *** so that a non-GNU linker is found, and then restart.
24528
24529 EOF
24530       fi
24531       ;;
24532
24533     amigaos*)
24534       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)'
24535       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24536       hardcode_minus_L_GCJ=yes
24537
24538       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24539       # that the semantics of dynamic libraries on AmigaOS, at least up
24540       # to version 4, is to share data among multiple programs linked
24541       # with the same dynamic library.  Since this doesn't match the
24542       # behavior of shared libraries on other platforms, we can't use
24543       # them.
24544       ld_shlibs_GCJ=no
24545       ;;
24546
24547     beos*)
24548       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24549         allow_undefined_flag_GCJ=unsupported
24550         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24551         # support --undefined.  This deserves some investigation.  FIXME
24552         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24553       else
24554         ld_shlibs_GCJ=no
24555       fi
24556       ;;
24557
24558     cygwin* | mingw* | pw32*)
24559       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24560       # as there is no search path for DLLs.
24561       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24562       allow_undefined_flag_GCJ=unsupported
24563       always_export_symbols_GCJ=no
24564       enable_shared_with_static_runtimes_GCJ=yes
24565       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24566
24567       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24568         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24569         # If the export-symbols file already is a .def file (1st line
24570         # is EXPORTS), use it as is; otherwise, prepend...
24571         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24572           cp $export_symbols $output_objdir/$soname.def;
24573         else
24574           echo EXPORTS > $output_objdir/$soname.def;
24575           cat $export_symbols >> $output_objdir/$soname.def;
24576         fi~
24577         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24578       else
24579         ld_shlibs_GCJ=no
24580       fi
24581       ;;
24582
24583     interix3*)
24584       hardcode_direct_GCJ=no
24585       hardcode_shlibpath_var_GCJ=no
24586       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24587       export_dynamic_flag_spec_GCJ='${wl}-E'
24588       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24589       # Instead, shared libraries are loaded at an image base (0x10000000 by
24590       # default) and relocated if they conflict, which is a slow very memory
24591       # consuming and fragmenting process.  To avoid this, we pick a random,
24592       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24593       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24594       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'
24595       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'
24596       ;;
24597
24598     linux*)
24599       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24600         tmp_addflag=
24601         case $cc_basename,$host_cpu in
24602         pgcc*)                          # Portland Group C compiler
24603           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'
24604           tmp_addflag=' $pic_flag'
24605           ;;
24606         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24607           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'
24608           tmp_addflag=' $pic_flag -Mnomain' ;;
24609         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24610           tmp_addflag=' -i_dynamic' ;;
24611         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24612           tmp_addflag=' -i_dynamic -nofor_main' ;;
24613         ifc* | ifort*)                  # Intel Fortran compiler
24614           tmp_addflag=' -nofor_main' ;;
24615         esac
24616         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24617
24618         if test $supports_anon_versioning = yes; then
24619           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24620   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24621   $echo "local: *; };" >> $output_objdir/$libname.ver~
24622           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24623         fi
24624       else
24625         ld_shlibs_GCJ=no
24626       fi
24627       ;;
24628
24629     netbsd*)
24630       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24631         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24632         wlarc=
24633       else
24634         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24635         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24636       fi
24637       ;;
24638
24639     solaris*)
24640       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24641         ld_shlibs_GCJ=no
24642         cat <<EOF 1>&2
24643
24644 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24645 *** create shared libraries on Solaris systems.  Therefore, libtool
24646 *** is disabling shared libraries support.  We urge you to upgrade GNU
24647 *** binutils to release 2.9.1 or newer.  Another option is to modify
24648 *** your PATH or compiler configuration so that the native linker is
24649 *** used, and then restart.
24650
24651 EOF
24652       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24653         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24654         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24655       else
24656         ld_shlibs_GCJ=no
24657       fi
24658       ;;
24659
24660     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24661       case `$LD -v 2>&1` in
24662         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24663         ld_shlibs_GCJ=no
24664         cat <<_LT_EOF 1>&2
24665
24666 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24667 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24668 *** is disabling shared libraries support.  We urge you to upgrade GNU
24669 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24670 *** your PATH or compiler configuration so that the native linker is
24671 *** used, and then restart.
24672
24673 _LT_EOF
24674         ;;
24675         *)
24676           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24677             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24678             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24679             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24680           else
24681             ld_shlibs_GCJ=no
24682           fi
24683         ;;
24684       esac
24685       ;;
24686
24687     sunos4*)
24688       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24689       wlarc=
24690       hardcode_direct_GCJ=yes
24691       hardcode_shlibpath_var_GCJ=no
24692       ;;
24693
24694     *)
24695       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24696         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24697         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24698       else
24699         ld_shlibs_GCJ=no
24700       fi
24701       ;;
24702     esac
24703
24704     if test "$ld_shlibs_GCJ" = no; then
24705       runpath_var=
24706       hardcode_libdir_flag_spec_GCJ=
24707       export_dynamic_flag_spec_GCJ=
24708       whole_archive_flag_spec_GCJ=
24709     fi
24710   else
24711     # PORTME fill in a description of your system's linker (not GNU ld)
24712     case $host_os in
24713     aix3*)
24714       allow_undefined_flag_GCJ=unsupported
24715       always_export_symbols_GCJ=yes
24716       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'
24717       # Note: this linker hardcodes the directories in LIBPATH if there
24718       # are no directories specified by -L.
24719       hardcode_minus_L_GCJ=yes
24720       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24721         # Neither direct hardcoding nor static linking is supported with a
24722         # broken collect2.
24723         hardcode_direct_GCJ=unsupported
24724       fi
24725       ;;
24726
24727     aix4* | aix5*)
24728       if test "$host_cpu" = ia64; then
24729         # On IA64, the linker does run time linking by default, so we don't
24730         # have to do anything special.
24731         aix_use_runtimelinking=no
24732         exp_sym_flag='-Bexport'
24733         no_entry_flag=""
24734       else
24735         # If we're using GNU nm, then we don't want the "-C" option.
24736         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24737         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24738           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'
24739         else
24740           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'
24741         fi
24742         aix_use_runtimelinking=no
24743
24744         # Test if we are trying to use run time linking or normal
24745         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24746         # need to do runtime linking.
24747         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24748           for ld_flag in $LDFLAGS; do
24749           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24750             aix_use_runtimelinking=yes
24751             break
24752           fi
24753           done
24754           ;;
24755         esac
24756
24757         exp_sym_flag='-bexport'
24758         no_entry_flag='-bnoentry'
24759       fi
24760
24761       # When large executables or shared objects are built, AIX ld can
24762       # have problems creating the table of contents.  If linking a library
24763       # or program results in "error TOC overflow" add -mminimal-toc to
24764       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24765       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24766
24767       archive_cmds_GCJ=''
24768       hardcode_direct_GCJ=yes
24769       hardcode_libdir_separator_GCJ=':'
24770       link_all_deplibs_GCJ=yes
24771
24772       if test "$GCC" = yes; then
24773         case $host_os in aix4.[012]|aix4.[012].*)
24774         # We only want to do this on AIX 4.2 and lower, the check
24775         # below for broken collect2 doesn't work under 4.3+
24776           collect2name=`${CC} -print-prog-name=collect2`
24777           if test -f "$collect2name" && \
24778            strings "$collect2name" | grep resolve_lib_name >/dev/null
24779           then
24780           # We have reworked collect2
24781           hardcode_direct_GCJ=yes
24782           else
24783           # We have old collect2
24784           hardcode_direct_GCJ=unsupported
24785           # It fails to find uninstalled libraries when the uninstalled
24786           # path is not listed in the libpath.  Setting hardcode_minus_L
24787           # to unsupported forces relinking
24788           hardcode_minus_L_GCJ=yes
24789           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24790           hardcode_libdir_separator_GCJ=
24791           fi
24792           ;;
24793         esac
24794         shared_flag='-shared'
24795         if test "$aix_use_runtimelinking" = yes; then
24796           shared_flag="$shared_flag "'${wl}-G'
24797         fi
24798       else
24799         # not using gcc
24800         if test "$host_cpu" = ia64; then
24801         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24802         # chokes on -Wl,-G. The following line is correct:
24803           shared_flag='-G'
24804         else
24805           if test "$aix_use_runtimelinking" = yes; then
24806             shared_flag='${wl}-G'
24807           else
24808             shared_flag='${wl}-bM:SRE'
24809           fi
24810         fi
24811       fi
24812
24813       # It seems that -bexpall does not export symbols beginning with
24814       # underscore (_), so it is better to generate a list of symbols to export.
24815       always_export_symbols_GCJ=yes
24816       if test "$aix_use_runtimelinking" = yes; then
24817         # Warning - without using the other runtime loading flags (-brtl),
24818         # -berok will link without error, but may produce a broken library.
24819         allow_undefined_flag_GCJ='-berok'
24820        # Determine the default libpath from the value encoded in an empty executable.
24821        cat >conftest.$ac_ext <<_ACEOF
24822 /* confdefs.h.  */
24823 _ACEOF
24824 cat confdefs.h >>conftest.$ac_ext
24825 cat >>conftest.$ac_ext <<_ACEOF
24826 /* end confdefs.h.  */
24827
24828 int
24829 main ()
24830 {
24831
24832   ;
24833   return 0;
24834 }
24835 _ACEOF
24836 rm -f conftest.$ac_objext conftest$ac_exeext
24837 if { (ac_try="$ac_link"
24838 case "(($ac_try" in
24839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840   *) ac_try_echo=$ac_try;;
24841 esac
24842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24843   (eval "$ac_link") 2>conftest.er1
24844   ac_status=$?
24845   grep -v '^ *+' conftest.er1 >conftest.err
24846   rm -f conftest.er1
24847   cat conftest.err >&5
24848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849   (exit $ac_status); } &&
24850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24851   { (case "(($ac_try" in
24852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24853   *) ac_try_echo=$ac_try;;
24854 esac
24855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24856   (eval "$ac_try") 2>&5
24857   ac_status=$?
24858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859   (exit $ac_status); }; } &&
24860          { ac_try='test -s conftest$ac_exeext'
24861   { (case "(($ac_try" in
24862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24863   *) ac_try_echo=$ac_try;;
24864 esac
24865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24866   (eval "$ac_try") 2>&5
24867   ac_status=$?
24868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869   (exit $ac_status); }; }; then
24870
24871 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24872 }'`
24873 # Check for a 64-bit object if we didn't find anything.
24874 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24875 }'`; fi
24876 else
24877   echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24879
24880
24881 fi
24882
24883 rm -f core conftest.err conftest.$ac_objext \
24884       conftest$ac_exeext conftest.$ac_ext
24885 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24886
24887        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24888         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"
24889        else
24890         if test "$host_cpu" = ia64; then
24891           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24892           allow_undefined_flag_GCJ="-z nodefs"
24893           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"
24894         else
24895          # Determine the default libpath from the value encoded in an empty executable.
24896          cat >conftest.$ac_ext <<_ACEOF
24897 /* confdefs.h.  */
24898 _ACEOF
24899 cat confdefs.h >>conftest.$ac_ext
24900 cat >>conftest.$ac_ext <<_ACEOF
24901 /* end confdefs.h.  */
24902
24903 int
24904 main ()
24905 {
24906
24907   ;
24908   return 0;
24909 }
24910 _ACEOF
24911 rm -f conftest.$ac_objext conftest$ac_exeext
24912 if { (ac_try="$ac_link"
24913 case "(($ac_try" in
24914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915   *) ac_try_echo=$ac_try;;
24916 esac
24917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24918   (eval "$ac_link") 2>conftest.er1
24919   ac_status=$?
24920   grep -v '^ *+' conftest.er1 >conftest.err
24921   rm -f conftest.er1
24922   cat conftest.err >&5
24923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924   (exit $ac_status); } &&
24925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24926   { (case "(($ac_try" in
24927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928   *) ac_try_echo=$ac_try;;
24929 esac
24930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931   (eval "$ac_try") 2>&5
24932   ac_status=$?
24933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934   (exit $ac_status); }; } &&
24935          { ac_try='test -s conftest$ac_exeext'
24936   { (case "(($ac_try" in
24937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938   *) ac_try_echo=$ac_try;;
24939 esac
24940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941   (eval "$ac_try") 2>&5
24942   ac_status=$?
24943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944   (exit $ac_status); }; }; then
24945
24946 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24947 }'`
24948 # Check for a 64-bit object if we didn't find anything.
24949 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24950 }'`; fi
24951 else
24952   echo "$as_me: failed program was:" >&5
24953 sed 's/^/| /' conftest.$ac_ext >&5
24954
24955
24956 fi
24957
24958 rm -f core conftest.err conftest.$ac_objext \
24959       conftest$ac_exeext conftest.$ac_ext
24960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24961
24962          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24963           # Warning - without using the other run time loading flags,
24964           # -berok will link without error, but may produce a broken library.
24965           no_undefined_flag_GCJ=' ${wl}-bernotok'
24966           allow_undefined_flag_GCJ=' ${wl}-berok'
24967           # Exported symbols can be pulled into shared objects from archives
24968           whole_archive_flag_spec_GCJ='$convenience'
24969           archive_cmds_need_lc_GCJ=yes
24970           # This is similar to how AIX traditionally builds its shared libraries.
24971           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'
24972         fi
24973       fi
24974       ;;
24975
24976     amigaos*)
24977       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)'
24978       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24979       hardcode_minus_L_GCJ=yes
24980       # see comment about different semantics on the GNU ld section
24981       ld_shlibs_GCJ=no
24982       ;;
24983
24984     bsdi[45]*)
24985       export_dynamic_flag_spec_GCJ=-rdynamic
24986       ;;
24987
24988     cygwin* | mingw* | pw32*)
24989       # When not using gcc, we currently assume that we are using
24990       # Microsoft Visual C++.
24991       # hardcode_libdir_flag_spec is actually meaningless, as there is
24992       # no search path for DLLs.
24993       hardcode_libdir_flag_spec_GCJ=' '
24994       allow_undefined_flag_GCJ=unsupported
24995       # Tell ltmain to make .lib files, not .a files.
24996       libext=lib
24997       # Tell ltmain to make .dll files, not .so files.
24998       shrext_cmds=".dll"
24999       # FIXME: Setting linknames here is a bad hack.
25000       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25001       # The linker will automatically build a .lib file if we build a DLL.
25002       old_archive_From_new_cmds_GCJ='true'
25003       # FIXME: Should let the user specify the lib program.
25004       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25005       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25006       enable_shared_with_static_runtimes_GCJ=yes
25007       ;;
25008
25009     darwin* | rhapsody*)
25010       case $host_os in
25011         rhapsody* | darwin1.[012])
25012          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25013          ;;
25014        *) # Darwin 1.3 on
25015          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25016            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25017          else
25018            case ${MACOSX_DEPLOYMENT_TARGET} in
25019              10.[012])
25020                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25021                ;;
25022              10.*)
25023                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25024                ;;
25025            esac
25026          fi
25027          ;;
25028       esac
25029       archive_cmds_need_lc_GCJ=no
25030       hardcode_direct_GCJ=no
25031       hardcode_automatic_GCJ=yes
25032       hardcode_shlibpath_var_GCJ=unsupported
25033       whole_archive_flag_spec_GCJ=''
25034       link_all_deplibs_GCJ=yes
25035     if test "$GCC" = yes ; then
25036         output_verbose_link_cmd='echo'
25037         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25038       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25039       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25040       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25041       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}'
25042     else
25043       case $cc_basename in
25044         xlc*)
25045          output_verbose_link_cmd='echo'
25046          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25047          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25048           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25049          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25050           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}'
25051           ;;
25052        *)
25053          ld_shlibs_GCJ=no
25054           ;;
25055       esac
25056     fi
25057       ;;
25058
25059     dgux*)
25060       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25061       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25062       hardcode_shlibpath_var_GCJ=no
25063       ;;
25064
25065     freebsd1*)
25066       ld_shlibs_GCJ=no
25067       ;;
25068
25069     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25070     # support.  Future versions do this automatically, but an explicit c++rt0.o
25071     # does not break anything, and helps significantly (at the cost of a little
25072     # extra space).
25073     freebsd2.2*)
25074       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25075       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25076       hardcode_direct_GCJ=yes
25077       hardcode_shlibpath_var_GCJ=no
25078       ;;
25079
25080     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25081     freebsd2*)
25082       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25083       hardcode_direct_GCJ=yes
25084       hardcode_minus_L_GCJ=yes
25085       hardcode_shlibpath_var_GCJ=no
25086       ;;
25087
25088     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25089     freebsd* | kfreebsd*-gnu | dragonfly*)
25090       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25091       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25092       hardcode_direct_GCJ=yes
25093       hardcode_shlibpath_var_GCJ=no
25094       ;;
25095
25096     hpux9*)
25097       if test "$GCC" = yes; then
25098         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'
25099       else
25100         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'
25101       fi
25102       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25103       hardcode_libdir_separator_GCJ=:
25104       hardcode_direct_GCJ=yes
25105
25106       # hardcode_minus_L: Not really in the search PATH,
25107       # but as the default location of the library.
25108       hardcode_minus_L_GCJ=yes
25109       export_dynamic_flag_spec_GCJ='${wl}-E'
25110       ;;
25111
25112     hpux10*)
25113       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25114         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25115       else
25116         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25117       fi
25118       if test "$with_gnu_ld" = no; then
25119         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25120         hardcode_libdir_separator_GCJ=:
25121
25122         hardcode_direct_GCJ=yes
25123         export_dynamic_flag_spec_GCJ='${wl}-E'
25124
25125         # hardcode_minus_L: Not really in the search PATH,
25126         # but as the default location of the library.
25127         hardcode_minus_L_GCJ=yes
25128       fi
25129       ;;
25130
25131     hpux11*)
25132       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25133         case $host_cpu in
25134         hppa*64*)
25135           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25136           ;;
25137         ia64*)
25138           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25139           ;;
25140         *)
25141           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25142           ;;
25143         esac
25144       else
25145         case $host_cpu in
25146         hppa*64*)
25147           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25148           ;;
25149         ia64*)
25150           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25151           ;;
25152         *)
25153           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25154           ;;
25155         esac
25156       fi
25157       if test "$with_gnu_ld" = no; then
25158         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25159         hardcode_libdir_separator_GCJ=:
25160
25161         case $host_cpu in
25162         hppa*64*|ia64*)
25163           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25164           hardcode_direct_GCJ=no
25165           hardcode_shlibpath_var_GCJ=no
25166           ;;
25167         *)
25168           hardcode_direct_GCJ=yes
25169           export_dynamic_flag_spec_GCJ='${wl}-E'
25170
25171           # hardcode_minus_L: Not really in the search PATH,
25172           # but as the default location of the library.
25173           hardcode_minus_L_GCJ=yes
25174           ;;
25175         esac
25176       fi
25177       ;;
25178
25179     irix5* | irix6* | nonstopux*)
25180       if test "$GCC" = yes; then
25181         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'
25182       else
25183         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'
25184         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25185       fi
25186       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25187       hardcode_libdir_separator_GCJ=:
25188       link_all_deplibs_GCJ=yes
25189       ;;
25190
25191     netbsd*)
25192       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25193         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25194       else
25195         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25196       fi
25197       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25198       hardcode_direct_GCJ=yes
25199       hardcode_shlibpath_var_GCJ=no
25200       ;;
25201
25202     newsos6)
25203       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25204       hardcode_direct_GCJ=yes
25205       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25206       hardcode_libdir_separator_GCJ=:
25207       hardcode_shlibpath_var_GCJ=no
25208       ;;
25209
25210     openbsd*)
25211       hardcode_direct_GCJ=yes
25212       hardcode_shlibpath_var_GCJ=no
25213       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25214         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25215         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25216         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25217         export_dynamic_flag_spec_GCJ='${wl}-E'
25218       else
25219        case $host_os in
25220          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25221            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25222            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25223            ;;
25224          *)
25225            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25226            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25227            ;;
25228        esac
25229       fi
25230       ;;
25231
25232     os2*)
25233       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25234       hardcode_minus_L_GCJ=yes
25235       allow_undefined_flag_GCJ=unsupported
25236       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'
25237       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25238       ;;
25239
25240     osf3*)
25241       if test "$GCC" = yes; then
25242         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25243         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'
25244       else
25245         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25246         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'
25247       fi
25248       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25249       hardcode_libdir_separator_GCJ=:
25250       ;;
25251
25252     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25253       if test "$GCC" = yes; then
25254         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25255         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'
25256         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25257       else
25258         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25259         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'
25260         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~
25261         $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'
25262
25263         # Both c and cxx compiler support -rpath directly
25264         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25265       fi
25266       hardcode_libdir_separator_GCJ=:
25267       ;;
25268
25269     solaris*)
25270       no_undefined_flag_GCJ=' -z text'
25271       if test "$GCC" = yes; then
25272         wlarc='${wl}'
25273         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25274         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25275           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25276       else
25277         wlarc=''
25278         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25279         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25280         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25281       fi
25282       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25283       hardcode_shlibpath_var_GCJ=no
25284       case $host_os in
25285       solaris2.[0-5] | solaris2.[0-5].*) ;;
25286       *)
25287         # The compiler driver will combine linker options so we
25288         # cannot just pass the convience library names through
25289         # without $wl, iff we do not link with $LD.
25290         # Luckily, gcc supports the same syntax we need for Sun Studio.
25291         # Supported since Solaris 2.6 (maybe 2.5.1?)
25292         case $wlarc in
25293         '')
25294           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25295         *)
25296           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
25297         esac ;;
25298       esac
25299       link_all_deplibs_GCJ=yes
25300       ;;
25301
25302     sunos4*)
25303       if test "x$host_vendor" = xsequent; then
25304         # Use $CC to link under sequent, because it throws in some extra .o
25305         # files that make .init and .fini sections work.
25306         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25307       else
25308         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25309       fi
25310       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25311       hardcode_direct_GCJ=yes
25312       hardcode_minus_L_GCJ=yes
25313       hardcode_shlibpath_var_GCJ=no
25314       ;;
25315
25316     sysv4)
25317       case $host_vendor in
25318         sni)
25319           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25320           hardcode_direct_GCJ=yes # is this really true???
25321         ;;
25322         siemens)
25323           ## LD is ld it makes a PLAMLIB
25324           ## CC just makes a GrossModule.
25325           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25326           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25327           hardcode_direct_GCJ=no
25328         ;;
25329         motorola)
25330           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25331           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25332         ;;
25333       esac
25334       runpath_var='LD_RUN_PATH'
25335       hardcode_shlibpath_var_GCJ=no
25336       ;;
25337
25338     sysv4.3*)
25339       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25340       hardcode_shlibpath_var_GCJ=no
25341       export_dynamic_flag_spec_GCJ='-Bexport'
25342       ;;
25343
25344     sysv4*MP*)
25345       if test -d /usr/nec; then
25346         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25347         hardcode_shlibpath_var_GCJ=no
25348         runpath_var=LD_RUN_PATH
25349         hardcode_runpath_var=yes
25350         ld_shlibs_GCJ=yes
25351       fi
25352       ;;
25353
25354     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25355       no_undefined_flag_GCJ='${wl}-z,text'
25356       archive_cmds_need_lc_GCJ=no
25357       hardcode_shlibpath_var_GCJ=no
25358       runpath_var='LD_RUN_PATH'
25359
25360       if test "$GCC" = yes; then
25361         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25362         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25363       else
25364         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25365         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25366       fi
25367       ;;
25368
25369     sysv5* | sco3.2v5* | sco5v6*)
25370       # Note: We can NOT use -z defs as we might desire, because we do not
25371       # link with -lc, and that would cause any symbols used from libc to
25372       # always be unresolved, which means just about no library would
25373       # ever link correctly.  If we're not using GNU ld we use -z text
25374       # though, which does catch some bad symbols but isn't as heavy-handed
25375       # as -z defs.
25376       no_undefined_flag_GCJ='${wl}-z,text'
25377       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25378       archive_cmds_need_lc_GCJ=no
25379       hardcode_shlibpath_var_GCJ=no
25380       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25381       hardcode_libdir_separator_GCJ=':'
25382       link_all_deplibs_GCJ=yes
25383       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25384       runpath_var='LD_RUN_PATH'
25385
25386       if test "$GCC" = yes; then
25387         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25388         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25389       else
25390         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25391         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25392       fi
25393       ;;
25394
25395     uts4*)
25396       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25397       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25398       hardcode_shlibpath_var_GCJ=no
25399       ;;
25400
25401     *)
25402       ld_shlibs_GCJ=no
25403       ;;
25404     esac
25405   fi
25406
25407 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25408 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25409 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25410
25411 #
25412 # Do we need to explicitly link libc?
25413 #
25414 case "x$archive_cmds_need_lc_GCJ" in
25415 x|xyes)
25416   # Assume -lc should be added
25417   archive_cmds_need_lc_GCJ=yes
25418
25419   if test "$enable_shared" = yes && test "$GCC" = yes; then
25420     case $archive_cmds_GCJ in
25421     *'~'*)
25422       # FIXME: we may have to deal with multi-command sequences.
25423       ;;
25424     '$CC '*)
25425       # Test whether the compiler implicitly links with -lc since on some
25426       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25427       # to ld, don't add -lc before -lgcc.
25428       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25429 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25430       $rm conftest*
25431       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25432
25433       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25434   (eval $ac_compile) 2>&5
25435   ac_status=$?
25436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437   (exit $ac_status); } 2>conftest.err; then
25438         soname=conftest
25439         lib=conftest
25440         libobjs=conftest.$ac_objext
25441         deplibs=
25442         wl=$lt_prog_compiler_wl_GCJ
25443         pic_flag=$lt_prog_compiler_pic_GCJ
25444         compiler_flags=-v
25445         linker_flags=-v
25446         verstring=
25447         output_objdir=.
25448         libname=conftest
25449         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25450         allow_undefined_flag_GCJ=
25451         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25452   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25453   ac_status=$?
25454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455   (exit $ac_status); }
25456         then
25457           archive_cmds_need_lc_GCJ=no
25458         else
25459           archive_cmds_need_lc_GCJ=yes
25460         fi
25461         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25462       else
25463         cat conftest.err 1>&5
25464       fi
25465       $rm conftest*
25466       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25467 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25468       ;;
25469     esac
25470   fi
25471   ;;
25472 esac
25473
25474 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25475 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25476 library_names_spec=
25477 libname_spec='lib$name'
25478 soname_spec=
25479 shrext_cmds=".so"
25480 postinstall_cmds=
25481 postuninstall_cmds=
25482 finish_cmds=
25483 finish_eval=
25484 shlibpath_var=
25485 shlibpath_overrides_runpath=unknown
25486 version_type=none
25487 dynamic_linker="$host_os ld.so"
25488 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25489 if test "$GCC" = yes; then
25490   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25491   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25492     # if the path contains ";" then we assume it to be the separator
25493     # otherwise default to the standard path separator (i.e. ":") - it is
25494     # assumed that no part of a normal pathname contains ";" but that should
25495     # okay in the real world where ";" in dirpaths is itself problematic.
25496     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25497   else
25498     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25499   fi
25500 else
25501   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25502 fi
25503 need_lib_prefix=unknown
25504 hardcode_into_libs=no
25505
25506 # when you set need_version to no, make sure it does not cause -set_version
25507 # flags to be left without arguments
25508 need_version=unknown
25509
25510 case $host_os in
25511 aix3*)
25512   version_type=linux
25513   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25514   shlibpath_var=LIBPATH
25515
25516   # AIX 3 has no versioning support, so we append a major version to the name.
25517   soname_spec='${libname}${release}${shared_ext}$major'
25518   ;;
25519
25520 aix4* | aix5*)
25521   version_type=linux
25522   need_lib_prefix=no
25523   need_version=no
25524   hardcode_into_libs=yes
25525   if test "$host_cpu" = ia64; then
25526     # AIX 5 supports IA64
25527     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25528     shlibpath_var=LD_LIBRARY_PATH
25529   else
25530     # With GCC up to 2.95.x, collect2 would create an import file
25531     # for dependence libraries.  The import file would start with
25532     # the line `#! .'.  This would cause the generated library to
25533     # depend on `.', always an invalid library.  This was fixed in
25534     # development snapshots of GCC prior to 3.0.
25535     case $host_os in
25536       aix4 | aix4.[01] | aix4.[01].*)
25537       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25538            echo ' yes '
25539            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25540         :
25541       else
25542         can_build_shared=no
25543       fi
25544       ;;
25545     esac
25546     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25547     # soname into executable. Probably we can add versioning support to
25548     # collect2, so additional links can be useful in future.
25549     if test "$aix_use_runtimelinking" = yes; then
25550       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25551       # instead of lib<name>.a to let people know that these are not
25552       # typical AIX shared libraries.
25553       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25554     else
25555       # We preserve .a as extension for shared libraries through AIX4.2
25556       # and later when we are not doing run time linking.
25557       library_names_spec='${libname}${release}.a $libname.a'
25558       soname_spec='${libname}${release}${shared_ext}$major'
25559     fi
25560     shlibpath_var=LIBPATH
25561   fi
25562   ;;
25563
25564 amigaos*)
25565   library_names_spec='$libname.ixlibrary $libname.a'
25566   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25567   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'
25568   ;;
25569
25570 beos*)
25571   library_names_spec='${libname}${shared_ext}'
25572   dynamic_linker="$host_os ld.so"
25573   shlibpath_var=LIBRARY_PATH
25574   ;;
25575
25576 bsdi[45]*)
25577   version_type=linux
25578   need_version=no
25579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25580   soname_spec='${libname}${release}${shared_ext}$major'
25581   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25582   shlibpath_var=LD_LIBRARY_PATH
25583   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25584   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25585   # the default ld.so.conf also contains /usr/contrib/lib and
25586   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25587   # libtool to hard-code these into programs
25588   ;;
25589
25590 cygwin* | mingw* | pw32*)
25591   version_type=windows
25592   shrext_cmds=".dll"
25593   need_version=no
25594   need_lib_prefix=no
25595
25596   case $GCC,$host_os in
25597   yes,cygwin* | yes,mingw* | yes,pw32*)
25598     library_names_spec='$libname.dll.a'
25599     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25600     postinstall_cmds='base_file=`basename \${file}`~
25601       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25602       dldir=$destdir/`dirname \$dlpath`~
25603       test -d \$dldir || mkdir -p \$dldir~
25604       $install_prog $dir/$dlname \$dldir/$dlname~
25605       chmod a+x \$dldir/$dlname'
25606     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25607       dlpath=$dir/\$dldll~
25608        $rm \$dlpath'
25609     shlibpath_overrides_runpath=yes
25610
25611     case $host_os in
25612     cygwin*)
25613       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25614       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25615       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25616       ;;
25617     mingw*)
25618       # MinGW DLLs use traditional 'lib' prefix
25619       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25620       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25621       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25622         # It is most probably a Windows format PATH printed by
25623         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25624         # path with ; separators, and with drive letters. We can handle the
25625         # drive letters (cygwin fileutils understands them), so leave them,
25626         # especially as we might pass files found there to a mingw objdump,
25627         # which wouldn't understand a cygwinified path. Ahh.
25628         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25629       else
25630         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25631       fi
25632       ;;
25633     pw32*)
25634       # pw32 DLLs use 'pw' prefix rather than 'lib'
25635       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25636       ;;
25637     esac
25638     ;;
25639
25640   *)
25641     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25642     ;;
25643   esac
25644   dynamic_linker='Win32 ld.exe'
25645   # FIXME: first we should search . and the directory the executable is in
25646   shlibpath_var=PATH
25647   ;;
25648
25649 darwin* | rhapsody*)
25650   dynamic_linker="$host_os dyld"
25651   version_type=darwin
25652   need_lib_prefix=no
25653   need_version=no
25654   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25655   soname_spec='${libname}${release}${major}$shared_ext'
25656   shlibpath_overrides_runpath=yes
25657   shlibpath_var=DYLD_LIBRARY_PATH
25658   shrext_cmds='.dylib'
25659   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25660   if test "$GCC" = yes; then
25661     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
25662   else
25663     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25664   fi
25665   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25666   ;;
25667
25668 dgux*)
25669   version_type=linux
25670   need_lib_prefix=no
25671   need_version=no
25672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25673   soname_spec='${libname}${release}${shared_ext}$major'
25674   shlibpath_var=LD_LIBRARY_PATH
25675   ;;
25676
25677 freebsd1*)
25678   dynamic_linker=no
25679   ;;
25680
25681 kfreebsd*-gnu)
25682   version_type=linux
25683   need_lib_prefix=no
25684   need_version=no
25685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25686   soname_spec='${libname}${release}${shared_ext}$major'
25687   shlibpath_var=LD_LIBRARY_PATH
25688   shlibpath_overrides_runpath=no
25689   hardcode_into_libs=yes
25690   dynamic_linker='GNU ld.so'
25691   ;;
25692
25693 freebsd* | dragonfly*)
25694   # DragonFly does not have aout.  When/if they implement a new
25695   # versioning mechanism, adjust this.
25696   if test -x /usr/bin/objformat; then
25697     objformat=`/usr/bin/objformat`
25698   else
25699     case $host_os in
25700     freebsd[123]*) objformat=aout ;;
25701     *) objformat=elf ;;
25702     esac
25703   fi
25704   version_type=freebsd-$objformat
25705   case $version_type in
25706     freebsd-elf*)
25707       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25708       need_version=no
25709       need_lib_prefix=no
25710       ;;
25711     freebsd-*)
25712       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25713       need_version=yes
25714       ;;
25715   esac
25716   shlibpath_var=LD_LIBRARY_PATH
25717   case $host_os in
25718   freebsd2*)
25719     shlibpath_overrides_runpath=yes
25720     ;;
25721   freebsd3.[01]* | freebsdelf3.[01]*)
25722     shlibpath_overrides_runpath=yes
25723     hardcode_into_libs=yes
25724     ;;
25725   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25726   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25727     shlibpath_overrides_runpath=no
25728     hardcode_into_libs=yes
25729     ;;
25730   freebsd*) # from 4.6 on
25731     shlibpath_overrides_runpath=yes
25732     hardcode_into_libs=yes
25733     ;;
25734   esac
25735   ;;
25736
25737 gnu*)
25738   version_type=linux
25739   need_lib_prefix=no
25740   need_version=no
25741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25742   soname_spec='${libname}${release}${shared_ext}$major'
25743   shlibpath_var=LD_LIBRARY_PATH
25744   hardcode_into_libs=yes
25745   ;;
25746
25747 hpux9* | hpux10* | hpux11*)
25748   # Give a soname corresponding to the major version so that dld.sl refuses to
25749   # link against other versions.
25750   version_type=sunos
25751   need_lib_prefix=no
25752   need_version=no
25753   case $host_cpu in
25754   ia64*)
25755     shrext_cmds='.so'
25756     hardcode_into_libs=yes
25757     dynamic_linker="$host_os dld.so"
25758     shlibpath_var=LD_LIBRARY_PATH
25759     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25760     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25761     soname_spec='${libname}${release}${shared_ext}$major'
25762     if test "X$HPUX_IA64_MODE" = X32; then
25763       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25764     else
25765       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25766     fi
25767     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25768     ;;
25769    hppa*64*)
25770      shrext_cmds='.sl'
25771      hardcode_into_libs=yes
25772      dynamic_linker="$host_os dld.sl"
25773      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25774      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25775      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25776      soname_spec='${libname}${release}${shared_ext}$major'
25777      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25778      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25779      ;;
25780    *)
25781     shrext_cmds='.sl'
25782     dynamic_linker="$host_os dld.sl"
25783     shlibpath_var=SHLIB_PATH
25784     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25785     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25786     soname_spec='${libname}${release}${shared_ext}$major'
25787     ;;
25788   esac
25789   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25790   postinstall_cmds='chmod 555 $lib'
25791   ;;
25792
25793 interix3*)
25794   version_type=linux
25795   need_lib_prefix=no
25796   need_version=no
25797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25798   soname_spec='${libname}${release}${shared_ext}$major'
25799   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25800   shlibpath_var=LD_LIBRARY_PATH
25801   shlibpath_overrides_runpath=no
25802   hardcode_into_libs=yes
25803   ;;
25804
25805 irix5* | irix6* | nonstopux*)
25806   case $host_os in
25807     nonstopux*) version_type=nonstopux ;;
25808     *)
25809         if test "$lt_cv_prog_gnu_ld" = yes; then
25810                 version_type=linux
25811         else
25812                 version_type=irix
25813         fi ;;
25814   esac
25815   need_lib_prefix=no
25816   need_version=no
25817   soname_spec='${libname}${release}${shared_ext}$major'
25818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25819   case $host_os in
25820   irix5* | nonstopux*)
25821     libsuff= shlibsuff=
25822     ;;
25823   *)
25824     case $LD in # libtool.m4 will add one of these switches to LD
25825     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25826       libsuff= shlibsuff= libmagic=32-bit;;
25827     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25828       libsuff=32 shlibsuff=N32 libmagic=N32;;
25829     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25830       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25831     *) libsuff= shlibsuff= libmagic=never-match;;
25832     esac
25833     ;;
25834   esac
25835   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25836   shlibpath_overrides_runpath=no
25837   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25838   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25839   hardcode_into_libs=yes
25840   ;;
25841
25842 # No shared lib support for Linux oldld, aout, or coff.
25843 linux*oldld* | linux*aout* | linux*coff*)
25844   dynamic_linker=no
25845   ;;
25846
25847 # This must be Linux ELF.
25848 linux*)
25849   version_type=linux
25850   need_lib_prefix=no
25851   need_version=no
25852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25853   soname_spec='${libname}${release}${shared_ext}$major'
25854   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25855   shlibpath_var=LD_LIBRARY_PATH
25856   shlibpath_overrides_runpath=no
25857   # This implies no fast_install, which is unacceptable.
25858   # Some rework will be needed to allow for fast_install
25859   # before this can be enabled.
25860   hardcode_into_libs=yes
25861
25862   # Append ld.so.conf contents to the search path
25863   if test -f /etc/ld.so.conf; then
25864     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
25865     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25866   fi
25867
25868   # We used to test for /lib/ld.so.1 and disable shared libraries on
25869   # powerpc, because MkLinux only supported shared libraries with the
25870   # GNU dynamic linker.  Since this was broken with cross compilers,
25871   # most powerpc-linux boxes support dynamic linking these days and
25872   # people can always --disable-shared, the test was removed, and we
25873   # assume the GNU/Linux dynamic linker is in use.
25874   dynamic_linker='GNU/Linux ld.so'
25875   ;;
25876
25877 knetbsd*-gnu)
25878   version_type=linux
25879   need_lib_prefix=no
25880   need_version=no
25881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25882   soname_spec='${libname}${release}${shared_ext}$major'
25883   shlibpath_var=LD_LIBRARY_PATH
25884   shlibpath_overrides_runpath=no
25885   hardcode_into_libs=yes
25886   dynamic_linker='GNU ld.so'
25887   ;;
25888
25889 netbsd*)
25890   version_type=sunos
25891   need_lib_prefix=no
25892   need_version=no
25893   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25895     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25896     dynamic_linker='NetBSD (a.out) ld.so'
25897   else
25898     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25899     soname_spec='${libname}${release}${shared_ext}$major'
25900     dynamic_linker='NetBSD ld.elf_so'
25901   fi
25902   shlibpath_var=LD_LIBRARY_PATH
25903   shlibpath_overrides_runpath=yes
25904   hardcode_into_libs=yes
25905   ;;
25906
25907 newsos6)
25908   version_type=linux
25909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25910   shlibpath_var=LD_LIBRARY_PATH
25911   shlibpath_overrides_runpath=yes
25912   ;;
25913
25914 nto-qnx*)
25915   version_type=linux
25916   need_lib_prefix=no
25917   need_version=no
25918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25919   soname_spec='${libname}${release}${shared_ext}$major'
25920   shlibpath_var=LD_LIBRARY_PATH
25921   shlibpath_overrides_runpath=yes
25922   ;;
25923
25924 openbsd*)
25925   version_type=sunos
25926   sys_lib_dlsearch_path_spec="/usr/lib"
25927   need_lib_prefix=no
25928   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25929   case $host_os in
25930     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25931     *)                         need_version=no  ;;
25932   esac
25933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25934   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25935   shlibpath_var=LD_LIBRARY_PATH
25936   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25937     case $host_os in
25938       openbsd2.[89] | openbsd2.[89].*)
25939         shlibpath_overrides_runpath=no
25940         ;;
25941       *)
25942         shlibpath_overrides_runpath=yes
25943         ;;
25944       esac
25945   else
25946     shlibpath_overrides_runpath=yes
25947   fi
25948   ;;
25949
25950 os2*)
25951   libname_spec='$name'
25952   shrext_cmds=".dll"
25953   need_lib_prefix=no
25954   library_names_spec='$libname${shared_ext} $libname.a'
25955   dynamic_linker='OS/2 ld.exe'
25956   shlibpath_var=LIBPATH
25957   ;;
25958
25959 osf3* | osf4* | osf5*)
25960   version_type=osf
25961   need_lib_prefix=no
25962   need_version=no
25963   soname_spec='${libname}${release}${shared_ext}$major'
25964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25965   shlibpath_var=LD_LIBRARY_PATH
25966   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25967   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25968   ;;
25969
25970 solaris*)
25971   version_type=linux
25972   need_lib_prefix=no
25973   need_version=no
25974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25975   soname_spec='${libname}${release}${shared_ext}$major'
25976   shlibpath_var=LD_LIBRARY_PATH
25977   shlibpath_overrides_runpath=yes
25978   hardcode_into_libs=yes
25979   # ldd complains unless libraries are executable
25980   postinstall_cmds='chmod +x $lib'
25981   ;;
25982
25983 sunos4*)
25984   version_type=sunos
25985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25986   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25987   shlibpath_var=LD_LIBRARY_PATH
25988   shlibpath_overrides_runpath=yes
25989   if test "$with_gnu_ld" = yes; then
25990     need_lib_prefix=no
25991   fi
25992   need_version=yes
25993   ;;
25994
25995 sysv4 | sysv4.3*)
25996   version_type=linux
25997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25998   soname_spec='${libname}${release}${shared_ext}$major'
25999   shlibpath_var=LD_LIBRARY_PATH
26000   case $host_vendor in
26001     sni)
26002       shlibpath_overrides_runpath=no
26003       need_lib_prefix=no
26004       export_dynamic_flag_spec='${wl}-Blargedynsym'
26005       runpath_var=LD_RUN_PATH
26006       ;;
26007     siemens)
26008       need_lib_prefix=no
26009       ;;
26010     motorola)
26011       need_lib_prefix=no
26012       need_version=no
26013       shlibpath_overrides_runpath=no
26014       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26015       ;;
26016   esac
26017   ;;
26018
26019 sysv4*MP*)
26020   if test -d /usr/nec ;then
26021     version_type=linux
26022     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26023     soname_spec='$libname${shared_ext}.$major'
26024     shlibpath_var=LD_LIBRARY_PATH
26025   fi
26026   ;;
26027
26028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26029   version_type=freebsd-elf
26030   need_lib_prefix=no
26031   need_version=no
26032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26033   soname_spec='${libname}${release}${shared_ext}$major'
26034   shlibpath_var=LD_LIBRARY_PATH
26035   hardcode_into_libs=yes
26036   if test "$with_gnu_ld" = yes; then
26037     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26038     shlibpath_overrides_runpath=no
26039   else
26040     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26041     shlibpath_overrides_runpath=yes
26042     case $host_os in
26043       sco3.2v5*)
26044         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26045         ;;
26046     esac
26047   fi
26048   sys_lib_dlsearch_path_spec='/usr/lib'
26049   ;;
26050
26051 uts4*)
26052   version_type=linux
26053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26054   soname_spec='${libname}${release}${shared_ext}$major'
26055   shlibpath_var=LD_LIBRARY_PATH
26056   ;;
26057
26058 *)
26059   dynamic_linker=no
26060   ;;
26061 esac
26062 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26063 echo "${ECHO_T}$dynamic_linker" >&6; }
26064 test "$dynamic_linker" = no && can_build_shared=no
26065
26066 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26067 if test "$GCC" = yes; then
26068   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26069 fi
26070
26071 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26072 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26073 hardcode_action_GCJ=
26074 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26075    test -n "$runpath_var_GCJ" || \
26076    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26077
26078   # We can hardcode non-existant directories.
26079   if test "$hardcode_direct_GCJ" != no &&
26080      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26081      # have to relink, otherwise we might link with an installed library
26082      # when we should be linking with a yet-to-be-installed one
26083      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26084      test "$hardcode_minus_L_GCJ" != no; then
26085     # Linking always hardcodes the temporary library directory.
26086     hardcode_action_GCJ=relink
26087   else
26088     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26089     hardcode_action_GCJ=immediate
26090   fi
26091 else
26092   # We cannot hardcode anything, or else we can only hardcode existing
26093   # directories.
26094   hardcode_action_GCJ=unsupported
26095 fi
26096 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26097 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26098
26099 if test "$hardcode_action_GCJ" = relink; then
26100   # Fast installation is not supported
26101   enable_fast_install=no
26102 elif test "$shlibpath_overrides_runpath" = yes ||
26103      test "$enable_shared" = no; then
26104   # Fast installation is not necessary
26105   enable_fast_install=needless
26106 fi
26107
26108
26109 # The else clause should only fire when bootstrapping the
26110 # libtool distribution, otherwise you forgot to ship ltmain.sh
26111 # with your package, and you will get complaints that there are
26112 # no rules to generate ltmain.sh.
26113 if test -f "$ltmain"; then
26114   # See if we are running on zsh, and set the options which allow our commands through
26115   # without removal of \ escapes.
26116   if test -n "${ZSH_VERSION+set}" ; then
26117     setopt NO_GLOB_SUBST
26118   fi
26119   # Now quote all the things that may contain metacharacters while being
26120   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26121   # variables and quote the copies for generation of the libtool script.
26122   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26123     SED SHELL STRIP \
26124     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26125     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26126     deplibs_check_method reload_flag reload_cmds need_locks \
26127     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26128     lt_cv_sys_global_symbol_to_c_name_address \
26129     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26130     old_postinstall_cmds old_postuninstall_cmds \
26131     compiler_GCJ \
26132     CC_GCJ \
26133     LD_GCJ \
26134     lt_prog_compiler_wl_GCJ \
26135     lt_prog_compiler_pic_GCJ \
26136     lt_prog_compiler_static_GCJ \
26137     lt_prog_compiler_no_builtin_flag_GCJ \
26138     export_dynamic_flag_spec_GCJ \
26139     thread_safe_flag_spec_GCJ \
26140     whole_archive_flag_spec_GCJ \
26141     enable_shared_with_static_runtimes_GCJ \
26142     old_archive_cmds_GCJ \
26143     old_archive_from_new_cmds_GCJ \
26144     predep_objects_GCJ \
26145     postdep_objects_GCJ \
26146     predeps_GCJ \
26147     postdeps_GCJ \
26148     compiler_lib_search_path_GCJ \
26149     archive_cmds_GCJ \
26150     archive_expsym_cmds_GCJ \
26151     postinstall_cmds_GCJ \
26152     postuninstall_cmds_GCJ \
26153     old_archive_from_expsyms_cmds_GCJ \
26154     allow_undefined_flag_GCJ \
26155     no_undefined_flag_GCJ \
26156     export_symbols_cmds_GCJ \
26157     hardcode_libdir_flag_spec_GCJ \
26158     hardcode_libdir_flag_spec_ld_GCJ \
26159     hardcode_libdir_separator_GCJ \
26160     hardcode_automatic_GCJ \
26161     module_cmds_GCJ \
26162     module_expsym_cmds_GCJ \
26163     lt_cv_prog_compiler_c_o_GCJ \
26164     exclude_expsyms_GCJ \
26165     include_expsyms_GCJ; do
26166
26167     case $var in
26168     old_archive_cmds_GCJ | \
26169     old_archive_from_new_cmds_GCJ | \
26170     archive_cmds_GCJ | \
26171     archive_expsym_cmds_GCJ | \
26172     module_cmds_GCJ | \
26173     module_expsym_cmds_GCJ | \
26174     old_archive_from_expsyms_cmds_GCJ | \
26175     export_symbols_cmds_GCJ | \
26176     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26177     postinstall_cmds | postuninstall_cmds | \
26178     old_postinstall_cmds | old_postuninstall_cmds | \
26179     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26180       # Double-quote double-evaled strings.
26181       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26182       ;;
26183     *)
26184       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26185       ;;
26186     esac
26187   done
26188
26189   case $lt_echo in
26190   *'\$0 --fallback-echo"')
26191     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26192     ;;
26193   esac
26194
26195 cfgfile="$ofile"
26196
26197   cat <<__EOF__ >> "$cfgfile"
26198 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26199
26200 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26201
26202 # Shell to use when invoking shell scripts.
26203 SHELL=$lt_SHELL
26204
26205 # Whether or not to build shared libraries.
26206 build_libtool_libs=$enable_shared
26207
26208 # Whether or not to build static libraries.
26209 build_old_libs=$enable_static
26210
26211 # Whether or not to add -lc for building shared libraries.
26212 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26213
26214 # Whether or not to disallow shared libs when runtime libs are static
26215 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26216
26217 # Whether or not to optimize for fast installation.
26218 fast_install=$enable_fast_install
26219
26220 # The host system.
26221 host_alias=$host_alias
26222 host=$host
26223 host_os=$host_os
26224
26225 # The build system.
26226 build_alias=$build_alias
26227 build=$build
26228 build_os=$build_os
26229
26230 # An echo program that does not interpret backslashes.
26231 echo=$lt_echo
26232
26233 # The archiver.
26234 AR=$lt_AR
26235 AR_FLAGS=$lt_AR_FLAGS
26236
26237 # A C compiler.
26238 LTCC=$lt_LTCC
26239
26240 # LTCC compiler flags.
26241 LTCFLAGS=$lt_LTCFLAGS
26242
26243 # A language-specific compiler.
26244 CC=$lt_compiler_GCJ
26245
26246 # Is the compiler the GNU C compiler?
26247 with_gcc=$GCC_GCJ
26248
26249 # An ERE matcher.
26250 EGREP=$lt_EGREP
26251
26252 # The linker used to build libraries.
26253 LD=$lt_LD_GCJ
26254
26255 # Whether we need hard or soft links.
26256 LN_S=$lt_LN_S
26257
26258 # A BSD-compatible nm program.
26259 NM=$lt_NM
26260
26261 # A symbol stripping program
26262 STRIP=$lt_STRIP
26263
26264 # Used to examine libraries when file_magic_cmd begins "file"
26265 MAGIC_CMD=$MAGIC_CMD
26266
26267 # Used on cygwin: DLL creation program.
26268 DLLTOOL="$DLLTOOL"
26269
26270 # Used on cygwin: object dumper.
26271 OBJDUMP="$OBJDUMP"
26272
26273 # Used on cygwin: assembler.
26274 AS="$AS"
26275
26276 # The name of the directory that contains temporary libtool files.
26277 objdir=$objdir
26278
26279 # How to create reloadable object files.
26280 reload_flag=$lt_reload_flag
26281 reload_cmds=$lt_reload_cmds
26282
26283 # How to pass a linker flag through the compiler.
26284 wl=$lt_lt_prog_compiler_wl_GCJ
26285
26286 # Object file suffix (normally "o").
26287 objext="$ac_objext"
26288
26289 # Old archive suffix (normally "a").
26290 libext="$libext"
26291
26292 # Shared library suffix (normally ".so").
26293 shrext_cmds='$shrext_cmds'
26294
26295 # Executable file suffix (normally "").
26296 exeext="$exeext"
26297
26298 # Additional compiler flags for building library objects.
26299 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26300 pic_mode=$pic_mode
26301
26302 # What is the maximum length of a command?
26303 max_cmd_len=$lt_cv_sys_max_cmd_len
26304
26305 # Does compiler simultaneously support -c and -o options?
26306 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26307
26308 # Must we lock files when doing compilation?
26309 need_locks=$lt_need_locks
26310
26311 # Do we need the lib prefix for modules?
26312 need_lib_prefix=$need_lib_prefix
26313
26314 # Do we need a version for libraries?
26315 need_version=$need_version
26316
26317 # Whether dlopen is supported.
26318 dlopen_support=$enable_dlopen
26319
26320 # Whether dlopen of programs is supported.
26321 dlopen_self=$enable_dlopen_self
26322
26323 # Whether dlopen of statically linked programs is supported.
26324 dlopen_self_static=$enable_dlopen_self_static
26325
26326 # Compiler flag to prevent dynamic linking.
26327 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26328
26329 # Compiler flag to turn off builtin functions.
26330 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26331
26332 # Compiler flag to allow reflexive dlopens.
26333 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26334
26335 # Compiler flag to generate shared objects directly from archives.
26336 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26337
26338 # Compiler flag to generate thread-safe objects.
26339 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26340
26341 # Library versioning type.
26342 version_type=$version_type
26343
26344 # Format of library name prefix.
26345 libname_spec=$lt_libname_spec
26346
26347 # List of archive names.  First name is the real one, the rest are links.
26348 # The last name is the one that the linker finds with -lNAME.
26349 library_names_spec=$lt_library_names_spec
26350
26351 # The coded name of the library, if different from the real name.
26352 soname_spec=$lt_soname_spec
26353
26354 # Commands used to build and install an old-style archive.
26355 RANLIB=$lt_RANLIB
26356 old_archive_cmds=$lt_old_archive_cmds_GCJ
26357 old_postinstall_cmds=$lt_old_postinstall_cmds
26358 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26359
26360 # Create an old-style archive from a shared archive.
26361 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26362
26363 # Create a temporary old-style archive to link instead of a shared archive.
26364 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26365
26366 # Commands used to build and install a shared archive.
26367 archive_cmds=$lt_archive_cmds_GCJ
26368 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26369 postinstall_cmds=$lt_postinstall_cmds
26370 postuninstall_cmds=$lt_postuninstall_cmds
26371
26372 # Commands used to build a loadable module (assumed same as above if empty)
26373 module_cmds=$lt_module_cmds_GCJ
26374 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26375
26376 # Commands to strip libraries.
26377 old_striplib=$lt_old_striplib
26378 striplib=$lt_striplib
26379
26380 # Dependencies to place before the objects being linked to create a
26381 # shared library.
26382 predep_objects=$lt_predep_objects_GCJ
26383
26384 # Dependencies to place after the objects being linked to create a
26385 # shared library.
26386 postdep_objects=$lt_postdep_objects_GCJ
26387
26388 # Dependencies to place before the objects being linked to create a
26389 # shared library.
26390 predeps=$lt_predeps_GCJ
26391
26392 # Dependencies to place after the objects being linked to create a
26393 # shared library.
26394 postdeps=$lt_postdeps_GCJ
26395
26396 # The library search path used internally by the compiler when linking
26397 # a shared library.
26398 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26399
26400 # Method to check whether dependent libraries are shared objects.
26401 deplibs_check_method=$lt_deplibs_check_method
26402
26403 # Command to use when deplibs_check_method == file_magic.
26404 file_magic_cmd=$lt_file_magic_cmd
26405
26406 # Flag that allows shared libraries with undefined symbols to be built.
26407 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26408
26409 # Flag that forces no undefined symbols.
26410 no_undefined_flag=$lt_no_undefined_flag_GCJ
26411
26412 # Commands used to finish a libtool library installation in a directory.
26413 finish_cmds=$lt_finish_cmds
26414
26415 # Same as above, but a single script fragment to be evaled but not shown.
26416 finish_eval=$lt_finish_eval
26417
26418 # Take the output of nm and produce a listing of raw symbols and C names.
26419 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26420
26421 # Transform the output of nm in a proper C declaration
26422 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26423
26424 # Transform the output of nm in a C name address pair
26425 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26426
26427 # This is the shared library runtime path variable.
26428 runpath_var=$runpath_var
26429
26430 # This is the shared library path variable.
26431 shlibpath_var=$shlibpath_var
26432
26433 # Is shlibpath searched before the hard-coded library search path?
26434 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26435
26436 # How to hardcode a shared library path into an executable.
26437 hardcode_action=$hardcode_action_GCJ
26438
26439 # Whether we should hardcode library paths into libraries.
26440 hardcode_into_libs=$hardcode_into_libs
26441
26442 # Flag to hardcode \$libdir into a binary during linking.
26443 # This must work even if \$libdir does not exist.
26444 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26445
26446 # If ld is used when linking, flag to hardcode \$libdir into
26447 # a binary during linking. This must work even if \$libdir does
26448 # not exist.
26449 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26450
26451 # Whether we need a single -rpath flag with a separated argument.
26452 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26453
26454 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26455 # resulting binary.
26456 hardcode_direct=$hardcode_direct_GCJ
26457
26458 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26459 # resulting binary.
26460 hardcode_minus_L=$hardcode_minus_L_GCJ
26461
26462 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26463 # the resulting binary.
26464 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26465
26466 # Set to yes if building a shared library automatically hardcodes DIR into the library
26467 # and all subsequent libraries and executables linked against it.
26468 hardcode_automatic=$hardcode_automatic_GCJ
26469
26470 # Variables whose values should be saved in libtool wrapper scripts and
26471 # restored at relink time.
26472 variables_saved_for_relink="$variables_saved_for_relink"
26473
26474 # Whether libtool must link a program against all its dependency libraries.
26475 link_all_deplibs=$link_all_deplibs_GCJ
26476
26477 # Compile-time system search path for libraries
26478 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26479
26480 # Run-time system search path for libraries
26481 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26482
26483 # Fix the shell variable \$srcfile for the compiler.
26484 fix_srcfile_path="$fix_srcfile_path_GCJ"
26485
26486 # Set to yes if exported symbols are required.
26487 always_export_symbols=$always_export_symbols_GCJ
26488
26489 # The commands to list exported symbols.
26490 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26491
26492 # The commands to extract the exported symbol list from a shared archive.
26493 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26494
26495 # Symbols that should not be listed in the preloaded symbols.
26496 exclude_expsyms=$lt_exclude_expsyms_GCJ
26497
26498 # Symbols that must always be exported.
26499 include_expsyms=$lt_include_expsyms_GCJ
26500
26501 # ### END LIBTOOL TAG CONFIG: $tagname
26502
26503 __EOF__
26504
26505
26506 else
26507   # If there is no Makefile yet, we rely on a make rule to execute
26508   # `config.status --recheck' to rerun these tests and create the
26509   # libtool script then.
26510   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26511   if test -f "$ltmain_in"; then
26512     test -f Makefile && make "$ltmain"
26513   fi
26514 fi
26515
26516
26517 ac_ext=c
26518 ac_cpp='$CPP $CPPFLAGS'
26519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26522
26523 CC="$lt_save_CC"
26524
26525         else
26526           tagname=""
26527         fi
26528         ;;
26529
26530       RC)
26531         ac_ext=c
26532 ac_cpp='$CPP $CPPFLAGS'
26533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26536
26537
26538 # Source file extension for RC test sources.
26539 ac_ext=rc
26540
26541 # Object file extension for compiled RC test sources.
26542 objext=o
26543 objext_RC=$objext
26544
26545 # Code to be used in simple compile tests
26546 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26547
26548 # Code to be used in simple link tests
26549 lt_simple_link_test_code="$lt_simple_compile_test_code"
26550
26551 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26552
26553 # If no C compiler was specified, use CC.
26554 LTCC=${LTCC-"$CC"}
26555
26556 # If no C compiler flags were specified, use CFLAGS.
26557 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26558
26559 # Allow CC to be a program name with arguments.
26560 compiler=$CC
26561
26562
26563 # save warnings/boilerplate of simple test code
26564 ac_outfile=conftest.$ac_objext
26565 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26566 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26567 _lt_compiler_boilerplate=`cat conftest.err`
26568 $rm conftest*
26569
26570 ac_outfile=conftest.$ac_objext
26571 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26572 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26573 _lt_linker_boilerplate=`cat conftest.err`
26574 $rm conftest*
26575
26576
26577 # Allow CC to be a program name with arguments.
26578 lt_save_CC="$CC"
26579 CC=${RC-"windres"}
26580 compiler=$CC
26581 compiler_RC=$CC
26582 for cc_temp in $compiler""; do
26583   case $cc_temp in
26584     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26585     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26586     \-*) ;;
26587     *) break;;
26588   esac
26589 done
26590 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26591
26592 lt_cv_prog_compiler_c_o_RC=yes
26593
26594 # The else clause should only fire when bootstrapping the
26595 # libtool distribution, otherwise you forgot to ship ltmain.sh
26596 # with your package, and you will get complaints that there are
26597 # no rules to generate ltmain.sh.
26598 if test -f "$ltmain"; then
26599   # See if we are running on zsh, and set the options which allow our commands through
26600   # without removal of \ escapes.
26601   if test -n "${ZSH_VERSION+set}" ; then
26602     setopt NO_GLOB_SUBST
26603   fi
26604   # Now quote all the things that may contain metacharacters while being
26605   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26606   # variables and quote the copies for generation of the libtool script.
26607   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26608     SED SHELL STRIP \
26609     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26610     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26611     deplibs_check_method reload_flag reload_cmds need_locks \
26612     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26613     lt_cv_sys_global_symbol_to_c_name_address \
26614     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26615     old_postinstall_cmds old_postuninstall_cmds \
26616     compiler_RC \
26617     CC_RC \
26618     LD_RC \
26619     lt_prog_compiler_wl_RC \
26620     lt_prog_compiler_pic_RC \
26621     lt_prog_compiler_static_RC \
26622     lt_prog_compiler_no_builtin_flag_RC \
26623     export_dynamic_flag_spec_RC \
26624     thread_safe_flag_spec_RC \
26625     whole_archive_flag_spec_RC \
26626     enable_shared_with_static_runtimes_RC \
26627     old_archive_cmds_RC \
26628     old_archive_from_new_cmds_RC \
26629     predep_objects_RC \
26630     postdep_objects_RC \
26631     predeps_RC \
26632     postdeps_RC \
26633     compiler_lib_search_path_RC \
26634     archive_cmds_RC \
26635     archive_expsym_cmds_RC \
26636     postinstall_cmds_RC \
26637     postuninstall_cmds_RC \
26638     old_archive_from_expsyms_cmds_RC \
26639     allow_undefined_flag_RC \
26640     no_undefined_flag_RC \
26641     export_symbols_cmds_RC \
26642     hardcode_libdir_flag_spec_RC \
26643     hardcode_libdir_flag_spec_ld_RC \
26644     hardcode_libdir_separator_RC \
26645     hardcode_automatic_RC \
26646     module_cmds_RC \
26647     module_expsym_cmds_RC \
26648     lt_cv_prog_compiler_c_o_RC \
26649     exclude_expsyms_RC \
26650     include_expsyms_RC; do
26651
26652     case $var in
26653     old_archive_cmds_RC | \
26654     old_archive_from_new_cmds_RC | \
26655     archive_cmds_RC | \
26656     archive_expsym_cmds_RC | \
26657     module_cmds_RC | \
26658     module_expsym_cmds_RC | \
26659     old_archive_from_expsyms_cmds_RC | \
26660     export_symbols_cmds_RC | \
26661     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26662     postinstall_cmds | postuninstall_cmds | \
26663     old_postinstall_cmds | old_postuninstall_cmds | \
26664     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26665       # Double-quote double-evaled strings.
26666       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26667       ;;
26668     *)
26669       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26670       ;;
26671     esac
26672   done
26673
26674   case $lt_echo in
26675   *'\$0 --fallback-echo"')
26676     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26677     ;;
26678   esac
26679
26680 cfgfile="$ofile"
26681
26682   cat <<__EOF__ >> "$cfgfile"
26683 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26684
26685 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26686
26687 # Shell to use when invoking shell scripts.
26688 SHELL=$lt_SHELL
26689
26690 # Whether or not to build shared libraries.
26691 build_libtool_libs=$enable_shared
26692
26693 # Whether or not to build static libraries.
26694 build_old_libs=$enable_static
26695
26696 # Whether or not to add -lc for building shared libraries.
26697 build_libtool_need_lc=$archive_cmds_need_lc_RC
26698
26699 # Whether or not to disallow shared libs when runtime libs are static
26700 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26701
26702 # Whether or not to optimize for fast installation.
26703 fast_install=$enable_fast_install
26704
26705 # The host system.
26706 host_alias=$host_alias
26707 host=$host
26708 host_os=$host_os
26709
26710 # The build system.
26711 build_alias=$build_alias
26712 build=$build
26713 build_os=$build_os
26714
26715 # An echo program that does not interpret backslashes.
26716 echo=$lt_echo
26717
26718 # The archiver.
26719 AR=$lt_AR
26720 AR_FLAGS=$lt_AR_FLAGS
26721
26722 # A C compiler.
26723 LTCC=$lt_LTCC
26724
26725 # LTCC compiler flags.
26726 LTCFLAGS=$lt_LTCFLAGS
26727
26728 # A language-specific compiler.
26729 CC=$lt_compiler_RC
26730
26731 # Is the compiler the GNU C compiler?
26732 with_gcc=$GCC_RC
26733
26734 # An ERE matcher.
26735 EGREP=$lt_EGREP
26736
26737 # The linker used to build libraries.
26738 LD=$lt_LD_RC
26739
26740 # Whether we need hard or soft links.
26741 LN_S=$lt_LN_S
26742
26743 # A BSD-compatible nm program.
26744 NM=$lt_NM
26745
26746 # A symbol stripping program
26747 STRIP=$lt_STRIP
26748
26749 # Used to examine libraries when file_magic_cmd begins "file"
26750 MAGIC_CMD=$MAGIC_CMD
26751
26752 # Used on cygwin: DLL creation program.
26753 DLLTOOL="$DLLTOOL"
26754
26755 # Used on cygwin: object dumper.
26756 OBJDUMP="$OBJDUMP"
26757
26758 # Used on cygwin: assembler.
26759 AS="$AS"
26760
26761 # The name of the directory that contains temporary libtool files.
26762 objdir=$objdir
26763
26764 # How to create reloadable object files.
26765 reload_flag=$lt_reload_flag
26766 reload_cmds=$lt_reload_cmds
26767
26768 # How to pass a linker flag through the compiler.
26769 wl=$lt_lt_prog_compiler_wl_RC
26770
26771 # Object file suffix (normally "o").
26772 objext="$ac_objext"
26773
26774 # Old archive suffix (normally "a").
26775 libext="$libext"
26776
26777 # Shared library suffix (normally ".so").
26778 shrext_cmds='$shrext_cmds'
26779
26780 # Executable file suffix (normally "").
26781 exeext="$exeext"
26782
26783 # Additional compiler flags for building library objects.
26784 pic_flag=$lt_lt_prog_compiler_pic_RC
26785 pic_mode=$pic_mode
26786
26787 # What is the maximum length of a command?
26788 max_cmd_len=$lt_cv_sys_max_cmd_len
26789
26790 # Does compiler simultaneously support -c and -o options?
26791 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26792
26793 # Must we lock files when doing compilation?
26794 need_locks=$lt_need_locks
26795
26796 # Do we need the lib prefix for modules?
26797 need_lib_prefix=$need_lib_prefix
26798
26799 # Do we need a version for libraries?
26800 need_version=$need_version
26801
26802 # Whether dlopen is supported.
26803 dlopen_support=$enable_dlopen
26804
26805 # Whether dlopen of programs is supported.
26806 dlopen_self=$enable_dlopen_self
26807
26808 # Whether dlopen of statically linked programs is supported.
26809 dlopen_self_static=$enable_dlopen_self_static
26810
26811 # Compiler flag to prevent dynamic linking.
26812 link_static_flag=$lt_lt_prog_compiler_static_RC
26813
26814 # Compiler flag to turn off builtin functions.
26815 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26816
26817 # Compiler flag to allow reflexive dlopens.
26818 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26819
26820 # Compiler flag to generate shared objects directly from archives.
26821 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26822
26823 # Compiler flag to generate thread-safe objects.
26824 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26825
26826 # Library versioning type.
26827 version_type=$version_type
26828
26829 # Format of library name prefix.
26830 libname_spec=$lt_libname_spec
26831
26832 # List of archive names.  First name is the real one, the rest are links.
26833 # The last name is the one that the linker finds with -lNAME.
26834 library_names_spec=$lt_library_names_spec
26835
26836 # The coded name of the library, if different from the real name.
26837 soname_spec=$lt_soname_spec
26838
26839 # Commands used to build and install an old-style archive.
26840 RANLIB=$lt_RANLIB
26841 old_archive_cmds=$lt_old_archive_cmds_RC
26842 old_postinstall_cmds=$lt_old_postinstall_cmds
26843 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26844
26845 # Create an old-style archive from a shared archive.
26846 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26847
26848 # Create a temporary old-style archive to link instead of a shared archive.
26849 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26850
26851 # Commands used to build and install a shared archive.
26852 archive_cmds=$lt_archive_cmds_RC
26853 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26854 postinstall_cmds=$lt_postinstall_cmds
26855 postuninstall_cmds=$lt_postuninstall_cmds
26856
26857 # Commands used to build a loadable module (assumed same as above if empty)
26858 module_cmds=$lt_module_cmds_RC
26859 module_expsym_cmds=$lt_module_expsym_cmds_RC
26860
26861 # Commands to strip libraries.
26862 old_striplib=$lt_old_striplib
26863 striplib=$lt_striplib
26864
26865 # Dependencies to place before the objects being linked to create a
26866 # shared library.
26867 predep_objects=$lt_predep_objects_RC
26868
26869 # Dependencies to place after the objects being linked to create a
26870 # shared library.
26871 postdep_objects=$lt_postdep_objects_RC
26872
26873 # Dependencies to place before the objects being linked to create a
26874 # shared library.
26875 predeps=$lt_predeps_RC
26876
26877 # Dependencies to place after the objects being linked to create a
26878 # shared library.
26879 postdeps=$lt_postdeps_RC
26880
26881 # The library search path used internally by the compiler when linking
26882 # a shared library.
26883 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26884
26885 # Method to check whether dependent libraries are shared objects.
26886 deplibs_check_method=$lt_deplibs_check_method
26887
26888 # Command to use when deplibs_check_method == file_magic.
26889 file_magic_cmd=$lt_file_magic_cmd
26890
26891 # Flag that allows shared libraries with undefined symbols to be built.
26892 allow_undefined_flag=$lt_allow_undefined_flag_RC
26893
26894 # Flag that forces no undefined symbols.
26895 no_undefined_flag=$lt_no_undefined_flag_RC
26896
26897 # Commands used to finish a libtool library installation in a directory.
26898 finish_cmds=$lt_finish_cmds
26899
26900 # Same as above, but a single script fragment to be evaled but not shown.
26901 finish_eval=$lt_finish_eval
26902
26903 # Take the output of nm and produce a listing of raw symbols and C names.
26904 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26905
26906 # Transform the output of nm in a proper C declaration
26907 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26908
26909 # Transform the output of nm in a C name address pair
26910 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26911
26912 # This is the shared library runtime path variable.
26913 runpath_var=$runpath_var
26914
26915 # This is the shared library path variable.
26916 shlibpath_var=$shlibpath_var
26917
26918 # Is shlibpath searched before the hard-coded library search path?
26919 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26920
26921 # How to hardcode a shared library path into an executable.
26922 hardcode_action=$hardcode_action_RC
26923
26924 # Whether we should hardcode library paths into libraries.
26925 hardcode_into_libs=$hardcode_into_libs
26926
26927 # Flag to hardcode \$libdir into a binary during linking.
26928 # This must work even if \$libdir does not exist.
26929 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26930
26931 # If ld is used when linking, flag to hardcode \$libdir into
26932 # a binary during linking. This must work even if \$libdir does
26933 # not exist.
26934 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26935
26936 # Whether we need a single -rpath flag with a separated argument.
26937 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26938
26939 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26940 # resulting binary.
26941 hardcode_direct=$hardcode_direct_RC
26942
26943 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26944 # resulting binary.
26945 hardcode_minus_L=$hardcode_minus_L_RC
26946
26947 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26948 # the resulting binary.
26949 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26950
26951 # Set to yes if building a shared library automatically hardcodes DIR into the library
26952 # and all subsequent libraries and executables linked against it.
26953 hardcode_automatic=$hardcode_automatic_RC
26954
26955 # Variables whose values should be saved in libtool wrapper scripts and
26956 # restored at relink time.
26957 variables_saved_for_relink="$variables_saved_for_relink"
26958
26959 # Whether libtool must link a program against all its dependency libraries.
26960 link_all_deplibs=$link_all_deplibs_RC
26961
26962 # Compile-time system search path for libraries
26963 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26964
26965 # Run-time system search path for libraries
26966 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26967
26968 # Fix the shell variable \$srcfile for the compiler.
26969 fix_srcfile_path="$fix_srcfile_path_RC"
26970
26971 # Set to yes if exported symbols are required.
26972 always_export_symbols=$always_export_symbols_RC
26973
26974 # The commands to list exported symbols.
26975 export_symbols_cmds=$lt_export_symbols_cmds_RC
26976
26977 # The commands to extract the exported symbol list from a shared archive.
26978 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26979
26980 # Symbols that should not be listed in the preloaded symbols.
26981 exclude_expsyms=$lt_exclude_expsyms_RC
26982
26983 # Symbols that must always be exported.
26984 include_expsyms=$lt_include_expsyms_RC
26985
26986 # ### END LIBTOOL TAG CONFIG: $tagname
26987
26988 __EOF__
26989
26990
26991 else
26992   # If there is no Makefile yet, we rely on a make rule to execute
26993   # `config.status --recheck' to rerun these tests and create the
26994   # libtool script then.
26995   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26996   if test -f "$ltmain_in"; then
26997     test -f Makefile && make "$ltmain"
26998   fi
26999 fi
27000
27001
27002 ac_ext=c
27003 ac_cpp='$CPP $CPPFLAGS'
27004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27007
27008 CC="$lt_save_CC"
27009
27010         ;;
27011
27012       *)
27013         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27014 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27015    { (exit 1); exit 1; }; }
27016         ;;
27017       esac
27018
27019       # Append the new tag name to the list of available tags.
27020       if test -n "$tagname" ; then
27021       available_tags="$available_tags $tagname"
27022     fi
27023     fi
27024   done
27025   IFS="$lt_save_ifs"
27026
27027   # Now substitute the updated list of available tags.
27028   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27029     mv "${ofile}T" "$ofile"
27030     chmod +x "$ofile"
27031   else
27032     rm -f "${ofile}T"
27033     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27034 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27035    { (exit 1); exit 1; }; }
27036   fi
27037 fi
27038
27039
27040
27041 # This can be used to rebuild libtool when needed
27042 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27043
27044 # Always use our own libtool.
27045 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27046
27047 # Prevent multiple expansion
27048
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069 if test "$lt_cv_dlopen_self" = "yes" ; then
27070
27071 cat >>confdefs.h <<\_ACEOF
27072 #define CAN_DLOPEN_SELF 1
27073 _ACEOF
27074
27075 fi
27076
27077 if test "$WITH_LLVMGCCDIR" = "default" ; then
27078   LLVMGCC="llvm-gcc${EXEEXT}"
27079   LLVMGXX="llvm-g++${EXEEXT}"
27080   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27081 set dummy $LLVMGCC; ac_word=$2
27082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27084 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27085   echo $ECHO_N "(cached) $ECHO_C" >&6
27086 else
27087   case $LLVMGCC in
27088   [\\/]* | ?:[\\/]*)
27089   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27090   ;;
27091   *)
27092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27093 for as_dir in $PATH
27094 do
27095   IFS=$as_save_IFS
27096   test -z "$as_dir" && as_dir=.
27097   for ac_exec_ext in '' $ac_executable_extensions; do
27098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27099     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27101     break 2
27102   fi
27103 done
27104 done
27105 IFS=$as_save_IFS
27106
27107   ;;
27108 esac
27109 fi
27110 LLVMGCC=$ac_cv_path_LLVMGCC
27111 if test -n "$LLVMGCC"; then
27112   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27113 echo "${ECHO_T}$LLVMGCC" >&6; }
27114 else
27115   { echo "$as_me:$LINENO: result: no" >&5
27116 echo "${ECHO_T}no" >&6; }
27117 fi
27118
27119
27120   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27121 set dummy $LLVMGXX; ac_word=$2
27122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27124 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27125   echo $ECHO_N "(cached) $ECHO_C" >&6
27126 else
27127   case $LLVMGXX in
27128   [\\/]* | ?:[\\/]*)
27129   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27130   ;;
27131   *)
27132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27133 for as_dir in $PATH
27134 do
27135   IFS=$as_save_IFS
27136   test -z "$as_dir" && as_dir=.
27137   for ac_exec_ext in '' $ac_executable_extensions; do
27138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27139     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27141     break 2
27142   fi
27143 done
27144 done
27145 IFS=$as_save_IFS
27146
27147   ;;
27148 esac
27149 fi
27150 LLVMGXX=$ac_cv_path_LLVMGXX
27151 if test -n "$LLVMGXX"; then
27152   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27153 echo "${ECHO_T}$LLVMGXX" >&6; }
27154 else
27155   { echo "$as_me:$LINENO: result: no" >&5
27156 echo "${ECHO_T}no" >&6; }
27157 fi
27158
27159
27160 else
27161   if test -z "$LLVMGCC"; then
27162     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27163   fi
27164   if test -z "$LLVMGXX"; then
27165     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27166   fi
27167   LLVMGCC=$LLVMGCC
27168
27169   LLVMGXX=$LLVMGXX
27170
27171 fi
27172
27173 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27174 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27175
27176 ICC=no
27177 IXX=no
27178 case $CC in
27179   icc*|icpc*)
27180     ICC=yes
27181     IXX=yes
27182     ;;
27183    *)
27184     ;;
27185 esac
27186
27187 if test "$GCC" != "yes" && test "$ICC" != "yes"
27188 then
27189   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27190 echo "$as_me: error: gcc|icc required but not found" >&2;}
27191    { (exit 1); exit 1; }; }
27192 fi
27193
27194 if test "$GXX" != "yes" && test "$IXX" != "yes"
27195 then
27196   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27197 echo "$as_me: error: g++|icc required but not found" >&2;}
27198    { (exit 1); exit 1; }; }
27199 fi
27200
27201 if test "$GCC" = "yes"
27202 then
27203   cat >conftest.$ac_ext <<_ACEOF
27204 #if !defined(__GNUC__) || __GNUC__ < 3
27205 #error Unsupported GCC version
27206 #endif
27207
27208 _ACEOF
27209 rm -f conftest.$ac_objext
27210 if { (ac_try="$ac_compile"
27211 case "(($ac_try" in
27212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27213   *) ac_try_echo=$ac_try;;
27214 esac
27215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27216   (eval "$ac_compile") 2>conftest.er1
27217   ac_status=$?
27218   grep -v '^ *+' conftest.er1 >conftest.err
27219   rm -f conftest.er1
27220   cat conftest.err >&5
27221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222   (exit $ac_status); } &&
27223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27224   { (case "(($ac_try" in
27225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27226   *) ac_try_echo=$ac_try;;
27227 esac
27228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27229   (eval "$ac_try") 2>&5
27230   ac_status=$?
27231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232   (exit $ac_status); }; } &&
27233          { ac_try='test -s conftest.$ac_objext'
27234   { (case "(($ac_try" in
27235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27236   *) ac_try_echo=$ac_try;;
27237 esac
27238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27239   (eval "$ac_try") 2>&5
27240   ac_status=$?
27241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242   (exit $ac_status); }; }; then
27243   :
27244 else
27245   echo "$as_me: failed program was:" >&5
27246 sed 's/^/| /' conftest.$ac_ext >&5
27247
27248         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27249 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27250    { (exit 1); exit 1; }; }
27251 fi
27252
27253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27254 fi
27255
27256 if test -z "$llvm_cv_gnu_make_command"
27257 then
27258   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27259 echo "$as_me: error: GNU Make required but not found" >&2;}
27260    { (exit 1); exit 1; }; }
27261 fi
27262
27263 { echo "$as_me:$LINENO: result: ok" >&5
27264 echo "${ECHO_T}ok" >&6; }
27265
27266
27267
27268 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27269 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27270 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27271   echo $ECHO_N "(cached) $ECHO_C" >&6
27272 else
27273   ac_check_lib_save_LIBS=$LIBS
27274 LIBS="-lelf  $LIBS"
27275 cat >conftest.$ac_ext <<_ACEOF
27276 /* confdefs.h.  */
27277 _ACEOF
27278 cat confdefs.h >>conftest.$ac_ext
27279 cat >>conftest.$ac_ext <<_ACEOF
27280 /* end confdefs.h.  */
27281
27282 /* Override any GCC internal prototype to avoid an error.
27283    Use char because int might match the return type of a GCC
27284    builtin and then its argument prototype would still apply.  */
27285 #ifdef __cplusplus
27286 extern "C"
27287 #endif
27288 char elf_begin ();
27289 int
27290 main ()
27291 {
27292 return elf_begin ();
27293   ;
27294   return 0;
27295 }
27296 _ACEOF
27297 rm -f conftest.$ac_objext conftest$ac_exeext
27298 if { (ac_try="$ac_link"
27299 case "(($ac_try" in
27300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27301   *) ac_try_echo=$ac_try;;
27302 esac
27303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27304   (eval "$ac_link") 2>conftest.er1
27305   ac_status=$?
27306   grep -v '^ *+' conftest.er1 >conftest.err
27307   rm -f conftest.er1
27308   cat conftest.err >&5
27309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310   (exit $ac_status); } &&
27311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27312   { (case "(($ac_try" in
27313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27314   *) ac_try_echo=$ac_try;;
27315 esac
27316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27317   (eval "$ac_try") 2>&5
27318   ac_status=$?
27319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320   (exit $ac_status); }; } &&
27321          { ac_try='test -s conftest$ac_exeext'
27322   { (case "(($ac_try" in
27323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27324   *) ac_try_echo=$ac_try;;
27325 esac
27326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27327   (eval "$ac_try") 2>&5
27328   ac_status=$?
27329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330   (exit $ac_status); }; }; then
27331   ac_cv_lib_elf_elf_begin=yes
27332 else
27333   echo "$as_me: failed program was:" >&5
27334 sed 's/^/| /' conftest.$ac_ext >&5
27335
27336         ac_cv_lib_elf_elf_begin=no
27337 fi
27338
27339 rm -f core conftest.err conftest.$ac_objext \
27340       conftest$ac_exeext conftest.$ac_ext
27341 LIBS=$ac_check_lib_save_LIBS
27342 fi
27343 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27344 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27345 if test $ac_cv_lib_elf_elf_begin = yes; then
27346   cat >>confdefs.h <<_ACEOF
27347 #define HAVE_LIBELF 1
27348 _ACEOF
27349
27350   LIBS="-lelf $LIBS"
27351
27352 fi
27353
27354
27355 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27356 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27357 if test "${ac_cv_lib_m_sin+set}" = set; then
27358   echo $ECHO_N "(cached) $ECHO_C" >&6
27359 else
27360   ac_check_lib_save_LIBS=$LIBS
27361 LIBS="-lm  $LIBS"
27362 cat >conftest.$ac_ext <<_ACEOF
27363 /* confdefs.h.  */
27364 _ACEOF
27365 cat confdefs.h >>conftest.$ac_ext
27366 cat >>conftest.$ac_ext <<_ACEOF
27367 /* end confdefs.h.  */
27368
27369 /* Override any GCC internal prototype to avoid an error.
27370    Use char because int might match the return type of a GCC
27371    builtin and then its argument prototype would still apply.  */
27372 #ifdef __cplusplus
27373 extern "C"
27374 #endif
27375 char sin ();
27376 int
27377 main ()
27378 {
27379 return sin ();
27380   ;
27381   return 0;
27382 }
27383 _ACEOF
27384 rm -f conftest.$ac_objext conftest$ac_exeext
27385 if { (ac_try="$ac_link"
27386 case "(($ac_try" in
27387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27388   *) ac_try_echo=$ac_try;;
27389 esac
27390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27391   (eval "$ac_link") 2>conftest.er1
27392   ac_status=$?
27393   grep -v '^ *+' conftest.er1 >conftest.err
27394   rm -f conftest.er1
27395   cat conftest.err >&5
27396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397   (exit $ac_status); } &&
27398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27399   { (case "(($ac_try" in
27400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401   *) ac_try_echo=$ac_try;;
27402 esac
27403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27404   (eval "$ac_try") 2>&5
27405   ac_status=$?
27406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407   (exit $ac_status); }; } &&
27408          { ac_try='test -s conftest$ac_exeext'
27409   { (case "(($ac_try" in
27410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27411   *) ac_try_echo=$ac_try;;
27412 esac
27413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27414   (eval "$ac_try") 2>&5
27415   ac_status=$?
27416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417   (exit $ac_status); }; }; then
27418   ac_cv_lib_m_sin=yes
27419 else
27420   echo "$as_me: failed program was:" >&5
27421 sed 's/^/| /' conftest.$ac_ext >&5
27422
27423         ac_cv_lib_m_sin=no
27424 fi
27425
27426 rm -f core conftest.err conftest.$ac_objext \
27427       conftest$ac_exeext conftest.$ac_ext
27428 LIBS=$ac_check_lib_save_LIBS
27429 fi
27430 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27431 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27432 if test $ac_cv_lib_m_sin = yes; then
27433   cat >>confdefs.h <<_ACEOF
27434 #define HAVE_LIBM 1
27435 _ACEOF
27436
27437   LIBS="-lm $LIBS"
27438
27439 fi
27440
27441 if test "$llvm_cv_os_type" = "MingW" ; then
27442
27443 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27444 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27445 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27446   echo $ECHO_N "(cached) $ECHO_C" >&6
27447 else
27448   ac_check_lib_save_LIBS=$LIBS
27449 LIBS="-limagehlp  $LIBS"
27450 cat >conftest.$ac_ext <<_ACEOF
27451 /* confdefs.h.  */
27452 _ACEOF
27453 cat confdefs.h >>conftest.$ac_ext
27454 cat >>conftest.$ac_ext <<_ACEOF
27455 /* end confdefs.h.  */
27456
27457
27458 int
27459 main ()
27460 {
27461 return main ();
27462   ;
27463   return 0;
27464 }
27465 _ACEOF
27466 rm -f conftest.$ac_objext conftest$ac_exeext
27467 if { (ac_try="$ac_link"
27468 case "(($ac_try" in
27469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27470   *) ac_try_echo=$ac_try;;
27471 esac
27472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27473   (eval "$ac_link") 2>conftest.er1
27474   ac_status=$?
27475   grep -v '^ *+' conftest.er1 >conftest.err
27476   rm -f conftest.er1
27477   cat conftest.err >&5
27478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479   (exit $ac_status); } &&
27480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27481   { (case "(($ac_try" in
27482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483   *) ac_try_echo=$ac_try;;
27484 esac
27485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486   (eval "$ac_try") 2>&5
27487   ac_status=$?
27488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489   (exit $ac_status); }; } &&
27490          { ac_try='test -s conftest$ac_exeext'
27491   { (case "(($ac_try" in
27492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27493   *) ac_try_echo=$ac_try;;
27494 esac
27495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27496   (eval "$ac_try") 2>&5
27497   ac_status=$?
27498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499   (exit $ac_status); }; }; then
27500   ac_cv_lib_imagehlp_main=yes
27501 else
27502   echo "$as_me: failed program was:" >&5
27503 sed 's/^/| /' conftest.$ac_ext >&5
27504
27505         ac_cv_lib_imagehlp_main=no
27506 fi
27507
27508 rm -f core conftest.err conftest.$ac_objext \
27509       conftest$ac_exeext conftest.$ac_ext
27510 LIBS=$ac_check_lib_save_LIBS
27511 fi
27512 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27513 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27514 if test $ac_cv_lib_imagehlp_main = yes; then
27515   cat >>confdefs.h <<_ACEOF
27516 #define HAVE_LIBIMAGEHLP 1
27517 _ACEOF
27518
27519   LIBS="-limagehlp $LIBS"
27520
27521 fi
27522
27523
27524 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27525 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27526 if test "${ac_cv_lib_psapi_main+set}" = set; then
27527   echo $ECHO_N "(cached) $ECHO_C" >&6
27528 else
27529   ac_check_lib_save_LIBS=$LIBS
27530 LIBS="-lpsapi  $LIBS"
27531 cat >conftest.$ac_ext <<_ACEOF
27532 /* confdefs.h.  */
27533 _ACEOF
27534 cat confdefs.h >>conftest.$ac_ext
27535 cat >>conftest.$ac_ext <<_ACEOF
27536 /* end confdefs.h.  */
27537
27538
27539 int
27540 main ()
27541 {
27542 return main ();
27543   ;
27544   return 0;
27545 }
27546 _ACEOF
27547 rm -f conftest.$ac_objext conftest$ac_exeext
27548 if { (ac_try="$ac_link"
27549 case "(($ac_try" in
27550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27551   *) ac_try_echo=$ac_try;;
27552 esac
27553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27554   (eval "$ac_link") 2>conftest.er1
27555   ac_status=$?
27556   grep -v '^ *+' conftest.er1 >conftest.err
27557   rm -f conftest.er1
27558   cat conftest.err >&5
27559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27560   (exit $ac_status); } &&
27561          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27562   { (case "(($ac_try" in
27563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27564   *) ac_try_echo=$ac_try;;
27565 esac
27566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27567   (eval "$ac_try") 2>&5
27568   ac_status=$?
27569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570   (exit $ac_status); }; } &&
27571          { ac_try='test -s conftest$ac_exeext'
27572   { (case "(($ac_try" in
27573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27574   *) ac_try_echo=$ac_try;;
27575 esac
27576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27577   (eval "$ac_try") 2>&5
27578   ac_status=$?
27579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580   (exit $ac_status); }; }; then
27581   ac_cv_lib_psapi_main=yes
27582 else
27583   echo "$as_me: failed program was:" >&5
27584 sed 's/^/| /' conftest.$ac_ext >&5
27585
27586         ac_cv_lib_psapi_main=no
27587 fi
27588
27589 rm -f core conftest.err conftest.$ac_objext \
27590       conftest$ac_exeext conftest.$ac_ext
27591 LIBS=$ac_check_lib_save_LIBS
27592 fi
27593 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27594 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27595 if test $ac_cv_lib_psapi_main = yes; then
27596   cat >>confdefs.h <<_ACEOF
27597 #define HAVE_LIBPSAPI 1
27598 _ACEOF
27599
27600   LIBS="-lpsapi $LIBS"
27601
27602 fi
27603
27604 fi
27605
27606 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27607 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27608 if test "${ac_cv_search_dlopen+set}" = set; then
27609   echo $ECHO_N "(cached) $ECHO_C" >&6
27610 else
27611   ac_func_search_save_LIBS=$LIBS
27612 cat >conftest.$ac_ext <<_ACEOF
27613 /* confdefs.h.  */
27614 _ACEOF
27615 cat confdefs.h >>conftest.$ac_ext
27616 cat >>conftest.$ac_ext <<_ACEOF
27617 /* end confdefs.h.  */
27618
27619 /* Override any GCC internal prototype to avoid an error.
27620    Use char because int might match the return type of a GCC
27621    builtin and then its argument prototype would still apply.  */
27622 #ifdef __cplusplus
27623 extern "C"
27624 #endif
27625 char dlopen ();
27626 int
27627 main ()
27628 {
27629 return dlopen ();
27630   ;
27631   return 0;
27632 }
27633 _ACEOF
27634 for ac_lib in '' dl; do
27635   if test -z "$ac_lib"; then
27636     ac_res="none required"
27637   else
27638     ac_res=-l$ac_lib
27639     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27640   fi
27641   rm -f conftest.$ac_objext conftest$ac_exeext
27642 if { (ac_try="$ac_link"
27643 case "(($ac_try" in
27644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27645   *) ac_try_echo=$ac_try;;
27646 esac
27647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27648   (eval "$ac_link") 2>conftest.er1
27649   ac_status=$?
27650   grep -v '^ *+' conftest.er1 >conftest.err
27651   rm -f conftest.er1
27652   cat conftest.err >&5
27653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654   (exit $ac_status); } &&
27655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27656   { (case "(($ac_try" in
27657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27658   *) ac_try_echo=$ac_try;;
27659 esac
27660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27661   (eval "$ac_try") 2>&5
27662   ac_status=$?
27663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664   (exit $ac_status); }; } &&
27665          { ac_try='test -s conftest$ac_exeext'
27666   { (case "(($ac_try" in
27667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27668   *) ac_try_echo=$ac_try;;
27669 esac
27670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27671   (eval "$ac_try") 2>&5
27672   ac_status=$?
27673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674   (exit $ac_status); }; }; then
27675   ac_cv_search_dlopen=$ac_res
27676 else
27677   echo "$as_me: failed program was:" >&5
27678 sed 's/^/| /' conftest.$ac_ext >&5
27679
27680
27681 fi
27682
27683 rm -f core conftest.err conftest.$ac_objext \
27684       conftest$ac_exeext
27685   if test "${ac_cv_search_dlopen+set}" = set; then
27686   break
27687 fi
27688 done
27689 if test "${ac_cv_search_dlopen+set}" = set; then
27690   :
27691 else
27692   ac_cv_search_dlopen=no
27693 fi
27694 rm conftest.$ac_ext
27695 LIBS=$ac_func_search_save_LIBS
27696 fi
27697 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27698 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27699 ac_res=$ac_cv_search_dlopen
27700 if test "$ac_res" != no; then
27701   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27702
27703 cat >>confdefs.h <<\_ACEOF
27704 #define HAVE_DLOPEN 1
27705 _ACEOF
27706
27707 else
27708   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27709 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27710 fi
27711
27712
27713 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27714 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27715 if test "${ac_cv_search_mallinfo+set}" = set; then
27716   echo $ECHO_N "(cached) $ECHO_C" >&6
27717 else
27718   ac_func_search_save_LIBS=$LIBS
27719 cat >conftest.$ac_ext <<_ACEOF
27720 /* confdefs.h.  */
27721 _ACEOF
27722 cat confdefs.h >>conftest.$ac_ext
27723 cat >>conftest.$ac_ext <<_ACEOF
27724 /* end confdefs.h.  */
27725
27726 /* Override any GCC internal prototype to avoid an error.
27727    Use char because int might match the return type of a GCC
27728    builtin and then its argument prototype would still apply.  */
27729 #ifdef __cplusplus
27730 extern "C"
27731 #endif
27732 char mallinfo ();
27733 int
27734 main ()
27735 {
27736 return mallinfo ();
27737   ;
27738   return 0;
27739 }
27740 _ACEOF
27741 for ac_lib in '' malloc; do
27742   if test -z "$ac_lib"; then
27743     ac_res="none required"
27744   else
27745     ac_res=-l$ac_lib
27746     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27747   fi
27748   rm -f conftest.$ac_objext conftest$ac_exeext
27749 if { (ac_try="$ac_link"
27750 case "(($ac_try" in
27751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27752   *) ac_try_echo=$ac_try;;
27753 esac
27754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27755   (eval "$ac_link") 2>conftest.er1
27756   ac_status=$?
27757   grep -v '^ *+' conftest.er1 >conftest.err
27758   rm -f conftest.er1
27759   cat conftest.err >&5
27760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761   (exit $ac_status); } &&
27762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27763   { (case "(($ac_try" in
27764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27765   *) ac_try_echo=$ac_try;;
27766 esac
27767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27768   (eval "$ac_try") 2>&5
27769   ac_status=$?
27770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771   (exit $ac_status); }; } &&
27772          { ac_try='test -s conftest$ac_exeext'
27773   { (case "(($ac_try" in
27774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27775   *) ac_try_echo=$ac_try;;
27776 esac
27777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27778   (eval "$ac_try") 2>&5
27779   ac_status=$?
27780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781   (exit $ac_status); }; }; then
27782   ac_cv_search_mallinfo=$ac_res
27783 else
27784   echo "$as_me: failed program was:" >&5
27785 sed 's/^/| /' conftest.$ac_ext >&5
27786
27787
27788 fi
27789
27790 rm -f core conftest.err conftest.$ac_objext \
27791       conftest$ac_exeext
27792   if test "${ac_cv_search_mallinfo+set}" = set; then
27793   break
27794 fi
27795 done
27796 if test "${ac_cv_search_mallinfo+set}" = set; then
27797   :
27798 else
27799   ac_cv_search_mallinfo=no
27800 fi
27801 rm conftest.$ac_ext
27802 LIBS=$ac_func_search_save_LIBS
27803 fi
27804 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27805 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27806 ac_res=$ac_cv_search_mallinfo
27807 if test "$ac_res" != no; then
27808   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27809
27810 cat >>confdefs.h <<\_ACEOF
27811 #define HAVE_MALLINFO 1
27812 _ACEOF
27813
27814 fi
27815
27816
27817 if test "$ENABLE_THREADS" -eq 1 ; then
27818
27819 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27820 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27821 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27822   echo $ECHO_N "(cached) $ECHO_C" >&6
27823 else
27824   ac_check_lib_save_LIBS=$LIBS
27825 LIBS="-lpthread  $LIBS"
27826 cat >conftest.$ac_ext <<_ACEOF
27827 /* confdefs.h.  */
27828 _ACEOF
27829 cat confdefs.h >>conftest.$ac_ext
27830 cat >>conftest.$ac_ext <<_ACEOF
27831 /* end confdefs.h.  */
27832
27833 /* Override any GCC internal prototype to avoid an error.
27834    Use char because int might match the return type of a GCC
27835    builtin and then its argument prototype would still apply.  */
27836 #ifdef __cplusplus
27837 extern "C"
27838 #endif
27839 char pthread_mutex_init ();
27840 int
27841 main ()
27842 {
27843 return pthread_mutex_init ();
27844   ;
27845   return 0;
27846 }
27847 _ACEOF
27848 rm -f conftest.$ac_objext conftest$ac_exeext
27849 if { (ac_try="$ac_link"
27850 case "(($ac_try" in
27851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27852   *) ac_try_echo=$ac_try;;
27853 esac
27854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27855   (eval "$ac_link") 2>conftest.er1
27856   ac_status=$?
27857   grep -v '^ *+' conftest.er1 >conftest.err
27858   rm -f conftest.er1
27859   cat conftest.err >&5
27860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861   (exit $ac_status); } &&
27862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27863   { (case "(($ac_try" in
27864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27865   *) ac_try_echo=$ac_try;;
27866 esac
27867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27868   (eval "$ac_try") 2>&5
27869   ac_status=$?
27870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871   (exit $ac_status); }; } &&
27872          { ac_try='test -s conftest$ac_exeext'
27873   { (case "(($ac_try" in
27874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875   *) ac_try_echo=$ac_try;;
27876 esac
27877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878   (eval "$ac_try") 2>&5
27879   ac_status=$?
27880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881   (exit $ac_status); }; }; then
27882   ac_cv_lib_pthread_pthread_mutex_init=yes
27883 else
27884   echo "$as_me: failed program was:" >&5
27885 sed 's/^/| /' conftest.$ac_ext >&5
27886
27887         ac_cv_lib_pthread_pthread_mutex_init=no
27888 fi
27889
27890 rm -f core conftest.err conftest.$ac_objext \
27891       conftest$ac_exeext conftest.$ac_ext
27892 LIBS=$ac_check_lib_save_LIBS
27893 fi
27894 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27895 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27896 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27897   cat >>confdefs.h <<_ACEOF
27898 #define HAVE_LIBPTHREAD 1
27899 _ACEOF
27900
27901   LIBS="-lpthread $LIBS"
27902
27903 fi
27904
27905   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27906 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27907 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27908   echo $ECHO_N "(cached) $ECHO_C" >&6
27909 else
27910   ac_func_search_save_LIBS=$LIBS
27911 cat >conftest.$ac_ext <<_ACEOF
27912 /* confdefs.h.  */
27913 _ACEOF
27914 cat confdefs.h >>conftest.$ac_ext
27915 cat >>conftest.$ac_ext <<_ACEOF
27916 /* end confdefs.h.  */
27917
27918 /* Override any GCC internal prototype to avoid an error.
27919    Use char because int might match the return type of a GCC
27920    builtin and then its argument prototype would still apply.  */
27921 #ifdef __cplusplus
27922 extern "C"
27923 #endif
27924 char pthread_mutex_lock ();
27925 int
27926 main ()
27927 {
27928 return pthread_mutex_lock ();
27929   ;
27930   return 0;
27931 }
27932 _ACEOF
27933 for ac_lib in '' pthread; do
27934   if test -z "$ac_lib"; then
27935     ac_res="none required"
27936   else
27937     ac_res=-l$ac_lib
27938     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27939   fi
27940   rm -f conftest.$ac_objext conftest$ac_exeext
27941 if { (ac_try="$ac_link"
27942 case "(($ac_try" in
27943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27944   *) ac_try_echo=$ac_try;;
27945 esac
27946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27947   (eval "$ac_link") 2>conftest.er1
27948   ac_status=$?
27949   grep -v '^ *+' conftest.er1 >conftest.err
27950   rm -f conftest.er1
27951   cat conftest.err >&5
27952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953   (exit $ac_status); } &&
27954          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27955   { (case "(($ac_try" in
27956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27957   *) ac_try_echo=$ac_try;;
27958 esac
27959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27960   (eval "$ac_try") 2>&5
27961   ac_status=$?
27962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963   (exit $ac_status); }; } &&
27964          { ac_try='test -s conftest$ac_exeext'
27965   { (case "(($ac_try" in
27966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27967   *) ac_try_echo=$ac_try;;
27968 esac
27969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27970   (eval "$ac_try") 2>&5
27971   ac_status=$?
27972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973   (exit $ac_status); }; }; then
27974   ac_cv_search_pthread_mutex_lock=$ac_res
27975 else
27976   echo "$as_me: failed program was:" >&5
27977 sed 's/^/| /' conftest.$ac_ext >&5
27978
27979
27980 fi
27981
27982 rm -f core conftest.err conftest.$ac_objext \
27983       conftest$ac_exeext
27984   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27985   break
27986 fi
27987 done
27988 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27989   :
27990 else
27991   ac_cv_search_pthread_mutex_lock=no
27992 fi
27993 rm conftest.$ac_ext
27994 LIBS=$ac_func_search_save_LIBS
27995 fi
27996 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27997 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27998 ac_res=$ac_cv_search_pthread_mutex_lock
27999 if test "$ac_res" != no; then
28000   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28001
28002 cat >>confdefs.h <<\_ACEOF
28003 #define HAVE_PTHREAD_MUTEX_LOCK 1
28004 _ACEOF
28005
28006 fi
28007
28008 fi
28009
28010
28011 # Check whether --with-udis86 was given.
28012 if test "${with_udis86+set}" = set; then
28013   withval=$with_udis86;
28014       USE_UDIS86=1
28015
28016       case "$withval" in
28017         /usr/lib|yes) ;;
28018         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28019       esac
28020
28021 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28022 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28023 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28024   echo $ECHO_N "(cached) $ECHO_C" >&6
28025 else
28026   ac_check_lib_save_LIBS=$LIBS
28027 LIBS="-ludis86  $LIBS"
28028 cat >conftest.$ac_ext <<_ACEOF
28029 /* confdefs.h.  */
28030 _ACEOF
28031 cat confdefs.h >>conftest.$ac_ext
28032 cat >>conftest.$ac_ext <<_ACEOF
28033 /* end confdefs.h.  */
28034
28035 /* Override any GCC internal prototype to avoid an error.
28036    Use char because int might match the return type of a GCC
28037    builtin and then its argument prototype would still apply.  */
28038 #ifdef __cplusplus
28039 extern "C"
28040 #endif
28041 char ud_init ();
28042 int
28043 main ()
28044 {
28045 return ud_init ();
28046   ;
28047   return 0;
28048 }
28049 _ACEOF
28050 rm -f conftest.$ac_objext conftest$ac_exeext
28051 if { (ac_try="$ac_link"
28052 case "(($ac_try" in
28053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28054   *) ac_try_echo=$ac_try;;
28055 esac
28056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28057   (eval "$ac_link") 2>conftest.er1
28058   ac_status=$?
28059   grep -v '^ *+' conftest.er1 >conftest.err
28060   rm -f conftest.er1
28061   cat conftest.err >&5
28062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063   (exit $ac_status); } &&
28064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28065   { (case "(($ac_try" in
28066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067   *) ac_try_echo=$ac_try;;
28068 esac
28069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070   (eval "$ac_try") 2>&5
28071   ac_status=$?
28072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073   (exit $ac_status); }; } &&
28074          { ac_try='test -s conftest$ac_exeext'
28075   { (case "(($ac_try" in
28076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28077   *) ac_try_echo=$ac_try;;
28078 esac
28079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28080   (eval "$ac_try") 2>&5
28081   ac_status=$?
28082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083   (exit $ac_status); }; }; then
28084   ac_cv_lib_udis86_ud_init=yes
28085 else
28086   echo "$as_me: failed program was:" >&5
28087 sed 's/^/| /' conftest.$ac_ext >&5
28088
28089         ac_cv_lib_udis86_ud_init=no
28090 fi
28091
28092 rm -f core conftest.err conftest.$ac_objext \
28093       conftest$ac_exeext conftest.$ac_ext
28094 LIBS=$ac_check_lib_save_LIBS
28095 fi
28096 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28097 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28098 if test $ac_cv_lib_udis86_ud_init = yes; then
28099   cat >>confdefs.h <<_ACEOF
28100 #define HAVE_LIBUDIS86 1
28101 _ACEOF
28102
28103   LIBS="-ludis86 $LIBS"
28104
28105 else
28106
28107         echo "Error! You need to have libudis86 around."
28108         exit -1
28109
28110 fi
28111
28112
28113 else
28114   USE_UDIS86=0
28115
28116 fi
28117
28118
28119 cat >>confdefs.h <<_ACEOF
28120 #define USE_UDIS86 $USE_UDIS86
28121 _ACEOF
28122
28123
28124
28125
28126
28127
28128
28129
28130 ac_header_dirent=no
28131 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28132   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28133 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28134 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28136   echo $ECHO_N "(cached) $ECHO_C" >&6
28137 else
28138   cat >conftest.$ac_ext <<_ACEOF
28139 /* confdefs.h.  */
28140 _ACEOF
28141 cat confdefs.h >>conftest.$ac_ext
28142 cat >>conftest.$ac_ext <<_ACEOF
28143 /* end confdefs.h.  */
28144 #include <sys/types.h>
28145 #include <$ac_hdr>
28146
28147 int
28148 main ()
28149 {
28150 if ((DIR *) 0)
28151 return 0;
28152   ;
28153   return 0;
28154 }
28155 _ACEOF
28156 rm -f conftest.$ac_objext
28157 if { (ac_try="$ac_compile"
28158 case "(($ac_try" in
28159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28160   *) ac_try_echo=$ac_try;;
28161 esac
28162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28163   (eval "$ac_compile") 2>conftest.er1
28164   ac_status=$?
28165   grep -v '^ *+' conftest.er1 >conftest.err
28166   rm -f conftest.er1
28167   cat conftest.err >&5
28168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169   (exit $ac_status); } &&
28170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28171   { (case "(($ac_try" in
28172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173   *) ac_try_echo=$ac_try;;
28174 esac
28175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176   (eval "$ac_try") 2>&5
28177   ac_status=$?
28178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179   (exit $ac_status); }; } &&
28180          { ac_try='test -s conftest.$ac_objext'
28181   { (case "(($ac_try" in
28182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28183   *) ac_try_echo=$ac_try;;
28184 esac
28185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28186   (eval "$ac_try") 2>&5
28187   ac_status=$?
28188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189   (exit $ac_status); }; }; then
28190   eval "$as_ac_Header=yes"
28191 else
28192   echo "$as_me: failed program was:" >&5
28193 sed 's/^/| /' conftest.$ac_ext >&5
28194
28195         eval "$as_ac_Header=no"
28196 fi
28197
28198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28199 fi
28200 ac_res=`eval echo '${'$as_ac_Header'}'`
28201                { echo "$as_me:$LINENO: result: $ac_res" >&5
28202 echo "${ECHO_T}$ac_res" >&6; }
28203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28204   cat >>confdefs.h <<_ACEOF
28205 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28206 _ACEOF
28207
28208 ac_header_dirent=$ac_hdr; break
28209 fi
28210
28211 done
28212 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28213 if test $ac_header_dirent = dirent.h; then
28214   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28215 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28216 if test "${ac_cv_search_opendir+set}" = set; then
28217   echo $ECHO_N "(cached) $ECHO_C" >&6
28218 else
28219   ac_func_search_save_LIBS=$LIBS
28220 cat >conftest.$ac_ext <<_ACEOF
28221 /* confdefs.h.  */
28222 _ACEOF
28223 cat confdefs.h >>conftest.$ac_ext
28224 cat >>conftest.$ac_ext <<_ACEOF
28225 /* end confdefs.h.  */
28226
28227 /* Override any GCC internal prototype to avoid an error.
28228    Use char because int might match the return type of a GCC
28229    builtin and then its argument prototype would still apply.  */
28230 #ifdef __cplusplus
28231 extern "C"
28232 #endif
28233 char opendir ();
28234 int
28235 main ()
28236 {
28237 return opendir ();
28238   ;
28239   return 0;
28240 }
28241 _ACEOF
28242 for ac_lib in '' dir; do
28243   if test -z "$ac_lib"; then
28244     ac_res="none required"
28245   else
28246     ac_res=-l$ac_lib
28247     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28248   fi
28249   rm -f conftest.$ac_objext conftest$ac_exeext
28250 if { (ac_try="$ac_link"
28251 case "(($ac_try" in
28252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28253   *) ac_try_echo=$ac_try;;
28254 esac
28255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28256   (eval "$ac_link") 2>conftest.er1
28257   ac_status=$?
28258   grep -v '^ *+' conftest.er1 >conftest.err
28259   rm -f conftest.er1
28260   cat conftest.err >&5
28261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262   (exit $ac_status); } &&
28263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28264   { (case "(($ac_try" in
28265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28266   *) ac_try_echo=$ac_try;;
28267 esac
28268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28269   (eval "$ac_try") 2>&5
28270   ac_status=$?
28271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272   (exit $ac_status); }; } &&
28273          { ac_try='test -s conftest$ac_exeext'
28274   { (case "(($ac_try" in
28275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28276   *) ac_try_echo=$ac_try;;
28277 esac
28278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28279   (eval "$ac_try") 2>&5
28280   ac_status=$?
28281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282   (exit $ac_status); }; }; then
28283   ac_cv_search_opendir=$ac_res
28284 else
28285   echo "$as_me: failed program was:" >&5
28286 sed 's/^/| /' conftest.$ac_ext >&5
28287
28288
28289 fi
28290
28291 rm -f core conftest.err conftest.$ac_objext \
28292       conftest$ac_exeext
28293   if test "${ac_cv_search_opendir+set}" = set; then
28294   break
28295 fi
28296 done
28297 if test "${ac_cv_search_opendir+set}" = set; then
28298   :
28299 else
28300   ac_cv_search_opendir=no
28301 fi
28302 rm conftest.$ac_ext
28303 LIBS=$ac_func_search_save_LIBS
28304 fi
28305 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28306 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28307 ac_res=$ac_cv_search_opendir
28308 if test "$ac_res" != no; then
28309   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28310
28311 fi
28312
28313 else
28314   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28315 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28316 if test "${ac_cv_search_opendir+set}" = set; then
28317   echo $ECHO_N "(cached) $ECHO_C" >&6
28318 else
28319   ac_func_search_save_LIBS=$LIBS
28320 cat >conftest.$ac_ext <<_ACEOF
28321 /* confdefs.h.  */
28322 _ACEOF
28323 cat confdefs.h >>conftest.$ac_ext
28324 cat >>conftest.$ac_ext <<_ACEOF
28325 /* end confdefs.h.  */
28326
28327 /* Override any GCC internal prototype to avoid an error.
28328    Use char because int might match the return type of a GCC
28329    builtin and then its argument prototype would still apply.  */
28330 #ifdef __cplusplus
28331 extern "C"
28332 #endif
28333 char opendir ();
28334 int
28335 main ()
28336 {
28337 return opendir ();
28338   ;
28339   return 0;
28340 }
28341 _ACEOF
28342 for ac_lib in '' x; do
28343   if test -z "$ac_lib"; then
28344     ac_res="none required"
28345   else
28346     ac_res=-l$ac_lib
28347     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28348   fi
28349   rm -f conftest.$ac_objext conftest$ac_exeext
28350 if { (ac_try="$ac_link"
28351 case "(($ac_try" in
28352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353   *) ac_try_echo=$ac_try;;
28354 esac
28355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28356   (eval "$ac_link") 2>conftest.er1
28357   ac_status=$?
28358   grep -v '^ *+' conftest.er1 >conftest.err
28359   rm -f conftest.er1
28360   cat conftest.err >&5
28361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362   (exit $ac_status); } &&
28363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28364   { (case "(($ac_try" in
28365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28366   *) ac_try_echo=$ac_try;;
28367 esac
28368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28369   (eval "$ac_try") 2>&5
28370   ac_status=$?
28371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372   (exit $ac_status); }; } &&
28373          { ac_try='test -s conftest$ac_exeext'
28374   { (case "(($ac_try" in
28375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28376   *) ac_try_echo=$ac_try;;
28377 esac
28378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28379   (eval "$ac_try") 2>&5
28380   ac_status=$?
28381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382   (exit $ac_status); }; }; then
28383   ac_cv_search_opendir=$ac_res
28384 else
28385   echo "$as_me: failed program was:" >&5
28386 sed 's/^/| /' conftest.$ac_ext >&5
28387
28388
28389 fi
28390
28391 rm -f core conftest.err conftest.$ac_objext \
28392       conftest$ac_exeext
28393   if test "${ac_cv_search_opendir+set}" = set; then
28394   break
28395 fi
28396 done
28397 if test "${ac_cv_search_opendir+set}" = set; then
28398   :
28399 else
28400   ac_cv_search_opendir=no
28401 fi
28402 rm conftest.$ac_ext
28403 LIBS=$ac_func_search_save_LIBS
28404 fi
28405 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28406 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28407 ac_res=$ac_cv_search_opendir
28408 if test "$ac_res" != no; then
28409   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28410
28411 fi
28412
28413 fi
28414
28415 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28416 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28417 if test "${ac_cv_header_mmap_anon+set}" = set; then
28418   echo $ECHO_N "(cached) $ECHO_C" >&6
28419 else
28420    ac_ext=c
28421 ac_cpp='$CPP $CPPFLAGS'
28422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28425
28426   cat >conftest.$ac_ext <<_ACEOF
28427 /* confdefs.h.  */
28428 _ACEOF
28429 cat confdefs.h >>conftest.$ac_ext
28430 cat >>conftest.$ac_ext <<_ACEOF
28431 /* end confdefs.h.  */
28432 #include <sys/mman.h>
28433 #include <unistd.h>
28434 #include <fcntl.h>
28435 int
28436 main ()
28437 {
28438 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28439   ;
28440   return 0;
28441 }
28442 _ACEOF
28443 rm -f conftest.$ac_objext
28444 if { (ac_try="$ac_compile"
28445 case "(($ac_try" in
28446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28447   *) ac_try_echo=$ac_try;;
28448 esac
28449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28450   (eval "$ac_compile") 2>conftest.er1
28451   ac_status=$?
28452   grep -v '^ *+' conftest.er1 >conftest.err
28453   rm -f conftest.er1
28454   cat conftest.err >&5
28455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456   (exit $ac_status); } &&
28457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28458   { (case "(($ac_try" in
28459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28460   *) ac_try_echo=$ac_try;;
28461 esac
28462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28463   (eval "$ac_try") 2>&5
28464   ac_status=$?
28465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466   (exit $ac_status); }; } &&
28467          { ac_try='test -s conftest.$ac_objext'
28468   { (case "(($ac_try" in
28469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28470   *) ac_try_echo=$ac_try;;
28471 esac
28472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28473   (eval "$ac_try") 2>&5
28474   ac_status=$?
28475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476   (exit $ac_status); }; }; then
28477   ac_cv_header_mmap_anon=yes
28478 else
28479   echo "$as_me: failed program was:" >&5
28480 sed 's/^/| /' conftest.$ac_ext >&5
28481
28482         ac_cv_header_mmap_anon=no
28483 fi
28484
28485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28486   ac_ext=c
28487 ac_cpp='$CPP $CPPFLAGS'
28488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28491
28492
28493 fi
28494 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28495 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28496 if test "$ac_cv_header_mmap_anon" = yes; then
28497
28498 cat >>confdefs.h <<\_ACEOF
28499 #define HAVE_MMAP_ANONYMOUS 1
28500 _ACEOF
28501
28502 fi
28503
28504 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28505 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28506 if test "${ac_cv_header_stat_broken+set}" = set; then
28507   echo $ECHO_N "(cached) $ECHO_C" >&6
28508 else
28509   cat >conftest.$ac_ext <<_ACEOF
28510 /* confdefs.h.  */
28511 _ACEOF
28512 cat confdefs.h >>conftest.$ac_ext
28513 cat >>conftest.$ac_ext <<_ACEOF
28514 /* end confdefs.h.  */
28515 #include <sys/types.h>
28516 #include <sys/stat.h>
28517
28518 #if defined S_ISBLK && defined S_IFDIR
28519 # if S_ISBLK (S_IFDIR)
28520 You lose.
28521 # endif
28522 #endif
28523
28524 #if defined S_ISBLK && defined S_IFCHR
28525 # if S_ISBLK (S_IFCHR)
28526 You lose.
28527 # endif
28528 #endif
28529
28530 #if defined S_ISLNK && defined S_IFREG
28531 # if S_ISLNK (S_IFREG)
28532 You lose.
28533 # endif
28534 #endif
28535
28536 #if defined S_ISSOCK && defined S_IFREG
28537 # if S_ISSOCK (S_IFREG)
28538 You lose.
28539 # endif
28540 #endif
28541
28542 _ACEOF
28543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28544   $EGREP "You lose" >/dev/null 2>&1; then
28545   ac_cv_header_stat_broken=yes
28546 else
28547   ac_cv_header_stat_broken=no
28548 fi
28549 rm -f conftest*
28550
28551 fi
28552 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28553 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28554 if test $ac_cv_header_stat_broken = yes; then
28555
28556 cat >>confdefs.h <<\_ACEOF
28557 #define STAT_MACROS_BROKEN 1
28558 _ACEOF
28559
28560 fi
28561
28562 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28563 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28564 if test "${ac_cv_header_stdc+set}" = set; then
28565   echo $ECHO_N "(cached) $ECHO_C" >&6
28566 else
28567   cat >conftest.$ac_ext <<_ACEOF
28568 /* confdefs.h.  */
28569 _ACEOF
28570 cat confdefs.h >>conftest.$ac_ext
28571 cat >>conftest.$ac_ext <<_ACEOF
28572 /* end confdefs.h.  */
28573 #include <stdlib.h>
28574 #include <stdarg.h>
28575 #include <string.h>
28576 #include <float.h>
28577
28578 int
28579 main ()
28580 {
28581
28582   ;
28583   return 0;
28584 }
28585 _ACEOF
28586 rm -f conftest.$ac_objext
28587 if { (ac_try="$ac_compile"
28588 case "(($ac_try" in
28589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590   *) ac_try_echo=$ac_try;;
28591 esac
28592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593   (eval "$ac_compile") 2>conftest.er1
28594   ac_status=$?
28595   grep -v '^ *+' conftest.er1 >conftest.err
28596   rm -f conftest.er1
28597   cat conftest.err >&5
28598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599   (exit $ac_status); } &&
28600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28601   { (case "(($ac_try" in
28602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603   *) ac_try_echo=$ac_try;;
28604 esac
28605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606   (eval "$ac_try") 2>&5
28607   ac_status=$?
28608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609   (exit $ac_status); }; } &&
28610          { ac_try='test -s conftest.$ac_objext'
28611   { (case "(($ac_try" in
28612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28613   *) ac_try_echo=$ac_try;;
28614 esac
28615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28616   (eval "$ac_try") 2>&5
28617   ac_status=$?
28618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619   (exit $ac_status); }; }; then
28620   ac_cv_header_stdc=yes
28621 else
28622   echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28624
28625         ac_cv_header_stdc=no
28626 fi
28627
28628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28629
28630 if test $ac_cv_header_stdc = yes; then
28631   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28632   cat >conftest.$ac_ext <<_ACEOF
28633 /* confdefs.h.  */
28634 _ACEOF
28635 cat confdefs.h >>conftest.$ac_ext
28636 cat >>conftest.$ac_ext <<_ACEOF
28637 /* end confdefs.h.  */
28638 #include <string.h>
28639
28640 _ACEOF
28641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28642   $EGREP "memchr" >/dev/null 2>&1; then
28643   :
28644 else
28645   ac_cv_header_stdc=no
28646 fi
28647 rm -f conftest*
28648
28649 fi
28650
28651 if test $ac_cv_header_stdc = yes; then
28652   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28653   cat >conftest.$ac_ext <<_ACEOF
28654 /* confdefs.h.  */
28655 _ACEOF
28656 cat confdefs.h >>conftest.$ac_ext
28657 cat >>conftest.$ac_ext <<_ACEOF
28658 /* end confdefs.h.  */
28659 #include <stdlib.h>
28660
28661 _ACEOF
28662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28663   $EGREP "free" >/dev/null 2>&1; then
28664   :
28665 else
28666   ac_cv_header_stdc=no
28667 fi
28668 rm -f conftest*
28669
28670 fi
28671
28672 if test $ac_cv_header_stdc = yes; then
28673   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28674   if test "$cross_compiling" = yes; then
28675   :
28676 else
28677   cat >conftest.$ac_ext <<_ACEOF
28678 /* confdefs.h.  */
28679 _ACEOF
28680 cat confdefs.h >>conftest.$ac_ext
28681 cat >>conftest.$ac_ext <<_ACEOF
28682 /* end confdefs.h.  */
28683 #include <ctype.h>
28684 #include <stdlib.h>
28685 #if ((' ' & 0x0FF) == 0x020)
28686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28688 #else
28689 # define ISLOWER(c) \
28690                    (('a' <= (c) && (c) <= 'i') \
28691                      || ('j' <= (c) && (c) <= 'r') \
28692                      || ('s' <= (c) && (c) <= 'z'))
28693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28694 #endif
28695
28696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28697 int
28698 main ()
28699 {
28700   int i;
28701   for (i = 0; i < 256; i++)
28702     if (XOR (islower (i), ISLOWER (i))
28703         || toupper (i) != TOUPPER (i))
28704       return 2;
28705   return 0;
28706 }
28707 _ACEOF
28708 rm -f conftest$ac_exeext
28709 if { (ac_try="$ac_link"
28710 case "(($ac_try" in
28711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28712   *) ac_try_echo=$ac_try;;
28713 esac
28714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28715   (eval "$ac_link") 2>&5
28716   ac_status=$?
28717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28719   { (case "(($ac_try" in
28720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721   *) ac_try_echo=$ac_try;;
28722 esac
28723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724   (eval "$ac_try") 2>&5
28725   ac_status=$?
28726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727   (exit $ac_status); }; }; then
28728   :
28729 else
28730   echo "$as_me: program exited with status $ac_status" >&5
28731 echo "$as_me: failed program was:" >&5
28732 sed 's/^/| /' conftest.$ac_ext >&5
28733
28734 ( exit $ac_status )
28735 ac_cv_header_stdc=no
28736 fi
28737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28738 fi
28739
28740
28741 fi
28742 fi
28743 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28744 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28745 if test $ac_cv_header_stdc = yes; then
28746
28747 cat >>confdefs.h <<\_ACEOF
28748 #define STDC_HEADERS 1
28749 _ACEOF
28750
28751 fi
28752
28753 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28754 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28755 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28756   echo $ECHO_N "(cached) $ECHO_C" >&6
28757 else
28758   cat >conftest.$ac_ext <<_ACEOF
28759 /* confdefs.h.  */
28760 _ACEOF
28761 cat confdefs.h >>conftest.$ac_ext
28762 cat >>conftest.$ac_ext <<_ACEOF
28763 /* end confdefs.h.  */
28764 #include <sys/types.h>
28765 #include <sys/wait.h>
28766 #ifndef WEXITSTATUS
28767 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28768 #endif
28769 #ifndef WIFEXITED
28770 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28771 #endif
28772
28773 int
28774 main ()
28775 {
28776   int s;
28777   wait (&s);
28778   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28779   ;
28780   return 0;
28781 }
28782 _ACEOF
28783 rm -f conftest.$ac_objext
28784 if { (ac_try="$ac_compile"
28785 case "(($ac_try" in
28786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28787   *) ac_try_echo=$ac_try;;
28788 esac
28789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28790   (eval "$ac_compile") 2>conftest.er1
28791   ac_status=$?
28792   grep -v '^ *+' conftest.er1 >conftest.err
28793   rm -f conftest.er1
28794   cat conftest.err >&5
28795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796   (exit $ac_status); } &&
28797          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28798   { (case "(($ac_try" in
28799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28800   *) ac_try_echo=$ac_try;;
28801 esac
28802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28803   (eval "$ac_try") 2>&5
28804   ac_status=$?
28805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806   (exit $ac_status); }; } &&
28807          { ac_try='test -s conftest.$ac_objext'
28808   { (case "(($ac_try" in
28809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28810   *) ac_try_echo=$ac_try;;
28811 esac
28812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28813   (eval "$ac_try") 2>&5
28814   ac_status=$?
28815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816   (exit $ac_status); }; }; then
28817   ac_cv_header_sys_wait_h=yes
28818 else
28819   echo "$as_me: failed program was:" >&5
28820 sed 's/^/| /' conftest.$ac_ext >&5
28821
28822         ac_cv_header_sys_wait_h=no
28823 fi
28824
28825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28826 fi
28827 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28828 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28829 if test $ac_cv_header_sys_wait_h = yes; then
28830
28831 cat >>confdefs.h <<\_ACEOF
28832 #define HAVE_SYS_WAIT_H 1
28833 _ACEOF
28834
28835 fi
28836
28837 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28838 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28839 if test "${ac_cv_header_time+set}" = set; then
28840   echo $ECHO_N "(cached) $ECHO_C" >&6
28841 else
28842   cat >conftest.$ac_ext <<_ACEOF
28843 /* confdefs.h.  */
28844 _ACEOF
28845 cat confdefs.h >>conftest.$ac_ext
28846 cat >>conftest.$ac_ext <<_ACEOF
28847 /* end confdefs.h.  */
28848 #include <sys/types.h>
28849 #include <sys/time.h>
28850 #include <time.h>
28851
28852 int
28853 main ()
28854 {
28855 if ((struct tm *) 0)
28856 return 0;
28857   ;
28858   return 0;
28859 }
28860 _ACEOF
28861 rm -f conftest.$ac_objext
28862 if { (ac_try="$ac_compile"
28863 case "(($ac_try" in
28864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865   *) ac_try_echo=$ac_try;;
28866 esac
28867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28868   (eval "$ac_compile") 2>conftest.er1
28869   ac_status=$?
28870   grep -v '^ *+' conftest.er1 >conftest.err
28871   rm -f conftest.er1
28872   cat conftest.err >&5
28873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874   (exit $ac_status); } &&
28875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28876   { (case "(($ac_try" in
28877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28878   *) ac_try_echo=$ac_try;;
28879 esac
28880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28881   (eval "$ac_try") 2>&5
28882   ac_status=$?
28883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884   (exit $ac_status); }; } &&
28885          { ac_try='test -s conftest.$ac_objext'
28886   { (case "(($ac_try" in
28887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28888   *) ac_try_echo=$ac_try;;
28889 esac
28890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28891   (eval "$ac_try") 2>&5
28892   ac_status=$?
28893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894   (exit $ac_status); }; }; then
28895   ac_cv_header_time=yes
28896 else
28897   echo "$as_me: failed program was:" >&5
28898 sed 's/^/| /' conftest.$ac_ext >&5
28899
28900         ac_cv_header_time=no
28901 fi
28902
28903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28904 fi
28905 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28906 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28907 if test $ac_cv_header_time = yes; then
28908
28909 cat >>confdefs.h <<\_ACEOF
28910 #define TIME_WITH_SYS_TIME 1
28911 _ACEOF
28912
28913 fi
28914
28915
28916
28917
28918
28919
28920
28921
28922 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28923 do
28924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28926   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28929   echo $ECHO_N "(cached) $ECHO_C" >&6
28930 fi
28931 ac_res=`eval echo '${'$as_ac_Header'}'`
28932                { echo "$as_me:$LINENO: result: $ac_res" >&5
28933 echo "${ECHO_T}$ac_res" >&6; }
28934 else
28935   # Is the header compilable?
28936 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28938 cat >conftest.$ac_ext <<_ACEOF
28939 /* confdefs.h.  */
28940 _ACEOF
28941 cat confdefs.h >>conftest.$ac_ext
28942 cat >>conftest.$ac_ext <<_ACEOF
28943 /* end confdefs.h.  */
28944 $ac_includes_default
28945 #include <$ac_header>
28946 _ACEOF
28947 rm -f conftest.$ac_objext
28948 if { (ac_try="$ac_compile"
28949 case "(($ac_try" in
28950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28951   *) ac_try_echo=$ac_try;;
28952 esac
28953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28954   (eval "$ac_compile") 2>conftest.er1
28955   ac_status=$?
28956   grep -v '^ *+' conftest.er1 >conftest.err
28957   rm -f conftest.er1
28958   cat conftest.err >&5
28959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960   (exit $ac_status); } &&
28961          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28962   { (case "(($ac_try" in
28963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28964   *) ac_try_echo=$ac_try;;
28965 esac
28966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28967   (eval "$ac_try") 2>&5
28968   ac_status=$?
28969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970   (exit $ac_status); }; } &&
28971          { ac_try='test -s conftest.$ac_objext'
28972   { (case "(($ac_try" in
28973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974   *) ac_try_echo=$ac_try;;
28975 esac
28976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28977   (eval "$ac_try") 2>&5
28978   ac_status=$?
28979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980   (exit $ac_status); }; }; then
28981   ac_header_compiler=yes
28982 else
28983   echo "$as_me: failed program was:" >&5
28984 sed 's/^/| /' conftest.$ac_ext >&5
28985
28986         ac_header_compiler=no
28987 fi
28988
28989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28991 echo "${ECHO_T}$ac_header_compiler" >&6; }
28992
28993 # Is the header present?
28994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28996 cat >conftest.$ac_ext <<_ACEOF
28997 /* confdefs.h.  */
28998 _ACEOF
28999 cat confdefs.h >>conftest.$ac_ext
29000 cat >>conftest.$ac_ext <<_ACEOF
29001 /* end confdefs.h.  */
29002 #include <$ac_header>
29003 _ACEOF
29004 if { (ac_try="$ac_cpp conftest.$ac_ext"
29005 case "(($ac_try" in
29006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29007   *) ac_try_echo=$ac_try;;
29008 esac
29009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29011   ac_status=$?
29012   grep -v '^ *+' conftest.er1 >conftest.err
29013   rm -f conftest.er1
29014   cat conftest.err >&5
29015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016   (exit $ac_status); } >/dev/null; then
29017   if test -s conftest.err; then
29018     ac_cpp_err=$ac_c_preproc_warn_flag
29019     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29020   else
29021     ac_cpp_err=
29022   fi
29023 else
29024   ac_cpp_err=yes
29025 fi
29026 if test -z "$ac_cpp_err"; then
29027   ac_header_preproc=yes
29028 else
29029   echo "$as_me: failed program was:" >&5
29030 sed 's/^/| /' conftest.$ac_ext >&5
29031
29032   ac_header_preproc=no
29033 fi
29034
29035 rm -f conftest.err conftest.$ac_ext
29036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29037 echo "${ECHO_T}$ac_header_preproc" >&6; }
29038
29039 # So?  What about this header?
29040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29041   yes:no: )
29042     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29046     ac_header_preproc=yes
29047     ;;
29048   no:yes:* )
29049     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29051     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29052 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29053     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29055     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29056 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29059     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29061     ( cat <<\_ASBOX
29062 ## ----------------------------------- ##
29063 ## Report this to llvmbugs@cs.uiuc.edu ##
29064 ## ----------------------------------- ##
29065 _ASBOX
29066      ) | sed "s/^/$as_me: WARNING:     /" >&2
29067     ;;
29068 esac
29069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29072   echo $ECHO_N "(cached) $ECHO_C" >&6
29073 else
29074   eval "$as_ac_Header=\$ac_header_preproc"
29075 fi
29076 ac_res=`eval echo '${'$as_ac_Header'}'`
29077                { echo "$as_me:$LINENO: result: $ac_res" >&5
29078 echo "${ECHO_T}$ac_res" >&6; }
29079
29080 fi
29081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29082   cat >>confdefs.h <<_ACEOF
29083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29084 _ACEOF
29085
29086 fi
29087
29088 done
29089
29090
29091
29092
29093
29094
29095
29096 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
29097 do
29098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29100   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29103   echo $ECHO_N "(cached) $ECHO_C" >&6
29104 fi
29105 ac_res=`eval echo '${'$as_ac_Header'}'`
29106                { echo "$as_me:$LINENO: result: $ac_res" >&5
29107 echo "${ECHO_T}$ac_res" >&6; }
29108 else
29109   # Is the header compilable?
29110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29112 cat >conftest.$ac_ext <<_ACEOF
29113 /* confdefs.h.  */
29114 _ACEOF
29115 cat confdefs.h >>conftest.$ac_ext
29116 cat >>conftest.$ac_ext <<_ACEOF
29117 /* end confdefs.h.  */
29118 $ac_includes_default
29119 #include <$ac_header>
29120 _ACEOF
29121 rm -f conftest.$ac_objext
29122 if { (ac_try="$ac_compile"
29123 case "(($ac_try" in
29124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29125   *) ac_try_echo=$ac_try;;
29126 esac
29127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29128   (eval "$ac_compile") 2>conftest.er1
29129   ac_status=$?
29130   grep -v '^ *+' conftest.er1 >conftest.err
29131   rm -f conftest.er1
29132   cat conftest.err >&5
29133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134   (exit $ac_status); } &&
29135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29136   { (case "(($ac_try" in
29137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29138   *) ac_try_echo=$ac_try;;
29139 esac
29140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29141   (eval "$ac_try") 2>&5
29142   ac_status=$?
29143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144   (exit $ac_status); }; } &&
29145          { ac_try='test -s conftest.$ac_objext'
29146   { (case "(($ac_try" in
29147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29148   *) ac_try_echo=$ac_try;;
29149 esac
29150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29151   (eval "$ac_try") 2>&5
29152   ac_status=$?
29153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154   (exit $ac_status); }; }; then
29155   ac_header_compiler=yes
29156 else
29157   echo "$as_me: failed program was:" >&5
29158 sed 's/^/| /' conftest.$ac_ext >&5
29159
29160         ac_header_compiler=no
29161 fi
29162
29163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29165 echo "${ECHO_T}$ac_header_compiler" >&6; }
29166
29167 # Is the header present?
29168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29170 cat >conftest.$ac_ext <<_ACEOF
29171 /* confdefs.h.  */
29172 _ACEOF
29173 cat confdefs.h >>conftest.$ac_ext
29174 cat >>conftest.$ac_ext <<_ACEOF
29175 /* end confdefs.h.  */
29176 #include <$ac_header>
29177 _ACEOF
29178 if { (ac_try="$ac_cpp conftest.$ac_ext"
29179 case "(($ac_try" in
29180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29181   *) ac_try_echo=$ac_try;;
29182 esac
29183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29184   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29185   ac_status=$?
29186   grep -v '^ *+' conftest.er1 >conftest.err
29187   rm -f conftest.er1
29188   cat conftest.err >&5
29189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190   (exit $ac_status); } >/dev/null; then
29191   if test -s conftest.err; then
29192     ac_cpp_err=$ac_c_preproc_warn_flag
29193     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29194   else
29195     ac_cpp_err=
29196   fi
29197 else
29198   ac_cpp_err=yes
29199 fi
29200 if test -z "$ac_cpp_err"; then
29201   ac_header_preproc=yes
29202 else
29203   echo "$as_me: failed program was:" >&5
29204 sed 's/^/| /' conftest.$ac_ext >&5
29205
29206   ac_header_preproc=no
29207 fi
29208
29209 rm -f conftest.err conftest.$ac_ext
29210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29211 echo "${ECHO_T}$ac_header_preproc" >&6; }
29212
29213 # So?  What about this header?
29214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29215   yes:no: )
29216     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29220     ac_header_preproc=yes
29221     ;;
29222   no:yes:* )
29223     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29225     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29226 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29227     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29229     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29230 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29233     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29235     ( cat <<\_ASBOX
29236 ## ----------------------------------- ##
29237 ## Report this to llvmbugs@cs.uiuc.edu ##
29238 ## ----------------------------------- ##
29239 _ASBOX
29240      ) | sed "s/^/$as_me: WARNING:     /" >&2
29241     ;;
29242 esac
29243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29246   echo $ECHO_N "(cached) $ECHO_C" >&6
29247 else
29248   eval "$as_ac_Header=\$ac_header_preproc"
29249 fi
29250 ac_res=`eval echo '${'$as_ac_Header'}'`
29251                { echo "$as_me:$LINENO: result: $ac_res" >&5
29252 echo "${ECHO_T}$ac_res" >&6; }
29253
29254 fi
29255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29256   cat >>confdefs.h <<_ACEOF
29257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29258 _ACEOF
29259
29260 fi
29261
29262 done
29263
29264
29265 for ac_header in windows.h
29266 do
29267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29269   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29272   echo $ECHO_N "(cached) $ECHO_C" >&6
29273 fi
29274 ac_res=`eval echo '${'$as_ac_Header'}'`
29275                { echo "$as_me:$LINENO: result: $ac_res" >&5
29276 echo "${ECHO_T}$ac_res" >&6; }
29277 else
29278   # Is the header compilable?
29279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29281 cat >conftest.$ac_ext <<_ACEOF
29282 /* confdefs.h.  */
29283 _ACEOF
29284 cat confdefs.h >>conftest.$ac_ext
29285 cat >>conftest.$ac_ext <<_ACEOF
29286 /* end confdefs.h.  */
29287 $ac_includes_default
29288 #include <$ac_header>
29289 _ACEOF
29290 rm -f conftest.$ac_objext
29291 if { (ac_try="$ac_compile"
29292 case "(($ac_try" in
29293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29294   *) ac_try_echo=$ac_try;;
29295 esac
29296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29297   (eval "$ac_compile") 2>conftest.er1
29298   ac_status=$?
29299   grep -v '^ *+' conftest.er1 >conftest.err
29300   rm -f conftest.er1
29301   cat conftest.err >&5
29302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303   (exit $ac_status); } &&
29304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29305   { (case "(($ac_try" in
29306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29307   *) ac_try_echo=$ac_try;;
29308 esac
29309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29310   (eval "$ac_try") 2>&5
29311   ac_status=$?
29312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313   (exit $ac_status); }; } &&
29314          { ac_try='test -s conftest.$ac_objext'
29315   { (case "(($ac_try" in
29316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29317   *) ac_try_echo=$ac_try;;
29318 esac
29319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29320   (eval "$ac_try") 2>&5
29321   ac_status=$?
29322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323   (exit $ac_status); }; }; then
29324   ac_header_compiler=yes
29325 else
29326   echo "$as_me: failed program was:" >&5
29327 sed 's/^/| /' conftest.$ac_ext >&5
29328
29329         ac_header_compiler=no
29330 fi
29331
29332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29334 echo "${ECHO_T}$ac_header_compiler" >&6; }
29335
29336 # Is the header present?
29337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29339 cat >conftest.$ac_ext <<_ACEOF
29340 /* confdefs.h.  */
29341 _ACEOF
29342 cat confdefs.h >>conftest.$ac_ext
29343 cat >>conftest.$ac_ext <<_ACEOF
29344 /* end confdefs.h.  */
29345 #include <$ac_header>
29346 _ACEOF
29347 if { (ac_try="$ac_cpp conftest.$ac_ext"
29348 case "(($ac_try" in
29349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29350   *) ac_try_echo=$ac_try;;
29351 esac
29352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29353   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29354   ac_status=$?
29355   grep -v '^ *+' conftest.er1 >conftest.err
29356   rm -f conftest.er1
29357   cat conftest.err >&5
29358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359   (exit $ac_status); } >/dev/null; then
29360   if test -s conftest.err; then
29361     ac_cpp_err=$ac_c_preproc_warn_flag
29362     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29363   else
29364     ac_cpp_err=
29365   fi
29366 else
29367   ac_cpp_err=yes
29368 fi
29369 if test -z "$ac_cpp_err"; then
29370   ac_header_preproc=yes
29371 else
29372   echo "$as_me: failed program was:" >&5
29373 sed 's/^/| /' conftest.$ac_ext >&5
29374
29375   ac_header_preproc=no
29376 fi
29377
29378 rm -f conftest.err conftest.$ac_ext
29379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29380 echo "${ECHO_T}$ac_header_preproc" >&6; }
29381
29382 # So?  What about this header?
29383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29384   yes:no: )
29385     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29389     ac_header_preproc=yes
29390     ;;
29391   no:yes:* )
29392     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29394     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29395 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29396     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29398     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29399 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29402     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29404     ( cat <<\_ASBOX
29405 ## ----------------------------------- ##
29406 ## Report this to llvmbugs@cs.uiuc.edu ##
29407 ## ----------------------------------- ##
29408 _ASBOX
29409      ) | sed "s/^/$as_me: WARNING:     /" >&2
29410     ;;
29411 esac
29412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29415   echo $ECHO_N "(cached) $ECHO_C" >&6
29416 else
29417   eval "$as_ac_Header=\$ac_header_preproc"
29418 fi
29419 ac_res=`eval echo '${'$as_ac_Header'}'`
29420                { echo "$as_me:$LINENO: result: $ac_res" >&5
29421 echo "${ECHO_T}$ac_res" >&6; }
29422
29423 fi
29424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29425   cat >>confdefs.h <<_ACEOF
29426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29427 _ACEOF
29428
29429 fi
29430
29431 done
29432
29433
29434
29435
29436
29437 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29438 do
29439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29441   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29444   echo $ECHO_N "(cached) $ECHO_C" >&6
29445 fi
29446 ac_res=`eval echo '${'$as_ac_Header'}'`
29447                { echo "$as_me:$LINENO: result: $ac_res" >&5
29448 echo "${ECHO_T}$ac_res" >&6; }
29449 else
29450   # Is the header compilable?
29451 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29453 cat >conftest.$ac_ext <<_ACEOF
29454 /* confdefs.h.  */
29455 _ACEOF
29456 cat confdefs.h >>conftest.$ac_ext
29457 cat >>conftest.$ac_ext <<_ACEOF
29458 /* end confdefs.h.  */
29459 $ac_includes_default
29460 #include <$ac_header>
29461 _ACEOF
29462 rm -f conftest.$ac_objext
29463 if { (ac_try="$ac_compile"
29464 case "(($ac_try" in
29465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29466   *) ac_try_echo=$ac_try;;
29467 esac
29468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29469   (eval "$ac_compile") 2>conftest.er1
29470   ac_status=$?
29471   grep -v '^ *+' conftest.er1 >conftest.err
29472   rm -f conftest.er1
29473   cat conftest.err >&5
29474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475   (exit $ac_status); } &&
29476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29477   { (case "(($ac_try" in
29478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29479   *) ac_try_echo=$ac_try;;
29480 esac
29481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29482   (eval "$ac_try") 2>&5
29483   ac_status=$?
29484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485   (exit $ac_status); }; } &&
29486          { ac_try='test -s conftest.$ac_objext'
29487   { (case "(($ac_try" in
29488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29489   *) ac_try_echo=$ac_try;;
29490 esac
29491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29492   (eval "$ac_try") 2>&5
29493   ac_status=$?
29494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495   (exit $ac_status); }; }; then
29496   ac_header_compiler=yes
29497 else
29498   echo "$as_me: failed program was:" >&5
29499 sed 's/^/| /' conftest.$ac_ext >&5
29500
29501         ac_header_compiler=no
29502 fi
29503
29504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29506 echo "${ECHO_T}$ac_header_compiler" >&6; }
29507
29508 # Is the header present?
29509 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29511 cat >conftest.$ac_ext <<_ACEOF
29512 /* confdefs.h.  */
29513 _ACEOF
29514 cat confdefs.h >>conftest.$ac_ext
29515 cat >>conftest.$ac_ext <<_ACEOF
29516 /* end confdefs.h.  */
29517 #include <$ac_header>
29518 _ACEOF
29519 if { (ac_try="$ac_cpp conftest.$ac_ext"
29520 case "(($ac_try" in
29521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29522   *) ac_try_echo=$ac_try;;
29523 esac
29524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29525   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29526   ac_status=$?
29527   grep -v '^ *+' conftest.er1 >conftest.err
29528   rm -f conftest.er1
29529   cat conftest.err >&5
29530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29531   (exit $ac_status); } >/dev/null; then
29532   if test -s conftest.err; then
29533     ac_cpp_err=$ac_c_preproc_warn_flag
29534     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29535   else
29536     ac_cpp_err=
29537   fi
29538 else
29539   ac_cpp_err=yes
29540 fi
29541 if test -z "$ac_cpp_err"; then
29542   ac_header_preproc=yes
29543 else
29544   echo "$as_me: failed program was:" >&5
29545 sed 's/^/| /' conftest.$ac_ext >&5
29546
29547   ac_header_preproc=no
29548 fi
29549
29550 rm -f conftest.err conftest.$ac_ext
29551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29552 echo "${ECHO_T}$ac_header_preproc" >&6; }
29553
29554 # So?  What about this header?
29555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29556   yes:no: )
29557     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29561     ac_header_preproc=yes
29562     ;;
29563   no:yes:* )
29564     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29566     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29567 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29568     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29570     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29571 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29574     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29576     ( cat <<\_ASBOX
29577 ## ----------------------------------- ##
29578 ## Report this to llvmbugs@cs.uiuc.edu ##
29579 ## ----------------------------------- ##
29580 _ASBOX
29581      ) | sed "s/^/$as_me: WARNING:     /" >&2
29582     ;;
29583 esac
29584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29587   echo $ECHO_N "(cached) $ECHO_C" >&6
29588 else
29589   eval "$as_ac_Header=\$ac_header_preproc"
29590 fi
29591 ac_res=`eval echo '${'$as_ac_Header'}'`
29592                { echo "$as_me:$LINENO: result: $ac_res" >&5
29593 echo "${ECHO_T}$ac_res" >&6; }
29594
29595 fi
29596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29597   cat >>confdefs.h <<_ACEOF
29598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29599 _ACEOF
29600
29601 fi
29602
29603 done
29604
29605
29606
29607
29608 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29609 do
29610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29612   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29615   echo $ECHO_N "(cached) $ECHO_C" >&6
29616 fi
29617 ac_res=`eval echo '${'$as_ac_Header'}'`
29618                { echo "$as_me:$LINENO: result: $ac_res" >&5
29619 echo "${ECHO_T}$ac_res" >&6; }
29620 else
29621   # Is the header compilable?
29622 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29624 cat >conftest.$ac_ext <<_ACEOF
29625 /* confdefs.h.  */
29626 _ACEOF
29627 cat confdefs.h >>conftest.$ac_ext
29628 cat >>conftest.$ac_ext <<_ACEOF
29629 /* end confdefs.h.  */
29630 $ac_includes_default
29631 #include <$ac_header>
29632 _ACEOF
29633 rm -f conftest.$ac_objext
29634 if { (ac_try="$ac_compile"
29635 case "(($ac_try" in
29636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29637   *) ac_try_echo=$ac_try;;
29638 esac
29639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29640   (eval "$ac_compile") 2>conftest.er1
29641   ac_status=$?
29642   grep -v '^ *+' conftest.er1 >conftest.err
29643   rm -f conftest.er1
29644   cat conftest.err >&5
29645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646   (exit $ac_status); } &&
29647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29648   { (case "(($ac_try" in
29649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29650   *) ac_try_echo=$ac_try;;
29651 esac
29652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29653   (eval "$ac_try") 2>&5
29654   ac_status=$?
29655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656   (exit $ac_status); }; } &&
29657          { ac_try='test -s conftest.$ac_objext'
29658   { (case "(($ac_try" in
29659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29660   *) ac_try_echo=$ac_try;;
29661 esac
29662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29663   (eval "$ac_try") 2>&5
29664   ac_status=$?
29665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666   (exit $ac_status); }; }; then
29667   ac_header_compiler=yes
29668 else
29669   echo "$as_me: failed program was:" >&5
29670 sed 's/^/| /' conftest.$ac_ext >&5
29671
29672         ac_header_compiler=no
29673 fi
29674
29675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29676 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29677 echo "${ECHO_T}$ac_header_compiler" >&6; }
29678
29679 # Is the header present?
29680 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29682 cat >conftest.$ac_ext <<_ACEOF
29683 /* confdefs.h.  */
29684 _ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h.  */
29688 #include <$ac_header>
29689 _ACEOF
29690 if { (ac_try="$ac_cpp conftest.$ac_ext"
29691 case "(($ac_try" in
29692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29693   *) ac_try_echo=$ac_try;;
29694 esac
29695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29696   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29697   ac_status=$?
29698   grep -v '^ *+' conftest.er1 >conftest.err
29699   rm -f conftest.er1
29700   cat conftest.err >&5
29701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29702   (exit $ac_status); } >/dev/null; then
29703   if test -s conftest.err; then
29704     ac_cpp_err=$ac_c_preproc_warn_flag
29705     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29706   else
29707     ac_cpp_err=
29708   fi
29709 else
29710   ac_cpp_err=yes
29711 fi
29712 if test -z "$ac_cpp_err"; then
29713   ac_header_preproc=yes
29714 else
29715   echo "$as_me: failed program was:" >&5
29716 sed 's/^/| /' conftest.$ac_ext >&5
29717
29718   ac_header_preproc=no
29719 fi
29720
29721 rm -f conftest.err conftest.$ac_ext
29722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29723 echo "${ECHO_T}$ac_header_preproc" >&6; }
29724
29725 # So?  What about this header?
29726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29727   yes:no: )
29728     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29732     ac_header_preproc=yes
29733     ;;
29734   no:yes:* )
29735     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29737     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29738 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29739     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29741     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29742 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29743     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29745     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29747     ( cat <<\_ASBOX
29748 ## ----------------------------------- ##
29749 ## Report this to llvmbugs@cs.uiuc.edu ##
29750 ## ----------------------------------- ##
29751 _ASBOX
29752      ) | sed "s/^/$as_me: WARNING:     /" >&2
29753     ;;
29754 esac
29755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29758   echo $ECHO_N "(cached) $ECHO_C" >&6
29759 else
29760   eval "$as_ac_Header=\$ac_header_preproc"
29761 fi
29762 ac_res=`eval echo '${'$as_ac_Header'}'`
29763                { echo "$as_me:$LINENO: result: $ac_res" >&5
29764 echo "${ECHO_T}$ac_res" >&6; }
29765
29766 fi
29767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29768   cat >>confdefs.h <<_ACEOF
29769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29770 _ACEOF
29771
29772 fi
29773
29774 done
29775
29776 if test "$ENABLE_THREADS" -eq 1 ; then
29777
29778 for ac_header in pthread.h
29779 do
29780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29782   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29785   echo $ECHO_N "(cached) $ECHO_C" >&6
29786 fi
29787 ac_res=`eval echo '${'$as_ac_Header'}'`
29788                { echo "$as_me:$LINENO: result: $ac_res" >&5
29789 echo "${ECHO_T}$ac_res" >&6; }
29790 else
29791   # Is the header compilable?
29792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29794 cat >conftest.$ac_ext <<_ACEOF
29795 /* confdefs.h.  */
29796 _ACEOF
29797 cat confdefs.h >>conftest.$ac_ext
29798 cat >>conftest.$ac_ext <<_ACEOF
29799 /* end confdefs.h.  */
29800 $ac_includes_default
29801 #include <$ac_header>
29802 _ACEOF
29803 rm -f conftest.$ac_objext
29804 if { (ac_try="$ac_compile"
29805 case "(($ac_try" in
29806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29807   *) ac_try_echo=$ac_try;;
29808 esac
29809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29810   (eval "$ac_compile") 2>conftest.er1
29811   ac_status=$?
29812   grep -v '^ *+' conftest.er1 >conftest.err
29813   rm -f conftest.er1
29814   cat conftest.err >&5
29815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816   (exit $ac_status); } &&
29817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29818   { (case "(($ac_try" in
29819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29820   *) ac_try_echo=$ac_try;;
29821 esac
29822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29823   (eval "$ac_try") 2>&5
29824   ac_status=$?
29825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826   (exit $ac_status); }; } &&
29827          { ac_try='test -s conftest.$ac_objext'
29828   { (case "(($ac_try" in
29829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29830   *) ac_try_echo=$ac_try;;
29831 esac
29832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29833   (eval "$ac_try") 2>&5
29834   ac_status=$?
29835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836   (exit $ac_status); }; }; then
29837   ac_header_compiler=yes
29838 else
29839   echo "$as_me: failed program was:" >&5
29840 sed 's/^/| /' conftest.$ac_ext >&5
29841
29842         ac_header_compiler=no
29843 fi
29844
29845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29846 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29847 echo "${ECHO_T}$ac_header_compiler" >&6; }
29848
29849 # Is the header present?
29850 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29852 cat >conftest.$ac_ext <<_ACEOF
29853 /* confdefs.h.  */
29854 _ACEOF
29855 cat confdefs.h >>conftest.$ac_ext
29856 cat >>conftest.$ac_ext <<_ACEOF
29857 /* end confdefs.h.  */
29858 #include <$ac_header>
29859 _ACEOF
29860 if { (ac_try="$ac_cpp conftest.$ac_ext"
29861 case "(($ac_try" in
29862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29863   *) ac_try_echo=$ac_try;;
29864 esac
29865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29866   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29867   ac_status=$?
29868   grep -v '^ *+' conftest.er1 >conftest.err
29869   rm -f conftest.er1
29870   cat conftest.err >&5
29871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872   (exit $ac_status); } >/dev/null; then
29873   if test -s conftest.err; then
29874     ac_cpp_err=$ac_c_preproc_warn_flag
29875     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29876   else
29877     ac_cpp_err=
29878   fi
29879 else
29880   ac_cpp_err=yes
29881 fi
29882 if test -z "$ac_cpp_err"; then
29883   ac_header_preproc=yes
29884 else
29885   echo "$as_me: failed program was:" >&5
29886 sed 's/^/| /' conftest.$ac_ext >&5
29887
29888   ac_header_preproc=no
29889 fi
29890
29891 rm -f conftest.err conftest.$ac_ext
29892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29893 echo "${ECHO_T}$ac_header_preproc" >&6; }
29894
29895 # So?  What about this header?
29896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29897   yes:no: )
29898     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29902     ac_header_preproc=yes
29903     ;;
29904   no:yes:* )
29905     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29907     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29908 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29909     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29911     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29912 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29915     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29917     ( cat <<\_ASBOX
29918 ## ----------------------------------- ##
29919 ## Report this to llvmbugs@cs.uiuc.edu ##
29920 ## ----------------------------------- ##
29921 _ASBOX
29922      ) | sed "s/^/$as_me: WARNING:     /" >&2
29923     ;;
29924 esac
29925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29928   echo $ECHO_N "(cached) $ECHO_C" >&6
29929 else
29930   eval "$as_ac_Header=\$ac_header_preproc"
29931 fi
29932 ac_res=`eval echo '${'$as_ac_Header'}'`
29933                { echo "$as_me:$LINENO: result: $ac_res" >&5
29934 echo "${ECHO_T}$ac_res" >&6; }
29935
29936 fi
29937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29938   cat >>confdefs.h <<_ACEOF
29939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29940 _ACEOF
29941  HAVE_PTHREAD=1
29942
29943 else
29944   HAVE_PTHREAD=0
29945
29946 fi
29947
29948 done
29949
29950 else
29951   HAVE_PTHREAD=0
29952
29953 fi
29954
29955
29956
29957   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29958 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29959 if test "${ac_cv_huge_val_sanity+set}" = set; then
29960   echo $ECHO_N "(cached) $ECHO_C" >&6
29961 else
29962
29963     ac_ext=cpp
29964 ac_cpp='$CXXCPP $CPPFLAGS'
29965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29968
29969     CXXFLAGS=-pedantic
29970     if test "$cross_compiling" = yes; then
29971   ac_cv_huge_val_sanity=yes
29972 else
29973   cat >conftest.$ac_ext <<_ACEOF
29974 /* confdefs.h.  */
29975 _ACEOF
29976 cat confdefs.h >>conftest.$ac_ext
29977 cat >>conftest.$ac_ext <<_ACEOF
29978 /* end confdefs.h.  */
29979 #include <math.h>
29980 int
29981 main ()
29982 {
29983 double x = HUGE_VAL; return x != x;
29984   ;
29985   return 0;
29986 }
29987 _ACEOF
29988 rm -f conftest$ac_exeext
29989 if { (ac_try="$ac_link"
29990 case "(($ac_try" in
29991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29992   *) ac_try_echo=$ac_try;;
29993 esac
29994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29995   (eval "$ac_link") 2>&5
29996   ac_status=$?
29997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29999   { (case "(($ac_try" in
30000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30001   *) ac_try_echo=$ac_try;;
30002 esac
30003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30004   (eval "$ac_try") 2>&5
30005   ac_status=$?
30006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007   (exit $ac_status); }; }; then
30008   ac_cv_huge_val_sanity=yes
30009 else
30010   echo "$as_me: program exited with status $ac_status" >&5
30011 echo "$as_me: failed program was:" >&5
30012 sed 's/^/| /' conftest.$ac_ext >&5
30013
30014 ( exit $ac_status )
30015 ac_cv_huge_val_sanity=no
30016 fi
30017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30018 fi
30019
30020
30021     ac_ext=c
30022 ac_cpp='$CPP $CPPFLAGS'
30023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30026
30027
30028 fi
30029 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30030 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30031   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30032
30033
30034 { echo "$as_me:$LINENO: checking for pid_t" >&5
30035 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30036 if test "${ac_cv_type_pid_t+set}" = set; then
30037   echo $ECHO_N "(cached) $ECHO_C" >&6
30038 else
30039   cat >conftest.$ac_ext <<_ACEOF
30040 /* confdefs.h.  */
30041 _ACEOF
30042 cat confdefs.h >>conftest.$ac_ext
30043 cat >>conftest.$ac_ext <<_ACEOF
30044 /* end confdefs.h.  */
30045 $ac_includes_default
30046 typedef pid_t ac__type_new_;
30047 int
30048 main ()
30049 {
30050 if ((ac__type_new_ *) 0)
30051   return 0;
30052 if (sizeof (ac__type_new_))
30053   return 0;
30054   ;
30055   return 0;
30056 }
30057 _ACEOF
30058 rm -f conftest.$ac_objext
30059 if { (ac_try="$ac_compile"
30060 case "(($ac_try" in
30061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30062   *) ac_try_echo=$ac_try;;
30063 esac
30064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30065   (eval "$ac_compile") 2>conftest.er1
30066   ac_status=$?
30067   grep -v '^ *+' conftest.er1 >conftest.err
30068   rm -f conftest.er1
30069   cat conftest.err >&5
30070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071   (exit $ac_status); } &&
30072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30073   { (case "(($ac_try" in
30074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30075   *) ac_try_echo=$ac_try;;
30076 esac
30077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30078   (eval "$ac_try") 2>&5
30079   ac_status=$?
30080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081   (exit $ac_status); }; } &&
30082          { ac_try='test -s conftest.$ac_objext'
30083   { (case "(($ac_try" in
30084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30085   *) ac_try_echo=$ac_try;;
30086 esac
30087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30088   (eval "$ac_try") 2>&5
30089   ac_status=$?
30090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30091   (exit $ac_status); }; }; then
30092   ac_cv_type_pid_t=yes
30093 else
30094   echo "$as_me: failed program was:" >&5
30095 sed 's/^/| /' conftest.$ac_ext >&5
30096
30097         ac_cv_type_pid_t=no
30098 fi
30099
30100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30101 fi
30102 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30103 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30104 if test $ac_cv_type_pid_t = yes; then
30105   :
30106 else
30107
30108 cat >>confdefs.h <<_ACEOF
30109 #define pid_t int
30110 _ACEOF
30111
30112 fi
30113
30114 { echo "$as_me:$LINENO: checking for size_t" >&5
30115 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30116 if test "${ac_cv_type_size_t+set}" = set; then
30117   echo $ECHO_N "(cached) $ECHO_C" >&6
30118 else
30119   cat >conftest.$ac_ext <<_ACEOF
30120 /* confdefs.h.  */
30121 _ACEOF
30122 cat confdefs.h >>conftest.$ac_ext
30123 cat >>conftest.$ac_ext <<_ACEOF
30124 /* end confdefs.h.  */
30125 $ac_includes_default
30126 typedef size_t ac__type_new_;
30127 int
30128 main ()
30129 {
30130 if ((ac__type_new_ *) 0)
30131   return 0;
30132 if (sizeof (ac__type_new_))
30133   return 0;
30134   ;
30135   return 0;
30136 }
30137 _ACEOF
30138 rm -f conftest.$ac_objext
30139 if { (ac_try="$ac_compile"
30140 case "(($ac_try" in
30141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30142   *) ac_try_echo=$ac_try;;
30143 esac
30144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30145   (eval "$ac_compile") 2>conftest.er1
30146   ac_status=$?
30147   grep -v '^ *+' conftest.er1 >conftest.err
30148   rm -f conftest.er1
30149   cat conftest.err >&5
30150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151   (exit $ac_status); } &&
30152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30153   { (case "(($ac_try" in
30154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30155   *) ac_try_echo=$ac_try;;
30156 esac
30157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30158   (eval "$ac_try") 2>&5
30159   ac_status=$?
30160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161   (exit $ac_status); }; } &&
30162          { ac_try='test -s conftest.$ac_objext'
30163   { (case "(($ac_try" in
30164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30165   *) ac_try_echo=$ac_try;;
30166 esac
30167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30168   (eval "$ac_try") 2>&5
30169   ac_status=$?
30170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30171   (exit $ac_status); }; }; then
30172   ac_cv_type_size_t=yes
30173 else
30174   echo "$as_me: failed program was:" >&5
30175 sed 's/^/| /' conftest.$ac_ext >&5
30176
30177         ac_cv_type_size_t=no
30178 fi
30179
30180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30181 fi
30182 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30183 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30184 if test $ac_cv_type_size_t = yes; then
30185   :
30186 else
30187
30188 cat >>confdefs.h <<_ACEOF
30189 #define size_t unsigned int
30190 _ACEOF
30191
30192 fi
30193
30194 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30195 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30196 if test "${ac_cv_type_signal+set}" = set; then
30197   echo $ECHO_N "(cached) $ECHO_C" >&6
30198 else
30199   cat >conftest.$ac_ext <<_ACEOF
30200 /* confdefs.h.  */
30201 _ACEOF
30202 cat confdefs.h >>conftest.$ac_ext
30203 cat >>conftest.$ac_ext <<_ACEOF
30204 /* end confdefs.h.  */
30205 #include <sys/types.h>
30206 #include <signal.h>
30207
30208 int
30209 main ()
30210 {
30211 return *(signal (0, 0)) (0) == 1;
30212   ;
30213   return 0;
30214 }
30215 _ACEOF
30216 rm -f conftest.$ac_objext
30217 if { (ac_try="$ac_compile"
30218 case "(($ac_try" in
30219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30220   *) ac_try_echo=$ac_try;;
30221 esac
30222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30223   (eval "$ac_compile") 2>conftest.er1
30224   ac_status=$?
30225   grep -v '^ *+' conftest.er1 >conftest.err
30226   rm -f conftest.er1
30227   cat conftest.err >&5
30228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30229   (exit $ac_status); } &&
30230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30231   { (case "(($ac_try" in
30232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30233   *) ac_try_echo=$ac_try;;
30234 esac
30235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30236   (eval "$ac_try") 2>&5
30237   ac_status=$?
30238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30239   (exit $ac_status); }; } &&
30240          { ac_try='test -s conftest.$ac_objext'
30241   { (case "(($ac_try" in
30242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30243   *) ac_try_echo=$ac_try;;
30244 esac
30245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30246   (eval "$ac_try") 2>&5
30247   ac_status=$?
30248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249   (exit $ac_status); }; }; then
30250   ac_cv_type_signal=int
30251 else
30252   echo "$as_me: failed program was:" >&5
30253 sed 's/^/| /' conftest.$ac_ext >&5
30254
30255         ac_cv_type_signal=void
30256 fi
30257
30258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30259 fi
30260 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30261 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30262
30263 cat >>confdefs.h <<_ACEOF
30264 #define RETSIGTYPE $ac_cv_type_signal
30265 _ACEOF
30266
30267
30268 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30269 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30270 if test "${ac_cv_struct_tm+set}" = set; then
30271   echo $ECHO_N "(cached) $ECHO_C" >&6
30272 else
30273   cat >conftest.$ac_ext <<_ACEOF
30274 /* confdefs.h.  */
30275 _ACEOF
30276 cat confdefs.h >>conftest.$ac_ext
30277 cat >>conftest.$ac_ext <<_ACEOF
30278 /* end confdefs.h.  */
30279 #include <sys/types.h>
30280 #include <time.h>
30281
30282 int
30283 main ()
30284 {
30285 struct tm *tp; tp->tm_sec;
30286   ;
30287   return 0;
30288 }
30289 _ACEOF
30290 rm -f conftest.$ac_objext
30291 if { (ac_try="$ac_compile"
30292 case "(($ac_try" in
30293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30294   *) ac_try_echo=$ac_try;;
30295 esac
30296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30297   (eval "$ac_compile") 2>conftest.er1
30298   ac_status=$?
30299   grep -v '^ *+' conftest.er1 >conftest.err
30300   rm -f conftest.er1
30301   cat conftest.err >&5
30302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303   (exit $ac_status); } &&
30304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30305   { (case "(($ac_try" in
30306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30307   *) ac_try_echo=$ac_try;;
30308 esac
30309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30310   (eval "$ac_try") 2>&5
30311   ac_status=$?
30312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30313   (exit $ac_status); }; } &&
30314          { ac_try='test -s conftest.$ac_objext'
30315   { (case "(($ac_try" in
30316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30317   *) ac_try_echo=$ac_try;;
30318 esac
30319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30320   (eval "$ac_try") 2>&5
30321   ac_status=$?
30322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30323   (exit $ac_status); }; }; then
30324   ac_cv_struct_tm=time.h
30325 else
30326   echo "$as_me: failed program was:" >&5
30327 sed 's/^/| /' conftest.$ac_ext >&5
30328
30329         ac_cv_struct_tm=sys/time.h
30330 fi
30331
30332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30333 fi
30334 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30335 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30336 if test $ac_cv_struct_tm = sys/time.h; then
30337
30338 cat >>confdefs.h <<\_ACEOF
30339 #define TM_IN_SYS_TIME 1
30340 _ACEOF
30341
30342 fi
30343
30344 { echo "$as_me:$LINENO: checking for int64_t" >&5
30345 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30346 if test "${ac_cv_type_int64_t+set}" = set; then
30347   echo $ECHO_N "(cached) $ECHO_C" >&6
30348 else
30349   cat >conftest.$ac_ext <<_ACEOF
30350 /* confdefs.h.  */
30351 _ACEOF
30352 cat confdefs.h >>conftest.$ac_ext
30353 cat >>conftest.$ac_ext <<_ACEOF
30354 /* end confdefs.h.  */
30355 $ac_includes_default
30356 typedef int64_t ac__type_new_;
30357 int
30358 main ()
30359 {
30360 if ((ac__type_new_ *) 0)
30361   return 0;
30362 if (sizeof (ac__type_new_))
30363   return 0;
30364   ;
30365   return 0;
30366 }
30367 _ACEOF
30368 rm -f conftest.$ac_objext
30369 if { (ac_try="$ac_compile"
30370 case "(($ac_try" in
30371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30372   *) ac_try_echo=$ac_try;;
30373 esac
30374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30375   (eval "$ac_compile") 2>conftest.er1
30376   ac_status=$?
30377   grep -v '^ *+' conftest.er1 >conftest.err
30378   rm -f conftest.er1
30379   cat conftest.err >&5
30380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381   (exit $ac_status); } &&
30382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30383   { (case "(($ac_try" in
30384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30385   *) ac_try_echo=$ac_try;;
30386 esac
30387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30388   (eval "$ac_try") 2>&5
30389   ac_status=$?
30390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391   (exit $ac_status); }; } &&
30392          { ac_try='test -s conftest.$ac_objext'
30393   { (case "(($ac_try" in
30394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30395   *) ac_try_echo=$ac_try;;
30396 esac
30397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30398   (eval "$ac_try") 2>&5
30399   ac_status=$?
30400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401   (exit $ac_status); }; }; then
30402   ac_cv_type_int64_t=yes
30403 else
30404   echo "$as_me: failed program was:" >&5
30405 sed 's/^/| /' conftest.$ac_ext >&5
30406
30407         ac_cv_type_int64_t=no
30408 fi
30409
30410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30411 fi
30412 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30413 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30414 if test $ac_cv_type_int64_t = yes; then
30415
30416 cat >>confdefs.h <<_ACEOF
30417 #define HAVE_INT64_T 1
30418 _ACEOF
30419
30420
30421 else
30422   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30423 echo "$as_me: error: Type int64_t required but not found" >&2;}
30424    { (exit 1); exit 1; }; }
30425 fi
30426
30427 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30428 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30429 if test "${ac_cv_type_uint64_t+set}" = set; then
30430   echo $ECHO_N "(cached) $ECHO_C" >&6
30431 else
30432   cat >conftest.$ac_ext <<_ACEOF
30433 /* confdefs.h.  */
30434 _ACEOF
30435 cat confdefs.h >>conftest.$ac_ext
30436 cat >>conftest.$ac_ext <<_ACEOF
30437 /* end confdefs.h.  */
30438 $ac_includes_default
30439 typedef uint64_t ac__type_new_;
30440 int
30441 main ()
30442 {
30443 if ((ac__type_new_ *) 0)
30444   return 0;
30445 if (sizeof (ac__type_new_))
30446   return 0;
30447   ;
30448   return 0;
30449 }
30450 _ACEOF
30451 rm -f conftest.$ac_objext
30452 if { (ac_try="$ac_compile"
30453 case "(($ac_try" in
30454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30455   *) ac_try_echo=$ac_try;;
30456 esac
30457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30458   (eval "$ac_compile") 2>conftest.er1
30459   ac_status=$?
30460   grep -v '^ *+' conftest.er1 >conftest.err
30461   rm -f conftest.er1
30462   cat conftest.err >&5
30463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464   (exit $ac_status); } &&
30465          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30466   { (case "(($ac_try" in
30467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30468   *) ac_try_echo=$ac_try;;
30469 esac
30470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30471   (eval "$ac_try") 2>&5
30472   ac_status=$?
30473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474   (exit $ac_status); }; } &&
30475          { ac_try='test -s conftest.$ac_objext'
30476   { (case "(($ac_try" in
30477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30478   *) ac_try_echo=$ac_try;;
30479 esac
30480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30481   (eval "$ac_try") 2>&5
30482   ac_status=$?
30483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484   (exit $ac_status); }; }; then
30485   ac_cv_type_uint64_t=yes
30486 else
30487   echo "$as_me: failed program was:" >&5
30488 sed 's/^/| /' conftest.$ac_ext >&5
30489
30490         ac_cv_type_uint64_t=no
30491 fi
30492
30493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30494 fi
30495 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30496 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30497 if test $ac_cv_type_uint64_t = yes; then
30498
30499 cat >>confdefs.h <<_ACEOF
30500 #define HAVE_UINT64_T 1
30501 _ACEOF
30502
30503
30504 else
30505   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30506 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30507 if test "${ac_cv_type_u_int64_t+set}" = set; then
30508   echo $ECHO_N "(cached) $ECHO_C" >&6
30509 else
30510   cat >conftest.$ac_ext <<_ACEOF
30511 /* confdefs.h.  */
30512 _ACEOF
30513 cat confdefs.h >>conftest.$ac_ext
30514 cat >>conftest.$ac_ext <<_ACEOF
30515 /* end confdefs.h.  */
30516 $ac_includes_default
30517 typedef u_int64_t ac__type_new_;
30518 int
30519 main ()
30520 {
30521 if ((ac__type_new_ *) 0)
30522   return 0;
30523 if (sizeof (ac__type_new_))
30524   return 0;
30525   ;
30526   return 0;
30527 }
30528 _ACEOF
30529 rm -f conftest.$ac_objext
30530 if { (ac_try="$ac_compile"
30531 case "(($ac_try" in
30532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533   *) ac_try_echo=$ac_try;;
30534 esac
30535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536   (eval "$ac_compile") 2>conftest.er1
30537   ac_status=$?
30538   grep -v '^ *+' conftest.er1 >conftest.err
30539   rm -f conftest.er1
30540   cat conftest.err >&5
30541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542   (exit $ac_status); } &&
30543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30544   { (case "(($ac_try" in
30545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30546   *) ac_try_echo=$ac_try;;
30547 esac
30548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30549   (eval "$ac_try") 2>&5
30550   ac_status=$?
30551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552   (exit $ac_status); }; } &&
30553          { ac_try='test -s conftest.$ac_objext'
30554   { (case "(($ac_try" in
30555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30556   *) ac_try_echo=$ac_try;;
30557 esac
30558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30559   (eval "$ac_try") 2>&5
30560   ac_status=$?
30561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562   (exit $ac_status); }; }; then
30563   ac_cv_type_u_int64_t=yes
30564 else
30565   echo "$as_me: failed program was:" >&5
30566 sed 's/^/| /' conftest.$ac_ext >&5
30567
30568         ac_cv_type_u_int64_t=no
30569 fi
30570
30571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30572 fi
30573 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30574 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30575 if test $ac_cv_type_u_int64_t = yes; then
30576
30577 cat >>confdefs.h <<_ACEOF
30578 #define HAVE_U_INT64_T 1
30579 _ACEOF
30580
30581
30582 else
30583   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30584 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30585    { (exit 1); exit 1; }; }
30586 fi
30587
30588 fi
30589
30590
30591
30592
30593
30594
30595
30596
30597
30598
30599 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30600 do
30601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30602 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30604 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30605   echo $ECHO_N "(cached) $ECHO_C" >&6
30606 else
30607   cat >conftest.$ac_ext <<_ACEOF
30608 /* confdefs.h.  */
30609 _ACEOF
30610 cat confdefs.h >>conftest.$ac_ext
30611 cat >>conftest.$ac_ext <<_ACEOF
30612 /* end confdefs.h.  */
30613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30614    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30615 #define $ac_func innocuous_$ac_func
30616
30617 /* System header to define __stub macros and hopefully few prototypes,
30618     which can conflict with char $ac_func (); below.
30619     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30620     <limits.h> exists even on freestanding compilers.  */
30621
30622 #ifdef __STDC__
30623 # include <limits.h>
30624 #else
30625 # include <assert.h>
30626 #endif
30627
30628 #undef $ac_func
30629
30630 /* Override any GCC internal prototype to avoid an error.
30631    Use char because int might match the return type of a GCC
30632    builtin and then its argument prototype would still apply.  */
30633 #ifdef __cplusplus
30634 extern "C"
30635 #endif
30636 char $ac_func ();
30637 /* The GNU C library defines this for functions which it implements
30638     to always fail with ENOSYS.  Some functions are actually named
30639     something starting with __ and the normal name is an alias.  */
30640 #if defined __stub_$ac_func || defined __stub___$ac_func
30641 choke me
30642 #endif
30643
30644 int
30645 main ()
30646 {
30647 return $ac_func ();
30648   ;
30649   return 0;
30650 }
30651 _ACEOF
30652 rm -f conftest.$ac_objext conftest$ac_exeext
30653 if { (ac_try="$ac_link"
30654 case "(($ac_try" in
30655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30656   *) ac_try_echo=$ac_try;;
30657 esac
30658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30659   (eval "$ac_link") 2>conftest.er1
30660   ac_status=$?
30661   grep -v '^ *+' conftest.er1 >conftest.err
30662   rm -f conftest.er1
30663   cat conftest.err >&5
30664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665   (exit $ac_status); } &&
30666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30667   { (case "(($ac_try" in
30668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30669   *) ac_try_echo=$ac_try;;
30670 esac
30671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30672   (eval "$ac_try") 2>&5
30673   ac_status=$?
30674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675   (exit $ac_status); }; } &&
30676          { ac_try='test -s conftest$ac_exeext'
30677   { (case "(($ac_try" in
30678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30679   *) ac_try_echo=$ac_try;;
30680 esac
30681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30682   (eval "$ac_try") 2>&5
30683   ac_status=$?
30684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685   (exit $ac_status); }; }; then
30686   eval "$as_ac_var=yes"
30687 else
30688   echo "$as_me: failed program was:" >&5
30689 sed 's/^/| /' conftest.$ac_ext >&5
30690
30691         eval "$as_ac_var=no"
30692 fi
30693
30694 rm -f core conftest.err conftest.$ac_objext \
30695       conftest$ac_exeext conftest.$ac_ext
30696 fi
30697 ac_res=`eval echo '${'$as_ac_var'}'`
30698                { echo "$as_me:$LINENO: result: $ac_res" >&5
30699 echo "${ECHO_T}$ac_res" >&6; }
30700 if test `eval echo '${'$as_ac_var'}'` = yes; then
30701   cat >>confdefs.h <<_ACEOF
30702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30703 _ACEOF
30704
30705 fi
30706 done
30707
30708
30709
30710
30711
30712 for ac_func in powf fmodf strtof round
30713 do
30714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30718   echo $ECHO_N "(cached) $ECHO_C" >&6
30719 else
30720   cat >conftest.$ac_ext <<_ACEOF
30721 /* confdefs.h.  */
30722 _ACEOF
30723 cat confdefs.h >>conftest.$ac_ext
30724 cat >>conftest.$ac_ext <<_ACEOF
30725 /* end confdefs.h.  */
30726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30728 #define $ac_func innocuous_$ac_func
30729
30730 /* System header to define __stub macros and hopefully few prototypes,
30731     which can conflict with char $ac_func (); below.
30732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30733     <limits.h> exists even on freestanding compilers.  */
30734
30735 #ifdef __STDC__
30736 # include <limits.h>
30737 #else
30738 # include <assert.h>
30739 #endif
30740
30741 #undef $ac_func
30742
30743 /* Override any GCC internal prototype to avoid an error.
30744    Use char because int might match the return type of a GCC
30745    builtin and then its argument prototype would still apply.  */
30746 #ifdef __cplusplus
30747 extern "C"
30748 #endif
30749 char $ac_func ();
30750 /* The GNU C library defines this for functions which it implements
30751     to always fail with ENOSYS.  Some functions are actually named
30752     something starting with __ and the normal name is an alias.  */
30753 #if defined __stub_$ac_func || defined __stub___$ac_func
30754 choke me
30755 #endif
30756
30757 int
30758 main ()
30759 {
30760 return $ac_func ();
30761   ;
30762   return 0;
30763 }
30764 _ACEOF
30765 rm -f conftest.$ac_objext conftest$ac_exeext
30766 if { (ac_try="$ac_link"
30767 case "(($ac_try" in
30768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30769   *) ac_try_echo=$ac_try;;
30770 esac
30771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30772   (eval "$ac_link") 2>conftest.er1
30773   ac_status=$?
30774   grep -v '^ *+' conftest.er1 >conftest.err
30775   rm -f conftest.er1
30776   cat conftest.err >&5
30777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778   (exit $ac_status); } &&
30779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30780   { (case "(($ac_try" in
30781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30782   *) ac_try_echo=$ac_try;;
30783 esac
30784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30785   (eval "$ac_try") 2>&5
30786   ac_status=$?
30787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30788   (exit $ac_status); }; } &&
30789          { ac_try='test -s conftest$ac_exeext'
30790   { (case "(($ac_try" in
30791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30792   *) ac_try_echo=$ac_try;;
30793 esac
30794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30795   (eval "$ac_try") 2>&5
30796   ac_status=$?
30797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30798   (exit $ac_status); }; }; then
30799   eval "$as_ac_var=yes"
30800 else
30801   echo "$as_me: failed program was:" >&5
30802 sed 's/^/| /' conftest.$ac_ext >&5
30803
30804         eval "$as_ac_var=no"
30805 fi
30806
30807 rm -f core conftest.err conftest.$ac_objext \
30808       conftest$ac_exeext conftest.$ac_ext
30809 fi
30810 ac_res=`eval echo '${'$as_ac_var'}'`
30811                { echo "$as_me:$LINENO: result: $ac_res" >&5
30812 echo "${ECHO_T}$ac_res" >&6; }
30813 if test `eval echo '${'$as_ac_var'}'` = yes; then
30814   cat >>confdefs.h <<_ACEOF
30815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30816 _ACEOF
30817
30818 fi
30819 done
30820
30821
30822
30823
30824
30825
30826 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30827 do
30828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30832   echo $ECHO_N "(cached) $ECHO_C" >&6
30833 else
30834   cat >conftest.$ac_ext <<_ACEOF
30835 /* confdefs.h.  */
30836 _ACEOF
30837 cat confdefs.h >>conftest.$ac_ext
30838 cat >>conftest.$ac_ext <<_ACEOF
30839 /* end confdefs.h.  */
30840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30842 #define $ac_func innocuous_$ac_func
30843
30844 /* System header to define __stub macros and hopefully few prototypes,
30845     which can conflict with char $ac_func (); below.
30846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30847     <limits.h> exists even on freestanding compilers.  */
30848
30849 #ifdef __STDC__
30850 # include <limits.h>
30851 #else
30852 # include <assert.h>
30853 #endif
30854
30855 #undef $ac_func
30856
30857 /* Override any GCC internal prototype to avoid an error.
30858    Use char because int might match the return type of a GCC
30859    builtin and then its argument prototype would still apply.  */
30860 #ifdef __cplusplus
30861 extern "C"
30862 #endif
30863 char $ac_func ();
30864 /* The GNU C library defines this for functions which it implements
30865     to always fail with ENOSYS.  Some functions are actually named
30866     something starting with __ and the normal name is an alias.  */
30867 #if defined __stub_$ac_func || defined __stub___$ac_func
30868 choke me
30869 #endif
30870
30871 int
30872 main ()
30873 {
30874 return $ac_func ();
30875   ;
30876   return 0;
30877 }
30878 _ACEOF
30879 rm -f conftest.$ac_objext conftest$ac_exeext
30880 if { (ac_try="$ac_link"
30881 case "(($ac_try" in
30882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30883   *) ac_try_echo=$ac_try;;
30884 esac
30885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30886   (eval "$ac_link") 2>conftest.er1
30887   ac_status=$?
30888   grep -v '^ *+' conftest.er1 >conftest.err
30889   rm -f conftest.er1
30890   cat conftest.err >&5
30891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892   (exit $ac_status); } &&
30893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30894   { (case "(($ac_try" in
30895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896   *) ac_try_echo=$ac_try;;
30897 esac
30898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899   (eval "$ac_try") 2>&5
30900   ac_status=$?
30901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902   (exit $ac_status); }; } &&
30903          { ac_try='test -s conftest$ac_exeext'
30904   { (case "(($ac_try" in
30905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30906   *) ac_try_echo=$ac_try;;
30907 esac
30908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30909   (eval "$ac_try") 2>&5
30910   ac_status=$?
30911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30912   (exit $ac_status); }; }; then
30913   eval "$as_ac_var=yes"
30914 else
30915   echo "$as_me: failed program was:" >&5
30916 sed 's/^/| /' conftest.$ac_ext >&5
30917
30918         eval "$as_ac_var=no"
30919 fi
30920
30921 rm -f core conftest.err conftest.$ac_objext \
30922       conftest$ac_exeext conftest.$ac_ext
30923 fi
30924 ac_res=`eval echo '${'$as_ac_var'}'`
30925                { echo "$as_me:$LINENO: result: $ac_res" >&5
30926 echo "${ECHO_T}$ac_res" >&6; }
30927 if test `eval echo '${'$as_ac_var'}'` = yes; then
30928   cat >>confdefs.h <<_ACEOF
30929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30930 _ACEOF
30931
30932 fi
30933 done
30934
30935
30936
30937
30938 for ac_func in isatty mkdtemp mkstemp
30939 do
30940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30944   echo $ECHO_N "(cached) $ECHO_C" >&6
30945 else
30946   cat >conftest.$ac_ext <<_ACEOF
30947 /* confdefs.h.  */
30948 _ACEOF
30949 cat confdefs.h >>conftest.$ac_ext
30950 cat >>conftest.$ac_ext <<_ACEOF
30951 /* end confdefs.h.  */
30952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30954 #define $ac_func innocuous_$ac_func
30955
30956 /* System header to define __stub macros and hopefully few prototypes,
30957     which can conflict with char $ac_func (); below.
30958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30959     <limits.h> exists even on freestanding compilers.  */
30960
30961 #ifdef __STDC__
30962 # include <limits.h>
30963 #else
30964 # include <assert.h>
30965 #endif
30966
30967 #undef $ac_func
30968
30969 /* Override any GCC internal prototype to avoid an error.
30970    Use char because int might match the return type of a GCC
30971    builtin and then its argument prototype would still apply.  */
30972 #ifdef __cplusplus
30973 extern "C"
30974 #endif
30975 char $ac_func ();
30976 /* The GNU C library defines this for functions which it implements
30977     to always fail with ENOSYS.  Some functions are actually named
30978     something starting with __ and the normal name is an alias.  */
30979 #if defined __stub_$ac_func || defined __stub___$ac_func
30980 choke me
30981 #endif
30982
30983 int
30984 main ()
30985 {
30986 return $ac_func ();
30987   ;
30988   return 0;
30989 }
30990 _ACEOF
30991 rm -f conftest.$ac_objext conftest$ac_exeext
30992 if { (ac_try="$ac_link"
30993 case "(($ac_try" in
30994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30995   *) ac_try_echo=$ac_try;;
30996 esac
30997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30998   (eval "$ac_link") 2>conftest.er1
30999   ac_status=$?
31000   grep -v '^ *+' conftest.er1 >conftest.err
31001   rm -f conftest.er1
31002   cat conftest.err >&5
31003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004   (exit $ac_status); } &&
31005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31006   { (case "(($ac_try" in
31007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31008   *) ac_try_echo=$ac_try;;
31009 esac
31010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31011   (eval "$ac_try") 2>&5
31012   ac_status=$?
31013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31014   (exit $ac_status); }; } &&
31015          { ac_try='test -s conftest$ac_exeext'
31016   { (case "(($ac_try" in
31017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31018   *) ac_try_echo=$ac_try;;
31019 esac
31020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31021   (eval "$ac_try") 2>&5
31022   ac_status=$?
31023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31024   (exit $ac_status); }; }; then
31025   eval "$as_ac_var=yes"
31026 else
31027   echo "$as_me: failed program was:" >&5
31028 sed 's/^/| /' conftest.$ac_ext >&5
31029
31030         eval "$as_ac_var=no"
31031 fi
31032
31033 rm -f core conftest.err conftest.$ac_objext \
31034       conftest$ac_exeext conftest.$ac_ext
31035 fi
31036 ac_res=`eval echo '${'$as_ac_var'}'`
31037                { echo "$as_me:$LINENO: result: $ac_res" >&5
31038 echo "${ECHO_T}$ac_res" >&6; }
31039 if test `eval echo '${'$as_ac_var'}'` = yes; then
31040   cat >>confdefs.h <<_ACEOF
31041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31042 _ACEOF
31043
31044 fi
31045 done
31046
31047
31048
31049
31050
31051
31052
31053
31054 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31055 do
31056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31057 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31060   echo $ECHO_N "(cached) $ECHO_C" >&6
31061 else
31062   cat >conftest.$ac_ext <<_ACEOF
31063 /* confdefs.h.  */
31064 _ACEOF
31065 cat confdefs.h >>conftest.$ac_ext
31066 cat >>conftest.$ac_ext <<_ACEOF
31067 /* end confdefs.h.  */
31068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31070 #define $ac_func innocuous_$ac_func
31071
31072 /* System header to define __stub macros and hopefully few prototypes,
31073     which can conflict with char $ac_func (); below.
31074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31075     <limits.h> exists even on freestanding compilers.  */
31076
31077 #ifdef __STDC__
31078 # include <limits.h>
31079 #else
31080 # include <assert.h>
31081 #endif
31082
31083 #undef $ac_func
31084
31085 /* Override any GCC internal prototype to avoid an error.
31086    Use char because int might match the return type of a GCC
31087    builtin and then its argument prototype would still apply.  */
31088 #ifdef __cplusplus
31089 extern "C"
31090 #endif
31091 char $ac_func ();
31092 /* The GNU C library defines this for functions which it implements
31093     to always fail with ENOSYS.  Some functions are actually named
31094     something starting with __ and the normal name is an alias.  */
31095 #if defined __stub_$ac_func || defined __stub___$ac_func
31096 choke me
31097 #endif
31098
31099 int
31100 main ()
31101 {
31102 return $ac_func ();
31103   ;
31104   return 0;
31105 }
31106 _ACEOF
31107 rm -f conftest.$ac_objext conftest$ac_exeext
31108 if { (ac_try="$ac_link"
31109 case "(($ac_try" in
31110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31111   *) ac_try_echo=$ac_try;;
31112 esac
31113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31114   (eval "$ac_link") 2>conftest.er1
31115   ac_status=$?
31116   grep -v '^ *+' conftest.er1 >conftest.err
31117   rm -f conftest.er1
31118   cat conftest.err >&5
31119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120   (exit $ac_status); } &&
31121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31122   { (case "(($ac_try" in
31123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31124   *) ac_try_echo=$ac_try;;
31125 esac
31126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31127   (eval "$ac_try") 2>&5
31128   ac_status=$?
31129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130   (exit $ac_status); }; } &&
31131          { ac_try='test -s conftest$ac_exeext'
31132   { (case "(($ac_try" in
31133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31134   *) ac_try_echo=$ac_try;;
31135 esac
31136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31137   (eval "$ac_try") 2>&5
31138   ac_status=$?
31139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140   (exit $ac_status); }; }; then
31141   eval "$as_ac_var=yes"
31142 else
31143   echo "$as_me: failed program was:" >&5
31144 sed 's/^/| /' conftest.$ac_ext >&5
31145
31146         eval "$as_ac_var=no"
31147 fi
31148
31149 rm -f core conftest.err conftest.$ac_objext \
31150       conftest$ac_exeext conftest.$ac_ext
31151 fi
31152 ac_res=`eval echo '${'$as_ac_var'}'`
31153                { echo "$as_me:$LINENO: result: $ac_res" >&5
31154 echo "${ECHO_T}$ac_res" >&6; }
31155 if test `eval echo '${'$as_ac_var'}'` = yes; then
31156   cat >>confdefs.h <<_ACEOF
31157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31158 _ACEOF
31159
31160 fi
31161 done
31162
31163
31164
31165
31166
31167 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31168 do
31169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31173   echo $ECHO_N "(cached) $ECHO_C" >&6
31174 else
31175   cat >conftest.$ac_ext <<_ACEOF
31176 /* confdefs.h.  */
31177 _ACEOF
31178 cat confdefs.h >>conftest.$ac_ext
31179 cat >>conftest.$ac_ext <<_ACEOF
31180 /* end confdefs.h.  */
31181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31183 #define $ac_func innocuous_$ac_func
31184
31185 /* System header to define __stub macros and hopefully few prototypes,
31186     which can conflict with char $ac_func (); below.
31187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31188     <limits.h> exists even on freestanding compilers.  */
31189
31190 #ifdef __STDC__
31191 # include <limits.h>
31192 #else
31193 # include <assert.h>
31194 #endif
31195
31196 #undef $ac_func
31197
31198 /* Override any GCC internal prototype to avoid an error.
31199    Use char because int might match the return type of a GCC
31200    builtin and then its argument prototype would still apply.  */
31201 #ifdef __cplusplus
31202 extern "C"
31203 #endif
31204 char $ac_func ();
31205 /* The GNU C library defines this for functions which it implements
31206     to always fail with ENOSYS.  Some functions are actually named
31207     something starting with __ and the normal name is an alias.  */
31208 #if defined __stub_$ac_func || defined __stub___$ac_func
31209 choke me
31210 #endif
31211
31212 int
31213 main ()
31214 {
31215 return $ac_func ();
31216   ;
31217   return 0;
31218 }
31219 _ACEOF
31220 rm -f conftest.$ac_objext conftest$ac_exeext
31221 if { (ac_try="$ac_link"
31222 case "(($ac_try" in
31223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31224   *) ac_try_echo=$ac_try;;
31225 esac
31226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31227   (eval "$ac_link") 2>conftest.er1
31228   ac_status=$?
31229   grep -v '^ *+' conftest.er1 >conftest.err
31230   rm -f conftest.er1
31231   cat conftest.err >&5
31232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233   (exit $ac_status); } &&
31234          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31235   { (case "(($ac_try" in
31236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31237   *) ac_try_echo=$ac_try;;
31238 esac
31239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31240   (eval "$ac_try") 2>&5
31241   ac_status=$?
31242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31243   (exit $ac_status); }; } &&
31244          { ac_try='test -s conftest$ac_exeext'
31245   { (case "(($ac_try" in
31246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31247   *) ac_try_echo=$ac_try;;
31248 esac
31249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31250   (eval "$ac_try") 2>&5
31251   ac_status=$?
31252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31253   (exit $ac_status); }; }; then
31254   eval "$as_ac_var=yes"
31255 else
31256   echo "$as_me: failed program was:" >&5
31257 sed 's/^/| /' conftest.$ac_ext >&5
31258
31259         eval "$as_ac_var=no"
31260 fi
31261
31262 rm -f core conftest.err conftest.$ac_objext \
31263       conftest$ac_exeext conftest.$ac_ext
31264 fi
31265 ac_res=`eval echo '${'$as_ac_var'}'`
31266                { echo "$as_me:$LINENO: result: $ac_res" >&5
31267 echo "${ECHO_T}$ac_res" >&6; }
31268 if test `eval echo '${'$as_ac_var'}'` = yes; then
31269   cat >>confdefs.h <<_ACEOF
31270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31271 _ACEOF
31272
31273 fi
31274 done
31275
31276
31277
31278
31279
31280 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31281 do
31282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31283 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31286   echo $ECHO_N "(cached) $ECHO_C" >&6
31287 else
31288   cat >conftest.$ac_ext <<_ACEOF
31289 /* confdefs.h.  */
31290 _ACEOF
31291 cat confdefs.h >>conftest.$ac_ext
31292 cat >>conftest.$ac_ext <<_ACEOF
31293 /* end confdefs.h.  */
31294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31295    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31296 #define $ac_func innocuous_$ac_func
31297
31298 /* System header to define __stub macros and hopefully few prototypes,
31299     which can conflict with char $ac_func (); below.
31300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31301     <limits.h> exists even on freestanding compilers.  */
31302
31303 #ifdef __STDC__
31304 # include <limits.h>
31305 #else
31306 # include <assert.h>
31307 #endif
31308
31309 #undef $ac_func
31310
31311 /* Override any GCC internal prototype to avoid an error.
31312    Use char because int might match the return type of a GCC
31313    builtin and then its argument prototype would still apply.  */
31314 #ifdef __cplusplus
31315 extern "C"
31316 #endif
31317 char $ac_func ();
31318 /* The GNU C library defines this for functions which it implements
31319     to always fail with ENOSYS.  Some functions are actually named
31320     something starting with __ and the normal name is an alias.  */
31321 #if defined __stub_$ac_func || defined __stub___$ac_func
31322 choke me
31323 #endif
31324
31325 int
31326 main ()
31327 {
31328 return $ac_func ();
31329   ;
31330   return 0;
31331 }
31332 _ACEOF
31333 rm -f conftest.$ac_objext conftest$ac_exeext
31334 if { (ac_try="$ac_link"
31335 case "(($ac_try" in
31336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31337   *) ac_try_echo=$ac_try;;
31338 esac
31339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31340   (eval "$ac_link") 2>conftest.er1
31341   ac_status=$?
31342   grep -v '^ *+' conftest.er1 >conftest.err
31343   rm -f conftest.er1
31344   cat conftest.err >&5
31345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346   (exit $ac_status); } &&
31347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31348   { (case "(($ac_try" in
31349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31350   *) ac_try_echo=$ac_try;;
31351 esac
31352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31353   (eval "$ac_try") 2>&5
31354   ac_status=$?
31355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31356   (exit $ac_status); }; } &&
31357          { ac_try='test -s conftest$ac_exeext'
31358   { (case "(($ac_try" in
31359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31360   *) ac_try_echo=$ac_try;;
31361 esac
31362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31363   (eval "$ac_try") 2>&5
31364   ac_status=$?
31365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31366   (exit $ac_status); }; }; then
31367   eval "$as_ac_var=yes"
31368 else
31369   echo "$as_me: failed program was:" >&5
31370 sed 's/^/| /' conftest.$ac_ext >&5
31371
31372         eval "$as_ac_var=no"
31373 fi
31374
31375 rm -f core conftest.err conftest.$ac_objext \
31376       conftest$ac_exeext conftest.$ac_ext
31377 fi
31378 ac_res=`eval echo '${'$as_ac_var'}'`
31379                { echo "$as_me:$LINENO: result: $ac_res" >&5
31380 echo "${ECHO_T}$ac_res" >&6; }
31381 if test `eval echo '${'$as_ac_var'}'` = yes; then
31382   cat >>confdefs.h <<_ACEOF
31383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31384 _ACEOF
31385
31386 fi
31387 done
31388
31389 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31390 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31391 if test "${llvm_cv_c_printf_a+set}" = set; then
31392   echo $ECHO_N "(cached) $ECHO_C" >&6
31393 else
31394   ac_ext=c
31395 ac_cpp='$CPP $CPPFLAGS'
31396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31399
31400  if test "$cross_compiling" = yes; then
31401   llvmac_cv_c_printf_a=no
31402 else
31403   cat >conftest.$ac_ext <<_ACEOF
31404
31405   /* confdefs.h.  */
31406 _ACEOF
31407 cat confdefs.h >>conftest.$ac_ext
31408 cat >>conftest.$ac_ext <<_ACEOF
31409 /* end confdefs.h.  */
31410
31411 #include <stdio.h>
31412 #include <stdlib.h>
31413
31414 int
31415 main ()
31416 {
31417
31418 volatile double A, B;
31419 char Buffer[100];
31420 A = 1;
31421 A /= 10.0;
31422 sprintf(Buffer, "%a", A);
31423 B = atof(Buffer);
31424 if (A != B)
31425   return (1);
31426 if (A != 0x1.999999999999ap-4)
31427   return (1);
31428 return (0);
31429   ;
31430   return 0;
31431 }
31432 _ACEOF
31433 rm -f conftest$ac_exeext
31434 if { (ac_try="$ac_link"
31435 case "(($ac_try" in
31436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31437   *) ac_try_echo=$ac_try;;
31438 esac
31439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31440   (eval "$ac_link") 2>&5
31441   ac_status=$?
31442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31444   { (case "(($ac_try" in
31445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31446   *) ac_try_echo=$ac_try;;
31447 esac
31448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31449   (eval "$ac_try") 2>&5
31450   ac_status=$?
31451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31452   (exit $ac_status); }; }; then
31453   llvm_cv_c_printf_a=yes
31454 else
31455   echo "$as_me: program exited with status $ac_status" >&5
31456 echo "$as_me: failed program was:" >&5
31457 sed 's/^/| /' conftest.$ac_ext >&5
31458
31459 ( exit $ac_status )
31460 llvmac_cv_c_printf_a=no
31461 fi
31462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31463 fi
31464
31465
31466  ac_ext=c
31467 ac_cpp='$CPP $CPPFLAGS'
31468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31471
31472 fi
31473 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31474 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31475  if test "$llvm_cv_c_printf_a" = "yes"; then
31476
31477 cat >>confdefs.h <<\_ACEOF
31478 #define HAVE_PRINTF_A 1
31479 _ACEOF
31480
31481  fi
31482
31483 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31484 # for constant arguments.  Useless!
31485 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31486 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31487 if test "${ac_cv_working_alloca_h+set}" = set; then
31488   echo $ECHO_N "(cached) $ECHO_C" >&6
31489 else
31490   cat >conftest.$ac_ext <<_ACEOF
31491 /* confdefs.h.  */
31492 _ACEOF
31493 cat confdefs.h >>conftest.$ac_ext
31494 cat >>conftest.$ac_ext <<_ACEOF
31495 /* end confdefs.h.  */
31496 #include <alloca.h>
31497 int
31498 main ()
31499 {
31500 char *p = (char *) alloca (2 * sizeof (int));
31501                           if (p) return 0;
31502   ;
31503   return 0;
31504 }
31505 _ACEOF
31506 rm -f conftest.$ac_objext conftest$ac_exeext
31507 if { (ac_try="$ac_link"
31508 case "(($ac_try" in
31509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31510   *) ac_try_echo=$ac_try;;
31511 esac
31512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31513   (eval "$ac_link") 2>conftest.er1
31514   ac_status=$?
31515   grep -v '^ *+' conftest.er1 >conftest.err
31516   rm -f conftest.er1
31517   cat conftest.err >&5
31518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519   (exit $ac_status); } &&
31520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31521   { (case "(($ac_try" in
31522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31523   *) ac_try_echo=$ac_try;;
31524 esac
31525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31526   (eval "$ac_try") 2>&5
31527   ac_status=$?
31528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529   (exit $ac_status); }; } &&
31530          { ac_try='test -s conftest$ac_exeext'
31531   { (case "(($ac_try" in
31532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533   *) ac_try_echo=$ac_try;;
31534 esac
31535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536   (eval "$ac_try") 2>&5
31537   ac_status=$?
31538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539   (exit $ac_status); }; }; then
31540   ac_cv_working_alloca_h=yes
31541 else
31542   echo "$as_me: failed program was:" >&5
31543 sed 's/^/| /' conftest.$ac_ext >&5
31544
31545         ac_cv_working_alloca_h=no
31546 fi
31547
31548 rm -f core conftest.err conftest.$ac_objext \
31549       conftest$ac_exeext conftest.$ac_ext
31550 fi
31551 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31552 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31553 if test $ac_cv_working_alloca_h = yes; then
31554
31555 cat >>confdefs.h <<\_ACEOF
31556 #define HAVE_ALLOCA_H 1
31557 _ACEOF
31558
31559 fi
31560
31561 { echo "$as_me:$LINENO: checking for alloca" >&5
31562 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31563 if test "${ac_cv_func_alloca_works+set}" = set; then
31564   echo $ECHO_N "(cached) $ECHO_C" >&6
31565 else
31566   cat >conftest.$ac_ext <<_ACEOF
31567 /* confdefs.h.  */
31568 _ACEOF
31569 cat confdefs.h >>conftest.$ac_ext
31570 cat >>conftest.$ac_ext <<_ACEOF
31571 /* end confdefs.h.  */
31572 #ifdef __GNUC__
31573 # define alloca __builtin_alloca
31574 #else
31575 # ifdef _MSC_VER
31576 #  include <malloc.h>
31577 #  define alloca _alloca
31578 # else
31579 #  if HAVE_ALLOCA_H
31580 #   include <alloca.h>
31581 #  else
31582 #   ifdef _AIX
31583  #pragma alloca
31584 #   else
31585 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31586 char *alloca ();
31587 #    endif
31588 #   endif
31589 #  endif
31590 # endif
31591 #endif
31592
31593 int
31594 main ()
31595 {
31596 char *p = (char *) alloca (1);
31597                                     if (p) return 0;
31598   ;
31599   return 0;
31600 }
31601 _ACEOF
31602 rm -f conftest.$ac_objext conftest$ac_exeext
31603 if { (ac_try="$ac_link"
31604 case "(($ac_try" in
31605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31606   *) ac_try_echo=$ac_try;;
31607 esac
31608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31609   (eval "$ac_link") 2>conftest.er1
31610   ac_status=$?
31611   grep -v '^ *+' conftest.er1 >conftest.err
31612   rm -f conftest.er1
31613   cat conftest.err >&5
31614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615   (exit $ac_status); } &&
31616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31617   { (case "(($ac_try" in
31618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31619   *) ac_try_echo=$ac_try;;
31620 esac
31621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31622   (eval "$ac_try") 2>&5
31623   ac_status=$?
31624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625   (exit $ac_status); }; } &&
31626          { ac_try='test -s conftest$ac_exeext'
31627   { (case "(($ac_try" in
31628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31629   *) ac_try_echo=$ac_try;;
31630 esac
31631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31632   (eval "$ac_try") 2>&5
31633   ac_status=$?
31634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635   (exit $ac_status); }; }; then
31636   ac_cv_func_alloca_works=yes
31637 else
31638   echo "$as_me: failed program was:" >&5
31639 sed 's/^/| /' conftest.$ac_ext >&5
31640
31641         ac_cv_func_alloca_works=no
31642 fi
31643
31644 rm -f core conftest.err conftest.$ac_objext \
31645       conftest$ac_exeext conftest.$ac_ext
31646 fi
31647 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31648 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31649
31650 if test $ac_cv_func_alloca_works = yes; then
31651
31652 cat >>confdefs.h <<\_ACEOF
31653 #define HAVE_ALLOCA 1
31654 _ACEOF
31655
31656 else
31657   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31658 # that cause trouble.  Some versions do not even contain alloca or
31659 # contain a buggy version.  If you still want to use their alloca,
31660 # use ar to extract alloca.o from them instead of compiling alloca.c.
31661
31662 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31663
31664 cat >>confdefs.h <<\_ACEOF
31665 #define C_ALLOCA 1
31666 _ACEOF
31667
31668
31669 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31670 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31671 if test "${ac_cv_os_cray+set}" = set; then
31672   echo $ECHO_N "(cached) $ECHO_C" >&6
31673 else
31674   cat >conftest.$ac_ext <<_ACEOF
31675 /* confdefs.h.  */
31676 _ACEOF
31677 cat confdefs.h >>conftest.$ac_ext
31678 cat >>conftest.$ac_ext <<_ACEOF
31679 /* end confdefs.h.  */
31680 #if defined CRAY && ! defined CRAY2
31681 webecray
31682 #else
31683 wenotbecray
31684 #endif
31685
31686 _ACEOF
31687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31688   $EGREP "webecray" >/dev/null 2>&1; then
31689   ac_cv_os_cray=yes
31690 else
31691   ac_cv_os_cray=no
31692 fi
31693 rm -f conftest*
31694
31695 fi
31696 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31697 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31698 if test $ac_cv_os_cray = yes; then
31699   for ac_func in _getb67 GETB67 getb67; do
31700     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31701 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31704   echo $ECHO_N "(cached) $ECHO_C" >&6
31705 else
31706   cat >conftest.$ac_ext <<_ACEOF
31707 /* confdefs.h.  */
31708 _ACEOF
31709 cat confdefs.h >>conftest.$ac_ext
31710 cat >>conftest.$ac_ext <<_ACEOF
31711 /* end confdefs.h.  */
31712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31713    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31714 #define $ac_func innocuous_$ac_func
31715
31716 /* System header to define __stub macros and hopefully few prototypes,
31717     which can conflict with char $ac_func (); below.
31718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31719     <limits.h> exists even on freestanding compilers.  */
31720
31721 #ifdef __STDC__
31722 # include <limits.h>
31723 #else
31724 # include <assert.h>
31725 #endif
31726
31727 #undef $ac_func
31728
31729 /* Override any GCC internal prototype to avoid an error.
31730    Use char because int might match the return type of a GCC
31731    builtin and then its argument prototype would still apply.  */
31732 #ifdef __cplusplus
31733 extern "C"
31734 #endif
31735 char $ac_func ();
31736 /* The GNU C library defines this for functions which it implements
31737     to always fail with ENOSYS.  Some functions are actually named
31738     something starting with __ and the normal name is an alias.  */
31739 #if defined __stub_$ac_func || defined __stub___$ac_func
31740 choke me
31741 #endif
31742
31743 int
31744 main ()
31745 {
31746 return $ac_func ();
31747   ;
31748   return 0;
31749 }
31750 _ACEOF
31751 rm -f conftest.$ac_objext conftest$ac_exeext
31752 if { (ac_try="$ac_link"
31753 case "(($ac_try" in
31754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31755   *) ac_try_echo=$ac_try;;
31756 esac
31757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31758   (eval "$ac_link") 2>conftest.er1
31759   ac_status=$?
31760   grep -v '^ *+' conftest.er1 >conftest.err
31761   rm -f conftest.er1
31762   cat conftest.err >&5
31763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31764   (exit $ac_status); } &&
31765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31766   { (case "(($ac_try" in
31767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31768   *) ac_try_echo=$ac_try;;
31769 esac
31770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31771   (eval "$ac_try") 2>&5
31772   ac_status=$?
31773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774   (exit $ac_status); }; } &&
31775          { ac_try='test -s conftest$ac_exeext'
31776   { (case "(($ac_try" in
31777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31778   *) ac_try_echo=$ac_try;;
31779 esac
31780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31781   (eval "$ac_try") 2>&5
31782   ac_status=$?
31783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784   (exit $ac_status); }; }; then
31785   eval "$as_ac_var=yes"
31786 else
31787   echo "$as_me: failed program was:" >&5
31788 sed 's/^/| /' conftest.$ac_ext >&5
31789
31790         eval "$as_ac_var=no"
31791 fi
31792
31793 rm -f core conftest.err conftest.$ac_objext \
31794       conftest$ac_exeext conftest.$ac_ext
31795 fi
31796 ac_res=`eval echo '${'$as_ac_var'}'`
31797                { echo "$as_me:$LINENO: result: $ac_res" >&5
31798 echo "${ECHO_T}$ac_res" >&6; }
31799 if test `eval echo '${'$as_ac_var'}'` = yes; then
31800
31801 cat >>confdefs.h <<_ACEOF
31802 #define CRAY_STACKSEG_END $ac_func
31803 _ACEOF
31804
31805     break
31806 fi
31807
31808   done
31809 fi
31810
31811 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31812 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31813 if test "${ac_cv_c_stack_direction+set}" = set; then
31814   echo $ECHO_N "(cached) $ECHO_C" >&6
31815 else
31816   if test "$cross_compiling" = yes; then
31817   ac_cv_c_stack_direction=0
31818 else
31819   cat >conftest.$ac_ext <<_ACEOF
31820 /* confdefs.h.  */
31821 _ACEOF
31822 cat confdefs.h >>conftest.$ac_ext
31823 cat >>conftest.$ac_ext <<_ACEOF
31824 /* end confdefs.h.  */
31825 $ac_includes_default
31826 int
31827 find_stack_direction ()
31828 {
31829   static char *addr = 0;
31830   auto char dummy;
31831   if (addr == 0)
31832     {
31833       addr = &dummy;
31834       return find_stack_direction ();
31835     }
31836   else
31837     return (&dummy > addr) ? 1 : -1;
31838 }
31839
31840 int
31841 main ()
31842 {
31843   return find_stack_direction () < 0;
31844 }
31845 _ACEOF
31846 rm -f conftest$ac_exeext
31847 if { (ac_try="$ac_link"
31848 case "(($ac_try" in
31849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31850   *) ac_try_echo=$ac_try;;
31851 esac
31852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31853   (eval "$ac_link") 2>&5
31854   ac_status=$?
31855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31857   { (case "(($ac_try" in
31858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31859   *) ac_try_echo=$ac_try;;
31860 esac
31861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31862   (eval "$ac_try") 2>&5
31863   ac_status=$?
31864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31865   (exit $ac_status); }; }; then
31866   ac_cv_c_stack_direction=1
31867 else
31868   echo "$as_me: program exited with status $ac_status" >&5
31869 echo "$as_me: failed program was:" >&5
31870 sed 's/^/| /' conftest.$ac_ext >&5
31871
31872 ( exit $ac_status )
31873 ac_cv_c_stack_direction=-1
31874 fi
31875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31876 fi
31877
31878
31879 fi
31880 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31881 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31882
31883 cat >>confdefs.h <<_ACEOF
31884 #define STACK_DIRECTION $ac_cv_c_stack_direction
31885 _ACEOF
31886
31887
31888 fi
31889
31890
31891 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31892 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31893 if test "${ac_cv_func_rand48+set}" = set; then
31894   echo $ECHO_N "(cached) $ECHO_C" >&6
31895 else
31896   ac_ext=cpp
31897 ac_cpp='$CXXCPP $CPPFLAGS'
31898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31901
31902    cat >conftest.$ac_ext <<_ACEOF
31903 /* confdefs.h.  */
31904 _ACEOF
31905 cat confdefs.h >>conftest.$ac_ext
31906 cat >>conftest.$ac_ext <<_ACEOF
31907 /* end confdefs.h.  */
31908 #include <stdlib.h>
31909 int
31910 main ()
31911 {
31912 srand48(0);lrand48();drand48();
31913   ;
31914   return 0;
31915 }
31916 _ACEOF
31917 rm -f conftest.$ac_objext
31918 if { (ac_try="$ac_compile"
31919 case "(($ac_try" in
31920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921   *) ac_try_echo=$ac_try;;
31922 esac
31923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924   (eval "$ac_compile") 2>conftest.er1
31925   ac_status=$?
31926   grep -v '^ *+' conftest.er1 >conftest.err
31927   rm -f conftest.er1
31928   cat conftest.err >&5
31929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930   (exit $ac_status); } &&
31931          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31932   { (case "(($ac_try" in
31933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31934   *) ac_try_echo=$ac_try;;
31935 esac
31936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31937   (eval "$ac_try") 2>&5
31938   ac_status=$?
31939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940   (exit $ac_status); }; } &&
31941          { ac_try='test -s conftest.$ac_objext'
31942   { (case "(($ac_try" in
31943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31944   *) ac_try_echo=$ac_try;;
31945 esac
31946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31947   (eval "$ac_try") 2>&5
31948   ac_status=$?
31949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950   (exit $ac_status); }; }; then
31951   ac_cv_func_rand48=yes
31952 else
31953   echo "$as_me: failed program was:" >&5
31954 sed 's/^/| /' conftest.$ac_ext >&5
31955
31956         ac_cv_func_rand48=no
31957 fi
31958
31959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31960   ac_ext=c
31961 ac_cpp='$CPP $CPPFLAGS'
31962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31965
31966 fi
31967 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31968 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31969
31970 if test "$ac_cv_func_rand48" = "yes" ; then
31971
31972 cat >>confdefs.h <<\_ACEOF
31973 #define HAVE_RAND48 1
31974 _ACEOF
31975
31976 fi
31977
31978
31979 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31980 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31981 if test "${ac_cv_cxx_namespaces+set}" = set; then
31982   echo $ECHO_N "(cached) $ECHO_C" >&6
31983 else
31984   ac_ext=cpp
31985 ac_cpp='$CXXCPP $CPPFLAGS'
31986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31989
31990  cat >conftest.$ac_ext <<_ACEOF
31991 /* confdefs.h.  */
31992 _ACEOF
31993 cat confdefs.h >>conftest.$ac_ext
31994 cat >>conftest.$ac_ext <<_ACEOF
31995 /* end confdefs.h.  */
31996 namespace Outer { namespace Inner { int i = 0; }}
31997 int
31998 main ()
31999 {
32000 using namespace Outer::Inner; return i;
32001   ;
32002   return 0;
32003 }
32004 _ACEOF
32005 rm -f conftest.$ac_objext
32006 if { (ac_try="$ac_compile"
32007 case "(($ac_try" in
32008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009   *) ac_try_echo=$ac_try;;
32010 esac
32011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012   (eval "$ac_compile") 2>conftest.er1
32013   ac_status=$?
32014   grep -v '^ *+' conftest.er1 >conftest.err
32015   rm -f conftest.er1
32016   cat conftest.err >&5
32017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018   (exit $ac_status); } &&
32019          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32020   { (case "(($ac_try" in
32021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32022   *) ac_try_echo=$ac_try;;
32023 esac
32024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32025   (eval "$ac_try") 2>&5
32026   ac_status=$?
32027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028   (exit $ac_status); }; } &&
32029          { ac_try='test -s conftest.$ac_objext'
32030   { (case "(($ac_try" in
32031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32032   *) ac_try_echo=$ac_try;;
32033 esac
32034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32035   (eval "$ac_try") 2>&5
32036   ac_status=$?
32037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038   (exit $ac_status); }; }; then
32039   ac_cv_cxx_namespaces=yes
32040 else
32041   echo "$as_me: failed program was:" >&5
32042 sed 's/^/| /' conftest.$ac_ext >&5
32043
32044         ac_cv_cxx_namespaces=no
32045 fi
32046
32047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32048  ac_ext=c
32049 ac_cpp='$CPP $CPPFLAGS'
32050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32053
32054
32055 fi
32056 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32057 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32058 if test "$ac_cv_cxx_namespaces" = yes; then
32059
32060 cat >>confdefs.h <<\_ACEOF
32061 #define HAVE_NAMESPACES
32062 _ACEOF
32063
32064 fi
32065
32066 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
32067 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
32068 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
32069   echo $ECHO_N "(cached) $ECHO_C" >&6
32070 else
32071
32072   ac_ext=cpp
32073 ac_cpp='$CXXCPP $CPPFLAGS'
32074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32077
32078   cat >conftest.$ac_ext <<_ACEOF
32079 /* confdefs.h.  */
32080 _ACEOF
32081 cat confdefs.h >>conftest.$ac_ext
32082 cat >>conftest.$ac_ext <<_ACEOF
32083 /* end confdefs.h.  */
32084 #include <ext/hash_map>
32085 #ifdef HAVE_NAMESPACES
32086 using namespace std;
32087 #endif
32088 int
32089 main ()
32090 {
32091 hash_map<int, int> t;
32092   ;
32093   return 0;
32094 }
32095 _ACEOF
32096 rm -f conftest.$ac_objext
32097 if { (ac_try="$ac_compile"
32098 case "(($ac_try" in
32099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32100   *) ac_try_echo=$ac_try;;
32101 esac
32102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32103   (eval "$ac_compile") 2>conftest.er1
32104   ac_status=$?
32105   grep -v '^ *+' conftest.er1 >conftest.err
32106   rm -f conftest.er1
32107   cat conftest.err >&5
32108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109   (exit $ac_status); } &&
32110          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32111   { (case "(($ac_try" in
32112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32113   *) ac_try_echo=$ac_try;;
32114 esac
32115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32116   (eval "$ac_try") 2>&5
32117   ac_status=$?
32118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119   (exit $ac_status); }; } &&
32120          { ac_try='test -s conftest.$ac_objext'
32121   { (case "(($ac_try" in
32122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32123   *) ac_try_echo=$ac_try;;
32124 esac
32125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32126   (eval "$ac_try") 2>&5
32127   ac_status=$?
32128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129   (exit $ac_status); }; }; then
32130   ac_cv_cxx_have_std_ext_hash_map=yes
32131 else
32132   echo "$as_me: failed program was:" >&5
32133 sed 's/^/| /' conftest.$ac_ext >&5
32134
32135         ac_cv_cxx_have_std_ext_hash_map=no
32136 fi
32137
32138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32139   ac_ext=c
32140 ac_cpp='$CPP $CPPFLAGS'
32141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32144
32145 fi
32146 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32147 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
32148  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32149  then
32150
32151 cat >>confdefs.h <<\_ACEOF
32152 #define HAVE_STD_EXT_HASH_MAP 1
32153 _ACEOF
32154
32155  else
32156
32157 cat >>confdefs.h <<\_ACEOF
32158 #define HAVE_STD_EXT_HASH_MAP 0
32159 _ACEOF
32160
32161  fi
32162
32163  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32164 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
32165 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32166   echo $ECHO_N "(cached) $ECHO_C" >&6
32167 else
32168
32169   ac_ext=cpp
32170 ac_cpp='$CXXCPP $CPPFLAGS'
32171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32174
32175   cat >conftest.$ac_ext <<_ACEOF
32176 /* confdefs.h.  */
32177 _ACEOF
32178 cat confdefs.h >>conftest.$ac_ext
32179 cat >>conftest.$ac_ext <<_ACEOF
32180 /* end confdefs.h.  */
32181 #include <ext/hash_map>
32182 #ifdef HAVE_NAMESPACES
32183 using namespace __gnu_cxx;
32184 #endif
32185 int
32186 main ()
32187 {
32188 hash_map<int,int> t;
32189   ;
32190   return 0;
32191 }
32192 _ACEOF
32193 rm -f conftest.$ac_objext
32194 if { (ac_try="$ac_compile"
32195 case "(($ac_try" in
32196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32197   *) ac_try_echo=$ac_try;;
32198 esac
32199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32200   (eval "$ac_compile") 2>conftest.er1
32201   ac_status=$?
32202   grep -v '^ *+' conftest.er1 >conftest.err
32203   rm -f conftest.er1
32204   cat conftest.err >&5
32205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206   (exit $ac_status); } &&
32207          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32208   { (case "(($ac_try" in
32209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32210   *) ac_try_echo=$ac_try;;
32211 esac
32212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32213   (eval "$ac_try") 2>&5
32214   ac_status=$?
32215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216   (exit $ac_status); }; } &&
32217          { ac_try='test -s conftest.$ac_objext'
32218   { (case "(($ac_try" in
32219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32220   *) ac_try_echo=$ac_try;;
32221 esac
32222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32223   (eval "$ac_try") 2>&5
32224   ac_status=$?
32225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226   (exit $ac_status); }; }; then
32227   ac_cv_cxx_have_gnu_ext_hash_map=yes
32228 else
32229   echo "$as_me: failed program was:" >&5
32230 sed 's/^/| /' conftest.$ac_ext >&5
32231
32232         ac_cv_cxx_have_gnu_ext_hash_map=no
32233 fi
32234
32235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32236   ac_ext=c
32237 ac_cpp='$CPP $CPPFLAGS'
32238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32241
32242 fi
32243 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32244 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32245  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32246  then
32247
32248 cat >>confdefs.h <<\_ACEOF
32249 #define HAVE_GNU_EXT_HASH_MAP 1
32250 _ACEOF
32251
32252  else
32253
32254 cat >>confdefs.h <<\_ACEOF
32255 #define HAVE_GNU_EXT_HASH_MAP 0
32256 _ACEOF
32257
32258  fi
32259
32260  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32261 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32262 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32263   echo $ECHO_N "(cached) $ECHO_C" >&6
32264 else
32265
32266   ac_ext=cpp
32267 ac_cpp='$CXXCPP $CPPFLAGS'
32268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32271
32272   cat >conftest.$ac_ext <<_ACEOF
32273 /* confdefs.h.  */
32274 _ACEOF
32275 cat confdefs.h >>conftest.$ac_ext
32276 cat >>conftest.$ac_ext <<_ACEOF
32277 /* end confdefs.h.  */
32278 #include <hash_map>
32279 int
32280 main ()
32281 {
32282 hash_map<int,int> t;
32283   ;
32284   return 0;
32285 }
32286 _ACEOF
32287 rm -f conftest.$ac_objext
32288 if { (ac_try="$ac_compile"
32289 case "(($ac_try" in
32290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32291   *) ac_try_echo=$ac_try;;
32292 esac
32293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32294   (eval "$ac_compile") 2>conftest.er1
32295   ac_status=$?
32296   grep -v '^ *+' conftest.er1 >conftest.err
32297   rm -f conftest.er1
32298   cat conftest.err >&5
32299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300   (exit $ac_status); } &&
32301          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32302   { (case "(($ac_try" in
32303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32304   *) ac_try_echo=$ac_try;;
32305 esac
32306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32307   (eval "$ac_try") 2>&5
32308   ac_status=$?
32309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32310   (exit $ac_status); }; } &&
32311          { ac_try='test -s conftest.$ac_objext'
32312   { (case "(($ac_try" in
32313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32314   *) ac_try_echo=$ac_try;;
32315 esac
32316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32317   (eval "$ac_try") 2>&5
32318   ac_status=$?
32319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32320   (exit $ac_status); }; }; then
32321   ac_cv_cxx_have_global_hash_map=yes
32322 else
32323   echo "$as_me: failed program was:" >&5
32324 sed 's/^/| /' conftest.$ac_ext >&5
32325
32326         ac_cv_cxx_have_global_hash_map=no
32327 fi
32328
32329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32330   ac_ext=c
32331 ac_cpp='$CPP $CPPFLAGS'
32332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32335
32336 fi
32337 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32338 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32339  if test "$ac_cv_cxx_have_global_hash_map" = yes
32340  then
32341
32342 cat >>confdefs.h <<\_ACEOF
32343 #define HAVE_GLOBAL_HASH_MAP 1
32344 _ACEOF
32345
32346  else
32347
32348 cat >>confdefs.h <<\_ACEOF
32349 #define HAVE_GLOBAL_HASH_MAP 0
32350 _ACEOF
32351
32352  fi
32353
32354 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32355 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32356 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32357   echo $ECHO_N "(cached) $ECHO_C" >&6
32358 else
32359
32360   ac_ext=cpp
32361 ac_cpp='$CXXCPP $CPPFLAGS'
32362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32365
32366   cat >conftest.$ac_ext <<_ACEOF
32367 /* confdefs.h.  */
32368 _ACEOF
32369 cat confdefs.h >>conftest.$ac_ext
32370 cat >>conftest.$ac_ext <<_ACEOF
32371 /* end confdefs.h.  */
32372 #include <ext/hash_set>
32373 #ifdef HAVE_NAMESPACES
32374 using namespace std;
32375 #endif
32376 int
32377 main ()
32378 {
32379 hash_set<int> t;
32380   ;
32381   return 0;
32382 }
32383 _ACEOF
32384 rm -f conftest.$ac_objext
32385 if { (ac_try="$ac_compile"
32386 case "(($ac_try" in
32387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32388   *) ac_try_echo=$ac_try;;
32389 esac
32390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32391   (eval "$ac_compile") 2>conftest.er1
32392   ac_status=$?
32393   grep -v '^ *+' conftest.er1 >conftest.err
32394   rm -f conftest.er1
32395   cat conftest.err >&5
32396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397   (exit $ac_status); } &&
32398          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32399   { (case "(($ac_try" in
32400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32401   *) ac_try_echo=$ac_try;;
32402 esac
32403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32404   (eval "$ac_try") 2>&5
32405   ac_status=$?
32406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407   (exit $ac_status); }; } &&
32408          { ac_try='test -s conftest.$ac_objext'
32409   { (case "(($ac_try" in
32410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32411   *) ac_try_echo=$ac_try;;
32412 esac
32413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32414   (eval "$ac_try") 2>&5
32415   ac_status=$?
32416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417   (exit $ac_status); }; }; then
32418   ac_cv_cxx_have_std_ext_hash_set=yes
32419 else
32420   echo "$as_me: failed program was:" >&5
32421 sed 's/^/| /' conftest.$ac_ext >&5
32422
32423         ac_cv_cxx_have_std_ext_hash_set=no
32424 fi
32425
32426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32427   ac_ext=c
32428 ac_cpp='$CPP $CPPFLAGS'
32429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32432
32433 fi
32434 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32435 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32436  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32437  then
32438
32439 cat >>confdefs.h <<\_ACEOF
32440 #define HAVE_STD_EXT_HASH_SET 1
32441 _ACEOF
32442
32443  else
32444
32445 cat >>confdefs.h <<\_ACEOF
32446 #define HAVE_STD_EXT_HASH_SET 0
32447 _ACEOF
32448
32449  fi
32450
32451  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32452 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32453 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32454   echo $ECHO_N "(cached) $ECHO_C" >&6
32455 else
32456
32457   ac_ext=cpp
32458 ac_cpp='$CXXCPP $CPPFLAGS'
32459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32462
32463   cat >conftest.$ac_ext <<_ACEOF
32464 /* confdefs.h.  */
32465 _ACEOF
32466 cat confdefs.h >>conftest.$ac_ext
32467 cat >>conftest.$ac_ext <<_ACEOF
32468 /* end confdefs.h.  */
32469 #include <ext/hash_set>
32470 #ifdef HAVE_NAMESPACES
32471 using namespace __gnu_cxx;
32472 #endif
32473 int
32474 main ()
32475 {
32476 hash_set<int> t;
32477   ;
32478   return 0;
32479 }
32480 _ACEOF
32481 rm -f conftest.$ac_objext
32482 if { (ac_try="$ac_compile"
32483 case "(($ac_try" in
32484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32485   *) ac_try_echo=$ac_try;;
32486 esac
32487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32488   (eval "$ac_compile") 2>conftest.er1
32489   ac_status=$?
32490   grep -v '^ *+' conftest.er1 >conftest.err
32491   rm -f conftest.er1
32492   cat conftest.err >&5
32493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32494   (exit $ac_status); } &&
32495          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32496   { (case "(($ac_try" in
32497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498   *) ac_try_echo=$ac_try;;
32499 esac
32500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32501   (eval "$ac_try") 2>&5
32502   ac_status=$?
32503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504   (exit $ac_status); }; } &&
32505          { ac_try='test -s conftest.$ac_objext'
32506   { (case "(($ac_try" in
32507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32508   *) ac_try_echo=$ac_try;;
32509 esac
32510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32511   (eval "$ac_try") 2>&5
32512   ac_status=$?
32513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514   (exit $ac_status); }; }; then
32515   ac_cv_cxx_have_gnu_ext_hash_set=yes
32516 else
32517   echo "$as_me: failed program was:" >&5
32518 sed 's/^/| /' conftest.$ac_ext >&5
32519
32520         ac_cv_cxx_have_gnu_ext_hash_set=no
32521 fi
32522
32523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32524   ac_ext=c
32525 ac_cpp='$CPP $CPPFLAGS'
32526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32529
32530 fi
32531 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32532 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32533  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32534  then
32535
32536 cat >>confdefs.h <<\_ACEOF
32537 #define HAVE_GNU_EXT_HASH_SET 1
32538 _ACEOF
32539
32540  else
32541
32542 cat >>confdefs.h <<\_ACEOF
32543 #define HAVE_GNU_EXT_HASH_SET 0
32544 _ACEOF
32545
32546  fi
32547
32548  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32549 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32550 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32551   echo $ECHO_N "(cached) $ECHO_C" >&6
32552 else
32553
32554   ac_ext=cpp
32555 ac_cpp='$CXXCPP $CPPFLAGS'
32556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32559
32560   cat >conftest.$ac_ext <<_ACEOF
32561 /* confdefs.h.  */
32562 _ACEOF
32563 cat confdefs.h >>conftest.$ac_ext
32564 cat >>conftest.$ac_ext <<_ACEOF
32565 /* end confdefs.h.  */
32566 #include <hash_set>
32567 int
32568 main ()
32569 {
32570 hash_set<int> t; return 0;
32571   ;
32572   return 0;
32573 }
32574 _ACEOF
32575 rm -f conftest.$ac_objext
32576 if { (ac_try="$ac_compile"
32577 case "(($ac_try" in
32578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32579   *) ac_try_echo=$ac_try;;
32580 esac
32581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32582   (eval "$ac_compile") 2>conftest.er1
32583   ac_status=$?
32584   grep -v '^ *+' conftest.er1 >conftest.err
32585   rm -f conftest.er1
32586   cat conftest.err >&5
32587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588   (exit $ac_status); } &&
32589          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32590   { (case "(($ac_try" in
32591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32592   *) ac_try_echo=$ac_try;;
32593 esac
32594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32595   (eval "$ac_try") 2>&5
32596   ac_status=$?
32597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598   (exit $ac_status); }; } &&
32599          { ac_try='test -s conftest.$ac_objext'
32600   { (case "(($ac_try" in
32601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32602   *) ac_try_echo=$ac_try;;
32603 esac
32604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32605   (eval "$ac_try") 2>&5
32606   ac_status=$?
32607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608   (exit $ac_status); }; }; then
32609   ac_cv_cxx_have_global_hash_set=yes
32610 else
32611   echo "$as_me: failed program was:" >&5
32612 sed 's/^/| /' conftest.$ac_ext >&5
32613
32614         ac_cv_cxx_have_global_hash_set=no
32615 fi
32616
32617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32618   ac_ext=c
32619 ac_cpp='$CPP $CPPFLAGS'
32620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32623
32624 fi
32625 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32626 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32627  if test "$ac_cv_cxx_have_global_hash_set" = yes
32628  then
32629
32630 cat >>confdefs.h <<\_ACEOF
32631 #define HAVE_GLOBAL_HASH_SET 1
32632 _ACEOF
32633
32634  else
32635
32636 cat >>confdefs.h <<\_ACEOF
32637 #define HAVE_GLOBAL_HASH_SET 0
32638 _ACEOF
32639
32640  fi
32641
32642 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32643 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32644 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32645   echo $ECHO_N "(cached) $ECHO_C" >&6
32646 else
32647
32648   ac_ext=cpp
32649 ac_cpp='$CXXCPP $CPPFLAGS'
32650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32653
32654   cat >conftest.$ac_ext <<_ACEOF
32655 /* confdefs.h.  */
32656 _ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h.  */
32660 #include <iterator>
32661 #ifdef HAVE_NAMESPACES
32662 using namespace std;
32663 #endif
32664 int
32665 main ()
32666 {
32667 iterator<int,int,int> t; return 0;
32668   ;
32669   return 0;
32670 }
32671 _ACEOF
32672 rm -f conftest.$ac_objext
32673 if { (ac_try="$ac_compile"
32674 case "(($ac_try" in
32675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32676   *) ac_try_echo=$ac_try;;
32677 esac
32678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32679   (eval "$ac_compile") 2>conftest.er1
32680   ac_status=$?
32681   grep -v '^ *+' conftest.er1 >conftest.err
32682   rm -f conftest.er1
32683   cat conftest.err >&5
32684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685   (exit $ac_status); } &&
32686          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32687   { (case "(($ac_try" in
32688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32689   *) ac_try_echo=$ac_try;;
32690 esac
32691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32692   (eval "$ac_try") 2>&5
32693   ac_status=$?
32694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695   (exit $ac_status); }; } &&
32696          { ac_try='test -s conftest.$ac_objext'
32697   { (case "(($ac_try" in
32698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32699   *) ac_try_echo=$ac_try;;
32700 esac
32701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32702   (eval "$ac_try") 2>&5
32703   ac_status=$?
32704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705   (exit $ac_status); }; }; then
32706   ac_cv_cxx_have_std_iterator=yes
32707 else
32708   echo "$as_me: failed program was:" >&5
32709 sed 's/^/| /' conftest.$ac_ext >&5
32710
32711         ac_cv_cxx_have_std_iterator=no
32712 fi
32713
32714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32715   ac_ext=c
32716 ac_cpp='$CPP $CPPFLAGS'
32717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32720
32721
32722 fi
32723 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32724 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32725 if test "$ac_cv_cxx_have_std_iterator" = yes
32726 then
32727
32728 cat >>confdefs.h <<\_ACEOF
32729 #define HAVE_STD_ITERATOR 1
32730 _ACEOF
32731
32732 else
32733
32734 cat >>confdefs.h <<\_ACEOF
32735 #define HAVE_STD_ITERATOR 0
32736 _ACEOF
32737
32738 fi
32739
32740 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32741 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32742 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32743   echo $ECHO_N "(cached) $ECHO_C" >&6
32744 else
32745
32746   ac_ext=cpp
32747 ac_cpp='$CXXCPP $CPPFLAGS'
32748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32751
32752   cat >conftest.$ac_ext <<_ACEOF
32753 /* confdefs.h.  */
32754 _ACEOF
32755 cat confdefs.h >>conftest.$ac_ext
32756 cat >>conftest.$ac_ext <<_ACEOF
32757 /* end confdefs.h.  */
32758 #include <iterator>
32759 #ifdef HAVE_NAMESPACES
32760 using namespace std;
32761 #endif
32762 int
32763 main ()
32764 {
32765 bidirectional_iterator<int,int> t; return 0;
32766   ;
32767   return 0;
32768 }
32769 _ACEOF
32770 rm -f conftest.$ac_objext
32771 if { (ac_try="$ac_compile"
32772 case "(($ac_try" in
32773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32774   *) ac_try_echo=$ac_try;;
32775 esac
32776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32777   (eval "$ac_compile") 2>conftest.er1
32778   ac_status=$?
32779   grep -v '^ *+' conftest.er1 >conftest.err
32780   rm -f conftest.er1
32781   cat conftest.err >&5
32782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32783   (exit $ac_status); } &&
32784          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32785   { (case "(($ac_try" in
32786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32787   *) ac_try_echo=$ac_try;;
32788 esac
32789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32790   (eval "$ac_try") 2>&5
32791   ac_status=$?
32792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32793   (exit $ac_status); }; } &&
32794          { ac_try='test -s conftest.$ac_objext'
32795   { (case "(($ac_try" in
32796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32797   *) ac_try_echo=$ac_try;;
32798 esac
32799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32800   (eval "$ac_try") 2>&5
32801   ac_status=$?
32802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32803   (exit $ac_status); }; }; then
32804   ac_cv_cxx_have_bi_iterator=yes
32805 else
32806   echo "$as_me: failed program was:" >&5
32807 sed 's/^/| /' conftest.$ac_ext >&5
32808
32809         ac_cv_cxx_have_bi_iterator=no
32810 fi
32811
32812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32813   ac_ext=c
32814 ac_cpp='$CPP $CPPFLAGS'
32815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32818
32819
32820 fi
32821 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32822 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32823 if test "$ac_cv_cxx_have_bi_iterator" = yes
32824 then
32825
32826 cat >>confdefs.h <<\_ACEOF
32827 #define HAVE_BI_ITERATOR 1
32828 _ACEOF
32829
32830 else
32831
32832 cat >>confdefs.h <<\_ACEOF
32833 #define HAVE_BI_ITERATOR 0
32834 _ACEOF
32835
32836 fi
32837
32838 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32839 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32840 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32841   echo $ECHO_N "(cached) $ECHO_C" >&6
32842 else
32843
32844   ac_ext=cpp
32845 ac_cpp='$CXXCPP $CPPFLAGS'
32846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32849
32850   cat >conftest.$ac_ext <<_ACEOF
32851 /* confdefs.h.  */
32852 _ACEOF
32853 cat confdefs.h >>conftest.$ac_ext
32854 cat >>conftest.$ac_ext <<_ACEOF
32855 /* end confdefs.h.  */
32856 #include <iterator>
32857 #ifdef HAVE_NAMESPACES
32858 using namespace std;
32859 #endif
32860 int
32861 main ()
32862 {
32863 forward_iterator<int,int> t; return 0;
32864   ;
32865   return 0;
32866 }
32867 _ACEOF
32868 rm -f conftest.$ac_objext
32869 if { (ac_try="$ac_compile"
32870 case "(($ac_try" in
32871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32872   *) ac_try_echo=$ac_try;;
32873 esac
32874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32875   (eval "$ac_compile") 2>conftest.er1
32876   ac_status=$?
32877   grep -v '^ *+' conftest.er1 >conftest.err
32878   rm -f conftest.er1
32879   cat conftest.err >&5
32880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32881   (exit $ac_status); } &&
32882          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32883   { (case "(($ac_try" in
32884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32885   *) ac_try_echo=$ac_try;;
32886 esac
32887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32888   (eval "$ac_try") 2>&5
32889   ac_status=$?
32890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32891   (exit $ac_status); }; } &&
32892          { ac_try='test -s conftest.$ac_objext'
32893   { (case "(($ac_try" in
32894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32895   *) ac_try_echo=$ac_try;;
32896 esac
32897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32898   (eval "$ac_try") 2>&5
32899   ac_status=$?
32900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901   (exit $ac_status); }; }; then
32902   ac_cv_cxx_have_fwd_iterator=yes
32903 else
32904   echo "$as_me: failed program was:" >&5
32905 sed 's/^/| /' conftest.$ac_ext >&5
32906
32907         ac_cv_cxx_have_fwd_iterator=no
32908 fi
32909
32910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32911   ac_ext=c
32912 ac_cpp='$CPP $CPPFLAGS'
32913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32916
32917
32918 fi
32919 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32920 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32921 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32922 then
32923
32924 cat >>confdefs.h <<\_ACEOF
32925 #define HAVE_FWD_ITERATOR 1
32926 _ACEOF
32927
32928 else
32929
32930 cat >>confdefs.h <<\_ACEOF
32931 #define HAVE_FWD_ITERATOR 0
32932 _ACEOF
32933
32934 fi
32935
32936
32937 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32938 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32939 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32940   echo $ECHO_N "(cached) $ECHO_C" >&6
32941 else
32942   ac_ext=cpp
32943 ac_cpp='$CXXCPP $CPPFLAGS'
32944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32947
32948    cat >conftest.$ac_ext <<_ACEOF
32949 /* confdefs.h.  */
32950 _ACEOF
32951 cat confdefs.h >>conftest.$ac_ext
32952 cat >>conftest.$ac_ext <<_ACEOF
32953 /* end confdefs.h.  */
32954 #include <math.h>
32955 int
32956 main ()
32957 {
32958 float f; isnan(f);
32959   ;
32960   return 0;
32961 }
32962 _ACEOF
32963 rm -f conftest.$ac_objext
32964 if { (ac_try="$ac_compile"
32965 case "(($ac_try" in
32966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32967   *) ac_try_echo=$ac_try;;
32968 esac
32969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32970   (eval "$ac_compile") 2>conftest.er1
32971   ac_status=$?
32972   grep -v '^ *+' conftest.er1 >conftest.err
32973   rm -f conftest.er1
32974   cat conftest.err >&5
32975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32976   (exit $ac_status); } &&
32977          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32978   { (case "(($ac_try" in
32979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32980   *) ac_try_echo=$ac_try;;
32981 esac
32982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32983   (eval "$ac_try") 2>&5
32984   ac_status=$?
32985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986   (exit $ac_status); }; } &&
32987          { ac_try='test -s conftest.$ac_objext'
32988   { (case "(($ac_try" in
32989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32990   *) ac_try_echo=$ac_try;;
32991 esac
32992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32993   (eval "$ac_try") 2>&5
32994   ac_status=$?
32995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996   (exit $ac_status); }; }; then
32997   ac_cv_func_isnan_in_math_h=yes
32998 else
32999   echo "$as_me: failed program was:" >&5
33000 sed 's/^/| /' conftest.$ac_ext >&5
33001
33002         ac_cv_func_isnan_in_math_h=no
33003 fi
33004
33005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33006   ac_ext=c
33007 ac_cpp='$CPP $CPPFLAGS'
33008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33011
33012 fi
33013 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33014 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33015
33016
33017 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33018
33019 cat >>confdefs.h <<\_ACEOF
33020 #define HAVE_ISNAN_IN_MATH_H 1
33021 _ACEOF
33022
33023 fi
33024
33025 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33026 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33027 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33028   echo $ECHO_N "(cached) $ECHO_C" >&6
33029 else
33030   ac_ext=cpp
33031 ac_cpp='$CXXCPP $CPPFLAGS'
33032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33035
33036    cat >conftest.$ac_ext <<_ACEOF
33037 /* confdefs.h.  */
33038 _ACEOF
33039 cat confdefs.h >>conftest.$ac_ext
33040 cat >>conftest.$ac_ext <<_ACEOF
33041 /* end confdefs.h.  */
33042 #include <cmath>
33043 int
33044 main ()
33045 {
33046 float f; isnan(f);
33047   ;
33048   return 0;
33049 }
33050 _ACEOF
33051 rm -f conftest.$ac_objext
33052 if { (ac_try="$ac_compile"
33053 case "(($ac_try" in
33054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33055   *) ac_try_echo=$ac_try;;
33056 esac
33057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33058   (eval "$ac_compile") 2>conftest.er1
33059   ac_status=$?
33060   grep -v '^ *+' conftest.er1 >conftest.err
33061   rm -f conftest.er1
33062   cat conftest.err >&5
33063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33064   (exit $ac_status); } &&
33065          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33066   { (case "(($ac_try" in
33067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33068   *) ac_try_echo=$ac_try;;
33069 esac
33070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33071   (eval "$ac_try") 2>&5
33072   ac_status=$?
33073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074   (exit $ac_status); }; } &&
33075          { ac_try='test -s conftest.$ac_objext'
33076   { (case "(($ac_try" in
33077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33078   *) ac_try_echo=$ac_try;;
33079 esac
33080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33081   (eval "$ac_try") 2>&5
33082   ac_status=$?
33083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33084   (exit $ac_status); }; }; then
33085   ac_cv_func_isnan_in_cmath=yes
33086 else
33087   echo "$as_me: failed program was:" >&5
33088 sed 's/^/| /' conftest.$ac_ext >&5
33089
33090         ac_cv_func_isnan_in_cmath=no
33091 fi
33092
33093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33094   ac_ext=c
33095 ac_cpp='$CPP $CPPFLAGS'
33096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33099
33100 fi
33101 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33102 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33103
33104 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33105
33106 cat >>confdefs.h <<\_ACEOF
33107 #define HAVE_ISNAN_IN_CMATH 1
33108 _ACEOF
33109
33110 fi
33111
33112 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33113 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33114 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33115   echo $ECHO_N "(cached) $ECHO_C" >&6
33116 else
33117   ac_ext=cpp
33118 ac_cpp='$CXXCPP $CPPFLAGS'
33119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33122
33123    cat >conftest.$ac_ext <<_ACEOF
33124 /* confdefs.h.  */
33125 _ACEOF
33126 cat confdefs.h >>conftest.$ac_ext
33127 cat >>conftest.$ac_ext <<_ACEOF
33128 /* end confdefs.h.  */
33129 #include <cmath>
33130 int
33131 main ()
33132 {
33133 float f; std::isnan(f);
33134   ;
33135   return 0;
33136 }
33137 _ACEOF
33138 rm -f conftest.$ac_objext
33139 if { (ac_try="$ac_compile"
33140 case "(($ac_try" in
33141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33142   *) ac_try_echo=$ac_try;;
33143 esac
33144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33145   (eval "$ac_compile") 2>conftest.er1
33146   ac_status=$?
33147   grep -v '^ *+' conftest.er1 >conftest.err
33148   rm -f conftest.er1
33149   cat conftest.err >&5
33150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151   (exit $ac_status); } &&
33152          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33153   { (case "(($ac_try" in
33154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33155   *) ac_try_echo=$ac_try;;
33156 esac
33157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33158   (eval "$ac_try") 2>&5
33159   ac_status=$?
33160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161   (exit $ac_status); }; } &&
33162          { ac_try='test -s conftest.$ac_objext'
33163   { (case "(($ac_try" in
33164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33165   *) ac_try_echo=$ac_try;;
33166 esac
33167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33168   (eval "$ac_try") 2>&5
33169   ac_status=$?
33170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33171   (exit $ac_status); }; }; then
33172   ac_cv_func_std_isnan_in_cmath=yes
33173 else
33174   echo "$as_me: failed program was:" >&5
33175 sed 's/^/| /' conftest.$ac_ext >&5
33176
33177         ac_cv_func_std_isnan_in_cmath=no
33178 fi
33179
33180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33181   ac_ext=c
33182 ac_cpp='$CPP $CPPFLAGS'
33183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33186
33187 fi
33188 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33189 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33190
33191 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33192
33193 cat >>confdefs.h <<\_ACEOF
33194 #define HAVE_STD_ISNAN_IN_CMATH 1
33195 _ACEOF
33196
33197 fi
33198
33199
33200 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33201 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33202 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33203   echo $ECHO_N "(cached) $ECHO_C" >&6
33204 else
33205   ac_ext=cpp
33206 ac_cpp='$CXXCPP $CPPFLAGS'
33207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33210
33211    cat >conftest.$ac_ext <<_ACEOF
33212 /* confdefs.h.  */
33213 _ACEOF
33214 cat confdefs.h >>conftest.$ac_ext
33215 cat >>conftest.$ac_ext <<_ACEOF
33216 /* end confdefs.h.  */
33217 #include <math.h>
33218 int
33219 main ()
33220 {
33221 float f; isinf(f);
33222   ;
33223   return 0;
33224 }
33225 _ACEOF
33226 rm -f conftest.$ac_objext
33227 if { (ac_try="$ac_compile"
33228 case "(($ac_try" in
33229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33230   *) ac_try_echo=$ac_try;;
33231 esac
33232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33233   (eval "$ac_compile") 2>conftest.er1
33234   ac_status=$?
33235   grep -v '^ *+' conftest.er1 >conftest.err
33236   rm -f conftest.er1
33237   cat conftest.err >&5
33238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239   (exit $ac_status); } &&
33240          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33241   { (case "(($ac_try" in
33242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33243   *) ac_try_echo=$ac_try;;
33244 esac
33245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33246   (eval "$ac_try") 2>&5
33247   ac_status=$?
33248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249   (exit $ac_status); }; } &&
33250          { ac_try='test -s conftest.$ac_objext'
33251   { (case "(($ac_try" in
33252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33253   *) ac_try_echo=$ac_try;;
33254 esac
33255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33256   (eval "$ac_try") 2>&5
33257   ac_status=$?
33258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33259   (exit $ac_status); }; }; then
33260   ac_cv_func_isinf_in_math_h=yes
33261 else
33262   echo "$as_me: failed program was:" >&5
33263 sed 's/^/| /' conftest.$ac_ext >&5
33264
33265         ac_cv_func_isinf_in_math_h=no
33266 fi
33267
33268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33269   ac_ext=c
33270 ac_cpp='$CPP $CPPFLAGS'
33271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33274
33275 fi
33276 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33277 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33278
33279 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33280
33281 cat >>confdefs.h <<\_ACEOF
33282 #define HAVE_ISINF_IN_MATH_H 1
33283 _ACEOF
33284
33285 fi
33286
33287 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33288 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33289 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33290   echo $ECHO_N "(cached) $ECHO_C" >&6
33291 else
33292   ac_ext=cpp
33293 ac_cpp='$CXXCPP $CPPFLAGS'
33294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33297
33298    cat >conftest.$ac_ext <<_ACEOF
33299 /* confdefs.h.  */
33300 _ACEOF
33301 cat confdefs.h >>conftest.$ac_ext
33302 cat >>conftest.$ac_ext <<_ACEOF
33303 /* end confdefs.h.  */
33304 #include <cmath>
33305 int
33306 main ()
33307 {
33308 float f; isinf(f);
33309   ;
33310   return 0;
33311 }
33312 _ACEOF
33313 rm -f conftest.$ac_objext
33314 if { (ac_try="$ac_compile"
33315 case "(($ac_try" in
33316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33317   *) ac_try_echo=$ac_try;;
33318 esac
33319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33320   (eval "$ac_compile") 2>conftest.er1
33321   ac_status=$?
33322   grep -v '^ *+' conftest.er1 >conftest.err
33323   rm -f conftest.er1
33324   cat conftest.err >&5
33325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326   (exit $ac_status); } &&
33327          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33328   { (case "(($ac_try" in
33329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33330   *) ac_try_echo=$ac_try;;
33331 esac
33332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33333   (eval "$ac_try") 2>&5
33334   ac_status=$?
33335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336   (exit $ac_status); }; } &&
33337          { ac_try='test -s conftest.$ac_objext'
33338   { (case "(($ac_try" in
33339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33340   *) ac_try_echo=$ac_try;;
33341 esac
33342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33343   (eval "$ac_try") 2>&5
33344   ac_status=$?
33345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346   (exit $ac_status); }; }; then
33347   ac_cv_func_isinf_in_cmath=yes
33348 else
33349   echo "$as_me: failed program was:" >&5
33350 sed 's/^/| /' conftest.$ac_ext >&5
33351
33352         ac_cv_func_isinf_in_cmath=no
33353 fi
33354
33355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33356   ac_ext=c
33357 ac_cpp='$CPP $CPPFLAGS'
33358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33361
33362 fi
33363 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33364 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33365
33366 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33367
33368 cat >>confdefs.h <<\_ACEOF
33369 #define HAVE_ISINF_IN_CMATH 1
33370 _ACEOF
33371
33372 fi
33373
33374 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33375 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33376 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33377   echo $ECHO_N "(cached) $ECHO_C" >&6
33378 else
33379   ac_ext=cpp
33380 ac_cpp='$CXXCPP $CPPFLAGS'
33381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33384
33385    cat >conftest.$ac_ext <<_ACEOF
33386 /* confdefs.h.  */
33387 _ACEOF
33388 cat confdefs.h >>conftest.$ac_ext
33389 cat >>conftest.$ac_ext <<_ACEOF
33390 /* end confdefs.h.  */
33391 #include <cmath>
33392 int
33393 main ()
33394 {
33395 float f; std::isinf(f)}
33396   ;
33397   return 0;
33398 }
33399 _ACEOF
33400 rm -f conftest.$ac_objext
33401 if { (ac_try="$ac_compile"
33402 case "(($ac_try" in
33403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33404   *) ac_try_echo=$ac_try;;
33405 esac
33406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33407   (eval "$ac_compile") 2>conftest.er1
33408   ac_status=$?
33409   grep -v '^ *+' conftest.er1 >conftest.err
33410   rm -f conftest.er1
33411   cat conftest.err >&5
33412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33413   (exit $ac_status); } &&
33414          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33415   { (case "(($ac_try" in
33416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33417   *) ac_try_echo=$ac_try;;
33418 esac
33419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33420   (eval "$ac_try") 2>&5
33421   ac_status=$?
33422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33423   (exit $ac_status); }; } &&
33424          { ac_try='test -s conftest.$ac_objext'
33425   { (case "(($ac_try" in
33426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33427   *) ac_try_echo=$ac_try;;
33428 esac
33429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33430   (eval "$ac_try") 2>&5
33431   ac_status=$?
33432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433   (exit $ac_status); }; }; then
33434   ac_cv_func_std_isinf_in_cmath=yes
33435 else
33436   echo "$as_me: failed program was:" >&5
33437 sed 's/^/| /' conftest.$ac_ext >&5
33438
33439         ac_cv_func_std_isinf_in_cmath=no
33440 fi
33441
33442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33443   ac_ext=c
33444 ac_cpp='$CPP $CPPFLAGS'
33445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33448
33449 fi
33450 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33451 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33452
33453 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33454
33455 cat >>confdefs.h <<\_ACEOF
33456 #define HAVE_STD_ISINF_IN_CMATH 1
33457 _ACEOF
33458
33459 fi
33460
33461 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33462 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33463 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33464   echo $ECHO_N "(cached) $ECHO_C" >&6
33465 else
33466   ac_ext=cpp
33467 ac_cpp='$CXXCPP $CPPFLAGS'
33468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33471
33472    cat >conftest.$ac_ext <<_ACEOF
33473 /* confdefs.h.  */
33474 _ACEOF
33475 cat confdefs.h >>conftest.$ac_ext
33476 cat >>conftest.$ac_ext <<_ACEOF
33477 /* end confdefs.h.  */
33478 #include <ieeefp.h>
33479 int
33480 main ()
33481 {
33482 float f; finite(f);
33483   ;
33484   return 0;
33485 }
33486 _ACEOF
33487 rm -f conftest.$ac_objext
33488 if { (ac_try="$ac_compile"
33489 case "(($ac_try" in
33490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33491   *) ac_try_echo=$ac_try;;
33492 esac
33493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33494   (eval "$ac_compile") 2>conftest.er1
33495   ac_status=$?
33496   grep -v '^ *+' conftest.er1 >conftest.err
33497   rm -f conftest.er1
33498   cat conftest.err >&5
33499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500   (exit $ac_status); } &&
33501          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33502   { (case "(($ac_try" in
33503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33504   *) ac_try_echo=$ac_try;;
33505 esac
33506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33507   (eval "$ac_try") 2>&5
33508   ac_status=$?
33509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510   (exit $ac_status); }; } &&
33511          { ac_try='test -s conftest.$ac_objext'
33512   { (case "(($ac_try" in
33513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33514   *) ac_try_echo=$ac_try;;
33515 esac
33516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33517   (eval "$ac_try") 2>&5
33518   ac_status=$?
33519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33520   (exit $ac_status); }; }; then
33521   ac_cv_func_finite_in_ieeefp_h=yes
33522 else
33523   echo "$as_me: failed program was:" >&5
33524 sed 's/^/| /' conftest.$ac_ext >&5
33525
33526         ac_cv_func_finite_in_ieeefp_h=no
33527 fi
33528
33529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33530   ac_ext=c
33531 ac_cpp='$CPP $CPPFLAGS'
33532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33535
33536 fi
33537 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33538 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33539
33540 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33541
33542 cat >>confdefs.h <<\_ACEOF
33543 #define HAVE_FINITE_IN_IEEEFP_H 1
33544 _ACEOF
33545
33546 fi
33547
33548
33549
33550 if test "$llvm_cv_platform_type" = "Unix" ; then
33551
33552
33553 for ac_header in stdlib.h unistd.h
33554 do
33555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33557   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33560   echo $ECHO_N "(cached) $ECHO_C" >&6
33561 fi
33562 ac_res=`eval echo '${'$as_ac_Header'}'`
33563                { echo "$as_me:$LINENO: result: $ac_res" >&5
33564 echo "${ECHO_T}$ac_res" >&6; }
33565 else
33566   # Is the header compilable?
33567 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33569 cat >conftest.$ac_ext <<_ACEOF
33570 /* confdefs.h.  */
33571 _ACEOF
33572 cat confdefs.h >>conftest.$ac_ext
33573 cat >>conftest.$ac_ext <<_ACEOF
33574 /* end confdefs.h.  */
33575 $ac_includes_default
33576 #include <$ac_header>
33577 _ACEOF
33578 rm -f conftest.$ac_objext
33579 if { (ac_try="$ac_compile"
33580 case "(($ac_try" in
33581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33582   *) ac_try_echo=$ac_try;;
33583 esac
33584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33585   (eval "$ac_compile") 2>conftest.er1
33586   ac_status=$?
33587   grep -v '^ *+' conftest.er1 >conftest.err
33588   rm -f conftest.er1
33589   cat conftest.err >&5
33590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591   (exit $ac_status); } &&
33592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33593   { (case "(($ac_try" in
33594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33595   *) ac_try_echo=$ac_try;;
33596 esac
33597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33598   (eval "$ac_try") 2>&5
33599   ac_status=$?
33600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601   (exit $ac_status); }; } &&
33602          { ac_try='test -s conftest.$ac_objext'
33603   { (case "(($ac_try" in
33604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33605   *) ac_try_echo=$ac_try;;
33606 esac
33607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33608   (eval "$ac_try") 2>&5
33609   ac_status=$?
33610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611   (exit $ac_status); }; }; then
33612   ac_header_compiler=yes
33613 else
33614   echo "$as_me: failed program was:" >&5
33615 sed 's/^/| /' conftest.$ac_ext >&5
33616
33617         ac_header_compiler=no
33618 fi
33619
33620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33622 echo "${ECHO_T}$ac_header_compiler" >&6; }
33623
33624 # Is the header present?
33625 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33627 cat >conftest.$ac_ext <<_ACEOF
33628 /* confdefs.h.  */
33629 _ACEOF
33630 cat confdefs.h >>conftest.$ac_ext
33631 cat >>conftest.$ac_ext <<_ACEOF
33632 /* end confdefs.h.  */
33633 #include <$ac_header>
33634 _ACEOF
33635 if { (ac_try="$ac_cpp conftest.$ac_ext"
33636 case "(($ac_try" in
33637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33638   *) ac_try_echo=$ac_try;;
33639 esac
33640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33641   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33642   ac_status=$?
33643   grep -v '^ *+' conftest.er1 >conftest.err
33644   rm -f conftest.er1
33645   cat conftest.err >&5
33646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33647   (exit $ac_status); } >/dev/null; then
33648   if test -s conftest.err; then
33649     ac_cpp_err=$ac_c_preproc_warn_flag
33650     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33651   else
33652     ac_cpp_err=
33653   fi
33654 else
33655   ac_cpp_err=yes
33656 fi
33657 if test -z "$ac_cpp_err"; then
33658   ac_header_preproc=yes
33659 else
33660   echo "$as_me: failed program was:" >&5
33661 sed 's/^/| /' conftest.$ac_ext >&5
33662
33663   ac_header_preproc=no
33664 fi
33665
33666 rm -f conftest.err conftest.$ac_ext
33667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33668 echo "${ECHO_T}$ac_header_preproc" >&6; }
33669
33670 # So?  What about this header?
33671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33672   yes:no: )
33673     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33677     ac_header_preproc=yes
33678     ;;
33679   no:yes:* )
33680     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33682     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33683 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33684     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33685 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33686     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33687 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33690     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33691 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33692     ( cat <<\_ASBOX
33693 ## ----------------------------------- ##
33694 ## Report this to llvmbugs@cs.uiuc.edu ##
33695 ## ----------------------------------- ##
33696 _ASBOX
33697      ) | sed "s/^/$as_me: WARNING:     /" >&2
33698     ;;
33699 esac
33700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33703   echo $ECHO_N "(cached) $ECHO_C" >&6
33704 else
33705   eval "$as_ac_Header=\$ac_header_preproc"
33706 fi
33707 ac_res=`eval echo '${'$as_ac_Header'}'`
33708                { echo "$as_me:$LINENO: result: $ac_res" >&5
33709 echo "${ECHO_T}$ac_res" >&6; }
33710
33711 fi
33712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33713   cat >>confdefs.h <<_ACEOF
33714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33715 _ACEOF
33716
33717 fi
33718
33719 done
33720
33721
33722 for ac_func in getpagesize
33723 do
33724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33728   echo $ECHO_N "(cached) $ECHO_C" >&6
33729 else
33730   cat >conftest.$ac_ext <<_ACEOF
33731 /* confdefs.h.  */
33732 _ACEOF
33733 cat confdefs.h >>conftest.$ac_ext
33734 cat >>conftest.$ac_ext <<_ACEOF
33735 /* end confdefs.h.  */
33736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33738 #define $ac_func innocuous_$ac_func
33739
33740 /* System header to define __stub macros and hopefully few prototypes,
33741     which can conflict with char $ac_func (); below.
33742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33743     <limits.h> exists even on freestanding compilers.  */
33744
33745 #ifdef __STDC__
33746 # include <limits.h>
33747 #else
33748 # include <assert.h>
33749 #endif
33750
33751 #undef $ac_func
33752
33753 /* Override any GCC internal prototype to avoid an error.
33754    Use char because int might match the return type of a GCC
33755    builtin and then its argument prototype would still apply.  */
33756 #ifdef __cplusplus
33757 extern "C"
33758 #endif
33759 char $ac_func ();
33760 /* The GNU C library defines this for functions which it implements
33761     to always fail with ENOSYS.  Some functions are actually named
33762     something starting with __ and the normal name is an alias.  */
33763 #if defined __stub_$ac_func || defined __stub___$ac_func
33764 choke me
33765 #endif
33766
33767 int
33768 main ()
33769 {
33770 return $ac_func ();
33771   ;
33772   return 0;
33773 }
33774 _ACEOF
33775 rm -f conftest.$ac_objext conftest$ac_exeext
33776 if { (ac_try="$ac_link"
33777 case "(($ac_try" in
33778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33779   *) ac_try_echo=$ac_try;;
33780 esac
33781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33782   (eval "$ac_link") 2>conftest.er1
33783   ac_status=$?
33784   grep -v '^ *+' conftest.er1 >conftest.err
33785   rm -f conftest.er1
33786   cat conftest.err >&5
33787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788   (exit $ac_status); } &&
33789          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33790   { (case "(($ac_try" in
33791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33792   *) ac_try_echo=$ac_try;;
33793 esac
33794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33795   (eval "$ac_try") 2>&5
33796   ac_status=$?
33797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798   (exit $ac_status); }; } &&
33799          { ac_try='test -s conftest$ac_exeext'
33800   { (case "(($ac_try" in
33801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33802   *) ac_try_echo=$ac_try;;
33803 esac
33804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33805   (eval "$ac_try") 2>&5
33806   ac_status=$?
33807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808   (exit $ac_status); }; }; then
33809   eval "$as_ac_var=yes"
33810 else
33811   echo "$as_me: failed program was:" >&5
33812 sed 's/^/| /' conftest.$ac_ext >&5
33813
33814         eval "$as_ac_var=no"
33815 fi
33816
33817 rm -f core conftest.err conftest.$ac_objext \
33818       conftest$ac_exeext conftest.$ac_ext
33819 fi
33820 ac_res=`eval echo '${'$as_ac_var'}'`
33821                { echo "$as_me:$LINENO: result: $ac_res" >&5
33822 echo "${ECHO_T}$ac_res" >&6; }
33823 if test `eval echo '${'$as_ac_var'}'` = yes; then
33824   cat >>confdefs.h <<_ACEOF
33825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33826 _ACEOF
33827
33828 fi
33829 done
33830
33831 { echo "$as_me:$LINENO: checking for working mmap" >&5
33832 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33833 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33834   echo $ECHO_N "(cached) $ECHO_C" >&6
33835 else
33836   if test "$cross_compiling" = yes; then
33837   ac_cv_func_mmap_fixed_mapped=no
33838 else
33839   cat >conftest.$ac_ext <<_ACEOF
33840 /* confdefs.h.  */
33841 _ACEOF
33842 cat confdefs.h >>conftest.$ac_ext
33843 cat >>conftest.$ac_ext <<_ACEOF
33844 /* end confdefs.h.  */
33845 $ac_includes_default
33846 /* malloc might have been renamed as rpl_malloc. */
33847 #undef malloc
33848
33849 /* Thanks to Mike Haertel and Jim Avera for this test.
33850    Here is a matrix of mmap possibilities:
33851         mmap private not fixed
33852         mmap private fixed at somewhere currently unmapped
33853         mmap private fixed at somewhere already mapped
33854         mmap shared not fixed
33855         mmap shared fixed at somewhere currently unmapped
33856         mmap shared fixed at somewhere already mapped
33857    For private mappings, we should verify that changes cannot be read()
33858    back from the file, nor mmap's back from the file at a different
33859    address.  (There have been systems where private was not correctly
33860    implemented like the infamous i386 svr4.0, and systems where the
33861    VM page cache was not coherent with the file system buffer cache
33862    like early versions of FreeBSD and possibly contemporary NetBSD.)
33863    For shared mappings, we should conversely verify that changes get
33864    propagated back to all the places they're supposed to be.
33865
33866    Grep wants private fixed already mapped.
33867    The main things grep needs to know about mmap are:
33868    * does it exist and is it safe to write into the mmap'd area
33869    * how to use it (BSD variants)  */
33870
33871 #include <fcntl.h>
33872 #include <sys/mman.h>
33873
33874 #if !STDC_HEADERS && !HAVE_STDLIB_H
33875 char *malloc ();
33876 #endif
33877
33878 /* This mess was copied from the GNU getpagesize.h.  */
33879 #if !HAVE_GETPAGESIZE
33880 /* Assume that all systems that can run configure have sys/param.h.  */
33881 # if !HAVE_SYS_PARAM_H
33882 #  define HAVE_SYS_PARAM_H 1
33883 # endif
33884
33885 # ifdef _SC_PAGESIZE
33886 #  define getpagesize() sysconf(_SC_PAGESIZE)
33887 # else /* no _SC_PAGESIZE */
33888 #  if HAVE_SYS_PARAM_H
33889 #   include <sys/param.h>
33890 #   ifdef EXEC_PAGESIZE
33891 #    define getpagesize() EXEC_PAGESIZE
33892 #   else /* no EXEC_PAGESIZE */
33893 #    ifdef NBPG
33894 #     define getpagesize() NBPG * CLSIZE
33895 #     ifndef CLSIZE
33896 #      define CLSIZE 1
33897 #     endif /* no CLSIZE */
33898 #    else /* no NBPG */
33899 #     ifdef NBPC
33900 #      define getpagesize() NBPC
33901 #     else /* no NBPC */
33902 #      ifdef PAGESIZE
33903 #       define getpagesize() PAGESIZE
33904 #      endif /* PAGESIZE */
33905 #     endif /* no NBPC */
33906 #    endif /* no NBPG */
33907 #   endif /* no EXEC_PAGESIZE */
33908 #  else /* no HAVE_SYS_PARAM_H */
33909 #   define getpagesize() 8192   /* punt totally */
33910 #  endif /* no HAVE_SYS_PARAM_H */
33911 # endif /* no _SC_PAGESIZE */
33912
33913 #endif /* no HAVE_GETPAGESIZE */
33914
33915 int
33916 main ()
33917 {
33918   char *data, *data2, *data3;
33919   int i, pagesize;
33920   int fd;
33921
33922   pagesize = getpagesize ();
33923
33924   /* First, make a file with some known garbage in it. */
33925   data = (char *) malloc (pagesize);
33926   if (!data)
33927     return 1;
33928   for (i = 0; i < pagesize; ++i)
33929     *(data + i) = rand ();
33930   umask (0);
33931   fd = creat ("conftest.mmap", 0600);
33932   if (fd < 0)
33933     return 1;
33934   if (write (fd, data, pagesize) != pagesize)
33935     return 1;
33936   close (fd);
33937
33938   /* Next, try to mmap the file at a fixed address which already has
33939      something else allocated at it.  If we can, also make sure that
33940      we see the same garbage.  */
33941   fd = open ("conftest.mmap", O_RDWR);
33942   if (fd < 0)
33943     return 1;
33944   data2 = (char *) malloc (2 * pagesize);
33945   if (!data2)
33946     return 1;
33947   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33948   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33949                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33950     return 1;
33951   for (i = 0; i < pagesize; ++i)
33952     if (*(data + i) != *(data2 + i))
33953       return 1;
33954
33955   /* Finally, make sure that changes to the mapped area do not
33956      percolate back to the file as seen by read().  (This is a bug on
33957      some variants of i386 svr4.0.)  */
33958   for (i = 0; i < pagesize; ++i)
33959     *(data2 + i) = *(data2 + i) + 1;
33960   data3 = (char *) malloc (pagesize);
33961   if (!data3)
33962     return 1;
33963   if (read (fd, data3, pagesize) != pagesize)
33964     return 1;
33965   for (i = 0; i < pagesize; ++i)
33966     if (*(data + i) != *(data3 + i))
33967       return 1;
33968   close (fd);
33969   return 0;
33970 }
33971 _ACEOF
33972 rm -f conftest$ac_exeext
33973 if { (ac_try="$ac_link"
33974 case "(($ac_try" in
33975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33976   *) ac_try_echo=$ac_try;;
33977 esac
33978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33979   (eval "$ac_link") 2>&5
33980   ac_status=$?
33981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33983   { (case "(($ac_try" in
33984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33985   *) ac_try_echo=$ac_try;;
33986 esac
33987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33988   (eval "$ac_try") 2>&5
33989   ac_status=$?
33990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991   (exit $ac_status); }; }; then
33992   ac_cv_func_mmap_fixed_mapped=yes
33993 else
33994   echo "$as_me: program exited with status $ac_status" >&5
33995 echo "$as_me: failed program was:" >&5
33996 sed 's/^/| /' conftest.$ac_ext >&5
33997
33998 ( exit $ac_status )
33999 ac_cv_func_mmap_fixed_mapped=no
34000 fi
34001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34002 fi
34003
34004
34005 fi
34006 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34007 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34008 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34009
34010 cat >>confdefs.h <<\_ACEOF
34011 #define HAVE_MMAP 1
34012 _ACEOF
34013
34014 fi
34015 rm -f conftest.mmap
34016
34017   { echo "$as_me:$LINENO: checking for mmap of files" >&5
34018 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34019 if test "${ac_cv_func_mmap_file+set}" = set; then
34020   echo $ECHO_N "(cached) $ECHO_C" >&6
34021 else
34022    ac_ext=c
34023 ac_cpp='$CPP $CPPFLAGS'
34024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34027
34028   if test "$cross_compiling" = yes; then
34029   ac_cv_func_mmap_file=no
34030 else
34031   cat >conftest.$ac_ext <<_ACEOF
34032
34033     /* confdefs.h.  */
34034 _ACEOF
34035 cat confdefs.h >>conftest.$ac_ext
34036 cat >>conftest.$ac_ext <<_ACEOF
34037 /* end confdefs.h.  */
34038
34039 #include <sys/types.h>
34040 #include <sys/mman.h>
34041 #include <fcntl.h>
34042
34043 int
34044 main ()
34045 {
34046
34047   int fd;
34048   fd = creat ("foo",0777);
34049   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34050   unlink ("foo");
34051   return (fd != (int) MAP_FAILED);
34052   ;
34053   return 0;
34054 }
34055 _ACEOF
34056 rm -f conftest$ac_exeext
34057 if { (ac_try="$ac_link"
34058 case "(($ac_try" in
34059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34060   *) ac_try_echo=$ac_try;;
34061 esac
34062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34063   (eval "$ac_link") 2>&5
34064   ac_status=$?
34065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34066   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34067   { (case "(($ac_try" in
34068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34069   *) ac_try_echo=$ac_try;;
34070 esac
34071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34072   (eval "$ac_try") 2>&5
34073   ac_status=$?
34074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075   (exit $ac_status); }; }; then
34076   ac_cv_func_mmap_file=yes
34077 else
34078   echo "$as_me: program exited with status $ac_status" >&5
34079 echo "$as_me: failed program was:" >&5
34080 sed 's/^/| /' conftest.$ac_ext >&5
34081
34082 ( exit $ac_status )
34083 ac_cv_func_mmap_file=no
34084 fi
34085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34086 fi
34087
34088
34089   ac_ext=c
34090 ac_cpp='$CPP $CPPFLAGS'
34091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34094
34095
34096 fi
34097 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34098 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34099 if test "$ac_cv_func_mmap_file" = yes; then
34100
34101 cat >>confdefs.h <<\_ACEOF
34102 #define HAVE_MMAP_FILE
34103 _ACEOF
34104
34105    MMAP_FILE=yes
34106
34107 fi
34108
34109   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34110 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34111 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34112   echo $ECHO_N "(cached) $ECHO_C" >&6
34113 else
34114   if test "$llvm_cv_os_type" = "Interix" ; then
34115    ac_cv_need_dev_zero_for_mmap=yes
34116  else
34117    ac_cv_need_dev_zero_for_mmap=no
34118  fi
34119
34120 fi
34121 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34122 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34123 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34124
34125 cat >>confdefs.h <<\_ACEOF
34126 #define NEED_DEV_ZERO_FOR_MMAP 1
34127 _ACEOF
34128
34129 fi
34130
34131   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34132   then
34133     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34134 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34135   fi
34136   if test "$ac_cv_func_mmap_file" = "no"
34137   then
34138     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34139 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34140   fi
34141 fi
34142
34143
34144
34145 for ac_func in __dso_handle
34146 do
34147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34151   echo $ECHO_N "(cached) $ECHO_C" >&6
34152 else
34153   cat >conftest.$ac_ext <<_ACEOF
34154 /* confdefs.h.  */
34155 _ACEOF
34156 cat confdefs.h >>conftest.$ac_ext
34157 cat >>conftest.$ac_ext <<_ACEOF
34158 /* end confdefs.h.  */
34159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34161 #define $ac_func innocuous_$ac_func
34162
34163 /* System header to define __stub macros and hopefully few prototypes,
34164     which can conflict with char $ac_func (); below.
34165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34166     <limits.h> exists even on freestanding compilers.  */
34167
34168 #ifdef __STDC__
34169 # include <limits.h>
34170 #else
34171 # include <assert.h>
34172 #endif
34173
34174 #undef $ac_func
34175
34176 /* Override any GCC internal prototype to avoid an error.
34177    Use char because int might match the return type of a GCC
34178    builtin and then its argument prototype would still apply.  */
34179 #ifdef __cplusplus
34180 extern "C"
34181 #endif
34182 char $ac_func ();
34183 /* The GNU C library defines this for functions which it implements
34184     to always fail with ENOSYS.  Some functions are actually named
34185     something starting with __ and the normal name is an alias.  */
34186 #if defined __stub_$ac_func || defined __stub___$ac_func
34187 choke me
34188 #endif
34189
34190 int
34191 main ()
34192 {
34193 return $ac_func ();
34194   ;
34195   return 0;
34196 }
34197 _ACEOF
34198 rm -f conftest.$ac_objext conftest$ac_exeext
34199 if { (ac_try="$ac_link"
34200 case "(($ac_try" in
34201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34202   *) ac_try_echo=$ac_try;;
34203 esac
34204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34205   (eval "$ac_link") 2>conftest.er1
34206   ac_status=$?
34207   grep -v '^ *+' conftest.er1 >conftest.err
34208   rm -f conftest.er1
34209   cat conftest.err >&5
34210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211   (exit $ac_status); } &&
34212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34213   { (case "(($ac_try" in
34214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34215   *) ac_try_echo=$ac_try;;
34216 esac
34217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34218   (eval "$ac_try") 2>&5
34219   ac_status=$?
34220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34221   (exit $ac_status); }; } &&
34222          { ac_try='test -s conftest$ac_exeext'
34223   { (case "(($ac_try" in
34224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34225   *) ac_try_echo=$ac_try;;
34226 esac
34227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34228   (eval "$ac_try") 2>&5
34229   ac_status=$?
34230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231   (exit $ac_status); }; }; then
34232   eval "$as_ac_var=yes"
34233 else
34234   echo "$as_me: failed program was:" >&5
34235 sed 's/^/| /' conftest.$ac_ext >&5
34236
34237         eval "$as_ac_var=no"
34238 fi
34239
34240 rm -f core conftest.err conftest.$ac_objext \
34241       conftest$ac_exeext conftest.$ac_ext
34242 fi
34243 ac_res=`eval echo '${'$as_ac_var'}'`
34244                { echo "$as_me:$LINENO: result: $ac_res" >&5
34245 echo "${ECHO_T}$ac_res" >&6; }
34246 if test `eval echo '${'$as_ac_var'}'` = yes; then
34247   cat >>confdefs.h <<_ACEOF
34248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34249 _ACEOF
34250
34251 fi
34252 done
34253
34254
34255 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34256 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34257 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34258   echo $ECHO_N "(cached) $ECHO_C" >&6
34259 else
34260   llvm_cv_llvmgcc_sanity="no"
34261 if test -x "$LLVMGCC" ; then
34262   cp /dev/null conftest.c
34263   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34264       grep 'target datalayout =' > /dev/null 2>&1
34265   if test $? -eq 0 ; then
34266     llvm_cv_llvmgcc_sanity="yes"
34267   fi
34268   rm conftest.c
34269 fi
34270 fi
34271 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34272 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34273
34274 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34275   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34276 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34277   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34278   LLVMCC1=$llvmcc1path
34279
34280   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34281   LLVMCC1PLUS=$llvmcc1pluspath
34282
34283   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34284   LLVMGCCDIR=$llvmgccdir
34285
34286   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34287   LLVMGCCLIBEXEC=$llvmgcclibexec
34288
34289   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34290   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34291   LLVMGCC_VERSION=$llvmgccversion
34292
34293   LLVMGCC_MAJVERS=$llvmgccmajvers
34294
34295   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34296   LLVMGCC_LANGS=$llvmgcclangs
34297
34298   { echo "$as_me:$LINENO: result: ok" >&5
34299 echo "${ECHO_T}ok" >&6; }
34300 fi
34301
34302 SHLIBEXT=$libltdl_cv_shlibext
34303
34304
34305 # Translate the various configuration directories and other basic
34306 # information into substitutions that will end up in Makefile.config.in
34307 # that these configured values can be used by the makefiles
34308 if test "${prefix}" = "NONE" ; then
34309   prefix="/usr/local"
34310 fi
34311 eval LLVM_PREFIX="${prefix}";
34312 eval LLVM_BINDIR="${prefix}/bin";
34313 eval LLVM_LIBDIR="${prefix}/lib";
34314 eval LLVM_DATADIR="${prefix}/share/llvm";
34315 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34316 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34317 eval LLVM_INCLUDEDIR="${prefix}/include";
34318 eval LLVM_INFODIR="${prefix}/info";
34319 eval LLVM_MANDIR="${prefix}/man";
34320 LLVM_CONFIGTIME=`date`
34321
34322
34323
34324
34325
34326
34327
34328
34329
34330
34331
34332 # Place the various directores into the config.h file as #defines so that we
34333 # can know about the installation paths within LLVM.
34334
34335 cat >>confdefs.h <<_ACEOF
34336 #define LLVM_PREFIX "$LLVM_PREFIX"
34337 _ACEOF
34338
34339
34340 cat >>confdefs.h <<_ACEOF
34341 #define LLVM_BINDIR "$LLVM_BINDIR"
34342 _ACEOF
34343
34344
34345 cat >>confdefs.h <<_ACEOF
34346 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34347 _ACEOF
34348
34349
34350 cat >>confdefs.h <<_ACEOF
34351 #define LLVM_DATADIR "$LLVM_DATADIR"
34352 _ACEOF
34353
34354
34355 cat >>confdefs.h <<_ACEOF
34356 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34357 _ACEOF
34358
34359
34360 cat >>confdefs.h <<_ACEOF
34361 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34362 _ACEOF
34363
34364
34365 cat >>confdefs.h <<_ACEOF
34366 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34367 _ACEOF
34368
34369
34370 cat >>confdefs.h <<_ACEOF
34371 #define LLVM_INFODIR "$LLVM_INFODIR"
34372 _ACEOF
34373
34374
34375 cat >>confdefs.h <<_ACEOF
34376 #define LLVM_MANDIR "$LLVM_MANDIR"
34377 _ACEOF
34378
34379
34380 cat >>confdefs.h <<_ACEOF
34381 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34382 _ACEOF
34383
34384
34385 cat >>confdefs.h <<_ACEOF
34386 #define LLVM_HOSTTRIPLE "$host"
34387 _ACEOF
34388
34389
34390 # Determine which bindings to build.
34391 if test "$BINDINGS_TO_BUILD" = auto ; then
34392   BINDINGS_TO_BUILD=""
34393   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34394     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34395   fi
34396 fi
34397 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34398
34399
34400 # This isn't really configurey, but it avoids having to repeat the list in
34401 # other files.
34402 ALL_BINDINGS=ocaml
34403
34404
34405 # Do any work necessary to ensure that bindings have what they need.
34406 binding_prereqs_failed=0
34407 for a_binding in $BINDINGS_TO_BUILD ; do
34408   case "$a_binding" in
34409   ocaml)
34410     if test "x$OCAMLC" = x ; then
34411       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34412 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34413       binding_prereqs_failed=1
34414     fi
34415     if test "x$OCAMLDEP" = x ; then
34416       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34417 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34418       binding_prereqs_failed=1
34419     fi
34420     if test "x$OCAMLOPT" = x ; then
34421       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34422 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34423           fi
34424     if test "x$with_ocaml_libdir" != xauto ; then
34425       OCAML_LIBDIR=$with_ocaml_libdir
34426
34427     else
34428       ocaml_stdlib="`"$OCAMLC" -where`"
34429       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34430       then
34431         # ocaml stdlib is beneath our prefix; use stdlib
34432         OCAML_LIBDIR=$ocaml_stdlib
34433
34434       else
34435         # ocaml stdlib is outside our prefix; use libdir/ocaml
34436         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34437
34438       fi
34439     fi
34440     ;;
34441   esac
34442 done
34443 if test "$binding_prereqs_failed" = 1 ; then
34444   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34445 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34446    { (exit 1); exit 1; }; }
34447 fi
34448
34449 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34450 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34451 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34452   echo $ECHO_N "(cached) $ECHO_C" >&6
34453 else
34454    ac_ext=cpp
34455 ac_cpp='$CXXCPP $CPPFLAGS'
34456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34459
34460   oldcxxflags="$CXXFLAGS"
34461   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34462   cat >conftest.$ac_ext <<_ACEOF
34463 /* confdefs.h.  */
34464 _ACEOF
34465 cat confdefs.h >>conftest.$ac_ext
34466 cat >>conftest.$ac_ext <<_ACEOF
34467 /* end confdefs.h.  */
34468
34469 int
34470 main ()
34471 {
34472
34473   ;
34474   return 0;
34475 }
34476 _ACEOF
34477 rm -f conftest.$ac_objext
34478 if { (ac_try="$ac_compile"
34479 case "(($ac_try" in
34480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34481   *) ac_try_echo=$ac_try;;
34482 esac
34483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34484   (eval "$ac_compile") 2>conftest.er1
34485   ac_status=$?
34486   grep -v '^ *+' conftest.er1 >conftest.err
34487   rm -f conftest.er1
34488   cat conftest.err >&5
34489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34490   (exit $ac_status); } &&
34491          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34492   { (case "(($ac_try" in
34493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34494   *) ac_try_echo=$ac_try;;
34495 esac
34496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34497   (eval "$ac_try") 2>&5
34498   ac_status=$?
34499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500   (exit $ac_status); }; } &&
34501          { ac_try='test -s conftest.$ac_objext'
34502   { (case "(($ac_try" in
34503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34504   *) ac_try_echo=$ac_try;;
34505 esac
34506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34507   (eval "$ac_try") 2>&5
34508   ac_status=$?
34509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34510   (exit $ac_status); }; }; then
34511   llvm_cv_cxx_visibility_inlines_hidden=yes
34512 else
34513   echo "$as_me: failed program was:" >&5
34514 sed 's/^/| /' conftest.$ac_ext >&5
34515
34516         llvm_cv_cxx_visibility_inlines_hidden=no
34517 fi
34518
34519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34520   CXXFLAGS="$oldcxxflags"
34521   ac_ext=c
34522 ac_cpp='$CPP $CPPFLAGS'
34523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34526
34527
34528 fi
34529 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34530 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34531 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34532   ENABLE_VISIBILITY_INLINES_HIDDEN=1
34533
34534 else
34535   ENABLE_VISIBILITY_INLINES_HIDDEN=0
34536
34537 fi
34538
34539
34540
34541 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34542
34543 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34544
34545 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34546
34547 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34548
34549 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34550
34551
34552 ac_config_files="$ac_config_files Makefile.config"
34553
34554
34555 ac_config_files="$ac_config_files llvm.spec"
34556
34557
34558 ac_config_files="$ac_config_files docs/doxygen.cfg"
34559
34560
34561 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34562
34563
34564 ac_config_commands="$ac_config_commands setup"
34565
34566 ac_config_commands="$ac_config_commands Makefile"
34567
34568
34569 ac_config_commands="$ac_config_commands Makefile.common"
34570
34571
34572 ac_config_commands="$ac_config_commands examples/Makefile"
34573
34574
34575 ac_config_commands="$ac_config_commands lib/Makefile"
34576
34577
34578 ac_config_commands="$ac_config_commands runtime/Makefile"
34579
34580
34581 ac_config_commands="$ac_config_commands test/Makefile"
34582
34583
34584 ac_config_commands="$ac_config_commands test/Makefile.tests"
34585
34586
34587 ac_config_commands="$ac_config_commands tools/Makefile"
34588
34589
34590 ac_config_commands="$ac_config_commands utils/Makefile"
34591
34592
34593 ac_config_commands="$ac_config_commands projects/Makefile"
34594
34595
34596 ac_config_commands="$ac_config_commands bindings/Makefile"
34597
34598
34599 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34600
34601
34602
34603 cat >confcache <<\_ACEOF
34604 # This file is a shell script that caches the results of configure
34605 # tests run on this system so they can be shared between configure
34606 # scripts and configure runs, see configure's option --config-cache.
34607 # It is not useful on other systems.  If it contains results you don't
34608 # want to keep, you may remove or edit it.
34609 #
34610 # config.status only pays attention to the cache file if you give it
34611 # the --recheck option to rerun configure.
34612 #
34613 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34614 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34615 # following values.
34616
34617 _ACEOF
34618
34619 # The following way of writing the cache mishandles newlines in values,
34620 # but we know of no workaround that is simple, portable, and efficient.
34621 # So, we kill variables containing newlines.
34622 # Ultrix sh set writes to stderr and can't be redirected directly,
34623 # and sets the high bit in the cache file unless we assign to the vars.
34624 (
34625   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34626     eval ac_val=\$$ac_var
34627     case $ac_val in #(
34628     *${as_nl}*)
34629       case $ac_var in #(
34630       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34631 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34632       esac
34633       case $ac_var in #(
34634       _ | IFS | as_nl) ;; #(
34635       *) $as_unset $ac_var ;;
34636       esac ;;
34637     esac
34638   done
34639
34640   (set) 2>&1 |
34641     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34642     *${as_nl}ac_space=\ *)
34643       # `set' does not quote correctly, so add quotes (double-quote
34644       # substitution turns \\\\ into \\, and sed turns \\ into \).
34645       sed -n \
34646         "s/'/'\\\\''/g;
34647           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34648       ;; #(
34649     *)
34650       # `set' quotes correctly as required by POSIX, so do not add quotes.
34651       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34652       ;;
34653     esac |
34654     sort
34655 ) |
34656   sed '
34657      /^ac_cv_env_/b end
34658      t clear
34659      :clear
34660      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34661      t end
34662      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34663      :end' >>confcache
34664 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34665   if test -w "$cache_file"; then
34666     test "x$cache_file" != "x/dev/null" &&
34667       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34668 echo "$as_me: updating cache $cache_file" >&6;}
34669     cat confcache >$cache_file
34670   else
34671     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34672 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34673   fi
34674 fi
34675 rm -f confcache
34676
34677 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34678 # Let make expand exec_prefix.
34679 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34680
34681 DEFS=-DHAVE_CONFIG_H
34682
34683 ac_libobjs=
34684 ac_ltlibobjs=
34685 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34686   # 1. Remove the extension, and $U if already installed.
34687   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34688   ac_i=`echo "$ac_i" | sed "$ac_script"`
34689   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34690   #    will be set to the directory where LIBOBJS objects are built.
34691   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34692   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34693 done
34694 LIBOBJS=$ac_libobjs
34695
34696 LTLIBOBJS=$ac_ltlibobjs
34697
34698
34699 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34700   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34701 Usually this means the macro was only invoked conditionally." >&5
34702 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34703 Usually this means the macro was only invoked conditionally." >&2;}
34704    { (exit 1); exit 1; }; }
34705 fi
34706 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34707   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34708 Usually this means the macro was only invoked conditionally." >&5
34709 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34710 Usually this means the macro was only invoked conditionally." >&2;}
34711    { (exit 1); exit 1; }; }
34712 fi
34713
34714 : ${CONFIG_STATUS=./config.status}
34715 ac_clean_files_save=$ac_clean_files
34716 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34717 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34718 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34719 cat >$CONFIG_STATUS <<_ACEOF
34720 #! $SHELL
34721 # Generated by $as_me.
34722 # Run this file to recreate the current configuration.
34723 # Compiler output produced by configure, useful for debugging
34724 # configure, is in config.log if it exists.
34725
34726 debug=false
34727 ac_cs_recheck=false
34728 ac_cs_silent=false
34729 SHELL=\${CONFIG_SHELL-$SHELL}
34730 _ACEOF
34731
34732 cat >>$CONFIG_STATUS <<\_ACEOF
34733 ## --------------------- ##
34734 ## M4sh Initialization.  ##
34735 ## --------------------- ##
34736
34737 # Be Bourne compatible
34738 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34739   emulate sh
34740   NULLCMD=:
34741   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34742   # is contrary to our usage.  Disable this feature.
34743   alias -g '${1+"$@"}'='"$@"'
34744   setopt NO_GLOB_SUBST
34745 else
34746   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34747 fi
34748 BIN_SH=xpg4; export BIN_SH # for Tru64
34749 DUALCASE=1; export DUALCASE # for MKS sh
34750
34751
34752 # PATH needs CR
34753 # Avoid depending upon Character Ranges.
34754 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34755 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34756 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34757 as_cr_digits='0123456789'
34758 as_cr_alnum=$as_cr_Letters$as_cr_digits
34759
34760 # The user is always right.
34761 if test "${PATH_SEPARATOR+set}" != set; then
34762   echo "#! /bin/sh" >conf$$.sh
34763   echo  "exit 0"   >>conf$$.sh
34764   chmod +x conf$$.sh
34765   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34766     PATH_SEPARATOR=';'
34767   else
34768     PATH_SEPARATOR=:
34769   fi
34770   rm -f conf$$.sh
34771 fi
34772
34773 # Support unset when possible.
34774 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34775   as_unset=unset
34776 else
34777   as_unset=false
34778 fi
34779
34780
34781 # IFS
34782 # We need space, tab and new line, in precisely that order.  Quoting is
34783 # there to prevent editors from complaining about space-tab.
34784 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34785 # splitting by setting IFS to empty value.)
34786 as_nl='
34787 '
34788 IFS=" ""        $as_nl"
34789
34790 # Find who we are.  Look in the path if we contain no directory separator.
34791 case $0 in
34792   *[\\/]* ) as_myself=$0 ;;
34793   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34794 for as_dir in $PATH
34795 do
34796   IFS=$as_save_IFS
34797   test -z "$as_dir" && as_dir=.
34798   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34799 done
34800 IFS=$as_save_IFS
34801
34802      ;;
34803 esac
34804 # We did not find ourselves, most probably we were run as `sh COMMAND'
34805 # in which case we are not to be found in the path.
34806 if test "x$as_myself" = x; then
34807   as_myself=$0
34808 fi
34809 if test ! -f "$as_myself"; then
34810   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34811   { (exit 1); exit 1; }
34812 fi
34813
34814 # Work around bugs in pre-3.0 UWIN ksh.
34815 for as_var in ENV MAIL MAILPATH
34816 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34817 done
34818 PS1='$ '
34819 PS2='> '
34820 PS4='+ '
34821
34822 # NLS nuisances.
34823 for as_var in \
34824   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34825   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34826   LC_TELEPHONE LC_TIME
34827 do
34828   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34829     eval $as_var=C; export $as_var
34830   else
34831     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34832   fi
34833 done
34834
34835 # Required to use basename.
34836 if expr a : '\(a\)' >/dev/null 2>&1 &&
34837    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34838   as_expr=expr
34839 else
34840   as_expr=false
34841 fi
34842
34843 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34844   as_basename=basename
34845 else
34846   as_basename=false
34847 fi
34848
34849
34850 # Name of the executable.
34851 as_me=`$as_basename -- "$0" ||
34852 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34853          X"$0" : 'X\(//\)$' \| \
34854          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34855 echo X/"$0" |
34856     sed '/^.*\/\([^/][^/]*\)\/*$/{
34857             s//\1/
34858             q
34859           }
34860           /^X\/\(\/\/\)$/{
34861             s//\1/
34862             q
34863           }
34864           /^X\/\(\/\).*/{
34865             s//\1/
34866             q
34867           }
34868           s/.*/./; q'`
34869
34870 # CDPATH.
34871 $as_unset CDPATH
34872
34873
34874
34875   as_lineno_1=$LINENO
34876   as_lineno_2=$LINENO
34877   test "x$as_lineno_1" != "x$as_lineno_2" &&
34878   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34879
34880   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34881   # uniformly replaced by the line number.  The first 'sed' inserts a
34882   # line-number line after each line using $LINENO; the second 'sed'
34883   # does the real work.  The second script uses 'N' to pair each
34884   # line-number line with the line containing $LINENO, and appends
34885   # trailing '-' during substitution so that $LINENO is not a special
34886   # case at line end.
34887   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34888   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34889   # E. McMahon (1931-1989) for sed's syntax.  :-)
34890   sed -n '
34891     p
34892     /[$]LINENO/=
34893   ' <$as_myself |
34894     sed '
34895       s/[$]LINENO.*/&-/
34896       t lineno
34897       b
34898       :lineno
34899       N
34900       :loop
34901       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34902       t loop
34903       s/-\n.*//
34904     ' >$as_me.lineno &&
34905   chmod +x "$as_me.lineno" ||
34906     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34907    { (exit 1); exit 1; }; }
34908
34909   # Don't try to exec as it changes $[0], causing all sort of problems
34910   # (the dirname of $[0] is not the place where we might find the
34911   # original and so on.  Autoconf is especially sensitive to this).
34912   . "./$as_me.lineno"
34913   # Exit status is that of the last command.
34914   exit
34915 }
34916
34917
34918 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34919   as_dirname=dirname
34920 else
34921   as_dirname=false
34922 fi
34923
34924 ECHO_C= ECHO_N= ECHO_T=
34925 case `echo -n x` in
34926 -n*)
34927   case `echo 'x\c'` in
34928   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34929   *)   ECHO_C='\c';;
34930   esac;;
34931 *)
34932   ECHO_N='-n';;
34933 esac
34934
34935 if expr a : '\(a\)' >/dev/null 2>&1 &&
34936    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34937   as_expr=expr
34938 else
34939   as_expr=false
34940 fi
34941
34942 rm -f conf$$ conf$$.exe conf$$.file
34943 if test -d conf$$.dir; then
34944   rm -f conf$$.dir/conf$$.file
34945 else
34946   rm -f conf$$.dir
34947   mkdir conf$$.dir
34948 fi
34949 echo >conf$$.file
34950 if ln -s conf$$.file conf$$ 2>/dev/null; then
34951   as_ln_s='ln -s'
34952   # ... but there are two gotchas:
34953   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34954   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34955   # In both cases, we have to default to `cp -p'.
34956   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34957     as_ln_s='cp -p'
34958 elif ln conf$$.file conf$$ 2>/dev/null; then
34959   as_ln_s=ln
34960 else
34961   as_ln_s='cp -p'
34962 fi
34963 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34964 rmdir conf$$.dir 2>/dev/null
34965
34966 if mkdir -p . 2>/dev/null; then
34967   as_mkdir_p=:
34968 else
34969   test -d ./-p && rmdir ./-p
34970   as_mkdir_p=false
34971 fi
34972
34973 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34974 # systems may use methods other than mode bits to determine executability.
34975 cat >conf$$.file <<_ASEOF
34976 #! /bin/sh
34977 exit 0
34978 _ASEOF
34979 chmod +x conf$$.file
34980 if test -x conf$$.file >/dev/null 2>&1; then
34981   as_executable_p="test -x"
34982 else
34983   as_executable_p=:
34984 fi
34985 rm -f conf$$.file
34986
34987 # Sed expression to map a string onto a valid CPP name.
34988 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34989
34990 # Sed expression to map a string onto a valid variable name.
34991 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34992
34993
34994 exec 6>&1
34995
34996 # Save the log message, to keep $[0] and so on meaningful, and to
34997 # report actual input values of CONFIG_FILES etc. instead of their
34998 # values after options handling.
34999 ac_log="
35000 This file was extended by llvm $as_me 2.5svn, which was
35001 generated by GNU Autoconf 2.60.  Invocation command line was
35002
35003   CONFIG_FILES    = $CONFIG_FILES
35004   CONFIG_HEADERS  = $CONFIG_HEADERS
35005   CONFIG_LINKS    = $CONFIG_LINKS
35006   CONFIG_COMMANDS = $CONFIG_COMMANDS
35007   $ $0 $@
35008
35009 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35010 "
35011
35012 _ACEOF
35013
35014 cat >>$CONFIG_STATUS <<_ACEOF
35015 # Files that config.status was made for.
35016 config_files="$ac_config_files"
35017 config_headers="$ac_config_headers"
35018 config_commands="$ac_config_commands"
35019
35020 _ACEOF
35021
35022 cat >>$CONFIG_STATUS <<\_ACEOF
35023 ac_cs_usage="\
35024 \`$as_me' instantiates files from templates according to the
35025 current configuration.
35026
35027 Usage: $0 [OPTIONS] [FILE]...
35028
35029   -h, --help       print this help, then exit
35030   -V, --version    print version number, then exit
35031   -q, --quiet      do not print progress messages
35032   -d, --debug      don't remove temporary files
35033       --recheck    update $as_me by reconfiguring in the same conditions
35034   --file=FILE[:TEMPLATE]
35035                    instantiate the configuration file FILE
35036   --header=FILE[:TEMPLATE]
35037                    instantiate the configuration header FILE
35038
35039 Configuration files:
35040 $config_files
35041
35042 Configuration headers:
35043 $config_headers
35044
35045 Configuration commands:
35046 $config_commands
35047
35048 Report bugs to <bug-autoconf@gnu.org>."
35049
35050 _ACEOF
35051 cat >>$CONFIG_STATUS <<_ACEOF
35052 ac_cs_version="\\
35053 llvm config.status 2.5svn
35054 configured by $0, generated by GNU Autoconf 2.60,
35055   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35056
35057 Copyright (C) 2006 Free Software Foundation, Inc.
35058 This config.status script is free software; the Free Software Foundation
35059 gives unlimited permission to copy, distribute and modify it."
35060
35061 ac_pwd='$ac_pwd'
35062 srcdir='$srcdir'
35063 INSTALL='$INSTALL'
35064 _ACEOF
35065
35066 cat >>$CONFIG_STATUS <<\_ACEOF
35067 # If no file are specified by the user, then we need to provide default
35068 # value.  By we need to know if files were specified by the user.
35069 ac_need_defaults=:
35070 while test $# != 0
35071 do
35072   case $1 in
35073   --*=*)
35074     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35075     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35076     ac_shift=:
35077     ;;
35078   *)
35079     ac_option=$1
35080     ac_optarg=$2
35081     ac_shift=shift
35082     ;;
35083   esac
35084
35085   case $ac_option in
35086   # Handling of the options.
35087   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35088     ac_cs_recheck=: ;;
35089   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35090     echo "$ac_cs_version"; exit ;;
35091   --debug | --debu | --deb | --de | --d | -d )
35092     debug=: ;;
35093   --file | --fil | --fi | --f )
35094     $ac_shift
35095     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35096     ac_need_defaults=false;;
35097   --header | --heade | --head | --hea )
35098     $ac_shift
35099     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35100     ac_need_defaults=false;;
35101   --he | --h)
35102     # Conflict between --help and --header
35103     { echo "$as_me: error: ambiguous option: $1
35104 Try \`$0 --help' for more information." >&2
35105    { (exit 1); exit 1; }; };;
35106   --help | --hel | -h )
35107     echo "$ac_cs_usage"; exit ;;
35108   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35109   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35110     ac_cs_silent=: ;;
35111
35112   # This is an error.
35113   -*) { echo "$as_me: error: unrecognized option: $1
35114 Try \`$0 --help' for more information." >&2
35115    { (exit 1); exit 1; }; } ;;
35116
35117   *) ac_config_targets="$ac_config_targets $1"
35118      ac_need_defaults=false ;;
35119
35120   esac
35121   shift
35122 done
35123
35124 ac_configure_extra_args=
35125
35126 if $ac_cs_silent; then
35127   exec 6>/dev/null
35128   ac_configure_extra_args="$ac_configure_extra_args --silent"
35129 fi
35130
35131 _ACEOF
35132 cat >>$CONFIG_STATUS <<_ACEOF
35133 if \$ac_cs_recheck; then
35134   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35135   CONFIG_SHELL=$SHELL
35136   export CONFIG_SHELL
35137   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35138 fi
35139
35140 _ACEOF
35141 cat >>$CONFIG_STATUS <<\_ACEOF
35142 exec 5>>config.log
35143 {
35144   echo
35145   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35146 ## Running $as_me. ##
35147 _ASBOX
35148   echo "$ac_log"
35149 } >&5
35150
35151 _ACEOF
35152 cat >>$CONFIG_STATUS <<_ACEOF
35153 #
35154 # INIT-COMMANDS
35155 #
35156 llvm_src="${srcdir}"
35157
35158 _ACEOF
35159
35160 cat >>$CONFIG_STATUS <<\_ACEOF
35161
35162 # Handling of arguments.
35163 for ac_config_target in $ac_config_targets
35164 do
35165   case $ac_config_target in
35166     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35167     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35168     "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35169     "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35170     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35171     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35172     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35173     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35174     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35175     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35176     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35177     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35178     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35179     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35180     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35181     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35182     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35183     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35184     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35185     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35186     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35187     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35188
35189   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35190 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35191    { (exit 1); exit 1; }; };;
35192   esac
35193 done
35194
35195
35196 # If the user did not use the arguments to specify the items to instantiate,
35197 # then the envvar interface is used.  Set only those that are not.
35198 # We use the long form for the default assignment because of an extremely
35199 # bizarre bug on SunOS 4.1.3.
35200 if $ac_need_defaults; then
35201   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35202   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35203   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35204 fi
35205
35206 # Have a temporary directory for convenience.  Make it in the build tree
35207 # simply because there is no reason against having it here, and in addition,
35208 # creating and moving files from /tmp can sometimes cause problems.
35209 # Hook for its removal unless debugging.
35210 # Note that there is a small window in which the directory will not be cleaned:
35211 # after its creation but before its name has been assigned to `$tmp'.
35212 $debug ||
35213 {
35214   tmp=
35215   trap 'exit_status=$?
35216   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35217 ' 0
35218   trap '{ (exit 1); exit 1; }' 1 2 13 15
35219 }
35220 # Create a (secure) tmp directory for tmp files.
35221
35222 {
35223   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35224   test -n "$tmp" && test -d "$tmp"
35225 }  ||
35226 {
35227   tmp=./conf$$-$RANDOM
35228   (umask 077 && mkdir "$tmp")
35229 } ||
35230 {
35231    echo "$me: cannot create a temporary directory in ." >&2
35232    { (exit 1); exit 1; }
35233 }
35234
35235 #
35236 # Set up the sed scripts for CONFIG_FILES section.
35237 #
35238
35239 # No need to generate the scripts if there are no CONFIG_FILES.
35240 # This happens for instance when ./config.status config.h
35241 if test -n "$CONFIG_FILES"; then
35242
35243 _ACEOF
35244
35245
35246
35247 ac_delim='%!_!# '
35248 for ac_last_try in false false false false false :; do
35249   cat >conf$$subs.sed <<_ACEOF
35250 SHELL!$SHELL$ac_delim
35251 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35252 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35253 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35254 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35255 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35256 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35257 exec_prefix!$exec_prefix$ac_delim
35258 prefix!$prefix$ac_delim
35259 program_transform_name!$program_transform_name$ac_delim
35260 bindir!$bindir$ac_delim
35261 sbindir!$sbindir$ac_delim
35262 libexecdir!$libexecdir$ac_delim
35263 datarootdir!$datarootdir$ac_delim
35264 datadir!$datadir$ac_delim
35265 sysconfdir!$sysconfdir$ac_delim
35266 sharedstatedir!$sharedstatedir$ac_delim
35267 localstatedir!$localstatedir$ac_delim
35268 includedir!$includedir$ac_delim
35269 oldincludedir!$oldincludedir$ac_delim
35270 docdir!$docdir$ac_delim
35271 infodir!$infodir$ac_delim
35272 htmldir!$htmldir$ac_delim
35273 dvidir!$dvidir$ac_delim
35274 pdfdir!$pdfdir$ac_delim
35275 psdir!$psdir$ac_delim
35276 libdir!$libdir$ac_delim
35277 localedir!$localedir$ac_delim
35278 mandir!$mandir$ac_delim
35279 DEFS!$DEFS$ac_delim
35280 ECHO_C!$ECHO_C$ac_delim
35281 ECHO_N!$ECHO_N$ac_delim
35282 ECHO_T!$ECHO_T$ac_delim
35283 LIBS!$LIBS$ac_delim
35284 build_alias!$build_alias$ac_delim
35285 host_alias!$host_alias$ac_delim
35286 target_alias!$target_alias$ac_delim
35287 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35288 subdirs!$subdirs$ac_delim
35289 build!$build$ac_delim
35290 build_cpu!$build_cpu$ac_delim
35291 build_vendor!$build_vendor$ac_delim
35292 build_os!$build_os$ac_delim
35293 host!$host$ac_delim
35294 host_cpu!$host_cpu$ac_delim
35295 host_vendor!$host_vendor$ac_delim
35296 host_os!$host_os$ac_delim
35297 target!$target$ac_delim
35298 target_cpu!$target_cpu$ac_delim
35299 target_vendor!$target_vendor$ac_delim
35300 target_os!$target_os$ac_delim
35301 OS!$OS$ac_delim
35302 LINKALL!$LINKALL$ac_delim
35303 NOLINKALL!$NOLINKALL$ac_delim
35304 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35305 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35306 ARCH!$ARCH$ac_delim
35307 ENDIAN!$ENDIAN$ac_delim
35308 CC!$CC$ac_delim
35309 CFLAGS!$CFLAGS$ac_delim
35310 LDFLAGS!$LDFLAGS$ac_delim
35311 CPPFLAGS!$CPPFLAGS$ac_delim
35312 ac_ct_CC!$ac_ct_CC$ac_delim
35313 EXEEXT!$EXEEXT$ac_delim
35314 OBJEXT!$OBJEXT$ac_delim
35315 CPP!$CPP$ac_delim
35316 GREP!$GREP$ac_delim
35317 EGREP!$EGREP$ac_delim
35318 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35319 BUILD_CC!$BUILD_CC$ac_delim
35320 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35321 BUILD_CXX!$BUILD_CXX$ac_delim
35322 CVSBUILD!$CVSBUILD$ac_delim
35323 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35324 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35325 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35326 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35327 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35328 JIT!$JIT$ac_delim
35329 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35330 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35331 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35332 ENABLE_PIC!$ENABLE_PIC$ac_delim
35333 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35334 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35335 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35336 CXX!$CXX$ac_delim
35337 CXXFLAGS!$CXXFLAGS$ac_delim
35338 ac_ct_CXX!$ac_ct_CXX$ac_delim
35339 LEX!$LEX$ac_delim
35340 LEXLIB!$LEXLIB$ac_delim
35341 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35342 FLEX!$FLEX$ac_delim
35343 YACC!$YACC$ac_delim
35344 YFLAGS!$YFLAGS$ac_delim
35345 BISON!$BISON$ac_delim
35346 NM!$NM$ac_delim
35347 _ACEOF
35348
35349   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35350     break
35351   elif $ac_last_try; then
35352     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35353 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35354    { (exit 1); exit 1; }; }
35355   else
35356     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35357   fi
35358 done
35359
35360 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35361 if test -n "$ac_eof"; then
35362   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35363   ac_eof=`expr $ac_eof + 1`
35364 fi
35365
35366 cat >>$CONFIG_STATUS <<_ACEOF
35367 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35368 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35369 _ACEOF
35370 sed '
35371 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35372 s/^/s,@/; s/!/@,|#_!!_#|/
35373 :n
35374 t n
35375 s/'"$ac_delim"'$/,g/; t
35376 s/$/\\/; p
35377 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35378 ' >>$CONFIG_STATUS <conf$$subs.sed
35379 rm -f conf$$subs.sed
35380 cat >>$CONFIG_STATUS <<_ACEOF
35381 CEOF$ac_eof
35382 _ACEOF
35383
35384
35385 ac_delim='%!_!# '
35386 for ac_last_try in false false false false false :; do
35387   cat >conf$$subs.sed <<_ACEOF
35388 ifGNUmake!$ifGNUmake$ac_delim
35389 LN_S!$LN_S$ac_delim
35390 CMP!$CMP$ac_delim
35391 CP!$CP$ac_delim
35392 DATE!$DATE$ac_delim
35393 FIND!$FIND$ac_delim
35394 MKDIR!$MKDIR$ac_delim
35395 MV!$MV$ac_delim
35396 RANLIB!$RANLIB$ac_delim
35397 RM!$RM$ac_delim
35398 SED!$SED$ac_delim
35399 TAR!$TAR$ac_delim
35400 BINPWD!$BINPWD$ac_delim
35401 GRAPHVIZ!$GRAPHVIZ$ac_delim
35402 DOT!$DOT$ac_delim
35403 GV!$GV$ac_delim
35404 DOTTY!$DOTTY$ac_delim
35405 PERL!$PERL$ac_delim
35406 HAVE_PERL!$HAVE_PERL$ac_delim
35407 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35408 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35409 INSTALL_DATA!$INSTALL_DATA$ac_delim
35410 BZIP2!$BZIP2$ac_delim
35411 DOXYGEN!$DOXYGEN$ac_delim
35412 GROFF!$GROFF$ac_delim
35413 GZIP!$GZIP$ac_delim
35414 POD2HTML!$POD2HTML$ac_delim
35415 POD2MAN!$POD2MAN$ac_delim
35416 RUNTEST!$RUNTEST$ac_delim
35417 TCLSH!$TCLSH$ac_delim
35418 ZIP!$ZIP$ac_delim
35419 OCAMLC!$OCAMLC$ac_delim
35420 OCAMLOPT!$OCAMLOPT$ac_delim
35421 OCAMLDEP!$OCAMLDEP$ac_delim
35422 OCAMLDOC!$OCAMLDOC$ac_delim
35423 GAS!$GAS$ac_delim
35424 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35425 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35426 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35427 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35428 LIBADD_DL!$LIBADD_DL$ac_delim
35429 ECHO!$ECHO$ac_delim
35430 AR!$AR$ac_delim
35431 STRIP!$STRIP$ac_delim
35432 CXXCPP!$CXXCPP$ac_delim
35433 F77!$F77$ac_delim
35434 FFLAGS!$FFLAGS$ac_delim
35435 ac_ct_F77!$ac_ct_F77$ac_delim
35436 LIBTOOL!$LIBTOOL$ac_delim
35437 LLVMGCC!$LLVMGCC$ac_delim
35438 LLVMGXX!$LLVMGXX$ac_delim
35439 USE_UDIS86!$USE_UDIS86$ac_delim
35440 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35441 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35442 ALLOCA!$ALLOCA$ac_delim
35443 MMAP_FILE!$MMAP_FILE$ac_delim
35444 LLVMCC1!$LLVMCC1$ac_delim
35445 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35446 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35447 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35448 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35449 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35450 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35451 SHLIBEXT!$SHLIBEXT$ac_delim
35452 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35453 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35454 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35455 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35456 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35457 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35458 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35459 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35460 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35461 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35462 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35463 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35464 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35465 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35466 LIBOBJS!$LIBOBJS$ac_delim
35467 LTLIBOBJS!$LTLIBOBJS$ac_delim
35468 _ACEOF
35469
35470   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
35471     break
35472   elif $ac_last_try; then
35473     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35474 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35475    { (exit 1); exit 1; }; }
35476   else
35477     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35478   fi
35479 done
35480
35481 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35482 if test -n "$ac_eof"; then
35483   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35484   ac_eof=`expr $ac_eof + 1`
35485 fi
35486
35487 cat >>$CONFIG_STATUS <<_ACEOF
35488 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35489 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35490 _ACEOF
35491 sed '
35492 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35493 s/^/s,@/; s/!/@,|#_!!_#|/
35494 :n
35495 t n
35496 s/'"$ac_delim"'$/,g/; t
35497 s/$/\\/; p
35498 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35499 ' >>$CONFIG_STATUS <conf$$subs.sed
35500 rm -f conf$$subs.sed
35501 cat >>$CONFIG_STATUS <<_ACEOF
35502 :end
35503 s/|#_!!_#|//g
35504 CEOF$ac_eof
35505 _ACEOF
35506
35507
35508 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35509 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35510 # trailing colons and then remove the whole line if VPATH becomes empty
35511 # (actually we leave an empty line to preserve line numbers).
35512 if test "x$srcdir" = x.; then
35513   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35514 s/:*\$(srcdir):*/:/
35515 s/:*\${srcdir}:*/:/
35516 s/:*@srcdir@:*/:/
35517 s/^\([^=]*=[     ]*\):*/\1/
35518 s/:*$//
35519 s/^[^=]*=[       ]*$//
35520 }'
35521 fi
35522
35523 cat >>$CONFIG_STATUS <<\_ACEOF
35524 fi # test -n "$CONFIG_FILES"
35525
35526
35527 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35528 do
35529   case $ac_tag in
35530   :[FHLC]) ac_mode=$ac_tag; continue;;
35531   esac
35532   case $ac_mode$ac_tag in
35533   :[FHL]*:*);;
35534   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35535 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35536    { (exit 1); exit 1; }; };;
35537   :[FH]-) ac_tag=-:-;;
35538   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35539   esac
35540   ac_save_IFS=$IFS
35541   IFS=:
35542   set x $ac_tag
35543   IFS=$ac_save_IFS
35544   shift
35545   ac_file=$1
35546   shift
35547
35548   case $ac_mode in
35549   :L) ac_source=$1;;
35550   :[FH])
35551     ac_file_inputs=
35552     for ac_f
35553     do
35554       case $ac_f in
35555       -) ac_f="$tmp/stdin";;
35556       *) # Look for the file first in the build tree, then in the source tree
35557          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35558          # because $ac_f cannot contain `:'.
35559          test -f "$ac_f" ||
35560            case $ac_f in
35561            [\\/$]*) false;;
35562            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35563            esac ||
35564            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35565 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35566    { (exit 1); exit 1; }; };;
35567       esac
35568       ac_file_inputs="$ac_file_inputs $ac_f"
35569     done
35570
35571     # Let's still pretend it is `configure' which instantiates (i.e., don't
35572     # use $as_me), people would be surprised to read:
35573     #    /* config.h.  Generated by config.status.  */
35574     configure_input="Generated from "`IFS=:
35575           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35576     if test x"$ac_file" != x-; then
35577       configure_input="$ac_file.  $configure_input"
35578       { echo "$as_me:$LINENO: creating $ac_file" >&5
35579 echo "$as_me: creating $ac_file" >&6;}
35580     fi
35581
35582     case $ac_tag in
35583     *:-:* | *:-) cat >"$tmp/stdin";;
35584     esac
35585     ;;
35586   esac
35587
35588   ac_dir=`$as_dirname -- "$ac_file" ||
35589 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35590          X"$ac_file" : 'X\(//\)[^/]' \| \
35591          X"$ac_file" : 'X\(//\)$' \| \
35592          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35593 echo X"$ac_file" |
35594     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35595             s//\1/
35596             q
35597           }
35598           /^X\(\/\/\)[^/].*/{
35599             s//\1/
35600             q
35601           }
35602           /^X\(\/\/\)$/{
35603             s//\1/
35604             q
35605           }
35606           /^X\(\/\).*/{
35607             s//\1/
35608             q
35609           }
35610           s/.*/./; q'`
35611   { as_dir="$ac_dir"
35612   case $as_dir in #(
35613   -*) as_dir=./$as_dir;;
35614   esac
35615   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35616     as_dirs=
35617     while :; do
35618       case $as_dir in #(
35619       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35620       *) as_qdir=$as_dir;;
35621       esac
35622       as_dirs="'$as_qdir' $as_dirs"
35623       as_dir=`$as_dirname -- "$as_dir" ||
35624 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35625          X"$as_dir" : 'X\(//\)[^/]' \| \
35626          X"$as_dir" : 'X\(//\)$' \| \
35627          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35628 echo X"$as_dir" |
35629     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35630             s//\1/
35631             q
35632           }
35633           /^X\(\/\/\)[^/].*/{
35634             s//\1/
35635             q
35636           }
35637           /^X\(\/\/\)$/{
35638             s//\1/
35639             q
35640           }
35641           /^X\(\/\).*/{
35642             s//\1/
35643             q
35644           }
35645           s/.*/./; q'`
35646       test -d "$as_dir" && break
35647     done
35648     test -z "$as_dirs" || eval "mkdir $as_dirs"
35649   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35650 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35651    { (exit 1); exit 1; }; }; }
35652   ac_builddir=.
35653
35654 case "$ac_dir" in
35655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35656 *)
35657   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35658   # A ".." for each directory in $ac_dir_suffix.
35659   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35660   case $ac_top_builddir_sub in
35661   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35662   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35663   esac ;;
35664 esac
35665 ac_abs_top_builddir=$ac_pwd
35666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35667 # for backward compatibility:
35668 ac_top_builddir=$ac_top_build_prefix
35669
35670 case $srcdir in
35671   .)  # We are building in place.
35672     ac_srcdir=.
35673     ac_top_srcdir=$ac_top_builddir_sub
35674     ac_abs_top_srcdir=$ac_pwd ;;
35675   [\\/]* | ?:[\\/]* )  # Absolute name.
35676     ac_srcdir=$srcdir$ac_dir_suffix;
35677     ac_top_srcdir=$srcdir
35678     ac_abs_top_srcdir=$srcdir ;;
35679   *) # Relative name.
35680     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35681     ac_top_srcdir=$ac_top_build_prefix$srcdir
35682     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35683 esac
35684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35685
35686
35687   case $ac_mode in
35688   :F)
35689   #
35690   # CONFIG_FILE
35691   #
35692
35693   case $INSTALL in
35694   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35695   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35696   esac
35697 _ACEOF
35698
35699 cat >>$CONFIG_STATUS <<\_ACEOF
35700 # If the template does not know about datarootdir, expand it.
35701 # FIXME: This hack should be removed a few years after 2.60.
35702 ac_datarootdir_hack=; ac_datarootdir_seen=
35703
35704 case `sed -n '/datarootdir/ {
35705   p
35706   q
35707 }
35708 /@datadir@/p
35709 /@docdir@/p
35710 /@infodir@/p
35711 /@localedir@/p
35712 /@mandir@/p
35713 ' $ac_file_inputs` in
35714 *datarootdir*) ac_datarootdir_seen=yes;;
35715 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35716   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35717 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35718 _ACEOF
35719 cat >>$CONFIG_STATUS <<_ACEOF
35720   ac_datarootdir_hack='
35721   s&@datadir@&$datadir&g
35722   s&@docdir@&$docdir&g
35723   s&@infodir@&$infodir&g
35724   s&@localedir@&$localedir&g
35725   s&@mandir@&$mandir&g
35726     s&\\\${datarootdir}&$datarootdir&g' ;;
35727 esac
35728 _ACEOF
35729
35730 # Neutralize VPATH when `$srcdir' = `.'.
35731 # Shell code in configure.ac might set extrasub.
35732 # FIXME: do we really want to maintain this feature?
35733 cat >>$CONFIG_STATUS <<_ACEOF
35734   sed "$ac_vpsub
35735 $extrasub
35736 _ACEOF
35737 cat >>$CONFIG_STATUS <<\_ACEOF
35738 :t
35739 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35740 s&@configure_input@&$configure_input&;t t
35741 s&@top_builddir@&$ac_top_builddir_sub&;t t
35742 s&@srcdir@&$ac_srcdir&;t t
35743 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35744 s&@top_srcdir@&$ac_top_srcdir&;t t
35745 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35746 s&@builddir@&$ac_builddir&;t t
35747 s&@abs_builddir@&$ac_abs_builddir&;t t
35748 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35749 s&@INSTALL@&$ac_INSTALL&;t t
35750 $ac_datarootdir_hack
35751 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35752
35753 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35754   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35755   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35756   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35757 which seems to be undefined.  Please make sure it is defined." >&5
35758 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35759 which seems to be undefined.  Please make sure it is defined." >&2;}
35760
35761   rm -f "$tmp/stdin"
35762   case $ac_file in
35763   -) cat "$tmp/out"; rm -f "$tmp/out";;
35764   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35765   esac
35766  ;;
35767   :H)
35768   #
35769   # CONFIG_HEADER
35770   #
35771 _ACEOF
35772
35773 # Transform confdefs.h into a sed script `conftest.defines', that
35774 # substitutes the proper values into config.h.in to produce config.h.
35775 rm -f conftest.defines conftest.tail
35776 # First, append a space to every undef/define line, to ease matching.
35777 echo 's/$/ /' >conftest.defines
35778 # Then, protect against being on the right side of a sed subst, or in
35779 # an unquoted here document, in config.status.  If some macros were
35780 # called several times there might be several #defines for the same
35781 # symbol, which is useless.  But do not sort them, since the last
35782 # AC_DEFINE must be honored.
35783 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35784 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35785 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35786 # PARAMS is the parameter list in the macro definition--in most cases, it's
35787 # just an empty string.
35788 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35789 ac_dB='\\)[      (].*,\\1define\\2'
35790 ac_dC=' '
35791 ac_dD=' ,'
35792
35793 uniq confdefs.h |
35794   sed -n '
35795         t rset
35796         :rset
35797         s/^[     ]*#[    ]*define[       ][      ]*//
35798         t ok
35799         d
35800         :ok
35801         s/[\\&,]/\\&/g
35802         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35803         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35804   ' >>conftest.defines
35805
35806 # Remove the space that was appended to ease matching.
35807 # Then replace #undef with comments.  This is necessary, for
35808 # example, in the case of _POSIX_SOURCE, which is predefined and required
35809 # on some systems where configure will not decide to define it.
35810 # (The regexp can be short, since the line contains either #define or #undef.)
35811 echo 's/ $//
35812 s,^[     #]*u.*,/* & */,' >>conftest.defines
35813
35814 # Break up conftest.defines:
35815 ac_max_sed_lines=50
35816
35817 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35818 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35819 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35820 # et cetera.
35821 ac_in='$ac_file_inputs'
35822 ac_out='"$tmp/out1"'
35823 ac_nxt='"$tmp/out2"'
35824
35825 while :
35826 do
35827   # Write a here document:
35828     cat >>$CONFIG_STATUS <<_ACEOF
35829     # First, check the format of the line:
35830     cat >"\$tmp/defines.sed" <<\\CEOF
35831 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35832 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35833 b
35834 :def
35835 _ACEOF
35836   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35837   echo 'CEOF
35838     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35839   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35840   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35841   grep . conftest.tail >/dev/null || break
35842   rm -f conftest.defines
35843   mv conftest.tail conftest.defines
35844 done
35845 rm -f conftest.defines conftest.tail
35846
35847 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35848 cat >>$CONFIG_STATUS <<\_ACEOF
35849   if test x"$ac_file" != x-; then
35850     echo "/* $configure_input  */" >"$tmp/config.h"
35851     cat "$ac_result" >>"$tmp/config.h"
35852     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35853       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35854 echo "$as_me: $ac_file is unchanged" >&6;}
35855     else
35856       rm -f $ac_file
35857       mv "$tmp/config.h" $ac_file
35858     fi
35859   else
35860     echo "/* $configure_input  */"
35861     cat "$ac_result"
35862   fi
35863   rm -f "$tmp/out12"
35864  ;;
35865
35866   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35867 echo "$as_me: executing $ac_file commands" >&6;}
35868  ;;
35869   esac
35870
35871
35872   case $ac_file$ac_mode in
35873     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35874    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35875     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35876    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35877     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35878    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35879     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35880    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35881     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35882    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35883     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35884    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35885     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35886    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35887     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35888    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35889     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35890    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35891     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35892    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35893     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35894    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35895     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35896    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35897
35898   esac
35899 done # for ac_tag
35900
35901
35902 { (exit 0); exit 0; }
35903 _ACEOF
35904 chmod +x $CONFIG_STATUS
35905 ac_clean_files=$ac_clean_files_save
35906
35907
35908 # configure is writing to config.log, and then calls config.status.
35909 # config.status does its own redirection, appending to config.log.
35910 # Unfortunately, on DOS this fails, as config.log is still kept open
35911 # by configure, so config.status won't be able to write to it; its
35912 # output is simply discarded.  So we exec the FD to /dev/null,
35913 # effectively closing config.log, so it can be properly (re)opened and
35914 # appended to by config.status.  When coming back to configure, we
35915 # need to make the FD available again.
35916 if test "$no_create" != yes; then
35917   ac_cs_success=:
35918   ac_config_status_args=
35919   test "$silent" = yes &&
35920     ac_config_status_args="$ac_config_status_args --quiet"
35921   exec 5>/dev/null
35922   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35923   exec 5>>config.log
35924   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35925   # would make configure fail if this is the last instruction.
35926   $ac_cs_success || { (exit 1); exit 1; }
35927 fi
35928
35929 #
35930 # CONFIG_SUBDIRS section.
35931 #
35932 if test "$no_recursion" != yes; then
35933
35934   # Remove --cache-file and --srcdir arguments so they do not pile up.
35935   ac_sub_configure_args=
35936   ac_prev=
35937   eval "set x $ac_configure_args"
35938   shift
35939   for ac_arg
35940   do
35941     if test -n "$ac_prev"; then
35942       ac_prev=
35943       continue
35944     fi
35945     case $ac_arg in
35946     -cache-file | --cache-file | --cache-fil | --cache-fi \
35947     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35948       ac_prev=cache_file ;;
35949     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35950     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35951     | --c=*)
35952       ;;
35953     --config-cache | -C)
35954       ;;
35955     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35956       ac_prev=srcdir ;;
35957     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35958       ;;
35959     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35960       ac_prev=prefix ;;
35961     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35962       ;;
35963     *)
35964       case $ac_arg in
35965       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35966       esac
35967       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35968     esac
35969   done
35970
35971   # Always prepend --prefix to ensure using the same prefix
35972   # in subdir configurations.
35973   ac_arg="--prefix=$prefix"
35974   case $ac_arg in
35975   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35976   esac
35977   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35978
35979   ac_popdir=`pwd`
35980   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35981
35982     # Do not complain, so a configure script can configure whichever
35983     # parts of a large source tree are present.
35984     test -d "$srcdir/$ac_dir" || continue
35985
35986     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35987     echo "$as_me:$LINENO: $ac_msg" >&5
35988     echo "$ac_msg" >&6
35989     { as_dir="$ac_dir"
35990   case $as_dir in #(
35991   -*) as_dir=./$as_dir;;
35992   esac
35993   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35994     as_dirs=
35995     while :; do
35996       case $as_dir in #(
35997       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35998       *) as_qdir=$as_dir;;
35999       esac
36000       as_dirs="'$as_qdir' $as_dirs"
36001       as_dir=`$as_dirname -- "$as_dir" ||
36002 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36003          X"$as_dir" : 'X\(//\)[^/]' \| \
36004          X"$as_dir" : 'X\(//\)$' \| \
36005          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36006 echo X"$as_dir" |
36007     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36008             s//\1/
36009             q
36010           }
36011           /^X\(\/\/\)[^/].*/{
36012             s//\1/
36013             q
36014           }
36015           /^X\(\/\/\)$/{
36016             s//\1/
36017             q
36018           }
36019           /^X\(\/\).*/{
36020             s//\1/
36021             q
36022           }
36023           s/.*/./; q'`
36024       test -d "$as_dir" && break
36025     done
36026     test -z "$as_dirs" || eval "mkdir $as_dirs"
36027   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36028 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36029    { (exit 1); exit 1; }; }; }
36030     ac_builddir=.
36031
36032 case "$ac_dir" in
36033 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36034 *)
36035   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36036   # A ".." for each directory in $ac_dir_suffix.
36037   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36038   case $ac_top_builddir_sub in
36039   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36040   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36041   esac ;;
36042 esac
36043 ac_abs_top_builddir=$ac_pwd
36044 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36045 # for backward compatibility:
36046 ac_top_builddir=$ac_top_build_prefix
36047
36048 case $srcdir in
36049   .)  # We are building in place.
36050     ac_srcdir=.
36051     ac_top_srcdir=$ac_top_builddir_sub
36052     ac_abs_top_srcdir=$ac_pwd ;;
36053   [\\/]* | ?:[\\/]* )  # Absolute name.
36054     ac_srcdir=$srcdir$ac_dir_suffix;
36055     ac_top_srcdir=$srcdir
36056     ac_abs_top_srcdir=$srcdir ;;
36057   *) # Relative name.
36058     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36059     ac_top_srcdir=$ac_top_build_prefix$srcdir
36060     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36061 esac
36062 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36063
36064
36065     cd "$ac_dir"
36066
36067     # Check for guested configure; otherwise get Cygnus style configure.
36068     if test -f "$ac_srcdir/configure.gnu"; then
36069       ac_sub_configure=$ac_srcdir/configure.gnu
36070     elif test -f "$ac_srcdir/configure"; then
36071       ac_sub_configure=$ac_srcdir/configure
36072     elif test -f "$ac_srcdir/configure.in"; then
36073       # This should be Cygnus configure.
36074       ac_sub_configure=$ac_aux_dir/configure
36075     else
36076       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36077 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36078       ac_sub_configure=
36079     fi
36080
36081     # The recursion is here.
36082     if test -n "$ac_sub_configure"; then
36083       # Make the cache file name correct relative to the subdirectory.
36084       case $cache_file in
36085       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36086       *) # Relative name.
36087         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36088       esac
36089
36090       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36091 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36092       # The eval makes quoting arguments work.
36093       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36094            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36095         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36096 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36097    { (exit 1); exit 1; }; }
36098     fi
36099
36100     cd "$ac_popdir"
36101   done
36102 fi
36103