This patch cleans up the OCaml bindings so that they format nicely with
[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.3svn.
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.3svn'
719 PACKAGE_STRING='llvm 2.3svn'
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 CVSBUILD
831 ENABLE_OPTIMIZED
832 DISABLE_ASSERTIONS
833 ENABLE_EXPENSIVE_CHECKS
834 EXPENSIVE_CHECKS
835 DEBUG_RUNTIME
836 JIT
837 TARGET_HAS_JIT
838 ENABLE_DOXYGEN
839 ENABLE_THREADS
840 ENABLE_PIC
841 TARGETS_TO_BUILD
842 ENABLE_CBE_PRINTF_A
843 EXTRA_OPTIONS
844 CXX
845 CXXFLAGS
846 ac_ct_CXX
847 LEX
848 LEXLIB
849 LEX_OUTPUT_ROOT
850 FLEX
851 YACC
852 YFLAGS
853 BISON
854 NM
855 ifGNUmake
856 LN_S
857 CMP
858 CP
859 DATE
860 FIND
861 MKDIR
862 MV
863 RANLIB
864 RM
865 SED
866 TAR
867 BINPWD
868 GRAPHVIZ
869 DOT
870 GV
871 DOTTY
872 PERL
873 HAVE_PERL
874 INSTALL_PROGRAM
875 INSTALL_SCRIPT
876 INSTALL_DATA
877 BZIP2
878 DOXYGEN
879 GROFF
880 GZIP
881 POD2HTML
882 POD2MAN
883 RUNTEST
884 TCLSH
885 ZIP
886 OCAMLC
887 OCAMLOPT
888 OCAMLDEP
889 INSTALL_LTDL_TRUE
890 INSTALL_LTDL_FALSE
891 CONVENIENCE_LTDL_TRUE
892 CONVENIENCE_LTDL_FALSE
893 LIBADD_DL
894 ECHO
895 AR
896 STRIP
897 CXXCPP
898 F77
899 FFLAGS
900 ac_ct_F77
901 LIBTOOL
902 LLVMGCC
903 LLVMGXX
904 USE_UDIS86
905 HAVE_PTHREAD
906 HUGE_VAL_SANITY
907 ALLOCA
908 MMAP_FILE
909 LLVMCC1
910 LLVMCC1PLUS
911 LLVMGCCDIR
912 LLVMGCCLIBEXEC
913 LLVMGCC_VERSION
914 LLVMGCC_MAJVERS
915 LLVMGCC_LANGS
916 SHLIBEXT
917 LLVM_PREFIX
918 LLVM_BINDIR
919 LLVM_LIBDIR
920 LLVM_DATADIR
921 LLVM_DOCSDIR
922 LLVM_ETCDIR
923 LLVM_INCLUDEDIR
924 LLVM_INFODIR
925 LLVM_MANDIR
926 LLVM_CONFIGTIME
927 BINDINGS_TO_BUILD
928 ALL_BINDINGS
929 OCAML_LIBDIR
930 LIBOBJS
931 LTLIBOBJS'
932 ac_subst_files=''
933       ac_precious_vars='build_alias
934 host_alias
935 target_alias
936 CC
937 CFLAGS
938 LDFLAGS
939 CPPFLAGS
940 CPP
941 CXX
942 CXXFLAGS
943 CCC
944 YACC
945 YFLAGS
946 CXXCPP
947 F77
948 FFLAGS'
949 ac_subdirs_all='projects/sample
950 projects/privbracket
951 projects/llvm-stacker
952 projects/llvm-test
953 projects/llvm-reopt
954 projects/llvm-gcc
955 projects/llvm-java
956 projects/llvm-tv
957 projects/llvm-poolalloc
958 projects/poolalloc
959 projects/llvm-kernel'
960
961 # Initialize some variables set by options.
962 ac_init_help=
963 ac_init_version=false
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
966 cache_file=/dev/null
967 exec_prefix=NONE
968 no_create=
969 no_recursion=
970 prefix=NONE
971 program_prefix=NONE
972 program_suffix=NONE
973 program_transform_name=s,x,x,
974 silent=
975 site=
976 srcdir=
977 verbose=
978 x_includes=NONE
979 x_libraries=NONE
980
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998 infodir='${datarootdir}/info'
999 htmldir='${docdir}'
1000 dvidir='${docdir}'
1001 pdfdir='${docdir}'
1002 psdir='${docdir}'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1006
1007 ac_prev=
1008 ac_dashdash=
1009 for ac_option
1010 do
1011   # If the previous option needs an argument, assign it.
1012   if test -n "$ac_prev"; then
1013     eval $ac_prev=\$ac_option
1014     ac_prev=
1015     continue
1016   fi
1017
1018   case $ac_option in
1019   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020   *)    ac_optarg=yes ;;
1021   esac
1022
1023   # Accept the important Cygnus configure options, so we can diagnose typos.
1024
1025   case $ac_dashdash$ac_option in
1026   --)
1027     ac_dashdash=yes ;;
1028
1029   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030     ac_prev=bindir ;;
1031   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032     bindir=$ac_optarg ;;
1033
1034   -build | --build | --buil | --bui | --bu)
1035     ac_prev=build_alias ;;
1036   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037     build_alias=$ac_optarg ;;
1038
1039   -cache-file | --cache-file | --cache-fil | --cache-fi \
1040   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041     ac_prev=cache_file ;;
1042   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044     cache_file=$ac_optarg ;;
1045
1046   --config-cache | -C)
1047     cache_file=config.cache ;;
1048
1049   -datadir | --datadir | --datadi | --datad)
1050     ac_prev=datadir ;;
1051   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052     datadir=$ac_optarg ;;
1053
1054   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055   | --dataroo | --dataro | --datar)
1056     ac_prev=datarootdir ;;
1057   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059     datarootdir=$ac_optarg ;;
1060
1061   -disable-* | --disable-*)
1062     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063     # Reject names that are not valid shell variable names.
1064     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1065       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066    { (exit 1); exit 1; }; }
1067     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1068     eval enable_$ac_feature=no ;;
1069
1070   -docdir | --docdir | --docdi | --doc | --do)
1071     ac_prev=docdir ;;
1072   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073     docdir=$ac_optarg ;;
1074
1075   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076     ac_prev=dvidir ;;
1077   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078     dvidir=$ac_optarg ;;
1079
1080   -enable-* | --enable-*)
1081     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082     # Reject names that are not valid shell variable names.
1083     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1084       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085    { (exit 1); exit 1; }; }
1086     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1087     eval enable_$ac_feature=\$ac_optarg ;;
1088
1089   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091   | --exec | --exe | --ex)
1092     ac_prev=exec_prefix ;;
1093   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095   | --exec=* | --exe=* | --ex=*)
1096     exec_prefix=$ac_optarg ;;
1097
1098   -gas | --gas | --ga | --g)
1099     # Obsolete; use --with-gas.
1100     with_gas=yes ;;
1101
1102   -help | --help | --hel | --he | -h)
1103     ac_init_help=long ;;
1104   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105     ac_init_help=recursive ;;
1106   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107     ac_init_help=short ;;
1108
1109   -host | --host | --hos | --ho)
1110     ac_prev=host_alias ;;
1111   -host=* | --host=* | --hos=* | --ho=*)
1112     host_alias=$ac_optarg ;;
1113
1114   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115     ac_prev=htmldir ;;
1116   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117   | --ht=*)
1118     htmldir=$ac_optarg ;;
1119
1120   -includedir | --includedir | --includedi | --included | --include \
1121   | --includ | --inclu | --incl | --inc)
1122     ac_prev=includedir ;;
1123   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124   | --includ=* | --inclu=* | --incl=* | --inc=*)
1125     includedir=$ac_optarg ;;
1126
1127   -infodir | --infodir | --infodi | --infod | --info | --inf)
1128     ac_prev=infodir ;;
1129   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130     infodir=$ac_optarg ;;
1131
1132   -libdir | --libdir | --libdi | --libd)
1133     ac_prev=libdir ;;
1134   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135     libdir=$ac_optarg ;;
1136
1137   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138   | --libexe | --libex | --libe)
1139     ac_prev=libexecdir ;;
1140   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141   | --libexe=* | --libex=* | --libe=*)
1142     libexecdir=$ac_optarg ;;
1143
1144   -localedir | --localedir | --localedi | --localed | --locale)
1145     ac_prev=localedir ;;
1146   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147     localedir=$ac_optarg ;;
1148
1149   -localstatedir | --localstatedir | --localstatedi | --localstated \
1150   | --localstate | --localstat | --localsta | --localst | --locals)
1151     ac_prev=localstatedir ;;
1152   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154     localstatedir=$ac_optarg ;;
1155
1156   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157     ac_prev=mandir ;;
1158   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159     mandir=$ac_optarg ;;
1160
1161   -nfp | --nfp | --nf)
1162     # Obsolete; use --without-fp.
1163     with_fp=no ;;
1164
1165   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166   | --no-cr | --no-c | -n)
1167     no_create=yes ;;
1168
1169   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171     no_recursion=yes ;;
1172
1173   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175   | --oldin | --oldi | --old | --ol | --o)
1176     ac_prev=oldincludedir ;;
1177   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180     oldincludedir=$ac_optarg ;;
1181
1182   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183     ac_prev=prefix ;;
1184   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185     prefix=$ac_optarg ;;
1186
1187   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188   | --program-pre | --program-pr | --program-p)
1189     ac_prev=program_prefix ;;
1190   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192     program_prefix=$ac_optarg ;;
1193
1194   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195   | --program-suf | --program-su | --program-s)
1196     ac_prev=program_suffix ;;
1197   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199     program_suffix=$ac_optarg ;;
1200
1201   -program-transform-name | --program-transform-name \
1202   | --program-transform-nam | --program-transform-na \
1203   | --program-transform-n | --program-transform- \
1204   | --program-transform | --program-transfor \
1205   | --program-transfo | --program-transf \
1206   | --program-trans | --program-tran \
1207   | --progr-tra | --program-tr | --program-t)
1208     ac_prev=program_transform_name ;;
1209   -program-transform-name=* | --program-transform-name=* \
1210   | --program-transform-nam=* | --program-transform-na=* \
1211   | --program-transform-n=* | --program-transform-=* \
1212   | --program-transform=* | --program-transfor=* \
1213   | --program-transfo=* | --program-transf=* \
1214   | --program-trans=* | --program-tran=* \
1215   | --progr-tra=* | --program-tr=* | --program-t=*)
1216     program_transform_name=$ac_optarg ;;
1217
1218   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219     ac_prev=pdfdir ;;
1220   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221     pdfdir=$ac_optarg ;;
1222
1223   -psdir | --psdir | --psdi | --psd | --ps)
1224     ac_prev=psdir ;;
1225   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226     psdir=$ac_optarg ;;
1227
1228   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229   | -silent | --silent | --silen | --sile | --sil)
1230     silent=yes ;;
1231
1232   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233     ac_prev=sbindir ;;
1234   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235   | --sbi=* | --sb=*)
1236     sbindir=$ac_optarg ;;
1237
1238   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240   | --sharedst | --shareds | --shared | --share | --shar \
1241   | --sha | --sh)
1242     ac_prev=sharedstatedir ;;
1243   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246   | --sha=* | --sh=*)
1247     sharedstatedir=$ac_optarg ;;
1248
1249   -site | --site | --sit)
1250     ac_prev=site ;;
1251   -site=* | --site=* | --sit=*)
1252     site=$ac_optarg ;;
1253
1254   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255     ac_prev=srcdir ;;
1256   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257     srcdir=$ac_optarg ;;
1258
1259   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260   | --syscon | --sysco | --sysc | --sys | --sy)
1261     ac_prev=sysconfdir ;;
1262   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264     sysconfdir=$ac_optarg ;;
1265
1266   -target | --target | --targe | --targ | --tar | --ta | --t)
1267     ac_prev=target_alias ;;
1268   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269     target_alias=$ac_optarg ;;
1270
1271   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272     verbose=yes ;;
1273
1274   -version | --version | --versio | --versi | --vers | -V)
1275     ac_init_version=: ;;
1276
1277   -with-* | --with-*)
1278     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279     # Reject names that are not valid shell variable names.
1280     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1281       { echo "$as_me: error: invalid package name: $ac_package" >&2
1282    { (exit 1); exit 1; }; }
1283     ac_package=`echo $ac_package| sed 's/-/_/g'`
1284     eval with_$ac_package=\$ac_optarg ;;
1285
1286   -without-* | --without-*)
1287     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288     # Reject names that are not valid shell variable names.
1289     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1290       { echo "$as_me: error: invalid package name: $ac_package" >&2
1291    { (exit 1); exit 1; }; }
1292     ac_package=`echo $ac_package | sed 's/-/_/g'`
1293     eval with_$ac_package=no ;;
1294
1295   --x)
1296     # Obsolete; use --with-x.
1297     with_x=yes ;;
1298
1299   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300   | --x-incl | --x-inc | --x-in | --x-i)
1301     ac_prev=x_includes ;;
1302   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304     x_includes=$ac_optarg ;;
1305
1306   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308     ac_prev=x_libraries ;;
1309   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311     x_libraries=$ac_optarg ;;
1312
1313   -*) { echo "$as_me: error: unrecognized option: $ac_option
1314 Try \`$0 --help' for more information." >&2
1315    { (exit 1); exit 1; }; }
1316     ;;
1317
1318   *=*)
1319     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320     # Reject names that are not valid shell variable names.
1321     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323    { (exit 1); exit 1; }; }
1324     eval $ac_envvar=\$ac_optarg
1325     export $ac_envvar ;;
1326
1327   *)
1328     # FIXME: should be removed in autoconf 3.0.
1329     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333     ;;
1334
1335   esac
1336 done
1337
1338 if test -n "$ac_prev"; then
1339   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340   { echo "$as_me: error: missing argument to $ac_option" >&2
1341    { (exit 1); exit 1; }; }
1342 fi
1343
1344 # Be sure to have absolute directory names.
1345 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346                 datadir sysconfdir sharedstatedir localstatedir includedir \
1347                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348                 libdir localedir mandir
1349 do
1350   eval ac_val=\$$ac_var
1351   case $ac_val in
1352     [\\/$]* | ?:[\\/]* )  continue;;
1353     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354   esac
1355   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356    { (exit 1); exit 1; }; }
1357 done
1358
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1362 build=$build_alias
1363 host=$host_alias
1364 target=$target_alias
1365
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368   if test "x$build_alias" = x; then
1369     cross_compiling=maybe
1370     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371     If a cross compiler is detected then cross compile mode will be used." >&2
1372   elif test "x$build_alias" != "x$host_alias"; then
1373     cross_compiling=yes
1374   fi
1375 fi
1376
1377 ac_tool_prefix=
1378 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380 test "$silent" = yes && exec 6>/dev/null
1381
1382
1383 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di=`ls -di .` &&
1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386   { echo "$as_me: error: Working directory cannot be determined" >&2
1387    { (exit 1); exit 1; }; }
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389   { echo "$as_me: error: pwd does not report name of working directory" >&2
1390    { (exit 1); exit 1; }; }
1391
1392
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395   ac_srcdir_defaulted=yes
1396   # Try the directory containing this script, then the parent directory.
1397   ac_confdir=`$as_dirname -- "$0" ||
1398 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399          X"$0" : 'X\(//\)[^/]' \| \
1400          X"$0" : 'X\(//\)$' \| \
1401          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1402 echo X"$0" |
1403     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404             s//\1/
1405             q
1406           }
1407           /^X\(\/\/\)[^/].*/{
1408             s//\1/
1409             q
1410           }
1411           /^X\(\/\/\)$/{
1412             s//\1/
1413             q
1414           }
1415           /^X\(\/\).*/{
1416             s//\1/
1417             q
1418           }
1419           s/.*/./; q'`
1420   srcdir=$ac_confdir
1421   if test ! -r "$srcdir/$ac_unique_file"; then
1422     srcdir=..
1423   fi
1424 else
1425   ac_srcdir_defaulted=no
1426 fi
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1430    { (exit 1); exit 1; }; }
1431 fi
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 ac_abs_confdir=`(
1434         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1435    { (exit 1); exit 1; }; }
1436         pwd)`
1437 # When building in place, set srcdir=.
1438 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439   srcdir=.
1440 fi
1441 # Remove unnecessary trailing slashes from srcdir.
1442 # Double slashes in file names in object file debugging info
1443 # mess up M-x gdb in Emacs.
1444 case $srcdir in
1445 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446 esac
1447 for ac_var in $ac_precious_vars; do
1448   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449   eval ac_env_${ac_var}_value=\$${ac_var}
1450   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452 done
1453
1454 #
1455 # Report the --help message.
1456 #
1457 if test "$ac_init_help" = "long"; then
1458   # Omit some internal or obsolete options to make the list less imposing.
1459   # This message is too long to be a string in the A/UX 3.1 sh.
1460   cat <<_ACEOF
1461 \`configure' configures llvm 2.3svn to adapt to many kinds of systems.
1462
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE.  See below for descriptions of some of the useful variables.
1467
1468 Defaults for the options are specified in brackets.
1469
1470 Configuration:
1471   -h, --help              display this help and exit
1472       --help=short        display options specific to this package
1473       --help=recursive    display the short help of all the included packages
1474   -V, --version           display version information and exit
1475   -q, --quiet, --silent   do not print \`checking...' messages
1476       --cache-file=FILE   cache test results in FILE [disabled]
1477   -C, --config-cache      alias for \`--cache-file=config.cache'
1478   -n, --no-create         do not create output files
1479       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1480
1481 Installation directories:
1482   --prefix=PREFIX         install architecture-independent files in PREFIX
1483                           [$ac_default_prefix]
1484   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1485                           [PREFIX]
1486
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1491
1492 For better control, use the options below.
1493
1494 Fine tuning of the installation directories:
1495   --bindir=DIR           user executables [EPREFIX/bin]
1496   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1497   --libexecdir=DIR       program executables [EPREFIX/libexec]
1498   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1499   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1500   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1501   --libdir=DIR           object code libraries [EPREFIX/lib]
1502   --includedir=DIR       C header files [PREFIX/include]
1503   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1504   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1505   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1506   --infodir=DIR          info documentation [DATAROOTDIR/info]
1507   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1508   --mandir=DIR           man documentation [DATAROOTDIR/man]
1509   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1510   --htmldir=DIR          html documentation [DOCDIR]
1511   --dvidir=DIR           dvi documentation [DOCDIR]
1512   --pdfdir=DIR           pdf documentation [DOCDIR]
1513   --psdir=DIR            ps documentation [DOCDIR]
1514 _ACEOF
1515
1516   cat <<\_ACEOF
1517
1518 System types:
1519   --build=BUILD     configure for building on BUILD [guessed]
1520   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1521   --target=TARGET   configure for building compilers for TARGET [HOST]
1522 _ACEOF
1523 fi
1524
1525 if test -n "$ac_init_help"; then
1526   case $ac_init_help in
1527      short | recursive ) echo "Configuration of llvm 2.3svn:";;
1528    esac
1529   cat <<\_ACEOF
1530
1531 Optional Features:
1532   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1533   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1534   --enable-optimized
1535   --enable-assertions
1536   --enable-expensive-checks
1537
1538   --enable-debug-runtime
1539   --enable-jit            Enable Just In Time Compiling (default is YES)
1540   --enable-doxygen        Build doxygen documentation (default is NO)
1541   --enable-threads        Use threads if available (default is YES)
1542   --enable-pic            Build LLVM with Position Independent Code (default
1543                           is NO)
1544   --enable-targets        Build specific host targets:
1545                           all,host-only,{target-name} (default=all)
1546   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1547                           %a (default is YES)
1548   --enable-bindings       Build specific language bindings:
1549                           all,auto,none,{binding-name} (default=auto)
1550   --enable-ltdl-install   install libltdl
1551   --enable-shared[=PKGS]  build shared libraries
1552                           [default=yes]
1553   --enable-static[=PKGS]  build static libraries
1554                           [default=yes]
1555   --enable-fast-install[=PKGS]
1556                           optimize for fast installation
1557                           [default=yes]
1558   --disable-libtool-lock  avoid locking (might break parallel builds)
1559
1560 Optional Packages:
1561   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1562   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1563   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1564                           searches PATH)
1565   --with-llvmgcc          Specify location of llvm-gcc driver (default
1566                           searches PATH)
1567   --with-llvmgxx          Specify location of llvm-g++ driver (default
1568                           searches PATH)
1569   --with-extra-options    Specify addtional options to compile LLVM with
1570   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1571                           is stdlib)
1572   --with-tclinclude       directory where tcl headers are
1573   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1574   --with-pic              try to use only PIC/non-PIC objects [default=use
1575                           both]
1576   --with-tags[=TAGS]      include additional configurations [automatic]
1577   --with-udis86=<path>    Use udis86 external x86 disassembler library
1578
1579 Some influential environment variables:
1580   CC          C compiler command
1581   CFLAGS      C compiler flags
1582   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1583               nonstandard directory <lib dir>
1584   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585               you have headers in a nonstandard directory <include dir>
1586   CPP         C preprocessor
1587   CXX         C++ compiler command
1588   CXXFLAGS    C++ compiler flags
1589   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1590               the first program found out of: `bison -y', `byacc', `yacc'.
1591   YFLAGS      The list of arguments that will be passed by default to $YACC.
1592               This script will default YFLAGS to the empty string to avoid a
1593               default value of `-d' given by some make applications.
1594   CXXCPP      C++ preprocessor
1595   F77         Fortran 77 compiler command
1596   FFLAGS      Fortran 77 compiler flags
1597
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1600
1601 Report bugs to <llvmbugs@cs.uiuc.edu>.
1602 _ACEOF
1603 ac_status=$?
1604 fi
1605
1606 if test "$ac_init_help" = "recursive"; then
1607   # If there are subdirs, report their specific --help.
1608   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609     test -d "$ac_dir" || continue
1610     ac_builddir=.
1611
1612 case "$ac_dir" in
1613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 *)
1615   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1616   # A ".." for each directory in $ac_dir_suffix.
1617   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1618   case $ac_top_builddir_sub in
1619   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621   esac ;;
1622 esac
1623 ac_abs_top_builddir=$ac_pwd
1624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625 # for backward compatibility:
1626 ac_top_builddir=$ac_top_build_prefix
1627
1628 case $srcdir in
1629   .)  # We are building in place.
1630     ac_srcdir=.
1631     ac_top_srcdir=$ac_top_builddir_sub
1632     ac_abs_top_srcdir=$ac_pwd ;;
1633   [\\/]* | ?:[\\/]* )  # Absolute name.
1634     ac_srcdir=$srcdir$ac_dir_suffix;
1635     ac_top_srcdir=$srcdir
1636     ac_abs_top_srcdir=$srcdir ;;
1637   *) # Relative name.
1638     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639     ac_top_srcdir=$ac_top_build_prefix$srcdir
1640     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1641 esac
1642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643
1644     cd "$ac_dir" || { ac_status=$?; continue; }
1645     # Check for guested configure.
1646     if test -f "$ac_srcdir/configure.gnu"; then
1647       echo &&
1648       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649     elif test -f "$ac_srcdir/configure"; then
1650       echo &&
1651       $SHELL "$ac_srcdir/configure" --help=recursive
1652     else
1653       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654     fi || ac_status=$?
1655     cd "$ac_pwd" || { ac_status=$?; break; }
1656   done
1657 fi
1658
1659 test -n "$ac_init_help" && exit $ac_status
1660 if $ac_init_version; then
1661   cat <<\_ACEOF
1662 llvm configure 2.3svn
1663 generated by GNU Autoconf 2.60
1664
1665 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1666 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1667 This configure script is free software; the Free Software Foundation
1668 gives unlimited permission to copy, distribute and modify it.
1669
1670 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1671 _ACEOF
1672   exit
1673 fi
1674 cat >config.log <<_ACEOF
1675 This file contains any messages produced by compilers while
1676 running configure, to aid debugging if configure makes a mistake.
1677
1678 It was created by llvm $as_me 2.3svn, which was
1679 generated by GNU Autoconf 2.60.  Invocation command line was
1680
1681   $ $0 $@
1682
1683 _ACEOF
1684 exec 5>>config.log
1685 {
1686 cat <<_ASUNAME
1687 ## --------- ##
1688 ## Platform. ##
1689 ## --------- ##
1690
1691 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696
1697 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1699
1700 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1701 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1702 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1703 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1704 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1705 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1706 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1707
1708 _ASUNAME
1709
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 for as_dir in $PATH
1712 do
1713   IFS=$as_save_IFS
1714   test -z "$as_dir" && as_dir=.
1715   echo "PATH: $as_dir"
1716 done
1717 IFS=$as_save_IFS
1718
1719 } >&5
1720
1721 cat >&5 <<_ACEOF
1722
1723
1724 ## ----------- ##
1725 ## Core tests. ##
1726 ## ----------- ##
1727
1728 _ACEOF
1729
1730
1731 # Keep a trace of the command line.
1732 # Strip out --no-create and --no-recursion so they do not pile up.
1733 # Strip out --silent because we don't want to record it for future runs.
1734 # Also quote any args containing shell meta-characters.
1735 # Make two passes to allow for proper duplicate-argument suppression.
1736 ac_configure_args=
1737 ac_configure_args0=
1738 ac_configure_args1=
1739 ac_must_keep_next=false
1740 for ac_pass in 1 2
1741 do
1742   for ac_arg
1743   do
1744     case $ac_arg in
1745     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747     | -silent | --silent | --silen | --sile | --sil)
1748       continue ;;
1749     *\'*)
1750       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1751     esac
1752     case $ac_pass in
1753     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1754     2)
1755       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756       if test $ac_must_keep_next = true; then
1757         ac_must_keep_next=false # Got value, back to normal.
1758       else
1759         case $ac_arg in
1760           *=* | --config-cache | -C | -disable-* | --disable-* \
1761           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763           | -with-* | --with-* | -without-* | --without-* | --x)
1764             case "$ac_configure_args0 " in
1765               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1766             esac
1767             ;;
1768           -* ) ac_must_keep_next=true ;;
1769         esac
1770       fi
1771       ac_configure_args="$ac_configure_args '$ac_arg'"
1772       ;;
1773     esac
1774   done
1775 done
1776 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1778
1779 # When interrupted or exit'd, cleanup temporary files, and complete
1780 # config.log.  We remove comments because anyway the quotes in there
1781 # would cause problems or look ugly.
1782 # WARNING: Use '\'' to represent an apostrophe within the trap.
1783 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1784 trap 'exit_status=$?
1785   # Save into config.log some information that might help in debugging.
1786   {
1787     echo
1788
1789     cat <<\_ASBOX
1790 ## ---------------- ##
1791 ## Cache variables. ##
1792 ## ---------------- ##
1793 _ASBOX
1794     echo
1795     # The following way of writing the cache mishandles newlines in values,
1796 (
1797   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798     eval ac_val=\$$ac_var
1799     case $ac_val in #(
1800     *${as_nl}*)
1801       case $ac_var in #(
1802       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1804       esac
1805       case $ac_var in #(
1806       _ | IFS | as_nl) ;; #(
1807       *) $as_unset $ac_var ;;
1808       esac ;;
1809     esac
1810   done
1811   (set) 2>&1 |
1812     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813     *${as_nl}ac_space=\ *)
1814       sed -n \
1815         "s/'\''/'\''\\\\'\'''\''/g;
1816           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1817       ;; #(
1818     *)
1819       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1820       ;;
1821     esac |
1822     sort
1823 )
1824     echo
1825
1826     cat <<\_ASBOX
1827 ## ----------------- ##
1828 ## Output variables. ##
1829 ## ----------------- ##
1830 _ASBOX
1831     echo
1832     for ac_var in $ac_subst_vars
1833     do
1834       eval ac_val=\$$ac_var
1835       case $ac_val in
1836       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837       esac
1838       echo "$ac_var='\''$ac_val'\''"
1839     done | sort
1840     echo
1841
1842     if test -n "$ac_subst_files"; then
1843       cat <<\_ASBOX
1844 ## ------------------- ##
1845 ## File substitutions. ##
1846 ## ------------------- ##
1847 _ASBOX
1848       echo
1849       for ac_var in $ac_subst_files
1850       do
1851         eval ac_val=\$$ac_var
1852         case $ac_val in
1853         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854         esac
1855         echo "$ac_var='\''$ac_val'\''"
1856       done | sort
1857       echo
1858     fi
1859
1860     if test -s confdefs.h; then
1861       cat <<\_ASBOX
1862 ## ----------- ##
1863 ## confdefs.h. ##
1864 ## ----------- ##
1865 _ASBOX
1866       echo
1867       cat confdefs.h
1868       echo
1869     fi
1870     test "$ac_signal" != 0 &&
1871       echo "$as_me: caught signal $ac_signal"
1872     echo "$as_me: exit $exit_status"
1873   } >&5
1874   rm -f core *.core core.conftest.* &&
1875     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1876     exit $exit_status
1877 ' 0
1878 for ac_signal in 1 2 13 15; do
1879   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1880 done
1881 ac_signal=0
1882
1883 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1884 rm -f -r conftest* confdefs.h
1885
1886 # Predefined preprocessor variables.
1887
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_NAME "$PACKAGE_NAME"
1890 _ACEOF
1891
1892
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1895 _ACEOF
1896
1897
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1900 _ACEOF
1901
1902
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_STRING "$PACKAGE_STRING"
1905 _ACEOF
1906
1907
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1910 _ACEOF
1911
1912
1913 # Let the site file select an alternate cache file if it wants to.
1914 # Prefer explicitly selected file to automatically selected ones.
1915 if test -n "$CONFIG_SITE"; then
1916   set x "$CONFIG_SITE"
1917 elif test "x$prefix" != xNONE; then
1918   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1919 else
1920   set x "$ac_default_prefix/share/config.site" \
1921         "$ac_default_prefix/etc/config.site"
1922 fi
1923 shift
1924 for ac_site_file
1925 do
1926   if test -r "$ac_site_file"; then
1927     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1928 echo "$as_me: loading site script $ac_site_file" >&6;}
1929     sed 's/^/| /' "$ac_site_file" >&5
1930     . "$ac_site_file"
1931   fi
1932 done
1933
1934 if test -r "$cache_file"; then
1935   # Some versions of bash will fail to source /dev/null (special
1936   # files actually), so we avoid doing that.
1937   if test -f "$cache_file"; then
1938     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1939 echo "$as_me: loading cache $cache_file" >&6;}
1940     case $cache_file in
1941       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1942       *)                      . "./$cache_file";;
1943     esac
1944   fi
1945 else
1946   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1947 echo "$as_me: creating cache $cache_file" >&6;}
1948   >$cache_file
1949 fi
1950
1951 # Check that the precious variables saved in the cache have kept the same
1952 # value.
1953 ac_cache_corrupted=false
1954 for ac_var in $ac_precious_vars; do
1955   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1956   eval ac_new_set=\$ac_env_${ac_var}_set
1957   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1958   eval ac_new_val=\$ac_env_${ac_var}_value
1959   case $ac_old_set,$ac_new_set in
1960     set,)
1961       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1962 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1963       ac_cache_corrupted=: ;;
1964     ,set)
1965       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1966 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1967       ac_cache_corrupted=: ;;
1968     ,);;
1969     *)
1970       if test "x$ac_old_val" != "x$ac_new_val"; then
1971         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1974 echo "$as_me:   former value:  $ac_old_val" >&2;}
1975         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1976 echo "$as_me:   current value: $ac_new_val" >&2;}
1977         ac_cache_corrupted=:
1978       fi;;
1979   esac
1980   # Pass precious variables to config.status.
1981   if test "$ac_new_set" = set; then
1982     case $ac_new_val in
1983     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1984     *) ac_arg=$ac_var=$ac_new_val ;;
1985     esac
1986     case " $ac_configure_args " in
1987       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1988       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1989     esac
1990   fi
1991 done
1992 if $ac_cache_corrupted; then
1993   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1994 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1995   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1996 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1997    { (exit 1); exit 1; }; }
1998 fi
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024 ac_ext=c
2025 ac_cpp='$CPP $CPPFLAGS'
2026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029
2030
2031
2032 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2033
2034
2035
2036
2037
2038
2039
2040 ac_aux_dir=
2041 for ac_dir in autoconf "$srcdir"/autoconf; do
2042   if test -f "$ac_dir/install-sh"; then
2043     ac_aux_dir=$ac_dir
2044     ac_install_sh="$ac_aux_dir/install-sh -c"
2045     break
2046   elif test -f "$ac_dir/install.sh"; then
2047     ac_aux_dir=$ac_dir
2048     ac_install_sh="$ac_aux_dir/install.sh -c"
2049     break
2050   elif test -f "$ac_dir/shtool"; then
2051     ac_aux_dir=$ac_dir
2052     ac_install_sh="$ac_aux_dir/shtool install -c"
2053     break
2054   fi
2055 done
2056 if test -z "$ac_aux_dir"; then
2057   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2058 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2059    { (exit 1); exit 1; }; }
2060 fi
2061
2062 # These three variables are undocumented and unsupported,
2063 # and are intended to be withdrawn in a future Autoconf release.
2064 # They can cause serious problems if a builder's source tree is in a directory
2065 # whose full name contains unusual characters.
2066 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2067 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2068 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2069
2070
2071
2072 if test ${srcdir} != "." ; then
2073   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2074     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2075 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2076    { (exit 1); exit 1; }; }
2077   fi
2078 fi
2079
2080 for i in `ls ${srcdir}/projects`
2081 do
2082   if test -d ${srcdir}/projects/${i} ; then
2083     case ${i} in
2084       CVS) ;;
2085       sample)       subdirs="$subdirs projects/sample"
2086     ;;
2087       privbracket)  subdirs="$subdirs projects/privbracket"
2088  ;;
2089       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2090  ;;
2091       llvm-test)    subdirs="$subdirs projects/llvm-test"
2092  ;;
2093       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2094 ;;
2095       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2096   ;;
2097       llvm-java)    subdirs="$subdirs projects/llvm-java"
2098  ;;
2099       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2100    ;;
2101       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2102  ;;
2103       poolalloc)    subdirs="$subdirs projects/poolalloc"
2104  ;;
2105       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2106  ;;
2107       *)
2108         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2109 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2110         ;;
2111     esac
2112   fi
2113 done
2114
2115
2116 # Make sure we can run config.sub.
2117 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2118   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2119 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2120    { (exit 1); exit 1; }; }
2121
2122 { echo "$as_me:$LINENO: checking build system type" >&5
2123 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2124 if test "${ac_cv_build+set}" = set; then
2125   echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127   ac_build_alias=$build_alias
2128 test "x$ac_build_alias" = x &&
2129   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2130 test "x$ac_build_alias" = x &&
2131   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2132 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2133    { (exit 1); exit 1; }; }
2134 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2135   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2136 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2137    { (exit 1); exit 1; }; }
2138
2139 fi
2140 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2141 echo "${ECHO_T}$ac_cv_build" >&6; }
2142 case $ac_cv_build in
2143 *-*-*) ;;
2144 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2145 echo "$as_me: error: invalid value of canonical build" >&2;}
2146    { (exit 1); exit 1; }; };;
2147 esac
2148 build=$ac_cv_build
2149 ac_save_IFS=$IFS; IFS='-'
2150 set x $ac_cv_build
2151 shift
2152 build_cpu=$1
2153 build_vendor=$2
2154 shift; shift
2155 # Remember, the first character of IFS is used to create $*,
2156 # except with old shells:
2157 build_os=$*
2158 IFS=$ac_save_IFS
2159 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2160
2161
2162 { echo "$as_me:$LINENO: checking host system type" >&5
2163 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2164 if test "${ac_cv_host+set}" = set; then
2165   echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167   if test "x$host_alias" = x; then
2168   ac_cv_host=$ac_cv_build
2169 else
2170   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2171     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2172 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2173    { (exit 1); exit 1; }; }
2174 fi
2175
2176 fi
2177 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2178 echo "${ECHO_T}$ac_cv_host" >&6; }
2179 case $ac_cv_host in
2180 *-*-*) ;;
2181 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2182 echo "$as_me: error: invalid value of canonical host" >&2;}
2183    { (exit 1); exit 1; }; };;
2184 esac
2185 host=$ac_cv_host
2186 ac_save_IFS=$IFS; IFS='-'
2187 set x $ac_cv_host
2188 shift
2189 host_cpu=$1
2190 host_vendor=$2
2191 shift; shift
2192 # Remember, the first character of IFS is used to create $*,
2193 # except with old shells:
2194 host_os=$*
2195 IFS=$ac_save_IFS
2196 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2197
2198
2199 { echo "$as_me:$LINENO: checking target system type" >&5
2200 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2201 if test "${ac_cv_target+set}" = set; then
2202   echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204   if test "x$target_alias" = x; then
2205   ac_cv_target=$ac_cv_host
2206 else
2207   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2208     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2209 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2210    { (exit 1); exit 1; }; }
2211 fi
2212
2213 fi
2214 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2215 echo "${ECHO_T}$ac_cv_target" >&6; }
2216 case $ac_cv_target in
2217 *-*-*) ;;
2218 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2219 echo "$as_me: error: invalid value of canonical target" >&2;}
2220    { (exit 1); exit 1; }; };;
2221 esac
2222 target=$ac_cv_target
2223 ac_save_IFS=$IFS; IFS='-'
2224 set x $ac_cv_target
2225 shift
2226 target_cpu=$1
2227 target_vendor=$2
2228 shift; shift
2229 # Remember, the first character of IFS is used to create $*,
2230 # except with old shells:
2231 target_os=$*
2232 IFS=$ac_save_IFS
2233 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2234
2235
2236 # The aliases save the names the user supplied, while $host etc.
2237 # will get canonicalized.
2238 test -n "$target_alias" &&
2239   test "$program_prefix$program_suffix$program_transform_name" = \
2240     NONENONEs,x,x, &&
2241   program_prefix=${target_alias}-
2242
2243 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2244 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2245 if test "${llvm_cv_os_type+set}" = set; then
2246   echo $ECHO_N "(cached) $ECHO_C" >&6
2247 else
2248   case $host in
2249   *-*-aix*)
2250     llvm_cv_link_all_option="-Wl,--whole-archive"
2251     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2252     llvm_cv_os_type="AIX"
2253     llvm_cv_platform_type="Unix" ;;
2254   *-*-irix*)
2255     llvm_cv_link_all_option="-Wl,--whole-archive"
2256     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2257     llvm_cv_os_type="IRIX"
2258     llvm_cv_platform_type="Unix" ;;
2259   *-*-cygwin*)
2260     llvm_cv_link_all_option="-Wl,--whole-archive"
2261     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262     llvm_cv_os_type="Cygwin"
2263     llvm_cv_platform_type="Unix" ;;
2264   *-*-darwin*)
2265     llvm_cv_link_all_option="-Wl,-all_load"
2266     llvm_cv_no_link_all_option="-Wl,-noall_load"
2267     llvm_cv_os_type="Darwin"
2268     llvm_cv_platform_type="Unix" ;;
2269   *-*-freebsd*)
2270     llvm_cv_link_all_option="-Wl,--whole-archive"
2271     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272     llvm_cv_os_type="FreeBSD"
2273     llvm_cv_platform_type="Unix" ;;
2274   *-*-openbsd*)
2275     llvm_cv_link_all_option="-Wl,--whole-archive"
2276     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2277     llvm_cv_os_type="OpenBSD"
2278     llvm_cv_platform_type="Unix" ;;
2279   *-*-netbsd*)
2280     llvm_cv_link_all_option="-Wl,--whole-archive"
2281     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282     llvm_cv_os_type="NetBSD"
2283     llvm_cv_platform_type="Unix" ;;
2284   *-*-hpux*)
2285     llvm_cv_link_all_option="-Wl,--whole-archive"
2286     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287     llvm_cv_os_type="HP-UX"
2288     llvm_cv_platform_type="Unix" ;;
2289   *-*-interix*)
2290     llvm_cv_link_all_option="-Wl,--whole-archive"
2291     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292     llvm_cv_os_type="Interix"
2293     llvm_cv_platform_type="Unix" ;;
2294   *-*-linux*)
2295     llvm_cv_link_all_option="-Wl,--whole-archive"
2296     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297     llvm_cv_os_type="Linux"
2298     llvm_cv_platform_type="Unix" ;;
2299   *-*-solaris*)
2300     llvm_cv_link_all_option="-Wl,-z,allextract"
2301     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2302     llvm_cv_os_type="SunOS"
2303     llvm_cv_platform_type="Unix" ;;
2304   *-*-win32*)
2305     llvm_cv_link_all_option="-Wl,--whole-archive"
2306     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2307     llvm_cv_os_type="Win32"
2308     llvm_cv_platform_type="Win32" ;;
2309   *-*-mingw*)
2310     llvm_cv_link_all_option="-Wl,--whole-archive"
2311     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2312     llvm_cv_os_type="MingW"
2313     llvm_cv_platform_type="Win32" ;;
2314   *)
2315     llvm_cv_link_all_option=""
2316     llvm_cv_no_link_all_option=""
2317     llvm_cv_os_type="Unknown"
2318     llvm_cv_platform_type="Unknown" ;;
2319 esac
2320 fi
2321 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2322 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2323
2324 if test "$llvm_cv_os_type" = "Unknown" ; then
2325   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2326 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2327    { (exit 1); exit 1; }; }
2328 fi
2329
2330 OS=$llvm_cv_os_type
2331
2332
2333 LINKALL=$llvm_cv_link_all_option
2334
2335 NOLINKALL=$llvm_cv_no_link_all_option
2336
2337
2338 case $llvm_cv_platform_type in
2339   Unix)
2340
2341 cat >>confdefs.h <<\_ACEOF
2342 #define LLVM_ON_UNIX 1
2343 _ACEOF
2344
2345     LLVM_ON_UNIX=1
2346
2347     LLVM_ON_WIN32=0
2348
2349     ;;
2350   Win32)
2351
2352 cat >>confdefs.h <<\_ACEOF
2353 #define LLVM_ON_WIN32 1
2354 _ACEOF
2355
2356     LLVM_ON_UNIX=0
2357
2358     LLVM_ON_WIN32=1
2359
2360     ;;
2361 esac
2362
2363 { echo "$as_me:$LINENO: checking target architecture" >&5
2364 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2365 if test "${llvm_cv_target_arch+set}" = set; then
2366   echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368   case $target in
2369   i?86-*)                 llvm_cv_target_arch="x86" ;;
2370   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2371   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2372   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2373   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2374   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2375   arm-*)                  llvm_cv_target_arch="ARM" ;;
2376   mips-*)                 llvm_cv_target_arch="Mips" ;;
2377   *)                      llvm_cv_target_arch="Unknown" ;;
2378 esac
2379 fi
2380 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2381 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2382
2383 if test "$llvm_cv_target_arch" = "Unknown" ; then
2384   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2385 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2386 fi
2387
2388 ARCH=$llvm_cv_target_arch
2389
2390
2391 ac_ext=c
2392 ac_cpp='$CPP $CPPFLAGS'
2393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396 if test -n "$ac_tool_prefix"; then
2397   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2398 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401 if test "${ac_cv_prog_CC+set}" = set; then
2402   echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404   if test -n "$CC"; then
2405   ac_cv_prog_CC="$CC" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410   IFS=$as_save_IFS
2411   test -z "$as_dir" && as_dir=.
2412   for ac_exec_ext in '' $ac_executable_extensions; do
2413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2414     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416     break 2
2417   fi
2418 done
2419 done
2420 IFS=$as_save_IFS
2421
2422 fi
2423 fi
2424 CC=$ac_cv_prog_CC
2425 if test -n "$CC"; then
2426   { echo "$as_me:$LINENO: result: $CC" >&5
2427 echo "${ECHO_T}$CC" >&6; }
2428 else
2429   { echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6; }
2431 fi
2432
2433
2434 fi
2435 if test -z "$ac_cv_prog_CC"; then
2436   ac_ct_CC=$CC
2437   # Extract the first word of "gcc", so it can be a program name with args.
2438 set dummy gcc; ac_word=$2
2439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2442   echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444   if test -n "$ac_ct_CC"; then
2445   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2446 else
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH
2449 do
2450   IFS=$as_save_IFS
2451   test -z "$as_dir" && as_dir=.
2452   for ac_exec_ext in '' $ac_executable_extensions; do
2453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2454     ac_cv_prog_ac_ct_CC="gcc"
2455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456     break 2
2457   fi
2458 done
2459 done
2460 IFS=$as_save_IFS
2461
2462 fi
2463 fi
2464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2465 if test -n "$ac_ct_CC"; then
2466   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2467 echo "${ECHO_T}$ac_ct_CC" >&6; }
2468 else
2469   { echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6; }
2471 fi
2472
2473   if test "x$ac_ct_CC" = x; then
2474     CC=""
2475   else
2476     case $cross_compiling:$ac_tool_warned in
2477 yes:)
2478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2479 whose name does not start with the host triplet.  If you think this
2480 configuration is useful to you, please write to autoconf@gnu.org." >&5
2481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2482 whose name does not start with the host triplet.  If you think this
2483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2484 ac_tool_warned=yes ;;
2485 esac
2486     CC=$ac_ct_CC
2487   fi
2488 else
2489   CC="$ac_cv_prog_CC"
2490 fi
2491
2492 if test -z "$CC"; then
2493           if test -n "$ac_tool_prefix"; then
2494     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2495 set dummy ${ac_tool_prefix}cc; ac_word=$2
2496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498 if test "${ac_cv_prog_CC+set}" = set; then
2499   echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501   if test -n "$CC"; then
2502   ac_cv_prog_CC="$CC" # Let the user override the test.
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507   IFS=$as_save_IFS
2508   test -z "$as_dir" && as_dir=.
2509   for ac_exec_ext in '' $ac_executable_extensions; do
2510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2511     ac_cv_prog_CC="${ac_tool_prefix}cc"
2512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513     break 2
2514   fi
2515 done
2516 done
2517 IFS=$as_save_IFS
2518
2519 fi
2520 fi
2521 CC=$ac_cv_prog_CC
2522 if test -n "$CC"; then
2523   { echo "$as_me:$LINENO: result: $CC" >&5
2524 echo "${ECHO_T}$CC" >&6; }
2525 else
2526   { echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6; }
2528 fi
2529
2530
2531   fi
2532 fi
2533 if test -z "$CC"; then
2534   # Extract the first word of "cc", so it can be a program name with args.
2535 set dummy cc; ac_word=$2
2536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2538 if test "${ac_cv_prog_CC+set}" = set; then
2539   echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541   if test -n "$CC"; then
2542   ac_cv_prog_CC="$CC" # Let the user override the test.
2543 else
2544   ac_prog_rejected=no
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2547 do
2548   IFS=$as_save_IFS
2549   test -z "$as_dir" && as_dir=.
2550   for ac_exec_ext in '' $ac_executable_extensions; do
2551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2552     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2553        ac_prog_rejected=yes
2554        continue
2555      fi
2556     ac_cv_prog_CC="cc"
2557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558     break 2
2559   fi
2560 done
2561 done
2562 IFS=$as_save_IFS
2563
2564 if test $ac_prog_rejected = yes; then
2565   # We found a bogon in the path, so make sure we never use it.
2566   set dummy $ac_cv_prog_CC
2567   shift
2568   if test $# != 0; then
2569     # We chose a different compiler from the bogus one.
2570     # However, it has the same basename, so the bogon will be chosen
2571     # first if we set CC to just the basename; use the full file name.
2572     shift
2573     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2574   fi
2575 fi
2576 fi
2577 fi
2578 CC=$ac_cv_prog_CC
2579 if test -n "$CC"; then
2580   { echo "$as_me:$LINENO: result: $CC" >&5
2581 echo "${ECHO_T}$CC" >&6; }
2582 else
2583   { echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6; }
2585 fi
2586
2587
2588 fi
2589 if test -z "$CC"; then
2590   if test -n "$ac_tool_prefix"; then
2591   for ac_prog in cl.exe
2592   do
2593     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_CC+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   if test -n "$CC"; then
2601   ac_cv_prog_CC="$CC" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2605 do
2606   IFS=$as_save_IFS
2607   test -z "$as_dir" && as_dir=.
2608   for ac_exec_ext in '' $ac_executable_extensions; do
2609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2610     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612     break 2
2613   fi
2614 done
2615 done
2616 IFS=$as_save_IFS
2617
2618 fi
2619 fi
2620 CC=$ac_cv_prog_CC
2621 if test -n "$CC"; then
2622   { echo "$as_me:$LINENO: result: $CC" >&5
2623 echo "${ECHO_T}$CC" >&6; }
2624 else
2625   { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2627 fi
2628
2629
2630     test -n "$CC" && break
2631   done
2632 fi
2633 if test -z "$CC"; then
2634   ac_ct_CC=$CC
2635   for ac_prog in cl.exe
2636 do
2637   # Extract the first word of "$ac_prog", so it can be a program name with args.
2638 set dummy $ac_prog; ac_word=$2
2639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2642   echo $ECHO_N "(cached) $ECHO_C" >&6
2643 else
2644   if test -n "$ac_ct_CC"; then
2645   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2649 do
2650   IFS=$as_save_IFS
2651   test -z "$as_dir" && as_dir=.
2652   for ac_exec_ext in '' $ac_executable_extensions; do
2653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2654     ac_cv_prog_ac_ct_CC="$ac_prog"
2655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656     break 2
2657   fi
2658 done
2659 done
2660 IFS=$as_save_IFS
2661
2662 fi
2663 fi
2664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665 if test -n "$ac_ct_CC"; then
2666   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2667 echo "${ECHO_T}$ac_ct_CC" >&6; }
2668 else
2669   { echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6; }
2671 fi
2672
2673
2674   test -n "$ac_ct_CC" && break
2675 done
2676
2677   if test "x$ac_ct_CC" = x; then
2678     CC=""
2679   else
2680     case $cross_compiling:$ac_tool_warned in
2681 yes:)
2682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2683 whose name does not start with the host triplet.  If you think this
2684 configuration is useful to you, please write to autoconf@gnu.org." >&5
2685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2686 whose name does not start with the host triplet.  If you think this
2687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2688 ac_tool_warned=yes ;;
2689 esac
2690     CC=$ac_ct_CC
2691   fi
2692 fi
2693
2694 fi
2695
2696
2697 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2698 See \`config.log' for more details." >&5
2699 echo "$as_me: error: no acceptable C compiler found in \$PATH
2700 See \`config.log' for more details." >&2;}
2701    { (exit 1); exit 1; }; }
2702
2703 # Provide some information about the compiler.
2704 echo "$as_me:$LINENO: checking for C compiler version" >&5
2705 ac_compiler=`set X $ac_compile; echo $2`
2706 { (ac_try="$ac_compiler --version >&5"
2707 case "(($ac_try" in
2708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709   *) ac_try_echo=$ac_try;;
2710 esac
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712   (eval "$ac_compiler --version >&5") 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }
2716 { (ac_try="$ac_compiler -v >&5"
2717 case "(($ac_try" in
2718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719   *) ac_try_echo=$ac_try;;
2720 esac
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722   (eval "$ac_compiler -v >&5") 2>&5
2723   ac_status=$?
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); }
2726 { (ac_try="$ac_compiler -V >&5"
2727 case "(($ac_try" in
2728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729   *) ac_try_echo=$ac_try;;
2730 esac
2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732   (eval "$ac_compiler -V >&5") 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }
2736
2737 cat >conftest.$ac_ext <<_ACEOF
2738 /* confdefs.h.  */
2739 _ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h.  */
2743
2744 int
2745 main ()
2746 {
2747
2748   ;
2749   return 0;
2750 }
2751 _ACEOF
2752 ac_clean_files_save=$ac_clean_files
2753 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2754 # Try to create an executable without -o first, disregard a.out.
2755 # It will help us diagnose broken compilers, and finding out an intuition
2756 # of exeext.
2757 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2758 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2759 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2760 #
2761 # List of possible output files, starting from the most likely.
2762 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2763 # only as a last resort.  b.out is created by i960 compilers.
2764 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2765 #
2766 # The IRIX 6 linker writes into existing files which may not be
2767 # executable, retaining their permissions.  Remove them first so a
2768 # subsequent execution test works.
2769 ac_rmfiles=
2770 for ac_file in $ac_files
2771 do
2772   case $ac_file in
2773     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2774     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2775   esac
2776 done
2777 rm -f $ac_rmfiles
2778
2779 if { (ac_try="$ac_link_default"
2780 case "(($ac_try" in
2781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782   *) ac_try_echo=$ac_try;;
2783 esac
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785   (eval "$ac_link_default") 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); }; then
2789   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2790 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2791 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2792 # so that the user can short-circuit this test for compilers unknown to
2793 # Autoconf.
2794 for ac_file in $ac_files
2795 do
2796   test -f "$ac_file" || continue
2797   case $ac_file in
2798     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2799         ;;
2800     [ab].out )
2801         # We found the default executable, but exeext='' is most
2802         # certainly right.
2803         break;;
2804     *.* )
2805         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2806         then :; else
2807            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2808         fi
2809         # We set ac_cv_exeext here because the later test for it is not
2810         # safe: cross compilers may not add the suffix if given an `-o'
2811         # argument, so we may need to know it at that point already.
2812         # Even if this section looks crufty: it has the advantage of
2813         # actually working.
2814         break;;
2815     * )
2816         break;;
2817   esac
2818 done
2819 test "$ac_cv_exeext" = no && ac_cv_exeext=
2820
2821 else
2822   echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2824
2825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2826 See \`config.log' for more details." >&5
2827 echo "$as_me: error: C compiler cannot create executables
2828 See \`config.log' for more details." >&2;}
2829    { (exit 77); exit 77; }; }
2830 fi
2831
2832 ac_exeext=$ac_cv_exeext
2833 { echo "$as_me:$LINENO: result: $ac_file" >&5
2834 echo "${ECHO_T}$ac_file" >&6; }
2835
2836 # Check that the compiler produces executables we can run.  If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2839 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2841 # If not cross compiling, check that we can run a simple program.
2842 if test "$cross_compiling" != yes; then
2843   if { ac_try='./$ac_file'
2844   { (case "(($ac_try" in
2845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846   *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849   (eval "$ac_try") 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); }; }; then
2853     cross_compiling=no
2854   else
2855     if test "$cross_compiling" = maybe; then
2856         cross_compiling=yes
2857     else
2858         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2859 If you meant to cross compile, use \`--host'.
2860 See \`config.log' for more details." >&5
2861 echo "$as_me: error: cannot run C compiled programs.
2862 If you meant to cross compile, use \`--host'.
2863 See \`config.log' for more details." >&2;}
2864    { (exit 1); exit 1; }; }
2865     fi
2866   fi
2867 fi
2868 { echo "$as_me:$LINENO: result: yes" >&5
2869 echo "${ECHO_T}yes" >&6; }
2870
2871 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2872 ac_clean_files=$ac_clean_files_save
2873 # Check that the compiler produces executables we can run.  If not, either
2874 # the compiler is broken, or we cross compile.
2875 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2876 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2877 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2878 echo "${ECHO_T}$cross_compiling" >&6; }
2879
2880 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2881 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2882 if { (ac_try="$ac_link"
2883 case "(($ac_try" in
2884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885   *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888   (eval "$ac_link") 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }; then
2892   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2894 # work properly (i.e., refer to `conftest.exe'), while it won't with
2895 # `rm'.
2896 for ac_file in conftest.exe conftest conftest.*; do
2897   test -f "$ac_file" || continue
2898   case $ac_file in
2899     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2900     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901           break;;
2902     * ) break;;
2903   esac
2904 done
2905 else
2906   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." >&5
2908 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2909 See \`config.log' for more details." >&2;}
2910    { (exit 1); exit 1; }; }
2911 fi
2912
2913 rm -f conftest$ac_cv_exeext
2914 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2915 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2916
2917 rm -f conftest.$ac_ext
2918 EXEEXT=$ac_cv_exeext
2919 ac_exeext=$EXEEXT
2920 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2921 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2922 if test "${ac_cv_objext+set}" = set; then
2923   echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925   cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931
2932 int
2933 main ()
2934 {
2935
2936   ;
2937   return 0;
2938 }
2939 _ACEOF
2940 rm -f conftest.o conftest.obj
2941 if { (ac_try="$ac_compile"
2942 case "(($ac_try" in
2943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944   *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947   (eval "$ac_compile") 2>&5
2948   ac_status=$?
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); }; then
2951   for ac_file in conftest.o conftest.obj conftest.*; do
2952   test -f "$ac_file" || continue;
2953   case $ac_file in
2954     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2955     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2956        break;;
2957   esac
2958 done
2959 else
2960   echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2962
2963 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2964 See \`config.log' for more details." >&5
2965 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2966 See \`config.log' for more details." >&2;}
2967    { (exit 1); exit 1; }; }
2968 fi
2969
2970 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2971 fi
2972 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2973 echo "${ECHO_T}$ac_cv_objext" >&6; }
2974 OBJEXT=$ac_cv_objext
2975 ac_objext=$OBJEXT
2976 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2977 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2978 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2979   echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981   cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h.  */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h.  */
2987
2988 int
2989 main ()
2990 {
2991 #ifndef __GNUC__
2992        choke me
2993 #endif
2994
2995   ;
2996   return 0;
2997 }
2998 _ACEOF
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3001 case "(($ac_try" in
3002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003   *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006   (eval "$ac_compile") 2>conftest.er1
3007   ac_status=$?
3008   grep -v '^ *+' conftest.er1 >conftest.err
3009   rm -f conftest.er1
3010   cat conftest.err >&5
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); } &&
3013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3014   { (case "(($ac_try" in
3015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016   *) ac_try_echo=$ac_try;;
3017 esac
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019   (eval "$ac_try") 2>&5
3020   ac_status=$?
3021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022   (exit $ac_status); }; } &&
3023          { ac_try='test -s conftest.$ac_objext'
3024   { (case "(($ac_try" in
3025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026   *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029   (eval "$ac_try") 2>&5
3030   ac_status=$?
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); }; }; then
3033   ac_compiler_gnu=yes
3034 else
3035   echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3037
3038         ac_compiler_gnu=no
3039 fi
3040
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3043
3044 fi
3045 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3046 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3047 GCC=`test $ac_compiler_gnu = yes && echo yes`
3048 ac_test_CFLAGS=${CFLAGS+set}
3049 ac_save_CFLAGS=$CFLAGS
3050 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3051 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3052 if test "${ac_cv_prog_cc_g+set}" = set; then
3053   echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055   ac_save_c_werror_flag=$ac_c_werror_flag
3056    ac_c_werror_flag=yes
3057    ac_cv_prog_cc_g=no
3058    CFLAGS="-g"
3059    cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h.  */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h.  */
3065
3066 int
3067 main ()
3068 {
3069
3070   ;
3071   return 0;
3072 }
3073 _ACEOF
3074 rm -f conftest.$ac_objext
3075 if { (ac_try="$ac_compile"
3076 case "(($ac_try" in
3077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078   *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081   (eval "$ac_compile") 2>conftest.er1
3082   ac_status=$?
3083   grep -v '^ *+' conftest.er1 >conftest.err
3084   rm -f conftest.er1
3085   cat conftest.err >&5
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); } &&
3088          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3089   { (case "(($ac_try" in
3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091   *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094   (eval "$ac_try") 2>&5
3095   ac_status=$?
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); }; } &&
3098          { ac_try='test -s conftest.$ac_objext'
3099   { (case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104   (eval "$ac_try") 2>&5
3105   ac_status=$?
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); }; }; then
3108   ac_cv_prog_cc_g=yes
3109 else
3110   echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3112
3113         CFLAGS=""
3114       cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h.  */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h.  */
3120
3121 int
3122 main ()
3123 {
3124
3125   ;
3126   return 0;
3127 }
3128 _ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (ac_try="$ac_compile"
3131 case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136   (eval "$ac_compile") 2>conftest.er1
3137   ac_status=$?
3138   grep -v '^ *+' conftest.er1 >conftest.err
3139   rm -f conftest.er1
3140   cat conftest.err >&5
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); } &&
3143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3144   { (case "(($ac_try" in
3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146   *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149   (eval "$ac_try") 2>&5
3150   ac_status=$?
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); }; } &&
3153          { ac_try='test -s conftest.$ac_objext'
3154   { (case "(($ac_try" in
3155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156   *) ac_try_echo=$ac_try;;
3157 esac
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159   (eval "$ac_try") 2>&5
3160   ac_status=$?
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); }; }; then
3163   :
3164 else
3165   echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3167
3168         ac_c_werror_flag=$ac_save_c_werror_flag
3169          CFLAGS="-g"
3170          cat >conftest.$ac_ext <<_ACEOF
3171 /* confdefs.h.  */
3172 _ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h.  */
3176
3177 int
3178 main ()
3179 {
3180
3181   ;
3182   return 0;
3183 }
3184 _ACEOF
3185 rm -f conftest.$ac_objext
3186 if { (ac_try="$ac_compile"
3187 case "(($ac_try" in
3188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189   *) ac_try_echo=$ac_try;;
3190 esac
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192   (eval "$ac_compile") 2>conftest.er1
3193   ac_status=$?
3194   grep -v '^ *+' conftest.er1 >conftest.err
3195   rm -f conftest.er1
3196   cat conftest.err >&5
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); } &&
3199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3200   { (case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205   (eval "$ac_try") 2>&5
3206   ac_status=$?
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); }; } &&
3209          { ac_try='test -s conftest.$ac_objext'
3210   { (case "(($ac_try" in
3211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212   *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215   (eval "$ac_try") 2>&5
3216   ac_status=$?
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); }; }; then
3219   ac_cv_prog_cc_g=yes
3220 else
3221   echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224
3225 fi
3226
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 fi
3229
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 fi
3232
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234    ac_c_werror_flag=$ac_save_c_werror_flag
3235 fi
3236 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3237 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3238 if test "$ac_test_CFLAGS" = set; then
3239   CFLAGS=$ac_save_CFLAGS
3240 elif test $ac_cv_prog_cc_g = yes; then
3241   if test "$GCC" = yes; then
3242     CFLAGS="-g -O2"
3243   else
3244     CFLAGS="-g"
3245   fi
3246 else
3247   if test "$GCC" = yes; then
3248     CFLAGS="-O2"
3249   else
3250     CFLAGS=
3251   fi
3252 fi
3253 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3254 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3255 if test "${ac_cv_prog_cc_c89+set}" = set; then
3256   echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258   ac_cv_prog_cc_c89=no
3259 ac_save_CC=$CC
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h.  */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h.  */
3266 #include <stdarg.h>
3267 #include <stdio.h>
3268 #include <sys/types.h>
3269 #include <sys/stat.h>
3270 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3271 struct buf { int x; };
3272 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3273 static char *e (p, i)
3274      char **p;
3275      int i;
3276 {
3277   return p[i];
3278 }
3279 static char *f (char * (*g) (char **, int), char **p, ...)
3280 {
3281   char *s;
3282   va_list v;
3283   va_start (v,p);
3284   s = g (p, va_arg (v,int));
3285   va_end (v);
3286   return s;
3287 }
3288
3289 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3290    function prototypes and stuff, but not '\xHH' hex character constants.
3291    These don't provoke an error unfortunately, instead are silently treated
3292    as 'x'.  The following induces an error, until -std is added to get
3293    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3294    array size at least.  It's necessary to write '\x00'==0 to get something
3295    that's true only with -std.  */
3296 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3297
3298 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3299    inside strings and character constants.  */
3300 #define FOO(x) 'x'
3301 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3302
3303 int test (int i, double x);
3304 struct s1 {int (*f) (int a);};
3305 struct s2 {int (*f) (double a);};
3306 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3307 int argc;
3308 char **argv;
3309 int
3310 main ()
3311 {
3312 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3313   ;
3314   return 0;
3315 }
3316 _ACEOF
3317 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3318         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3319 do
3320   CC="$ac_save_CC $ac_arg"
3321   rm -f conftest.$ac_objext
3322 if { (ac_try="$ac_compile"
3323 case "(($ac_try" in
3324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325   *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328   (eval "$ac_compile") 2>conftest.er1
3329   ac_status=$?
3330   grep -v '^ *+' conftest.er1 >conftest.err
3331   rm -f conftest.er1
3332   cat conftest.err >&5
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); } &&
3335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3336   { (case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341   (eval "$ac_try") 2>&5
3342   ac_status=$?
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); }; } &&
3345          { ac_try='test -s conftest.$ac_objext'
3346   { (case "(($ac_try" in
3347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348   *) ac_try_echo=$ac_try;;
3349 esac
3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351   (eval "$ac_try") 2>&5
3352   ac_status=$?
3353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354   (exit $ac_status); }; }; then
3355   ac_cv_prog_cc_c89=$ac_arg
3356 else
3357   echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360
3361 fi
3362
3363 rm -f core conftest.err conftest.$ac_objext
3364   test "x$ac_cv_prog_cc_c89" != "xno" && break
3365 done
3366 rm -f conftest.$ac_ext
3367 CC=$ac_save_CC
3368
3369 fi
3370 # AC_CACHE_VAL
3371 case "x$ac_cv_prog_cc_c89" in
3372   x)
3373     { echo "$as_me:$LINENO: result: none needed" >&5
3374 echo "${ECHO_T}none needed" >&6; } ;;
3375   xno)
3376     { echo "$as_me:$LINENO: result: unsupported" >&5
3377 echo "${ECHO_T}unsupported" >&6; } ;;
3378   *)
3379     CC="$CC $ac_cv_prog_cc_c89"
3380     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3381 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3382 esac
3383
3384
3385 ac_ext=c
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390
3391
3392 ac_ext=c
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3398 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3399 # On Suns, sometimes $CPP names a directory.
3400 if test -n "$CPP" && test -d "$CPP"; then
3401   CPP=
3402 fi
3403 if test -z "$CPP"; then
3404   if test "${ac_cv_prog_CPP+set}" = set; then
3405   echo $ECHO_N "(cached) $ECHO_C" >&6
3406 else
3407       # Double quotes because CPP needs to be expanded
3408     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3409     do
3410       ac_preproc_ok=false
3411 for ac_c_preproc_warn_flag in '' yes
3412 do
3413   # Use a header file that comes with gcc, so configuring glibc
3414   # with a fresh cross-compiler works.
3415   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3416   # <limits.h> exists even on freestanding compilers.
3417   # On the NeXT, cc -E runs the code through the compiler's parser,
3418   # not just through cpp. "Syntax error" is here to catch this case.
3419   cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h.  */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h.  */
3425 #ifdef __STDC__
3426 # include <limits.h>
3427 #else
3428 # include <assert.h>
3429 #endif
3430                      Syntax error
3431 _ACEOF
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3433 case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } >/dev/null; then
3445   if test -s conftest.err; then
3446     ac_cpp_err=$ac_c_preproc_warn_flag
3447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448   else
3449     ac_cpp_err=
3450   fi
3451 else
3452   ac_cpp_err=yes
3453 fi
3454 if test -z "$ac_cpp_err"; then
3455   :
3456 else
3457   echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460   # Broken: fails on valid input.
3461 continue
3462 fi
3463
3464 rm -f conftest.err conftest.$ac_ext
3465
3466   # OK, works on sane cases.  Now check whether nonexistent headers
3467   # can be detected and how.
3468   cat >conftest.$ac_ext <<_ACEOF
3469 /* confdefs.h.  */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h.  */
3474 #include <ac_nonexistent.h>
3475 _ACEOF
3476 if { (ac_try="$ac_cpp conftest.$ac_ext"
3477 case "(($ac_try" in
3478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479   *) ac_try_echo=$ac_try;;
3480 esac
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3483   ac_status=$?
3484   grep -v '^ *+' conftest.er1 >conftest.err
3485   rm -f conftest.er1
3486   cat conftest.err >&5
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); } >/dev/null; then
3489   if test -s conftest.err; then
3490     ac_cpp_err=$ac_c_preproc_warn_flag
3491     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3492   else
3493     ac_cpp_err=
3494   fi
3495 else
3496   ac_cpp_err=yes
3497 fi
3498 if test -z "$ac_cpp_err"; then
3499   # Broken: success on invalid input.
3500 continue
3501 else
3502   echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3504
3505   # Passes both tests.
3506 ac_preproc_ok=:
3507 break
3508 fi
3509
3510 rm -f conftest.err conftest.$ac_ext
3511
3512 done
3513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514 rm -f conftest.err conftest.$ac_ext
3515 if $ac_preproc_ok; then
3516   break
3517 fi
3518
3519     done
3520     ac_cv_prog_CPP=$CPP
3521
3522 fi
3523   CPP=$ac_cv_prog_CPP
3524 else
3525   ac_cv_prog_CPP=$CPP
3526 fi
3527 { echo "$as_me:$LINENO: result: $CPP" >&5
3528 echo "${ECHO_T}$CPP" >&6; }
3529 ac_preproc_ok=false
3530 for ac_c_preproc_warn_flag in '' yes
3531 do
3532   # Use a header file that comes with gcc, so configuring glibc
3533   # with a fresh cross-compiler works.
3534   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535   # <limits.h> exists even on freestanding compilers.
3536   # On the NeXT, cc -E runs the code through the compiler's parser,
3537   # not just through cpp. "Syntax error" is here to catch this case.
3538   cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h.  */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h.  */
3544 #ifdef __STDC__
3545 # include <limits.h>
3546 #else
3547 # include <assert.h>
3548 #endif
3549                      Syntax error
3550 _ACEOF
3551 if { (ac_try="$ac_cpp conftest.$ac_ext"
3552 case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3558   ac_status=$?
3559   grep -v '^ *+' conftest.er1 >conftest.err
3560   rm -f conftest.er1
3561   cat conftest.err >&5
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); } >/dev/null; then
3564   if test -s conftest.err; then
3565     ac_cpp_err=$ac_c_preproc_warn_flag
3566     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567   else
3568     ac_cpp_err=
3569   fi
3570 else
3571   ac_cpp_err=yes
3572 fi
3573 if test -z "$ac_cpp_err"; then
3574   :
3575 else
3576   echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3578
3579   # Broken: fails on valid input.
3580 continue
3581 fi
3582
3583 rm -f conftest.err conftest.$ac_ext
3584
3585   # OK, works on sane cases.  Now check whether nonexistent headers
3586   # can be detected and how.
3587   cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h.  */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h.  */
3593 #include <ac_nonexistent.h>
3594 _ACEOF
3595 if { (ac_try="$ac_cpp conftest.$ac_ext"
3596 case "(($ac_try" in
3597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598   *) ac_try_echo=$ac_try;;
3599 esac
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3602   ac_status=$?
3603   grep -v '^ *+' conftest.er1 >conftest.err
3604   rm -f conftest.er1
3605   cat conftest.err >&5
3606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607   (exit $ac_status); } >/dev/null; then
3608   if test -s conftest.err; then
3609     ac_cpp_err=$ac_c_preproc_warn_flag
3610     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3611   else
3612     ac_cpp_err=
3613   fi
3614 else
3615   ac_cpp_err=yes
3616 fi
3617 if test -z "$ac_cpp_err"; then
3618   # Broken: success on invalid input.
3619 continue
3620 else
3621   echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624   # Passes both tests.
3625 ac_preproc_ok=:
3626 break
3627 fi
3628
3629 rm -f conftest.err conftest.$ac_ext
3630
3631 done
3632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633 rm -f conftest.err conftest.$ac_ext
3634 if $ac_preproc_ok; then
3635   :
3636 else
3637   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3638 See \`config.log' for more details." >&5
3639 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3640 See \`config.log' for more details." >&2;}
3641    { (exit 1); exit 1; }; }
3642 fi
3643
3644 ac_ext=c
3645 ac_cpp='$CPP $CPPFLAGS'
3646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649
3650
3651 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3652 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3653 if test "${ac_cv_path_GREP+set}" = set; then
3654   echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656   # Extract the first word of "grep ggrep" to use in msg output
3657 if test -z "$GREP"; then
3658 set dummy grep ggrep; ac_prog_name=$2
3659 if test "${ac_cv_path_GREP+set}" = set; then
3660   echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662   ac_path_GREP_found=false
3663 # Loop through the user's path and test for each of PROGNAME-LIST
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3666 do
3667   IFS=$as_save_IFS
3668   test -z "$as_dir" && as_dir=.
3669   for ac_prog in grep ggrep; do
3670   for ac_exec_ext in '' $ac_executable_extensions; do
3671     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3672     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3673     # Check for GNU ac_path_GREP and select it if it is found.
3674   # Check for GNU $ac_path_GREP
3675 case `"$ac_path_GREP" --version 2>&1` in
3676 *GNU*)
3677   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3678 *)
3679   ac_count=0
3680   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3681   while :
3682   do
3683     cat "conftest.in" "conftest.in" >"conftest.tmp"
3684     mv "conftest.tmp" "conftest.in"
3685     cp "conftest.in" "conftest.nl"
3686     echo 'GREP' >> "conftest.nl"
3687     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3689     ac_count=`expr $ac_count + 1`
3690     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3691       # Best one so far, save it but keep looking for a better one
3692       ac_cv_path_GREP="$ac_path_GREP"
3693       ac_path_GREP_max=$ac_count
3694     fi
3695     # 10*(2^10) chars as input seems more than enough
3696     test $ac_count -gt 10 && break
3697   done
3698   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3699 esac
3700
3701
3702     $ac_path_GREP_found && break 3
3703   done
3704 done
3705
3706 done
3707 IFS=$as_save_IFS
3708
3709
3710 fi
3711
3712 GREP="$ac_cv_path_GREP"
3713 if test -z "$GREP"; then
3714   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3715 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3716    { (exit 1); exit 1; }; }
3717 fi
3718
3719 else
3720   ac_cv_path_GREP=$GREP
3721 fi
3722
3723
3724 fi
3725 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3726 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3727  GREP="$ac_cv_path_GREP"
3728
3729
3730 { echo "$as_me:$LINENO: checking for egrep" >&5
3731 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3732 if test "${ac_cv_path_EGREP+set}" = set; then
3733   echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3736    then ac_cv_path_EGREP="$GREP -E"
3737    else
3738      # Extract the first word of "egrep" to use in msg output
3739 if test -z "$EGREP"; then
3740 set dummy egrep; ac_prog_name=$2
3741 if test "${ac_cv_path_EGREP+set}" = set; then
3742   echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744   ac_path_EGREP_found=false
3745 # Loop through the user's path and test for each of PROGNAME-LIST
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3748 do
3749   IFS=$as_save_IFS
3750   test -z "$as_dir" && as_dir=.
3751   for ac_prog in egrep; do
3752   for ac_exec_ext in '' $ac_executable_extensions; do
3753     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3754     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3755     # Check for GNU ac_path_EGREP and select it if it is found.
3756   # Check for GNU $ac_path_EGREP
3757 case `"$ac_path_EGREP" --version 2>&1` in
3758 *GNU*)
3759   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3760 *)
3761   ac_count=0
3762   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3763   while :
3764   do
3765     cat "conftest.in" "conftest.in" >"conftest.tmp"
3766     mv "conftest.tmp" "conftest.in"
3767     cp "conftest.in" "conftest.nl"
3768     echo 'EGREP' >> "conftest.nl"
3769     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3771     ac_count=`expr $ac_count + 1`
3772     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3773       # Best one so far, save it but keep looking for a better one
3774       ac_cv_path_EGREP="$ac_path_EGREP"
3775       ac_path_EGREP_max=$ac_count
3776     fi
3777     # 10*(2^10) chars as input seems more than enough
3778     test $ac_count -gt 10 && break
3779   done
3780   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3781 esac
3782
3783
3784     $ac_path_EGREP_found && break 3
3785   done
3786 done
3787
3788 done
3789 IFS=$as_save_IFS
3790
3791
3792 fi
3793
3794 EGREP="$ac_cv_path_EGREP"
3795 if test -z "$EGREP"; then
3796   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3797 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3798    { (exit 1); exit 1; }; }
3799 fi
3800
3801 else
3802   ac_cv_path_EGREP=$EGREP
3803 fi
3804
3805
3806    fi
3807 fi
3808 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3809 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3810  EGREP="$ac_cv_path_EGREP"
3811
3812
3813 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3814 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3815 if test "${ac_cv_header_stdc+set}" = set; then
3816   echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818   cat >conftest.$ac_ext <<_ACEOF
3819 /* confdefs.h.  */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h.  */
3824 #include <stdlib.h>
3825 #include <stdarg.h>
3826 #include <string.h>
3827 #include <float.h>
3828
3829 int
3830 main ()
3831 {
3832
3833   ;
3834   return 0;
3835 }
3836 _ACEOF
3837 rm -f conftest.$ac_objext
3838 if { (ac_try="$ac_compile"
3839 case "(($ac_try" in
3840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841   *) ac_try_echo=$ac_try;;
3842 esac
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844   (eval "$ac_compile") 2>conftest.er1
3845   ac_status=$?
3846   grep -v '^ *+' conftest.er1 >conftest.err
3847   rm -f conftest.er1
3848   cat conftest.err >&5
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); } &&
3851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3852   { (case "(($ac_try" in
3853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854   *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857   (eval "$ac_try") 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }; } &&
3861          { ac_try='test -s conftest.$ac_objext'
3862   { (case "(($ac_try" in
3863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864   *) ac_try_echo=$ac_try;;
3865 esac
3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867   (eval "$ac_try") 2>&5
3868   ac_status=$?
3869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870   (exit $ac_status); }; }; then
3871   ac_cv_header_stdc=yes
3872 else
3873   echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3875
3876         ac_cv_header_stdc=no
3877 fi
3878
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880
3881 if test $ac_cv_header_stdc = yes; then
3882   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3883   cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h.  */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h.  */
3889 #include <string.h>
3890
3891 _ACEOF
3892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893   $EGREP "memchr" >/dev/null 2>&1; then
3894   :
3895 else
3896   ac_cv_header_stdc=no
3897 fi
3898 rm -f conftest*
3899
3900 fi
3901
3902 if test $ac_cv_header_stdc = yes; then
3903   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3904   cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h.  */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h.  */
3910 #include <stdlib.h>
3911
3912 _ACEOF
3913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3914   $EGREP "free" >/dev/null 2>&1; then
3915   :
3916 else
3917   ac_cv_header_stdc=no
3918 fi
3919 rm -f conftest*
3920
3921 fi
3922
3923 if test $ac_cv_header_stdc = yes; then
3924   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3925   if test "$cross_compiling" = yes; then
3926   :
3927 else
3928   cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h.  */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h.  */
3934 #include <ctype.h>
3935 #include <stdlib.h>
3936 #if ((' ' & 0x0FF) == 0x020)
3937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3939 #else
3940 # define ISLOWER(c) \
3941                    (('a' <= (c) && (c) <= 'i') \
3942                      || ('j' <= (c) && (c) <= 'r') \
3943                      || ('s' <= (c) && (c) <= 'z'))
3944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3945 #endif
3946
3947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3948 int
3949 main ()
3950 {
3951   int i;
3952   for (i = 0; i < 256; i++)
3953     if (XOR (islower (i), ISLOWER (i))
3954         || toupper (i) != TOUPPER (i))
3955       return 2;
3956   return 0;
3957 }
3958 _ACEOF
3959 rm -f conftest$ac_exeext
3960 if { (ac_try="$ac_link"
3961 case "(($ac_try" in
3962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963   *) ac_try_echo=$ac_try;;
3964 esac
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966   (eval "$ac_link") 2>&5
3967   ac_status=$?
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3970   { (case "(($ac_try" in
3971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972   *) ac_try_echo=$ac_try;;
3973 esac
3974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3975   (eval "$ac_try") 2>&5
3976   ac_status=$?
3977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978   (exit $ac_status); }; }; then
3979   :
3980 else
3981   echo "$as_me: program exited with status $ac_status" >&5
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3984
3985 ( exit $ac_status )
3986 ac_cv_header_stdc=no
3987 fi
3988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3989 fi
3990
3991
3992 fi
3993 fi
3994 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3995 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3996 if test $ac_cv_header_stdc = yes; then
3997
3998 cat >>confdefs.h <<\_ACEOF
3999 #define STDC_HEADERS 1
4000 _ACEOF
4001
4002 fi
4003
4004 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4015                   inttypes.h stdint.h unistd.h
4016 do
4017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4021   echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023   cat >conftest.$ac_ext <<_ACEOF
4024 /* confdefs.h.  */
4025 _ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h.  */
4029 $ac_includes_default
4030
4031 #include <$ac_header>
4032 _ACEOF
4033 rm -f conftest.$ac_objext
4034 if { (ac_try="$ac_compile"
4035 case "(($ac_try" in
4036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037   *) ac_try_echo=$ac_try;;
4038 esac
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040   (eval "$ac_compile") 2>conftest.er1
4041   ac_status=$?
4042   grep -v '^ *+' conftest.er1 >conftest.err
4043   rm -f conftest.er1
4044   cat conftest.err >&5
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); } &&
4047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4048   { (case "(($ac_try" in
4049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050   *) ac_try_echo=$ac_try;;
4051 esac
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053   (eval "$ac_try") 2>&5
4054   ac_status=$?
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); }; } &&
4057          { ac_try='test -s conftest.$ac_objext'
4058   { (case "(($ac_try" in
4059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060   *) ac_try_echo=$ac_try;;
4061 esac
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063   (eval "$ac_try") 2>&5
4064   ac_status=$?
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); }; }; then
4067   eval "$as_ac_Header=yes"
4068 else
4069   echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4071
4072         eval "$as_ac_Header=no"
4073 fi
4074
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 fi
4077 ac_res=`eval echo '${'$as_ac_Header'}'`
4078                { echo "$as_me:$LINENO: result: $ac_res" >&5
4079 echo "${ECHO_T}$ac_res" >&6; }
4080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4081   cat >>confdefs.h <<_ACEOF
4082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4083 _ACEOF
4084
4085 fi
4086
4087 done
4088
4089
4090 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4091 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4092 if test "${ac_cv_c_bigendian+set}" = set; then
4093   echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095   # See if sys/param.h defines the BYTE_ORDER macro.
4096 cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h.  */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h.  */
4102 #include <sys/types.h>
4103 #include <sys/param.h>
4104
4105 int
4106 main ()
4107 {
4108 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4109  bogus endian macros
4110 #endif
4111
4112   ;
4113   return 0;
4114 }
4115 _ACEOF
4116 rm -f conftest.$ac_objext
4117 if { (ac_try="$ac_compile"
4118 case "(($ac_try" in
4119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120   *) ac_try_echo=$ac_try;;
4121 esac
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123   (eval "$ac_compile") 2>conftest.er1
4124   ac_status=$?
4125   grep -v '^ *+' conftest.er1 >conftest.err
4126   rm -f conftest.er1
4127   cat conftest.err >&5
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); } &&
4130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4131   { (case "(($ac_try" in
4132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133   *) ac_try_echo=$ac_try;;
4134 esac
4135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136   (eval "$ac_try") 2>&5
4137   ac_status=$?
4138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139   (exit $ac_status); }; } &&
4140          { ac_try='test -s conftest.$ac_objext'
4141   { (case "(($ac_try" in
4142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143   *) ac_try_echo=$ac_try;;
4144 esac
4145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146   (eval "$ac_try") 2>&5
4147   ac_status=$?
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); }; }; then
4150   # It does; now see whether it defined to BIG_ENDIAN or not.
4151 cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h.  */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h.  */
4157 #include <sys/types.h>
4158 #include <sys/param.h>
4159
4160 int
4161 main ()
4162 {
4163 #if BYTE_ORDER != BIG_ENDIAN
4164  not big endian
4165 #endif
4166
4167   ;
4168   return 0;
4169 }
4170 _ACEOF
4171 rm -f conftest.$ac_objext
4172 if { (ac_try="$ac_compile"
4173 case "(($ac_try" in
4174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175   *) ac_try_echo=$ac_try;;
4176 esac
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178   (eval "$ac_compile") 2>conftest.er1
4179   ac_status=$?
4180   grep -v '^ *+' conftest.er1 >conftest.err
4181   rm -f conftest.er1
4182   cat conftest.err >&5
4183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184   (exit $ac_status); } &&
4185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4186   { (case "(($ac_try" in
4187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188   *) ac_try_echo=$ac_try;;
4189 esac
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191   (eval "$ac_try") 2>&5
4192   ac_status=$?
4193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194   (exit $ac_status); }; } &&
4195          { ac_try='test -s conftest.$ac_objext'
4196   { (case "(($ac_try" in
4197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198   *) ac_try_echo=$ac_try;;
4199 esac
4200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201   (eval "$ac_try") 2>&5
4202   ac_status=$?
4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); }; }; then
4205   ac_cv_c_bigendian=yes
4206 else
4207   echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4209
4210         ac_cv_c_bigendian=no
4211 fi
4212
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 else
4215   echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218         # It does not; compile a test program.
4219 if test "$cross_compiling" = yes; then
4220   # try to guess the endianness by grepping values into an object file
4221   ac_cv_c_bigendian=unknown
4222   cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h.  */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h.  */
4228 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4229 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4230 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4231 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4232 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4233 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4234 int
4235 main ()
4236 {
4237  _ascii (); _ebcdic ();
4238   ;
4239   return 0;
4240 }
4241 _ACEOF
4242 rm -f conftest.$ac_objext
4243 if { (ac_try="$ac_compile"
4244 case "(($ac_try" in
4245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246   *) ac_try_echo=$ac_try;;
4247 esac
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249   (eval "$ac_compile") 2>conftest.er1
4250   ac_status=$?
4251   grep -v '^ *+' conftest.er1 >conftest.err
4252   rm -f conftest.er1
4253   cat conftest.err >&5
4254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255   (exit $ac_status); } &&
4256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257   { (case "(($ac_try" in
4258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259   *) ac_try_echo=$ac_try;;
4260 esac
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262   (eval "$ac_try") 2>&5
4263   ac_status=$?
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); }; } &&
4266          { ac_try='test -s conftest.$ac_objext'
4267   { (case "(($ac_try" in
4268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269   *) ac_try_echo=$ac_try;;
4270 esac
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272   (eval "$ac_try") 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); }; }; then
4276   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4277   ac_cv_c_bigendian=yes
4278 fi
4279 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4280   if test "$ac_cv_c_bigendian" = unknown; then
4281     ac_cv_c_bigendian=no
4282   else
4283     # finding both strings is unlikely to happen, but who knows?
4284     ac_cv_c_bigendian=unknown
4285   fi
4286 fi
4287 else
4288   echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291
4292 fi
4293
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295 else
4296   cat >conftest.$ac_ext <<_ACEOF
4297 /* confdefs.h.  */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h.  */
4302 $ac_includes_default
4303 int
4304 main ()
4305 {
4306
4307   /* Are we little or big endian?  From Harbison&Steele.  */
4308   union
4309   {
4310     long int l;
4311     char c[sizeof (long int)];
4312   } u;
4313   u.l = 1;
4314   return u.c[sizeof (long int) - 1] == 1;
4315
4316   ;
4317   return 0;
4318 }
4319 _ACEOF
4320 rm -f conftest$ac_exeext
4321 if { (ac_try="$ac_link"
4322 case "(($ac_try" in
4323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324   *) ac_try_echo=$ac_try;;
4325 esac
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327   (eval "$ac_link") 2>&5
4328   ac_status=$?
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4331   { (case "(($ac_try" in
4332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333   *) ac_try_echo=$ac_try;;
4334 esac
4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336   (eval "$ac_try") 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); }; }; then
4340   ac_cv_c_bigendian=no
4341 else
4342   echo "$as_me: program exited with status $ac_status" >&5
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4345
4346 ( exit $ac_status )
4347 ac_cv_c_bigendian=yes
4348 fi
4349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4350 fi
4351
4352
4353 fi
4354
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356 fi
4357 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4358 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4359 case $ac_cv_c_bigendian in
4360   yes)
4361     ENDIAN=big
4362  ;;
4363   no)
4364     ENDIAN=little
4365  ;;
4366   *)
4367     { { echo "$as_me:$LINENO: error: unknown endianness
4368 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4369 echo "$as_me: error: unknown endianness
4370 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4371    { (exit 1); exit 1; }; } ;;
4372 esac
4373
4374
4375 if test "$cross_compiling" = yes; then
4376   LLVM_CROSS_COMPILING=1
4377
4378
4379 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4380 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4381 if test "${ac_cv_build_exeext+set}" = set; then
4382   echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4385   ac_cv_build_exeext=.exe
4386 else
4387   ac_build_prefix=${build_alias}-
4388
4389   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4390 set dummy ${ac_build_prefix}gcc; ac_word=$2
4391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4393 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4394   echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396   if test -n "$BUILD_CC"; then
4397   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4398 else
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402   IFS=$as_save_IFS
4403   test -z "$as_dir" && as_dir=.
4404   for ac_exec_ext in '' $ac_executable_extensions; do
4405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4406     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408     break 2
4409   fi
4410 done
4411 done
4412 IFS=$as_save_IFS
4413
4414 fi
4415 fi
4416 BUILD_CC=$ac_cv_prog_BUILD_CC
4417 if test -n "$BUILD_CC"; then
4418   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4419 echo "${ECHO_T}$BUILD_CC" >&6; }
4420 else
4421   { echo "$as_me:$LINENO: result: no" >&5
4422 echo "${ECHO_T}no" >&6; }
4423 fi
4424
4425
4426   if test -z "$BUILD_CC"; then
4427      # Extract the first word of "gcc", so it can be a program name with args.
4428 set dummy gcc; ac_word=$2
4429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434   if test -n "$BUILD_CC"; then
4435   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440   IFS=$as_save_IFS
4441   test -z "$as_dir" && as_dir=.
4442   for ac_exec_ext in '' $ac_executable_extensions; do
4443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4444     ac_cv_prog_BUILD_CC="gcc"
4445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446     break 2
4447   fi
4448 done
4449 done
4450 IFS=$as_save_IFS
4451
4452 fi
4453 fi
4454 BUILD_CC=$ac_cv_prog_BUILD_CC
4455 if test -n "$BUILD_CC"; then
4456   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4457 echo "${ECHO_T}$BUILD_CC" >&6; }
4458 else
4459   { echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6; }
4461 fi
4462
4463
4464      if test -z "$BUILD_CC"; then
4465        # Extract the first word of "cc", so it can be a program name with args.
4466 set dummy cc; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   if test -n "$BUILD_CC"; then
4473   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4474 else
4475   ac_prog_rejected=no
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4478 do
4479   IFS=$as_save_IFS
4480   test -z "$as_dir" && as_dir=.
4481   for ac_exec_ext in '' $ac_executable_extensions; do
4482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4483     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4484        ac_prog_rejected=yes
4485        continue
4486      fi
4487     ac_cv_prog_BUILD_CC="cc"
4488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492 done
4493 IFS=$as_save_IFS
4494
4495 if test $ac_prog_rejected = yes; then
4496   # We found a bogon in the path, so make sure we never use it.
4497   set dummy $ac_cv_prog_BUILD_CC
4498   shift
4499   if test $# != 0; then
4500     # We chose a different compiler from the bogus one.
4501     # However, it has the same basename, so the bogon will be chosen
4502     # first if we set BUILD_CC to just the basename; use the full file name.
4503     shift
4504     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4505   fi
4506 fi
4507 fi
4508 fi
4509 BUILD_CC=$ac_cv_prog_BUILD_CC
4510 if test -n "$BUILD_CC"; then
4511   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4512 echo "${ECHO_T}$BUILD_CC" >&6; }
4513 else
4514   { echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6; }
4516 fi
4517
4518
4519      fi
4520   fi
4521   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4522 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4523    { (exit 1); exit 1; }; }
4524   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4525   rm -f conftest*
4526   echo 'int main () { return 0; }' > conftest.$ac_ext
4527   ac_cv_build_exeext=
4528   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4529   (eval $ac_build_link) 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; then
4533     for file in conftest.*; do
4534       case $file in
4535       *.c | *.o | *.obj) ;;
4536       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4537       esac
4538     done
4539   else
4540     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4541 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4542    { (exit 1); exit 1; }; }
4543   fi
4544   rm -f conftest*
4545   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4546 fi
4547 fi
4548
4549 BUILD_EXEEXT=""
4550 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4551 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4552 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4553 ac_build_exeext=$BUILD_EXEEXT
4554
4555 else
4556   LLVM_CROSS_COMPILING=0
4557
4558 fi
4559
4560 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4561   cvsbuild="yes"
4562   optimize="no"
4563   CVSBUILD=CVSBUILD=1
4564
4565 else
4566   cvsbuild="no"
4567   optimize="yes"
4568 fi
4569
4570
4571 # Check whether --enable-optimized was given.
4572 if test "${enable_optimized+set}" = set; then
4573   enableval=$enable_optimized;
4574 else
4575   enableval=$optimize
4576 fi
4577
4578 if test ${enableval} = "no" ; then
4579   ENABLE_OPTIMIZED=
4580
4581 else
4582   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4583
4584 fi
4585
4586 # Check whether --enable-assertions was given.
4587 if test "${enable_assertions+set}" = set; then
4588   enableval=$enable_assertions;
4589 else
4590   enableval="yes"
4591 fi
4592
4593 if test ${enableval} = "yes" ; then
4594   DISABLE_ASSERTIONS=
4595
4596 else
4597   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4598
4599 fi
4600
4601 # Check whether --enable-expensive-checks was given.
4602 if test "${enable_expensive_checks+set}" = set; then
4603   enableval=$enable_expensive_checks;
4604 else
4605   enableval="no"
4606 fi
4607
4608 if test ${enableval} = "yes" ; then
4609   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4610
4611   EXPENSIVE_CHECKS=yes
4612
4613 else
4614   ENABLE_EXPENSIVE_CHECKS=
4615
4616   EXPENSIVE_CHECKS=no
4617
4618 fi
4619
4620 # Check whether --enable-debug-runtime was given.
4621 if test "${enable_debug_runtime+set}" = set; then
4622   enableval=$enable_debug_runtime;
4623 else
4624   enableval=no
4625 fi
4626
4627 if test ${enableval} = "no" ; then
4628   DEBUG_RUNTIME=
4629
4630 else
4631   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4632
4633 fi
4634
4635 # Check whether --enable-jit was given.
4636 if test "${enable_jit+set}" = set; then
4637   enableval=$enable_jit;
4638 else
4639   enableval=default
4640 fi
4641
4642 if test ${enableval} = "no"
4643 then
4644   JIT=
4645
4646 else
4647   case "$llvm_cv_target_arch" in
4648     x86)     TARGET_HAS_JIT=1
4649  ;;
4650     Sparc)   TARGET_HAS_JIT=0
4651  ;;
4652     PowerPC) TARGET_HAS_JIT=1
4653  ;;
4654     x86_64)  TARGET_HAS_JIT=1
4655  ;;
4656     Alpha)   TARGET_HAS_JIT=1
4657  ;;
4658     IA64)    TARGET_HAS_JIT=0
4659  ;;
4660     ARM)     TARGET_HAS_JIT=0
4661  ;;
4662     Mips)    TARGET_HAS_JIT=0
4663  ;;
4664     *)       TARGET_HAS_JIT=0
4665  ;;
4666   esac
4667 fi
4668
4669 # Check whether --enable-doxygen was given.
4670 if test "${enable_doxygen+set}" = set; then
4671   enableval=$enable_doxygen;
4672 else
4673   enableval=default
4674 fi
4675
4676 case "$enableval" in
4677   yes) ENABLE_DOXYGEN=1
4678  ;;
4679   no)  ENABLE_DOXYGEN=0
4680  ;;
4681   default) ENABLE_DOXYGEN=0
4682  ;;
4683   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4684 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4685    { (exit 1); exit 1; }; } ;;
4686 esac
4687
4688 # Check whether --enable-threads was given.
4689 if test "${enable_threads+set}" = set; then
4690   enableval=$enable_threads;
4691 else
4692   enableval=default
4693 fi
4694
4695 case "$enableval" in
4696   yes) ENABLE_THREADS=1
4697  ;;
4698   no)  ENABLE_THREADS=0
4699  ;;
4700   default) ENABLE_THREADS=1
4701  ;;
4702   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4703 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4704    { (exit 1); exit 1; }; } ;;
4705 esac
4706
4707 cat >>confdefs.h <<_ACEOF
4708 #define ENABLE_THREADS $ENABLE_THREADS
4709 _ACEOF
4710
4711
4712 # Check whether --enable-pic was given.
4713 if test "${enable_pic+set}" = set; then
4714   enableval=$enable_pic;
4715 else
4716   enableval=default
4717 fi
4718
4719 case "$enableval" in
4720   yes) ENABLE_PIC=1
4721  ;;
4722   no)  ENABLE_PIC=0
4723  ;;
4724   default) ENABLE_PIC=0
4725  ;;
4726   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4727 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4728    { (exit 1); exit 1; }; } ;;
4729 esac
4730
4731 cat >>confdefs.h <<_ACEOF
4732 #define ENABLE_PIC $ENABLE_PIC
4733 _ACEOF
4734
4735
4736 TARGETS_TO_BUILD=""
4737 # Check whether --enable-targets was given.
4738 if test "${enable_targets+set}" = set; then
4739   enableval=$enable_targets;
4740 else
4741   enableval=all
4742 fi
4743
4744 case "$enableval" in
4745   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU CBackend MSIL" ;;
4746   host-only)
4747     case "$llvm_cv_target_arch" in
4748       x86)     TARGETS_TO_BUILD="X86" ;;
4749       x86_64)  TARGETS_TO_BUILD="X86" ;;
4750       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4751       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4752       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4753       IA64)    TARGETS_TO_BUILD="IA64" ;;
4754       ARM)     TARGETS_TO_BUILD="ARM" ;;
4755       Mips)    TARGETS_TO_BUILD="Mips" ;;
4756       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4757       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4758 echo "$as_me: error: Can not set target to build" >&2;}
4759    { (exit 1); exit 1; }; } ;;
4760     esac
4761     ;;
4762   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4763       case "$a_target" in
4764         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4765         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4766         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4767         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4768         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4769         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4770         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4771         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4772         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4773         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4774         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4775         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4776 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4777    { (exit 1); exit 1; }; } ;;
4778       esac
4779   done
4780   ;;
4781 esac
4782 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4783
4784
4785 # Check whether --enable-cbe-printf-a was given.
4786 if test "${enable_cbe_printf_a+set}" = set; then
4787   enableval=$enable_cbe_printf_a;
4788 else
4789   enableval=default
4790 fi
4791
4792 case "$enableval" in
4793   yes) ENABLE_CBE_PRINTF_A=1
4794  ;;
4795   no)  ENABLE_CBE_PRINTF_A=0
4796  ;;
4797   default)  ENABLE_CBE_PRINTF_A=1
4798  ;;
4799   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4800 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4801    { (exit 1); exit 1; }; } ;;
4802 esac
4803
4804 cat >>confdefs.h <<_ACEOF
4805 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4806 _ACEOF
4807
4808
4809
4810 # Check whether --with-llvmgccdir was given.
4811 if test "${with_llvmgccdir+set}" = set; then
4812   withval=$with_llvmgccdir;
4813 else
4814   withval=default
4815 fi
4816
4817 case "$withval" in
4818   default) WITH_LLVMGCCDIR=default ;;
4819   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4820   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4821 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4822    { (exit 1); exit 1; }; } ;;
4823 esac
4824
4825
4826 # Check whether --with-llvmgcc was given.
4827 if test "${with_llvmgcc+set}" = set; then
4828   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4829       WITH_LLVMGCCDIR=""
4830 fi
4831
4832
4833
4834 # Check whether --with-llvmgxx was given.
4835 if test "${with_llvmgxx+set}" = set; then
4836   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4837     WITH_LLVMGCCDIR=""
4838 fi
4839
4840
4841 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4842    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4843 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4844    { (exit 1); exit 1; }; };
4845 fi
4846
4847 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4848    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4849 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4850    { (exit 1); exit 1; }; };
4851 fi
4852
4853
4854 # Check whether --with-extra-options was given.
4855 if test "${with_extra_options+set}" = set; then
4856   withval=$with_extra_options;
4857 else
4858   withval=default
4859 fi
4860
4861 case "$withval" in
4862   default) EXTRA_OPTIONS= ;;
4863   *) EXTRA_OPTIONS=$withval ;;
4864 esac
4865 EXTRA_OPTIONS=$EXTRA_OPTIONS
4866
4867
4868 # Check whether --enable-bindings was given.
4869 if test "${enable_bindings+set}" = set; then
4870   enableval=$enable_bindings;
4871 else
4872   enableval=default
4873 fi
4874
4875 BINDINGS_TO_BUILD=""
4876 case "$enableval" in
4877   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4878   all ) BINDINGS_TO_BUILD="ocaml" ;;
4879   none | no) BINDINGS_TO_BUILD="" ;;
4880   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4881       case "$a_binding" in
4882         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4883         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4884 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4885    { (exit 1); exit 1; }; } ;;
4886       esac
4887   done
4888   ;;
4889 esac
4890
4891
4892 # Check whether --with-ocaml-libdir was given.
4893 if test "${with_ocaml_libdir+set}" = set; then
4894   withval=$with_ocaml_libdir;
4895 else
4896   withval=auto
4897 fi
4898
4899 case "$withval" in
4900   auto) with_ocaml_libdir="$withval" ;;
4901   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4902   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4903 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4904    { (exit 1); exit 1; }; } ;;
4905 esac
4906
4907
4908 ac_ext=c
4909 ac_cpp='$CPP $CPPFLAGS'
4910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4914 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4915 # On Suns, sometimes $CPP names a directory.
4916 if test -n "$CPP" && test -d "$CPP"; then
4917   CPP=
4918 fi
4919 if test -z "$CPP"; then
4920   if test "${ac_cv_prog_CPP+set}" = set; then
4921   echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923       # Double quotes because CPP needs to be expanded
4924     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4925     do
4926       ac_preproc_ok=false
4927 for ac_c_preproc_warn_flag in '' yes
4928 do
4929   # Use a header file that comes with gcc, so configuring glibc
4930   # with a fresh cross-compiler works.
4931   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4932   # <limits.h> exists even on freestanding compilers.
4933   # On the NeXT, cc -E runs the code through the compiler's parser,
4934   # not just through cpp. "Syntax error" is here to catch this case.
4935   cat >conftest.$ac_ext <<_ACEOF
4936 /* confdefs.h.  */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h.  */
4941 #ifdef __STDC__
4942 # include <limits.h>
4943 #else
4944 # include <assert.h>
4945 #endif
4946                      Syntax error
4947 _ACEOF
4948 if { (ac_try="$ac_cpp conftest.$ac_ext"
4949 case "(($ac_try" in
4950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951   *) ac_try_echo=$ac_try;;
4952 esac
4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4955   ac_status=$?
4956   grep -v '^ *+' conftest.er1 >conftest.err
4957   rm -f conftest.er1
4958   cat conftest.err >&5
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); } >/dev/null; then
4961   if test -s conftest.err; then
4962     ac_cpp_err=$ac_c_preproc_warn_flag
4963     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4964   else
4965     ac_cpp_err=
4966   fi
4967 else
4968   ac_cpp_err=yes
4969 fi
4970 if test -z "$ac_cpp_err"; then
4971   :
4972 else
4973   echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976   # Broken: fails on valid input.
4977 continue
4978 fi
4979
4980 rm -f conftest.err conftest.$ac_ext
4981
4982   # OK, works on sane cases.  Now check whether nonexistent headers
4983   # can be detected and how.
4984   cat >conftest.$ac_ext <<_ACEOF
4985 /* confdefs.h.  */
4986 _ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h.  */
4990 #include <ac_nonexistent.h>
4991 _ACEOF
4992 if { (ac_try="$ac_cpp conftest.$ac_ext"
4993 case "(($ac_try" in
4994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995   *) ac_try_echo=$ac_try;;
4996 esac
4997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4999   ac_status=$?
5000   grep -v '^ *+' conftest.er1 >conftest.err
5001   rm -f conftest.er1
5002   cat conftest.err >&5
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); } >/dev/null; then
5005   if test -s conftest.err; then
5006     ac_cpp_err=$ac_c_preproc_warn_flag
5007     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5008   else
5009     ac_cpp_err=
5010   fi
5011 else
5012   ac_cpp_err=yes
5013 fi
5014 if test -z "$ac_cpp_err"; then
5015   # Broken: success on invalid input.
5016 continue
5017 else
5018   echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5020
5021   # Passes both tests.
5022 ac_preproc_ok=:
5023 break
5024 fi
5025
5026 rm -f conftest.err conftest.$ac_ext
5027
5028 done
5029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030 rm -f conftest.err conftest.$ac_ext
5031 if $ac_preproc_ok; then
5032   break
5033 fi
5034
5035     done
5036     ac_cv_prog_CPP=$CPP
5037
5038 fi
5039   CPP=$ac_cv_prog_CPP
5040 else
5041   ac_cv_prog_CPP=$CPP
5042 fi
5043 { echo "$as_me:$LINENO: result: $CPP" >&5
5044 echo "${ECHO_T}$CPP" >&6; }
5045 ac_preproc_ok=false
5046 for ac_c_preproc_warn_flag in '' yes
5047 do
5048   # Use a header file that comes with gcc, so configuring glibc
5049   # with a fresh cross-compiler works.
5050   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051   # <limits.h> exists even on freestanding compilers.
5052   # On the NeXT, cc -E runs the code through the compiler's parser,
5053   # not just through cpp. "Syntax error" is here to catch this case.
5054   cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h.  */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h.  */
5060 #ifdef __STDC__
5061 # include <limits.h>
5062 #else
5063 # include <assert.h>
5064 #endif
5065                      Syntax error
5066 _ACEOF
5067 if { (ac_try="$ac_cpp conftest.$ac_ext"
5068 case "(($ac_try" in
5069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070   *) ac_try_echo=$ac_try;;
5071 esac
5072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5074   ac_status=$?
5075   grep -v '^ *+' conftest.er1 >conftest.err
5076   rm -f conftest.er1
5077   cat conftest.err >&5
5078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079   (exit $ac_status); } >/dev/null; then
5080   if test -s conftest.err; then
5081     ac_cpp_err=$ac_c_preproc_warn_flag
5082     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5083   else
5084     ac_cpp_err=
5085   fi
5086 else
5087   ac_cpp_err=yes
5088 fi
5089 if test -z "$ac_cpp_err"; then
5090   :
5091 else
5092   echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5094
5095   # Broken: fails on valid input.
5096 continue
5097 fi
5098
5099 rm -f conftest.err conftest.$ac_ext
5100
5101   # OK, works on sane cases.  Now check whether nonexistent headers
5102   # can be detected and how.
5103   cat >conftest.$ac_ext <<_ACEOF
5104 /* confdefs.h.  */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h.  */
5109 #include <ac_nonexistent.h>
5110 _ACEOF
5111 if { (ac_try="$ac_cpp conftest.$ac_ext"
5112 case "(($ac_try" in
5113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114   *) ac_try_echo=$ac_try;;
5115 esac
5116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5118   ac_status=$?
5119   grep -v '^ *+' conftest.er1 >conftest.err
5120   rm -f conftest.er1
5121   cat conftest.err >&5
5122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123   (exit $ac_status); } >/dev/null; then
5124   if test -s conftest.err; then
5125     ac_cpp_err=$ac_c_preproc_warn_flag
5126     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5127   else
5128     ac_cpp_err=
5129   fi
5130 else
5131   ac_cpp_err=yes
5132 fi
5133 if test -z "$ac_cpp_err"; then
5134   # Broken: success on invalid input.
5135 continue
5136 else
5137   echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5139
5140   # Passes both tests.
5141 ac_preproc_ok=:
5142 break
5143 fi
5144
5145 rm -f conftest.err conftest.$ac_ext
5146
5147 done
5148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5149 rm -f conftest.err conftest.$ac_ext
5150 if $ac_preproc_ok; then
5151   :
5152 else
5153   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5154 See \`config.log' for more details." >&5
5155 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5156 See \`config.log' for more details." >&2;}
5157    { (exit 1); exit 1; }; }
5158 fi
5159
5160 ac_ext=c
5161 ac_cpp='$CPP $CPPFLAGS'
5162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5165
5166 ac_ext=c
5167 ac_cpp='$CPP $CPPFLAGS'
5168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5171 if test -n "$ac_tool_prefix"; then
5172   for ac_prog in gcc
5173   do
5174     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5178 if test "${ac_cv_prog_CC+set}" = set; then
5179   echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181   if test -n "$CC"; then
5182   ac_cv_prog_CC="$CC" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5186 do
5187   IFS=$as_save_IFS
5188   test -z "$as_dir" && as_dir=.
5189   for ac_exec_ext in '' $ac_executable_extensions; do
5190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5191     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5193     break 2
5194   fi
5195 done
5196 done
5197 IFS=$as_save_IFS
5198
5199 fi
5200 fi
5201 CC=$ac_cv_prog_CC
5202 if test -n "$CC"; then
5203   { echo "$as_me:$LINENO: result: $CC" >&5
5204 echo "${ECHO_T}$CC" >&6; }
5205 else
5206   { echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6; }
5208 fi
5209
5210
5211     test -n "$CC" && break
5212   done
5213 fi
5214 if test -z "$CC"; then
5215   ac_ct_CC=$CC
5216   for ac_prog in gcc
5217 do
5218   # Extract the first word of "$ac_prog", so it can be a program name with args.
5219 set dummy $ac_prog; ac_word=$2
5220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5223   echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225   if test -n "$ac_ct_CC"; then
5226   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231   IFS=$as_save_IFS
5232   test -z "$as_dir" && as_dir=.
5233   for ac_exec_ext in '' $ac_executable_extensions; do
5234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5235     ac_cv_prog_ac_ct_CC="$ac_prog"
5236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5237     break 2
5238   fi
5239 done
5240 done
5241 IFS=$as_save_IFS
5242
5243 fi
5244 fi
5245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5246 if test -n "$ac_ct_CC"; then
5247   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5248 echo "${ECHO_T}$ac_ct_CC" >&6; }
5249 else
5250   { echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6; }
5252 fi
5253
5254
5255   test -n "$ac_ct_CC" && break
5256 done
5257
5258   if test "x$ac_ct_CC" = x; then
5259     CC=""
5260   else
5261     case $cross_compiling:$ac_tool_warned in
5262 yes:)
5263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5264 whose name does not start with the host triplet.  If you think this
5265 configuration is useful to you, please write to autoconf@gnu.org." >&5
5266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5267 whose name does not start with the host triplet.  If you think this
5268 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5269 ac_tool_warned=yes ;;
5270 esac
5271     CC=$ac_ct_CC
5272   fi
5273 fi
5274
5275
5276 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5277 See \`config.log' for more details." >&5
5278 echo "$as_me: error: no acceptable C compiler found in \$PATH
5279 See \`config.log' for more details." >&2;}
5280    { (exit 1); exit 1; }; }
5281
5282 # Provide some information about the compiler.
5283 echo "$as_me:$LINENO: checking for C compiler version" >&5
5284 ac_compiler=`set X $ac_compile; echo $2`
5285 { (ac_try="$ac_compiler --version >&5"
5286 case "(($ac_try" in
5287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288   *) ac_try_echo=$ac_try;;
5289 esac
5290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291   (eval "$ac_compiler --version >&5") 2>&5
5292   ac_status=$?
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); }
5295 { (ac_try="$ac_compiler -v >&5"
5296 case "(($ac_try" in
5297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298   *) ac_try_echo=$ac_try;;
5299 esac
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301   (eval "$ac_compiler -v >&5") 2>&5
5302   ac_status=$?
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); }
5305 { (ac_try="$ac_compiler -V >&5"
5306 case "(($ac_try" in
5307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308   *) ac_try_echo=$ac_try;;
5309 esac
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311   (eval "$ac_compiler -V >&5") 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); }
5315
5316 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5317 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5318 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5319   echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321   cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h.  */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h.  */
5327
5328 int
5329 main ()
5330 {
5331 #ifndef __GNUC__
5332        choke me
5333 #endif
5334
5335   ;
5336   return 0;
5337 }
5338 _ACEOF
5339 rm -f conftest.$ac_objext
5340 if { (ac_try="$ac_compile"
5341 case "(($ac_try" in
5342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343   *) ac_try_echo=$ac_try;;
5344 esac
5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346   (eval "$ac_compile") 2>conftest.er1
5347   ac_status=$?
5348   grep -v '^ *+' conftest.er1 >conftest.err
5349   rm -f conftest.er1
5350   cat conftest.err >&5
5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352   (exit $ac_status); } &&
5353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5354   { (case "(($ac_try" in
5355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356   *) ac_try_echo=$ac_try;;
5357 esac
5358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359   (eval "$ac_try") 2>&5
5360   ac_status=$?
5361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362   (exit $ac_status); }; } &&
5363          { ac_try='test -s conftest.$ac_objext'
5364   { (case "(($ac_try" in
5365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366   *) ac_try_echo=$ac_try;;
5367 esac
5368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369   (eval "$ac_try") 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); }; }; then
5373   ac_compiler_gnu=yes
5374 else
5375   echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5377
5378         ac_compiler_gnu=no
5379 fi
5380
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5383
5384 fi
5385 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5386 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5387 GCC=`test $ac_compiler_gnu = yes && echo yes`
5388 ac_test_CFLAGS=${CFLAGS+set}
5389 ac_save_CFLAGS=$CFLAGS
5390 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5391 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5392 if test "${ac_cv_prog_cc_g+set}" = set; then
5393   echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395   ac_save_c_werror_flag=$ac_c_werror_flag
5396    ac_c_werror_flag=yes
5397    ac_cv_prog_cc_g=no
5398    CFLAGS="-g"
5399    cat >conftest.$ac_ext <<_ACEOF
5400 /* confdefs.h.  */
5401 _ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h.  */
5405
5406 int
5407 main ()
5408 {
5409
5410   ;
5411   return 0;
5412 }
5413 _ACEOF
5414 rm -f conftest.$ac_objext
5415 if { (ac_try="$ac_compile"
5416 case "(($ac_try" in
5417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418   *) ac_try_echo=$ac_try;;
5419 esac
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421   (eval "$ac_compile") 2>conftest.er1
5422   ac_status=$?
5423   grep -v '^ *+' conftest.er1 >conftest.err
5424   rm -f conftest.er1
5425   cat conftest.err >&5
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); } &&
5428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5429   { (case "(($ac_try" in
5430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431   *) ac_try_echo=$ac_try;;
5432 esac
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434   (eval "$ac_try") 2>&5
5435   ac_status=$?
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); }; } &&
5438          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
5445   ac_status=$?
5446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447   (exit $ac_status); }; }; then
5448   ac_cv_prog_cc_g=yes
5449 else
5450   echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5452
5453         CFLAGS=""
5454       cat >conftest.$ac_ext <<_ACEOF
5455 /* confdefs.h.  */
5456 _ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h.  */
5460
5461 int
5462 main ()
5463 {
5464
5465   ;
5466   return 0;
5467 }
5468 _ACEOF
5469 rm -f conftest.$ac_objext
5470 if { (ac_try="$ac_compile"
5471 case "(($ac_try" in
5472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473   *) ac_try_echo=$ac_try;;
5474 esac
5475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476   (eval "$ac_compile") 2>conftest.er1
5477   ac_status=$?
5478   grep -v '^ *+' conftest.er1 >conftest.err
5479   rm -f conftest.er1
5480   cat conftest.err >&5
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); } &&
5483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5484   { (case "(($ac_try" in
5485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486   *) ac_try_echo=$ac_try;;
5487 esac
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489   (eval "$ac_try") 2>&5
5490   ac_status=$?
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); }; } &&
5493          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
5500   ac_status=$?
5501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502   (exit $ac_status); }; }; then
5503   :
5504 else
5505   echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5507
5508         ac_c_werror_flag=$ac_save_c_werror_flag
5509          CFLAGS="-g"
5510          cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h.  */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h.  */
5516
5517 int
5518 main ()
5519 {
5520
5521   ;
5522   return 0;
5523 }
5524 _ACEOF
5525 rm -f conftest.$ac_objext
5526 if { (ac_try="$ac_compile"
5527 case "(($ac_try" in
5528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529   *) ac_try_echo=$ac_try;;
5530 esac
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532   (eval "$ac_compile") 2>conftest.er1
5533   ac_status=$?
5534   grep -v '^ *+' conftest.er1 >conftest.err
5535   rm -f conftest.er1
5536   cat conftest.err >&5
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); } &&
5539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5540   { (case "(($ac_try" in
5541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542   *) ac_try_echo=$ac_try;;
5543 esac
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545   (eval "$ac_try") 2>&5
5546   ac_status=$?
5547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548   (exit $ac_status); }; } &&
5549          { ac_try='test -s conftest.$ac_objext'
5550   { (case "(($ac_try" in
5551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552   *) ac_try_echo=$ac_try;;
5553 esac
5554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555   (eval "$ac_try") 2>&5
5556   ac_status=$?
5557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558   (exit $ac_status); }; }; then
5559   ac_cv_prog_cc_g=yes
5560 else
5561   echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5563
5564
5565 fi
5566
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 fi
5569
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571 fi
5572
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574    ac_c_werror_flag=$ac_save_c_werror_flag
5575 fi
5576 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5577 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5578 if test "$ac_test_CFLAGS" = set; then
5579   CFLAGS=$ac_save_CFLAGS
5580 elif test $ac_cv_prog_cc_g = yes; then
5581   if test "$GCC" = yes; then
5582     CFLAGS="-g -O2"
5583   else
5584     CFLAGS="-g"
5585   fi
5586 else
5587   if test "$GCC" = yes; then
5588     CFLAGS="-O2"
5589   else
5590     CFLAGS=
5591   fi
5592 fi
5593 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5594 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5595 if test "${ac_cv_prog_cc_c89+set}" = set; then
5596   echo $ECHO_N "(cached) $ECHO_C" >&6
5597 else
5598   ac_cv_prog_cc_c89=no
5599 ac_save_CC=$CC
5600 cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h.  */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h.  */
5606 #include <stdarg.h>
5607 #include <stdio.h>
5608 #include <sys/types.h>
5609 #include <sys/stat.h>
5610 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5611 struct buf { int x; };
5612 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5613 static char *e (p, i)
5614      char **p;
5615      int i;
5616 {
5617   return p[i];
5618 }
5619 static char *f (char * (*g) (char **, int), char **p, ...)
5620 {
5621   char *s;
5622   va_list v;
5623   va_start (v,p);
5624   s = g (p, va_arg (v,int));
5625   va_end (v);
5626   return s;
5627 }
5628
5629 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5630    function prototypes and stuff, but not '\xHH' hex character constants.
5631    These don't provoke an error unfortunately, instead are silently treated
5632    as 'x'.  The following induces an error, until -std is added to get
5633    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5634    array size at least.  It's necessary to write '\x00'==0 to get something
5635    that's true only with -std.  */
5636 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5637
5638 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5639    inside strings and character constants.  */
5640 #define FOO(x) 'x'
5641 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5642
5643 int test (int i, double x);
5644 struct s1 {int (*f) (int a);};
5645 struct s2 {int (*f) (double a);};
5646 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5647 int argc;
5648 char **argv;
5649 int
5650 main ()
5651 {
5652 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5653   ;
5654   return 0;
5655 }
5656 _ACEOF
5657 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5658         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5659 do
5660   CC="$ac_save_CC $ac_arg"
5661   rm -f conftest.$ac_objext
5662 if { (ac_try="$ac_compile"
5663 case "(($ac_try" in
5664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665   *) ac_try_echo=$ac_try;;
5666 esac
5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668   (eval "$ac_compile") 2>conftest.er1
5669   ac_status=$?
5670   grep -v '^ *+' conftest.er1 >conftest.err
5671   rm -f conftest.er1
5672   cat conftest.err >&5
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); } &&
5675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5676   { (case "(($ac_try" in
5677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678   *) ac_try_echo=$ac_try;;
5679 esac
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681   (eval "$ac_try") 2>&5
5682   ac_status=$?
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); }; } &&
5685          { ac_try='test -s conftest.$ac_objext'
5686   { (case "(($ac_try" in
5687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688   *) ac_try_echo=$ac_try;;
5689 esac
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691   (eval "$ac_try") 2>&5
5692   ac_status=$?
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); }; }; then
5695   ac_cv_prog_cc_c89=$ac_arg
5696 else
5697   echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5699
5700
5701 fi
5702
5703 rm -f core conftest.err conftest.$ac_objext
5704   test "x$ac_cv_prog_cc_c89" != "xno" && break
5705 done
5706 rm -f conftest.$ac_ext
5707 CC=$ac_save_CC
5708
5709 fi
5710 # AC_CACHE_VAL
5711 case "x$ac_cv_prog_cc_c89" in
5712   x)
5713     { echo "$as_me:$LINENO: result: none needed" >&5
5714 echo "${ECHO_T}none needed" >&6; } ;;
5715   xno)
5716     { echo "$as_me:$LINENO: result: unsupported" >&5
5717 echo "${ECHO_T}unsupported" >&6; } ;;
5718   *)
5719     CC="$CC $ac_cv_prog_cc_c89"
5720     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5721 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5722 esac
5723
5724
5725 ac_ext=c
5726 ac_cpp='$CPP $CPPFLAGS'
5727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5730
5731 ac_ext=cpp
5732 ac_cpp='$CXXCPP $CPPFLAGS'
5733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5736 if test -z "$CXX"; then
5737   if test -n "$CCC"; then
5738     CXX=$CCC
5739   else
5740     if test -n "$ac_tool_prefix"; then
5741   for ac_prog in g++
5742   do
5743     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5747 if test "${ac_cv_prog_CXX+set}" = set; then
5748   echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750   if test -n "$CXX"; then
5751   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5752 else
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5755 do
5756   IFS=$as_save_IFS
5757   test -z "$as_dir" && as_dir=.
5758   for ac_exec_ext in '' $ac_executable_extensions; do
5759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5760     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5762     break 2
5763   fi
5764 done
5765 done
5766 IFS=$as_save_IFS
5767
5768 fi
5769 fi
5770 CXX=$ac_cv_prog_CXX
5771 if test -n "$CXX"; then
5772   { echo "$as_me:$LINENO: result: $CXX" >&5
5773 echo "${ECHO_T}$CXX" >&6; }
5774 else
5775   { echo "$as_me:$LINENO: result: no" >&5
5776 echo "${ECHO_T}no" >&6; }
5777 fi
5778
5779
5780     test -n "$CXX" && break
5781   done
5782 fi
5783 if test -z "$CXX"; then
5784   ac_ct_CXX=$CXX
5785   for ac_prog in g++
5786 do
5787   # Extract the first word of "$ac_prog", so it can be a program name with args.
5788 set dummy $ac_prog; ac_word=$2
5789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   if test -n "$ac_ct_CXX"; then
5795   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5796 else
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5799 do
5800   IFS=$as_save_IFS
5801   test -z "$as_dir" && as_dir=.
5802   for ac_exec_ext in '' $ac_executable_extensions; do
5803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5804     ac_cv_prog_ac_ct_CXX="$ac_prog"
5805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5806     break 2
5807   fi
5808 done
5809 done
5810 IFS=$as_save_IFS
5811
5812 fi
5813 fi
5814 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5815 if test -n "$ac_ct_CXX"; then
5816   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5817 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5818 else
5819   { echo "$as_me:$LINENO: result: no" >&5
5820 echo "${ECHO_T}no" >&6; }
5821 fi
5822
5823
5824   test -n "$ac_ct_CXX" && break
5825 done
5826
5827   if test "x$ac_ct_CXX" = x; then
5828     CXX="g++"
5829   else
5830     case $cross_compiling:$ac_tool_warned in
5831 yes:)
5832 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5833 whose name does not start with the host triplet.  If you think this
5834 configuration is useful to you, please write to autoconf@gnu.org." >&5
5835 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5836 whose name does not start with the host triplet.  If you think this
5837 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5838 ac_tool_warned=yes ;;
5839 esac
5840     CXX=$ac_ct_CXX
5841   fi
5842 fi
5843
5844   fi
5845 fi
5846 # Provide some information about the compiler.
5847 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5848 ac_compiler=`set X $ac_compile; echo $2`
5849 { (ac_try="$ac_compiler --version >&5"
5850 case "(($ac_try" in
5851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852   *) ac_try_echo=$ac_try;;
5853 esac
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855   (eval "$ac_compiler --version >&5") 2>&5
5856   ac_status=$?
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); }
5859 { (ac_try="$ac_compiler -v >&5"
5860 case "(($ac_try" in
5861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862   *) ac_try_echo=$ac_try;;
5863 esac
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865   (eval "$ac_compiler -v >&5") 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); }
5869 { (ac_try="$ac_compiler -V >&5"
5870 case "(($ac_try" in
5871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872   *) ac_try_echo=$ac_try;;
5873 esac
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875   (eval "$ac_compiler -V >&5") 2>&5
5876   ac_status=$?
5877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878   (exit $ac_status); }
5879
5880 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5881 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5882 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5883   echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885   cat >conftest.$ac_ext <<_ACEOF
5886 /* confdefs.h.  */
5887 _ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h.  */
5891
5892 int
5893 main ()
5894 {
5895 #ifndef __GNUC__
5896        choke me
5897 #endif
5898
5899   ;
5900   return 0;
5901 }
5902 _ACEOF
5903 rm -f conftest.$ac_objext
5904 if { (ac_try="$ac_compile"
5905 case "(($ac_try" in
5906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907   *) ac_try_echo=$ac_try;;
5908 esac
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910   (eval "$ac_compile") 2>conftest.er1
5911   ac_status=$?
5912   grep -v '^ *+' conftest.er1 >conftest.err
5913   rm -f conftest.er1
5914   cat conftest.err >&5
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); } &&
5917          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5918   { (case "(($ac_try" in
5919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920   *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923   (eval "$ac_try") 2>&5
5924   ac_status=$?
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); }; } &&
5927          { ac_try='test -s conftest.$ac_objext'
5928   { (case "(($ac_try" in
5929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930   *) ac_try_echo=$ac_try;;
5931 esac
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933   (eval "$ac_try") 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); }; }; then
5937   ac_compiler_gnu=yes
5938 else
5939   echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942         ac_compiler_gnu=no
5943 fi
5944
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5947
5948 fi
5949 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5950 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5951 GXX=`test $ac_compiler_gnu = yes && echo yes`
5952 ac_test_CXXFLAGS=${CXXFLAGS+set}
5953 ac_save_CXXFLAGS=$CXXFLAGS
5954 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5955 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5956 if test "${ac_cv_prog_cxx_g+set}" = set; then
5957   echo $ECHO_N "(cached) $ECHO_C" >&6
5958 else
5959   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5960    ac_cxx_werror_flag=yes
5961    ac_cv_prog_cxx_g=no
5962    CXXFLAGS="-g"
5963    cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h.  */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h.  */
5969
5970 int
5971 main ()
5972 {
5973
5974   ;
5975   return 0;
5976 }
5977 _ACEOF
5978 rm -f conftest.$ac_objext
5979 if { (ac_try="$ac_compile"
5980 case "(($ac_try" in
5981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982   *) ac_try_echo=$ac_try;;
5983 esac
5984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985   (eval "$ac_compile") 2>conftest.er1
5986   ac_status=$?
5987   grep -v '^ *+' conftest.er1 >conftest.err
5988   rm -f conftest.er1
5989   cat conftest.err >&5
5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); } &&
5992          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5993   { (case "(($ac_try" in
5994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995   *) ac_try_echo=$ac_try;;
5996 esac
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998   (eval "$ac_try") 2>&5
5999   ac_status=$?
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); }; } &&
6002          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
6009   ac_status=$?
6010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011   (exit $ac_status); }; }; then
6012   ac_cv_prog_cxx_g=yes
6013 else
6014   echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6016
6017         CXXFLAGS=""
6018       cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h.  */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h.  */
6024
6025 int
6026 main ()
6027 {
6028
6029   ;
6030   return 0;
6031 }
6032 _ACEOF
6033 rm -f conftest.$ac_objext
6034 if { (ac_try="$ac_compile"
6035 case "(($ac_try" in
6036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037   *) ac_try_echo=$ac_try;;
6038 esac
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040   (eval "$ac_compile") 2>conftest.er1
6041   ac_status=$?
6042   grep -v '^ *+' conftest.er1 >conftest.err
6043   rm -f conftest.er1
6044   cat conftest.err >&5
6045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046   (exit $ac_status); } &&
6047          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6048   { (case "(($ac_try" in
6049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050   *) ac_try_echo=$ac_try;;
6051 esac
6052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053   (eval "$ac_try") 2>&5
6054   ac_status=$?
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); }; } &&
6057          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
6064   ac_status=$?
6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066   (exit $ac_status); }; }; then
6067   :
6068 else
6069   echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6071
6072         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6073          CXXFLAGS="-g"
6074          cat >conftest.$ac_ext <<_ACEOF
6075 /* confdefs.h.  */
6076 _ACEOF
6077 cat confdefs.h >>conftest.$ac_ext
6078 cat >>conftest.$ac_ext <<_ACEOF
6079 /* end confdefs.h.  */
6080
6081 int
6082 main ()
6083 {
6084
6085   ;
6086   return 0;
6087 }
6088 _ACEOF
6089 rm -f conftest.$ac_objext
6090 if { (ac_try="$ac_compile"
6091 case "(($ac_try" in
6092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093   *) ac_try_echo=$ac_try;;
6094 esac
6095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096   (eval "$ac_compile") 2>conftest.er1
6097   ac_status=$?
6098   grep -v '^ *+' conftest.er1 >conftest.err
6099   rm -f conftest.er1
6100   cat conftest.err >&5
6101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102   (exit $ac_status); } &&
6103          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6104   { (case "(($ac_try" in
6105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106   *) ac_try_echo=$ac_try;;
6107 esac
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109   (eval "$ac_try") 2>&5
6110   ac_status=$?
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); }; } &&
6113          { ac_try='test -s conftest.$ac_objext'
6114   { (case "(($ac_try" in
6115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116   *) ac_try_echo=$ac_try;;
6117 esac
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119   (eval "$ac_try") 2>&5
6120   ac_status=$?
6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); }; }; then
6123   ac_cv_prog_cxx_g=yes
6124 else
6125   echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6127
6128
6129 fi
6130
6131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132 fi
6133
6134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135 fi
6136
6137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6139 fi
6140 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6141 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6142 if test "$ac_test_CXXFLAGS" = set; then
6143   CXXFLAGS=$ac_save_CXXFLAGS
6144 elif test $ac_cv_prog_cxx_g = yes; then
6145   if test "$GXX" = yes; then
6146     CXXFLAGS="-g -O2"
6147   else
6148     CXXFLAGS="-g"
6149   fi
6150 else
6151   if test "$GXX" = yes; then
6152     CXXFLAGS="-O2"
6153   else
6154     CXXFLAGS=
6155   fi
6156 fi
6157 ac_ext=c
6158 ac_cpp='$CPP $CPPFLAGS'
6159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6162
6163 { echo "$as_me:$LINENO: checking " >&5
6164 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6165 if test "${ac_cv_has_flex+set}" = set; then
6166   echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168   for ac_prog in flex lex
6169 do
6170   # Extract the first word of "$ac_prog", so it can be a program name with args.
6171 set dummy $ac_prog; ac_word=$2
6172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6174 if test "${ac_cv_prog_LEX+set}" = set; then
6175   echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177   if test -n "$LEX"; then
6178   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183   IFS=$as_save_IFS
6184   test -z "$as_dir" && as_dir=.
6185   for ac_exec_ext in '' $ac_executable_extensions; do
6186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6187     ac_cv_prog_LEX="$ac_prog"
6188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6189     break 2
6190   fi
6191 done
6192 done
6193 IFS=$as_save_IFS
6194
6195 fi
6196 fi
6197 LEX=$ac_cv_prog_LEX
6198 if test -n "$LEX"; then
6199   { echo "$as_me:$LINENO: result: $LEX" >&5
6200 echo "${ECHO_T}$LEX" >&6; }
6201 else
6202   { echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6; }
6204 fi
6205
6206
6207   test -n "$LEX" && break
6208 done
6209 test -n "$LEX" || LEX=":"
6210
6211 if test -z "$LEXLIB"
6212 then
6213   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6214 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6215 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6216   echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218   ac_check_lib_save_LIBS=$LIBS
6219 LIBS="-lfl  $LIBS"
6220 cat >conftest.$ac_ext <<_ACEOF
6221 /* confdefs.h.  */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h.  */
6226
6227 /* Override any GCC internal prototype to avoid an error.
6228    Use char because int might match the return type of a GCC
6229    builtin and then its argument prototype would still apply.  */
6230 #ifdef __cplusplus
6231 extern "C"
6232 #endif
6233 char yywrap ();
6234 int
6235 main ()
6236 {
6237 return yywrap ();
6238   ;
6239   return 0;
6240 }
6241 _ACEOF
6242 rm -f conftest.$ac_objext conftest$ac_exeext
6243 if { (ac_try="$ac_link"
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_link") 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_c_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_exeext'
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_lib_fl_yywrap=yes
6277 else
6278   echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6280
6281         ac_cv_lib_fl_yywrap=no
6282 fi
6283
6284 rm -f core conftest.err conftest.$ac_objext \
6285       conftest$ac_exeext conftest.$ac_ext
6286 LIBS=$ac_check_lib_save_LIBS
6287 fi
6288 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6289 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6290 if test $ac_cv_lib_fl_yywrap = yes; then
6291   LEXLIB="-lfl"
6292 else
6293   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6294 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6295 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6296   echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298   ac_check_lib_save_LIBS=$LIBS
6299 LIBS="-ll  $LIBS"
6300 cat >conftest.$ac_ext <<_ACEOF
6301 /* confdefs.h.  */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h.  */
6306
6307 /* Override any GCC internal prototype to avoid an error.
6308    Use char because int might match the return type of a GCC
6309    builtin and then its argument prototype would still apply.  */
6310 #ifdef __cplusplus
6311 extern "C"
6312 #endif
6313 char yywrap ();
6314 int
6315 main ()
6316 {
6317 return yywrap ();
6318   ;
6319   return 0;
6320 }
6321 _ACEOF
6322 rm -f conftest.$ac_objext conftest$ac_exeext
6323 if { (ac_try="$ac_link"
6324 case "(($ac_try" in
6325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326   *) ac_try_echo=$ac_try;;
6327 esac
6328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329   (eval "$ac_link") 2>conftest.er1
6330   ac_status=$?
6331   grep -v '^ *+' conftest.er1 >conftest.err
6332   rm -f conftest.er1
6333   cat conftest.err >&5
6334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); } &&
6336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6337   { (case "(($ac_try" in
6338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339   *) ac_try_echo=$ac_try;;
6340 esac
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342   (eval "$ac_try") 2>&5
6343   ac_status=$?
6344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345   (exit $ac_status); }; } &&
6346          { ac_try='test -s conftest$ac_exeext'
6347   { (case "(($ac_try" in
6348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349   *) ac_try_echo=$ac_try;;
6350 esac
6351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352   (eval "$ac_try") 2>&5
6353   ac_status=$?
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); }; }; then
6356   ac_cv_lib_l_yywrap=yes
6357 else
6358   echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6360
6361         ac_cv_lib_l_yywrap=no
6362 fi
6363
6364 rm -f core conftest.err conftest.$ac_objext \
6365       conftest$ac_exeext conftest.$ac_ext
6366 LIBS=$ac_check_lib_save_LIBS
6367 fi
6368 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6369 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6370 if test $ac_cv_lib_l_yywrap = yes; then
6371   LEXLIB="-ll"
6372 fi
6373
6374 fi
6375
6376 fi
6377
6378 if test "x$LEX" != "x:"; then
6379   { echo "$as_me:$LINENO: checking lex output file root" >&5
6380 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6381 if test "${ac_cv_prog_lex_root+set}" = set; then
6382   echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384   # The minimal lex program is just a single line: %%.  But some broken lexes
6385 # (Solaris, I think it was) want two %% lines, so accommodate them.
6386 cat >conftest.l <<_ACEOF
6387 %%
6388 %%
6389 _ACEOF
6390 { (ac_try="$LEX conftest.l"
6391 case "(($ac_try" in
6392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393   *) ac_try_echo=$ac_try;;
6394 esac
6395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396   (eval "$LEX conftest.l") 2>&5
6397   ac_status=$?
6398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399   (exit $ac_status); }
6400 if test -f lex.yy.c; then
6401   ac_cv_prog_lex_root=lex.yy
6402 elif test -f lexyy.c; then
6403   ac_cv_prog_lex_root=lexyy
6404 else
6405   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6406 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6407    { (exit 1); exit 1; }; }
6408 fi
6409 fi
6410 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6411 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6412 rm -f conftest.l
6413 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6414
6415 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6416 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6417 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6418   echo $ECHO_N "(cached) $ECHO_C" >&6
6419 else
6420   # POSIX says lex can declare yytext either as a pointer or an array; the
6421 # default is implementation-dependent. Figure out which it is, since
6422 # not all implementations provide the %pointer and %array declarations.
6423 ac_cv_prog_lex_yytext_pointer=no
6424 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6425 ac_save_LIBS=$LIBS
6426 LIBS="$LIBS $LEXLIB"
6427 cat >conftest.$ac_ext <<_ACEOF
6428 `cat $LEX_OUTPUT_ROOT.c`
6429 _ACEOF
6430 rm -f conftest.$ac_objext conftest$ac_exeext
6431 if { (ac_try="$ac_link"
6432 case "(($ac_try" in
6433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434   *) ac_try_echo=$ac_try;;
6435 esac
6436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6437   (eval "$ac_link") 2>conftest.er1
6438   ac_status=$?
6439   grep -v '^ *+' conftest.er1 >conftest.err
6440   rm -f conftest.er1
6441   cat conftest.err >&5
6442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443   (exit $ac_status); } &&
6444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6445   { (case "(($ac_try" in
6446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447   *) ac_try_echo=$ac_try;;
6448 esac
6449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450   (eval "$ac_try") 2>&5
6451   ac_status=$?
6452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453   (exit $ac_status); }; } &&
6454          { ac_try='test -s conftest$ac_exeext'
6455   { (case "(($ac_try" in
6456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457   *) ac_try_echo=$ac_try;;
6458 esac
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460   (eval "$ac_try") 2>&5
6461   ac_status=$?
6462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463   (exit $ac_status); }; }; then
6464   ac_cv_prog_lex_yytext_pointer=yes
6465 else
6466   echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6468
6469
6470 fi
6471
6472 rm -f core conftest.err conftest.$ac_objext \
6473       conftest$ac_exeext conftest.$ac_ext
6474 LIBS=$ac_save_LIBS
6475 rm -f "${LEX_OUTPUT_ROOT}.c"
6476
6477 fi
6478 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6479 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6480 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6481
6482 cat >>confdefs.h <<\_ACEOF
6483 #define YYTEXT_POINTER 1
6484 _ACEOF
6485
6486 fi
6487
6488 fi
6489
6490 fi
6491 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6492 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6493 if test "$LEX" != "flex"; then
6494   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6495 echo "$as_me: error: flex not found but required" >&2;}
6496    { (exit 1); exit 1; }; }
6497 else
6498   FLEX=flex
6499
6500 fi
6501
6502 { echo "$as_me:$LINENO: checking " >&5
6503 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6504 if test "${llvm_cv_has_bison+set}" = set; then
6505   echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507   for ac_prog in 'bison -y' byacc
6508 do
6509   # Extract the first word of "$ac_prog", so it can be a program name with args.
6510 set dummy $ac_prog; ac_word=$2
6511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513 if test "${ac_cv_prog_YACC+set}" = set; then
6514   echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516   if test -n "$YACC"; then
6517   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6518 else
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522   IFS=$as_save_IFS
6523   test -z "$as_dir" && as_dir=.
6524   for ac_exec_ext in '' $ac_executable_extensions; do
6525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6526     ac_cv_prog_YACC="$ac_prog"
6527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528     break 2
6529   fi
6530 done
6531 done
6532 IFS=$as_save_IFS
6533
6534 fi
6535 fi
6536 YACC=$ac_cv_prog_YACC
6537 if test -n "$YACC"; then
6538   { echo "$as_me:$LINENO: result: $YACC" >&5
6539 echo "${ECHO_T}$YACC" >&6; }
6540 else
6541   { echo "$as_me:$LINENO: result: no" >&5
6542 echo "${ECHO_T}no" >&6; }
6543 fi
6544
6545
6546   test -n "$YACC" && break
6547 done
6548 test -n "$YACC" || YACC="yacc"
6549
6550 fi
6551 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6552 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6553 if test "$YACC" != "bison -y"; then
6554
6555   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6556 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6557 else
6558   BISON=bison
6559
6560 fi
6561
6562 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6563 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6564 if test "${lt_cv_path_NM+set}" = set; then
6565   echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567   if test -n "$NM"; then
6568   # Let the user override the test.
6569   lt_cv_path_NM="$NM"
6570 else
6571   lt_nm_to_check="${ac_tool_prefix}nm"
6572   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6573     lt_nm_to_check="$lt_nm_to_check nm"
6574   fi
6575   for lt_tmp_nm in $lt_nm_to_check; do
6576     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6577     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6578       IFS="$lt_save_ifs"
6579       test -z "$ac_dir" && ac_dir=.
6580       tmp_nm="$ac_dir/$lt_tmp_nm"
6581       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6582         # Check to see if the nm accepts a BSD-compat flag.
6583         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6584         #   nm: unknown option "B" ignored
6585         # Tru64's nm complains that /dev/null is an invalid object file
6586         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6587         */dev/null* | *'Invalid file or object type'*)
6588           lt_cv_path_NM="$tmp_nm -B"
6589           break
6590           ;;
6591         *)
6592           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6593           */dev/null*)
6594             lt_cv_path_NM="$tmp_nm -p"
6595             break
6596             ;;
6597           *)
6598             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6599             continue # so that we can try to find one that supports BSD flags
6600             ;;
6601           esac
6602           ;;
6603         esac
6604       fi
6605     done
6606     IFS="$lt_save_ifs"
6607   done
6608   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6609 fi
6610 fi
6611 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6612 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6613 NM="$lt_cv_path_NM"
6614
6615
6616
6617 { echo "$as_me:$LINENO: checking for GNU make" >&5
6618 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6619 if test "${llvm_cv_gnu_make_command+set}" = set; then
6620   echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622   llvm_cv_gnu_make_command=''
6623  for a in "$MAKE" make gmake gnumake ; do
6624   if test -z "$a" ; then continue ; fi ;
6625   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6626   then
6627    llvm_cv_gnu_make_command=$a ;
6628    break;
6629   fi
6630  done
6631 fi
6632 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6633 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6634  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6635    ifGNUmake='' ;
6636  else
6637    ifGNUmake='#' ;
6638    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6639 echo "${ECHO_T}\"Not found\"" >&6; };
6640  fi
6641
6642
6643 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6644 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6645 LN_S=$as_ln_s
6646 if test "$LN_S" = "ln -s"; then
6647   { echo "$as_me:$LINENO: result: yes" >&5
6648 echo "${ECHO_T}yes" >&6; }
6649 else
6650   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6651 echo "${ECHO_T}no, using $LN_S" >&6; }
6652 fi
6653
6654 # Extract the first word of "cmp", so it can be a program name with args.
6655 set dummy cmp; ac_word=$2
6656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658 if test "${ac_cv_path_CMP+set}" = set; then
6659   echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661   case $CMP in
6662   [\\/]* | ?:[\\/]*)
6663   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6664   ;;
6665   *)
6666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669   IFS=$as_save_IFS
6670   test -z "$as_dir" && as_dir=.
6671   for ac_exec_ext in '' $ac_executable_extensions; do
6672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6673     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675     break 2
6676   fi
6677 done
6678 done
6679 IFS=$as_save_IFS
6680
6681   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6682   ;;
6683 esac
6684 fi
6685 CMP=$ac_cv_path_CMP
6686 if test -n "$CMP"; then
6687   { echo "$as_me:$LINENO: result: $CMP" >&5
6688 echo "${ECHO_T}$CMP" >&6; }
6689 else
6690   { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6692 fi
6693
6694
6695 # Extract the first word of "cp", so it can be a program name with args.
6696 set dummy cp; ac_word=$2
6697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699 if test "${ac_cv_path_CP+set}" = set; then
6700   echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702   case $CP in
6703   [\\/]* | ?:[\\/]*)
6704   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6705   ;;
6706   *)
6707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710   IFS=$as_save_IFS
6711   test -z "$as_dir" && as_dir=.
6712   for ac_exec_ext in '' $ac_executable_extensions; do
6713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6714     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716     break 2
6717   fi
6718 done
6719 done
6720 IFS=$as_save_IFS
6721
6722   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6723   ;;
6724 esac
6725 fi
6726 CP=$ac_cv_path_CP
6727 if test -n "$CP"; then
6728   { echo "$as_me:$LINENO: result: $CP" >&5
6729 echo "${ECHO_T}$CP" >&6; }
6730 else
6731   { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6733 fi
6734
6735
6736 # Extract the first word of "date", so it can be a program name with args.
6737 set dummy date; ac_word=$2
6738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740 if test "${ac_cv_path_DATE+set}" = set; then
6741   echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743   case $DATE in
6744   [\\/]* | ?:[\\/]*)
6745   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6746   ;;
6747   *)
6748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 for as_dir in $PATH
6750 do
6751   IFS=$as_save_IFS
6752   test -z "$as_dir" && as_dir=.
6753   for ac_exec_ext in '' $ac_executable_extensions; do
6754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6755     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757     break 2
6758   fi
6759 done
6760 done
6761 IFS=$as_save_IFS
6762
6763   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6764   ;;
6765 esac
6766 fi
6767 DATE=$ac_cv_path_DATE
6768 if test -n "$DATE"; then
6769   { echo "$as_me:$LINENO: result: $DATE" >&5
6770 echo "${ECHO_T}$DATE" >&6; }
6771 else
6772   { echo "$as_me:$LINENO: result: no" >&5
6773 echo "${ECHO_T}no" >&6; }
6774 fi
6775
6776
6777 # Extract the first word of "find", so it can be a program name with args.
6778 set dummy find; ac_word=$2
6779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781 if test "${ac_cv_path_FIND+set}" = set; then
6782   echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784   case $FIND in
6785   [\\/]* | ?:[\\/]*)
6786   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6787   ;;
6788   *)
6789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792   IFS=$as_save_IFS
6793   test -z "$as_dir" && as_dir=.
6794   for ac_exec_ext in '' $ac_executable_extensions; do
6795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6796     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798     break 2
6799   fi
6800 done
6801 done
6802 IFS=$as_save_IFS
6803
6804   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6805   ;;
6806 esac
6807 fi
6808 FIND=$ac_cv_path_FIND
6809 if test -n "$FIND"; then
6810   { echo "$as_me:$LINENO: result: $FIND" >&5
6811 echo "${ECHO_T}$FIND" >&6; }
6812 else
6813   { echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6; }
6815 fi
6816
6817
6818 # Extract the first word of "grep", so it can be a program name with args.
6819 set dummy grep; ac_word=$2
6820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822 if test "${ac_cv_path_GREP+set}" = set; then
6823   echo $ECHO_N "(cached) $ECHO_C" >&6
6824 else
6825   case $GREP in
6826   [\\/]* | ?:[\\/]*)
6827   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6828   ;;
6829   *)
6830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833   IFS=$as_save_IFS
6834   test -z "$as_dir" && as_dir=.
6835   for ac_exec_ext in '' $ac_executable_extensions; do
6836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6837     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839     break 2
6840   fi
6841 done
6842 done
6843 IFS=$as_save_IFS
6844
6845   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6846   ;;
6847 esac
6848 fi
6849 GREP=$ac_cv_path_GREP
6850 if test -n "$GREP"; then
6851   { echo "$as_me:$LINENO: result: $GREP" >&5
6852 echo "${ECHO_T}$GREP" >&6; }
6853 else
6854   { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6856 fi
6857
6858
6859 # Extract the first word of "mkdir", so it can be a program name with args.
6860 set dummy mkdir; ac_word=$2
6861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863 if test "${ac_cv_path_MKDIR+set}" = set; then
6864   echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866   case $MKDIR in
6867   [\\/]* | ?:[\\/]*)
6868   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6869   ;;
6870   *)
6871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874   IFS=$as_save_IFS
6875   test -z "$as_dir" && as_dir=.
6876   for ac_exec_ext in '' $ac_executable_extensions; do
6877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6878     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880     break 2
6881   fi
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6887   ;;
6888 esac
6889 fi
6890 MKDIR=$ac_cv_path_MKDIR
6891 if test -n "$MKDIR"; then
6892   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6893 echo "${ECHO_T}$MKDIR" >&6; }
6894 else
6895   { echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6; }
6897 fi
6898
6899
6900 # Extract the first word of "mv", so it can be a program name with args.
6901 set dummy mv; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_path_MV+set}" = set; then
6905   echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907   case $MV in
6908   [\\/]* | ?:[\\/]*)
6909   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6910   ;;
6911   *)
6912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915   IFS=$as_save_IFS
6916   test -z "$as_dir" && as_dir=.
6917   for ac_exec_ext in '' $ac_executable_extensions; do
6918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6919     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921     break 2
6922   fi
6923 done
6924 done
6925 IFS=$as_save_IFS
6926
6927   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6928   ;;
6929 esac
6930 fi
6931 MV=$ac_cv_path_MV
6932 if test -n "$MV"; then
6933   { echo "$as_me:$LINENO: result: $MV" >&5
6934 echo "${ECHO_T}$MV" >&6; }
6935 else
6936   { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6938 fi
6939
6940
6941 if test -n "$ac_tool_prefix"; then
6942   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946 if test "${ac_cv_prog_RANLIB+set}" = set; then
6947   echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949   if test -n "$RANLIB"; then
6950   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955   IFS=$as_save_IFS
6956   test -z "$as_dir" && as_dir=.
6957   for ac_exec_ext in '' $ac_executable_extensions; do
6958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6959     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961     break 2
6962   fi
6963 done
6964 done
6965 IFS=$as_save_IFS
6966
6967 fi
6968 fi
6969 RANLIB=$ac_cv_prog_RANLIB
6970 if test -n "$RANLIB"; then
6971   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6972 echo "${ECHO_T}$RANLIB" >&6; }
6973 else
6974   { echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6; }
6976 fi
6977
6978
6979 fi
6980 if test -z "$ac_cv_prog_RANLIB"; then
6981   ac_ct_RANLIB=$RANLIB
6982   # Extract the first word of "ranlib", so it can be a program name with args.
6983 set dummy ranlib; ac_word=$2
6984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6987   echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989   if test -n "$ac_ct_RANLIB"; then
6990   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995   IFS=$as_save_IFS
6996   test -z "$as_dir" && as_dir=.
6997   for ac_exec_ext in '' $ac_executable_extensions; do
6998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6999     ac_cv_prog_ac_ct_RANLIB="ranlib"
7000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001     break 2
7002   fi
7003 done
7004 done
7005 IFS=$as_save_IFS
7006
7007 fi
7008 fi
7009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7010 if test -n "$ac_ct_RANLIB"; then
7011   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7012 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7013 else
7014   { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7016 fi
7017
7018   if test "x$ac_ct_RANLIB" = x; then
7019     RANLIB=":"
7020   else
7021     case $cross_compiling:$ac_tool_warned in
7022 yes:)
7023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7024 whose name does not start with the host triplet.  If you think this
7025 configuration is useful to you, please write to autoconf@gnu.org." >&5
7026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7027 whose name does not start with the host triplet.  If you think this
7028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7029 ac_tool_warned=yes ;;
7030 esac
7031     RANLIB=$ac_ct_RANLIB
7032   fi
7033 else
7034   RANLIB="$ac_cv_prog_RANLIB"
7035 fi
7036
7037 # Extract the first word of "rm", so it can be a program name with args.
7038 set dummy rm; ac_word=$2
7039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041 if test "${ac_cv_path_RM+set}" = set; then
7042   echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044   case $RM in
7045   [\\/]* | ?:[\\/]*)
7046   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7047   ;;
7048   *)
7049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7051 do
7052   IFS=$as_save_IFS
7053   test -z "$as_dir" && as_dir=.
7054   for ac_exec_ext in '' $ac_executable_extensions; do
7055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7056     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058     break 2
7059   fi
7060 done
7061 done
7062 IFS=$as_save_IFS
7063
7064   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7065   ;;
7066 esac
7067 fi
7068 RM=$ac_cv_path_RM
7069 if test -n "$RM"; then
7070   { echo "$as_me:$LINENO: result: $RM" >&5
7071 echo "${ECHO_T}$RM" >&6; }
7072 else
7073   { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7075 fi
7076
7077
7078 # Extract the first word of "sed", so it can be a program name with args.
7079 set dummy sed; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_path_SED+set}" = set; then
7083   echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085   case $SED in
7086   [\\/]* | ?:[\\/]*)
7087   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7088   ;;
7089   *)
7090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093   IFS=$as_save_IFS
7094   test -z "$as_dir" && as_dir=.
7095   for ac_exec_ext in '' $ac_executable_extensions; do
7096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7097     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099     break 2
7100   fi
7101 done
7102 done
7103 IFS=$as_save_IFS
7104
7105   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7106   ;;
7107 esac
7108 fi
7109 SED=$ac_cv_path_SED
7110 if test -n "$SED"; then
7111   { echo "$as_me:$LINENO: result: $SED" >&5
7112 echo "${ECHO_T}$SED" >&6; }
7113 else
7114   { echo "$as_me:$LINENO: result: no" >&5
7115 echo "${ECHO_T}no" >&6; }
7116 fi
7117
7118
7119 # Extract the first word of "tar", so it can be a program name with args.
7120 set dummy tar; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_path_TAR+set}" = set; then
7124   echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126   case $TAR in
7127   [\\/]* | ?:[\\/]*)
7128   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7129   ;;
7130   *)
7131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134   IFS=$as_save_IFS
7135   test -z "$as_dir" && as_dir=.
7136   for ac_exec_ext in '' $ac_executable_extensions; do
7137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7138     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140     break 2
7141   fi
7142 done
7143 done
7144 IFS=$as_save_IFS
7145
7146   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7147   ;;
7148 esac
7149 fi
7150 TAR=$ac_cv_path_TAR
7151 if test -n "$TAR"; then
7152   { echo "$as_me:$LINENO: result: $TAR" >&5
7153 echo "${ECHO_T}$TAR" >&6; }
7154 else
7155   { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7157 fi
7158
7159
7160 # Extract the first word of "pwd", so it can be a program name with args.
7161 set dummy pwd; ac_word=$2
7162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164 if test "${ac_cv_path_BINPWD+set}" = set; then
7165   echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167   case $BINPWD in
7168   [\\/]* | ?:[\\/]*)
7169   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7170   ;;
7171   *)
7172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177   for ac_exec_ext in '' $ac_executable_extensions; do
7178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7179     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181     break 2
7182   fi
7183 done
7184 done
7185 IFS=$as_save_IFS
7186
7187   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7188   ;;
7189 esac
7190 fi
7191 BINPWD=$ac_cv_path_BINPWD
7192 if test -n "$BINPWD"; then
7193   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7194 echo "${ECHO_T}$BINPWD" >&6; }
7195 else
7196   { echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6; }
7198 fi
7199
7200
7201
7202 # Extract the first word of "Graphviz", so it can be a program name with args.
7203 set dummy Graphviz; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7207   echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209   case $GRAPHVIZ in
7210   [\\/]* | ?:[\\/]*)
7211   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7212   ;;
7213   *)
7214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219   for ac_exec_ext in '' $ac_executable_extensions; do
7220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226 done
7227 IFS=$as_save_IFS
7228
7229   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7230   ;;
7231 esac
7232 fi
7233 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7234 if test -n "$GRAPHVIZ"; then
7235   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7236 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7237 else
7238   { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7240 fi
7241
7242
7243 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7244
7245 cat >>confdefs.h <<\_ACEOF
7246 #define HAVE_GRAPHVIZ 1
7247 _ACEOF
7248
7249     if test "$llvm_cv_os_type" = "MingW" ; then
7250     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7251   fi
7252
7253 cat >>confdefs.h <<_ACEOF
7254 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7255 _ACEOF
7256
7257 fi
7258 # Extract the first word of "dot", so it can be a program name with args.
7259 set dummy dot; ac_word=$2
7260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7262 if test "${ac_cv_path_DOT+set}" = set; then
7263   echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265   case $DOT in
7266   [\\/]* | ?:[\\/]*)
7267   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7268   ;;
7269   *)
7270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273   IFS=$as_save_IFS
7274   test -z "$as_dir" && as_dir=.
7275   for ac_exec_ext in '' $ac_executable_extensions; do
7276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7277     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279     break 2
7280   fi
7281 done
7282 done
7283 IFS=$as_save_IFS
7284
7285   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7286   ;;
7287 esac
7288 fi
7289 DOT=$ac_cv_path_DOT
7290 if test -n "$DOT"; then
7291   { echo "$as_me:$LINENO: result: $DOT" >&5
7292 echo "${ECHO_T}$DOT" >&6; }
7293 else
7294   { echo "$as_me:$LINENO: result: no" >&5
7295 echo "${ECHO_T}no" >&6; }
7296 fi
7297
7298
7299 if test "$DOT" != "echo dot" ; then
7300
7301 cat >>confdefs.h <<\_ACEOF
7302 #define HAVE_DOT 1
7303 _ACEOF
7304
7305     if test "$llvm_cv_os_type" = "MingW" ; then
7306     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7307   fi
7308
7309 cat >>confdefs.h <<_ACEOF
7310 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7311 _ACEOF
7312
7313 fi
7314 for ac_prog in gv gsview32
7315 do
7316   # Extract the first word of "$ac_prog", so it can be a program name with args.
7317 set dummy $ac_prog; ac_word=$2
7318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7320 if test "${ac_cv_path_GV+set}" = set; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323   case $GV in
7324   [\\/]* | ?:[\\/]*)
7325   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7326   ;;
7327   *)
7328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7330 do
7331   IFS=$as_save_IFS
7332   test -z "$as_dir" && as_dir=.
7333   for ac_exec_ext in '' $ac_executable_extensions; do
7334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7335     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7337     break 2
7338   fi
7339 done
7340 done
7341 IFS=$as_save_IFS
7342
7343   ;;
7344 esac
7345 fi
7346 GV=$ac_cv_path_GV
7347 if test -n "$GV"; then
7348   { echo "$as_me:$LINENO: result: $GV" >&5
7349 echo "${ECHO_T}$GV" >&6; }
7350 else
7351   { echo "$as_me:$LINENO: result: no" >&5
7352 echo "${ECHO_T}no" >&6; }
7353 fi
7354
7355
7356   test -n "$GV" && break
7357 done
7358 test -n "$GV" || GV="echo gv"
7359
7360 if test "$GV" != "echo gv" ; then
7361
7362 cat >>confdefs.h <<\_ACEOF
7363 #define HAVE_GV 1
7364 _ACEOF
7365
7366     if test "$llvm_cv_os_type" = "MingW" ; then
7367     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7368   fi
7369
7370 cat >>confdefs.h <<_ACEOF
7371 #define LLVM_PATH_GV "$GV${EXEEXT}"
7372 _ACEOF
7373
7374 fi
7375 # Extract the first word of "dotty", so it can be a program name with args.
7376 set dummy dotty; ac_word=$2
7377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7379 if test "${ac_cv_path_DOTTY+set}" = set; then
7380   echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382   case $DOTTY in
7383   [\\/]* | ?:[\\/]*)
7384   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7385   ;;
7386   *)
7387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390   IFS=$as_save_IFS
7391   test -z "$as_dir" && as_dir=.
7392   for ac_exec_ext in '' $ac_executable_extensions; do
7393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7394     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396     break 2
7397   fi
7398 done
7399 done
7400 IFS=$as_save_IFS
7401
7402   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7403   ;;
7404 esac
7405 fi
7406 DOTTY=$ac_cv_path_DOTTY
7407 if test -n "$DOTTY"; then
7408   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7409 echo "${ECHO_T}$DOTTY" >&6; }
7410 else
7411   { echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6; }
7413 fi
7414
7415
7416 if test "$DOTTY" != "echo dotty" ; then
7417
7418 cat >>confdefs.h <<\_ACEOF
7419 #define HAVE_DOTTY 1
7420 _ACEOF
7421
7422     if test "$llvm_cv_os_type" = "MingW" ; then
7423     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7424   fi
7425
7426 cat >>confdefs.h <<_ACEOF
7427 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7428 _ACEOF
7429
7430 fi
7431
7432
7433 # Extract the first word of "perl", so it can be a program name with args.
7434 set dummy perl; ac_word=$2
7435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437 if test "${ac_cv_path_PERL+set}" = set; then
7438   echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440   case $PERL in
7441   [\\/]* | ?:[\\/]*)
7442   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7443   ;;
7444   *)
7445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7447 do
7448   IFS=$as_save_IFS
7449   test -z "$as_dir" && as_dir=.
7450   for ac_exec_ext in '' $ac_executable_extensions; do
7451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7452     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454     break 2
7455   fi
7456 done
7457 done
7458 IFS=$as_save_IFS
7459
7460   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7461   ;;
7462 esac
7463 fi
7464 PERL=$ac_cv_path_PERL
7465 if test -n "$PERL"; then
7466   { echo "$as_me:$LINENO: result: $PERL" >&5
7467 echo "${ECHO_T}$PERL" >&6; }
7468 else
7469   { echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6; }
7471 fi
7472
7473
7474 if test "$PERL" != "none"; then
7475   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7476 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7477   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7478     { echo "$as_me:$LINENO: result: yes" >&5
7479 echo "${ECHO_T}yes" >&6; }
7480   else
7481     PERL=none
7482     { echo "$as_me:$LINENO: result: not found" >&5
7483 echo "${ECHO_T}not found" >&6; }
7484   fi
7485 fi
7486
7487
7488 if test x"$PERL" = xnone; then
7489    HAVE_PERL=0
7490
7491    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7492 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7493    { (exit 1); exit 1; }; }
7494 else
7495    HAVE_PERL=1
7496
7497 fi
7498
7499 # Find a good install program.  We prefer a C program (faster),
7500 # so one script is as good as another.  But avoid the broken or
7501 # incompatible versions:
7502 # SysV /etc/install, /usr/sbin/install
7503 # SunOS /usr/etc/install
7504 # IRIX /sbin/install
7505 # AIX /bin/install
7506 # AmigaOS /C/install, which installs bootblocks on floppy discs
7507 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7508 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7509 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7510 # OS/2's system install, which has a completely different semantic
7511 # ./install, which can be erroneously created by make from ./install.sh.
7512 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7513 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7514 if test -z "$INSTALL"; then
7515 if test "${ac_cv_path_install+set}" = set; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521   IFS=$as_save_IFS
7522   test -z "$as_dir" && as_dir=.
7523   # Account for people who put trailing slashes in PATH elements.
7524 case $as_dir/ in
7525   ./ | .// | /cC/* | \
7526   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7527   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7528   /usr/ucb/* ) ;;
7529   *)
7530     # OSF1 and SCO ODT 3.0 have their own names for install.
7531     # Don't use installbsd from OSF since it installs stuff as root
7532     # by default.
7533     for ac_prog in ginstall scoinst install; do
7534       for ac_exec_ext in '' $ac_executable_extensions; do
7535         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7536           if test $ac_prog = install &&
7537             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7538             # AIX install.  It has an incompatible calling convention.
7539             :
7540           elif test $ac_prog = install &&
7541             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7542             # program-specific install script used by HP pwplus--don't use.
7543             :
7544           else
7545             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7546             break 3
7547           fi
7548         fi
7549       done
7550     done
7551     ;;
7552 esac
7553 done
7554 IFS=$as_save_IFS
7555
7556
7557 fi
7558   if test "${ac_cv_path_install+set}" = set; then
7559     INSTALL=$ac_cv_path_install
7560   else
7561     # As a last resort, use the slow shell script.  Don't cache a
7562     # value for INSTALL within a source directory, because that will
7563     # break other packages using the cache if that directory is
7564     # removed, or if the value is a relative name.
7565     INSTALL=$ac_install_sh
7566   fi
7567 fi
7568 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7569 echo "${ECHO_T}$INSTALL" >&6; }
7570
7571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7572 # It thinks the first close brace ends the variable substitution.
7573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7574
7575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7576
7577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7578
7579
7580 # Extract the first word of "bzip2", so it can be a program name with args.
7581 set dummy bzip2; ac_word=$2
7582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584 if test "${ac_cv_path_BZIP2+set}" = set; then
7585   echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587   case $BZIP2 in
7588   [\\/]* | ?:[\\/]*)
7589   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7590   ;;
7591   *)
7592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7594 do
7595   IFS=$as_save_IFS
7596   test -z "$as_dir" && as_dir=.
7597   for ac_exec_ext in '' $ac_executable_extensions; do
7598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7599     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601     break 2
7602   fi
7603 done
7604 done
7605 IFS=$as_save_IFS
7606
7607   ;;
7608 esac
7609 fi
7610 BZIP2=$ac_cv_path_BZIP2
7611 if test -n "$BZIP2"; then
7612   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7613 echo "${ECHO_T}$BZIP2" >&6; }
7614 else
7615   { echo "$as_me:$LINENO: result: no" >&5
7616 echo "${ECHO_T}no" >&6; }
7617 fi
7618
7619
7620 # Extract the first word of "doxygen", so it can be a program name with args.
7621 set dummy doxygen; ac_word=$2
7622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7624 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7625   echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627   case $DOXYGEN in
7628   [\\/]* | ?:[\\/]*)
7629   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7630   ;;
7631   *)
7632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 for as_dir in $PATH
7634 do
7635   IFS=$as_save_IFS
7636   test -z "$as_dir" && as_dir=.
7637   for ac_exec_ext in '' $ac_executable_extensions; do
7638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7639     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641     break 2
7642   fi
7643 done
7644 done
7645 IFS=$as_save_IFS
7646
7647   ;;
7648 esac
7649 fi
7650 DOXYGEN=$ac_cv_path_DOXYGEN
7651 if test -n "$DOXYGEN"; then
7652   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7653 echo "${ECHO_T}$DOXYGEN" >&6; }
7654 else
7655   { echo "$as_me:$LINENO: result: no" >&5
7656 echo "${ECHO_T}no" >&6; }
7657 fi
7658
7659
7660 # Extract the first word of "groff", so it can be a program name with args.
7661 set dummy groff; ac_word=$2
7662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7664 if test "${ac_cv_path_GROFF+set}" = set; then
7665   echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667   case $GROFF in
7668   [\\/]* | ?:[\\/]*)
7669   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7670   ;;
7671   *)
7672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7674 do
7675   IFS=$as_save_IFS
7676   test -z "$as_dir" && as_dir=.
7677   for ac_exec_ext in '' $ac_executable_extensions; do
7678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7679     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7681     break 2
7682   fi
7683 done
7684 done
7685 IFS=$as_save_IFS
7686
7687   ;;
7688 esac
7689 fi
7690 GROFF=$ac_cv_path_GROFF
7691 if test -n "$GROFF"; then
7692   { echo "$as_me:$LINENO: result: $GROFF" >&5
7693 echo "${ECHO_T}$GROFF" >&6; }
7694 else
7695   { echo "$as_me:$LINENO: result: no" >&5
7696 echo "${ECHO_T}no" >&6; }
7697 fi
7698
7699
7700 # Extract the first word of "gzip", so it can be a program name with args.
7701 set dummy gzip; ac_word=$2
7702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7704 if test "${ac_cv_path_GZIP+set}" = set; then
7705   echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707   case $GZIP in
7708   [\\/]* | ?:[\\/]*)
7709   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7710   ;;
7711   *)
7712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 for as_dir in $PATH
7714 do
7715   IFS=$as_save_IFS
7716   test -z "$as_dir" && as_dir=.
7717   for ac_exec_ext in '' $ac_executable_extensions; do
7718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7719     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7721     break 2
7722   fi
7723 done
7724 done
7725 IFS=$as_save_IFS
7726
7727   ;;
7728 esac
7729 fi
7730 GZIP=$ac_cv_path_GZIP
7731 if test -n "$GZIP"; then
7732   { echo "$as_me:$LINENO: result: $GZIP" >&5
7733 echo "${ECHO_T}$GZIP" >&6; }
7734 else
7735   { echo "$as_me:$LINENO: result: no" >&5
7736 echo "${ECHO_T}no" >&6; }
7737 fi
7738
7739
7740 # Extract the first word of "pod2html", so it can be a program name with args.
7741 set dummy pod2html; ac_word=$2
7742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7744 if test "${ac_cv_path_POD2HTML+set}" = set; then
7745   echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747   case $POD2HTML in
7748   [\\/]* | ?:[\\/]*)
7749   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7750   ;;
7751   *)
7752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 for as_dir in $PATH
7754 do
7755   IFS=$as_save_IFS
7756   test -z "$as_dir" && as_dir=.
7757   for ac_exec_ext in '' $ac_executable_extensions; do
7758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7759     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7761     break 2
7762   fi
7763 done
7764 done
7765 IFS=$as_save_IFS
7766
7767   ;;
7768 esac
7769 fi
7770 POD2HTML=$ac_cv_path_POD2HTML
7771 if test -n "$POD2HTML"; then
7772   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7773 echo "${ECHO_T}$POD2HTML" >&6; }
7774 else
7775   { echo "$as_me:$LINENO: result: no" >&5
7776 echo "${ECHO_T}no" >&6; }
7777 fi
7778
7779
7780 # Extract the first word of "pod2man", so it can be a program name with args.
7781 set dummy pod2man; ac_word=$2
7782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7784 if test "${ac_cv_path_POD2MAN+set}" = set; then
7785   echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787   case $POD2MAN in
7788   [\\/]* | ?:[\\/]*)
7789   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7790   ;;
7791   *)
7792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 for as_dir in $PATH
7794 do
7795   IFS=$as_save_IFS
7796   test -z "$as_dir" && as_dir=.
7797   for ac_exec_ext in '' $ac_executable_extensions; do
7798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7799     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7801     break 2
7802   fi
7803 done
7804 done
7805 IFS=$as_save_IFS
7806
7807   ;;
7808 esac
7809 fi
7810 POD2MAN=$ac_cv_path_POD2MAN
7811 if test -n "$POD2MAN"; then
7812   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7813 echo "${ECHO_T}$POD2MAN" >&6; }
7814 else
7815   { echo "$as_me:$LINENO: result: no" >&5
7816 echo "${ECHO_T}no" >&6; }
7817 fi
7818
7819
7820 # Extract the first word of "runtest", so it can be a program name with args.
7821 set dummy runtest; ac_word=$2
7822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7824 if test "${ac_cv_path_RUNTEST+set}" = set; then
7825   echo $ECHO_N "(cached) $ECHO_C" >&6
7826 else
7827   case $RUNTEST in
7828   [\\/]* | ?:[\\/]*)
7829   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7830   ;;
7831   *)
7832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 for as_dir in $PATH
7834 do
7835   IFS=$as_save_IFS
7836   test -z "$as_dir" && as_dir=.
7837   for ac_exec_ext in '' $ac_executable_extensions; do
7838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7839     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7841     break 2
7842   fi
7843 done
7844 done
7845 IFS=$as_save_IFS
7846
7847   ;;
7848 esac
7849 fi
7850 RUNTEST=$ac_cv_path_RUNTEST
7851 if test -n "$RUNTEST"; then
7852   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7853 echo "${ECHO_T}$RUNTEST" >&6; }
7854 else
7855   { echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6; }
7857 fi
7858
7859
7860
7861 no_itcl=true
7862 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7863 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7864
7865 # Check whether --with-tclinclude was given.
7866 if test "${with_tclinclude+set}" = set; then
7867   withval=$with_tclinclude; with_tclinclude=${withval}
7868 else
7869   with_tclinclude=''
7870 fi
7871
7872 if test "${ac_cv_path_tclsh+set}" = set; then
7873   echo $ECHO_N "(cached) $ECHO_C" >&6
7874 else
7875
7876 if test x"${with_tclinclude}" != x ; then
7877   if test -f ${with_tclinclude}/tclsh ; then
7878     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7879   elif test -f ${with_tclinclude}/src/tclsh ; then
7880     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7881   else
7882     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7883 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7884    { (exit 1); exit 1; }; }
7885   fi
7886 fi
7887
7888 if test x"${ac_cv_path_tclsh}" = x ; then
7889   { echo "$as_me:$LINENO: result: none" >&5
7890 echo "${ECHO_T}none" >&6; }
7891   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
7892 do
7893   # Extract the first word of "$ac_prog", so it can be a program name with args.
7894 set dummy $ac_prog; 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_TCLSH+set}" = set; then
7898   echo $ECHO_N "(cached) $ECHO_C" >&6
7899 else
7900   case $TCLSH in
7901   [\\/]* | ?:[\\/]*)
7902   ac_cv_path_TCLSH="$TCLSH" # 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_TCLSH="$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 TCLSH=$ac_cv_path_TCLSH
7924 if test -n "$TCLSH"; then
7925   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7926 echo "${ECHO_T}$TCLSH" >&6; }
7927 else
7928   { echo "$as_me:$LINENO: result: no" >&5
7929 echo "${ECHO_T}no" >&6; }
7930 fi
7931
7932
7933   test -n "$TCLSH" && break
7934 done
7935
7936   if test x"${TCLSH}" = x ; then
7937     ac_cv_path_tclsh='';
7938   else
7939     ac_cv_path_tclsh="${TCLSH}";
7940   fi
7941 else
7942   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7943 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7944   TCLSH="${ac_cv_path_tclsh}"
7945
7946 fi
7947
7948 fi
7949
7950 # Extract the first word of "zip", so it can be a program name with args.
7951 set dummy zip; ac_word=$2
7952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7954 if test "${ac_cv_path_ZIP+set}" = set; then
7955   echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957   case $ZIP in
7958   [\\/]* | ?:[\\/]*)
7959   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7960   ;;
7961   *)
7962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965   IFS=$as_save_IFS
7966   test -z "$as_dir" && as_dir=.
7967   for ac_exec_ext in '' $ac_executable_extensions; do
7968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7969     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971     break 2
7972   fi
7973 done
7974 done
7975 IFS=$as_save_IFS
7976
7977   ;;
7978 esac
7979 fi
7980 ZIP=$ac_cv_path_ZIP
7981 if test -n "$ZIP"; then
7982   { echo "$as_me:$LINENO: result: $ZIP" >&5
7983 echo "${ECHO_T}$ZIP" >&6; }
7984 else
7985   { echo "$as_me:$LINENO: result: no" >&5
7986 echo "${ECHO_T}no" >&6; }
7987 fi
7988
7989
7990 for ac_prog in ocamlc.opt ocamlc
7991 do
7992   # Extract the first word of "$ac_prog", so it can be a program name with args.
7993 set dummy $ac_prog; ac_word=$2
7994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7996 if test "${ac_cv_path_OCAMLC+set}" = set; then
7997   echo $ECHO_N "(cached) $ECHO_C" >&6
7998 else
7999   case $OCAMLC in
8000   [\\/]* | ?:[\\/]*)
8001   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8002   ;;
8003   *)
8004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 for as_dir in $PATH
8006 do
8007   IFS=$as_save_IFS
8008   test -z "$as_dir" && as_dir=.
8009   for ac_exec_ext in '' $ac_executable_extensions; do
8010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8011     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8013     break 2
8014   fi
8015 done
8016 done
8017 IFS=$as_save_IFS
8018
8019   ;;
8020 esac
8021 fi
8022 OCAMLC=$ac_cv_path_OCAMLC
8023 if test -n "$OCAMLC"; then
8024   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8025 echo "${ECHO_T}$OCAMLC" >&6; }
8026 else
8027   { echo "$as_me:$LINENO: result: no" >&5
8028 echo "${ECHO_T}no" >&6; }
8029 fi
8030
8031
8032   test -n "$OCAMLC" && break
8033 done
8034
8035 for ac_prog in ocamlopt.opt ocamlopt
8036 do
8037   # Extract the first word of "$ac_prog", so it can be a program name with args.
8038 set dummy $ac_prog; ac_word=$2
8039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8041 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8042   echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044   case $OCAMLOPT in
8045   [\\/]* | ?:[\\/]*)
8046   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8047   ;;
8048   *)
8049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 for as_dir in $PATH
8051 do
8052   IFS=$as_save_IFS
8053   test -z "$as_dir" && as_dir=.
8054   for ac_exec_ext in '' $ac_executable_extensions; do
8055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8056     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8058     break 2
8059   fi
8060 done
8061 done
8062 IFS=$as_save_IFS
8063
8064   ;;
8065 esac
8066 fi
8067 OCAMLOPT=$ac_cv_path_OCAMLOPT
8068 if test -n "$OCAMLOPT"; then
8069   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8070 echo "${ECHO_T}$OCAMLOPT" >&6; }
8071 else
8072   { echo "$as_me:$LINENO: result: no" >&5
8073 echo "${ECHO_T}no" >&6; }
8074 fi
8075
8076
8077   test -n "$OCAMLOPT" && break
8078 done
8079
8080 for ac_prog in ocamldep.opt ocamldep
8081 do
8082   # Extract the first word of "$ac_prog", so it can be a program name with args.
8083 set dummy $ac_prog; ac_word=$2
8084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8086 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8087   echo $ECHO_N "(cached) $ECHO_C" >&6
8088 else
8089   case $OCAMLDEP in
8090   [\\/]* | ?:[\\/]*)
8091   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8092   ;;
8093   *)
8094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH
8096 do
8097   IFS=$as_save_IFS
8098   test -z "$as_dir" && as_dir=.
8099   for ac_exec_ext in '' $ac_executable_extensions; do
8100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8101     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8103     break 2
8104   fi
8105 done
8106 done
8107 IFS=$as_save_IFS
8108
8109   ;;
8110 esac
8111 fi
8112 OCAMLDEP=$ac_cv_path_OCAMLDEP
8113 if test -n "$OCAMLDEP"; then
8114   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8115 echo "${ECHO_T}$OCAMLDEP" >&6; }
8116 else
8117   { echo "$as_me:$LINENO: result: no" >&5
8118 echo "${ECHO_T}no" >&6; }
8119 fi
8120
8121
8122   test -n "$OCAMLDEP" && break
8123 done
8124
8125
8126 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8127 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8128 if test "${llvm_cv_link_use_r+set}" = set; then
8129   echo $ECHO_N "(cached) $ECHO_C" >&6
8130 else
8131    ac_ext=c
8132 ac_cpp='$CPP $CPPFLAGS'
8133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8136
8137   oldcflags="$CFLAGS"
8138   CFLAGS="$CFLAGS -Wl,-R."
8139   cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h.  */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h.  */
8145
8146 int
8147 main ()
8148 {
8149 int main() { return 0; }
8150   ;
8151   return 0;
8152 }
8153 _ACEOF
8154 rm -f conftest.$ac_objext conftest$ac_exeext
8155 if { (ac_try="$ac_link"
8156 case "(($ac_try" in
8157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158   *) ac_try_echo=$ac_try;;
8159 esac
8160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161   (eval "$ac_link") 2>conftest.er1
8162   ac_status=$?
8163   grep -v '^ *+' conftest.er1 >conftest.err
8164   rm -f conftest.er1
8165   cat conftest.err >&5
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); } &&
8168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8169   { (case "(($ac_try" in
8170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171   *) ac_try_echo=$ac_try;;
8172 esac
8173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174   (eval "$ac_try") 2>&5
8175   ac_status=$?
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); }; } &&
8178          { ac_try='test -s conftest$ac_exeext'
8179   { (case "(($ac_try" in
8180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181   *) ac_try_echo=$ac_try;;
8182 esac
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184   (eval "$ac_try") 2>&5
8185   ac_status=$?
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); }; }; then
8188   llvm_cv_link_use_r=yes
8189 else
8190   echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8192
8193         llvm_cv_link_use_r=no
8194 fi
8195
8196 rm -f core conftest.err conftest.$ac_objext \
8197       conftest$ac_exeext conftest.$ac_ext
8198   CFLAGS="$oldcflags"
8199   ac_ext=c
8200 ac_cpp='$CPP $CPPFLAGS'
8201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8204
8205
8206 fi
8207 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8208 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8209 if test "$llvm_cv_link_use_r" = yes ; then
8210
8211 cat >>confdefs.h <<\_ACEOF
8212 #define HAVE_LINK_R 1
8213 _ACEOF
8214
8215   fi
8216
8217
8218
8219
8220 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8221 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8222 if test "${ac_cv_c_const+set}" = set; then
8223   echo $ECHO_N "(cached) $ECHO_C" >&6
8224 else
8225   cat >conftest.$ac_ext <<_ACEOF
8226 /* confdefs.h.  */
8227 _ACEOF
8228 cat confdefs.h >>conftest.$ac_ext
8229 cat >>conftest.$ac_ext <<_ACEOF
8230 /* end confdefs.h.  */
8231
8232 int
8233 main ()
8234 {
8235 /* FIXME: Include the comments suggested by Paul. */
8236 #ifndef __cplusplus
8237   /* Ultrix mips cc rejects this.  */
8238   typedef int charset[2];
8239   const charset x;
8240   /* SunOS 4.1.1 cc rejects this.  */
8241   char const *const *ccp;
8242   char **p;
8243   /* NEC SVR4.0.2 mips cc rejects this.  */
8244   struct point {int x, y;};
8245   static struct point const zero = {0,0};
8246   /* AIX XL C 1.02.0.0 rejects this.
8247      It does not let you subtract one const X* pointer from another in
8248      an arm of an if-expression whose if-part is not a constant
8249      expression */
8250   const char *g = "string";
8251   ccp = &g + (g ? g-g : 0);
8252   /* HPUX 7.0 cc rejects these. */
8253   ++ccp;
8254   p = (char**) ccp;
8255   ccp = (char const *const *) p;
8256   { /* SCO 3.2v4 cc rejects this.  */
8257     char *t;
8258     char const *s = 0 ? (char *) 0 : (char const *) 0;
8259
8260     *t++ = 0;
8261     if (s) return 0;
8262   }
8263   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8264     int x[] = {25, 17};
8265     const int *foo = &x[0];
8266     ++foo;
8267   }
8268   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8269     typedef const int *iptr;
8270     iptr p = 0;
8271     ++p;
8272   }
8273   { /* AIX XL C 1.02.0.0 rejects this saying
8274        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8275     struct s { int j; const int *ap[3]; };
8276     struct s *b; b->j = 5;
8277   }
8278   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8279     const int foo = 10;
8280     if (!foo) return 0;
8281   }
8282   return !x[0] && !zero.x;
8283 #endif
8284
8285   ;
8286   return 0;
8287 }
8288 _ACEOF
8289 rm -f conftest.$ac_objext
8290 if { (ac_try="$ac_compile"
8291 case "(($ac_try" in
8292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293   *) ac_try_echo=$ac_try;;
8294 esac
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296   (eval "$ac_compile") 2>conftest.er1
8297   ac_status=$?
8298   grep -v '^ *+' conftest.er1 >conftest.err
8299   rm -f conftest.er1
8300   cat conftest.err >&5
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } &&
8303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8304   { (case "(($ac_try" in
8305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306   *) ac_try_echo=$ac_try;;
8307 esac
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309   (eval "$ac_try") 2>&5
8310   ac_status=$?
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); }; } &&
8313          { ac_try='test -s conftest.$ac_objext'
8314   { (case "(($ac_try" in
8315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316   *) ac_try_echo=$ac_try;;
8317 esac
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319   (eval "$ac_try") 2>&5
8320   ac_status=$?
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); }; }; then
8323   ac_cv_c_const=yes
8324 else
8325   echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8327
8328         ac_cv_c_const=no
8329 fi
8330
8331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332 fi
8333 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8334 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8335 if test $ac_cv_c_const = no; then
8336
8337 cat >>confdefs.h <<\_ACEOF
8338 #define const
8339 _ACEOF
8340
8341 fi
8342
8343
8344
8345
8346
8347
8348 ac_header_dirent=no
8349 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8350   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8351 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8352 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8354   echo $ECHO_N "(cached) $ECHO_C" >&6
8355 else
8356   cat >conftest.$ac_ext <<_ACEOF
8357 /* confdefs.h.  */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h.  */
8362 #include <sys/types.h>
8363 #include <$ac_hdr>
8364
8365 int
8366 main ()
8367 {
8368 if ((DIR *) 0)
8369 return 0;
8370   ;
8371   return 0;
8372 }
8373 _ACEOF
8374 rm -f conftest.$ac_objext
8375 if { (ac_try="$ac_compile"
8376 case "(($ac_try" in
8377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378   *) ac_try_echo=$ac_try;;
8379 esac
8380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381   (eval "$ac_compile") 2>conftest.er1
8382   ac_status=$?
8383   grep -v '^ *+' conftest.er1 >conftest.err
8384   rm -f conftest.er1
8385   cat conftest.err >&5
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); } &&
8388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8389   { (case "(($ac_try" in
8390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391   *) ac_try_echo=$ac_try;;
8392 esac
8393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394   (eval "$ac_try") 2>&5
8395   ac_status=$?
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); }; } &&
8398          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
8405   ac_status=$?
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); }; }; then
8408   eval "$as_ac_Header=yes"
8409 else
8410   echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8412
8413         eval "$as_ac_Header=no"
8414 fi
8415
8416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8417 fi
8418 ac_res=`eval echo '${'$as_ac_Header'}'`
8419                { echo "$as_me:$LINENO: result: $ac_res" >&5
8420 echo "${ECHO_T}$ac_res" >&6; }
8421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8422   cat >>confdefs.h <<_ACEOF
8423 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8424 _ACEOF
8425
8426 ac_header_dirent=$ac_hdr; break
8427 fi
8428
8429 done
8430 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8431 if test $ac_header_dirent = dirent.h; then
8432   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8433 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8434 if test "${ac_cv_search_opendir+set}" = set; then
8435   echo $ECHO_N "(cached) $ECHO_C" >&6
8436 else
8437   ac_func_search_save_LIBS=$LIBS
8438 cat >conftest.$ac_ext <<_ACEOF
8439 /* confdefs.h.  */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h.  */
8444
8445 /* Override any GCC internal prototype to avoid an error.
8446    Use char because int might match the return type of a GCC
8447    builtin and then its argument prototype would still apply.  */
8448 #ifdef __cplusplus
8449 extern "C"
8450 #endif
8451 char opendir ();
8452 int
8453 main ()
8454 {
8455 return opendir ();
8456   ;
8457   return 0;
8458 }
8459 _ACEOF
8460 for ac_lib in '' dir; do
8461   if test -z "$ac_lib"; then
8462     ac_res="none required"
8463   else
8464     ac_res=-l$ac_lib
8465     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8466   fi
8467   rm -f conftest.$ac_objext conftest$ac_exeext
8468 if { (ac_try="$ac_link"
8469 case "(($ac_try" in
8470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471   *) ac_try_echo=$ac_try;;
8472 esac
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474   (eval "$ac_link") 2>conftest.er1
8475   ac_status=$?
8476   grep -v '^ *+' conftest.er1 >conftest.err
8477   rm -f conftest.er1
8478   cat conftest.err >&5
8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480   (exit $ac_status); } &&
8481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8482   { (case "(($ac_try" in
8483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484   *) ac_try_echo=$ac_try;;
8485 esac
8486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487   (eval "$ac_try") 2>&5
8488   ac_status=$?
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); }; } &&
8491          { ac_try='test -s conftest$ac_exeext'
8492   { (case "(($ac_try" in
8493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494   *) ac_try_echo=$ac_try;;
8495 esac
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497   (eval "$ac_try") 2>&5
8498   ac_status=$?
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); }; }; then
8501   ac_cv_search_opendir=$ac_res
8502 else
8503   echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8505
8506
8507 fi
8508
8509 rm -f core conftest.err conftest.$ac_objext \
8510       conftest$ac_exeext
8511   if test "${ac_cv_search_opendir+set}" = set; then
8512   break
8513 fi
8514 done
8515 if test "${ac_cv_search_opendir+set}" = set; then
8516   :
8517 else
8518   ac_cv_search_opendir=no
8519 fi
8520 rm conftest.$ac_ext
8521 LIBS=$ac_func_search_save_LIBS
8522 fi
8523 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8524 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8525 ac_res=$ac_cv_search_opendir
8526 if test "$ac_res" != no; then
8527   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8528
8529 fi
8530
8531 else
8532   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8533 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8534 if test "${ac_cv_search_opendir+set}" = set; then
8535   echo $ECHO_N "(cached) $ECHO_C" >&6
8536 else
8537   ac_func_search_save_LIBS=$LIBS
8538 cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h.  */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h.  */
8544
8545 /* Override any GCC internal prototype to avoid an error.
8546    Use char because int might match the return type of a GCC
8547    builtin and then its argument prototype would still apply.  */
8548 #ifdef __cplusplus
8549 extern "C"
8550 #endif
8551 char opendir ();
8552 int
8553 main ()
8554 {
8555 return opendir ();
8556   ;
8557   return 0;
8558 }
8559 _ACEOF
8560 for ac_lib in '' x; do
8561   if test -z "$ac_lib"; then
8562     ac_res="none required"
8563   else
8564     ac_res=-l$ac_lib
8565     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8566   fi
8567   rm -f conftest.$ac_objext conftest$ac_exeext
8568 if { (ac_try="$ac_link"
8569 case "(($ac_try" in
8570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571   *) ac_try_echo=$ac_try;;
8572 esac
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574   (eval "$ac_link") 2>conftest.er1
8575   ac_status=$?
8576   grep -v '^ *+' conftest.er1 >conftest.err
8577   rm -f conftest.er1
8578   cat conftest.err >&5
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   (exit $ac_status); } &&
8581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8582   { (case "(($ac_try" in
8583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584   *) ac_try_echo=$ac_try;;
8585 esac
8586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587   (eval "$ac_try") 2>&5
8588   ac_status=$?
8589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590   (exit $ac_status); }; } &&
8591          { ac_try='test -s conftest$ac_exeext'
8592   { (case "(($ac_try" in
8593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594   *) ac_try_echo=$ac_try;;
8595 esac
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597   (eval "$ac_try") 2>&5
8598   ac_status=$?
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); }; }; then
8601   ac_cv_search_opendir=$ac_res
8602 else
8603   echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8605
8606
8607 fi
8608
8609 rm -f core conftest.err conftest.$ac_objext \
8610       conftest$ac_exeext
8611   if test "${ac_cv_search_opendir+set}" = set; then
8612   break
8613 fi
8614 done
8615 if test "${ac_cv_search_opendir+set}" = set; then
8616   :
8617 else
8618   ac_cv_search_opendir=no
8619 fi
8620 rm conftest.$ac_ext
8621 LIBS=$ac_func_search_save_LIBS
8622 fi
8623 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8624 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8625 ac_res=$ac_cv_search_opendir
8626 if test "$ac_res" != no; then
8627   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8628
8629 fi
8630
8631 fi
8632
8633
8634 for ac_header in dlfcn.h
8635 do
8636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8638   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8641   echo $ECHO_N "(cached) $ECHO_C" >&6
8642 fi
8643 ac_res=`eval echo '${'$as_ac_Header'}'`
8644                { echo "$as_me:$LINENO: result: $ac_res" >&5
8645 echo "${ECHO_T}$ac_res" >&6; }
8646 else
8647   # Is the header compilable?
8648 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8650 cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h.  */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h.  */
8656 $ac_includes_default
8657 #include <$ac_header>
8658 _ACEOF
8659 rm -f conftest.$ac_objext
8660 if { (ac_try="$ac_compile"
8661 case "(($ac_try" in
8662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8663   *) ac_try_echo=$ac_try;;
8664 esac
8665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8666   (eval "$ac_compile") 2>conftest.er1
8667   ac_status=$?
8668   grep -v '^ *+' conftest.er1 >conftest.err
8669   rm -f conftest.er1
8670   cat conftest.err >&5
8671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672   (exit $ac_status); } &&
8673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8674   { (case "(($ac_try" in
8675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676   *) ac_try_echo=$ac_try;;
8677 esac
8678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679   (eval "$ac_try") 2>&5
8680   ac_status=$?
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); }; } &&
8683          { ac_try='test -s conftest.$ac_objext'
8684   { (case "(($ac_try" in
8685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686   *) ac_try_echo=$ac_try;;
8687 esac
8688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8689   (eval "$ac_try") 2>&5
8690   ac_status=$?
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); }; }; then
8693   ac_header_compiler=yes
8694 else
8695   echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8697
8698         ac_header_compiler=no
8699 fi
8700
8701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8703 echo "${ECHO_T}$ac_header_compiler" >&6; }
8704
8705 # Is the header present?
8706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8708 cat >conftest.$ac_ext <<_ACEOF
8709 /* confdefs.h.  */
8710 _ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h.  */
8714 #include <$ac_header>
8715 _ACEOF
8716 if { (ac_try="$ac_cpp conftest.$ac_ext"
8717 case "(($ac_try" in
8718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719   *) ac_try_echo=$ac_try;;
8720 esac
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8723   ac_status=$?
8724   grep -v '^ *+' conftest.er1 >conftest.err
8725   rm -f conftest.er1
8726   cat conftest.err >&5
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); } >/dev/null; then
8729   if test -s conftest.err; then
8730     ac_cpp_err=$ac_c_preproc_warn_flag
8731     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8732   else
8733     ac_cpp_err=
8734   fi
8735 else
8736   ac_cpp_err=yes
8737 fi
8738 if test -z "$ac_cpp_err"; then
8739   ac_header_preproc=yes
8740 else
8741   echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8743
8744   ac_header_preproc=no
8745 fi
8746
8747 rm -f conftest.err conftest.$ac_ext
8748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8749 echo "${ECHO_T}$ac_header_preproc" >&6; }
8750
8751 # So?  What about this header?
8752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8753   yes:no: )
8754     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8756     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8758     ac_header_preproc=yes
8759     ;;
8760   no:yes:* )
8761     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8763     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8764 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8765     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8767     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8768 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8769     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8771     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8773     ( cat <<\_ASBOX
8774 ## ----------------------------------- ##
8775 ## Report this to llvmbugs@cs.uiuc.edu ##
8776 ## ----------------------------------- ##
8777 _ASBOX
8778      ) | sed "s/^/$as_me: WARNING:     /" >&2
8779     ;;
8780 esac
8781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8784   echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786   eval "$as_ac_Header=\$ac_header_preproc"
8787 fi
8788 ac_res=`eval echo '${'$as_ac_Header'}'`
8789                { echo "$as_me:$LINENO: result: $ac_res" >&5
8790 echo "${ECHO_T}$ac_res" >&6; }
8791
8792 fi
8793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8794   cat >>confdefs.h <<_ACEOF
8795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8796 _ACEOF
8797
8798 fi
8799
8800 done
8801
8802 # Check whether --enable-ltdl-install was given.
8803 if test "${enable_ltdl_install+set}" = set; then
8804   enableval=$enable_ltdl_install;
8805 fi
8806
8807
8808
8809
8810 if test x"${enable_ltdl_install-no}" != xno; then
8811   INSTALL_LTDL_TRUE=
8812   INSTALL_LTDL_FALSE='#'
8813 else
8814   INSTALL_LTDL_TRUE='#'
8815   INSTALL_LTDL_FALSE=
8816 fi
8817
8818
8819
8820 if test x"${enable_ltdl_convenience-no}" != xno; then
8821   CONVENIENCE_LTDL_TRUE=
8822   CONVENIENCE_LTDL_FALSE='#'
8823 else
8824   CONVENIENCE_LTDL_TRUE='#'
8825   CONVENIENCE_LTDL_FALSE=
8826 fi
8827
8828
8829 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8830 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8831 library_names_spec=
8832 libname_spec='lib$name'
8833 soname_spec=
8834 shrext_cmds=".so"
8835 postinstall_cmds=
8836 postuninstall_cmds=
8837 finish_cmds=
8838 finish_eval=
8839 shlibpath_var=
8840 shlibpath_overrides_runpath=unknown
8841 version_type=none
8842 dynamic_linker="$host_os ld.so"
8843 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8844 if test "$GCC" = yes; then
8845   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8846   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8847     # if the path contains ";" then we assume it to be the separator
8848     # otherwise default to the standard path separator (i.e. ":") - it is
8849     # assumed that no part of a normal pathname contains ";" but that should
8850     # okay in the real world where ";" in dirpaths is itself problematic.
8851     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8852   else
8853     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8854   fi
8855 else
8856   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8857 fi
8858 need_lib_prefix=unknown
8859 hardcode_into_libs=no
8860
8861 # when you set need_version to no, make sure it does not cause -set_version
8862 # flags to be left without arguments
8863 need_version=unknown
8864
8865 case $host_os in
8866 aix3*)
8867   version_type=linux
8868   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8869   shlibpath_var=LIBPATH
8870
8871   # AIX 3 has no versioning support, so we append a major version to the name.
8872   soname_spec='${libname}${release}${shared_ext}$major'
8873   ;;
8874
8875 aix4* | aix5*)
8876   version_type=linux
8877   need_lib_prefix=no
8878   need_version=no
8879   hardcode_into_libs=yes
8880   if test "$host_cpu" = ia64; then
8881     # AIX 5 supports IA64
8882     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8883     shlibpath_var=LD_LIBRARY_PATH
8884   else
8885     # With GCC up to 2.95.x, collect2 would create an import file
8886     # for dependence libraries.  The import file would start with
8887     # the line `#! .'.  This would cause the generated library to
8888     # depend on `.', always an invalid library.  This was fixed in
8889     # development snapshots of GCC prior to 3.0.
8890     case $host_os in
8891       aix4 | aix4.[01] | aix4.[01].*)
8892       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8893            echo ' yes '
8894            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8895         :
8896       else
8897         can_build_shared=no
8898       fi
8899       ;;
8900     esac
8901     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8902     # soname into executable. Probably we can add versioning support to
8903     # collect2, so additional links can be useful in future.
8904     if test "$aix_use_runtimelinking" = yes; then
8905       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8906       # instead of lib<name>.a to let people know that these are not
8907       # typical AIX shared libraries.
8908       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8909     else
8910       # We preserve .a as extension for shared libraries through AIX4.2
8911       # and later when we are not doing run time linking.
8912       library_names_spec='${libname}${release}.a $libname.a'
8913       soname_spec='${libname}${release}${shared_ext}$major'
8914     fi
8915     shlibpath_var=LIBPATH
8916   fi
8917   ;;
8918
8919 amigaos*)
8920   library_names_spec='$libname.ixlibrary $libname.a'
8921   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8922   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'
8923   ;;
8924
8925 beos*)
8926   library_names_spec='${libname}${shared_ext}'
8927   dynamic_linker="$host_os ld.so"
8928   shlibpath_var=LIBRARY_PATH
8929   ;;
8930
8931 bsdi[45]*)
8932   version_type=linux
8933   need_version=no
8934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8935   soname_spec='${libname}${release}${shared_ext}$major'
8936   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8937   shlibpath_var=LD_LIBRARY_PATH
8938   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8939   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8940   # the default ld.so.conf also contains /usr/contrib/lib and
8941   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8942   # libtool to hard-code these into programs
8943   ;;
8944
8945 cygwin* | mingw* | pw32*)
8946   version_type=windows
8947   shrext_cmds=".dll"
8948   need_version=no
8949   need_lib_prefix=no
8950
8951   case $GCC,$host_os in
8952   yes,cygwin* | yes,mingw* | yes,pw32*)
8953     library_names_spec='$libname.dll.a'
8954     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8955     postinstall_cmds='base_file=`basename \${file}`~
8956       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8957       dldir=$destdir/`dirname \$dlpath`~
8958       test -d \$dldir || mkdir -p \$dldir~
8959       $install_prog $dir/$dlname \$dldir/$dlname~
8960       chmod a+x \$dldir/$dlname'
8961     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8962       dlpath=$dir/\$dldll~
8963        $rm \$dlpath'
8964     shlibpath_overrides_runpath=yes
8965
8966     case $host_os in
8967     cygwin*)
8968       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8969       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8970       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8971       ;;
8972     mingw*)
8973       # MinGW DLLs use traditional 'lib' prefix
8974       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8975       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8976       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8977         # It is most probably a Windows format PATH printed by
8978         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8979         # path with ; separators, and with drive letters. We can handle the
8980         # drive letters (cygwin fileutils understands them), so leave them,
8981         # especially as we might pass files found there to a mingw objdump,
8982         # which wouldn't understand a cygwinified path. Ahh.
8983         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8984       else
8985         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8986       fi
8987       ;;
8988     pw32*)
8989       # pw32 DLLs use 'pw' prefix rather than 'lib'
8990       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8991       ;;
8992     esac
8993     ;;
8994
8995   *)
8996     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8997     ;;
8998   esac
8999   dynamic_linker='Win32 ld.exe'
9000   # FIXME: first we should search . and the directory the executable is in
9001   shlibpath_var=PATH
9002   ;;
9003
9004 darwin* | rhapsody*)
9005   dynamic_linker="$host_os dyld"
9006   version_type=darwin
9007   need_lib_prefix=no
9008   need_version=no
9009   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9010   soname_spec='${libname}${release}${major}$shared_ext'
9011   shlibpath_overrides_runpath=yes
9012   shlibpath_var=DYLD_LIBRARY_PATH
9013   shrext_cmds='.dylib'
9014   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9015   if test "$GCC" = yes; then
9016     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"`
9017   else
9018     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9019   fi
9020   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9021   ;;
9022
9023 dgux*)
9024   version_type=linux
9025   need_lib_prefix=no
9026   need_version=no
9027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9028   soname_spec='${libname}${release}${shared_ext}$major'
9029   shlibpath_var=LD_LIBRARY_PATH
9030   ;;
9031
9032 freebsd1*)
9033   dynamic_linker=no
9034   ;;
9035
9036 kfreebsd*-gnu)
9037   version_type=linux
9038   need_lib_prefix=no
9039   need_version=no
9040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9041   soname_spec='${libname}${release}${shared_ext}$major'
9042   shlibpath_var=LD_LIBRARY_PATH
9043   shlibpath_overrides_runpath=no
9044   hardcode_into_libs=yes
9045   dynamic_linker='GNU ld.so'
9046   ;;
9047
9048 freebsd* | dragonfly*)
9049   # DragonFly does not have aout.  When/if they implement a new
9050   # versioning mechanism, adjust this.
9051   if test -x /usr/bin/objformat; then
9052     objformat=`/usr/bin/objformat`
9053   else
9054     case $host_os in
9055     freebsd[123]*) objformat=aout ;;
9056     *) objformat=elf ;;
9057     esac
9058   fi
9059   version_type=freebsd-$objformat
9060   case $version_type in
9061     freebsd-elf*)
9062       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9063       need_version=no
9064       need_lib_prefix=no
9065       ;;
9066     freebsd-*)
9067       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9068       need_version=yes
9069       ;;
9070   esac
9071   shlibpath_var=LD_LIBRARY_PATH
9072   case $host_os in
9073   freebsd2*)
9074     shlibpath_overrides_runpath=yes
9075     ;;
9076   freebsd3.[01]* | freebsdelf3.[01]*)
9077     shlibpath_overrides_runpath=yes
9078     hardcode_into_libs=yes
9079     ;;
9080   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9081   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9082     shlibpath_overrides_runpath=no
9083     hardcode_into_libs=yes
9084     ;;
9085   freebsd*) # from 4.6 on
9086     shlibpath_overrides_runpath=yes
9087     hardcode_into_libs=yes
9088     ;;
9089   esac
9090   ;;
9091
9092 gnu*)
9093   version_type=linux
9094   need_lib_prefix=no
9095   need_version=no
9096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9097   soname_spec='${libname}${release}${shared_ext}$major'
9098   shlibpath_var=LD_LIBRARY_PATH
9099   hardcode_into_libs=yes
9100   ;;
9101
9102 hpux9* | hpux10* | hpux11*)
9103   # Give a soname corresponding to the major version so that dld.sl refuses to
9104   # link against other versions.
9105   version_type=sunos
9106   need_lib_prefix=no
9107   need_version=no
9108   case $host_cpu in
9109   ia64*)
9110     shrext_cmds='.so'
9111     hardcode_into_libs=yes
9112     dynamic_linker="$host_os dld.so"
9113     shlibpath_var=LD_LIBRARY_PATH
9114     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116     soname_spec='${libname}${release}${shared_ext}$major'
9117     if test "X$HPUX_IA64_MODE" = X32; then
9118       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9119     else
9120       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9121     fi
9122     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9123     ;;
9124    hppa*64*)
9125      shrext_cmds='.sl'
9126      hardcode_into_libs=yes
9127      dynamic_linker="$host_os dld.sl"
9128      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9129      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9130      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131      soname_spec='${libname}${release}${shared_ext}$major'
9132      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9133      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9134      ;;
9135    *)
9136     shrext_cmds='.sl'
9137     dynamic_linker="$host_os dld.sl"
9138     shlibpath_var=SHLIB_PATH
9139     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9140     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141     soname_spec='${libname}${release}${shared_ext}$major'
9142     ;;
9143   esac
9144   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9145   postinstall_cmds='chmod 555 $lib'
9146   ;;
9147
9148 interix3*)
9149   version_type=linux
9150   need_lib_prefix=no
9151   need_version=no
9152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9153   soname_spec='${libname}${release}${shared_ext}$major'
9154   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9155   shlibpath_var=LD_LIBRARY_PATH
9156   shlibpath_overrides_runpath=no
9157   hardcode_into_libs=yes
9158   ;;
9159
9160 irix5* | irix6* | nonstopux*)
9161   case $host_os in
9162     nonstopux*) version_type=nonstopux ;;
9163     *)
9164         if test "$lt_cv_prog_gnu_ld" = yes; then
9165                 version_type=linux
9166         else
9167                 version_type=irix
9168         fi ;;
9169   esac
9170   need_lib_prefix=no
9171   need_version=no
9172   soname_spec='${libname}${release}${shared_ext}$major'
9173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9174   case $host_os in
9175   irix5* | nonstopux*)
9176     libsuff= shlibsuff=
9177     ;;
9178   *)
9179     case $LD in # libtool.m4 will add one of these switches to LD
9180     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9181       libsuff= shlibsuff= libmagic=32-bit;;
9182     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9183       libsuff=32 shlibsuff=N32 libmagic=N32;;
9184     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9185       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9186     *) libsuff= shlibsuff= libmagic=never-match;;
9187     esac
9188     ;;
9189   esac
9190   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9191   shlibpath_overrides_runpath=no
9192   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9193   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9194   hardcode_into_libs=yes
9195   ;;
9196
9197 # No shared lib support for Linux oldld, aout, or coff.
9198 linux*oldld* | linux*aout* | linux*coff*)
9199   dynamic_linker=no
9200   ;;
9201
9202 # This must be Linux ELF.
9203 linux*)
9204   version_type=linux
9205   need_lib_prefix=no
9206   need_version=no
9207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9208   soname_spec='${libname}${release}${shared_ext}$major'
9209   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9210   shlibpath_var=LD_LIBRARY_PATH
9211   shlibpath_overrides_runpath=no
9212   # This implies no fast_install, which is unacceptable.
9213   # Some rework will be needed to allow for fast_install
9214   # before this can be enabled.
9215   hardcode_into_libs=yes
9216
9217   # Append ld.so.conf contents to the search path
9218   if test -f /etc/ld.so.conf; then
9219     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' ' '`
9220     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9221   fi
9222
9223   # We used to test for /lib/ld.so.1 and disable shared libraries on
9224   # powerpc, because MkLinux only supported shared libraries with the
9225   # GNU dynamic linker.  Since this was broken with cross compilers,
9226   # most powerpc-linux boxes support dynamic linking these days and
9227   # people can always --disable-shared, the test was removed, and we
9228   # assume the GNU/Linux dynamic linker is in use.
9229   dynamic_linker='GNU/Linux ld.so'
9230   ;;
9231
9232 knetbsd*-gnu)
9233   version_type=linux
9234   need_lib_prefix=no
9235   need_version=no
9236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9237   soname_spec='${libname}${release}${shared_ext}$major'
9238   shlibpath_var=LD_LIBRARY_PATH
9239   shlibpath_overrides_runpath=no
9240   hardcode_into_libs=yes
9241   dynamic_linker='GNU ld.so'
9242   ;;
9243
9244 netbsd*)
9245   version_type=sunos
9246   need_lib_prefix=no
9247   need_version=no
9248   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9249     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9250     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9251     dynamic_linker='NetBSD (a.out) ld.so'
9252   else
9253     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9254     soname_spec='${libname}${release}${shared_ext}$major'
9255     dynamic_linker='NetBSD ld.elf_so'
9256   fi
9257   shlibpath_var=LD_LIBRARY_PATH
9258   shlibpath_overrides_runpath=yes
9259   hardcode_into_libs=yes
9260   ;;
9261
9262 newsos6)
9263   version_type=linux
9264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9265   shlibpath_var=LD_LIBRARY_PATH
9266   shlibpath_overrides_runpath=yes
9267   ;;
9268
9269 nto-qnx*)
9270   version_type=linux
9271   need_lib_prefix=no
9272   need_version=no
9273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274   soname_spec='${libname}${release}${shared_ext}$major'
9275   shlibpath_var=LD_LIBRARY_PATH
9276   shlibpath_overrides_runpath=yes
9277   ;;
9278
9279 openbsd*)
9280   version_type=sunos
9281   sys_lib_dlsearch_path_spec="/usr/lib"
9282   need_lib_prefix=no
9283   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9284   case $host_os in
9285     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9286     *)                         need_version=no  ;;
9287   esac
9288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9289   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9290   shlibpath_var=LD_LIBRARY_PATH
9291   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9292     case $host_os in
9293       openbsd2.[89] | openbsd2.[89].*)
9294         shlibpath_overrides_runpath=no
9295         ;;
9296       *)
9297         shlibpath_overrides_runpath=yes
9298         ;;
9299       esac
9300   else
9301     shlibpath_overrides_runpath=yes
9302   fi
9303   ;;
9304
9305 os2*)
9306   libname_spec='$name'
9307   shrext_cmds=".dll"
9308   need_lib_prefix=no
9309   library_names_spec='$libname${shared_ext} $libname.a'
9310   dynamic_linker='OS/2 ld.exe'
9311   shlibpath_var=LIBPATH
9312   ;;
9313
9314 osf3* | osf4* | osf5*)
9315   version_type=osf
9316   need_lib_prefix=no
9317   need_version=no
9318   soname_spec='${libname}${release}${shared_ext}$major'
9319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320   shlibpath_var=LD_LIBRARY_PATH
9321   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9322   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9323   ;;
9324
9325 solaris*)
9326   version_type=linux
9327   need_lib_prefix=no
9328   need_version=no
9329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330   soname_spec='${libname}${release}${shared_ext}$major'
9331   shlibpath_var=LD_LIBRARY_PATH
9332   shlibpath_overrides_runpath=yes
9333   hardcode_into_libs=yes
9334   # ldd complains unless libraries are executable
9335   postinstall_cmds='chmod +x $lib'
9336   ;;
9337
9338 sunos4*)
9339   version_type=sunos
9340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9341   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9342   shlibpath_var=LD_LIBRARY_PATH
9343   shlibpath_overrides_runpath=yes
9344   if test "$with_gnu_ld" = yes; then
9345     need_lib_prefix=no
9346   fi
9347   need_version=yes
9348   ;;
9349
9350 sysv4 | sysv4.3*)
9351   version_type=linux
9352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9353   soname_spec='${libname}${release}${shared_ext}$major'
9354   shlibpath_var=LD_LIBRARY_PATH
9355   case $host_vendor in
9356     sni)
9357       shlibpath_overrides_runpath=no
9358       need_lib_prefix=no
9359       export_dynamic_flag_spec='${wl}-Blargedynsym'
9360       runpath_var=LD_RUN_PATH
9361       ;;
9362     siemens)
9363       need_lib_prefix=no
9364       ;;
9365     motorola)
9366       need_lib_prefix=no
9367       need_version=no
9368       shlibpath_overrides_runpath=no
9369       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9370       ;;
9371   esac
9372   ;;
9373
9374 sysv4*MP*)
9375   if test -d /usr/nec ;then
9376     version_type=linux
9377     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9378     soname_spec='$libname${shared_ext}.$major'
9379     shlibpath_var=LD_LIBRARY_PATH
9380   fi
9381   ;;
9382
9383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9384   version_type=freebsd-elf
9385   need_lib_prefix=no
9386   need_version=no
9387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9388   soname_spec='${libname}${release}${shared_ext}$major'
9389   shlibpath_var=LD_LIBRARY_PATH
9390   hardcode_into_libs=yes
9391   if test "$with_gnu_ld" = yes; then
9392     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9393     shlibpath_overrides_runpath=no
9394   else
9395     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9396     shlibpath_overrides_runpath=yes
9397     case $host_os in
9398       sco3.2v5*)
9399         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9400         ;;
9401     esac
9402   fi
9403   sys_lib_dlsearch_path_spec='/usr/lib'
9404   ;;
9405
9406 uts4*)
9407   version_type=linux
9408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409   soname_spec='${libname}${release}${shared_ext}$major'
9410   shlibpath_var=LD_LIBRARY_PATH
9411   ;;
9412
9413 *)
9414   dynamic_linker=no
9415   ;;
9416 esac
9417 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9418 echo "${ECHO_T}$dynamic_linker" >&6; }
9419 test "$dynamic_linker" = no && can_build_shared=no
9420
9421 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9422 if test "$GCC" = yes; then
9423   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9424 fi
9425
9426
9427 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9428 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9429 if test "${libltdl_cv_shlibext+set}" = set; then
9430   echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432
9433 module=yes
9434 eval libltdl_cv_shlibext=$shrext_cmds
9435
9436 fi
9437 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9438 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9439 if test -n "$libltdl_cv_shlibext"; then
9440
9441 cat >>confdefs.h <<_ACEOF
9442 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9443 _ACEOF
9444
9445 fi
9446
9447
9448 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9449 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9450 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9451   echo $ECHO_N "(cached) $ECHO_C" >&6
9452 else
9453   libltdl_cv_shlibpath_var="$shlibpath_var"
9454 fi
9455 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9456 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9457 if test -n "$libltdl_cv_shlibpath_var"; then
9458
9459 cat >>confdefs.h <<_ACEOF
9460 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9461 _ACEOF
9462
9463 fi
9464
9465
9466 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9467 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9468 if test "${libltdl_cv_sys_search_path+set}" = set; then
9469   echo $ECHO_N "(cached) $ECHO_C" >&6
9470 else
9471   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9472 fi
9473 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9474 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9475 if test -n "$libltdl_cv_sys_search_path"; then
9476   sys_search_path=
9477   for dir in $libltdl_cv_sys_search_path; do
9478     if test -z "$sys_search_path"; then
9479       sys_search_path="$dir"
9480     else
9481       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9482     fi
9483   done
9484
9485 cat >>confdefs.h <<_ACEOF
9486 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9487 _ACEOF
9488
9489 fi
9490
9491 { echo "$as_me:$LINENO: checking for objdir" >&5
9492 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9493 if test "${libltdl_cv_objdir+set}" = set; then
9494   echo $ECHO_N "(cached) $ECHO_C" >&6
9495 else
9496   libltdl_cv_objdir="$objdir"
9497   if test -n "$objdir"; then
9498     :
9499   else
9500     rm -f .libs 2>/dev/null
9501     mkdir .libs 2>/dev/null
9502     if test -d .libs; then
9503       libltdl_cv_objdir=.libs
9504     else
9505       # MS-DOS does not allow filenames that begin with a dot.
9506       libltdl_cv_objdir=_libs
9507     fi
9508   rmdir .libs 2>/dev/null
9509   fi
9510
9511 fi
9512 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9513 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9514
9515 cat >>confdefs.h <<_ACEOF
9516 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9517 _ACEOF
9518
9519
9520
9521
9522
9523
9524 # Check for command to grab the raw symbol name followed by C symbol from nm.
9525 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9526 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9527 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9528   echo $ECHO_N "(cached) $ECHO_C" >&6
9529 else
9530
9531 # These are sane defaults that work on at least a few old systems.
9532 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9533
9534 # Character class describing NM global symbol codes.
9535 symcode='[BCDEGRST]'
9536
9537 # Regexp to match symbols that can be accessed directly from C.
9538 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9539
9540 # Transform an extracted symbol line into a proper C declaration
9541 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9542
9543 # Transform an extracted symbol line into symbol name and symbol address
9544 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'"
9545
9546 # Define system-specific variables.
9547 case $host_os in
9548 aix*)
9549   symcode='[BCDT]'
9550   ;;
9551 cygwin* | mingw* | pw32*)
9552   symcode='[ABCDGISTW]'
9553   ;;
9554 hpux*) # Its linker distinguishes data from code symbols
9555   if test "$host_cpu" = ia64; then
9556     symcode='[ABCDEGRST]'
9557   fi
9558   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9559   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'"
9560   ;;
9561 linux*)
9562   if test "$host_cpu" = ia64; then
9563     symcode='[ABCDGIRSTW]'
9564     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9565     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'"
9566   fi
9567   ;;
9568 irix* | nonstopux*)
9569   symcode='[BCDEGRST]'
9570   ;;
9571 osf*)
9572   symcode='[BCDEGQRST]'
9573   ;;
9574 solaris*)
9575   symcode='[BDRT]'
9576   ;;
9577 sco3.2v5*)
9578   symcode='[DT]'
9579   ;;
9580 sysv4.2uw2*)
9581   symcode='[DT]'
9582   ;;
9583 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9584   symcode='[ABDT]'
9585   ;;
9586 sysv4)
9587   symcode='[DFNSTU]'
9588   ;;
9589 esac
9590
9591 # Handle CRLF in mingw tool chain
9592 opt_cr=
9593 case $build_os in
9594 mingw*)
9595   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9596   ;;
9597 esac
9598
9599 # If we're using GNU nm, then use its standard symbol codes.
9600 case `$NM -V 2>&1` in
9601 *GNU* | *'with BFD'*)
9602   symcode='[ABCDGIRSTW]' ;;
9603 esac
9604
9605 # Try without a prefix undercore, then with it.
9606 for ac_symprfx in "" "_"; do
9607
9608   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9609   symxfrm="\\1 $ac_symprfx\\2 \\2"
9610
9611   # Write the raw and C identifiers.
9612   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9613
9614   # Check to see that the pipe works correctly.
9615   pipe_works=no
9616
9617   rm -f conftest*
9618   cat > conftest.$ac_ext <<EOF
9619 #ifdef __cplusplus
9620 extern "C" {
9621 #endif
9622 char nm_test_var;
9623 void nm_test_func(){}
9624 #ifdef __cplusplus
9625 }
9626 #endif
9627 int main(){nm_test_var='a';nm_test_func();return(0);}
9628 EOF
9629
9630   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9631   (eval $ac_compile) 2>&5
9632   ac_status=$?
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); }; then
9635     # Now try to grab the symbols.
9636     nlist=conftest.nm
9637     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9638   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9639   ac_status=$?
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); } && test -s "$nlist"; then
9642       # Try sorting and uniquifying the output.
9643       if sort "$nlist" | uniq > "$nlist"T; then
9644         mv -f "$nlist"T "$nlist"
9645       else
9646         rm -f "$nlist"T
9647       fi
9648
9649       # Make sure that we snagged all the symbols we need.
9650       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9651         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9652           cat <<EOF > conftest.$ac_ext
9653 #ifdef __cplusplus
9654 extern "C" {
9655 #endif
9656
9657 EOF
9658           # Now generate the symbol file.
9659           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9660
9661           cat <<EOF >> conftest.$ac_ext
9662 #if defined (__STDC__) && __STDC__
9663 # define lt_ptr_t void *
9664 #else
9665 # define lt_ptr_t char *
9666 # define const
9667 #endif
9668
9669 /* The mapping between symbol names and symbols. */
9670 const struct {
9671   const char *name;
9672   lt_ptr_t address;
9673 }
9674 lt_preloaded_symbols[] =
9675 {
9676 EOF
9677           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9678           cat <<\EOF >> conftest.$ac_ext
9679   {0, (lt_ptr_t) 0}
9680 };
9681
9682 #ifdef __cplusplus
9683 }
9684 #endif
9685 EOF
9686           # Now try linking the two files.
9687           mv conftest.$ac_objext conftstm.$ac_objext
9688           lt_save_LIBS="$LIBS"
9689           lt_save_CFLAGS="$CFLAGS"
9690           LIBS="conftstm.$ac_objext"
9691           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9692           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9693   (eval $ac_link) 2>&5
9694   ac_status=$?
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9697             pipe_works=yes
9698           fi
9699           LIBS="$lt_save_LIBS"
9700           CFLAGS="$lt_save_CFLAGS"
9701         else
9702           echo "cannot find nm_test_func in $nlist" >&5
9703         fi
9704       else
9705         echo "cannot find nm_test_var in $nlist" >&5
9706       fi
9707     else
9708       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9709     fi
9710   else
9711     echo "$progname: failed program was:" >&5
9712     cat conftest.$ac_ext >&5
9713   fi
9714   rm -f conftest* conftst*
9715
9716   # Do not use the global_symbol_pipe unless it works.
9717   if test "$pipe_works" = yes; then
9718     break
9719   else
9720     lt_cv_sys_global_symbol_pipe=
9721   fi
9722 done
9723
9724 fi
9725
9726 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9727   lt_cv_sys_global_symbol_to_cdecl=
9728 fi
9729 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9730   { echo "$as_me:$LINENO: result: failed" >&5
9731 echo "${ECHO_T}failed" >&6; }
9732 else
9733   { echo "$as_me:$LINENO: result: ok" >&5
9734 echo "${ECHO_T}ok" >&6; }
9735 fi
9736
9737
9738 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9739 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9740 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9741   echo $ECHO_N "(cached) $ECHO_C" >&6
9742 else
9743   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9744     libltdl_cv_preloaded_symbols=yes
9745   else
9746     libltdl_cv_preloaded_symbols=no
9747   fi
9748
9749 fi
9750 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9751 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9752 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9753
9754 cat >>confdefs.h <<\_ACEOF
9755 #define HAVE_PRELOADED_SYMBOLS 1
9756 _ACEOF
9757
9758 fi
9759
9760 LIBADD_DL=
9761
9762 ac_ext=c
9763 ac_cpp='$CPP $CPPFLAGS'
9764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9767
9768
9769 { echo "$as_me:$LINENO: checking for shl_load" >&5
9770 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9771 if test "${ac_cv_func_shl_load+set}" = set; then
9772   echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774   cat >conftest.$ac_ext <<_ACEOF
9775 /* confdefs.h.  */
9776 _ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h.  */
9780 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9782 #define shl_load innocuous_shl_load
9783
9784 /* System header to define __stub macros and hopefully few prototypes,
9785     which can conflict with char shl_load (); below.
9786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9787     <limits.h> exists even on freestanding compilers.  */
9788
9789 #ifdef __STDC__
9790 # include <limits.h>
9791 #else
9792 # include <assert.h>
9793 #endif
9794
9795 #undef shl_load
9796
9797 /* Override any GCC internal prototype to avoid an error.
9798    Use char because int might match the return type of a GCC
9799    builtin and then its argument prototype would still apply.  */
9800 #ifdef __cplusplus
9801 extern "C"
9802 #endif
9803 char shl_load ();
9804 /* The GNU C library defines this for functions which it implements
9805     to always fail with ENOSYS.  Some functions are actually named
9806     something starting with __ and the normal name is an alias.  */
9807 #if defined __stub_shl_load || defined __stub___shl_load
9808 choke me
9809 #endif
9810
9811 int
9812 main ()
9813 {
9814 return shl_load ();
9815   ;
9816   return 0;
9817 }
9818 _ACEOF
9819 rm -f conftest.$ac_objext conftest$ac_exeext
9820 if { (ac_try="$ac_link"
9821 case "(($ac_try" in
9822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823   *) ac_try_echo=$ac_try;;
9824 esac
9825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9826   (eval "$ac_link") 2>conftest.er1
9827   ac_status=$?
9828   grep -v '^ *+' conftest.er1 >conftest.err
9829   rm -f conftest.er1
9830   cat conftest.err >&5
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); } &&
9833          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9834   { (case "(($ac_try" in
9835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836   *) ac_try_echo=$ac_try;;
9837 esac
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839   (eval "$ac_try") 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); }; } &&
9843          { ac_try='test -s conftest$ac_exeext'
9844   { (case "(($ac_try" in
9845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846   *) ac_try_echo=$ac_try;;
9847 esac
9848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849   (eval "$ac_try") 2>&5
9850   ac_status=$?
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); }; }; then
9853   ac_cv_func_shl_load=yes
9854 else
9855   echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9857
9858         ac_cv_func_shl_load=no
9859 fi
9860
9861 rm -f core conftest.err conftest.$ac_objext \
9862       conftest$ac_exeext conftest.$ac_ext
9863 fi
9864 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9865 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9866 if test $ac_cv_func_shl_load = yes; then
9867
9868 cat >>confdefs.h <<\_ACEOF
9869 #define HAVE_SHL_LOAD 1
9870 _ACEOF
9871
9872 else
9873   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9874 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9875 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9876   echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878   ac_check_lib_save_LIBS=$LIBS
9879 LIBS="-ldld  $LIBS"
9880 cat >conftest.$ac_ext <<_ACEOF
9881 /* confdefs.h.  */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h.  */
9886
9887 /* Override any GCC internal prototype to avoid an error.
9888    Use char because int might match the return type of a GCC
9889    builtin and then its argument prototype would still apply.  */
9890 #ifdef __cplusplus
9891 extern "C"
9892 #endif
9893 char shl_load ();
9894 int
9895 main ()
9896 {
9897 return shl_load ();
9898   ;
9899   return 0;
9900 }
9901 _ACEOF
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (ac_try="$ac_link"
9904 case "(($ac_try" in
9905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906   *) ac_try_echo=$ac_try;;
9907 esac
9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909   (eval "$ac_link") 2>conftest.er1
9910   ac_status=$?
9911   grep -v '^ *+' conftest.er1 >conftest.err
9912   rm -f conftest.er1
9913   cat conftest.err >&5
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); } &&
9916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9917   { (case "(($ac_try" in
9918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919   *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922   (eval "$ac_try") 2>&5
9923   ac_status=$?
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); }; } &&
9926          { ac_try='test -s conftest$ac_exeext'
9927   { (case "(($ac_try" in
9928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929   *) ac_try_echo=$ac_try;;
9930 esac
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932   (eval "$ac_try") 2>&5
9933   ac_status=$?
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); }; }; then
9936   ac_cv_lib_dld_shl_load=yes
9937 else
9938   echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9940
9941         ac_cv_lib_dld_shl_load=no
9942 fi
9943
9944 rm -f core conftest.err conftest.$ac_objext \
9945       conftest$ac_exeext conftest.$ac_ext
9946 LIBS=$ac_check_lib_save_LIBS
9947 fi
9948 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9949 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9950 if test $ac_cv_lib_dld_shl_load = yes; then
9951
9952 cat >>confdefs.h <<\_ACEOF
9953 #define HAVE_SHL_LOAD 1
9954 _ACEOF
9955
9956         LIBADD_DL="$LIBADD_DL -ldld"
9957 else
9958   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9959 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9960 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9961   echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963   ac_check_lib_save_LIBS=$LIBS
9964 LIBS="-ldl  $LIBS"
9965 cat >conftest.$ac_ext <<_ACEOF
9966 /* confdefs.h.  */
9967 _ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h.  */
9971
9972 /* Override any GCC internal prototype to avoid an error.
9973    Use char because int might match the return type of a GCC
9974    builtin and then its argument prototype would still apply.  */
9975 #ifdef __cplusplus
9976 extern "C"
9977 #endif
9978 char dlopen ();
9979 int
9980 main ()
9981 {
9982 return dlopen ();
9983   ;
9984   return 0;
9985 }
9986 _ACEOF
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (ac_try="$ac_link"
9989 case "(($ac_try" in
9990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991   *) ac_try_echo=$ac_try;;
9992 esac
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994   (eval "$ac_link") 2>conftest.er1
9995   ac_status=$?
9996   grep -v '^ *+' conftest.er1 >conftest.err
9997   rm -f conftest.er1
9998   cat conftest.err >&5
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); } &&
10001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10002   { (case "(($ac_try" in
10003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004   *) ac_try_echo=$ac_try;;
10005 esac
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007   (eval "$ac_try") 2>&5
10008   ac_status=$?
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); }; } &&
10011          { ac_try='test -s conftest$ac_exeext'
10012   { (case "(($ac_try" in
10013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014   *) ac_try_echo=$ac_try;;
10015 esac
10016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017   (eval "$ac_try") 2>&5
10018   ac_status=$?
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); }; }; then
10021   ac_cv_lib_dl_dlopen=yes
10022 else
10023   echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10025
10026         ac_cv_lib_dl_dlopen=no
10027 fi
10028
10029 rm -f core conftest.err conftest.$ac_objext \
10030       conftest$ac_exeext conftest.$ac_ext
10031 LIBS=$ac_check_lib_save_LIBS
10032 fi
10033 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10034 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10035 if test $ac_cv_lib_dl_dlopen = yes; then
10036
10037 cat >>confdefs.h <<\_ACEOF
10038 #define HAVE_LIBDL 1
10039 _ACEOF
10040
10041                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10042 else
10043   cat >conftest.$ac_ext <<_ACEOF
10044 /* confdefs.h.  */
10045 _ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h.  */
10049 #if HAVE_DLFCN_H
10050 #  include <dlfcn.h>
10051 #endif
10052
10053 int
10054 main ()
10055 {
10056 dlopen(0, 0);
10057   ;
10058   return 0;
10059 }
10060 _ACEOF
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (ac_try="$ac_link"
10063 case "(($ac_try" in
10064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065   *) ac_try_echo=$ac_try;;
10066 esac
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068   (eval "$ac_link") 2>conftest.er1
10069   ac_status=$?
10070   grep -v '^ *+' conftest.er1 >conftest.err
10071   rm -f conftest.er1
10072   cat conftest.err >&5
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); } &&
10075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10076   { (case "(($ac_try" in
10077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078   *) ac_try_echo=$ac_try;;
10079 esac
10080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081   (eval "$ac_try") 2>&5
10082   ac_status=$?
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); }; } &&
10085          { ac_try='test -s conftest$ac_exeext'
10086   { (case "(($ac_try" in
10087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088   *) ac_try_echo=$ac_try;;
10089 esac
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091   (eval "$ac_try") 2>&5
10092   ac_status=$?
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); }; }; then
10095
10096 cat >>confdefs.h <<\_ACEOF
10097 #define HAVE_LIBDL 1
10098 _ACEOF
10099  libltdl_cv_func_dlopen="yes"
10100 else
10101   echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.$ac_ext >&5
10103
10104         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10105 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10106 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10107   echo $ECHO_N "(cached) $ECHO_C" >&6
10108 else
10109   ac_check_lib_save_LIBS=$LIBS
10110 LIBS="-lsvld  $LIBS"
10111 cat >conftest.$ac_ext <<_ACEOF
10112 /* confdefs.h.  */
10113 _ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h.  */
10117
10118 /* Override any GCC internal prototype to avoid an error.
10119    Use char because int might match the return type of a GCC
10120    builtin and then its argument prototype would still apply.  */
10121 #ifdef __cplusplus
10122 extern "C"
10123 #endif
10124 char dlopen ();
10125 int
10126 main ()
10127 {
10128 return dlopen ();
10129   ;
10130   return 0;
10131 }
10132 _ACEOF
10133 rm -f conftest.$ac_objext conftest$ac_exeext
10134 if { (ac_try="$ac_link"
10135 case "(($ac_try" in
10136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137   *) ac_try_echo=$ac_try;;
10138 esac
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140   (eval "$ac_link") 2>conftest.er1
10141   ac_status=$?
10142   grep -v '^ *+' conftest.er1 >conftest.err
10143   rm -f conftest.er1
10144   cat conftest.err >&5
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); } &&
10147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10148   { (case "(($ac_try" in
10149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150   *) ac_try_echo=$ac_try;;
10151 esac
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153   (eval "$ac_try") 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; } &&
10157          { ac_try='test -s conftest$ac_exeext'
10158   { (case "(($ac_try" in
10159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160   *) ac_try_echo=$ac_try;;
10161 esac
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163   (eval "$ac_try") 2>&5
10164   ac_status=$?
10165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); }; }; then
10167   ac_cv_lib_svld_dlopen=yes
10168 else
10169   echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10171
10172         ac_cv_lib_svld_dlopen=no
10173 fi
10174
10175 rm -f core conftest.err conftest.$ac_objext \
10176       conftest$ac_exeext conftest.$ac_ext
10177 LIBS=$ac_check_lib_save_LIBS
10178 fi
10179 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10180 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10181 if test $ac_cv_lib_svld_dlopen = yes; then
10182
10183 cat >>confdefs.h <<\_ACEOF
10184 #define HAVE_LIBDL 1
10185 _ACEOF
10186
10187                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10188 else
10189   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10190 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10191 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10192   echo $ECHO_N "(cached) $ECHO_C" >&6
10193 else
10194   ac_check_lib_save_LIBS=$LIBS
10195 LIBS="-ldld  $LIBS"
10196 cat >conftest.$ac_ext <<_ACEOF
10197 /* confdefs.h.  */
10198 _ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h.  */
10202
10203 /* Override any GCC internal prototype to avoid an error.
10204    Use char because int might match the return type of a GCC
10205    builtin and then its argument prototype would still apply.  */
10206 #ifdef __cplusplus
10207 extern "C"
10208 #endif
10209 char dld_link ();
10210 int
10211 main ()
10212 {
10213 return dld_link ();
10214   ;
10215   return 0;
10216 }
10217 _ACEOF
10218 rm -f conftest.$ac_objext conftest$ac_exeext
10219 if { (ac_try="$ac_link"
10220 case "(($ac_try" in
10221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222   *) ac_try_echo=$ac_try;;
10223 esac
10224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225   (eval "$ac_link") 2>conftest.er1
10226   ac_status=$?
10227   grep -v '^ *+' conftest.er1 >conftest.err
10228   rm -f conftest.er1
10229   cat conftest.err >&5
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); } &&
10232          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10233   { (case "(($ac_try" in
10234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235   *) ac_try_echo=$ac_try;;
10236 esac
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238   (eval "$ac_try") 2>&5
10239   ac_status=$?
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); }; } &&
10242          { ac_try='test -s conftest$ac_exeext'
10243   { (case "(($ac_try" in
10244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245   *) ac_try_echo=$ac_try;;
10246 esac
10247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248   (eval "$ac_try") 2>&5
10249   ac_status=$?
10250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251   (exit $ac_status); }; }; then
10252   ac_cv_lib_dld_dld_link=yes
10253 else
10254   echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10256
10257         ac_cv_lib_dld_dld_link=no
10258 fi
10259
10260 rm -f core conftest.err conftest.$ac_objext \
10261       conftest$ac_exeext conftest.$ac_ext
10262 LIBS=$ac_check_lib_save_LIBS
10263 fi
10264 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10265 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10266 if test $ac_cv_lib_dld_dld_link = yes; then
10267
10268 cat >>confdefs.h <<\_ACEOF
10269 #define HAVE_DLD 1
10270 _ACEOF
10271
10272                 LIBADD_DL="$LIBADD_DL -ldld"
10273 else
10274   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10275 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10276 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10277   echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279   cat >conftest.$ac_ext <<_ACEOF
10280 /* confdefs.h.  */
10281 _ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h.  */
10285 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10287 #define _dyld_func_lookup innocuous__dyld_func_lookup
10288
10289 /* System header to define __stub macros and hopefully few prototypes,
10290     which can conflict with char _dyld_func_lookup (); below.
10291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10292     <limits.h> exists even on freestanding compilers.  */
10293
10294 #ifdef __STDC__
10295 # include <limits.h>
10296 #else
10297 # include <assert.h>
10298 #endif
10299
10300 #undef _dyld_func_lookup
10301
10302 /* Override any GCC internal prototype to avoid an error.
10303    Use char because int might match the return type of a GCC
10304    builtin and then its argument prototype would still apply.  */
10305 #ifdef __cplusplus
10306 extern "C"
10307 #endif
10308 char _dyld_func_lookup ();
10309 /* The GNU C library defines this for functions which it implements
10310     to always fail with ENOSYS.  Some functions are actually named
10311     something starting with __ and the normal name is an alias.  */
10312 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10313 choke me
10314 #endif
10315
10316 int
10317 main ()
10318 {
10319 return _dyld_func_lookup ();
10320   ;
10321   return 0;
10322 }
10323 _ACEOF
10324 rm -f conftest.$ac_objext conftest$ac_exeext
10325 if { (ac_try="$ac_link"
10326 case "(($ac_try" in
10327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328   *) ac_try_echo=$ac_try;;
10329 esac
10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331   (eval "$ac_link") 2>conftest.er1
10332   ac_status=$?
10333   grep -v '^ *+' conftest.er1 >conftest.err
10334   rm -f conftest.er1
10335   cat conftest.err >&5
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   (exit $ac_status); } &&
10338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10339   { (case "(($ac_try" in
10340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341   *) ac_try_echo=$ac_try;;
10342 esac
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344   (eval "$ac_try") 2>&5
10345   ac_status=$?
10346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347   (exit $ac_status); }; } &&
10348          { ac_try='test -s conftest$ac_exeext'
10349   { (case "(($ac_try" in
10350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351   *) ac_try_echo=$ac_try;;
10352 esac
10353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354   (eval "$ac_try") 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; }; then
10358   ac_cv_func__dyld_func_lookup=yes
10359 else
10360   echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10362
10363         ac_cv_func__dyld_func_lookup=no
10364 fi
10365
10366 rm -f core conftest.err conftest.$ac_objext \
10367       conftest$ac_exeext conftest.$ac_ext
10368 fi
10369 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10370 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10371 if test $ac_cv_func__dyld_func_lookup = yes; then
10372
10373 cat >>confdefs.h <<\_ACEOF
10374 #define HAVE_DYLD 1
10375 _ACEOF
10376
10377 fi
10378
10379
10380 fi
10381
10382
10383 fi
10384
10385
10386 fi
10387
10388 rm -f core conftest.err conftest.$ac_objext \
10389       conftest$ac_exeext conftest.$ac_ext
10390
10391 fi
10392
10393
10394 fi
10395
10396
10397 fi
10398
10399
10400 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10401 then
10402   lt_save_LIBS="$LIBS"
10403   LIBS="$LIBS $LIBADD_DL"
10404
10405 for ac_func in dlerror
10406 do
10407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10411   echo $ECHO_N "(cached) $ECHO_C" >&6
10412 else
10413   cat >conftest.$ac_ext <<_ACEOF
10414 /* confdefs.h.  */
10415 _ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h.  */
10419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10421 #define $ac_func innocuous_$ac_func
10422
10423 /* System header to define __stub macros and hopefully few prototypes,
10424     which can conflict with char $ac_func (); below.
10425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10426     <limits.h> exists even on freestanding compilers.  */
10427
10428 #ifdef __STDC__
10429 # include <limits.h>
10430 #else
10431 # include <assert.h>
10432 #endif
10433
10434 #undef $ac_func
10435
10436 /* Override any GCC internal prototype to avoid an error.
10437    Use char because int might match the return type of a GCC
10438    builtin and then its argument prototype would still apply.  */
10439 #ifdef __cplusplus
10440 extern "C"
10441 #endif
10442 char $ac_func ();
10443 /* The GNU C library defines this for functions which it implements
10444     to always fail with ENOSYS.  Some functions are actually named
10445     something starting with __ and the normal name is an alias.  */
10446 #if defined __stub_$ac_func || defined __stub___$ac_func
10447 choke me
10448 #endif
10449
10450 int
10451 main ()
10452 {
10453 return $ac_func ();
10454   ;
10455   return 0;
10456 }
10457 _ACEOF
10458 rm -f conftest.$ac_objext conftest$ac_exeext
10459 if { (ac_try="$ac_link"
10460 case "(($ac_try" in
10461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462   *) ac_try_echo=$ac_try;;
10463 esac
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465   (eval "$ac_link") 2>conftest.er1
10466   ac_status=$?
10467   grep -v '^ *+' conftest.er1 >conftest.err
10468   rm -f conftest.er1
10469   cat conftest.err >&5
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); } &&
10472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10473   { (case "(($ac_try" in
10474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475   *) ac_try_echo=$ac_try;;
10476 esac
10477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478   (eval "$ac_try") 2>&5
10479   ac_status=$?
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); }; } &&
10482          { ac_try='test -s conftest$ac_exeext'
10483   { (case "(($ac_try" in
10484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485   *) ac_try_echo=$ac_try;;
10486 esac
10487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488   (eval "$ac_try") 2>&5
10489   ac_status=$?
10490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491   (exit $ac_status); }; }; then
10492   eval "$as_ac_var=yes"
10493 else
10494   echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10496
10497         eval "$as_ac_var=no"
10498 fi
10499
10500 rm -f core conftest.err conftest.$ac_objext \
10501       conftest$ac_exeext conftest.$ac_ext
10502 fi
10503 ac_res=`eval echo '${'$as_ac_var'}'`
10504                { echo "$as_me:$LINENO: result: $ac_res" >&5
10505 echo "${ECHO_T}$ac_res" >&6; }
10506 if test `eval echo '${'$as_ac_var'}'` = yes; then
10507   cat >>confdefs.h <<_ACEOF
10508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10509 _ACEOF
10510
10511 fi
10512 done
10513
10514   LIBS="$lt_save_LIBS"
10515 fi
10516 ac_ext=c
10517 ac_cpp='$CPP $CPPFLAGS'
10518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10521
10522
10523
10524 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10525 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10526 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10527   echo $ECHO_N "(cached) $ECHO_C" >&6
10528 else
10529   ac_cv_sys_symbol_underscore=no
10530   cat > conftest.$ac_ext <<EOF
10531 void nm_test_func(){}
10532 int main(){nm_test_func;return 0;}
10533 EOF
10534   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10535   (eval $ac_compile) 2>&5
10536   ac_status=$?
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); }; then
10539     # Now try to grab the symbols.
10540     ac_nlist=conftest.nm
10541     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10542   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10543   ac_status=$?
10544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545   (exit $ac_status); } && test -s "$ac_nlist"; then
10546       # See whether the symbols have a leading underscore.
10547       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10548         ac_cv_sys_symbol_underscore=yes
10549       else
10550         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10551           :
10552         else
10553           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10554         fi
10555       fi
10556     else
10557       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10558     fi
10559   else
10560     echo "configure: failed program was:" >&5
10561     cat conftest.c >&5
10562   fi
10563   rm -rf conftest*
10564
10565 fi
10566 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10567 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10568
10569
10570 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10571   if test x"$libltdl_cv_func_dlopen" = xyes ||
10572      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10573         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10574 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10575 if test "${libltdl_cv_need_uscore+set}" = set; then
10576   echo $ECHO_N "(cached) $ECHO_C" >&6
10577 else
10578   libltdl_cv_need_uscore=unknown
10579           save_LIBS="$LIBS"
10580           LIBS="$LIBS $LIBADD_DL"
10581           if test "$cross_compiling" = yes; then :
10582   libltdl_cv_need_uscore=cross
10583 else
10584   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10585   lt_status=$lt_dlunknown
10586   cat > conftest.$ac_ext <<EOF
10587 #line 10587 "configure"
10588 #include "confdefs.h"
10589
10590 #if HAVE_DLFCN_H
10591 #include <dlfcn.h>
10592 #endif
10593
10594 #include <stdio.h>
10595
10596 #ifdef RTLD_GLOBAL
10597 #  define LT_DLGLOBAL           RTLD_GLOBAL
10598 #else
10599 #  ifdef DL_GLOBAL
10600 #    define LT_DLGLOBAL         DL_GLOBAL
10601 #  else
10602 #    define LT_DLGLOBAL         0
10603 #  endif
10604 #endif
10605
10606 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10607    find out it does not work in some platform. */
10608 #ifndef LT_DLLAZY_OR_NOW
10609 #  ifdef RTLD_LAZY
10610 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10611 #  else
10612 #    ifdef DL_LAZY
10613 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10614 #    else
10615 #      ifdef RTLD_NOW
10616 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10617 #      else
10618 #        ifdef DL_NOW
10619 #          define LT_DLLAZY_OR_NOW      DL_NOW
10620 #        else
10621 #          define LT_DLLAZY_OR_NOW      0
10622 #        endif
10623 #      endif
10624 #    endif
10625 #  endif
10626 #endif
10627
10628 #ifdef __cplusplus
10629 extern "C" void exit (int);
10630 #endif
10631
10632 void fnord() { int i=42;}
10633 int main ()
10634 {
10635   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10636   int status = $lt_dlunknown;
10637
10638   if (self)
10639     {
10640       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10641       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10642       /* dlclose (self); */
10643     }
10644   else
10645     puts (dlerror ());
10646
10647     exit (status);
10648 }
10649 EOF
10650   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10651   (eval $ac_link) 2>&5
10652   ac_status=$?
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10655     (./conftest; exit; ) >&5 2>/dev/null
10656     lt_status=$?
10657     case x$lt_status in
10658       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10659       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10660       x$lt_dlunknown|x*)  ;;
10661     esac
10662   else :
10663     # compilation failed
10664
10665   fi
10666 fi
10667 rm -fr conftest*
10668
10669           LIBS="$save_LIBS"
10670
10671 fi
10672 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10673 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10674   fi
10675 fi
10676
10677 if test x"$libltdl_cv_need_uscore" = xyes; then
10678
10679 cat >>confdefs.h <<\_ACEOF
10680 #define NEED_USCORE 1
10681 _ACEOF
10682
10683 fi
10684
10685
10686 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10687 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10688 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10689   echo $ECHO_N "(cached) $ECHO_C" >&6
10690 else
10691   # PORTME does your system automatically load deplibs for dlopen?
10692   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10693   # For now, we just catch OSes we know something about -- in the
10694   # future, we'll try test this programmatically.
10695   libltdl_cv_sys_dlopen_deplibs=unknown
10696   case "$host_os" in
10697   aix3*|aix4.1.*|aix4.2.*)
10698     # Unknown whether this is true for these versions of AIX, but
10699     # we want this `case' here to explicitly catch those versions.
10700     libltdl_cv_sys_dlopen_deplibs=unknown
10701     ;;
10702   aix[45]*)
10703     libltdl_cv_sys_dlopen_deplibs=yes
10704     ;;
10705   darwin*)
10706     # Assuming the user has installed a libdl from somewhere, this is true
10707     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10708     libltdl_cv_sys_dlopen_deplibs=yes
10709     ;;
10710   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10711     # GNU and its variants, using gnu ld.so (Glibc)
10712     libltdl_cv_sys_dlopen_deplibs=yes
10713     ;;
10714   hpux10*|hpux11*)
10715     libltdl_cv_sys_dlopen_deplibs=yes
10716     ;;
10717   interix*)
10718     libltdl_cv_sys_dlopen_deplibs=yes
10719     ;;
10720   irix[12345]*|irix6.[01]*)
10721     # Catch all versions of IRIX before 6.2, and indicate that we don't
10722     # know how it worked for any of those versions.
10723     libltdl_cv_sys_dlopen_deplibs=unknown
10724     ;;
10725   irix*)
10726     # The case above catches anything before 6.2, and it's known that
10727     # at 6.2 and later dlopen does load deplibs.
10728     libltdl_cv_sys_dlopen_deplibs=yes
10729     ;;
10730   netbsd*)
10731     libltdl_cv_sys_dlopen_deplibs=yes
10732     ;;
10733   openbsd*)
10734     libltdl_cv_sys_dlopen_deplibs=yes
10735     ;;
10736   osf[1234]*)
10737     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10738     # it did *not* use an RPATH in a shared library to find objects the
10739     # library depends on, so we explictly say `no'.
10740     libltdl_cv_sys_dlopen_deplibs=no
10741     ;;
10742   osf5.0|osf5.0a|osf5.1)
10743     # dlopen *does* load deplibs and with the right loader patch applied
10744     # it even uses RPATH in a shared library to search for shared objects
10745     # that the library depends on, but there's no easy way to know if that
10746     # patch is installed.  Since this is the case, all we can really
10747     # say is unknown -- it depends on the patch being installed.  If
10748     # it is, this changes to `yes'.  Without it, it would be `no'.
10749     libltdl_cv_sys_dlopen_deplibs=unknown
10750     ;;
10751   osf*)
10752     # the two cases above should catch all versions of osf <= 5.1.  Read
10753     # the comments above for what we know about them.
10754     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10755     # is used to find them so we can finally say `yes'.
10756     libltdl_cv_sys_dlopen_deplibs=yes
10757     ;;
10758   solaris*)
10759     libltdl_cv_sys_dlopen_deplibs=yes
10760     ;;
10761   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10762     libltdl_cv_sys_dlopen_deplibs=yes
10763     ;;
10764   esac
10765
10766 fi
10767 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10768 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10769 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10770
10771 cat >>confdefs.h <<\_ACEOF
10772 #define LTDL_DLOPEN_DEPLIBS 1
10773 _ACEOF
10774
10775 fi
10776
10777
10778 for ac_header in argz.h
10779 do
10780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10782   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10785   echo $ECHO_N "(cached) $ECHO_C" >&6
10786 fi
10787 ac_res=`eval echo '${'$as_ac_Header'}'`
10788                { echo "$as_me:$LINENO: result: $ac_res" >&5
10789 echo "${ECHO_T}$ac_res" >&6; }
10790 else
10791   # Is the header compilable?
10792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10794 cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h.  */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h.  */
10800 $ac_includes_default
10801 #include <$ac_header>
10802 _ACEOF
10803 rm -f conftest.$ac_objext
10804 if { (ac_try="$ac_compile"
10805 case "(($ac_try" in
10806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807   *) ac_try_echo=$ac_try;;
10808 esac
10809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810   (eval "$ac_compile") 2>conftest.er1
10811   ac_status=$?
10812   grep -v '^ *+' conftest.er1 >conftest.err
10813   rm -f conftest.er1
10814   cat conftest.err >&5
10815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816   (exit $ac_status); } &&
10817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10818   { (case "(($ac_try" in
10819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820   *) ac_try_echo=$ac_try;;
10821 esac
10822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823   (eval "$ac_try") 2>&5
10824   ac_status=$?
10825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826   (exit $ac_status); }; } &&
10827          { ac_try='test -s conftest.$ac_objext'
10828   { (case "(($ac_try" in
10829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830   *) ac_try_echo=$ac_try;;
10831 esac
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833   (eval "$ac_try") 2>&5
10834   ac_status=$?
10835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836   (exit $ac_status); }; }; then
10837   ac_header_compiler=yes
10838 else
10839   echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10841
10842         ac_header_compiler=no
10843 fi
10844
10845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10846 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10847 echo "${ECHO_T}$ac_header_compiler" >&6; }
10848
10849 # Is the header present?
10850 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10852 cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h.  */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h.  */
10858 #include <$ac_header>
10859 _ACEOF
10860 if { (ac_try="$ac_cpp conftest.$ac_ext"
10861 case "(($ac_try" in
10862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863   *) ac_try_echo=$ac_try;;
10864 esac
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10867   ac_status=$?
10868   grep -v '^ *+' conftest.er1 >conftest.err
10869   rm -f conftest.er1
10870   cat conftest.err >&5
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); } >/dev/null; then
10873   if test -s conftest.err; then
10874     ac_cpp_err=$ac_c_preproc_warn_flag
10875     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10876   else
10877     ac_cpp_err=
10878   fi
10879 else
10880   ac_cpp_err=yes
10881 fi
10882 if test -z "$ac_cpp_err"; then
10883   ac_header_preproc=yes
10884 else
10885   echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10887
10888   ac_header_preproc=no
10889 fi
10890
10891 rm -f conftest.err conftest.$ac_ext
10892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10893 echo "${ECHO_T}$ac_header_preproc" >&6; }
10894
10895 # So?  What about this header?
10896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10897   yes:no: )
10898     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10902     ac_header_preproc=yes
10903     ;;
10904   no:yes:* )
10905     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10907     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10908 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10909     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10911     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10912 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10915     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10917     ( cat <<\_ASBOX
10918 ## ----------------------------------- ##
10919 ## Report this to llvmbugs@cs.uiuc.edu ##
10920 ## ----------------------------------- ##
10921 _ASBOX
10922      ) | sed "s/^/$as_me: WARNING:     /" >&2
10923     ;;
10924 esac
10925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10928   echo $ECHO_N "(cached) $ECHO_C" >&6
10929 else
10930   eval "$as_ac_Header=\$ac_header_preproc"
10931 fi
10932 ac_res=`eval echo '${'$as_ac_Header'}'`
10933                { echo "$as_me:$LINENO: result: $ac_res" >&5
10934 echo "${ECHO_T}$ac_res" >&6; }
10935
10936 fi
10937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10938   cat >>confdefs.h <<_ACEOF
10939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10940 _ACEOF
10941
10942 fi
10943
10944 done
10945
10946
10947 { echo "$as_me:$LINENO: checking for error_t" >&5
10948 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10949 if test "${ac_cv_type_error_t+set}" = set; then
10950   echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952   cat >conftest.$ac_ext <<_ACEOF
10953 /* confdefs.h.  */
10954 _ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h.  */
10958 #if HAVE_ARGZ_H
10959 #  include <argz.h>
10960 #endif
10961
10962 typedef error_t ac__type_new_;
10963 int
10964 main ()
10965 {
10966 if ((ac__type_new_ *) 0)
10967   return 0;
10968 if (sizeof (ac__type_new_))
10969   return 0;
10970   ;
10971   return 0;
10972 }
10973 _ACEOF
10974 rm -f conftest.$ac_objext
10975 if { (ac_try="$ac_compile"
10976 case "(($ac_try" in
10977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978   *) ac_try_echo=$ac_try;;
10979 esac
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981   (eval "$ac_compile") 2>conftest.er1
10982   ac_status=$?
10983   grep -v '^ *+' conftest.er1 >conftest.err
10984   rm -f conftest.er1
10985   cat conftest.err >&5
10986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987   (exit $ac_status); } &&
10988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10989   { (case "(($ac_try" in
10990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991   *) ac_try_echo=$ac_try;;
10992 esac
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994   (eval "$ac_try") 2>&5
10995   ac_status=$?
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); }; } &&
10998          { ac_try='test -s conftest.$ac_objext'
10999   { (case "(($ac_try" in
11000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001   *) ac_try_echo=$ac_try;;
11002 esac
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004   (eval "$ac_try") 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); }; }; then
11008   ac_cv_type_error_t=yes
11009 else
11010   echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11012
11013         ac_cv_type_error_t=no
11014 fi
11015
11016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017 fi
11018 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11019 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11020 if test $ac_cv_type_error_t = yes; then
11021
11022 cat >>confdefs.h <<_ACEOF
11023 #define HAVE_ERROR_T 1
11024 _ACEOF
11025
11026
11027 else
11028
11029 cat >>confdefs.h <<\_ACEOF
11030 #define error_t int
11031 _ACEOF
11032
11033 fi
11034
11035
11036
11037
11038
11039
11040
11041 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11042 do
11043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11047   echo $ECHO_N "(cached) $ECHO_C" >&6
11048 else
11049   cat >conftest.$ac_ext <<_ACEOF
11050 /* confdefs.h.  */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h.  */
11055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11057 #define $ac_func innocuous_$ac_func
11058
11059 /* System header to define __stub macros and hopefully few prototypes,
11060     which can conflict with char $ac_func (); below.
11061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11062     <limits.h> exists even on freestanding compilers.  */
11063
11064 #ifdef __STDC__
11065 # include <limits.h>
11066 #else
11067 # include <assert.h>
11068 #endif
11069
11070 #undef $ac_func
11071
11072 /* Override any GCC internal prototype to avoid an error.
11073    Use char because int might match the return type of a GCC
11074    builtin and then its argument prototype would still apply.  */
11075 #ifdef __cplusplus
11076 extern "C"
11077 #endif
11078 char $ac_func ();
11079 /* The GNU C library defines this for functions which it implements
11080     to always fail with ENOSYS.  Some functions are actually named
11081     something starting with __ and the normal name is an alias.  */
11082 #if defined __stub_$ac_func || defined __stub___$ac_func
11083 choke me
11084 #endif
11085
11086 int
11087 main ()
11088 {
11089 return $ac_func ();
11090   ;
11091   return 0;
11092 }
11093 _ACEOF
11094 rm -f conftest.$ac_objext conftest$ac_exeext
11095 if { (ac_try="$ac_link"
11096 case "(($ac_try" in
11097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098   *) ac_try_echo=$ac_try;;
11099 esac
11100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101   (eval "$ac_link") 2>conftest.er1
11102   ac_status=$?
11103   grep -v '^ *+' conftest.er1 >conftest.err
11104   rm -f conftest.er1
11105   cat conftest.err >&5
11106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107   (exit $ac_status); } &&
11108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11109   { (case "(($ac_try" in
11110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111   *) ac_try_echo=$ac_try;;
11112 esac
11113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114   (eval "$ac_try") 2>&5
11115   ac_status=$?
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); }; } &&
11118          { ac_try='test -s conftest$ac_exeext'
11119   { (case "(($ac_try" in
11120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121   *) ac_try_echo=$ac_try;;
11122 esac
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124   (eval "$ac_try") 2>&5
11125   ac_status=$?
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); }; }; then
11128   eval "$as_ac_var=yes"
11129 else
11130   echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11132
11133         eval "$as_ac_var=no"
11134 fi
11135
11136 rm -f core conftest.err conftest.$ac_objext \
11137       conftest$ac_exeext conftest.$ac_ext
11138 fi
11139 ac_res=`eval echo '${'$as_ac_var'}'`
11140                { echo "$as_me:$LINENO: result: $ac_res" >&5
11141 echo "${ECHO_T}$ac_res" >&6; }
11142 if test `eval echo '${'$as_ac_var'}'` = yes; then
11143   cat >>confdefs.h <<_ACEOF
11144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11145 _ACEOF
11146
11147 fi
11148 done
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11178                   stdio.h unistd.h
11179 do
11180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11182   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11185   echo $ECHO_N "(cached) $ECHO_C" >&6
11186 fi
11187 ac_res=`eval echo '${'$as_ac_Header'}'`
11188                { echo "$as_me:$LINENO: result: $ac_res" >&5
11189 echo "${ECHO_T}$ac_res" >&6; }
11190 else
11191   # Is the header compilable?
11192 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11194 cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h.  */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h.  */
11200 $ac_includes_default
11201 #include <$ac_header>
11202 _ACEOF
11203 rm -f conftest.$ac_objext
11204 if { (ac_try="$ac_compile"
11205 case "(($ac_try" in
11206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11207   *) ac_try_echo=$ac_try;;
11208 esac
11209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11210   (eval "$ac_compile") 2>conftest.er1
11211   ac_status=$?
11212   grep -v '^ *+' conftest.er1 >conftest.err
11213   rm -f conftest.er1
11214   cat conftest.err >&5
11215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216   (exit $ac_status); } &&
11217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11218   { (case "(($ac_try" in
11219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220   *) ac_try_echo=$ac_try;;
11221 esac
11222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223   (eval "$ac_try") 2>&5
11224   ac_status=$?
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); }; } &&
11227          { ac_try='test -s conftest.$ac_objext'
11228   { (case "(($ac_try" in
11229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230   *) ac_try_echo=$ac_try;;
11231 esac
11232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233   (eval "$ac_try") 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); }; }; then
11237   ac_header_compiler=yes
11238 else
11239   echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11241
11242         ac_header_compiler=no
11243 fi
11244
11245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11247 echo "${ECHO_T}$ac_header_compiler" >&6; }
11248
11249 # Is the header present?
11250 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11252 cat >conftest.$ac_ext <<_ACEOF
11253 /* confdefs.h.  */
11254 _ACEOF
11255 cat confdefs.h >>conftest.$ac_ext
11256 cat >>conftest.$ac_ext <<_ACEOF
11257 /* end confdefs.h.  */
11258 #include <$ac_header>
11259 _ACEOF
11260 if { (ac_try="$ac_cpp conftest.$ac_ext"
11261 case "(($ac_try" in
11262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263   *) ac_try_echo=$ac_try;;
11264 esac
11265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11267   ac_status=$?
11268   grep -v '^ *+' conftest.er1 >conftest.err
11269   rm -f conftest.er1
11270   cat conftest.err >&5
11271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272   (exit $ac_status); } >/dev/null; then
11273   if test -s conftest.err; then
11274     ac_cpp_err=$ac_c_preproc_warn_flag
11275     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11276   else
11277     ac_cpp_err=
11278   fi
11279 else
11280   ac_cpp_err=yes
11281 fi
11282 if test -z "$ac_cpp_err"; then
11283   ac_header_preproc=yes
11284 else
11285   echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11287
11288   ac_header_preproc=no
11289 fi
11290
11291 rm -f conftest.err conftest.$ac_ext
11292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11293 echo "${ECHO_T}$ac_header_preproc" >&6; }
11294
11295 # So?  What about this header?
11296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11297   yes:no: )
11298     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11300     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11302     ac_header_preproc=yes
11303     ;;
11304   no:yes:* )
11305     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11307     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11308 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11309     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11311     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11312 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11315     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11317     ( cat <<\_ASBOX
11318 ## ----------------------------------- ##
11319 ## Report this to llvmbugs@cs.uiuc.edu ##
11320 ## ----------------------------------- ##
11321 _ASBOX
11322      ) | sed "s/^/$as_me: WARNING:     /" >&2
11323     ;;
11324 esac
11325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11328   echo $ECHO_N "(cached) $ECHO_C" >&6
11329 else
11330   eval "$as_ac_Header=\$ac_header_preproc"
11331 fi
11332 ac_res=`eval echo '${'$as_ac_Header'}'`
11333                { echo "$as_me:$LINENO: result: $ac_res" >&5
11334 echo "${ECHO_T}$ac_res" >&6; }
11335
11336 fi
11337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11338   cat >>confdefs.h <<_ACEOF
11339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11340 _ACEOF
11341
11342 fi
11343
11344 done
11345
11346
11347
11348
11349
11350 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11351 do
11352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11357   echo $ECHO_N "(cached) $ECHO_C" >&6
11358 fi
11359 ac_res=`eval echo '${'$as_ac_Header'}'`
11360                { echo "$as_me:$LINENO: result: $ac_res" >&5
11361 echo "${ECHO_T}$ac_res" >&6; }
11362 else
11363   # Is the header compilable?
11364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11366 cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h.  */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h.  */
11372 $ac_includes_default
11373 #include <$ac_header>
11374 _ACEOF
11375 rm -f conftest.$ac_objext
11376 if { (ac_try="$ac_compile"
11377 case "(($ac_try" in
11378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379   *) ac_try_echo=$ac_try;;
11380 esac
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382   (eval "$ac_compile") 2>conftest.er1
11383   ac_status=$?
11384   grep -v '^ *+' conftest.er1 >conftest.err
11385   rm -f conftest.er1
11386   cat conftest.err >&5
11387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388   (exit $ac_status); } &&
11389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11390   { (case "(($ac_try" in
11391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392   *) ac_try_echo=$ac_try;;
11393 esac
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395   (eval "$ac_try") 2>&5
11396   ac_status=$?
11397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398   (exit $ac_status); }; } &&
11399          { ac_try='test -s conftest.$ac_objext'
11400   { (case "(($ac_try" in
11401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402   *) ac_try_echo=$ac_try;;
11403 esac
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405   (eval "$ac_try") 2>&5
11406   ac_status=$?
11407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); }; }; then
11409   ac_header_compiler=yes
11410 else
11411   echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11413
11414         ac_header_compiler=no
11415 fi
11416
11417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11419 echo "${ECHO_T}$ac_header_compiler" >&6; }
11420
11421 # Is the header present?
11422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h.  */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h.  */
11430 #include <$ac_header>
11431 _ACEOF
11432 if { (ac_try="$ac_cpp conftest.$ac_ext"
11433 case "(($ac_try" in
11434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435   *) ac_try_echo=$ac_try;;
11436 esac
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11439   ac_status=$?
11440   grep -v '^ *+' conftest.er1 >conftest.err
11441   rm -f conftest.er1
11442   cat conftest.err >&5
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); } >/dev/null; then
11445   if test -s conftest.err; then
11446     ac_cpp_err=$ac_c_preproc_warn_flag
11447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11448   else
11449     ac_cpp_err=
11450   fi
11451 else
11452   ac_cpp_err=yes
11453 fi
11454 if test -z "$ac_cpp_err"; then
11455   ac_header_preproc=yes
11456 else
11457   echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11459
11460   ac_header_preproc=no
11461 fi
11462
11463 rm -f conftest.err conftest.$ac_ext
11464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11465 echo "${ECHO_T}$ac_header_preproc" >&6; }
11466
11467 # So?  What about this header?
11468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11469   yes:no: )
11470     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11474     ac_header_preproc=yes
11475     ;;
11476   no:yes:* )
11477     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11479     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11480 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11481     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11483     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11484 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11487     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11489     ( cat <<\_ASBOX
11490 ## ----------------------------------- ##
11491 ## Report this to llvmbugs@cs.uiuc.edu ##
11492 ## ----------------------------------- ##
11493 _ASBOX
11494      ) | sed "s/^/$as_me: WARNING:     /" >&2
11495     ;;
11496 esac
11497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500   echo $ECHO_N "(cached) $ECHO_C" >&6
11501 else
11502   eval "$as_ac_Header=\$ac_header_preproc"
11503 fi
11504 ac_res=`eval echo '${'$as_ac_Header'}'`
11505                { echo "$as_me:$LINENO: result: $ac_res" >&5
11506 echo "${ECHO_T}$ac_res" >&6; }
11507
11508 fi
11509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11510   cat >>confdefs.h <<_ACEOF
11511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11512 _ACEOF
11513
11514 fi
11515
11516 done
11517
11518
11519
11520 for ac_header in string.h strings.h
11521 do
11522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11524   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11527   echo $ECHO_N "(cached) $ECHO_C" >&6
11528 fi
11529 ac_res=`eval echo '${'$as_ac_Header'}'`
11530                { echo "$as_me:$LINENO: result: $ac_res" >&5
11531 echo "${ECHO_T}$ac_res" >&6; }
11532 else
11533   # Is the header compilable?
11534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11536 cat >conftest.$ac_ext <<_ACEOF
11537 /* confdefs.h.  */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h.  */
11542 $ac_includes_default
11543 #include <$ac_header>
11544 _ACEOF
11545 rm -f conftest.$ac_objext
11546 if { (ac_try="$ac_compile"
11547 case "(($ac_try" in
11548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549   *) ac_try_echo=$ac_try;;
11550 esac
11551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552   (eval "$ac_compile") 2>conftest.er1
11553   ac_status=$?
11554   grep -v '^ *+' conftest.er1 >conftest.err
11555   rm -f conftest.er1
11556   cat conftest.err >&5
11557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); } &&
11559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11560   { (case "(($ac_try" in
11561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11562   *) ac_try_echo=$ac_try;;
11563 esac
11564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11565   (eval "$ac_try") 2>&5
11566   ac_status=$?
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); }; } &&
11569          { ac_try='test -s conftest.$ac_objext'
11570   { (case "(($ac_try" in
11571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572   *) ac_try_echo=$ac_try;;
11573 esac
11574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575   (eval "$ac_try") 2>&5
11576   ac_status=$?
11577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578   (exit $ac_status); }; }; then
11579   ac_header_compiler=yes
11580 else
11581   echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11583
11584         ac_header_compiler=no
11585 fi
11586
11587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11589 echo "${ECHO_T}$ac_header_compiler" >&6; }
11590
11591 # Is the header present?
11592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11594 cat >conftest.$ac_ext <<_ACEOF
11595 /* confdefs.h.  */
11596 _ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h.  */
11600 #include <$ac_header>
11601 _ACEOF
11602 if { (ac_try="$ac_cpp conftest.$ac_ext"
11603 case "(($ac_try" in
11604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605   *) ac_try_echo=$ac_try;;
11606 esac
11607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11609   ac_status=$?
11610   grep -v '^ *+' conftest.er1 >conftest.err
11611   rm -f conftest.er1
11612   cat conftest.err >&5
11613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614   (exit $ac_status); } >/dev/null; then
11615   if test -s conftest.err; then
11616     ac_cpp_err=$ac_c_preproc_warn_flag
11617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11618   else
11619     ac_cpp_err=
11620   fi
11621 else
11622   ac_cpp_err=yes
11623 fi
11624 if test -z "$ac_cpp_err"; then
11625   ac_header_preproc=yes
11626 else
11627   echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11629
11630   ac_header_preproc=no
11631 fi
11632
11633 rm -f conftest.err conftest.$ac_ext
11634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11635 echo "${ECHO_T}$ac_header_preproc" >&6; }
11636
11637 # So?  What about this header?
11638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11639   yes:no: )
11640     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11644     ac_header_preproc=yes
11645     ;;
11646   no:yes:* )
11647     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11649     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11650 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11651     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11653     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11654 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11657     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11659     ( cat <<\_ASBOX
11660 ## ----------------------------------- ##
11661 ## Report this to llvmbugs@cs.uiuc.edu ##
11662 ## ----------------------------------- ##
11663 _ASBOX
11664      ) | sed "s/^/$as_me: WARNING:     /" >&2
11665     ;;
11666 esac
11667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11670   echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672   eval "$as_ac_Header=\$ac_header_preproc"
11673 fi
11674 ac_res=`eval echo '${'$as_ac_Header'}'`
11675                { echo "$as_me:$LINENO: result: $ac_res" >&5
11676 echo "${ECHO_T}$ac_res" >&6; }
11677
11678 fi
11679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11680   cat >>confdefs.h <<_ACEOF
11681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11682 _ACEOF
11683  break
11684 fi
11685
11686 done
11687
11688
11689
11690
11691 for ac_func in strchr index
11692 do
11693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11697   echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699   cat >conftest.$ac_ext <<_ACEOF
11700 /* confdefs.h.  */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h.  */
11705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11707 #define $ac_func innocuous_$ac_func
11708
11709 /* System header to define __stub macros and hopefully few prototypes,
11710     which can conflict with char $ac_func (); below.
11711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11712     <limits.h> exists even on freestanding compilers.  */
11713
11714 #ifdef __STDC__
11715 # include <limits.h>
11716 #else
11717 # include <assert.h>
11718 #endif
11719
11720 #undef $ac_func
11721
11722 /* Override any GCC internal prototype to avoid an error.
11723    Use char because int might match the return type of a GCC
11724    builtin and then its argument prototype would still apply.  */
11725 #ifdef __cplusplus
11726 extern "C"
11727 #endif
11728 char $ac_func ();
11729 /* The GNU C library defines this for functions which it implements
11730     to always fail with ENOSYS.  Some functions are actually named
11731     something starting with __ and the normal name is an alias.  */
11732 #if defined __stub_$ac_func || defined __stub___$ac_func
11733 choke me
11734 #endif
11735
11736 int
11737 main ()
11738 {
11739 return $ac_func ();
11740   ;
11741   return 0;
11742 }
11743 _ACEOF
11744 rm -f conftest.$ac_objext conftest$ac_exeext
11745 if { (ac_try="$ac_link"
11746 case "(($ac_try" in
11747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748   *) ac_try_echo=$ac_try;;
11749 esac
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751   (eval "$ac_link") 2>conftest.er1
11752   ac_status=$?
11753   grep -v '^ *+' conftest.er1 >conftest.err
11754   rm -f conftest.er1
11755   cat conftest.err >&5
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); } &&
11758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11759   { (case "(($ac_try" in
11760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11761   *) ac_try_echo=$ac_try;;
11762 esac
11763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11764   (eval "$ac_try") 2>&5
11765   ac_status=$?
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); }; } &&
11768          { ac_try='test -s conftest$ac_exeext'
11769   { (case "(($ac_try" in
11770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771   *) ac_try_echo=$ac_try;;
11772 esac
11773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11774   (eval "$ac_try") 2>&5
11775   ac_status=$?
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); }; }; then
11778   eval "$as_ac_var=yes"
11779 else
11780   echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11782
11783         eval "$as_ac_var=no"
11784 fi
11785
11786 rm -f core conftest.err conftest.$ac_objext \
11787       conftest$ac_exeext conftest.$ac_ext
11788 fi
11789 ac_res=`eval echo '${'$as_ac_var'}'`
11790                { echo "$as_me:$LINENO: result: $ac_res" >&5
11791 echo "${ECHO_T}$ac_res" >&6; }
11792 if test `eval echo '${'$as_ac_var'}'` = yes; then
11793   cat >>confdefs.h <<_ACEOF
11794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11795 _ACEOF
11796  break
11797 fi
11798 done
11799
11800
11801
11802 for ac_func in strrchr rindex
11803 do
11804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11805 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11807 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11808   echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810   cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h.  */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h.  */
11816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11818 #define $ac_func innocuous_$ac_func
11819
11820 /* System header to define __stub macros and hopefully few prototypes,
11821     which can conflict with char $ac_func (); below.
11822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11823     <limits.h> exists even on freestanding compilers.  */
11824
11825 #ifdef __STDC__
11826 # include <limits.h>
11827 #else
11828 # include <assert.h>
11829 #endif
11830
11831 #undef $ac_func
11832
11833 /* Override any GCC internal prototype to avoid an error.
11834    Use char because int might match the return type of a GCC
11835    builtin and then its argument prototype would still apply.  */
11836 #ifdef __cplusplus
11837 extern "C"
11838 #endif
11839 char $ac_func ();
11840 /* The GNU C library defines this for functions which it implements
11841     to always fail with ENOSYS.  Some functions are actually named
11842     something starting with __ and the normal name is an alias.  */
11843 #if defined __stub_$ac_func || defined __stub___$ac_func
11844 choke me
11845 #endif
11846
11847 int
11848 main ()
11849 {
11850 return $ac_func ();
11851   ;
11852   return 0;
11853 }
11854 _ACEOF
11855 rm -f conftest.$ac_objext conftest$ac_exeext
11856 if { (ac_try="$ac_link"
11857 case "(($ac_try" in
11858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859   *) ac_try_echo=$ac_try;;
11860 esac
11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862   (eval "$ac_link") 2>conftest.er1
11863   ac_status=$?
11864   grep -v '^ *+' conftest.er1 >conftest.err
11865   rm -f conftest.er1
11866   cat conftest.err >&5
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); } &&
11869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11870   { (case "(($ac_try" in
11871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872   *) ac_try_echo=$ac_try;;
11873 esac
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875   (eval "$ac_try") 2>&5
11876   ac_status=$?
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); }; } &&
11879          { ac_try='test -s conftest$ac_exeext'
11880   { (case "(($ac_try" in
11881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882   *) ac_try_echo=$ac_try;;
11883 esac
11884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11885   (eval "$ac_try") 2>&5
11886   ac_status=$?
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); }; }; then
11889   eval "$as_ac_var=yes"
11890 else
11891   echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11893
11894         eval "$as_ac_var=no"
11895 fi
11896
11897 rm -f core conftest.err conftest.$ac_objext \
11898       conftest$ac_exeext conftest.$ac_ext
11899 fi
11900 ac_res=`eval echo '${'$as_ac_var'}'`
11901                { echo "$as_me:$LINENO: result: $ac_res" >&5
11902 echo "${ECHO_T}$ac_res" >&6; }
11903 if test `eval echo '${'$as_ac_var'}'` = yes; then
11904   cat >>confdefs.h <<_ACEOF
11905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11906 _ACEOF
11907  break
11908 fi
11909 done
11910
11911
11912
11913 for ac_func in memcpy bcopy
11914 do
11915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11919   echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921   cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h.  */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h.  */
11927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11929 #define $ac_func innocuous_$ac_func
11930
11931 /* System header to define __stub macros and hopefully few prototypes,
11932     which can conflict with char $ac_func (); below.
11933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11934     <limits.h> exists even on freestanding compilers.  */
11935
11936 #ifdef __STDC__
11937 # include <limits.h>
11938 #else
11939 # include <assert.h>
11940 #endif
11941
11942 #undef $ac_func
11943
11944 /* Override any GCC internal prototype to avoid an error.
11945    Use char because int might match the return type of a GCC
11946    builtin and then its argument prototype would still apply.  */
11947 #ifdef __cplusplus
11948 extern "C"
11949 #endif
11950 char $ac_func ();
11951 /* The GNU C library defines this for functions which it implements
11952     to always fail with ENOSYS.  Some functions are actually named
11953     something starting with __ and the normal name is an alias.  */
11954 #if defined __stub_$ac_func || defined __stub___$ac_func
11955 choke me
11956 #endif
11957
11958 int
11959 main ()
11960 {
11961 return $ac_func ();
11962   ;
11963   return 0;
11964 }
11965 _ACEOF
11966 rm -f conftest.$ac_objext conftest$ac_exeext
11967 if { (ac_try="$ac_link"
11968 case "(($ac_try" in
11969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970   *) ac_try_echo=$ac_try;;
11971 esac
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973   (eval "$ac_link") 2>conftest.er1
11974   ac_status=$?
11975   grep -v '^ *+' conftest.er1 >conftest.err
11976   rm -f conftest.er1
11977   cat conftest.err >&5
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); } &&
11980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11981   { (case "(($ac_try" in
11982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983   *) ac_try_echo=$ac_try;;
11984 esac
11985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986   (eval "$ac_try") 2>&5
11987   ac_status=$?
11988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989   (exit $ac_status); }; } &&
11990          { ac_try='test -s conftest$ac_exeext'
11991   { (case "(($ac_try" in
11992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993   *) ac_try_echo=$ac_try;;
11994 esac
11995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996   (eval "$ac_try") 2>&5
11997   ac_status=$?
11998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999   (exit $ac_status); }; }; then
12000   eval "$as_ac_var=yes"
12001 else
12002   echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12004
12005         eval "$as_ac_var=no"
12006 fi
12007
12008 rm -f core conftest.err conftest.$ac_objext \
12009       conftest$ac_exeext conftest.$ac_ext
12010 fi
12011 ac_res=`eval echo '${'$as_ac_var'}'`
12012                { echo "$as_me:$LINENO: result: $ac_res" >&5
12013 echo "${ECHO_T}$ac_res" >&6; }
12014 if test `eval echo '${'$as_ac_var'}'` = yes; then
12015   cat >>confdefs.h <<_ACEOF
12016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12017 _ACEOF
12018  break
12019 fi
12020 done
12021
12022
12023
12024 for ac_func in memmove strcmp
12025 do
12026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12027 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12030   echo $ECHO_N "(cached) $ECHO_C" >&6
12031 else
12032   cat >conftest.$ac_ext <<_ACEOF
12033 /* confdefs.h.  */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h.  */
12038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12040 #define $ac_func innocuous_$ac_func
12041
12042 /* System header to define __stub macros and hopefully few prototypes,
12043     which can conflict with char $ac_func (); below.
12044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12045     <limits.h> exists even on freestanding compilers.  */
12046
12047 #ifdef __STDC__
12048 # include <limits.h>
12049 #else
12050 # include <assert.h>
12051 #endif
12052
12053 #undef $ac_func
12054
12055 /* Override any GCC internal prototype to avoid an error.
12056    Use char because int might match the return type of a GCC
12057    builtin and then its argument prototype would still apply.  */
12058 #ifdef __cplusplus
12059 extern "C"
12060 #endif
12061 char $ac_func ();
12062 /* The GNU C library defines this for functions which it implements
12063     to always fail with ENOSYS.  Some functions are actually named
12064     something starting with __ and the normal name is an alias.  */
12065 #if defined __stub_$ac_func || defined __stub___$ac_func
12066 choke me
12067 #endif
12068
12069 int
12070 main ()
12071 {
12072 return $ac_func ();
12073   ;
12074   return 0;
12075 }
12076 _ACEOF
12077 rm -f conftest.$ac_objext conftest$ac_exeext
12078 if { (ac_try="$ac_link"
12079 case "(($ac_try" in
12080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081   *) ac_try_echo=$ac_try;;
12082 esac
12083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084   (eval "$ac_link") 2>conftest.er1
12085   ac_status=$?
12086   grep -v '^ *+' conftest.er1 >conftest.err
12087   rm -f conftest.er1
12088   cat conftest.err >&5
12089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090   (exit $ac_status); } &&
12091          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12092   { (case "(($ac_try" in
12093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094   *) ac_try_echo=$ac_try;;
12095 esac
12096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097   (eval "$ac_try") 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); }; } &&
12101          { ac_try='test -s conftest$ac_exeext'
12102   { (case "(($ac_try" in
12103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104   *) ac_try_echo=$ac_try;;
12105 esac
12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107   (eval "$ac_try") 2>&5
12108   ac_status=$?
12109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110   (exit $ac_status); }; }; then
12111   eval "$as_ac_var=yes"
12112 else
12113   echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.$ac_ext >&5
12115
12116         eval "$as_ac_var=no"
12117 fi
12118
12119 rm -f core conftest.err conftest.$ac_objext \
12120       conftest$ac_exeext conftest.$ac_ext
12121 fi
12122 ac_res=`eval echo '${'$as_ac_var'}'`
12123                { echo "$as_me:$LINENO: result: $ac_res" >&5
12124 echo "${ECHO_T}$ac_res" >&6; }
12125 if test `eval echo '${'$as_ac_var'}'` = yes; then
12126   cat >>confdefs.h <<_ACEOF
12127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12128 _ACEOF
12129
12130 fi
12131 done
12132
12133
12134
12135
12136 for ac_func in closedir opendir readdir
12137 do
12138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12139 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12141 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12142   echo $ECHO_N "(cached) $ECHO_C" >&6
12143 else
12144   cat >conftest.$ac_ext <<_ACEOF
12145 /* confdefs.h.  */
12146 _ACEOF
12147 cat confdefs.h >>conftest.$ac_ext
12148 cat >>conftest.$ac_ext <<_ACEOF
12149 /* end confdefs.h.  */
12150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12152 #define $ac_func innocuous_$ac_func
12153
12154 /* System header to define __stub macros and hopefully few prototypes,
12155     which can conflict with char $ac_func (); below.
12156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12157     <limits.h> exists even on freestanding compilers.  */
12158
12159 #ifdef __STDC__
12160 # include <limits.h>
12161 #else
12162 # include <assert.h>
12163 #endif
12164
12165 #undef $ac_func
12166
12167 /* Override any GCC internal prototype to avoid an error.
12168    Use char because int might match the return type of a GCC
12169    builtin and then its argument prototype would still apply.  */
12170 #ifdef __cplusplus
12171 extern "C"
12172 #endif
12173 char $ac_func ();
12174 /* The GNU C library defines this for functions which it implements
12175     to always fail with ENOSYS.  Some functions are actually named
12176     something starting with __ and the normal name is an alias.  */
12177 #if defined __stub_$ac_func || defined __stub___$ac_func
12178 choke me
12179 #endif
12180
12181 int
12182 main ()
12183 {
12184 return $ac_func ();
12185   ;
12186   return 0;
12187 }
12188 _ACEOF
12189 rm -f conftest.$ac_objext conftest$ac_exeext
12190 if { (ac_try="$ac_link"
12191 case "(($ac_try" in
12192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12193   *) ac_try_echo=$ac_try;;
12194 esac
12195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12196   (eval "$ac_link") 2>conftest.er1
12197   ac_status=$?
12198   grep -v '^ *+' conftest.er1 >conftest.err
12199   rm -f conftest.er1
12200   cat conftest.err >&5
12201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202   (exit $ac_status); } &&
12203          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12204   { (case "(($ac_try" in
12205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206   *) ac_try_echo=$ac_try;;
12207 esac
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209   (eval "$ac_try") 2>&5
12210   ac_status=$?
12211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); }; } &&
12213          { ac_try='test -s conftest$ac_exeext'
12214   { (case "(($ac_try" in
12215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216   *) ac_try_echo=$ac_try;;
12217 esac
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219   (eval "$ac_try") 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); }; }; then
12223   eval "$as_ac_var=yes"
12224 else
12225   echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12227
12228         eval "$as_ac_var=no"
12229 fi
12230
12231 rm -f core conftest.err conftest.$ac_objext \
12232       conftest$ac_exeext conftest.$ac_ext
12233 fi
12234 ac_res=`eval echo '${'$as_ac_var'}'`
12235                { echo "$as_me:$LINENO: result: $ac_res" >&5
12236 echo "${ECHO_T}$ac_res" >&6; }
12237 if test `eval echo '${'$as_ac_var'}'` = yes; then
12238   cat >>confdefs.h <<_ACEOF
12239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12240 _ACEOF
12241
12242 fi
12243 done
12244
12245
12246 # Check whether --enable-shared was given.
12247 if test "${enable_shared+set}" = set; then
12248   enableval=$enable_shared; p=${PACKAGE-default}
12249     case $enableval in
12250     yes) enable_shared=yes ;;
12251     no) enable_shared=no ;;
12252     *)
12253       enable_shared=no
12254       # Look at the argument we got.  We use all the common list separators.
12255       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12256       for pkg in $enableval; do
12257         IFS="$lt_save_ifs"
12258         if test "X$pkg" = "X$p"; then
12259           enable_shared=yes
12260         fi
12261       done
12262       IFS="$lt_save_ifs"
12263       ;;
12264     esac
12265 else
12266   enable_shared=yes
12267 fi
12268
12269
12270 # Check whether --enable-static was given.
12271 if test "${enable_static+set}" = set; then
12272   enableval=$enable_static; p=${PACKAGE-default}
12273     case $enableval in
12274     yes) enable_static=yes ;;
12275     no) enable_static=no ;;
12276     *)
12277      enable_static=no
12278       # Look at the argument we got.  We use all the common list separators.
12279       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12280       for pkg in $enableval; do
12281         IFS="$lt_save_ifs"
12282         if test "X$pkg" = "X$p"; then
12283           enable_static=yes
12284         fi
12285       done
12286       IFS="$lt_save_ifs"
12287       ;;
12288     esac
12289 else
12290   enable_static=yes
12291 fi
12292
12293
12294 # Check whether --enable-fast-install was given.
12295 if test "${enable_fast_install+set}" = set; then
12296   enableval=$enable_fast_install; p=${PACKAGE-default}
12297     case $enableval in
12298     yes) enable_fast_install=yes ;;
12299     no) enable_fast_install=no ;;
12300     *)
12301       enable_fast_install=no
12302       # Look at the argument we got.  We use all the common list separators.
12303       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12304       for pkg in $enableval; do
12305         IFS="$lt_save_ifs"
12306         if test "X$pkg" = "X$p"; then
12307           enable_fast_install=yes
12308         fi
12309       done
12310       IFS="$lt_save_ifs"
12311       ;;
12312     esac
12313 else
12314   enable_fast_install=yes
12315 fi
12316
12317
12318 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12319 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12320 if test "${lt_cv_path_SED+set}" = set; then
12321   echo $ECHO_N "(cached) $ECHO_C" >&6
12322 else
12323   # Loop through the user's path and test for sed and gsed.
12324 # Then use that list of sed's as ones to test for truncation.
12325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in $PATH
12327 do
12328   IFS=$as_save_IFS
12329   test -z "$as_dir" && as_dir=.
12330   for lt_ac_prog in sed gsed; do
12331     for ac_exec_ext in '' $ac_executable_extensions; do
12332       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12333         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12334       fi
12335     done
12336   done
12337 done
12338 lt_ac_max=0
12339 lt_ac_count=0
12340 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12341 # along with /bin/sed that truncates output.
12342 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12343   test ! -f $lt_ac_sed && continue
12344   cat /dev/null > conftest.in
12345   lt_ac_count=0
12346   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12347   # Check for GNU sed and select it if it is found.
12348   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12349     lt_cv_path_SED=$lt_ac_sed
12350     break
12351   fi
12352   while true; do
12353     cat conftest.in conftest.in >conftest.tmp
12354     mv conftest.tmp conftest.in
12355     cp conftest.in conftest.nl
12356     echo >>conftest.nl
12357     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12358     cmp -s conftest.out conftest.nl || break
12359     # 10000 chars as input seems more than enough
12360     test $lt_ac_count -gt 10 && break
12361     lt_ac_count=`expr $lt_ac_count + 1`
12362     if test $lt_ac_count -gt $lt_ac_max; then
12363       lt_ac_max=$lt_ac_count
12364       lt_cv_path_SED=$lt_ac_sed
12365     fi
12366   done
12367 done
12368
12369 fi
12370
12371 SED=$lt_cv_path_SED
12372 { echo "$as_me:$LINENO: result: $SED" >&5
12373 echo "${ECHO_T}$SED" >&6; }
12374
12375
12376 # Check whether --with-gnu-ld was given.
12377 if test "${with_gnu_ld+set}" = set; then
12378   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12379 else
12380   with_gnu_ld=no
12381 fi
12382
12383 ac_prog=ld
12384 if test "$GCC" = yes; then
12385   # Check if gcc -print-prog-name=ld gives a path.
12386   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12387 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12388   case $host in
12389   *-*-mingw*)
12390     # gcc leaves a trailing carriage return which upsets mingw
12391     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12392   *)
12393     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12394   esac
12395   case $ac_prog in
12396     # Accept absolute paths.
12397     [\\/]* | ?:[\\/]*)
12398       re_direlt='/[^/][^/]*/\.\./'
12399       # Canonicalize the pathname of ld
12400       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12401       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12402         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12403       done
12404       test -z "$LD" && LD="$ac_prog"
12405       ;;
12406   "")
12407     # If it fails, then pretend we aren't using GCC.
12408     ac_prog=ld
12409     ;;
12410   *)
12411     # If it is relative, then search for the first ld in PATH.
12412     with_gnu_ld=unknown
12413     ;;
12414   esac
12415 elif test "$with_gnu_ld" = yes; then
12416   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12417 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12418 else
12419   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12420 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12421 fi
12422 if test "${lt_cv_path_LD+set}" = set; then
12423   echo $ECHO_N "(cached) $ECHO_C" >&6
12424 else
12425   if test -z "$LD"; then
12426   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12427   for ac_dir in $PATH; do
12428     IFS="$lt_save_ifs"
12429     test -z "$ac_dir" && ac_dir=.
12430     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12431       lt_cv_path_LD="$ac_dir/$ac_prog"
12432       # Check to see if the program is GNU ld.  I'd rather use --version,
12433       # but apparently some variants of GNU ld only accept -v.
12434       # Break only if it was the GNU/non-GNU ld that we prefer.
12435       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12436       *GNU* | *'with BFD'*)
12437         test "$with_gnu_ld" != no && break
12438         ;;
12439       *)
12440         test "$with_gnu_ld" != yes && break
12441         ;;
12442       esac
12443     fi
12444   done
12445   IFS="$lt_save_ifs"
12446 else
12447   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12448 fi
12449 fi
12450
12451 LD="$lt_cv_path_LD"
12452 if test -n "$LD"; then
12453   { echo "$as_me:$LINENO: result: $LD" >&5
12454 echo "${ECHO_T}$LD" >&6; }
12455 else
12456   { echo "$as_me:$LINENO: result: no" >&5
12457 echo "${ECHO_T}no" >&6; }
12458 fi
12459 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12460 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12461    { (exit 1); exit 1; }; }
12462 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12463 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12464 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12465   echo $ECHO_N "(cached) $ECHO_C" >&6
12466 else
12467   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12468 case `$LD -v 2>&1 </dev/null` in
12469 *GNU* | *'with BFD'*)
12470   lt_cv_prog_gnu_ld=yes
12471   ;;
12472 *)
12473   lt_cv_prog_gnu_ld=no
12474   ;;
12475 esac
12476 fi
12477 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12478 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12479 with_gnu_ld=$lt_cv_prog_gnu_ld
12480
12481
12482 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12483 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12484 if test "${lt_cv_ld_reload_flag+set}" = set; then
12485   echo $ECHO_N "(cached) $ECHO_C" >&6
12486 else
12487   lt_cv_ld_reload_flag='-r'
12488 fi
12489 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12490 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12491 reload_flag=$lt_cv_ld_reload_flag
12492 case $reload_flag in
12493 "" | " "*) ;;
12494 *) reload_flag=" $reload_flag" ;;
12495 esac
12496 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12497 case $host_os in
12498   darwin*)
12499     if test "$GCC" = yes; then
12500       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12501     else
12502       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12503     fi
12504     ;;
12505 esac
12506
12507 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12508 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12509 if test "${lt_cv_deplibs_check_method+set}" = set; then
12510   echo $ECHO_N "(cached) $ECHO_C" >&6
12511 else
12512   lt_cv_file_magic_cmd='$MAGIC_CMD'
12513 lt_cv_file_magic_test_file=
12514 lt_cv_deplibs_check_method='unknown'
12515 # Need to set the preceding variable on all platforms that support
12516 # interlibrary dependencies.
12517 # 'none' -- dependencies not supported.
12518 # `unknown' -- same as none, but documents that we really don't know.
12519 # 'pass_all' -- all dependencies passed with no checks.
12520 # 'test_compile' -- check by making test program.
12521 # 'file_magic [[regex]]' -- check by looking for files in library path
12522 # which responds to the $file_magic_cmd with a given extended regex.
12523 # If you have `file' or equivalent on your system and you're not sure
12524 # whether `pass_all' will *always* work, you probably want this one.
12525
12526 case $host_os in
12527 aix4* | aix5*)
12528   lt_cv_deplibs_check_method=pass_all
12529   ;;
12530
12531 beos*)
12532   lt_cv_deplibs_check_method=pass_all
12533   ;;
12534
12535 bsdi[45]*)
12536   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12537   lt_cv_file_magic_cmd='/usr/bin/file -L'
12538   lt_cv_file_magic_test_file=/shlib/libc.so
12539   ;;
12540
12541 cygwin*)
12542   # func_win32_libid is a shell function defined in ltmain.sh
12543   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12544   lt_cv_file_magic_cmd='func_win32_libid'
12545   ;;
12546
12547 mingw* | pw32*)
12548   # Base MSYS/MinGW do not provide the 'file' command needed by
12549   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12550   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12551   lt_cv_file_magic_cmd='$OBJDUMP -f'
12552   ;;
12553
12554 darwin* | rhapsody*)
12555   lt_cv_deplibs_check_method=pass_all
12556   ;;
12557
12558 freebsd* | kfreebsd*-gnu | dragonfly*)
12559   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12560     case $host_cpu in
12561     i*86 )
12562       # Not sure whether the presence of OpenBSD here was a mistake.
12563       # Let's accept both of them until this is cleared up.
12564       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12565       lt_cv_file_magic_cmd=/usr/bin/file
12566       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12567       ;;
12568     esac
12569   else
12570     lt_cv_deplibs_check_method=pass_all
12571   fi
12572   ;;
12573
12574 gnu*)
12575   lt_cv_deplibs_check_method=pass_all
12576   ;;
12577
12578 hpux10.20* | hpux11*)
12579   lt_cv_file_magic_cmd=/usr/bin/file
12580   case $host_cpu in
12581   ia64*)
12582     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12583     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12584     ;;
12585   hppa*64*)
12586     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]'
12587     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12588     ;;
12589   *)
12590     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12591     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12592     ;;
12593   esac
12594   ;;
12595
12596 interix3*)
12597   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12598   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12599   ;;
12600
12601 irix5* | irix6* | nonstopux*)
12602   case $LD in
12603   *-32|*"-32 ") libmagic=32-bit;;
12604   *-n32|*"-n32 ") libmagic=N32;;
12605   *-64|*"-64 ") libmagic=64-bit;;
12606   *) libmagic=never-match;;
12607   esac
12608   lt_cv_deplibs_check_method=pass_all
12609   ;;
12610
12611 # This must be Linux ELF.
12612 linux*)
12613   lt_cv_deplibs_check_method=pass_all
12614   ;;
12615
12616 netbsd*)
12617   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12618     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12619   else
12620     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12621   fi
12622   ;;
12623
12624 newos6*)
12625   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12626   lt_cv_file_magic_cmd=/usr/bin/file
12627   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12628   ;;
12629
12630 nto-qnx*)
12631   lt_cv_deplibs_check_method=unknown
12632   ;;
12633
12634 openbsd*)
12635   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12636     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12637   else
12638     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12639   fi
12640   ;;
12641
12642 osf3* | osf4* | osf5*)
12643   lt_cv_deplibs_check_method=pass_all
12644   ;;
12645
12646 solaris*)
12647   lt_cv_deplibs_check_method=pass_all
12648   ;;
12649
12650 sysv4 | sysv4.3*)
12651   case $host_vendor in
12652   motorola)
12653     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]'
12654     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12655     ;;
12656   ncr)
12657     lt_cv_deplibs_check_method=pass_all
12658     ;;
12659   sequent)
12660     lt_cv_file_magic_cmd='/bin/file'
12661     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12662     ;;
12663   sni)
12664     lt_cv_file_magic_cmd='/bin/file'
12665     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12666     lt_cv_file_magic_test_file=/lib/libc.so
12667     ;;
12668   siemens)
12669     lt_cv_deplibs_check_method=pass_all
12670     ;;
12671   pc)
12672     lt_cv_deplibs_check_method=pass_all
12673     ;;
12674   esac
12675   ;;
12676
12677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12678   lt_cv_deplibs_check_method=pass_all
12679   ;;
12680 esac
12681
12682 fi
12683 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12684 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12685 file_magic_cmd=$lt_cv_file_magic_cmd
12686 deplibs_check_method=$lt_cv_deplibs_check_method
12687 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12688
12689
12690
12691 # If no C compiler was specified, use CC.
12692 LTCC=${LTCC-"$CC"}
12693
12694 # If no C compiler flags were specified, use CFLAGS.
12695 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12696
12697 # Allow CC to be a program name with arguments.
12698 compiler=$CC
12699
12700 # Check whether --enable-libtool-lock was given.
12701 if test "${enable_libtool_lock+set}" = set; then
12702   enableval=$enable_libtool_lock;
12703 fi
12704
12705 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12706
12707 # Some flags need to be propagated to the compiler or linker for good
12708 # libtool support.
12709 case $host in
12710 ia64-*-hpux*)
12711   # Find out which ABI we are using.
12712   echo 'int i;' > conftest.$ac_ext
12713   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12714   (eval $ac_compile) 2>&5
12715   ac_status=$?
12716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717   (exit $ac_status); }; then
12718     case `/usr/bin/file conftest.$ac_objext` in
12719     *ELF-32*)
12720       HPUX_IA64_MODE="32"
12721       ;;
12722     *ELF-64*)
12723       HPUX_IA64_MODE="64"
12724       ;;
12725     esac
12726   fi
12727   rm -rf conftest*
12728   ;;
12729 *-*-irix6*)
12730   # Find out which ABI we are using.
12731   echo '#line 12731 "configure"' > conftest.$ac_ext
12732   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12733   (eval $ac_compile) 2>&5
12734   ac_status=$?
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); }; then
12737    if test "$lt_cv_prog_gnu_ld" = yes; then
12738     case `/usr/bin/file conftest.$ac_objext` in
12739     *32-bit*)
12740       LD="${LD-ld} -melf32bsmip"
12741       ;;
12742     *N32*)
12743       LD="${LD-ld} -melf32bmipn32"
12744       ;;
12745     *64-bit*)
12746       LD="${LD-ld} -melf64bmip"
12747       ;;
12748     esac
12749    else
12750     case `/usr/bin/file conftest.$ac_objext` in
12751     *32-bit*)
12752       LD="${LD-ld} -32"
12753       ;;
12754     *N32*)
12755       LD="${LD-ld} -n32"
12756       ;;
12757     *64-bit*)
12758       LD="${LD-ld} -64"
12759       ;;
12760     esac
12761    fi
12762   fi
12763   rm -rf conftest*
12764   ;;
12765
12766 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12767   # Find out which ABI we are using.
12768   echo 'int i;' > conftest.$ac_ext
12769   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12770   (eval $ac_compile) 2>&5
12771   ac_status=$?
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); }; then
12774     case `/usr/bin/file conftest.o` in
12775     *32-bit*)
12776       case $host in
12777         x86_64-*linux*)
12778           LD="${LD-ld} -m elf_i386"
12779           ;;
12780         ppc64-*linux*|powerpc64-*linux*)
12781           LD="${LD-ld} -m elf32ppclinux"
12782           ;;
12783         s390x-*linux*)
12784           LD="${LD-ld} -m elf_s390"
12785           ;;
12786         sparc64-*linux*)
12787           LD="${LD-ld} -m elf32_sparc"
12788           ;;
12789       esac
12790       ;;
12791     *64-bit*)
12792       case $host in
12793         x86_64-*linux*)
12794           LD="${LD-ld} -m elf_x86_64"
12795           ;;
12796         ppc*-*linux*|powerpc*-*linux*)
12797           LD="${LD-ld} -m elf64ppc"
12798           ;;
12799         s390*-*linux*)
12800           LD="${LD-ld} -m elf64_s390"
12801           ;;
12802         sparc*-*linux*)
12803           LD="${LD-ld} -m elf64_sparc"
12804           ;;
12805       esac
12806       ;;
12807     esac
12808   fi
12809   rm -rf conftest*
12810   ;;
12811
12812 *-*-sco3.2v5*)
12813   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12814   SAVE_CFLAGS="$CFLAGS"
12815   CFLAGS="$CFLAGS -belf"
12816   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12817 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12818 if test "${lt_cv_cc_needs_belf+set}" = set; then
12819   echo $ECHO_N "(cached) $ECHO_C" >&6
12820 else
12821   ac_ext=c
12822 ac_cpp='$CPP $CPPFLAGS'
12823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12826
12827      cat >conftest.$ac_ext <<_ACEOF
12828 /* confdefs.h.  */
12829 _ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h.  */
12833
12834 int
12835 main ()
12836 {
12837
12838   ;
12839   return 0;
12840 }
12841 _ACEOF
12842 rm -f conftest.$ac_objext conftest$ac_exeext
12843 if { (ac_try="$ac_link"
12844 case "(($ac_try" in
12845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846   *) ac_try_echo=$ac_try;;
12847 esac
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849   (eval "$ac_link") 2>conftest.er1
12850   ac_status=$?
12851   grep -v '^ *+' conftest.er1 >conftest.err
12852   rm -f conftest.er1
12853   cat conftest.err >&5
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); } &&
12856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12857   { (case "(($ac_try" in
12858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859   *) ac_try_echo=$ac_try;;
12860 esac
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862   (eval "$ac_try") 2>&5
12863   ac_status=$?
12864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865   (exit $ac_status); }; } &&
12866          { ac_try='test -s conftest$ac_exeext'
12867   { (case "(($ac_try" in
12868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869   *) ac_try_echo=$ac_try;;
12870 esac
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872   (eval "$ac_try") 2>&5
12873   ac_status=$?
12874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875   (exit $ac_status); }; }; then
12876   lt_cv_cc_needs_belf=yes
12877 else
12878   echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.$ac_ext >&5
12880
12881         lt_cv_cc_needs_belf=no
12882 fi
12883
12884 rm -f core conftest.err conftest.$ac_objext \
12885       conftest$ac_exeext conftest.$ac_ext
12886      ac_ext=c
12887 ac_cpp='$CPP $CPPFLAGS'
12888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12891
12892 fi
12893 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12894 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12895   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12896     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12897     CFLAGS="$SAVE_CFLAGS"
12898   fi
12899   ;;
12900 sparc*-*solaris*)
12901   # Find out which ABI we are using.
12902   echo 'int i;' > conftest.$ac_ext
12903   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12904   (eval $ac_compile) 2>&5
12905   ac_status=$?
12906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907   (exit $ac_status); }; then
12908     case `/usr/bin/file conftest.o` in
12909     *64-bit*)
12910       case $lt_cv_prog_gnu_ld in
12911       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12912       *)    LD="${LD-ld} -64" ;;
12913       esac
12914       ;;
12915     esac
12916   fi
12917   rm -rf conftest*
12918   ;;
12919
12920
12921 esac
12922
12923 need_locks="$enable_libtool_lock"
12924
12925
12926
12927
12928 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12929     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12930     (test "X$CXX" != "Xg++"))) ; then
12931   ac_ext=cpp
12932 ac_cpp='$CXXCPP $CPPFLAGS'
12933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12936 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12937 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12938 if test -z "$CXXCPP"; then
12939   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12940   echo $ECHO_N "(cached) $ECHO_C" >&6
12941 else
12942       # Double quotes because CXXCPP needs to be expanded
12943     for CXXCPP in "$CXX -E" "/lib/cpp"
12944     do
12945       ac_preproc_ok=false
12946 for ac_cxx_preproc_warn_flag in '' yes
12947 do
12948   # Use a header file that comes with gcc, so configuring glibc
12949   # with a fresh cross-compiler works.
12950   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12951   # <limits.h> exists even on freestanding compilers.
12952   # On the NeXT, cc -E runs the code through the compiler's parser,
12953   # not just through cpp. "Syntax error" is here to catch this case.
12954   cat >conftest.$ac_ext <<_ACEOF
12955 /* confdefs.h.  */
12956 _ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h.  */
12960 #ifdef __STDC__
12961 # include <limits.h>
12962 #else
12963 # include <assert.h>
12964 #endif
12965                      Syntax error
12966 _ACEOF
12967 if { (ac_try="$ac_cpp conftest.$ac_ext"
12968 case "(($ac_try" in
12969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970   *) ac_try_echo=$ac_try;;
12971 esac
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12974   ac_status=$?
12975   grep -v '^ *+' conftest.er1 >conftest.err
12976   rm -f conftest.er1
12977   cat conftest.err >&5
12978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); } >/dev/null; then
12980   if test -s conftest.err; then
12981     ac_cpp_err=$ac_cxx_preproc_warn_flag
12982     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12983   else
12984     ac_cpp_err=
12985   fi
12986 else
12987   ac_cpp_err=yes
12988 fi
12989 if test -z "$ac_cpp_err"; then
12990   :
12991 else
12992   echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12994
12995   # Broken: fails on valid input.
12996 continue
12997 fi
12998
12999 rm -f conftest.err conftest.$ac_ext
13000
13001   # OK, works on sane cases.  Now check whether nonexistent headers
13002   # can be detected and how.
13003   cat >conftest.$ac_ext <<_ACEOF
13004 /* confdefs.h.  */
13005 _ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h.  */
13009 #include <ac_nonexistent.h>
13010 _ACEOF
13011 if { (ac_try="$ac_cpp conftest.$ac_ext"
13012 case "(($ac_try" in
13013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014   *) ac_try_echo=$ac_try;;
13015 esac
13016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13017   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13018   ac_status=$?
13019   grep -v '^ *+' conftest.er1 >conftest.err
13020   rm -f conftest.er1
13021   cat conftest.err >&5
13022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023   (exit $ac_status); } >/dev/null; then
13024   if test -s conftest.err; then
13025     ac_cpp_err=$ac_cxx_preproc_warn_flag
13026     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13027   else
13028     ac_cpp_err=
13029   fi
13030 else
13031   ac_cpp_err=yes
13032 fi
13033 if test -z "$ac_cpp_err"; then
13034   # Broken: success on invalid input.
13035 continue
13036 else
13037   echo "$as_me: failed program was:" >&5
13038 sed 's/^/| /' conftest.$ac_ext >&5
13039
13040   # Passes both tests.
13041 ac_preproc_ok=:
13042 break
13043 fi
13044
13045 rm -f conftest.err conftest.$ac_ext
13046
13047 done
13048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13049 rm -f conftest.err conftest.$ac_ext
13050 if $ac_preproc_ok; then
13051   break
13052 fi
13053
13054     done
13055     ac_cv_prog_CXXCPP=$CXXCPP
13056
13057 fi
13058   CXXCPP=$ac_cv_prog_CXXCPP
13059 else
13060   ac_cv_prog_CXXCPP=$CXXCPP
13061 fi
13062 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13063 echo "${ECHO_T}$CXXCPP" >&6; }
13064 ac_preproc_ok=false
13065 for ac_cxx_preproc_warn_flag in '' yes
13066 do
13067   # Use a header file that comes with gcc, so configuring glibc
13068   # with a fresh cross-compiler works.
13069   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13070   # <limits.h> exists even on freestanding compilers.
13071   # On the NeXT, cc -E runs the code through the compiler's parser,
13072   # not just through cpp. "Syntax error" is here to catch this case.
13073   cat >conftest.$ac_ext <<_ACEOF
13074 /* confdefs.h.  */
13075 _ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h.  */
13079 #ifdef __STDC__
13080 # include <limits.h>
13081 #else
13082 # include <assert.h>
13083 #endif
13084                      Syntax error
13085 _ACEOF
13086 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
13099   if test -s conftest.err; then
13100     ac_cpp_err=$ac_cxx_preproc_warn_flag
13101     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13102   else
13103     ac_cpp_err=
13104   fi
13105 else
13106   ac_cpp_err=yes
13107 fi
13108 if test -z "$ac_cpp_err"; then
13109   :
13110 else
13111   echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13113
13114   # Broken: fails on valid input.
13115 continue
13116 fi
13117
13118 rm -f conftest.err conftest.$ac_ext
13119
13120   # OK, works on sane cases.  Now check whether nonexistent headers
13121   # can be detected and how.
13122   cat >conftest.$ac_ext <<_ACEOF
13123 /* confdefs.h.  */
13124 _ACEOF
13125 cat confdefs.h >>conftest.$ac_ext
13126 cat >>conftest.$ac_ext <<_ACEOF
13127 /* end confdefs.h.  */
13128 #include <ac_nonexistent.h>
13129 _ACEOF
13130 if { (ac_try="$ac_cpp conftest.$ac_ext"
13131 case "(($ac_try" in
13132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133   *) ac_try_echo=$ac_try;;
13134 esac
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13137   ac_status=$?
13138   grep -v '^ *+' conftest.er1 >conftest.err
13139   rm -f conftest.er1
13140   cat conftest.err >&5
13141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142   (exit $ac_status); } >/dev/null; then
13143   if test -s conftest.err; then
13144     ac_cpp_err=$ac_cxx_preproc_warn_flag
13145     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13146   else
13147     ac_cpp_err=
13148   fi
13149 else
13150   ac_cpp_err=yes
13151 fi
13152 if test -z "$ac_cpp_err"; then
13153   # Broken: success on invalid input.
13154 continue
13155 else
13156   echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13158
13159   # Passes both tests.
13160 ac_preproc_ok=:
13161 break
13162 fi
13163
13164 rm -f conftest.err conftest.$ac_ext
13165
13166 done
13167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13168 rm -f conftest.err conftest.$ac_ext
13169 if $ac_preproc_ok; then
13170   :
13171 else
13172   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13173 See \`config.log' for more details." >&5
13174 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13175 See \`config.log' for more details." >&2;}
13176    { (exit 1); exit 1; }; }
13177 fi
13178
13179 ac_ext=cpp
13180 ac_cpp='$CXXCPP $CPPFLAGS'
13181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13184
13185 fi
13186
13187
13188 ac_ext=f
13189 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13190 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13191 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13192 if test -n "$ac_tool_prefix"; then
13193   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
13194   do
13195     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13199 if test "${ac_cv_prog_F77+set}" = set; then
13200   echo $ECHO_N "(cached) $ECHO_C" >&6
13201 else
13202   if test -n "$F77"; then
13203   ac_cv_prog_F77="$F77" # Let the user override the test.
13204 else
13205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 for as_dir in $PATH
13207 do
13208   IFS=$as_save_IFS
13209   test -z "$as_dir" && as_dir=.
13210   for ac_exec_ext in '' $ac_executable_extensions; do
13211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13212     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13214     break 2
13215   fi
13216 done
13217 done
13218 IFS=$as_save_IFS
13219
13220 fi
13221 fi
13222 F77=$ac_cv_prog_F77
13223 if test -n "$F77"; then
13224   { echo "$as_me:$LINENO: result: $F77" >&5
13225 echo "${ECHO_T}$F77" >&6; }
13226 else
13227   { echo "$as_me:$LINENO: result: no" >&5
13228 echo "${ECHO_T}no" >&6; }
13229 fi
13230
13231
13232     test -n "$F77" && break
13233   done
13234 fi
13235 if test -z "$F77"; then
13236   ac_ct_F77=$F77
13237   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
13238 do
13239   # Extract the first word of "$ac_prog", so it can be a program name with args.
13240 set dummy $ac_prog; ac_word=$2
13241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13243 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13244   echo $ECHO_N "(cached) $ECHO_C" >&6
13245 else
13246   if test -n "$ac_ct_F77"; then
13247   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13248 else
13249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250 for as_dir in $PATH
13251 do
13252   IFS=$as_save_IFS
13253   test -z "$as_dir" && as_dir=.
13254   for ac_exec_ext in '' $ac_executable_extensions; do
13255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13256     ac_cv_prog_ac_ct_F77="$ac_prog"
13257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13258     break 2
13259   fi
13260 done
13261 done
13262 IFS=$as_save_IFS
13263
13264 fi
13265 fi
13266 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13267 if test -n "$ac_ct_F77"; then
13268   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13269 echo "${ECHO_T}$ac_ct_F77" >&6; }
13270 else
13271   { echo "$as_me:$LINENO: result: no" >&5
13272 echo "${ECHO_T}no" >&6; }
13273 fi
13274
13275
13276   test -n "$ac_ct_F77" && break
13277 done
13278
13279   if test "x$ac_ct_F77" = x; then
13280     F77=""
13281   else
13282     case $cross_compiling:$ac_tool_warned in
13283 yes:)
13284 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13285 whose name does not start with the host triplet.  If you think this
13286 configuration is useful to you, please write to autoconf@gnu.org." >&5
13287 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13288 whose name does not start with the host triplet.  If you think this
13289 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13290 ac_tool_warned=yes ;;
13291 esac
13292     F77=$ac_ct_F77
13293   fi
13294 fi
13295
13296
13297 # Provide some information about the compiler.
13298 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13299 ac_compiler=`set X $ac_compile; echo $2`
13300 { (ac_try="$ac_compiler --version >&5"
13301 case "(($ac_try" in
13302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303   *) ac_try_echo=$ac_try;;
13304 esac
13305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306   (eval "$ac_compiler --version >&5") 2>&5
13307   ac_status=$?
13308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309   (exit $ac_status); }
13310 { (ac_try="$ac_compiler -v >&5"
13311 case "(($ac_try" in
13312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313   *) ac_try_echo=$ac_try;;
13314 esac
13315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316   (eval "$ac_compiler -v >&5") 2>&5
13317   ac_status=$?
13318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319   (exit $ac_status); }
13320 { (ac_try="$ac_compiler -V >&5"
13321 case "(($ac_try" in
13322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323   *) ac_try_echo=$ac_try;;
13324 esac
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326   (eval "$ac_compiler -V >&5") 2>&5
13327   ac_status=$?
13328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329   (exit $ac_status); }
13330 rm -f a.out
13331
13332 # If we don't use `.F' as extension, the preprocessor is not run on the
13333 # input file.  (Note that this only needs to work for GNU compilers.)
13334 ac_save_ext=$ac_ext
13335 ac_ext=F
13336 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13337 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13338 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13339   echo $ECHO_N "(cached) $ECHO_C" >&6
13340 else
13341   cat >conftest.$ac_ext <<_ACEOF
13342       program main
13343 #ifndef __GNUC__
13344        choke me
13345 #endif
13346
13347       end
13348 _ACEOF
13349 rm -f conftest.$ac_objext
13350 if { (ac_try="$ac_compile"
13351 case "(($ac_try" in
13352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353   *) ac_try_echo=$ac_try;;
13354 esac
13355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356   (eval "$ac_compile") 2>conftest.er1
13357   ac_status=$?
13358   grep -v '^ *+' conftest.er1 >conftest.err
13359   rm -f conftest.er1
13360   cat conftest.err >&5
13361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362   (exit $ac_status); } &&
13363          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13364   { (case "(($ac_try" in
13365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366   *) ac_try_echo=$ac_try;;
13367 esac
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369   (eval "$ac_try") 2>&5
13370   ac_status=$?
13371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372   (exit $ac_status); }; } &&
13373          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
13380   ac_status=$?
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); }; }; then
13383   ac_compiler_gnu=yes
13384 else
13385   echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13387
13388         ac_compiler_gnu=no
13389 fi
13390
13391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13392 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13393
13394 fi
13395 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13396 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13397 ac_ext=$ac_save_ext
13398 ac_test_FFLAGS=${FFLAGS+set}
13399 ac_save_FFLAGS=$FFLAGS
13400 FFLAGS=
13401 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13402 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13403 if test "${ac_cv_prog_f77_g+set}" = set; then
13404   echo $ECHO_N "(cached) $ECHO_C" >&6
13405 else
13406   FFLAGS=-g
13407 cat >conftest.$ac_ext <<_ACEOF
13408       program main
13409
13410       end
13411 _ACEOF
13412 rm -f conftest.$ac_objext
13413 if { (ac_try="$ac_compile"
13414 case "(($ac_try" in
13415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416   *) ac_try_echo=$ac_try;;
13417 esac
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419   (eval "$ac_compile") 2>conftest.er1
13420   ac_status=$?
13421   grep -v '^ *+' conftest.er1 >conftest.err
13422   rm -f conftest.er1
13423   cat conftest.err >&5
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); } &&
13426          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13427   { (case "(($ac_try" in
13428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429   *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432   (eval "$ac_try") 2>&5
13433   ac_status=$?
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); }; } &&
13436          { ac_try='test -s conftest.$ac_objext'
13437   { (case "(($ac_try" in
13438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439   *) ac_try_echo=$ac_try;;
13440 esac
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442   (eval "$ac_try") 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); }; }; then
13446   ac_cv_prog_f77_g=yes
13447 else
13448   echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13450
13451         ac_cv_prog_f77_g=no
13452 fi
13453
13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13455
13456 fi
13457 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13458 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13459 if test "$ac_test_FFLAGS" = set; then
13460   FFLAGS=$ac_save_FFLAGS
13461 elif test $ac_cv_prog_f77_g = yes; then
13462   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13463     FFLAGS="-g -O2"
13464   else
13465     FFLAGS="-g"
13466   fi
13467 else
13468   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13469     FFLAGS="-O2"
13470   else
13471     FFLAGS=
13472   fi
13473 fi
13474
13475 G77=`test $ac_compiler_gnu = yes && echo yes`
13476 ac_ext=c
13477 ac_cpp='$CPP $CPPFLAGS'
13478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13481
13482
13483
13484 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13485
13486 # find the maximum length of command line arguments
13487 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13488 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13489 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13490   echo $ECHO_N "(cached) $ECHO_C" >&6
13491 else
13492     i=0
13493   teststring="ABCD"
13494
13495   case $build_os in
13496   msdosdjgpp*)
13497     # On DJGPP, this test can blow up pretty badly due to problems in libc
13498     # (any single argument exceeding 2000 bytes causes a buffer overrun
13499     # during glob expansion).  Even if it were fixed, the result of this
13500     # check would be larger than it should be.
13501     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13502     ;;
13503
13504   gnu*)
13505     # Under GNU Hurd, this test is not required because there is
13506     # no limit to the length of command line arguments.
13507     # Libtool will interpret -1 as no limit whatsoever
13508     lt_cv_sys_max_cmd_len=-1;
13509     ;;
13510
13511   cygwin* | mingw*)
13512     # On Win9x/ME, this test blows up -- it succeeds, but takes
13513     # about 5 minutes as the teststring grows exponentially.
13514     # Worse, since 9x/ME are not pre-emptively multitasking,
13515     # you end up with a "frozen" computer, even though with patience
13516     # the test eventually succeeds (with a max line length of 256k).
13517     # Instead, let's just punt: use the minimum linelength reported by
13518     # all of the supported platforms: 8192 (on NT/2K/XP).
13519     lt_cv_sys_max_cmd_len=8192;
13520     ;;
13521
13522   amigaos*)
13523     # On AmigaOS with pdksh, this test takes hours, literally.
13524     # So we just punt and use a minimum line length of 8192.
13525     lt_cv_sys_max_cmd_len=8192;
13526     ;;
13527
13528   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13529     # This has been around since 386BSD, at least.  Likely further.
13530     if test -x /sbin/sysctl; then
13531       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13532     elif test -x /usr/sbin/sysctl; then
13533       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13534     else
13535       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13536     fi
13537     # And add a safety zone
13538     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13539     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13540     ;;
13541
13542   interix*)
13543     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13544     lt_cv_sys_max_cmd_len=196608
13545     ;;
13546
13547   osf*)
13548     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13549     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13550     # nice to cause kernel panics so lets avoid the loop below.
13551     # First set a reasonable default.
13552     lt_cv_sys_max_cmd_len=16384
13553     #
13554     if test -x /sbin/sysconfig; then
13555       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13556         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13557       esac
13558     fi
13559     ;;
13560   sco3.2v5*)
13561     lt_cv_sys_max_cmd_len=102400
13562     ;;
13563   sysv5* | sco5v6* | sysv4.2uw2*)
13564     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13565     if test -n "$kargmax"; then
13566       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13567     else
13568       lt_cv_sys_max_cmd_len=32768
13569     fi
13570     ;;
13571   *)
13572     # If test is not a shell built-in, we'll probably end up computing a
13573     # maximum length that is only half of the actual maximum length, but
13574     # we can't tell.
13575     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13576     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13577                = "XX$teststring") >/dev/null 2>&1 &&
13578             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13579             lt_cv_sys_max_cmd_len=$new_result &&
13580             test $i != 17 # 1/2 MB should be enough
13581     do
13582       i=`expr $i + 1`
13583       teststring=$teststring$teststring
13584     done
13585     teststring=
13586     # Add a significant safety factor because C++ compilers can tack on massive
13587     # amounts of additional arguments before passing them to the linker.
13588     # It appears as though 1/2 is a usable value.
13589     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13590     ;;
13591   esac
13592
13593 fi
13594
13595 if test -n $lt_cv_sys_max_cmd_len ; then
13596   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13597 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13598 else
13599   { echo "$as_me:$LINENO: result: none" >&5
13600 echo "${ECHO_T}none" >&6; }
13601 fi
13602
13603
13604
13605
13606 # Check for command to grab the raw symbol name followed by C symbol from nm.
13607 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13608 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13609 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13610   echo $ECHO_N "(cached) $ECHO_C" >&6
13611 else
13612
13613 # These are sane defaults that work on at least a few old systems.
13614 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13615
13616 # Character class describing NM global symbol codes.
13617 symcode='[BCDEGRST]'
13618
13619 # Regexp to match symbols that can be accessed directly from C.
13620 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13621
13622 # Transform an extracted symbol line into a proper C declaration
13623 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13624
13625 # Transform an extracted symbol line into symbol name and symbol address
13626 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'"
13627
13628 # Define system-specific variables.
13629 case $host_os in
13630 aix*)
13631   symcode='[BCDT]'
13632   ;;
13633 cygwin* | mingw* | pw32*)
13634   symcode='[ABCDGISTW]'
13635   ;;
13636 hpux*) # Its linker distinguishes data from code symbols
13637   if test "$host_cpu" = ia64; then
13638     symcode='[ABCDEGRST]'
13639   fi
13640   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13641   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'"
13642   ;;
13643 linux*)
13644   if test "$host_cpu" = ia64; then
13645     symcode='[ABCDGIRSTW]'
13646     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13647     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'"
13648   fi
13649   ;;
13650 irix* | nonstopux*)
13651   symcode='[BCDEGRST]'
13652   ;;
13653 osf*)
13654   symcode='[BCDEGQRST]'
13655   ;;
13656 solaris*)
13657   symcode='[BDRT]'
13658   ;;
13659 sco3.2v5*)
13660   symcode='[DT]'
13661   ;;
13662 sysv4.2uw2*)
13663   symcode='[DT]'
13664   ;;
13665 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13666   symcode='[ABDT]'
13667   ;;
13668 sysv4)
13669   symcode='[DFNSTU]'
13670   ;;
13671 esac
13672
13673 # Handle CRLF in mingw tool chain
13674 opt_cr=
13675 case $build_os in
13676 mingw*)
13677   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13678   ;;
13679 esac
13680
13681 # If we're using GNU nm, then use its standard symbol codes.
13682 case `$NM -V 2>&1` in
13683 *GNU* | *'with BFD'*)
13684   symcode='[ABCDGIRSTW]' ;;
13685 esac
13686
13687 # Try without a prefix undercore, then with it.
13688 for ac_symprfx in "" "_"; do
13689
13690   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13691   symxfrm="\\1 $ac_symprfx\\2 \\2"
13692
13693   # Write the raw and C identifiers.
13694   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13695
13696   # Check to see that the pipe works correctly.
13697   pipe_works=no
13698
13699   rm -f conftest*
13700   cat > conftest.$ac_ext <<EOF
13701 #ifdef __cplusplus
13702 extern "C" {
13703 #endif
13704 char nm_test_var;
13705 void nm_test_func(){}
13706 #ifdef __cplusplus
13707 }
13708 #endif
13709 int main(){nm_test_var='a';nm_test_func();return(0);}
13710 EOF
13711
13712   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13713   (eval $ac_compile) 2>&5
13714   ac_status=$?
13715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716   (exit $ac_status); }; then
13717     # Now try to grab the symbols.
13718     nlist=conftest.nm
13719     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13720   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13721   ac_status=$?
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); } && test -s "$nlist"; then
13724       # Try sorting and uniquifying the output.
13725       if sort "$nlist" | uniq > "$nlist"T; then
13726         mv -f "$nlist"T "$nlist"
13727       else
13728         rm -f "$nlist"T
13729       fi
13730
13731       # Make sure that we snagged all the symbols we need.
13732       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13733         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13734           cat <<EOF > conftest.$ac_ext
13735 #ifdef __cplusplus
13736 extern "C" {
13737 #endif
13738
13739 EOF
13740           # Now generate the symbol file.
13741           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13742
13743           cat <<EOF >> conftest.$ac_ext
13744 #if defined (__STDC__) && __STDC__
13745 # define lt_ptr_t void *
13746 #else
13747 # define lt_ptr_t char *
13748 # define const
13749 #endif
13750
13751 /* The mapping between symbol names and symbols. */
13752 const struct {
13753   const char *name;
13754   lt_ptr_t address;
13755 }
13756 lt_preloaded_symbols[] =
13757 {
13758 EOF
13759           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13760           cat <<\EOF >> conftest.$ac_ext
13761   {0, (lt_ptr_t) 0}
13762 };
13763
13764 #ifdef __cplusplus
13765 }
13766 #endif
13767 EOF
13768           # Now try linking the two files.
13769           mv conftest.$ac_objext conftstm.$ac_objext
13770           lt_save_LIBS="$LIBS"
13771           lt_save_CFLAGS="$CFLAGS"
13772           LIBS="conftstm.$ac_objext"
13773           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13774           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13775   (eval $ac_link) 2>&5
13776   ac_status=$?
13777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13779             pipe_works=yes
13780           fi
13781           LIBS="$lt_save_LIBS"
13782           CFLAGS="$lt_save_CFLAGS"
13783         else
13784           echo "cannot find nm_test_func in $nlist" >&5
13785         fi
13786       else
13787         echo "cannot find nm_test_var in $nlist" >&5
13788       fi
13789     else
13790       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13791     fi
13792   else
13793     echo "$progname: failed program was:" >&5
13794     cat conftest.$ac_ext >&5
13795   fi
13796   rm -f conftest* conftst*
13797
13798   # Do not use the global_symbol_pipe unless it works.
13799   if test "$pipe_works" = yes; then
13800     break
13801   else
13802     lt_cv_sys_global_symbol_pipe=
13803   fi
13804 done
13805
13806 fi
13807
13808 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13809   lt_cv_sys_global_symbol_to_cdecl=
13810 fi
13811 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13812   { echo "$as_me:$LINENO: result: failed" >&5
13813 echo "${ECHO_T}failed" >&6; }
13814 else
13815   { echo "$as_me:$LINENO: result: ok" >&5
13816 echo "${ECHO_T}ok" >&6; }
13817 fi
13818
13819 { echo "$as_me:$LINENO: checking for objdir" >&5
13820 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13821 if test "${lt_cv_objdir+set}" = set; then
13822   echo $ECHO_N "(cached) $ECHO_C" >&6
13823 else
13824   rm -f .libs 2>/dev/null
13825 mkdir .libs 2>/dev/null
13826 if test -d .libs; then
13827   lt_cv_objdir=.libs
13828 else
13829   # MS-DOS does not allow filenames that begin with a dot.
13830   lt_cv_objdir=_libs
13831 fi
13832 rmdir .libs 2>/dev/null
13833 fi
13834 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13835 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13836 objdir=$lt_cv_objdir
13837
13838
13839
13840
13841
13842 case $host_os in
13843 aix3*)
13844   # AIX sometimes has problems with the GCC collect2 program.  For some
13845   # reason, if we set the COLLECT_NAMES environment variable, the problems
13846   # vanish in a puff of smoke.
13847   if test "X${COLLECT_NAMES+set}" != Xset; then
13848     COLLECT_NAMES=
13849     export COLLECT_NAMES
13850   fi
13851   ;;
13852 esac
13853
13854 # Sed substitution that helps us do robust quoting.  It backslashifies
13855 # metacharacters that are still active within double-quoted strings.
13856 Xsed='sed -e 1s/^X//'
13857 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13858
13859 # Same as above, but do not quote variable references.
13860 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13861
13862 # Sed substitution to delay expansion of an escaped shell variable in a
13863 # double_quote_subst'ed string.
13864 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13865
13866 # Sed substitution to avoid accidental globbing in evaled expressions
13867 no_glob_subst='s/\*/\\\*/g'
13868
13869 # Constants:
13870 rm="rm -f"
13871
13872 # Global variables:
13873 default_ofile=mklib
13874 can_build_shared=yes
13875
13876 # All known linkers require a `.a' archive for static linking (except MSVC,
13877 # which needs '.lib').
13878 libext=a
13879 ltmain="$ac_aux_dir/ltmain.sh"
13880 ofile="$default_ofile"
13881 with_gnu_ld="$lt_cv_prog_gnu_ld"
13882
13883 if test -n "$ac_tool_prefix"; then
13884   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13885 set dummy ${ac_tool_prefix}ar; ac_word=$2
13886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13888 if test "${ac_cv_prog_AR+set}" = set; then
13889   echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891   if test -n "$AR"; then
13892   ac_cv_prog_AR="$AR" # Let the user override the test.
13893 else
13894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13895 for as_dir in $PATH
13896 do
13897   IFS=$as_save_IFS
13898   test -z "$as_dir" && as_dir=.
13899   for ac_exec_ext in '' $ac_executable_extensions; do
13900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13901     ac_cv_prog_AR="${ac_tool_prefix}ar"
13902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13903     break 2
13904   fi
13905 done
13906 done
13907 IFS=$as_save_IFS
13908
13909 fi
13910 fi
13911 AR=$ac_cv_prog_AR
13912 if test -n "$AR"; then
13913   { echo "$as_me:$LINENO: result: $AR" >&5
13914 echo "${ECHO_T}$AR" >&6; }
13915 else
13916   { echo "$as_me:$LINENO: result: no" >&5
13917 echo "${ECHO_T}no" >&6; }
13918 fi
13919
13920
13921 fi
13922 if test -z "$ac_cv_prog_AR"; then
13923   ac_ct_AR=$AR
13924   # Extract the first word of "ar", so it can be a program name with args.
13925 set dummy ar; ac_word=$2
13926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13928 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13929   echo $ECHO_N "(cached) $ECHO_C" >&6
13930 else
13931   if test -n "$ac_ct_AR"; then
13932   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13933 else
13934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13935 for as_dir in $PATH
13936 do
13937   IFS=$as_save_IFS
13938   test -z "$as_dir" && as_dir=.
13939   for ac_exec_ext in '' $ac_executable_extensions; do
13940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13941     ac_cv_prog_ac_ct_AR="ar"
13942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13943     break 2
13944   fi
13945 done
13946 done
13947 IFS=$as_save_IFS
13948
13949 fi
13950 fi
13951 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13952 if test -n "$ac_ct_AR"; then
13953   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13954 echo "${ECHO_T}$ac_ct_AR" >&6; }
13955 else
13956   { echo "$as_me:$LINENO: result: no" >&5
13957 echo "${ECHO_T}no" >&6; }
13958 fi
13959
13960   if test "x$ac_ct_AR" = x; then
13961     AR="false"
13962   else
13963     case $cross_compiling:$ac_tool_warned in
13964 yes:)
13965 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13966 whose name does not start with the host triplet.  If you think this
13967 configuration is useful to you, please write to autoconf@gnu.org." >&5
13968 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13969 whose name does not start with the host triplet.  If you think this
13970 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13971 ac_tool_warned=yes ;;
13972 esac
13973     AR=$ac_ct_AR
13974   fi
13975 else
13976   AR="$ac_cv_prog_AR"
13977 fi
13978
13979 if test -n "$ac_tool_prefix"; then
13980   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13981 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13984 if test "${ac_cv_prog_RANLIB+set}" = set; then
13985   echo $ECHO_N "(cached) $ECHO_C" >&6
13986 else
13987   if test -n "$RANLIB"; then
13988   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13989 else
13990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13991 for as_dir in $PATH
13992 do
13993   IFS=$as_save_IFS
13994   test -z "$as_dir" && as_dir=.
13995   for ac_exec_ext in '' $ac_executable_extensions; do
13996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13997     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13999     break 2
14000   fi
14001 done
14002 done
14003 IFS=$as_save_IFS
14004
14005 fi
14006 fi
14007 RANLIB=$ac_cv_prog_RANLIB
14008 if test -n "$RANLIB"; then
14009   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14010 echo "${ECHO_T}$RANLIB" >&6; }
14011 else
14012   { echo "$as_me:$LINENO: result: no" >&5
14013 echo "${ECHO_T}no" >&6; }
14014 fi
14015
14016
14017 fi
14018 if test -z "$ac_cv_prog_RANLIB"; then
14019   ac_ct_RANLIB=$RANLIB
14020   # Extract the first word of "ranlib", so it can be a program name with args.
14021 set dummy ranlib; ac_word=$2
14022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14024 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14025   echo $ECHO_N "(cached) $ECHO_C" >&6
14026 else
14027   if test -n "$ac_ct_RANLIB"; then
14028   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14029 else
14030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14031 for as_dir in $PATH
14032 do
14033   IFS=$as_save_IFS
14034   test -z "$as_dir" && as_dir=.
14035   for ac_exec_ext in '' $ac_executable_extensions; do
14036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14037     ac_cv_prog_ac_ct_RANLIB="ranlib"
14038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14039     break 2
14040   fi
14041 done
14042 done
14043 IFS=$as_save_IFS
14044
14045 fi
14046 fi
14047 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14048 if test -n "$ac_ct_RANLIB"; then
14049   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14050 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14051 else
14052   { echo "$as_me:$LINENO: result: no" >&5
14053 echo "${ECHO_T}no" >&6; }
14054 fi
14055
14056   if test "x$ac_ct_RANLIB" = x; then
14057     RANLIB=":"
14058   else
14059     case $cross_compiling:$ac_tool_warned in
14060 yes:)
14061 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14062 whose name does not start with the host triplet.  If you think this
14063 configuration is useful to you, please write to autoconf@gnu.org." >&5
14064 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14065 whose name does not start with the host triplet.  If you think this
14066 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14067 ac_tool_warned=yes ;;
14068 esac
14069     RANLIB=$ac_ct_RANLIB
14070   fi
14071 else
14072   RANLIB="$ac_cv_prog_RANLIB"
14073 fi
14074
14075 if test -n "$ac_tool_prefix"; then
14076   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14077 set dummy ${ac_tool_prefix}strip; ac_word=$2
14078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14080 if test "${ac_cv_prog_STRIP+set}" = set; then
14081   echo $ECHO_N "(cached) $ECHO_C" >&6
14082 else
14083   if test -n "$STRIP"; then
14084   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14085 else
14086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14087 for as_dir in $PATH
14088 do
14089   IFS=$as_save_IFS
14090   test -z "$as_dir" && as_dir=.
14091   for ac_exec_ext in '' $ac_executable_extensions; do
14092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14093     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14095     break 2
14096   fi
14097 done
14098 done
14099 IFS=$as_save_IFS
14100
14101 fi
14102 fi
14103 STRIP=$ac_cv_prog_STRIP
14104 if test -n "$STRIP"; then
14105   { echo "$as_me:$LINENO: result: $STRIP" >&5
14106 echo "${ECHO_T}$STRIP" >&6; }
14107 else
14108   { echo "$as_me:$LINENO: result: no" >&5
14109 echo "${ECHO_T}no" >&6; }
14110 fi
14111
14112
14113 fi
14114 if test -z "$ac_cv_prog_STRIP"; then
14115   ac_ct_STRIP=$STRIP
14116   # Extract the first word of "strip", so it can be a program name with args.
14117 set dummy strip; ac_word=$2
14118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14120 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14121   echo $ECHO_N "(cached) $ECHO_C" >&6
14122 else
14123   if test -n "$ac_ct_STRIP"; then
14124   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14125 else
14126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14127 for as_dir in $PATH
14128 do
14129   IFS=$as_save_IFS
14130   test -z "$as_dir" && as_dir=.
14131   for ac_exec_ext in '' $ac_executable_extensions; do
14132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14133     ac_cv_prog_ac_ct_STRIP="strip"
14134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14135     break 2
14136   fi
14137 done
14138 done
14139 IFS=$as_save_IFS
14140
14141 fi
14142 fi
14143 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14144 if test -n "$ac_ct_STRIP"; then
14145   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14146 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14147 else
14148   { echo "$as_me:$LINENO: result: no" >&5
14149 echo "${ECHO_T}no" >&6; }
14150 fi
14151
14152   if test "x$ac_ct_STRIP" = x; then
14153     STRIP=":"
14154   else
14155     case $cross_compiling:$ac_tool_warned in
14156 yes:)
14157 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14158 whose name does not start with the host triplet.  If you think this
14159 configuration is useful to you, please write to autoconf@gnu.org." >&5
14160 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14161 whose name does not start with the host triplet.  If you think this
14162 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14163 ac_tool_warned=yes ;;
14164 esac
14165     STRIP=$ac_ct_STRIP
14166   fi
14167 else
14168   STRIP="$ac_cv_prog_STRIP"
14169 fi
14170
14171
14172 old_CC="$CC"
14173 old_CFLAGS="$CFLAGS"
14174
14175 # Set sane defaults for various variables
14176 test -z "$AR" && AR=ar
14177 test -z "$AR_FLAGS" && AR_FLAGS=cru
14178 test -z "$AS" && AS=as
14179 test -z "$CC" && CC=cc
14180 test -z "$LTCC" && LTCC=$CC
14181 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14182 test -z "$DLLTOOL" && DLLTOOL=dlltool
14183 test -z "$LD" && LD=ld
14184 test -z "$LN_S" && LN_S="ln -s"
14185 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14186 test -z "$NM" && NM=nm
14187 test -z "$SED" && SED=sed
14188 test -z "$OBJDUMP" && OBJDUMP=objdump
14189 test -z "$RANLIB" && RANLIB=:
14190 test -z "$STRIP" && STRIP=:
14191 test -z "$ac_objext" && ac_objext=o
14192
14193 # Determine commands to create old-style static archives.
14194 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14195 old_postinstall_cmds='chmod 644 $oldlib'
14196 old_postuninstall_cmds=
14197
14198 if test -n "$RANLIB"; then
14199   case $host_os in
14200   openbsd*)
14201     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14202     ;;
14203   *)
14204     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14205     ;;
14206   esac
14207   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14208 fi
14209
14210 for cc_temp in $compiler""; do
14211   case $cc_temp in
14212     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14213     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14214     \-*) ;;
14215     *) break;;
14216   esac
14217 done
14218 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14219
14220
14221 # Only perform the check for file, if the check method requires it
14222 case $deplibs_check_method in
14223 file_magic*)
14224   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14225     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14226 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14227 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14228   echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230   case $MAGIC_CMD in
14231 [\\/*] |  ?:[\\/]*)
14232   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14233   ;;
14234 *)
14235   lt_save_MAGIC_CMD="$MAGIC_CMD"
14236   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14237   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14238   for ac_dir in $ac_dummy; do
14239     IFS="$lt_save_ifs"
14240     test -z "$ac_dir" && ac_dir=.
14241     if test -f $ac_dir/${ac_tool_prefix}file; then
14242       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14243       if test -n "$file_magic_test_file"; then
14244         case $deplibs_check_method in
14245         "file_magic "*)
14246           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14247           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14248           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14249             $EGREP "$file_magic_regex" > /dev/null; then
14250             :
14251           else
14252             cat <<EOF 1>&2
14253
14254 *** Warning: the command libtool uses to detect shared libraries,
14255 *** $file_magic_cmd, produces output that libtool cannot recognize.
14256 *** The result is that libtool may fail to recognize shared libraries
14257 *** as such.  This will affect the creation of libtool libraries that
14258 *** depend on shared libraries, but programs linked with such libtool
14259 *** libraries will work regardless of this problem.  Nevertheless, you
14260 *** may want to report the problem to your system manager and/or to
14261 *** bug-libtool@gnu.org
14262
14263 EOF
14264           fi ;;
14265         esac
14266       fi
14267       break
14268     fi
14269   done
14270   IFS="$lt_save_ifs"
14271   MAGIC_CMD="$lt_save_MAGIC_CMD"
14272   ;;
14273 esac
14274 fi
14275
14276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14277 if test -n "$MAGIC_CMD"; then
14278   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14279 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14280 else
14281   { echo "$as_me:$LINENO: result: no" >&5
14282 echo "${ECHO_T}no" >&6; }
14283 fi
14284
14285 if test -z "$lt_cv_path_MAGIC_CMD"; then
14286   if test -n "$ac_tool_prefix"; then
14287     { echo "$as_me:$LINENO: checking for file" >&5
14288 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14289 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14290   echo $ECHO_N "(cached) $ECHO_C" >&6
14291 else
14292   case $MAGIC_CMD in
14293 [\\/*] |  ?:[\\/]*)
14294   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14295   ;;
14296 *)
14297   lt_save_MAGIC_CMD="$MAGIC_CMD"
14298   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14299   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14300   for ac_dir in $ac_dummy; do
14301     IFS="$lt_save_ifs"
14302     test -z "$ac_dir" && ac_dir=.
14303     if test -f $ac_dir/file; then
14304       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14305       if test -n "$file_magic_test_file"; then
14306         case $deplibs_check_method in
14307         "file_magic "*)
14308           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14309           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14310           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14311             $EGREP "$file_magic_regex" > /dev/null; then
14312             :
14313           else
14314             cat <<EOF 1>&2
14315
14316 *** Warning: the command libtool uses to detect shared libraries,
14317 *** $file_magic_cmd, produces output that libtool cannot recognize.
14318 *** The result is that libtool may fail to recognize shared libraries
14319 *** as such.  This will affect the creation of libtool libraries that
14320 *** depend on shared libraries, but programs linked with such libtool
14321 *** libraries will work regardless of this problem.  Nevertheless, you
14322 *** may want to report the problem to your system manager and/or to
14323 *** bug-libtool@gnu.org
14324
14325 EOF
14326           fi ;;
14327         esac
14328       fi
14329       break
14330     fi
14331   done
14332   IFS="$lt_save_ifs"
14333   MAGIC_CMD="$lt_save_MAGIC_CMD"
14334   ;;
14335 esac
14336 fi
14337
14338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14339 if test -n "$MAGIC_CMD"; then
14340   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14341 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14342 else
14343   { echo "$as_me:$LINENO: result: no" >&5
14344 echo "${ECHO_T}no" >&6; }
14345 fi
14346
14347   else
14348     MAGIC_CMD=:
14349   fi
14350 fi
14351
14352   fi
14353   ;;
14354 esac
14355
14356 enable_dlopen=yes
14357 enable_win32_dll=no
14358
14359 # Check whether --enable-libtool-lock was given.
14360 if test "${enable_libtool_lock+set}" = set; then
14361   enableval=$enable_libtool_lock;
14362 fi
14363
14364 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14365
14366
14367 # Check whether --with-pic was given.
14368 if test "${with_pic+set}" = set; then
14369   withval=$with_pic; pic_mode="$withval"
14370 else
14371   pic_mode=default
14372 fi
14373
14374 test -z "$pic_mode" && pic_mode=default
14375
14376 # Use C for the default configuration in the libtool script
14377 tagname=
14378 lt_save_CC="$CC"
14379 ac_ext=c
14380 ac_cpp='$CPP $CPPFLAGS'
14381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14384
14385
14386 # Source file extension for C test sources.
14387 ac_ext=c
14388
14389 # Object file extension for compiled C test sources.
14390 objext=o
14391 objext=$objext
14392
14393 # Code to be used in simple compile tests
14394 lt_simple_compile_test_code="int some_variable = 0;\n"
14395
14396 # Code to be used in simple link tests
14397 lt_simple_link_test_code='int main(){return(0);}\n'
14398
14399
14400 # If no C compiler was specified, use CC.
14401 LTCC=${LTCC-"$CC"}
14402
14403 # If no C compiler flags were specified, use CFLAGS.
14404 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14405
14406 # Allow CC to be a program name with arguments.
14407 compiler=$CC
14408
14409
14410 # save warnings/boilerplate of simple test code
14411 ac_outfile=conftest.$ac_objext
14412 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14413 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14414 _lt_compiler_boilerplate=`cat conftest.err`
14415 $rm conftest*
14416
14417 ac_outfile=conftest.$ac_objext
14418 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14419 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14420 _lt_linker_boilerplate=`cat conftest.err`
14421 $rm conftest*
14422
14423
14424
14425 lt_prog_compiler_no_builtin_flag=
14426
14427 if test "$GCC" = yes; then
14428   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14429
14430
14431 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14432 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14433 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14434   echo $ECHO_N "(cached) $ECHO_C" >&6
14435 else
14436   lt_cv_prog_compiler_rtti_exceptions=no
14437   ac_outfile=conftest.$ac_objext
14438    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14439    lt_compiler_flag="-fno-rtti -fno-exceptions"
14440    # Insert the option either (1) after the last *FLAGS variable, or
14441    # (2) before a word containing "conftest.", or (3) at the end.
14442    # Note that $ac_compile itself does not contain backslashes and begins
14443    # with a dollar sign (not a hyphen), so the echo should work correctly.
14444    # The option is referenced via a variable to avoid confusing sed.
14445    lt_compile=`echo "$ac_compile" | $SED \
14446    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14447    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14448    -e 's:$: $lt_compiler_flag:'`
14449    (eval echo "\"\$as_me:14449: $lt_compile\"" >&5)
14450    (eval "$lt_compile" 2>conftest.err)
14451    ac_status=$?
14452    cat conftest.err >&5
14453    echo "$as_me:14453: \$? = $ac_status" >&5
14454    if (exit $ac_status) && test -s "$ac_outfile"; then
14455      # The compiler can only warn and ignore the option if not recognized
14456      # So say no if there are warnings other than the usual output.
14457      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14458      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14459      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14460        lt_cv_prog_compiler_rtti_exceptions=yes
14461      fi
14462    fi
14463    $rm conftest*
14464
14465 fi
14466 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14467 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14468
14469 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14470     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14471 else
14472     :
14473 fi
14474
14475 fi
14476
14477 lt_prog_compiler_wl=
14478 lt_prog_compiler_pic=
14479 lt_prog_compiler_static=
14480
14481 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14482 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14483
14484   if test "$GCC" = yes; then
14485     lt_prog_compiler_wl='-Wl,'
14486     lt_prog_compiler_static='-static'
14487
14488     case $host_os in
14489       aix*)
14490       # All AIX code is PIC.
14491       if test "$host_cpu" = ia64; then
14492         # AIX 5 now supports IA64 processor
14493         lt_prog_compiler_static='-Bstatic'
14494       fi
14495       ;;
14496
14497     amigaos*)
14498       # FIXME: we need at least 68020 code to build shared libraries, but
14499       # adding the `-m68020' flag to GCC prevents building anything better,
14500       # like `-m68040'.
14501       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14502       ;;
14503
14504     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14505       # PIC is the default for these OSes.
14506       ;;
14507
14508     mingw* | pw32* | os2*)
14509       # This hack is so that the source file can tell whether it is being
14510       # built for inclusion in a dll (and should export symbols for example).
14511       lt_prog_compiler_pic='-DDLL_EXPORT'
14512       ;;
14513
14514     darwin* | rhapsody*)
14515       # PIC is the default on this platform
14516       # Common symbols not allowed in MH_DYLIB files
14517       lt_prog_compiler_pic='-fno-common'
14518       ;;
14519
14520     interix3*)
14521       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14522       # Instead, we relocate shared libraries at runtime.
14523       ;;
14524
14525     msdosdjgpp*)
14526       # Just because we use GCC doesn't mean we suddenly get shared libraries
14527       # on systems that don't support them.
14528       lt_prog_compiler_can_build_shared=no
14529       enable_shared=no
14530       ;;
14531
14532     sysv4*MP*)
14533       if test -d /usr/nec; then
14534         lt_prog_compiler_pic=-Kconform_pic
14535       fi
14536       ;;
14537
14538     hpux*)
14539       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14540       # not for PA HP-UX.
14541       case $host_cpu in
14542       hppa*64*|ia64*)
14543         # +Z the default
14544         ;;
14545       *)
14546         lt_prog_compiler_pic='-fPIC'
14547         ;;
14548       esac
14549       ;;
14550
14551     *)
14552       lt_prog_compiler_pic='-fPIC'
14553       ;;
14554     esac
14555   else
14556     # PORTME Check for flag to pass linker flags through the system compiler.
14557     case $host_os in
14558     aix*)
14559       lt_prog_compiler_wl='-Wl,'
14560       if test "$host_cpu" = ia64; then
14561         # AIX 5 now supports IA64 processor
14562         lt_prog_compiler_static='-Bstatic'
14563       else
14564         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14565       fi
14566       ;;
14567       darwin*)
14568         # PIC is the default on this platform
14569         # Common symbols not allowed in MH_DYLIB files
14570        case $cc_basename in
14571          xlc*)
14572          lt_prog_compiler_pic='-qnocommon'
14573          lt_prog_compiler_wl='-Wl,'
14574          ;;
14575        esac
14576        ;;
14577
14578     mingw* | pw32* | os2*)
14579       # This hack is so that the source file can tell whether it is being
14580       # built for inclusion in a dll (and should export symbols for example).
14581       lt_prog_compiler_pic='-DDLL_EXPORT'
14582       ;;
14583
14584     hpux9* | hpux10* | hpux11*)
14585       lt_prog_compiler_wl='-Wl,'
14586       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14587       # not for PA HP-UX.
14588       case $host_cpu in
14589       hppa*64*|ia64*)
14590         # +Z the default
14591         ;;
14592       *)
14593         lt_prog_compiler_pic='+Z'
14594         ;;
14595       esac
14596       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14597       lt_prog_compiler_static='${wl}-a ${wl}archive'
14598       ;;
14599
14600     irix5* | irix6* | nonstopux*)
14601       lt_prog_compiler_wl='-Wl,'
14602       # PIC (with -KPIC) is the default.
14603       lt_prog_compiler_static='-non_shared'
14604       ;;
14605
14606     newsos6)
14607       lt_prog_compiler_pic='-KPIC'
14608       lt_prog_compiler_static='-Bstatic'
14609       ;;
14610
14611     linux*)
14612       case $cc_basename in
14613       icc* | ecc*)
14614         lt_prog_compiler_wl='-Wl,'
14615         lt_prog_compiler_pic='-KPIC'
14616         lt_prog_compiler_static='-static'
14617         ;;
14618       pgcc* | pgf77* | pgf90* | pgf95*)
14619         # Portland Group compilers (*not* the Pentium gcc compiler,
14620         # which looks to be a dead project)
14621         lt_prog_compiler_wl='-Wl,'
14622         lt_prog_compiler_pic='-fpic'
14623         lt_prog_compiler_static='-Bstatic'
14624         ;;
14625       ccc*)
14626         lt_prog_compiler_wl='-Wl,'
14627         # All Alpha code is PIC.
14628         lt_prog_compiler_static='-non_shared'
14629         ;;
14630       esac
14631       ;;
14632
14633     osf3* | osf4* | osf5*)
14634       lt_prog_compiler_wl='-Wl,'
14635       # All OSF/1 code is PIC.
14636       lt_prog_compiler_static='-non_shared'
14637       ;;
14638
14639     solaris*)
14640       lt_prog_compiler_pic='-KPIC'
14641       lt_prog_compiler_static='-Bstatic'
14642       case $cc_basename in
14643       f77* | f90* | f95*)
14644         lt_prog_compiler_wl='-Qoption ld ';;
14645       *)
14646         lt_prog_compiler_wl='-Wl,';;
14647       esac
14648       ;;
14649
14650     sunos4*)
14651       lt_prog_compiler_wl='-Qoption ld '
14652       lt_prog_compiler_pic='-PIC'
14653       lt_prog_compiler_static='-Bstatic'
14654       ;;
14655
14656     sysv4 | sysv4.2uw2* | sysv4.3*)
14657       lt_prog_compiler_wl='-Wl,'
14658       lt_prog_compiler_pic='-KPIC'
14659       lt_prog_compiler_static='-Bstatic'
14660       ;;
14661
14662     sysv4*MP*)
14663       if test -d /usr/nec ;then
14664         lt_prog_compiler_pic='-Kconform_pic'
14665         lt_prog_compiler_static='-Bstatic'
14666       fi
14667       ;;
14668
14669     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14670       lt_prog_compiler_wl='-Wl,'
14671       lt_prog_compiler_pic='-KPIC'
14672       lt_prog_compiler_static='-Bstatic'
14673       ;;
14674
14675     unicos*)
14676       lt_prog_compiler_wl='-Wl,'
14677       lt_prog_compiler_can_build_shared=no
14678       ;;
14679
14680     uts4*)
14681       lt_prog_compiler_pic='-pic'
14682       lt_prog_compiler_static='-Bstatic'
14683       ;;
14684
14685     *)
14686       lt_prog_compiler_can_build_shared=no
14687       ;;
14688     esac
14689   fi
14690
14691 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14692 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14693
14694 #
14695 # Check to make sure the PIC flag actually works.
14696 #
14697 if test -n "$lt_prog_compiler_pic"; then
14698
14699 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14700 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14701 if test "${lt_prog_compiler_pic_works+set}" = set; then
14702   echo $ECHO_N "(cached) $ECHO_C" >&6
14703 else
14704   lt_prog_compiler_pic_works=no
14705   ac_outfile=conftest.$ac_objext
14706    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14707    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14708    # Insert the option either (1) after the last *FLAGS variable, or
14709    # (2) before a word containing "conftest.", or (3) at the end.
14710    # Note that $ac_compile itself does not contain backslashes and begins
14711    # with a dollar sign (not a hyphen), so the echo should work correctly.
14712    # The option is referenced via a variable to avoid confusing sed.
14713    lt_compile=`echo "$ac_compile" | $SED \
14714    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14715    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14716    -e 's:$: $lt_compiler_flag:'`
14717    (eval echo "\"\$as_me:14717: $lt_compile\"" >&5)
14718    (eval "$lt_compile" 2>conftest.err)
14719    ac_status=$?
14720    cat conftest.err >&5
14721    echo "$as_me:14721: \$? = $ac_status" >&5
14722    if (exit $ac_status) && test -s "$ac_outfile"; then
14723      # The compiler can only warn and ignore the option if not recognized
14724      # So say no if there are warnings other than the usual output.
14725      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14726      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14727      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14728        lt_prog_compiler_pic_works=yes
14729      fi
14730    fi
14731    $rm conftest*
14732
14733 fi
14734 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14735 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14736
14737 if test x"$lt_prog_compiler_pic_works" = xyes; then
14738     case $lt_prog_compiler_pic in
14739      "" | " "*) ;;
14740      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14741      esac
14742 else
14743     lt_prog_compiler_pic=
14744      lt_prog_compiler_can_build_shared=no
14745 fi
14746
14747 fi
14748 case $host_os in
14749   # For platforms which do not support PIC, -DPIC is meaningless:
14750   *djgpp*)
14751     lt_prog_compiler_pic=
14752     ;;
14753   *)
14754     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14755     ;;
14756 esac
14757
14758 #
14759 # Check to make sure the static flag actually works.
14760 #
14761 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14762 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14763 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14764 if test "${lt_prog_compiler_static_works+set}" = set; then
14765   echo $ECHO_N "(cached) $ECHO_C" >&6
14766 else
14767   lt_prog_compiler_static_works=no
14768    save_LDFLAGS="$LDFLAGS"
14769    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14770    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14771    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14772      # The linker can only warn and ignore the option if not recognized
14773      # So say no if there are warnings
14774      if test -s conftest.err; then
14775        # Append any errors to the config.log.
14776        cat conftest.err 1>&5
14777        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14778        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14779        if diff conftest.exp conftest.er2 >/dev/null; then
14780          lt_prog_compiler_static_works=yes
14781        fi
14782      else
14783        lt_prog_compiler_static_works=yes
14784      fi
14785    fi
14786    $rm conftest*
14787    LDFLAGS="$save_LDFLAGS"
14788
14789 fi
14790 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14791 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14792
14793 if test x"$lt_prog_compiler_static_works" = xyes; then
14794     :
14795 else
14796     lt_prog_compiler_static=
14797 fi
14798
14799
14800 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14801 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14802 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14803   echo $ECHO_N "(cached) $ECHO_C" >&6
14804 else
14805   lt_cv_prog_compiler_c_o=no
14806    $rm -r conftest 2>/dev/null
14807    mkdir conftest
14808    cd conftest
14809    mkdir out
14810    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14811
14812    lt_compiler_flag="-o out/conftest2.$ac_objext"
14813    # Insert the option either (1) after the last *FLAGS variable, or
14814    # (2) before a word containing "conftest.", or (3) at the end.
14815    # Note that $ac_compile itself does not contain backslashes and begins
14816    # with a dollar sign (not a hyphen), so the echo should work correctly.
14817    lt_compile=`echo "$ac_compile" | $SED \
14818    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14819    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14820    -e 's:$: $lt_compiler_flag:'`
14821    (eval echo "\"\$as_me:14821: $lt_compile\"" >&5)
14822    (eval "$lt_compile" 2>out/conftest.err)
14823    ac_status=$?
14824    cat out/conftest.err >&5
14825    echo "$as_me:14825: \$? = $ac_status" >&5
14826    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14827    then
14828      # The compiler can only warn and ignore the option if not recognized
14829      # So say no if there are warnings
14830      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14831      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14832      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14833        lt_cv_prog_compiler_c_o=yes
14834      fi
14835    fi
14836    chmod u+w . 2>&5
14837    $rm conftest*
14838    # SGI C++ compiler will create directory out/ii_files/ for
14839    # template instantiation
14840    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14841    $rm out/* && rmdir out
14842    cd ..
14843    rmdir conftest
14844    $rm conftest*
14845
14846 fi
14847 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14848 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14849
14850
14851 hard_links="nottested"
14852 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14853   # do not overwrite the value of need_locks provided by the user
14854   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14855 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14856   hard_links=yes
14857   $rm conftest*
14858   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14859   touch conftest.a
14860   ln conftest.a conftest.b 2>&5 || hard_links=no
14861   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14862   { echo "$as_me:$LINENO: result: $hard_links" >&5
14863 echo "${ECHO_T}$hard_links" >&6; }
14864   if test "$hard_links" = no; then
14865     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14866 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14867     need_locks=warn
14868   fi
14869 else
14870   need_locks=no
14871 fi
14872
14873 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14874 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14875
14876   runpath_var=
14877   allow_undefined_flag=
14878   enable_shared_with_static_runtimes=no
14879   archive_cmds=
14880   archive_expsym_cmds=
14881   old_archive_From_new_cmds=
14882   old_archive_from_expsyms_cmds=
14883   export_dynamic_flag_spec=
14884   whole_archive_flag_spec=
14885   thread_safe_flag_spec=
14886   hardcode_libdir_flag_spec=
14887   hardcode_libdir_flag_spec_ld=
14888   hardcode_libdir_separator=
14889   hardcode_direct=no
14890   hardcode_minus_L=no
14891   hardcode_shlibpath_var=unsupported
14892   link_all_deplibs=unknown
14893   hardcode_automatic=no
14894   module_cmds=
14895   module_expsym_cmds=
14896   always_export_symbols=no
14897   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14898   # include_expsyms should be a list of space-separated symbols to be *always*
14899   # included in the symbol list
14900   include_expsyms=
14901   # exclude_expsyms can be an extended regexp of symbols to exclude
14902   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14903   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14904   # as well as any symbol that contains `d'.
14905   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14906   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14907   # platforms (ab)use it in PIC code, but their linkers get confused if
14908   # the symbol is explicitly referenced.  Since portable code cannot
14909   # rely on this symbol name, it's probably fine to never include it in
14910   # preloaded symbol tables.
14911   extract_expsyms_cmds=
14912   # Just being paranoid about ensuring that cc_basename is set.
14913   for cc_temp in $compiler""; do
14914   case $cc_temp in
14915     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14916     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14917     \-*) ;;
14918     *) break;;
14919   esac
14920 done
14921 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14922
14923   case $host_os in
14924   cygwin* | mingw* | pw32*)
14925     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14926     # When not using gcc, we currently assume that we are using
14927     # Microsoft Visual C++.
14928     if test "$GCC" != yes; then
14929       with_gnu_ld=no
14930     fi
14931     ;;
14932   interix*)
14933     # we just hope/assume this is gcc and not c89 (= MSVC++)
14934     with_gnu_ld=yes
14935     ;;
14936   openbsd*)
14937     with_gnu_ld=no
14938     ;;
14939   esac
14940
14941   ld_shlibs=yes
14942   if test "$with_gnu_ld" = yes; then
14943     # If archive_cmds runs LD, not CC, wlarc should be empty
14944     wlarc='${wl}'
14945
14946     # Set some defaults for GNU ld with shared library support. These
14947     # are reset later if shared libraries are not supported. Putting them
14948     # here allows them to be overridden if necessary.
14949     runpath_var=LD_RUN_PATH
14950     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14951     export_dynamic_flag_spec='${wl}--export-dynamic'
14952     # ancient GNU ld didn't support --whole-archive et. al.
14953     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14954         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14955       else
14956         whole_archive_flag_spec=
14957     fi
14958     supports_anon_versioning=no
14959     case `$LD -v 2>/dev/null` in
14960       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14961       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14962       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14963       *\ 2.11.*) ;; # other 2.11 versions
14964       *) supports_anon_versioning=yes ;;
14965     esac
14966
14967     # See if GNU ld supports shared libraries.
14968     case $host_os in
14969     aix3* | aix4* | aix5*)
14970       # On AIX/PPC, the GNU linker is very broken
14971       if test "$host_cpu" != ia64; then
14972         ld_shlibs=no
14973         cat <<EOF 1>&2
14974
14975 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14976 *** to be unable to reliably create shared libraries on AIX.
14977 *** Therefore, libtool is disabling shared libraries support.  If you
14978 *** really care for shared libraries, you may want to modify your PATH
14979 *** so that a non-GNU linker is found, and then restart.
14980
14981 EOF
14982       fi
14983       ;;
14984
14985     amigaos*)
14986       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)'
14987       hardcode_libdir_flag_spec='-L$libdir'
14988       hardcode_minus_L=yes
14989
14990       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14991       # that the semantics of dynamic libraries on AmigaOS, at least up
14992       # to version 4, is to share data among multiple programs linked
14993       # with the same dynamic library.  Since this doesn't match the
14994       # behavior of shared libraries on other platforms, we can't use
14995       # them.
14996       ld_shlibs=no
14997       ;;
14998
14999     beos*)
15000       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15001         allow_undefined_flag=unsupported
15002         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15003         # support --undefined.  This deserves some investigation.  FIXME
15004         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15005       else
15006         ld_shlibs=no
15007       fi
15008       ;;
15009
15010     cygwin* | mingw* | pw32*)
15011       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15012       # as there is no search path for DLLs.
15013       hardcode_libdir_flag_spec='-L$libdir'
15014       allow_undefined_flag=unsupported
15015       always_export_symbols=no
15016       enable_shared_with_static_runtimes=yes
15017       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15018
15019       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15020         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15021         # If the export-symbols file already is a .def file (1st line
15022         # is EXPORTS), use it as is; otherwise, prepend...
15023         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15024           cp $export_symbols $output_objdir/$soname.def;
15025         else
15026           echo EXPORTS > $output_objdir/$soname.def;
15027           cat $export_symbols >> $output_objdir/$soname.def;
15028         fi~
15029         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15030       else
15031         ld_shlibs=no
15032       fi
15033       ;;
15034
15035     interix3*)
15036       hardcode_direct=no
15037       hardcode_shlibpath_var=no
15038       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15039       export_dynamic_flag_spec='${wl}-E'
15040       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15041       # Instead, shared libraries are loaded at an image base (0x10000000 by
15042       # default) and relocated if they conflict, which is a slow very memory
15043       # consuming and fragmenting process.  To avoid this, we pick a random,
15044       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15045       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15046       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15047       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'
15048       ;;
15049
15050     linux*)
15051       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15052         tmp_addflag=
15053         case $cc_basename,$host_cpu in
15054         pgcc*)                          # Portland Group C compiler
15055           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'
15056           tmp_addflag=' $pic_flag'
15057           ;;
15058         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15059           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'
15060           tmp_addflag=' $pic_flag -Mnomain' ;;
15061         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15062           tmp_addflag=' -i_dynamic' ;;
15063         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15064           tmp_addflag=' -i_dynamic -nofor_main' ;;
15065         ifc* | ifort*)                  # Intel Fortran compiler
15066           tmp_addflag=' -nofor_main' ;;
15067         esac
15068         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15069
15070         if test $supports_anon_versioning = yes; then
15071           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15072   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15073   $echo "local: *; };" >> $output_objdir/$libname.ver~
15074           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15075         fi
15076       else
15077         ld_shlibs=no
15078       fi
15079       ;;
15080
15081     netbsd*)
15082       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15083         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15084         wlarc=
15085       else
15086         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15087         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15088       fi
15089       ;;
15090
15091     solaris*)
15092       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15093         ld_shlibs=no
15094         cat <<EOF 1>&2
15095
15096 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15097 *** create shared libraries on Solaris systems.  Therefore, libtool
15098 *** is disabling shared libraries support.  We urge you to upgrade GNU
15099 *** binutils to release 2.9.1 or newer.  Another option is to modify
15100 *** your PATH or compiler configuration so that the native linker is
15101 *** used, and then restart.
15102
15103 EOF
15104       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15105         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15106         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15107       else
15108         ld_shlibs=no
15109       fi
15110       ;;
15111
15112     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15113       case `$LD -v 2>&1` in
15114         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15115         ld_shlibs=no
15116         cat <<_LT_EOF 1>&2
15117
15118 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15119 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15120 *** is disabling shared libraries support.  We urge you to upgrade GNU
15121 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15122 *** your PATH or compiler configuration so that the native linker is
15123 *** used, and then restart.
15124
15125 _LT_EOF
15126         ;;
15127         *)
15128           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15129             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15130             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15131             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15132           else
15133             ld_shlibs=no
15134           fi
15135         ;;
15136       esac
15137       ;;
15138
15139     sunos4*)
15140       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15141       wlarc=
15142       hardcode_direct=yes
15143       hardcode_shlibpath_var=no
15144       ;;
15145
15146     *)
15147       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15148         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15149         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15150       else
15151         ld_shlibs=no
15152       fi
15153       ;;
15154     esac
15155
15156     if test "$ld_shlibs" = no; then
15157       runpath_var=
15158       hardcode_libdir_flag_spec=
15159       export_dynamic_flag_spec=
15160       whole_archive_flag_spec=
15161     fi
15162   else
15163     # PORTME fill in a description of your system's linker (not GNU ld)
15164     case $host_os in
15165     aix3*)
15166       allow_undefined_flag=unsupported
15167       always_export_symbols=yes
15168       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'
15169       # Note: this linker hardcodes the directories in LIBPATH if there
15170       # are no directories specified by -L.
15171       hardcode_minus_L=yes
15172       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15173         # Neither direct hardcoding nor static linking is supported with a
15174         # broken collect2.
15175         hardcode_direct=unsupported
15176       fi
15177       ;;
15178
15179     aix4* | aix5*)
15180       if test "$host_cpu" = ia64; then
15181         # On IA64, the linker does run time linking by default, so we don't
15182         # have to do anything special.
15183         aix_use_runtimelinking=no
15184         exp_sym_flag='-Bexport'
15185         no_entry_flag=""
15186       else
15187         # If we're using GNU nm, then we don't want the "-C" option.
15188         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15189         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15190           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'
15191         else
15192           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'
15193         fi
15194         aix_use_runtimelinking=no
15195
15196         # Test if we are trying to use run time linking or normal
15197         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15198         # need to do runtime linking.
15199         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15200           for ld_flag in $LDFLAGS; do
15201           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15202             aix_use_runtimelinking=yes
15203             break
15204           fi
15205           done
15206           ;;
15207         esac
15208
15209         exp_sym_flag='-bexport'
15210         no_entry_flag='-bnoentry'
15211       fi
15212
15213       # When large executables or shared objects are built, AIX ld can
15214       # have problems creating the table of contents.  If linking a library
15215       # or program results in "error TOC overflow" add -mminimal-toc to
15216       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15217       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15218
15219       archive_cmds=''
15220       hardcode_direct=yes
15221       hardcode_libdir_separator=':'
15222       link_all_deplibs=yes
15223
15224       if test "$GCC" = yes; then
15225         case $host_os in aix4.[012]|aix4.[012].*)
15226         # We only want to do this on AIX 4.2 and lower, the check
15227         # below for broken collect2 doesn't work under 4.3+
15228           collect2name=`${CC} -print-prog-name=collect2`
15229           if test -f "$collect2name" && \
15230            strings "$collect2name" | grep resolve_lib_name >/dev/null
15231           then
15232           # We have reworked collect2
15233           hardcode_direct=yes
15234           else
15235           # We have old collect2
15236           hardcode_direct=unsupported
15237           # It fails to find uninstalled libraries when the uninstalled
15238           # path is not listed in the libpath.  Setting hardcode_minus_L
15239           # to unsupported forces relinking
15240           hardcode_minus_L=yes
15241           hardcode_libdir_flag_spec='-L$libdir'
15242           hardcode_libdir_separator=
15243           fi
15244           ;;
15245         esac
15246         shared_flag='-shared'
15247         if test "$aix_use_runtimelinking" = yes; then
15248           shared_flag="$shared_flag "'${wl}-G'
15249         fi
15250       else
15251         # not using gcc
15252         if test "$host_cpu" = ia64; then
15253         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15254         # chokes on -Wl,-G. The following line is correct:
15255           shared_flag='-G'
15256         else
15257           if test "$aix_use_runtimelinking" = yes; then
15258             shared_flag='${wl}-G'
15259           else
15260             shared_flag='${wl}-bM:SRE'
15261           fi
15262         fi
15263       fi
15264
15265       # It seems that -bexpall does not export symbols beginning with
15266       # underscore (_), so it is better to generate a list of symbols to export.
15267       always_export_symbols=yes
15268       if test "$aix_use_runtimelinking" = yes; then
15269         # Warning - without using the other runtime loading flags (-brtl),
15270         # -berok will link without error, but may produce a broken library.
15271         allow_undefined_flag='-berok'
15272        # Determine the default libpath from the value encoded in an empty executable.
15273        cat >conftest.$ac_ext <<_ACEOF
15274 /* confdefs.h.  */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h.  */
15279
15280 int
15281 main ()
15282 {
15283
15284   ;
15285   return 0;
15286 }
15287 _ACEOF
15288 rm -f conftest.$ac_objext conftest$ac_exeext
15289 if { (ac_try="$ac_link"
15290 case "(($ac_try" in
15291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15292   *) ac_try_echo=$ac_try;;
15293 esac
15294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15295   (eval "$ac_link") 2>conftest.er1
15296   ac_status=$?
15297   grep -v '^ *+' conftest.er1 >conftest.err
15298   rm -f conftest.er1
15299   cat conftest.err >&5
15300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301   (exit $ac_status); } &&
15302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15303   { (case "(($ac_try" in
15304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305   *) ac_try_echo=$ac_try;;
15306 esac
15307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308   (eval "$ac_try") 2>&5
15309   ac_status=$?
15310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311   (exit $ac_status); }; } &&
15312          { ac_try='test -s conftest$ac_exeext'
15313   { (case "(($ac_try" in
15314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15315   *) ac_try_echo=$ac_try;;
15316 esac
15317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15318   (eval "$ac_try") 2>&5
15319   ac_status=$?
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); }; }; then
15322
15323 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15324 }'`
15325 # Check for a 64-bit object if we didn't find anything.
15326 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; }
15327 }'`; fi
15328 else
15329   echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15331
15332
15333 fi
15334
15335 rm -f core conftest.err conftest.$ac_objext \
15336       conftest$ac_exeext conftest.$ac_ext
15337 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15338
15339        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15340         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"
15341        else
15342         if test "$host_cpu" = ia64; then
15343           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15344           allow_undefined_flag="-z nodefs"
15345           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"
15346         else
15347          # Determine the default libpath from the value encoded in an empty executable.
15348          cat >conftest.$ac_ext <<_ACEOF
15349 /* confdefs.h.  */
15350 _ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h.  */
15354
15355 int
15356 main ()
15357 {
15358
15359   ;
15360   return 0;
15361 }
15362 _ACEOF
15363 rm -f conftest.$ac_objext conftest$ac_exeext
15364 if { (ac_try="$ac_link"
15365 case "(($ac_try" in
15366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367   *) ac_try_echo=$ac_try;;
15368 esac
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370   (eval "$ac_link") 2>conftest.er1
15371   ac_status=$?
15372   grep -v '^ *+' conftest.er1 >conftest.err
15373   rm -f conftest.er1
15374   cat conftest.err >&5
15375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376   (exit $ac_status); } &&
15377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15378   { (case "(($ac_try" in
15379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380   *) ac_try_echo=$ac_try;;
15381 esac
15382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15383   (eval "$ac_try") 2>&5
15384   ac_status=$?
15385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); }; } &&
15387          { ac_try='test -s conftest$ac_exeext'
15388   { (case "(($ac_try" in
15389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390   *) ac_try_echo=$ac_try;;
15391 esac
15392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393   (eval "$ac_try") 2>&5
15394   ac_status=$?
15395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396   (exit $ac_status); }; }; then
15397
15398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15399 }'`
15400 # Check for a 64-bit object if we didn't find anything.
15401 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; }
15402 }'`; fi
15403 else
15404   echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15406
15407
15408 fi
15409
15410 rm -f core conftest.err conftest.$ac_objext \
15411       conftest$ac_exeext conftest.$ac_ext
15412 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15413
15414          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15415           # Warning - without using the other run time loading flags,
15416           # -berok will link without error, but may produce a broken library.
15417           no_undefined_flag=' ${wl}-bernotok'
15418           allow_undefined_flag=' ${wl}-berok'
15419           # Exported symbols can be pulled into shared objects from archives
15420           whole_archive_flag_spec='$convenience'
15421           archive_cmds_need_lc=yes
15422           # This is similar to how AIX traditionally builds its shared libraries.
15423           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'
15424         fi
15425       fi
15426       ;;
15427
15428     amigaos*)
15429       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)'
15430       hardcode_libdir_flag_spec='-L$libdir'
15431       hardcode_minus_L=yes
15432       # see comment about different semantics on the GNU ld section
15433       ld_shlibs=no
15434       ;;
15435
15436     bsdi[45]*)
15437       export_dynamic_flag_spec=-rdynamic
15438       ;;
15439
15440     cygwin* | mingw* | pw32*)
15441       # When not using gcc, we currently assume that we are using
15442       # Microsoft Visual C++.
15443       # hardcode_libdir_flag_spec is actually meaningless, as there is
15444       # no search path for DLLs.
15445       hardcode_libdir_flag_spec=' '
15446       allow_undefined_flag=unsupported
15447       # Tell ltmain to make .lib files, not .a files.
15448       libext=lib
15449       # Tell ltmain to make .dll files, not .so files.
15450       shrext_cmds=".dll"
15451       # FIXME: Setting linknames here is a bad hack.
15452       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15453       # The linker will automatically build a .lib file if we build a DLL.
15454       old_archive_From_new_cmds='true'
15455       # FIXME: Should let the user specify the lib program.
15456       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15457       fix_srcfile_path='`cygpath -w "$srcfile"`'
15458       enable_shared_with_static_runtimes=yes
15459       ;;
15460
15461     darwin* | rhapsody*)
15462       case $host_os in
15463         rhapsody* | darwin1.[012])
15464          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15465          ;;
15466        *) # Darwin 1.3 on
15467          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15468            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15469          else
15470            case ${MACOSX_DEPLOYMENT_TARGET} in
15471              10.[012])
15472                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15473                ;;
15474              10.*)
15475                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15476                ;;
15477            esac
15478          fi
15479          ;;
15480       esac
15481       archive_cmds_need_lc=no
15482       hardcode_direct=no
15483       hardcode_automatic=yes
15484       hardcode_shlibpath_var=unsupported
15485       whole_archive_flag_spec=''
15486       link_all_deplibs=yes
15487     if test "$GCC" = yes ; then
15488         output_verbose_link_cmd='echo'
15489         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15490       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15491       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15492       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}'
15493       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}'
15494     else
15495       case $cc_basename in
15496         xlc*)
15497          output_verbose_link_cmd='echo'
15498          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15499          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15500           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15501          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}'
15502           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}'
15503           ;;
15504        *)
15505          ld_shlibs=no
15506           ;;
15507       esac
15508     fi
15509       ;;
15510
15511     dgux*)
15512       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15513       hardcode_libdir_flag_spec='-L$libdir'
15514       hardcode_shlibpath_var=no
15515       ;;
15516
15517     freebsd1*)
15518       ld_shlibs=no
15519       ;;
15520
15521     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15522     # support.  Future versions do this automatically, but an explicit c++rt0.o
15523     # does not break anything, and helps significantly (at the cost of a little
15524     # extra space).
15525     freebsd2.2*)
15526       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15527       hardcode_libdir_flag_spec='-R$libdir'
15528       hardcode_direct=yes
15529       hardcode_shlibpath_var=no
15530       ;;
15531
15532     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15533     freebsd2*)
15534       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15535       hardcode_direct=yes
15536       hardcode_minus_L=yes
15537       hardcode_shlibpath_var=no
15538       ;;
15539
15540     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15541     freebsd* | kfreebsd*-gnu | dragonfly*)
15542       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15543       hardcode_libdir_flag_spec='-R$libdir'
15544       hardcode_direct=yes
15545       hardcode_shlibpath_var=no
15546       ;;
15547
15548     hpux9*)
15549       if test "$GCC" = yes; then
15550         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'
15551       else
15552         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'
15553       fi
15554       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15555       hardcode_libdir_separator=:
15556       hardcode_direct=yes
15557
15558       # hardcode_minus_L: Not really in the search PATH,
15559       # but as the default location of the library.
15560       hardcode_minus_L=yes
15561       export_dynamic_flag_spec='${wl}-E'
15562       ;;
15563
15564     hpux10*)
15565       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15566         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15567       else
15568         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15569       fi
15570       if test "$with_gnu_ld" = no; then
15571         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15572         hardcode_libdir_separator=:
15573
15574         hardcode_direct=yes
15575         export_dynamic_flag_spec='${wl}-E'
15576
15577         # hardcode_minus_L: Not really in the search PATH,
15578         # but as the default location of the library.
15579         hardcode_minus_L=yes
15580       fi
15581       ;;
15582
15583     hpux11*)
15584       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15585         case $host_cpu in
15586         hppa*64*)
15587           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15588           ;;
15589         ia64*)
15590           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15591           ;;
15592         *)
15593           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15594           ;;
15595         esac
15596       else
15597         case $host_cpu in
15598         hppa*64*)
15599           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15600           ;;
15601         ia64*)
15602           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15603           ;;
15604         *)
15605           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15606           ;;
15607         esac
15608       fi
15609       if test "$with_gnu_ld" = no; then
15610         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15611         hardcode_libdir_separator=:
15612
15613         case $host_cpu in
15614         hppa*64*|ia64*)
15615           hardcode_libdir_flag_spec_ld='+b $libdir'
15616           hardcode_direct=no
15617           hardcode_shlibpath_var=no
15618           ;;
15619         *)
15620           hardcode_direct=yes
15621           export_dynamic_flag_spec='${wl}-E'
15622
15623           # hardcode_minus_L: Not really in the search PATH,
15624           # but as the default location of the library.
15625           hardcode_minus_L=yes
15626           ;;
15627         esac
15628       fi
15629       ;;
15630
15631     irix5* | irix6* | nonstopux*)
15632       if test "$GCC" = yes; then
15633         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'
15634       else
15635         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'
15636         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15637       fi
15638       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15639       hardcode_libdir_separator=:
15640       link_all_deplibs=yes
15641       ;;
15642
15643     netbsd*)
15644       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15645         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15646       else
15647         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15648       fi
15649       hardcode_libdir_flag_spec='-R$libdir'
15650       hardcode_direct=yes
15651       hardcode_shlibpath_var=no
15652       ;;
15653
15654     newsos6)
15655       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15656       hardcode_direct=yes
15657       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15658       hardcode_libdir_separator=:
15659       hardcode_shlibpath_var=no
15660       ;;
15661
15662     openbsd*)
15663       hardcode_direct=yes
15664       hardcode_shlibpath_var=no
15665       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15666         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15667         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15668         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15669         export_dynamic_flag_spec='${wl}-E'
15670       else
15671        case $host_os in
15672          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15673            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15674            hardcode_libdir_flag_spec='-R$libdir'
15675            ;;
15676          *)
15677            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15678            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15679            ;;
15680        esac
15681       fi
15682       ;;
15683
15684     os2*)
15685       hardcode_libdir_flag_spec='-L$libdir'
15686       hardcode_minus_L=yes
15687       allow_undefined_flag=unsupported
15688       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'
15689       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15690       ;;
15691
15692     osf3*)
15693       if test "$GCC" = yes; then
15694         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15695         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'
15696       else
15697         allow_undefined_flag=' -expect_unresolved \*'
15698         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'
15699       fi
15700       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15701       hardcode_libdir_separator=:
15702       ;;
15703
15704     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15705       if test "$GCC" = yes; then
15706         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15707         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'
15708         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15709       else
15710         allow_undefined_flag=' -expect_unresolved \*'
15711         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'
15712         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15713         $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'
15714
15715         # Both c and cxx compiler support -rpath directly
15716         hardcode_libdir_flag_spec='-rpath $libdir'
15717       fi
15718       hardcode_libdir_separator=:
15719       ;;
15720
15721     solaris*)
15722       no_undefined_flag=' -z text'
15723       if test "$GCC" = yes; then
15724         wlarc='${wl}'
15725         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15726         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15727           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15728       else
15729         wlarc=''
15730         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15731         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15732         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15733       fi
15734       hardcode_libdir_flag_spec='-R$libdir'
15735       hardcode_shlibpath_var=no
15736       case $host_os in
15737       solaris2.[0-5] | solaris2.[0-5].*) ;;
15738       *)
15739         # The compiler driver will combine linker options so we
15740         # cannot just pass the convience library names through
15741         # without $wl, iff we do not link with $LD.
15742         # Luckily, gcc supports the same syntax we need for Sun Studio.
15743         # Supported since Solaris 2.6 (maybe 2.5.1?)
15744         case $wlarc in
15745         '')
15746           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15747         *)
15748           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' ;;
15749         esac ;;
15750       esac
15751       link_all_deplibs=yes
15752       ;;
15753
15754     sunos4*)
15755       if test "x$host_vendor" = xsequent; then
15756         # Use $CC to link under sequent, because it throws in some extra .o
15757         # files that make .init and .fini sections work.
15758         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15759       else
15760         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15761       fi
15762       hardcode_libdir_flag_spec='-L$libdir'
15763       hardcode_direct=yes
15764       hardcode_minus_L=yes
15765       hardcode_shlibpath_var=no
15766       ;;
15767
15768     sysv4)
15769       case $host_vendor in
15770         sni)
15771           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15772           hardcode_direct=yes # is this really true???
15773         ;;
15774         siemens)
15775           ## LD is ld it makes a PLAMLIB
15776           ## CC just makes a GrossModule.
15777           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15778           reload_cmds='$CC -r -o $output$reload_objs'
15779           hardcode_direct=no
15780         ;;
15781         motorola)
15782           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15783           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15784         ;;
15785       esac
15786       runpath_var='LD_RUN_PATH'
15787       hardcode_shlibpath_var=no
15788       ;;
15789
15790     sysv4.3*)
15791       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15792       hardcode_shlibpath_var=no
15793       export_dynamic_flag_spec='-Bexport'
15794       ;;
15795
15796     sysv4*MP*)
15797       if test -d /usr/nec; then
15798         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15799         hardcode_shlibpath_var=no
15800         runpath_var=LD_RUN_PATH
15801         hardcode_runpath_var=yes
15802         ld_shlibs=yes
15803       fi
15804       ;;
15805
15806     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15807       no_undefined_flag='${wl}-z,text'
15808       archive_cmds_need_lc=no
15809       hardcode_shlibpath_var=no
15810       runpath_var='LD_RUN_PATH'
15811
15812       if test "$GCC" = yes; then
15813         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15814         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15815       else
15816         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15817         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15818       fi
15819       ;;
15820
15821     sysv5* | sco3.2v5* | sco5v6*)
15822       # Note: We can NOT use -z defs as we might desire, because we do not
15823       # link with -lc, and that would cause any symbols used from libc to
15824       # always be unresolved, which means just about no library would
15825       # ever link correctly.  If we're not using GNU ld we use -z text
15826       # though, which does catch some bad symbols but isn't as heavy-handed
15827       # as -z defs.
15828       no_undefined_flag='${wl}-z,text'
15829       allow_undefined_flag='${wl}-z,nodefs'
15830       archive_cmds_need_lc=no
15831       hardcode_shlibpath_var=no
15832       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15833       hardcode_libdir_separator=':'
15834       link_all_deplibs=yes
15835       export_dynamic_flag_spec='${wl}-Bexport'
15836       runpath_var='LD_RUN_PATH'
15837
15838       if test "$GCC" = yes; then
15839         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15840         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15841       else
15842         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15843         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15844       fi
15845       ;;
15846
15847     uts4*)
15848       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15849       hardcode_libdir_flag_spec='-L$libdir'
15850       hardcode_shlibpath_var=no
15851       ;;
15852
15853     *)
15854       ld_shlibs=no
15855       ;;
15856     esac
15857   fi
15858
15859 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15860 echo "${ECHO_T}$ld_shlibs" >&6; }
15861 test "$ld_shlibs" = no && can_build_shared=no
15862
15863 #
15864 # Do we need to explicitly link libc?
15865 #
15866 case "x$archive_cmds_need_lc" in
15867 x|xyes)
15868   # Assume -lc should be added
15869   archive_cmds_need_lc=yes
15870
15871   if test "$enable_shared" = yes && test "$GCC" = yes; then
15872     case $archive_cmds in
15873     *'~'*)
15874       # FIXME: we may have to deal with multi-command sequences.
15875       ;;
15876     '$CC '*)
15877       # Test whether the compiler implicitly links with -lc since on some
15878       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15879       # to ld, don't add -lc before -lgcc.
15880       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15881 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15882       $rm conftest*
15883       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15884
15885       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15886   (eval $ac_compile) 2>&5
15887   ac_status=$?
15888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   (exit $ac_status); } 2>conftest.err; then
15890         soname=conftest
15891         lib=conftest
15892         libobjs=conftest.$ac_objext
15893         deplibs=
15894         wl=$lt_prog_compiler_wl
15895         pic_flag=$lt_prog_compiler_pic
15896         compiler_flags=-v
15897         linker_flags=-v
15898         verstring=
15899         output_objdir=.
15900         libname=conftest
15901         lt_save_allow_undefined_flag=$allow_undefined_flag
15902         allow_undefined_flag=
15903         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15904   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15905   ac_status=$?
15906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907   (exit $ac_status); }
15908         then
15909           archive_cmds_need_lc=no
15910         else
15911           archive_cmds_need_lc=yes
15912         fi
15913         allow_undefined_flag=$lt_save_allow_undefined_flag
15914       else
15915         cat conftest.err 1>&5
15916       fi
15917       $rm conftest*
15918       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15919 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15920       ;;
15921     esac
15922   fi
15923   ;;
15924 esac
15925
15926 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15927 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15928 library_names_spec=
15929 libname_spec='lib$name'
15930 soname_spec=
15931 shrext_cmds=".so"
15932 postinstall_cmds=
15933 postuninstall_cmds=
15934 finish_cmds=
15935 finish_eval=
15936 shlibpath_var=
15937 shlibpath_overrides_runpath=unknown
15938 version_type=none
15939 dynamic_linker="$host_os ld.so"
15940 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15941 if test "$GCC" = yes; then
15942   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15943   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15944     # if the path contains ";" then we assume it to be the separator
15945     # otherwise default to the standard path separator (i.e. ":") - it is
15946     # assumed that no part of a normal pathname contains ";" but that should
15947     # okay in the real world where ";" in dirpaths is itself problematic.
15948     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15949   else
15950     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15951   fi
15952 else
15953   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15954 fi
15955 need_lib_prefix=unknown
15956 hardcode_into_libs=no
15957
15958 # when you set need_version to no, make sure it does not cause -set_version
15959 # flags to be left without arguments
15960 need_version=unknown
15961
15962 case $host_os in
15963 aix3*)
15964   version_type=linux
15965   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15966   shlibpath_var=LIBPATH
15967
15968   # AIX 3 has no versioning support, so we append a major version to the name.
15969   soname_spec='${libname}${release}${shared_ext}$major'
15970   ;;
15971
15972 aix4* | aix5*)
15973   version_type=linux
15974   need_lib_prefix=no
15975   need_version=no
15976   hardcode_into_libs=yes
15977   if test "$host_cpu" = ia64; then
15978     # AIX 5 supports IA64
15979     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15980     shlibpath_var=LD_LIBRARY_PATH
15981   else
15982     # With GCC up to 2.95.x, collect2 would create an import file
15983     # for dependence libraries.  The import file would start with
15984     # the line `#! .'.  This would cause the generated library to
15985     # depend on `.', always an invalid library.  This was fixed in
15986     # development snapshots of GCC prior to 3.0.
15987     case $host_os in
15988       aix4 | aix4.[01] | aix4.[01].*)
15989       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15990            echo ' yes '
15991            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15992         :
15993       else
15994         can_build_shared=no
15995       fi
15996       ;;
15997     esac
15998     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15999     # soname into executable. Probably we can add versioning support to
16000     # collect2, so additional links can be useful in future.
16001     if test "$aix_use_runtimelinking" = yes; then
16002       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16003       # instead of lib<name>.a to let people know that these are not
16004       # typical AIX shared libraries.
16005       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16006     else
16007       # We preserve .a as extension for shared libraries through AIX4.2
16008       # and later when we are not doing run time linking.
16009       library_names_spec='${libname}${release}.a $libname.a'
16010       soname_spec='${libname}${release}${shared_ext}$major'
16011     fi
16012     shlibpath_var=LIBPATH
16013   fi
16014   ;;
16015
16016 amigaos*)
16017   library_names_spec='$libname.ixlibrary $libname.a'
16018   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16019   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'
16020   ;;
16021
16022 beos*)
16023   library_names_spec='${libname}${shared_ext}'
16024   dynamic_linker="$host_os ld.so"
16025   shlibpath_var=LIBRARY_PATH
16026   ;;
16027
16028 bsdi[45]*)
16029   version_type=linux
16030   need_version=no
16031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16032   soname_spec='${libname}${release}${shared_ext}$major'
16033   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16034   shlibpath_var=LD_LIBRARY_PATH
16035   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16036   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16037   # the default ld.so.conf also contains /usr/contrib/lib and
16038   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16039   # libtool to hard-code these into programs
16040   ;;
16041
16042 cygwin* | mingw* | pw32*)
16043   version_type=windows
16044   shrext_cmds=".dll"
16045   need_version=no
16046   need_lib_prefix=no
16047
16048   case $GCC,$host_os in
16049   yes,cygwin* | yes,mingw* | yes,pw32*)
16050     library_names_spec='$libname.dll.a'
16051     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16052     postinstall_cmds='base_file=`basename \${file}`~
16053       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16054       dldir=$destdir/`dirname \$dlpath`~
16055       test -d \$dldir || mkdir -p \$dldir~
16056       $install_prog $dir/$dlname \$dldir/$dlname~
16057       chmod a+x \$dldir/$dlname'
16058     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16059       dlpath=$dir/\$dldll~
16060        $rm \$dlpath'
16061     shlibpath_overrides_runpath=yes
16062
16063     case $host_os in
16064     cygwin*)
16065       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16066       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16067       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16068       ;;
16069     mingw*)
16070       # MinGW DLLs use traditional 'lib' prefix
16071       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16072       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16073       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16074         # It is most probably a Windows format PATH printed by
16075         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16076         # path with ; separators, and with drive letters. We can handle the
16077         # drive letters (cygwin fileutils understands them), so leave them,
16078         # especially as we might pass files found there to a mingw objdump,
16079         # which wouldn't understand a cygwinified path. Ahh.
16080         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16081       else
16082         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16083       fi
16084       ;;
16085     pw32*)
16086       # pw32 DLLs use 'pw' prefix rather than 'lib'
16087       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16088       ;;
16089     esac
16090     ;;
16091
16092   *)
16093     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16094     ;;
16095   esac
16096   dynamic_linker='Win32 ld.exe'
16097   # FIXME: first we should search . and the directory the executable is in
16098   shlibpath_var=PATH
16099   ;;
16100
16101 darwin* | rhapsody*)
16102   dynamic_linker="$host_os dyld"
16103   version_type=darwin
16104   need_lib_prefix=no
16105   need_version=no
16106   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16107   soname_spec='${libname}${release}${major}$shared_ext'
16108   shlibpath_overrides_runpath=yes
16109   shlibpath_var=DYLD_LIBRARY_PATH
16110   shrext_cmds='.dylib'
16111   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16112   if test "$GCC" = yes; then
16113     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"`
16114   else
16115     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16116   fi
16117   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16118   ;;
16119
16120 dgux*)
16121   version_type=linux
16122   need_lib_prefix=no
16123   need_version=no
16124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16125   soname_spec='${libname}${release}${shared_ext}$major'
16126   shlibpath_var=LD_LIBRARY_PATH
16127   ;;
16128
16129 freebsd1*)
16130   dynamic_linker=no
16131   ;;
16132
16133 kfreebsd*-gnu)
16134   version_type=linux
16135   need_lib_prefix=no
16136   need_version=no
16137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16138   soname_spec='${libname}${release}${shared_ext}$major'
16139   shlibpath_var=LD_LIBRARY_PATH
16140   shlibpath_overrides_runpath=no
16141   hardcode_into_libs=yes
16142   dynamic_linker='GNU ld.so'
16143   ;;
16144
16145 freebsd* | dragonfly*)
16146   # DragonFly does not have aout.  When/if they implement a new
16147   # versioning mechanism, adjust this.
16148   if test -x /usr/bin/objformat; then
16149     objformat=`/usr/bin/objformat`
16150   else
16151     case $host_os in
16152     freebsd[123]*) objformat=aout ;;
16153     *) objformat=elf ;;
16154     esac
16155   fi
16156   version_type=freebsd-$objformat
16157   case $version_type in
16158     freebsd-elf*)
16159       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16160       need_version=no
16161       need_lib_prefix=no
16162       ;;
16163     freebsd-*)
16164       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16165       need_version=yes
16166       ;;
16167   esac
16168   shlibpath_var=LD_LIBRARY_PATH
16169   case $host_os in
16170   freebsd2*)
16171     shlibpath_overrides_runpath=yes
16172     ;;
16173   freebsd3.[01]* | freebsdelf3.[01]*)
16174     shlibpath_overrides_runpath=yes
16175     hardcode_into_libs=yes
16176     ;;
16177   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16178   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16179     shlibpath_overrides_runpath=no
16180     hardcode_into_libs=yes
16181     ;;
16182   freebsd*) # from 4.6 on
16183     shlibpath_overrides_runpath=yes
16184     hardcode_into_libs=yes
16185     ;;
16186   esac
16187   ;;
16188
16189 gnu*)
16190   version_type=linux
16191   need_lib_prefix=no
16192   need_version=no
16193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16194   soname_spec='${libname}${release}${shared_ext}$major'
16195   shlibpath_var=LD_LIBRARY_PATH
16196   hardcode_into_libs=yes
16197   ;;
16198
16199 hpux9* | hpux10* | hpux11*)
16200   # Give a soname corresponding to the major version so that dld.sl refuses to
16201   # link against other versions.
16202   version_type=sunos
16203   need_lib_prefix=no
16204   need_version=no
16205   case $host_cpu in
16206   ia64*)
16207     shrext_cmds='.so'
16208     hardcode_into_libs=yes
16209     dynamic_linker="$host_os dld.so"
16210     shlibpath_var=LD_LIBRARY_PATH
16211     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16212     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16213     soname_spec='${libname}${release}${shared_ext}$major'
16214     if test "X$HPUX_IA64_MODE" = X32; then
16215       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16216     else
16217       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16218     fi
16219     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16220     ;;
16221    hppa*64*)
16222      shrext_cmds='.sl'
16223      hardcode_into_libs=yes
16224      dynamic_linker="$host_os dld.sl"
16225      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16226      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16227      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228      soname_spec='${libname}${release}${shared_ext}$major'
16229      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16230      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16231      ;;
16232    *)
16233     shrext_cmds='.sl'
16234     dynamic_linker="$host_os dld.sl"
16235     shlibpath_var=SHLIB_PATH
16236     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16237     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238     soname_spec='${libname}${release}${shared_ext}$major'
16239     ;;
16240   esac
16241   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16242   postinstall_cmds='chmod 555 $lib'
16243   ;;
16244
16245 interix3*)
16246   version_type=linux
16247   need_lib_prefix=no
16248   need_version=no
16249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16250   soname_spec='${libname}${release}${shared_ext}$major'
16251   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16252   shlibpath_var=LD_LIBRARY_PATH
16253   shlibpath_overrides_runpath=no
16254   hardcode_into_libs=yes
16255   ;;
16256
16257 irix5* | irix6* | nonstopux*)
16258   case $host_os in
16259     nonstopux*) version_type=nonstopux ;;
16260     *)
16261         if test "$lt_cv_prog_gnu_ld" = yes; then
16262                 version_type=linux
16263         else
16264                 version_type=irix
16265         fi ;;
16266   esac
16267   need_lib_prefix=no
16268   need_version=no
16269   soname_spec='${libname}${release}${shared_ext}$major'
16270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16271   case $host_os in
16272   irix5* | nonstopux*)
16273     libsuff= shlibsuff=
16274     ;;
16275   *)
16276     case $LD in # libtool.m4 will add one of these switches to LD
16277     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16278       libsuff= shlibsuff= libmagic=32-bit;;
16279     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16280       libsuff=32 shlibsuff=N32 libmagic=N32;;
16281     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16282       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16283     *) libsuff= shlibsuff= libmagic=never-match;;
16284     esac
16285     ;;
16286   esac
16287   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16288   shlibpath_overrides_runpath=no
16289   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16290   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16291   hardcode_into_libs=yes
16292   ;;
16293
16294 # No shared lib support for Linux oldld, aout, or coff.
16295 linux*oldld* | linux*aout* | linux*coff*)
16296   dynamic_linker=no
16297   ;;
16298
16299 # This must be Linux ELF.
16300 linux*)
16301   version_type=linux
16302   need_lib_prefix=no
16303   need_version=no
16304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16305   soname_spec='${libname}${release}${shared_ext}$major'
16306   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16307   shlibpath_var=LD_LIBRARY_PATH
16308   shlibpath_overrides_runpath=no
16309   # This implies no fast_install, which is unacceptable.
16310   # Some rework will be needed to allow for fast_install
16311   # before this can be enabled.
16312   hardcode_into_libs=yes
16313
16314   # Append ld.so.conf contents to the search path
16315   if test -f /etc/ld.so.conf; then
16316     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' ' '`
16317     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16318   fi
16319
16320   # We used to test for /lib/ld.so.1 and disable shared libraries on
16321   # powerpc, because MkLinux only supported shared libraries with the
16322   # GNU dynamic linker.  Since this was broken with cross compilers,
16323   # most powerpc-linux boxes support dynamic linking these days and
16324   # people can always --disable-shared, the test was removed, and we
16325   # assume the GNU/Linux dynamic linker is in use.
16326   dynamic_linker='GNU/Linux ld.so'
16327   ;;
16328
16329 knetbsd*-gnu)
16330   version_type=linux
16331   need_lib_prefix=no
16332   need_version=no
16333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16334   soname_spec='${libname}${release}${shared_ext}$major'
16335   shlibpath_var=LD_LIBRARY_PATH
16336   shlibpath_overrides_runpath=no
16337   hardcode_into_libs=yes
16338   dynamic_linker='GNU ld.so'
16339   ;;
16340
16341 netbsd*)
16342   version_type=sunos
16343   need_lib_prefix=no
16344   need_version=no
16345   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16347     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16348     dynamic_linker='NetBSD (a.out) ld.so'
16349   else
16350     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16351     soname_spec='${libname}${release}${shared_ext}$major'
16352     dynamic_linker='NetBSD ld.elf_so'
16353   fi
16354   shlibpath_var=LD_LIBRARY_PATH
16355   shlibpath_overrides_runpath=yes
16356   hardcode_into_libs=yes
16357   ;;
16358
16359 newsos6)
16360   version_type=linux
16361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16362   shlibpath_var=LD_LIBRARY_PATH
16363   shlibpath_overrides_runpath=yes
16364   ;;
16365
16366 nto-qnx*)
16367   version_type=linux
16368   need_lib_prefix=no
16369   need_version=no
16370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16371   soname_spec='${libname}${release}${shared_ext}$major'
16372   shlibpath_var=LD_LIBRARY_PATH
16373   shlibpath_overrides_runpath=yes
16374   ;;
16375
16376 openbsd*)
16377   version_type=sunos
16378   sys_lib_dlsearch_path_spec="/usr/lib"
16379   need_lib_prefix=no
16380   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16381   case $host_os in
16382     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16383     *)                         need_version=no  ;;
16384   esac
16385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16386   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16387   shlibpath_var=LD_LIBRARY_PATH
16388   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16389     case $host_os in
16390       openbsd2.[89] | openbsd2.[89].*)
16391         shlibpath_overrides_runpath=no
16392         ;;
16393       *)
16394         shlibpath_overrides_runpath=yes
16395         ;;
16396       esac
16397   else
16398     shlibpath_overrides_runpath=yes
16399   fi
16400   ;;
16401
16402 os2*)
16403   libname_spec='$name'
16404   shrext_cmds=".dll"
16405   need_lib_prefix=no
16406   library_names_spec='$libname${shared_ext} $libname.a'
16407   dynamic_linker='OS/2 ld.exe'
16408   shlibpath_var=LIBPATH
16409   ;;
16410
16411 osf3* | osf4* | osf5*)
16412   version_type=osf
16413   need_lib_prefix=no
16414   need_version=no
16415   soname_spec='${libname}${release}${shared_ext}$major'
16416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417   shlibpath_var=LD_LIBRARY_PATH
16418   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16419   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16420   ;;
16421
16422 solaris*)
16423   version_type=linux
16424   need_lib_prefix=no
16425   need_version=no
16426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16427   soname_spec='${libname}${release}${shared_ext}$major'
16428   shlibpath_var=LD_LIBRARY_PATH
16429   shlibpath_overrides_runpath=yes
16430   hardcode_into_libs=yes
16431   # ldd complains unless libraries are executable
16432   postinstall_cmds='chmod +x $lib'
16433   ;;
16434
16435 sunos4*)
16436   version_type=sunos
16437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16438   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16439   shlibpath_var=LD_LIBRARY_PATH
16440   shlibpath_overrides_runpath=yes
16441   if test "$with_gnu_ld" = yes; then
16442     need_lib_prefix=no
16443   fi
16444   need_version=yes
16445   ;;
16446
16447 sysv4 | sysv4.3*)
16448   version_type=linux
16449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16450   soname_spec='${libname}${release}${shared_ext}$major'
16451   shlibpath_var=LD_LIBRARY_PATH
16452   case $host_vendor in
16453     sni)
16454       shlibpath_overrides_runpath=no
16455       need_lib_prefix=no
16456       export_dynamic_flag_spec='${wl}-Blargedynsym'
16457       runpath_var=LD_RUN_PATH
16458       ;;
16459     siemens)
16460       need_lib_prefix=no
16461       ;;
16462     motorola)
16463       need_lib_prefix=no
16464       need_version=no
16465       shlibpath_overrides_runpath=no
16466       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16467       ;;
16468   esac
16469   ;;
16470
16471 sysv4*MP*)
16472   if test -d /usr/nec ;then
16473     version_type=linux
16474     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16475     soname_spec='$libname${shared_ext}.$major'
16476     shlibpath_var=LD_LIBRARY_PATH
16477   fi
16478   ;;
16479
16480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16481   version_type=freebsd-elf
16482   need_lib_prefix=no
16483   need_version=no
16484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16485   soname_spec='${libname}${release}${shared_ext}$major'
16486   shlibpath_var=LD_LIBRARY_PATH
16487   hardcode_into_libs=yes
16488   if test "$with_gnu_ld" = yes; then
16489     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16490     shlibpath_overrides_runpath=no
16491   else
16492     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16493     shlibpath_overrides_runpath=yes
16494     case $host_os in
16495       sco3.2v5*)
16496         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16497         ;;
16498     esac
16499   fi
16500   sys_lib_dlsearch_path_spec='/usr/lib'
16501   ;;
16502
16503 uts4*)
16504   version_type=linux
16505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16506   soname_spec='${libname}${release}${shared_ext}$major'
16507   shlibpath_var=LD_LIBRARY_PATH
16508   ;;
16509
16510 *)
16511   dynamic_linker=no
16512   ;;
16513 esac
16514 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16515 echo "${ECHO_T}$dynamic_linker" >&6; }
16516 test "$dynamic_linker" = no && can_build_shared=no
16517
16518 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16519 if test "$GCC" = yes; then
16520   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16521 fi
16522
16523 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16524 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16525 hardcode_action=
16526 if test -n "$hardcode_libdir_flag_spec" || \
16527    test -n "$runpath_var" || \
16528    test "X$hardcode_automatic" = "Xyes" ; then
16529
16530   # We can hardcode non-existant directories.
16531   if test "$hardcode_direct" != no &&
16532      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16533      # have to relink, otherwise we might link with an installed library
16534      # when we should be linking with a yet-to-be-installed one
16535      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16536      test "$hardcode_minus_L" != no; then
16537     # Linking always hardcodes the temporary library directory.
16538     hardcode_action=relink
16539   else
16540     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16541     hardcode_action=immediate
16542   fi
16543 else
16544   # We cannot hardcode anything, or else we can only hardcode existing
16545   # directories.
16546   hardcode_action=unsupported
16547 fi
16548 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16549 echo "${ECHO_T}$hardcode_action" >&6; }
16550
16551 if test "$hardcode_action" = relink; then
16552   # Fast installation is not supported
16553   enable_fast_install=no
16554 elif test "$shlibpath_overrides_runpath" = yes ||
16555      test "$enable_shared" = no; then
16556   # Fast installation is not necessary
16557   enable_fast_install=needless
16558 fi
16559
16560 striplib=
16561 old_striplib=
16562 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16563 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16564 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16565   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16566   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16567   { echo "$as_me:$LINENO: result: yes" >&5
16568 echo "${ECHO_T}yes" >&6; }
16569 else
16570 # FIXME - insert some real tests, host_os isn't really good enough
16571   case $host_os in
16572    darwin*)
16573        if test -n "$STRIP" ; then
16574          striplib="$STRIP -x"
16575          { echo "$as_me:$LINENO: result: yes" >&5
16576 echo "${ECHO_T}yes" >&6; }
16577        else
16578   { echo "$as_me:$LINENO: result: no" >&5
16579 echo "${ECHO_T}no" >&6; }
16580 fi
16581        ;;
16582    *)
16583   { echo "$as_me:$LINENO: result: no" >&5
16584 echo "${ECHO_T}no" >&6; }
16585     ;;
16586   esac
16587 fi
16588
16589 if test "x$enable_dlopen" != xyes; then
16590   enable_dlopen=unknown
16591   enable_dlopen_self=unknown
16592   enable_dlopen_self_static=unknown
16593 else
16594   lt_cv_dlopen=no
16595   lt_cv_dlopen_libs=
16596
16597   case $host_os in
16598   beos*)
16599     lt_cv_dlopen="load_add_on"
16600     lt_cv_dlopen_libs=
16601     lt_cv_dlopen_self=yes
16602     ;;
16603
16604   mingw* | pw32*)
16605     lt_cv_dlopen="LoadLibrary"
16606     lt_cv_dlopen_libs=
16607    ;;
16608
16609   cygwin*)
16610     lt_cv_dlopen="dlopen"
16611     lt_cv_dlopen_libs=
16612    ;;
16613
16614   darwin*)
16615   # if libdl is installed we need to link against it
16616     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16617 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16618 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16619   echo $ECHO_N "(cached) $ECHO_C" >&6
16620 else
16621   ac_check_lib_save_LIBS=$LIBS
16622 LIBS="-ldl  $LIBS"
16623 cat >conftest.$ac_ext <<_ACEOF
16624 /* confdefs.h.  */
16625 _ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h.  */
16629
16630 /* Override any GCC internal prototype to avoid an error.
16631    Use char because int might match the return type of a GCC
16632    builtin and then its argument prototype would still apply.  */
16633 #ifdef __cplusplus
16634 extern "C"
16635 #endif
16636 char dlopen ();
16637 int
16638 main ()
16639 {
16640 return dlopen ();
16641   ;
16642   return 0;
16643 }
16644 _ACEOF
16645 rm -f conftest.$ac_objext conftest$ac_exeext
16646 if { (ac_try="$ac_link"
16647 case "(($ac_try" in
16648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649   *) ac_try_echo=$ac_try;;
16650 esac
16651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652   (eval "$ac_link") 2>conftest.er1
16653   ac_status=$?
16654   grep -v '^ *+' conftest.er1 >conftest.err
16655   rm -f conftest.er1
16656   cat conftest.err >&5
16657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658   (exit $ac_status); } &&
16659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16660   { (case "(($ac_try" in
16661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662   *) ac_try_echo=$ac_try;;
16663 esac
16664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665   (eval "$ac_try") 2>&5
16666   ac_status=$?
16667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668   (exit $ac_status); }; } &&
16669          { ac_try='test -s conftest$ac_exeext'
16670   { (case "(($ac_try" in
16671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672   *) ac_try_echo=$ac_try;;
16673 esac
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675   (eval "$ac_try") 2>&5
16676   ac_status=$?
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); }; }; then
16679   ac_cv_lib_dl_dlopen=yes
16680 else
16681   echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16683
16684         ac_cv_lib_dl_dlopen=no
16685 fi
16686
16687 rm -f core conftest.err conftest.$ac_objext \
16688       conftest$ac_exeext conftest.$ac_ext
16689 LIBS=$ac_check_lib_save_LIBS
16690 fi
16691 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16692 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16693 if test $ac_cv_lib_dl_dlopen = yes; then
16694   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16695 else
16696
16697     lt_cv_dlopen="dyld"
16698     lt_cv_dlopen_libs=
16699     lt_cv_dlopen_self=yes
16700
16701 fi
16702
16703    ;;
16704
16705   *)
16706     { echo "$as_me:$LINENO: checking for shl_load" >&5
16707 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16708 if test "${ac_cv_func_shl_load+set}" = set; then
16709   echo $ECHO_N "(cached) $ECHO_C" >&6
16710 else
16711   cat >conftest.$ac_ext <<_ACEOF
16712 /* confdefs.h.  */
16713 _ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h.  */
16717 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16719 #define shl_load innocuous_shl_load
16720
16721 /* System header to define __stub macros and hopefully few prototypes,
16722     which can conflict with char shl_load (); below.
16723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16724     <limits.h> exists even on freestanding compilers.  */
16725
16726 #ifdef __STDC__
16727 # include <limits.h>
16728 #else
16729 # include <assert.h>
16730 #endif
16731
16732 #undef shl_load
16733
16734 /* Override any GCC internal prototype to avoid an error.
16735    Use char because int might match the return type of a GCC
16736    builtin and then its argument prototype would still apply.  */
16737 #ifdef __cplusplus
16738 extern "C"
16739 #endif
16740 char shl_load ();
16741 /* The GNU C library defines this for functions which it implements
16742     to always fail with ENOSYS.  Some functions are actually named
16743     something starting with __ and the normal name is an alias.  */
16744 #if defined __stub_shl_load || defined __stub___shl_load
16745 choke me
16746 #endif
16747
16748 int
16749 main ()
16750 {
16751 return shl_load ();
16752   ;
16753   return 0;
16754 }
16755 _ACEOF
16756 rm -f conftest.$ac_objext conftest$ac_exeext
16757 if { (ac_try="$ac_link"
16758 case "(($ac_try" in
16759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760   *) ac_try_echo=$ac_try;;
16761 esac
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763   (eval "$ac_link") 2>conftest.er1
16764   ac_status=$?
16765   grep -v '^ *+' conftest.er1 >conftest.err
16766   rm -f conftest.er1
16767   cat conftest.err >&5
16768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769   (exit $ac_status); } &&
16770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16771   { (case "(($ac_try" in
16772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773   *) ac_try_echo=$ac_try;;
16774 esac
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776   (eval "$ac_try") 2>&5
16777   ac_status=$?
16778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779   (exit $ac_status); }; } &&
16780          { ac_try='test -s conftest$ac_exeext'
16781   { (case "(($ac_try" in
16782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783   *) ac_try_echo=$ac_try;;
16784 esac
16785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786   (eval "$ac_try") 2>&5
16787   ac_status=$?
16788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789   (exit $ac_status); }; }; then
16790   ac_cv_func_shl_load=yes
16791 else
16792   echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16794
16795         ac_cv_func_shl_load=no
16796 fi
16797
16798 rm -f core conftest.err conftest.$ac_objext \
16799       conftest$ac_exeext conftest.$ac_ext
16800 fi
16801 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16802 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16803 if test $ac_cv_func_shl_load = yes; then
16804   lt_cv_dlopen="shl_load"
16805 else
16806   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16807 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16808 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16809   echo $ECHO_N "(cached) $ECHO_C" >&6
16810 else
16811   ac_check_lib_save_LIBS=$LIBS
16812 LIBS="-ldld  $LIBS"
16813 cat >conftest.$ac_ext <<_ACEOF
16814 /* confdefs.h.  */
16815 _ACEOF
16816 cat confdefs.h >>conftest.$ac_ext
16817 cat >>conftest.$ac_ext <<_ACEOF
16818 /* end confdefs.h.  */
16819
16820 /* Override any GCC internal prototype to avoid an error.
16821    Use char because int might match the return type of a GCC
16822    builtin and then its argument prototype would still apply.  */
16823 #ifdef __cplusplus
16824 extern "C"
16825 #endif
16826 char shl_load ();
16827 int
16828 main ()
16829 {
16830 return shl_load ();
16831   ;
16832   return 0;
16833 }
16834 _ACEOF
16835 rm -f conftest.$ac_objext conftest$ac_exeext
16836 if { (ac_try="$ac_link"
16837 case "(($ac_try" in
16838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839   *) ac_try_echo=$ac_try;;
16840 esac
16841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842   (eval "$ac_link") 2>conftest.er1
16843   ac_status=$?
16844   grep -v '^ *+' conftest.er1 >conftest.err
16845   rm -f conftest.er1
16846   cat conftest.err >&5
16847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848   (exit $ac_status); } &&
16849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16850   { (case "(($ac_try" in
16851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852   *) ac_try_echo=$ac_try;;
16853 esac
16854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855   (eval "$ac_try") 2>&5
16856   ac_status=$?
16857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858   (exit $ac_status); }; } &&
16859          { ac_try='test -s conftest$ac_exeext'
16860   { (case "(($ac_try" in
16861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862   *) ac_try_echo=$ac_try;;
16863 esac
16864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865   (eval "$ac_try") 2>&5
16866   ac_status=$?
16867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868   (exit $ac_status); }; }; then
16869   ac_cv_lib_dld_shl_load=yes
16870 else
16871   echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16873
16874         ac_cv_lib_dld_shl_load=no
16875 fi
16876
16877 rm -f core conftest.err conftest.$ac_objext \
16878       conftest$ac_exeext conftest.$ac_ext
16879 LIBS=$ac_check_lib_save_LIBS
16880 fi
16881 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16882 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16883 if test $ac_cv_lib_dld_shl_load = yes; then
16884   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16885 else
16886   { echo "$as_me:$LINENO: checking for dlopen" >&5
16887 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16888 if test "${ac_cv_func_dlopen+set}" = set; then
16889   echo $ECHO_N "(cached) $ECHO_C" >&6
16890 else
16891   cat >conftest.$ac_ext <<_ACEOF
16892 /* confdefs.h.  */
16893 _ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h.  */
16897 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16899 #define dlopen innocuous_dlopen
16900
16901 /* System header to define __stub macros and hopefully few prototypes,
16902     which can conflict with char dlopen (); below.
16903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16904     <limits.h> exists even on freestanding compilers.  */
16905
16906 #ifdef __STDC__
16907 # include <limits.h>
16908 #else
16909 # include <assert.h>
16910 #endif
16911
16912 #undef dlopen
16913
16914 /* Override any GCC internal prototype to avoid an error.
16915    Use char because int might match the return type of a GCC
16916    builtin and then its argument prototype would still apply.  */
16917 #ifdef __cplusplus
16918 extern "C"
16919 #endif
16920 char dlopen ();
16921 /* The GNU C library defines this for functions which it implements
16922     to always fail with ENOSYS.  Some functions are actually named
16923     something starting with __ and the normal name is an alias.  */
16924 #if defined __stub_dlopen || defined __stub___dlopen
16925 choke me
16926 #endif
16927
16928 int
16929 main ()
16930 {
16931 return dlopen ();
16932   ;
16933   return 0;
16934 }
16935 _ACEOF
16936 rm -f conftest.$ac_objext conftest$ac_exeext
16937 if { (ac_try="$ac_link"
16938 case "(($ac_try" in
16939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940   *) ac_try_echo=$ac_try;;
16941 esac
16942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943   (eval "$ac_link") 2>conftest.er1
16944   ac_status=$?
16945   grep -v '^ *+' conftest.er1 >conftest.err
16946   rm -f conftest.er1
16947   cat conftest.err >&5
16948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949   (exit $ac_status); } &&
16950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16951   { (case "(($ac_try" in
16952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953   *) ac_try_echo=$ac_try;;
16954 esac
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956   (eval "$ac_try") 2>&5
16957   ac_status=$?
16958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959   (exit $ac_status); }; } &&
16960          { ac_try='test -s conftest$ac_exeext'
16961   { (case "(($ac_try" in
16962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963   *) ac_try_echo=$ac_try;;
16964 esac
16965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966   (eval "$ac_try") 2>&5
16967   ac_status=$?
16968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969   (exit $ac_status); }; }; then
16970   ac_cv_func_dlopen=yes
16971 else
16972   echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16974
16975         ac_cv_func_dlopen=no
16976 fi
16977
16978 rm -f core conftest.err conftest.$ac_objext \
16979       conftest$ac_exeext conftest.$ac_ext
16980 fi
16981 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16982 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16983 if test $ac_cv_func_dlopen = yes; then
16984   lt_cv_dlopen="dlopen"
16985 else
16986   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16987 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16988 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16989   echo $ECHO_N "(cached) $ECHO_C" >&6
16990 else
16991   ac_check_lib_save_LIBS=$LIBS
16992 LIBS="-ldl  $LIBS"
16993 cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h.  */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h.  */
16999
17000 /* Override any GCC internal prototype to avoid an error.
17001    Use char because int might match the return type of a GCC
17002    builtin and then its argument prototype would still apply.  */
17003 #ifdef __cplusplus
17004 extern "C"
17005 #endif
17006 char dlopen ();
17007 int
17008 main ()
17009 {
17010 return dlopen ();
17011   ;
17012   return 0;
17013 }
17014 _ACEOF
17015 rm -f conftest.$ac_objext conftest$ac_exeext
17016 if { (ac_try="$ac_link"
17017 case "(($ac_try" in
17018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019   *) ac_try_echo=$ac_try;;
17020 esac
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022   (eval "$ac_link") 2>conftest.er1
17023   ac_status=$?
17024   grep -v '^ *+' conftest.er1 >conftest.err
17025   rm -f conftest.er1
17026   cat conftest.err >&5
17027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028   (exit $ac_status); } &&
17029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17030   { (case "(($ac_try" in
17031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032   *) ac_try_echo=$ac_try;;
17033 esac
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035   (eval "$ac_try") 2>&5
17036   ac_status=$?
17037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038   (exit $ac_status); }; } &&
17039          { ac_try='test -s conftest$ac_exeext'
17040   { (case "(($ac_try" in
17041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042   *) ac_try_echo=$ac_try;;
17043 esac
17044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045   (eval "$ac_try") 2>&5
17046   ac_status=$?
17047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048   (exit $ac_status); }; }; then
17049   ac_cv_lib_dl_dlopen=yes
17050 else
17051   echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17053
17054         ac_cv_lib_dl_dlopen=no
17055 fi
17056
17057 rm -f core conftest.err conftest.$ac_objext \
17058       conftest$ac_exeext conftest.$ac_ext
17059 LIBS=$ac_check_lib_save_LIBS
17060 fi
17061 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17062 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17063 if test $ac_cv_lib_dl_dlopen = yes; then
17064   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17065 else
17066   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17067 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17068 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17069   echo $ECHO_N "(cached) $ECHO_C" >&6
17070 else
17071   ac_check_lib_save_LIBS=$LIBS
17072 LIBS="-lsvld  $LIBS"
17073 cat >conftest.$ac_ext <<_ACEOF
17074 /* confdefs.h.  */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h.  */
17079
17080 /* Override any GCC internal prototype to avoid an error.
17081    Use char because int might match the return type of a GCC
17082    builtin and then its argument prototype would still apply.  */
17083 #ifdef __cplusplus
17084 extern "C"
17085 #endif
17086 char dlopen ();
17087 int
17088 main ()
17089 {
17090 return dlopen ();
17091   ;
17092   return 0;
17093 }
17094 _ACEOF
17095 rm -f conftest.$ac_objext conftest$ac_exeext
17096 if { (ac_try="$ac_link"
17097 case "(($ac_try" in
17098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099   *) ac_try_echo=$ac_try;;
17100 esac
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102   (eval "$ac_link") 2>conftest.er1
17103   ac_status=$?
17104   grep -v '^ *+' conftest.er1 >conftest.err
17105   rm -f conftest.er1
17106   cat conftest.err >&5
17107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108   (exit $ac_status); } &&
17109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17110   { (case "(($ac_try" in
17111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112   *) ac_try_echo=$ac_try;;
17113 esac
17114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115   (eval "$ac_try") 2>&5
17116   ac_status=$?
17117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118   (exit $ac_status); }; } &&
17119          { ac_try='test -s conftest$ac_exeext'
17120   { (case "(($ac_try" in
17121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122   *) ac_try_echo=$ac_try;;
17123 esac
17124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125   (eval "$ac_try") 2>&5
17126   ac_status=$?
17127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128   (exit $ac_status); }; }; then
17129   ac_cv_lib_svld_dlopen=yes
17130 else
17131   echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17133
17134         ac_cv_lib_svld_dlopen=no
17135 fi
17136
17137 rm -f core conftest.err conftest.$ac_objext \
17138       conftest$ac_exeext conftest.$ac_ext
17139 LIBS=$ac_check_lib_save_LIBS
17140 fi
17141 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17142 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17143 if test $ac_cv_lib_svld_dlopen = yes; then
17144   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17145 else
17146   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17147 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17148 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17149   echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151   ac_check_lib_save_LIBS=$LIBS
17152 LIBS="-ldld  $LIBS"
17153 cat >conftest.$ac_ext <<_ACEOF
17154 /* confdefs.h.  */
17155 _ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h.  */
17159
17160 /* Override any GCC internal prototype to avoid an error.
17161    Use char because int might match the return type of a GCC
17162    builtin and then its argument prototype would still apply.  */
17163 #ifdef __cplusplus
17164 extern "C"
17165 #endif
17166 char dld_link ();
17167 int
17168 main ()
17169 {
17170 return dld_link ();
17171   ;
17172   return 0;
17173 }
17174 _ACEOF
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179   *) ac_try_echo=$ac_try;;
17180 esac
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182   (eval "$ac_link") 2>conftest.er1
17183   ac_status=$?
17184   grep -v '^ *+' conftest.er1 >conftest.err
17185   rm -f conftest.er1
17186   cat conftest.err >&5
17187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188   (exit $ac_status); } &&
17189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17190   { (case "(($ac_try" in
17191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192   *) ac_try_echo=$ac_try;;
17193 esac
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195   (eval "$ac_try") 2>&5
17196   ac_status=$?
17197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198   (exit $ac_status); }; } &&
17199          { ac_try='test -s conftest$ac_exeext'
17200   { (case "(($ac_try" in
17201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202   *) ac_try_echo=$ac_try;;
17203 esac
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205   (eval "$ac_try") 2>&5
17206   ac_status=$?
17207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208   (exit $ac_status); }; }; then
17209   ac_cv_lib_dld_dld_link=yes
17210 else
17211   echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17213
17214         ac_cv_lib_dld_dld_link=no
17215 fi
17216
17217 rm -f core conftest.err conftest.$ac_objext \
17218       conftest$ac_exeext conftest.$ac_ext
17219 LIBS=$ac_check_lib_save_LIBS
17220 fi
17221 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17222 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17223 if test $ac_cv_lib_dld_dld_link = yes; then
17224   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17225 fi
17226
17227
17228 fi
17229
17230
17231 fi
17232
17233
17234 fi
17235
17236
17237 fi
17238
17239
17240 fi
17241
17242     ;;
17243   esac
17244
17245   if test "x$lt_cv_dlopen" != xno; then
17246     enable_dlopen=yes
17247   else
17248     enable_dlopen=no
17249   fi
17250
17251   case $lt_cv_dlopen in
17252   dlopen)
17253     save_CPPFLAGS="$CPPFLAGS"
17254     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17255
17256     save_LDFLAGS="$LDFLAGS"
17257     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17258
17259     save_LIBS="$LIBS"
17260     LIBS="$lt_cv_dlopen_libs $LIBS"
17261
17262     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17263 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17264 if test "${lt_cv_dlopen_self+set}" = set; then
17265   echo $ECHO_N "(cached) $ECHO_C" >&6
17266 else
17267           if test "$cross_compiling" = yes; then :
17268   lt_cv_dlopen_self=cross
17269 else
17270   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17271   lt_status=$lt_dlunknown
17272   cat > conftest.$ac_ext <<EOF
17273 #line 17273 "configure"
17274 #include "confdefs.h"
17275
17276 #if HAVE_DLFCN_H
17277 #include <dlfcn.h>
17278 #endif
17279
17280 #include <stdio.h>
17281
17282 #ifdef RTLD_GLOBAL
17283 #  define LT_DLGLOBAL           RTLD_GLOBAL
17284 #else
17285 #  ifdef DL_GLOBAL
17286 #    define LT_DLGLOBAL         DL_GLOBAL
17287 #  else
17288 #    define LT_DLGLOBAL         0
17289 #  endif
17290 #endif
17291
17292 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17293    find out it does not work in some platform. */
17294 #ifndef LT_DLLAZY_OR_NOW
17295 #  ifdef RTLD_LAZY
17296 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17297 #  else
17298 #    ifdef DL_LAZY
17299 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17300 #    else
17301 #      ifdef RTLD_NOW
17302 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17303 #      else
17304 #        ifdef DL_NOW
17305 #          define LT_DLLAZY_OR_NOW      DL_NOW
17306 #        else
17307 #          define LT_DLLAZY_OR_NOW      0
17308 #        endif
17309 #      endif
17310 #    endif
17311 #  endif
17312 #endif
17313
17314 #ifdef __cplusplus
17315 extern "C" void exit (int);
17316 #endif
17317
17318 void fnord() { int i=42;}
17319 int main ()
17320 {
17321   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17322   int status = $lt_dlunknown;
17323
17324   if (self)
17325     {
17326       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17327       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17328       /* dlclose (self); */
17329     }
17330   else
17331     puts (dlerror ());
17332
17333     exit (status);
17334 }
17335 EOF
17336   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17337   (eval $ac_link) 2>&5
17338   ac_status=$?
17339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17341     (./conftest; exit; ) >&5 2>/dev/null
17342     lt_status=$?
17343     case x$lt_status in
17344       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17345       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17346       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17347     esac
17348   else :
17349     # compilation failed
17350     lt_cv_dlopen_self=no
17351   fi
17352 fi
17353 rm -fr conftest*
17354
17355
17356 fi
17357 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17358 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17359
17360     if test "x$lt_cv_dlopen_self" = xyes; then
17361       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17362       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17363 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17364 if test "${lt_cv_dlopen_self_static+set}" = set; then
17365   echo $ECHO_N "(cached) $ECHO_C" >&6
17366 else
17367           if test "$cross_compiling" = yes; then :
17368   lt_cv_dlopen_self_static=cross
17369 else
17370   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17371   lt_status=$lt_dlunknown
17372   cat > conftest.$ac_ext <<EOF
17373 #line 17373 "configure"
17374 #include "confdefs.h"
17375
17376 #if HAVE_DLFCN_H
17377 #include <dlfcn.h>
17378 #endif
17379
17380 #include <stdio.h>
17381
17382 #ifdef RTLD_GLOBAL
17383 #  define LT_DLGLOBAL           RTLD_GLOBAL
17384 #else
17385 #  ifdef DL_GLOBAL
17386 #    define LT_DLGLOBAL         DL_GLOBAL
17387 #  else
17388 #    define LT_DLGLOBAL         0
17389 #  endif
17390 #endif
17391
17392 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17393    find out it does not work in some platform. */
17394 #ifndef LT_DLLAZY_OR_NOW
17395 #  ifdef RTLD_LAZY
17396 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17397 #  else
17398 #    ifdef DL_LAZY
17399 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17400 #    else
17401 #      ifdef RTLD_NOW
17402 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17403 #      else
17404 #        ifdef DL_NOW
17405 #          define LT_DLLAZY_OR_NOW      DL_NOW
17406 #        else
17407 #          define LT_DLLAZY_OR_NOW      0
17408 #        endif
17409 #      endif
17410 #    endif
17411 #  endif
17412 #endif
17413
17414 #ifdef __cplusplus
17415 extern "C" void exit (int);
17416 #endif
17417
17418 void fnord() { int i=42;}
17419 int main ()
17420 {
17421   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17422   int status = $lt_dlunknown;
17423
17424   if (self)
17425     {
17426       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17427       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17428       /* dlclose (self); */
17429     }
17430   else
17431     puts (dlerror ());
17432
17433     exit (status);
17434 }
17435 EOF
17436   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17437   (eval $ac_link) 2>&5
17438   ac_status=$?
17439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17441     (./conftest; exit; ) >&5 2>/dev/null
17442     lt_status=$?
17443     case x$lt_status in
17444       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17445       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17446       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17447     esac
17448   else :
17449     # compilation failed
17450     lt_cv_dlopen_self_static=no
17451   fi
17452 fi
17453 rm -fr conftest*
17454
17455
17456 fi
17457 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17458 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17459     fi
17460
17461     CPPFLAGS="$save_CPPFLAGS"
17462     LDFLAGS="$save_LDFLAGS"
17463     LIBS="$save_LIBS"
17464     ;;
17465   esac
17466
17467   case $lt_cv_dlopen_self in
17468   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17469   *) enable_dlopen_self=unknown ;;
17470   esac
17471
17472   case $lt_cv_dlopen_self_static in
17473   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17474   *) enable_dlopen_self_static=unknown ;;
17475   esac
17476 fi
17477
17478
17479 # Report which library types will actually be built
17480 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17481 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17482 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17483 echo "${ECHO_T}$can_build_shared" >&6; }
17484
17485 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17486 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17487 test "$can_build_shared" = "no" && enable_shared=no
17488
17489 # On AIX, shared libraries and static libraries use the same namespace, and
17490 # are all built from PIC.
17491 case $host_os in
17492 aix3*)
17493   test "$enable_shared" = yes && enable_static=no
17494   if test -n "$RANLIB"; then
17495     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17496     postinstall_cmds='$RANLIB $lib'
17497   fi
17498   ;;
17499
17500 aix4* | aix5*)
17501   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17502     test "$enable_shared" = yes && enable_static=no
17503   fi
17504     ;;
17505 esac
17506 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17507 echo "${ECHO_T}$enable_shared" >&6; }
17508
17509 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17510 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17511 # Make sure either enable_shared or enable_static is yes.
17512 test "$enable_shared" = yes || enable_static=yes
17513 { echo "$as_me:$LINENO: result: $enable_static" >&5
17514 echo "${ECHO_T}$enable_static" >&6; }
17515
17516 # The else clause should only fire when bootstrapping the
17517 # libtool distribution, otherwise you forgot to ship ltmain.sh
17518 # with your package, and you will get complaints that there are
17519 # no rules to generate ltmain.sh.
17520 if test -f "$ltmain"; then
17521   # See if we are running on zsh, and set the options which allow our commands through
17522   # without removal of \ escapes.
17523   if test -n "${ZSH_VERSION+set}" ; then
17524     setopt NO_GLOB_SUBST
17525   fi
17526   # Now quote all the things that may contain metacharacters while being
17527   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17528   # variables and quote the copies for generation of the libtool script.
17529   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17530     SED SHELL STRIP \
17531     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17532     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17533     deplibs_check_method reload_flag reload_cmds need_locks \
17534     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17535     lt_cv_sys_global_symbol_to_c_name_address \
17536     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17537     old_postinstall_cmds old_postuninstall_cmds \
17538     compiler \
17539     CC \
17540     LD \
17541     lt_prog_compiler_wl \
17542     lt_prog_compiler_pic \
17543     lt_prog_compiler_static \
17544     lt_prog_compiler_no_builtin_flag \
17545     export_dynamic_flag_spec \
17546     thread_safe_flag_spec \
17547     whole_archive_flag_spec \
17548     enable_shared_with_static_runtimes \
17549     old_archive_cmds \
17550     old_archive_from_new_cmds \
17551     predep_objects \
17552     postdep_objects \
17553     predeps \
17554     postdeps \
17555     compiler_lib_search_path \
17556     archive_cmds \
17557     archive_expsym_cmds \
17558     postinstall_cmds \
17559     postuninstall_cmds \
17560     old_archive_from_expsyms_cmds \
17561     allow_undefined_flag \
17562     no_undefined_flag \
17563     export_symbols_cmds \
17564     hardcode_libdir_flag_spec \
17565     hardcode_libdir_flag_spec_ld \
17566     hardcode_libdir_separator \
17567     hardcode_automatic \
17568     module_cmds \
17569     module_expsym_cmds \
17570     lt_cv_prog_compiler_c_o \
17571     exclude_expsyms \
17572     include_expsyms; do
17573
17574     case $var in
17575     old_archive_cmds | \
17576     old_archive_from_new_cmds | \
17577     archive_cmds | \
17578     archive_expsym_cmds | \
17579     module_cmds | \
17580     module_expsym_cmds | \
17581     old_archive_from_expsyms_cmds | \
17582     export_symbols_cmds | \
17583     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17584     postinstall_cmds | postuninstall_cmds | \
17585     old_postinstall_cmds | old_postuninstall_cmds | \
17586     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17587       # Double-quote double-evaled strings.
17588       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17589       ;;
17590     *)
17591       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17592       ;;
17593     esac
17594   done
17595
17596   case $lt_echo in
17597   *'\$0 --fallback-echo"')
17598     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17599     ;;
17600   esac
17601
17602 cfgfile="${ofile}T"
17603   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17604   $rm -f "$cfgfile"
17605   { echo "$as_me:$LINENO: creating $ofile" >&5
17606 echo "$as_me: creating $ofile" >&6;}
17607
17608   cat <<__EOF__ >> "$cfgfile"
17609 #! $SHELL
17610
17611 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17612 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17613 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17614 #
17615 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17616 # Free Software Foundation, Inc.
17617 #
17618 # This file is part of GNU Libtool:
17619 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17620 #
17621 # This program is free software; you can redistribute it and/or modify
17622 # it under the terms of the GNU General Public License as published by
17623 # the Free Software Foundation; either version 2 of the License, or
17624 # (at your option) any later version.
17625 #
17626 # This program is distributed in the hope that it will be useful, but
17627 # WITHOUT ANY WARRANTY; without even the implied warranty of
17628 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17629 # General Public License for more details.
17630 #
17631 # You should have received a copy of the GNU General Public License
17632 # along with this program; if not, write to the Free Software
17633 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17634 #
17635 # As a special exception to the GNU General Public License, if you
17636 # distribute this file as part of a program that contains a
17637 # configuration script generated by Autoconf, you may include it under
17638 # the same distribution terms that you use for the rest of that program.
17639
17640 # A sed program that does not truncate output.
17641 SED=$lt_SED
17642
17643 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17644 Xsed="$SED -e 1s/^X//"
17645
17646 # The HP-UX ksh and POSIX shell print the target directory to stdout
17647 # if CDPATH is set.
17648 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17649
17650 # The names of the tagged configurations supported by this script.
17651 available_tags=
17652
17653 # ### BEGIN LIBTOOL CONFIG
17654
17655 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17656
17657 # Shell to use when invoking shell scripts.
17658 SHELL=$lt_SHELL
17659
17660 # Whether or not to build shared libraries.
17661 build_libtool_libs=$enable_shared
17662
17663 # Whether or not to build static libraries.
17664 build_old_libs=$enable_static
17665
17666 # Whether or not to add -lc for building shared libraries.
17667 build_libtool_need_lc=$archive_cmds_need_lc
17668
17669 # Whether or not to disallow shared libs when runtime libs are static
17670 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17671
17672 # Whether or not to optimize for fast installation.
17673 fast_install=$enable_fast_install
17674
17675 # The host system.
17676 host_alias=$host_alias
17677 host=$host
17678 host_os=$host_os
17679
17680 # The build system.
17681 build_alias=$build_alias
17682 build=$build
17683 build_os=$build_os
17684
17685 # An echo program that does not interpret backslashes.
17686 echo=$lt_echo
17687
17688 # The archiver.
17689 AR=$lt_AR
17690 AR_FLAGS=$lt_AR_FLAGS
17691
17692 # A C compiler.
17693 LTCC=$lt_LTCC
17694
17695 # LTCC compiler flags.
17696 LTCFLAGS=$lt_LTCFLAGS
17697
17698 # A language-specific compiler.
17699 CC=$lt_compiler
17700
17701 # Is the compiler the GNU C compiler?
17702 with_gcc=$GCC
17703
17704 # An ERE matcher.
17705 EGREP=$lt_EGREP
17706
17707 # The linker used to build libraries.
17708 LD=$lt_LD
17709
17710 # Whether we need hard or soft links.
17711 LN_S=$lt_LN_S
17712
17713 # A BSD-compatible nm program.
17714 NM=$lt_NM
17715
17716 # A symbol stripping program
17717 STRIP=$lt_STRIP
17718
17719 # Used to examine libraries when file_magic_cmd begins "file"
17720 MAGIC_CMD=$MAGIC_CMD
17721
17722 # Used on cygwin: DLL creation program.
17723 DLLTOOL="$DLLTOOL"
17724
17725 # Used on cygwin: object dumper.
17726 OBJDUMP="$OBJDUMP"
17727
17728 # Used on cygwin: assembler.
17729 AS="$AS"
17730
17731 # The name of the directory that contains temporary libtool files.
17732 objdir=$objdir
17733
17734 # How to create reloadable object files.
17735 reload_flag=$lt_reload_flag
17736 reload_cmds=$lt_reload_cmds
17737
17738 # How to pass a linker flag through the compiler.
17739 wl=$lt_lt_prog_compiler_wl
17740
17741 # Object file suffix (normally "o").
17742 objext="$ac_objext"
17743
17744 # Old archive suffix (normally "a").
17745 libext="$libext"
17746
17747 # Shared library suffix (normally ".so").
17748 shrext_cmds='$shrext_cmds'
17749
17750 # Executable file suffix (normally "").
17751 exeext="$exeext"
17752
17753 # Additional compiler flags for building library objects.
17754 pic_flag=$lt_lt_prog_compiler_pic
17755 pic_mode=$pic_mode
17756
17757 # What is the maximum length of a command?
17758 max_cmd_len=$lt_cv_sys_max_cmd_len
17759
17760 # Does compiler simultaneously support -c and -o options?
17761 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17762
17763 # Must we lock files when doing compilation?
17764 need_locks=$lt_need_locks
17765
17766 # Do we need the lib prefix for modules?
17767 need_lib_prefix=$need_lib_prefix
17768
17769 # Do we need a version for libraries?
17770 need_version=$need_version
17771
17772 # Whether dlopen is supported.
17773 dlopen_support=$enable_dlopen
17774
17775 # Whether dlopen of programs is supported.
17776 dlopen_self=$enable_dlopen_self
17777
17778 # Whether dlopen of statically linked programs is supported.
17779 dlopen_self_static=$enable_dlopen_self_static
17780
17781 # Compiler flag to prevent dynamic linking.
17782 link_static_flag=$lt_lt_prog_compiler_static
17783
17784 # Compiler flag to turn off builtin functions.
17785 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17786
17787 # Compiler flag to allow reflexive dlopens.
17788 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17789
17790 # Compiler flag to generate shared objects directly from archives.
17791 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17792
17793 # Compiler flag to generate thread-safe objects.
17794 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17795
17796 # Library versioning type.
17797 version_type=$version_type
17798
17799 # Format of library name prefix.
17800 libname_spec=$lt_libname_spec
17801
17802 # List of archive names.  First name is the real one, the rest are links.
17803 # The last name is the one that the linker finds with -lNAME.
17804 library_names_spec=$lt_library_names_spec
17805
17806 # The coded name of the library, if different from the real name.
17807 soname_spec=$lt_soname_spec
17808
17809 # Commands used to build and install an old-style archive.
17810 RANLIB=$lt_RANLIB
17811 old_archive_cmds=$lt_old_archive_cmds
17812 old_postinstall_cmds=$lt_old_postinstall_cmds
17813 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17814
17815 # Create an old-style archive from a shared archive.
17816 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17817
17818 # Create a temporary old-style archive to link instead of a shared archive.
17819 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17820
17821 # Commands used to build and install a shared archive.
17822 archive_cmds=$lt_archive_cmds
17823 archive_expsym_cmds=$lt_archive_expsym_cmds
17824 postinstall_cmds=$lt_postinstall_cmds
17825 postuninstall_cmds=$lt_postuninstall_cmds
17826
17827 # Commands used to build a loadable module (assumed same as above if empty)
17828 module_cmds=$lt_module_cmds
17829 module_expsym_cmds=$lt_module_expsym_cmds
17830
17831 # Commands to strip libraries.
17832 old_striplib=$lt_old_striplib
17833 striplib=$lt_striplib
17834
17835 # Dependencies to place before the objects being linked to create a
17836 # shared library.
17837 predep_objects=$lt_predep_objects
17838
17839 # Dependencies to place after the objects being linked to create a
17840 # shared library.
17841 postdep_objects=$lt_postdep_objects
17842
17843 # Dependencies to place before the objects being linked to create a
17844 # shared library.
17845 predeps=$lt_predeps
17846
17847 # Dependencies to place after the objects being linked to create a
17848 # shared library.
17849 postdeps=$lt_postdeps
17850
17851 # The library search path used internally by the compiler when linking
17852 # a shared library.
17853 compiler_lib_search_path=$lt_compiler_lib_search_path
17854
17855 # Method to check whether dependent libraries are shared objects.
17856 deplibs_check_method=$lt_deplibs_check_method
17857
17858 # Command to use when deplibs_check_method == file_magic.
17859 file_magic_cmd=$lt_file_magic_cmd
17860
17861 # Flag that allows shared libraries with undefined symbols to be built.
17862 allow_undefined_flag=$lt_allow_undefined_flag
17863
17864 # Flag that forces no undefined symbols.
17865 no_undefined_flag=$lt_no_undefined_flag
17866
17867 # Commands used to finish a libtool library installation in a directory.
17868 finish_cmds=$lt_finish_cmds
17869
17870 # Same as above, but a single script fragment to be evaled but not shown.
17871 finish_eval=$lt_finish_eval
17872
17873 # Take the output of nm and produce a listing of raw symbols and C names.
17874 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17875
17876 # Transform the output of nm in a proper C declaration
17877 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17878
17879 # Transform the output of nm in a C name address pair
17880 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17881
17882 # This is the shared library runtime path variable.
17883 runpath_var=$runpath_var
17884
17885 # This is the shared library path variable.
17886 shlibpath_var=$shlibpath_var
17887
17888 # Is shlibpath searched before the hard-coded library search path?
17889 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17890
17891 # How to hardcode a shared library path into an executable.
17892 hardcode_action=$hardcode_action
17893
17894 # Whether we should hardcode library paths into libraries.
17895 hardcode_into_libs=$hardcode_into_libs
17896
17897 # Flag to hardcode \$libdir into a binary during linking.
17898 # This must work even if \$libdir does not exist.
17899 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17900
17901 # If ld is used when linking, flag to hardcode \$libdir into
17902 # a binary during linking. This must work even if \$libdir does
17903 # not exist.
17904 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17905
17906 # Whether we need a single -rpath flag with a separated argument.
17907 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17908
17909 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17910 # resulting binary.
17911 hardcode_direct=$hardcode_direct
17912
17913 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17914 # resulting binary.
17915 hardcode_minus_L=$hardcode_minus_L
17916
17917 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17918 # the resulting binary.
17919 hardcode_shlibpath_var=$hardcode_shlibpath_var
17920
17921 # Set to yes if building a shared library automatically hardcodes DIR into the library
17922 # and all subsequent libraries and executables linked against it.
17923 hardcode_automatic=$hardcode_automatic
17924
17925 # Variables whose values should be saved in libtool wrapper scripts and
17926 # restored at relink time.
17927 variables_saved_for_relink="$variables_saved_for_relink"
17928
17929 # Whether libtool must link a program against all its dependency libraries.
17930 link_all_deplibs=$link_all_deplibs
17931
17932 # Compile-time system search path for libraries
17933 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17934
17935 # Run-time system search path for libraries
17936 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17937
17938 # Fix the shell variable \$srcfile for the compiler.
17939 fix_srcfile_path="$fix_srcfile_path"
17940
17941 # Set to yes if exported symbols are required.
17942 always_export_symbols=$always_export_symbols
17943
17944 # The commands to list exported symbols.
17945 export_symbols_cmds=$lt_export_symbols_cmds
17946
17947 # The commands to extract the exported symbol list from a shared archive.
17948 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17949
17950 # Symbols that should not be listed in the preloaded symbols.
17951 exclude_expsyms=$lt_exclude_expsyms
17952
17953 # Symbols that must always be exported.
17954 include_expsyms=$lt_include_expsyms
17955
17956 # ### END LIBTOOL CONFIG
17957
17958 __EOF__
17959
17960
17961   case $host_os in
17962   aix3*)
17963     cat <<\EOF >> "$cfgfile"
17964
17965 # AIX sometimes has problems with the GCC collect2 program.  For some
17966 # reason, if we set the COLLECT_NAMES environment variable, the problems
17967 # vanish in a puff of smoke.
17968 if test "X${COLLECT_NAMES+set}" != Xset; then
17969   COLLECT_NAMES=
17970   export COLLECT_NAMES
17971 fi
17972 EOF
17973     ;;
17974   esac
17975
17976   # We use sed instead of cat because bash on DJGPP gets confused if
17977   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17978   # text mode, it properly converts lines to CR/LF.  This bash problem
17979   # is reportedly fixed, but why not run on old versions too?
17980   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17981
17982   mv -f "$cfgfile" "$ofile" || \
17983     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17984   chmod +x "$ofile"
17985
17986 else
17987   # If there is no Makefile yet, we rely on a make rule to execute
17988   # `config.status --recheck' to rerun these tests and create the
17989   # libtool script then.
17990   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17991   if test -f "$ltmain_in"; then
17992     test -f Makefile && make "$ltmain"
17993   fi
17994 fi
17995
17996
17997 ac_ext=c
17998 ac_cpp='$CPP $CPPFLAGS'
17999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18002
18003 CC="$lt_save_CC"
18004
18005
18006 # Check whether --with-tags was given.
18007 if test "${with_tags+set}" = set; then
18008   withval=$with_tags; tagnames="$withval"
18009 fi
18010
18011
18012 if test -f "$ltmain" && test -n "$tagnames"; then
18013   if test ! -f "${ofile}"; then
18014     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18015 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18016   fi
18017
18018   if test -z "$LTCC"; then
18019     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18020     if test -z "$LTCC"; then
18021       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18022 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18023     else
18024       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18025 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18026     fi
18027   fi
18028   if test -z "$LTCFLAGS"; then
18029     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18030   fi
18031
18032   # Extract list of available tagged configurations in $ofile.
18033   # Note that this assumes the entire list is on one line.
18034   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18035
18036   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18037   for tagname in $tagnames; do
18038     IFS="$lt_save_ifs"
18039     # Check whether tagname contains only valid characters
18040     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18041     "") ;;
18042     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18043 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18044    { (exit 1); exit 1; }; }
18045         ;;
18046     esac
18047
18048     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18049     then
18050       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18051 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18052    { (exit 1); exit 1; }; }
18053     fi
18054
18055     # Update the list of available tags.
18056     if test -n "$tagname"; then
18057       echo appending configuration tag \"$tagname\" to $ofile
18058
18059       case $tagname in
18060       CXX)
18061         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18062             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18063             (test "X$CXX" != "Xg++"))) ; then
18064           ac_ext=cpp
18065 ac_cpp='$CXXCPP $CPPFLAGS'
18066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18069
18070
18071
18072
18073 archive_cmds_need_lc_CXX=no
18074 allow_undefined_flag_CXX=
18075 always_export_symbols_CXX=no
18076 archive_expsym_cmds_CXX=
18077 export_dynamic_flag_spec_CXX=
18078 hardcode_direct_CXX=no
18079 hardcode_libdir_flag_spec_CXX=
18080 hardcode_libdir_flag_spec_ld_CXX=
18081 hardcode_libdir_separator_CXX=
18082 hardcode_minus_L_CXX=no
18083 hardcode_shlibpath_var_CXX=unsupported
18084 hardcode_automatic_CXX=no
18085 module_cmds_CXX=
18086 module_expsym_cmds_CXX=
18087 link_all_deplibs_CXX=unknown
18088 old_archive_cmds_CXX=$old_archive_cmds
18089 no_undefined_flag_CXX=
18090 whole_archive_flag_spec_CXX=
18091 enable_shared_with_static_runtimes_CXX=no
18092
18093 # Dependencies to place before and after the object being linked:
18094 predep_objects_CXX=
18095 postdep_objects_CXX=
18096 predeps_CXX=
18097 postdeps_CXX=
18098 compiler_lib_search_path_CXX=
18099
18100 # Source file extension for C++ test sources.
18101 ac_ext=cpp
18102
18103 # Object file extension for compiled C++ test sources.
18104 objext=o
18105 objext_CXX=$objext
18106
18107 # Code to be used in simple compile tests
18108 lt_simple_compile_test_code="int some_variable = 0;\n"
18109
18110 # Code to be used in simple link tests
18111 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18112
18113 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18114
18115 # If no C compiler was specified, use CC.
18116 LTCC=${LTCC-"$CC"}
18117
18118 # If no C compiler flags were specified, use CFLAGS.
18119 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18120
18121 # Allow CC to be a program name with arguments.
18122 compiler=$CC
18123
18124
18125 # save warnings/boilerplate of simple test code
18126 ac_outfile=conftest.$ac_objext
18127 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18128 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18129 _lt_compiler_boilerplate=`cat conftest.err`
18130 $rm conftest*
18131
18132 ac_outfile=conftest.$ac_objext
18133 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18134 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18135 _lt_linker_boilerplate=`cat conftest.err`
18136 $rm conftest*
18137
18138
18139 # Allow CC to be a program name with arguments.
18140 lt_save_CC=$CC
18141 lt_save_LD=$LD
18142 lt_save_GCC=$GCC
18143 GCC=$GXX
18144 lt_save_with_gnu_ld=$with_gnu_ld
18145 lt_save_path_LD=$lt_cv_path_LD
18146 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18147   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18148 else
18149   $as_unset lt_cv_prog_gnu_ld
18150 fi
18151 if test -n "${lt_cv_path_LDCXX+set}"; then
18152   lt_cv_path_LD=$lt_cv_path_LDCXX
18153 else
18154   $as_unset lt_cv_path_LD
18155 fi
18156 test -z "${LDCXX+set}" || LD=$LDCXX
18157 CC=${CXX-"c++"}
18158 compiler=$CC
18159 compiler_CXX=$CC
18160 for cc_temp in $compiler""; do
18161   case $cc_temp in
18162     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18163     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18164     \-*) ;;
18165     *) break;;
18166   esac
18167 done
18168 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18169
18170
18171 # We don't want -fno-exception wen compiling C++ code, so set the
18172 # no_builtin_flag separately
18173 if test "$GXX" = yes; then
18174   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18175 else
18176   lt_prog_compiler_no_builtin_flag_CXX=
18177 fi
18178
18179 if test "$GXX" = yes; then
18180   # Set up default GNU C++ configuration
18181
18182
18183 # Check whether --with-gnu-ld was given.
18184 if test "${with_gnu_ld+set}" = set; then
18185   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18186 else
18187   with_gnu_ld=no
18188 fi
18189
18190 ac_prog=ld
18191 if test "$GCC" = yes; then
18192   # Check if gcc -print-prog-name=ld gives a path.
18193   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18194 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18195   case $host in
18196   *-*-mingw*)
18197     # gcc leaves a trailing carriage return which upsets mingw
18198     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18199   *)
18200     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18201   esac
18202   case $ac_prog in
18203     # Accept absolute paths.
18204     [\\/]* | ?:[\\/]*)
18205       re_direlt='/[^/][^/]*/\.\./'
18206       # Canonicalize the pathname of ld
18207       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18208       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18209         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18210       done
18211       test -z "$LD" && LD="$ac_prog"
18212       ;;
18213   "")
18214     # If it fails, then pretend we aren't using GCC.
18215     ac_prog=ld
18216     ;;
18217   *)
18218     # If it is relative, then search for the first ld in PATH.
18219     with_gnu_ld=unknown
18220     ;;
18221   esac
18222 elif test "$with_gnu_ld" = yes; then
18223   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18224 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18225 else
18226   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18227 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18228 fi
18229 if test "${lt_cv_path_LD+set}" = set; then
18230   echo $ECHO_N "(cached) $ECHO_C" >&6
18231 else
18232   if test -z "$LD"; then
18233   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18234   for ac_dir in $PATH; do
18235     IFS="$lt_save_ifs"
18236     test -z "$ac_dir" && ac_dir=.
18237     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18238       lt_cv_path_LD="$ac_dir/$ac_prog"
18239       # Check to see if the program is GNU ld.  I'd rather use --version,
18240       # but apparently some variants of GNU ld only accept -v.
18241       # Break only if it was the GNU/non-GNU ld that we prefer.
18242       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18243       *GNU* | *'with BFD'*)
18244         test "$with_gnu_ld" != no && break
18245         ;;
18246       *)
18247         test "$with_gnu_ld" != yes && break
18248         ;;
18249       esac
18250     fi
18251   done
18252   IFS="$lt_save_ifs"
18253 else
18254   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18255 fi
18256 fi
18257
18258 LD="$lt_cv_path_LD"
18259 if test -n "$LD"; then
18260   { echo "$as_me:$LINENO: result: $LD" >&5
18261 echo "${ECHO_T}$LD" >&6; }
18262 else
18263   { echo "$as_me:$LINENO: result: no" >&5
18264 echo "${ECHO_T}no" >&6; }
18265 fi
18266 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18267 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18268    { (exit 1); exit 1; }; }
18269 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18270 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18271 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18272   echo $ECHO_N "(cached) $ECHO_C" >&6
18273 else
18274   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18275 case `$LD -v 2>&1 </dev/null` in
18276 *GNU* | *'with BFD'*)
18277   lt_cv_prog_gnu_ld=yes
18278   ;;
18279 *)
18280   lt_cv_prog_gnu_ld=no
18281   ;;
18282 esac
18283 fi
18284 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18285 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18286 with_gnu_ld=$lt_cv_prog_gnu_ld
18287
18288
18289
18290   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18291   # archiving commands below assume that GNU ld is being used.
18292   if test "$with_gnu_ld" = yes; then
18293     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18294     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'
18295
18296     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18297     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18298
18299     # If archive_cmds runs LD, not CC, wlarc should be empty
18300     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18301     #     investigate it a little bit more. (MM)
18302     wlarc='${wl}'
18303
18304     # ancient GNU ld didn't support --whole-archive et. al.
18305     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18306         grep 'no-whole-archive' > /dev/null; then
18307       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18308     else
18309       whole_archive_flag_spec_CXX=
18310     fi
18311   else
18312     with_gnu_ld=no
18313     wlarc=
18314
18315     # A generic and very simple default shared library creation
18316     # command for GNU C++ for the case where it uses the native
18317     # linker, instead of GNU ld.  If possible, this setting should
18318     # overridden to take advantage of the native linker features on
18319     # the platform it is being used on.
18320     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18321   fi
18322
18323   # Commands to make compiler produce verbose output that lists
18324   # what "hidden" libraries, object files and flags are used when
18325   # linking a shared library.
18326   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18327
18328 else
18329   GXX=no
18330   with_gnu_ld=no
18331   wlarc=
18332 fi
18333
18334 # PORTME: fill in a description of your system's C++ link characteristics
18335 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18336 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18337 ld_shlibs_CXX=yes
18338 case $host_os in
18339   aix3*)
18340     # FIXME: insert proper C++ library support
18341     ld_shlibs_CXX=no
18342     ;;
18343   aix4* | aix5*)
18344     if test "$host_cpu" = ia64; then
18345       # On IA64, the linker does run time linking by default, so we don't
18346       # have to do anything special.
18347       aix_use_runtimelinking=no
18348       exp_sym_flag='-Bexport'
18349       no_entry_flag=""
18350     else
18351       aix_use_runtimelinking=no
18352
18353       # Test if we are trying to use run time linking or normal
18354       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18355       # need to do runtime linking.
18356       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18357         for ld_flag in $LDFLAGS; do
18358           case $ld_flag in
18359           *-brtl*)
18360             aix_use_runtimelinking=yes
18361             break
18362             ;;
18363           esac
18364         done
18365         ;;
18366       esac
18367
18368       exp_sym_flag='-bexport'
18369       no_entry_flag='-bnoentry'
18370     fi
18371
18372     # When large executables or shared objects are built, AIX ld can
18373     # have problems creating the table of contents.  If linking a library
18374     # or program results in "error TOC overflow" add -mminimal-toc to
18375     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18376     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18377
18378     archive_cmds_CXX=''
18379     hardcode_direct_CXX=yes
18380     hardcode_libdir_separator_CXX=':'
18381     link_all_deplibs_CXX=yes
18382
18383     if test "$GXX" = yes; then
18384       case $host_os in aix4.[012]|aix4.[012].*)
18385       # We only want to do this on AIX 4.2 and lower, the check
18386       # below for broken collect2 doesn't work under 4.3+
18387         collect2name=`${CC} -print-prog-name=collect2`
18388         if test -f "$collect2name" && \
18389            strings "$collect2name" | grep resolve_lib_name >/dev/null
18390         then
18391           # We have reworked collect2
18392           hardcode_direct_CXX=yes
18393         else
18394           # We have old collect2
18395           hardcode_direct_CXX=unsupported
18396           # It fails to find uninstalled libraries when the uninstalled
18397           # path is not listed in the libpath.  Setting hardcode_minus_L
18398           # to unsupported forces relinking
18399           hardcode_minus_L_CXX=yes
18400           hardcode_libdir_flag_spec_CXX='-L$libdir'
18401           hardcode_libdir_separator_CXX=
18402         fi
18403         ;;
18404       esac
18405       shared_flag='-shared'
18406       if test "$aix_use_runtimelinking" = yes; then
18407         shared_flag="$shared_flag "'${wl}-G'
18408       fi
18409     else
18410       # not using gcc
18411       if test "$host_cpu" = ia64; then
18412         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18413         # chokes on -Wl,-G. The following line is correct:
18414         shared_flag='-G'
18415       else
18416         if test "$aix_use_runtimelinking" = yes; then
18417           shared_flag='${wl}-G'
18418         else
18419           shared_flag='${wl}-bM:SRE'
18420         fi
18421       fi
18422     fi
18423
18424     # It seems that -bexpall does not export symbols beginning with
18425     # underscore (_), so it is better to generate a list of symbols to export.
18426     always_export_symbols_CXX=yes
18427     if test "$aix_use_runtimelinking" = yes; then
18428       # Warning - without using the other runtime loading flags (-brtl),
18429       # -berok will link without error, but may produce a broken library.
18430       allow_undefined_flag_CXX='-berok'
18431       # Determine the default libpath from the value encoded in an empty executable.
18432       cat >conftest.$ac_ext <<_ACEOF
18433 /* confdefs.h.  */
18434 _ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h.  */
18438
18439 int
18440 main ()
18441 {
18442
18443   ;
18444   return 0;
18445 }
18446 _ACEOF
18447 rm -f conftest.$ac_objext conftest$ac_exeext
18448 if { (ac_try="$ac_link"
18449 case "(($ac_try" in
18450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451   *) ac_try_echo=$ac_try;;
18452 esac
18453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18454   (eval "$ac_link") 2>conftest.er1
18455   ac_status=$?
18456   grep -v '^ *+' conftest.er1 >conftest.err
18457   rm -f conftest.er1
18458   cat conftest.err >&5
18459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460   (exit $ac_status); } &&
18461          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18462   { (case "(($ac_try" in
18463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464   *) ac_try_echo=$ac_try;;
18465 esac
18466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467   (eval "$ac_try") 2>&5
18468   ac_status=$?
18469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470   (exit $ac_status); }; } &&
18471          { ac_try='test -s conftest$ac_exeext'
18472   { (case "(($ac_try" in
18473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474   *) ac_try_echo=$ac_try;;
18475 esac
18476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477   (eval "$ac_try") 2>&5
18478   ac_status=$?
18479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480   (exit $ac_status); }; }; then
18481
18482 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18483 }'`
18484 # Check for a 64-bit object if we didn't find anything.
18485 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; }
18486 }'`; fi
18487 else
18488   echo "$as_me: failed program was:" >&5
18489 sed 's/^/| /' conftest.$ac_ext >&5
18490
18491
18492 fi
18493
18494 rm -f core conftest.err conftest.$ac_objext \
18495       conftest$ac_exeext conftest.$ac_ext
18496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18497
18498       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18499
18500       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"
18501      else
18502       if test "$host_cpu" = ia64; then
18503         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18504         allow_undefined_flag_CXX="-z nodefs"
18505         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"
18506       else
18507         # Determine the default libpath from the value encoded in an empty executable.
18508         cat >conftest.$ac_ext <<_ACEOF
18509 /* confdefs.h.  */
18510 _ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h.  */
18514
18515 int
18516 main ()
18517 {
18518
18519   ;
18520   return 0;
18521 }
18522 _ACEOF
18523 rm -f conftest.$ac_objext conftest$ac_exeext
18524 if { (ac_try="$ac_link"
18525 case "(($ac_try" in
18526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527   *) ac_try_echo=$ac_try;;
18528 esac
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530   (eval "$ac_link") 2>conftest.er1
18531   ac_status=$?
18532   grep -v '^ *+' conftest.er1 >conftest.err
18533   rm -f conftest.er1
18534   cat conftest.err >&5
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); } &&
18537          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18538   { (case "(($ac_try" in
18539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540   *) ac_try_echo=$ac_try;;
18541 esac
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543   (eval "$ac_try") 2>&5
18544   ac_status=$?
18545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546   (exit $ac_status); }; } &&
18547          { ac_try='test -s conftest$ac_exeext'
18548   { (case "(($ac_try" in
18549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550   *) ac_try_echo=$ac_try;;
18551 esac
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553   (eval "$ac_try") 2>&5
18554   ac_status=$?
18555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556   (exit $ac_status); }; }; then
18557
18558 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18559 }'`
18560 # Check for a 64-bit object if we didn't find anything.
18561 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; }
18562 }'`; fi
18563 else
18564   echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18566
18567
18568 fi
18569
18570 rm -f core conftest.err conftest.$ac_objext \
18571       conftest$ac_exeext conftest.$ac_ext
18572 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18573
18574         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18575         # Warning - without using the other run time loading flags,
18576         # -berok will link without error, but may produce a broken library.
18577         no_undefined_flag_CXX=' ${wl}-bernotok'
18578         allow_undefined_flag_CXX=' ${wl}-berok'
18579         # Exported symbols can be pulled into shared objects from archives
18580         whole_archive_flag_spec_CXX='$convenience'
18581         archive_cmds_need_lc_CXX=yes
18582         # This is similar to how AIX traditionally builds its shared libraries.
18583         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'
18584       fi
18585     fi
18586     ;;
18587
18588   beos*)
18589     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18590       allow_undefined_flag_CXX=unsupported
18591       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18592       # support --undefined.  This deserves some investigation.  FIXME
18593       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18594     else
18595       ld_shlibs_CXX=no
18596     fi
18597     ;;
18598
18599   chorus*)
18600     case $cc_basename in
18601       *)
18602         # FIXME: insert proper C++ library support
18603         ld_shlibs_CXX=no
18604         ;;
18605     esac
18606     ;;
18607
18608   cygwin* | mingw* | pw32*)
18609     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18610     # as there is no search path for DLLs.
18611     hardcode_libdir_flag_spec_CXX='-L$libdir'
18612     allow_undefined_flag_CXX=unsupported
18613     always_export_symbols_CXX=no
18614     enable_shared_with_static_runtimes_CXX=yes
18615
18616     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18617       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'
18618       # If the export-symbols file already is a .def file (1st line
18619       # is EXPORTS), use it as is; otherwise, prepend...
18620       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18621         cp $export_symbols $output_objdir/$soname.def;
18622       else
18623         echo EXPORTS > $output_objdir/$soname.def;
18624         cat $export_symbols >> $output_objdir/$soname.def;
18625       fi~
18626       $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'
18627     else
18628       ld_shlibs_CXX=no
18629     fi
18630   ;;
18631       darwin* | rhapsody*)
18632         case $host_os in
18633         rhapsody* | darwin1.[012])
18634          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18635          ;;
18636        *) # Darwin 1.3 on
18637          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18638            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18639          else
18640            case ${MACOSX_DEPLOYMENT_TARGET} in
18641              10.[012])
18642                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18643                ;;
18644              10.*)
18645                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18646                ;;
18647            esac
18648          fi
18649          ;;
18650         esac
18651       archive_cmds_need_lc_CXX=no
18652       hardcode_direct_CXX=no
18653       hardcode_automatic_CXX=yes
18654       hardcode_shlibpath_var_CXX=unsupported
18655       whole_archive_flag_spec_CXX=''
18656       link_all_deplibs_CXX=yes
18657
18658     if test "$GXX" = yes ; then
18659       lt_int_apple_cc_single_mod=no
18660       output_verbose_link_cmd='echo'
18661       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18662        lt_int_apple_cc_single_mod=yes
18663       fi
18664       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18665        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18666       else
18667           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'
18668         fi
18669         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18670         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18671           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18672             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}'
18673           else
18674             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}'
18675           fi
18676             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}'
18677       else
18678       case $cc_basename in
18679         xlc*)
18680          output_verbose_link_cmd='echo'
18681           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'
18682           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18683           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18684           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}'
18685           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}'
18686           ;;
18687        *)
18688          ld_shlibs_CXX=no
18689           ;;
18690       esac
18691       fi
18692         ;;
18693
18694   dgux*)
18695     case $cc_basename in
18696       ec++*)
18697         # FIXME: insert proper C++ library support
18698         ld_shlibs_CXX=no
18699         ;;
18700       ghcx*)
18701         # Green Hills C++ Compiler
18702         # FIXME: insert proper C++ library support
18703         ld_shlibs_CXX=no
18704         ;;
18705       *)
18706         # FIXME: insert proper C++ library support
18707         ld_shlibs_CXX=no
18708         ;;
18709     esac
18710     ;;
18711   freebsd[12]*)
18712     # C++ shared libraries reported to be fairly broken before switch to ELF
18713     ld_shlibs_CXX=no
18714     ;;
18715   freebsd-elf*)
18716     archive_cmds_need_lc_CXX=no
18717     ;;
18718   freebsd* | kfreebsd*-gnu | dragonfly*)
18719     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18720     # conventions
18721     ld_shlibs_CXX=yes
18722     ;;
18723   gnu*)
18724     ;;
18725   hpux9*)
18726     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18727     hardcode_libdir_separator_CXX=:
18728     export_dynamic_flag_spec_CXX='${wl}-E'
18729     hardcode_direct_CXX=yes
18730     hardcode_minus_L_CXX=yes # Not in the search PATH,
18731                                 # but as the default
18732                                 # location of the library.
18733
18734     case $cc_basename in
18735     CC*)
18736       # FIXME: insert proper C++ library support
18737       ld_shlibs_CXX=no
18738       ;;
18739     aCC*)
18740       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'
18741       # Commands to make compiler produce verbose output that lists
18742       # what "hidden" libraries, object files and flags are used when
18743       # linking a shared library.
18744       #
18745       # There doesn't appear to be a way to prevent this compiler from
18746       # explicitly linking system object files so we need to strip them
18747       # from the output so that they don't get included in the library
18748       # dependencies.
18749       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'
18750       ;;
18751     *)
18752       if test "$GXX" = yes; then
18753         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'
18754       else
18755         # FIXME: insert proper C++ library support
18756         ld_shlibs_CXX=no
18757       fi
18758       ;;
18759     esac
18760     ;;
18761   hpux10*|hpux11*)
18762     if test $with_gnu_ld = no; then
18763       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18764       hardcode_libdir_separator_CXX=:
18765
18766       case $host_cpu in
18767       hppa*64*|ia64*)
18768         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18769         ;;
18770       *)
18771         export_dynamic_flag_spec_CXX='${wl}-E'
18772         ;;
18773       esac
18774     fi
18775     case $host_cpu in
18776     hppa*64*|ia64*)
18777       hardcode_direct_CXX=no
18778       hardcode_shlibpath_var_CXX=no
18779       ;;
18780     *)
18781       hardcode_direct_CXX=yes
18782       hardcode_minus_L_CXX=yes # Not in the search PATH,
18783                                               # but as the default
18784                                               # location of the library.
18785       ;;
18786     esac
18787
18788     case $cc_basename in
18789       CC*)
18790         # FIXME: insert proper C++ library support
18791         ld_shlibs_CXX=no
18792         ;;
18793       aCC*)
18794         case $host_cpu in
18795         hppa*64*)
18796           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18797           ;;
18798         ia64*)
18799           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18800           ;;
18801         *)
18802           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18803           ;;
18804         esac
18805         # Commands to make compiler produce verbose output that lists
18806         # what "hidden" libraries, object files and flags are used when
18807         # linking a shared library.
18808         #
18809         # There doesn't appear to be a way to prevent this compiler from
18810         # explicitly linking system object files so we need to strip them
18811         # from the output so that they don't get included in the library
18812         # dependencies.
18813         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'
18814         ;;
18815       *)
18816         if test "$GXX" = yes; then
18817           if test $with_gnu_ld = no; then
18818             case $host_cpu in
18819             hppa*64*)
18820               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18821               ;;
18822             ia64*)
18823               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18824               ;;
18825             *)
18826               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'
18827               ;;
18828             esac
18829           fi
18830         else
18831           # FIXME: insert proper C++ library support
18832           ld_shlibs_CXX=no
18833         fi
18834         ;;
18835     esac
18836     ;;
18837   interix3*)
18838     hardcode_direct_CXX=no
18839     hardcode_shlibpath_var_CXX=no
18840     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18841     export_dynamic_flag_spec_CXX='${wl}-E'
18842     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18843     # Instead, shared libraries are loaded at an image base (0x10000000 by
18844     # default) and relocated if they conflict, which is a slow very memory
18845     # consuming and fragmenting process.  To avoid this, we pick a random,
18846     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18847     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18848     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'
18849     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'
18850     ;;
18851   irix5* | irix6*)
18852     case $cc_basename in
18853       CC*)
18854         # SGI C++
18855         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'
18856
18857         # Archives containing C++ object files must be created using
18858         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18859         # necessary to make sure instantiated templates are included
18860         # in the archive.
18861         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18862         ;;
18863       *)
18864         if test "$GXX" = yes; then
18865           if test "$with_gnu_ld" = no; then
18866             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'
18867           else
18868             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'
18869           fi
18870         fi
18871         link_all_deplibs_CXX=yes
18872         ;;
18873     esac
18874     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18875     hardcode_libdir_separator_CXX=:
18876     ;;
18877   linux*)
18878     case $cc_basename in
18879       KCC*)
18880         # Kuck and Associates, Inc. (KAI) C++ Compiler
18881
18882         # KCC will only create a shared library if the output file
18883         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18884         # to its proper name (with version) after linking.
18885         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'
18886         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'
18887         # Commands to make compiler produce verbose output that lists
18888         # what "hidden" libraries, object files and flags are used when
18889         # linking a shared library.
18890         #
18891         # There doesn't appear to be a way to prevent this compiler from
18892         # explicitly linking system object files so we need to strip them
18893         # from the output so that they don't get included in the library
18894         # dependencies.
18895         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'
18896
18897         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18898         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18899
18900         # Archives containing C++ object files must be created using
18901         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18902         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18903         ;;
18904       icpc*)
18905         # Intel C++
18906         with_gnu_ld=yes
18907         # version 8.0 and above of icpc choke on multiply defined symbols
18908         # if we add $predep_objects and $postdep_objects, however 7.1 and
18909         # earlier do not add the objects themselves.
18910         case `$CC -V 2>&1` in
18911         *"Version 7."*)
18912           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18913           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'
18914           ;;
18915         *)  # Version 8.0 or newer
18916           tmp_idyn=
18917           case $host_cpu in
18918             ia64*) tmp_idyn=' -i_dynamic';;
18919           esac
18920           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18921           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'
18922           ;;
18923         esac
18924         archive_cmds_need_lc_CXX=no
18925         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18926         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18927         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18928         ;;
18929       pgCC*)
18930         # Portland Group C++ compiler
18931         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18932         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'
18933
18934         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18935         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18936         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'
18937         ;;
18938       cxx*)
18939         # Compaq C++
18940         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18941         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'
18942
18943         runpath_var=LD_RUN_PATH
18944         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18945         hardcode_libdir_separator_CXX=:
18946
18947         # Commands to make compiler produce verbose output that lists
18948         # what "hidden" libraries, object files and flags are used when
18949         # linking a shared library.
18950         #
18951         # There doesn't appear to be a way to prevent this compiler from
18952         # explicitly linking system object files so we need to strip them
18953         # from the output so that they don't get included in the library
18954         # dependencies.
18955         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'
18956         ;;
18957     esac
18958     ;;
18959   lynxos*)
18960     # FIXME: insert proper C++ library support
18961     ld_shlibs_CXX=no
18962     ;;
18963   m88k*)
18964     # FIXME: insert proper C++ library support
18965     ld_shlibs_CXX=no
18966     ;;
18967   mvs*)
18968     case $cc_basename in
18969       cxx*)
18970         # FIXME: insert proper C++ library support
18971         ld_shlibs_CXX=no
18972         ;;
18973       *)
18974         # FIXME: insert proper C++ library support
18975         ld_shlibs_CXX=no
18976         ;;
18977     esac
18978     ;;
18979   netbsd*)
18980     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18981       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18982       wlarc=
18983       hardcode_libdir_flag_spec_CXX='-R$libdir'
18984       hardcode_direct_CXX=yes
18985       hardcode_shlibpath_var_CXX=no
18986     fi
18987     # Workaround some broken pre-1.5 toolchains
18988     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18989     ;;
18990   openbsd2*)
18991     # C++ shared libraries are fairly broken
18992     ld_shlibs_CXX=no
18993     ;;
18994   openbsd*)
18995     hardcode_direct_CXX=yes
18996     hardcode_shlibpath_var_CXX=no
18997     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18998     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18999     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19000       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19001       export_dynamic_flag_spec_CXX='${wl}-E'
19002       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19003     fi
19004     output_verbose_link_cmd='echo'
19005     ;;
19006   osf3*)
19007     case $cc_basename in
19008       KCC*)
19009         # Kuck and Associates, Inc. (KAI) C++ Compiler
19010
19011         # KCC will only create a shared library if the output file
19012         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19013         # to its proper name (with version) after linking.
19014         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'
19015
19016         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19017         hardcode_libdir_separator_CXX=:
19018
19019         # Archives containing C++ object files must be created using
19020         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19021         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19022
19023         ;;
19024       RCC*)
19025         # Rational C++ 2.4.1
19026         # FIXME: insert proper C++ library support
19027         ld_shlibs_CXX=no
19028         ;;
19029       cxx*)
19030         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19031         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'
19032
19033         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19034         hardcode_libdir_separator_CXX=:
19035
19036         # Commands to make compiler produce verbose output that lists
19037         # what "hidden" libraries, object files and flags are used when
19038         # linking a shared library.
19039         #
19040         # There doesn't appear to be a way to prevent this compiler from
19041         # explicitly linking system object files so we need to strip them
19042         # from the output so that they don't get included in the library
19043         # dependencies.
19044         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'
19045         ;;
19046       *)
19047         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19048           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19049           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'
19050
19051           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19052           hardcode_libdir_separator_CXX=:
19053
19054           # Commands to make compiler produce verbose output that lists
19055           # what "hidden" libraries, object files and flags are used when
19056           # linking a shared library.
19057           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19058
19059         else
19060           # FIXME: insert proper C++ library support
19061           ld_shlibs_CXX=no
19062         fi
19063         ;;
19064     esac
19065     ;;
19066   osf4* | osf5*)
19067     case $cc_basename in
19068       KCC*)
19069         # Kuck and Associates, Inc. (KAI) C++ Compiler
19070
19071         # KCC will only create a shared library if the output file
19072         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19073         # to its proper name (with version) after linking.
19074         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'
19075
19076         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19077         hardcode_libdir_separator_CXX=:
19078
19079         # Archives containing C++ object files must be created using
19080         # the KAI C++ compiler.
19081         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19082         ;;
19083       RCC*)
19084         # Rational C++ 2.4.1
19085         # FIXME: insert proper C++ library support
19086         ld_shlibs_CXX=no
19087         ;;
19088       cxx*)
19089         allow_undefined_flag_CXX=' -expect_unresolved \*'
19090         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'
19091         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19092           echo "-hidden">> $lib.exp~
19093           $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~
19094           $rm $lib.exp'
19095
19096         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19097         hardcode_libdir_separator_CXX=:
19098
19099         # Commands to make compiler produce verbose output that lists
19100         # what "hidden" libraries, object files and flags are used when
19101         # linking a shared library.
19102         #
19103         # There doesn't appear to be a way to prevent this compiler from
19104         # explicitly linking system object files so we need to strip them
19105         # from the output so that they don't get included in the library
19106         # dependencies.
19107         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'
19108         ;;
19109       *)
19110         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19111           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19112          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'
19113
19114           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19115           hardcode_libdir_separator_CXX=:
19116
19117           # Commands to make compiler produce verbose output that lists
19118           # what "hidden" libraries, object files and flags are used when
19119           # linking a shared library.
19120           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19121
19122         else
19123           # FIXME: insert proper C++ library support
19124           ld_shlibs_CXX=no
19125         fi
19126         ;;
19127     esac
19128     ;;
19129   psos*)
19130     # FIXME: insert proper C++ library support
19131     ld_shlibs_CXX=no
19132     ;;
19133   sunos4*)
19134     case $cc_basename in
19135       CC*)
19136         # Sun C++ 4.x
19137         # FIXME: insert proper C++ library support
19138         ld_shlibs_CXX=no
19139         ;;
19140       lcc*)
19141         # Lucid
19142         # FIXME: insert proper C++ library support
19143         ld_shlibs_CXX=no
19144         ;;
19145       *)
19146         # FIXME: insert proper C++ library support
19147         ld_shlibs_CXX=no
19148         ;;
19149     esac
19150     ;;
19151   solaris*)
19152     case $cc_basename in
19153       CC*)
19154         # Sun C++ 4.2, 5.x and Centerline C++
19155         archive_cmds_need_lc_CXX=yes
19156         no_undefined_flag_CXX=' -zdefs'
19157         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19158         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19159         $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'
19160
19161         hardcode_libdir_flag_spec_CXX='-R$libdir'
19162         hardcode_shlibpath_var_CXX=no
19163         case $host_os in
19164           solaris2.[0-5] | solaris2.[0-5].*) ;;
19165           *)
19166             # The C++ compiler is used as linker so we must use $wl
19167             # flag to pass the commands to the underlying system
19168             # linker. We must also pass each convience library through
19169             # to the system linker between allextract/defaultextract.
19170             # The C++ compiler will combine linker options so we
19171             # cannot just pass the convience library names through
19172             # without $wl.
19173             # Supported since Solaris 2.6 (maybe 2.5.1?)
19174             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'
19175             ;;
19176         esac
19177         link_all_deplibs_CXX=yes
19178
19179         output_verbose_link_cmd='echo'
19180
19181         # Archives containing C++ object files must be created using
19182         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19183         # necessary to make sure instantiated templates are included
19184         # in the archive.
19185         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19186         ;;
19187       gcx*)
19188         # Green Hills C++ Compiler
19189         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19190
19191         # The C++ compiler must be used to create the archive.
19192         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19193         ;;
19194       *)
19195         # GNU C++ compiler with Solaris linker
19196         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19197           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19198           if $CC --version | grep -v '^2\.7' > /dev/null; then
19199             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19200             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19201                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19202
19203             # Commands to make compiler produce verbose output that lists
19204             # what "hidden" libraries, object files and flags are used when
19205             # linking a shared library.
19206             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19207           else
19208             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19209             # platform.
19210             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19211             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19212                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19213
19214             # Commands to make compiler produce verbose output that lists
19215             # what "hidden" libraries, object files and flags are used when
19216             # linking a shared library.
19217             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19218           fi
19219
19220           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19221         fi
19222         ;;
19223     esac
19224     ;;
19225   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19226     no_undefined_flag_CXX='${wl}-z,text'
19227     archive_cmds_need_lc_CXX=no
19228     hardcode_shlibpath_var_CXX=no
19229     runpath_var='LD_RUN_PATH'
19230
19231     case $cc_basename in
19232       CC*)
19233         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19234         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19235         ;;
19236       *)
19237         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19238         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19239         ;;
19240     esac
19241     ;;
19242   sysv5* | sco3.2v5* | sco5v6*)
19243     # Note: We can NOT use -z defs as we might desire, because we do not
19244     # link with -lc, and that would cause any symbols used from libc to
19245     # always be unresolved, which means just about no library would
19246     # ever link correctly.  If we're not using GNU ld we use -z text
19247     # though, which does catch some bad symbols but isn't as heavy-handed
19248     # as -z defs.
19249     # For security reasons, it is highly recommended that you always
19250     # use absolute paths for naming shared libraries, and exclude the
19251     # DT_RUNPATH tag from executables and libraries.  But doing so
19252     # requires that you compile everything twice, which is a pain.
19253     # So that behaviour is only enabled if SCOABSPATH is set to a
19254     # non-empty value in the environment.  Most likely only useful for
19255     # creating official distributions of packages.
19256     # This is a hack until libtool officially supports absolute path
19257     # names for shared libraries.
19258     no_undefined_flag_CXX='${wl}-z,text'
19259     allow_undefined_flag_CXX='${wl}-z,nodefs'
19260     archive_cmds_need_lc_CXX=no
19261     hardcode_shlibpath_var_CXX=no
19262     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19263     hardcode_libdir_separator_CXX=':'
19264     link_all_deplibs_CXX=yes
19265     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19266     runpath_var='LD_RUN_PATH'
19267
19268     case $cc_basename in
19269       CC*)
19270         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19271         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19272         ;;
19273       *)
19274         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19275         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19276         ;;
19277     esac
19278     ;;
19279   tandem*)
19280     case $cc_basename in
19281       NCC*)
19282         # NonStop-UX NCC 3.20
19283         # FIXME: insert proper C++ library support
19284         ld_shlibs_CXX=no
19285         ;;
19286       *)
19287         # FIXME: insert proper C++ library support
19288         ld_shlibs_CXX=no
19289         ;;
19290     esac
19291     ;;
19292   vxworks*)
19293     # FIXME: insert proper C++ library support
19294     ld_shlibs_CXX=no
19295     ;;
19296   *)
19297     # FIXME: insert proper C++ library support
19298     ld_shlibs_CXX=no
19299     ;;
19300 esac
19301 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19302 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19303 test "$ld_shlibs_CXX" = no && can_build_shared=no
19304
19305 GCC_CXX="$GXX"
19306 LD_CXX="$LD"
19307
19308
19309 cat > conftest.$ac_ext <<EOF
19310 class Foo
19311 {
19312 public:
19313   Foo (void) { a = 0; }
19314 private:
19315   int a;
19316 };
19317 EOF
19318
19319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19320   (eval $ac_compile) 2>&5
19321   ac_status=$?
19322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323   (exit $ac_status); }; then
19324   # Parse the compiler output and extract the necessary
19325   # objects, libraries and library flags.
19326
19327   # Sentinel used to keep track of whether or not we are before
19328   # the conftest object file.
19329   pre_test_object_deps_done=no
19330
19331   # The `*' in the case matches for architectures that use `case' in
19332   # $output_verbose_cmd can trigger glob expansion during the loop
19333   # eval without this substitution.
19334   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19335
19336   for p in `eval $output_verbose_link_cmd`; do
19337     case $p in
19338
19339     -L* | -R* | -l*)
19340        # Some compilers place space between "-{L,R}" and the path.
19341        # Remove the space.
19342        if test $p = "-L" \
19343           || test $p = "-R"; then
19344          prev=$p
19345          continue
19346        else
19347          prev=
19348        fi
19349
19350        if test "$pre_test_object_deps_done" = no; then
19351          case $p in
19352          -L* | -R*)
19353            # Internal compiler library paths should come after those
19354            # provided the user.  The postdeps already come after the
19355            # user supplied libs so there is no need to process them.
19356            if test -z "$compiler_lib_search_path_CXX"; then
19357              compiler_lib_search_path_CXX="${prev}${p}"
19358            else
19359              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19360            fi
19361            ;;
19362          # The "-l" case would never come before the object being
19363          # linked, so don't bother handling this case.
19364          esac
19365        else
19366          if test -z "$postdeps_CXX"; then
19367            postdeps_CXX="${prev}${p}"
19368          else
19369            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19370          fi
19371        fi
19372        ;;
19373
19374     *.$objext)
19375        # This assumes that the test object file only shows up
19376        # once in the compiler output.
19377        if test "$p" = "conftest.$objext"; then
19378          pre_test_object_deps_done=yes
19379          continue
19380        fi
19381
19382        if test "$pre_test_object_deps_done" = no; then
19383          if test -z "$predep_objects_CXX"; then
19384            predep_objects_CXX="$p"
19385          else
19386            predep_objects_CXX="$predep_objects_CXX $p"
19387          fi
19388        else
19389          if test -z "$postdep_objects_CXX"; then
19390            postdep_objects_CXX="$p"
19391          else
19392            postdep_objects_CXX="$postdep_objects_CXX $p"
19393          fi
19394        fi
19395        ;;
19396
19397     *) ;; # Ignore the rest.
19398
19399     esac
19400   done
19401
19402   # Clean up.
19403   rm -f a.out a.exe
19404 else
19405   echo "libtool.m4: error: problem compiling CXX test program"
19406 fi
19407
19408 $rm -f confest.$objext
19409
19410 # PORTME: override above test on systems where it is broken
19411 case $host_os in
19412 interix3*)
19413   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19414   # hack all around it, let's just trust "g++" to DTRT.
19415   predep_objects_CXX=
19416   postdep_objects_CXX=
19417   postdeps_CXX=
19418   ;;
19419
19420 solaris*)
19421   case $cc_basename in
19422   CC*)
19423     # Adding this requires a known-good setup of shared libraries for
19424     # Sun compiler versions before 5.6, else PIC objects from an old
19425     # archive will be linked into the output, leading to subtle bugs.
19426     postdeps_CXX='-lCstd -lCrun'
19427     ;;
19428   esac
19429   ;;
19430 esac
19431
19432
19433 case " $postdeps_CXX " in
19434 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19435 esac
19436
19437 lt_prog_compiler_wl_CXX=
19438 lt_prog_compiler_pic_CXX=
19439 lt_prog_compiler_static_CXX=
19440
19441 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19442 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19443
19444   # C++ specific cases for pic, static, wl, etc.
19445   if test "$GXX" = yes; then
19446     lt_prog_compiler_wl_CXX='-Wl,'
19447     lt_prog_compiler_static_CXX='-static'
19448
19449     case $host_os in
19450     aix*)
19451       # All AIX code is PIC.
19452       if test "$host_cpu" = ia64; then
19453         # AIX 5 now supports IA64 processor
19454         lt_prog_compiler_static_CXX='-Bstatic'
19455       fi
19456       ;;
19457     amigaos*)
19458       # FIXME: we need at least 68020 code to build shared libraries, but
19459       # adding the `-m68020' flag to GCC prevents building anything better,
19460       # like `-m68040'.
19461       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19462       ;;
19463     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19464       # PIC is the default for these OSes.
19465       ;;
19466     mingw* | os2* | pw32*)
19467       # This hack is so that the source file can tell whether it is being
19468       # built for inclusion in a dll (and should export symbols for example).
19469       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19470       ;;
19471     darwin* | rhapsody*)
19472       # PIC is the default on this platform
19473       # Common symbols not allowed in MH_DYLIB files
19474       lt_prog_compiler_pic_CXX='-fno-common'
19475       ;;
19476     *djgpp*)
19477       # DJGPP does not support shared libraries at all
19478       lt_prog_compiler_pic_CXX=
19479       ;;
19480     interix3*)
19481       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19482       # Instead, we relocate shared libraries at runtime.
19483       ;;
19484     sysv4*MP*)
19485       if test -d /usr/nec; then
19486         lt_prog_compiler_pic_CXX=-Kconform_pic
19487       fi
19488       ;;
19489     hpux*)
19490       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19491       # not for PA HP-UX.
19492       case $host_cpu in
19493       hppa*64*|ia64*)
19494         ;;
19495       *)
19496         lt_prog_compiler_pic_CXX='-fPIC'
19497         ;;
19498       esac
19499       ;;
19500     *)
19501       lt_prog_compiler_pic_CXX='-fPIC'
19502       ;;
19503     esac
19504   else
19505     case $host_os in
19506       aix4* | aix5*)
19507         # All AIX code is PIC.
19508         if test "$host_cpu" = ia64; then
19509           # AIX 5 now supports IA64 processor
19510           lt_prog_compiler_static_CXX='-Bstatic'
19511         else
19512           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19513         fi
19514         ;;
19515       chorus*)
19516         case $cc_basename in
19517         cxch68*)
19518           # Green Hills C++ Compiler
19519           # _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"
19520           ;;
19521         esac
19522         ;;
19523        darwin*)
19524          # PIC is the default on this platform
19525          # Common symbols not allowed in MH_DYLIB files
19526          case $cc_basename in
19527            xlc*)
19528            lt_prog_compiler_pic_CXX='-qnocommon'
19529            lt_prog_compiler_wl_CXX='-Wl,'
19530            ;;
19531          esac
19532        ;;
19533       dgux*)
19534         case $cc_basename in
19535           ec++*)
19536             lt_prog_compiler_pic_CXX='-KPIC'
19537             ;;
19538           ghcx*)
19539             # Green Hills C++ Compiler
19540             lt_prog_compiler_pic_CXX='-pic'
19541             ;;
19542           *)
19543             ;;
19544         esac
19545         ;;
19546       freebsd* | kfreebsd*-gnu | dragonfly*)
19547         # FreeBSD uses GNU C++
19548         ;;
19549       hpux9* | hpux10* | hpux11*)
19550         case $cc_basename in
19551           CC*)
19552             lt_prog_compiler_wl_CXX='-Wl,'
19553             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19554             if test "$host_cpu" != ia64; then
19555               lt_prog_compiler_pic_CXX='+Z'
19556             fi
19557             ;;
19558           aCC*)
19559             lt_prog_compiler_wl_CXX='-Wl,'
19560             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19561             case $host_cpu in
19562             hppa*64*|ia64*)
19563               # +Z the default
19564               ;;
19565             *)
19566               lt_prog_compiler_pic_CXX='+Z'
19567               ;;
19568             esac
19569             ;;
19570           *)
19571             ;;
19572         esac
19573         ;;
19574       interix*)
19575         # This is c89, which is MS Visual C++ (no shared libs)
19576         # Anyone wants to do a port?
19577         ;;
19578       irix5* | irix6* | nonstopux*)
19579         case $cc_basename in
19580           CC*)
19581             lt_prog_compiler_wl_CXX='-Wl,'
19582             lt_prog_compiler_static_CXX='-non_shared'
19583             # CC pic flag -KPIC is the default.
19584             ;;
19585           *)
19586             ;;
19587         esac
19588         ;;
19589       linux*)
19590         case $cc_basename in
19591           KCC*)
19592             # KAI C++ Compiler
19593             lt_prog_compiler_wl_CXX='--backend -Wl,'
19594             lt_prog_compiler_pic_CXX='-fPIC'
19595             ;;
19596           icpc* | ecpc*)
19597             # Intel C++
19598             lt_prog_compiler_wl_CXX='-Wl,'
19599             lt_prog_compiler_pic_CXX='-KPIC'
19600             lt_prog_compiler_static_CXX='-static'
19601             ;;
19602           pgCC*)
19603             # Portland Group C++ compiler.
19604             lt_prog_compiler_wl_CXX='-Wl,'
19605             lt_prog_compiler_pic_CXX='-fpic'
19606             lt_prog_compiler_static_CXX='-Bstatic'
19607             ;;
19608           cxx*)
19609             # Compaq C++
19610             # Make sure the PIC flag is empty.  It appears that all Alpha
19611             # Linux and Compaq Tru64 Unix objects are PIC.
19612             lt_prog_compiler_pic_CXX=
19613             lt_prog_compiler_static_CXX='-non_shared'
19614             ;;
19615           *)
19616             ;;
19617         esac
19618         ;;
19619       lynxos*)
19620         ;;
19621       m88k*)
19622         ;;
19623       mvs*)
19624         case $cc_basename in
19625           cxx*)
19626             lt_prog_compiler_pic_CXX='-W c,exportall'
19627             ;;
19628           *)
19629             ;;
19630         esac
19631         ;;
19632       netbsd*)
19633         ;;
19634       osf3* | osf4* | osf5*)
19635         case $cc_basename in
19636           KCC*)
19637             lt_prog_compiler_wl_CXX='--backend -Wl,'
19638             ;;
19639           RCC*)
19640             # Rational C++ 2.4.1
19641             lt_prog_compiler_pic_CXX='-pic'
19642             ;;
19643           cxx*)
19644             # Digital/Compaq C++
19645             lt_prog_compiler_wl_CXX='-Wl,'
19646             # Make sure the PIC flag is empty.  It appears that all Alpha
19647             # Linux and Compaq Tru64 Unix objects are PIC.
19648             lt_prog_compiler_pic_CXX=
19649             lt_prog_compiler_static_CXX='-non_shared'
19650             ;;
19651           *)
19652             ;;
19653         esac
19654         ;;
19655       psos*)
19656         ;;
19657       solaris*)
19658         case $cc_basename in
19659           CC*)
19660             # Sun C++ 4.2, 5.x and Centerline C++
19661             lt_prog_compiler_pic_CXX='-KPIC'
19662             lt_prog_compiler_static_CXX='-Bstatic'
19663             lt_prog_compiler_wl_CXX='-Qoption ld '
19664             ;;
19665           gcx*)
19666             # Green Hills C++ Compiler
19667             lt_prog_compiler_pic_CXX='-PIC'
19668             ;;
19669           *)
19670             ;;
19671         esac
19672         ;;
19673       sunos4*)
19674         case $cc_basename in
19675           CC*)
19676             # Sun C++ 4.x
19677             lt_prog_compiler_pic_CXX='-pic'
19678             lt_prog_compiler_static_CXX='-Bstatic'
19679             ;;
19680           lcc*)
19681             # Lucid
19682             lt_prog_compiler_pic_CXX='-pic'
19683             ;;
19684           *)
19685             ;;
19686         esac
19687         ;;
19688       tandem*)
19689         case $cc_basename in
19690           NCC*)
19691             # NonStop-UX NCC 3.20
19692             lt_prog_compiler_pic_CXX='-KPIC'
19693             ;;
19694           *)
19695             ;;
19696         esac
19697         ;;
19698       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19699         case $cc_basename in
19700           CC*)
19701             lt_prog_compiler_wl_CXX='-Wl,'
19702             lt_prog_compiler_pic_CXX='-KPIC'
19703             lt_prog_compiler_static_CXX='-Bstatic'
19704             ;;
19705         esac
19706         ;;
19707       vxworks*)
19708         ;;
19709       *)
19710         lt_prog_compiler_can_build_shared_CXX=no
19711         ;;
19712     esac
19713   fi
19714
19715 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19716 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19717
19718 #
19719 # Check to make sure the PIC flag actually works.
19720 #
19721 if test -n "$lt_prog_compiler_pic_CXX"; then
19722
19723 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19724 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19725 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19726   echo $ECHO_N "(cached) $ECHO_C" >&6
19727 else
19728   lt_prog_compiler_pic_works_CXX=no
19729   ac_outfile=conftest.$ac_objext
19730    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19731    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19732    # Insert the option either (1) after the last *FLAGS variable, or
19733    # (2) before a word containing "conftest.", or (3) at the end.
19734    # Note that $ac_compile itself does not contain backslashes and begins
19735    # with a dollar sign (not a hyphen), so the echo should work correctly.
19736    # The option is referenced via a variable to avoid confusing sed.
19737    lt_compile=`echo "$ac_compile" | $SED \
19738    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19739    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19740    -e 's:$: $lt_compiler_flag:'`
19741    (eval echo "\"\$as_me:19741: $lt_compile\"" >&5)
19742    (eval "$lt_compile" 2>conftest.err)
19743    ac_status=$?
19744    cat conftest.err >&5
19745    echo "$as_me:19745: \$? = $ac_status" >&5
19746    if (exit $ac_status) && test -s "$ac_outfile"; then
19747      # The compiler can only warn and ignore the option if not recognized
19748      # So say no if there are warnings other than the usual output.
19749      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19750      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19751      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19752        lt_prog_compiler_pic_works_CXX=yes
19753      fi
19754    fi
19755    $rm conftest*
19756
19757 fi
19758 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19759 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19760
19761 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19762     case $lt_prog_compiler_pic_CXX in
19763      "" | " "*) ;;
19764      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19765      esac
19766 else
19767     lt_prog_compiler_pic_CXX=
19768      lt_prog_compiler_can_build_shared_CXX=no
19769 fi
19770
19771 fi
19772 case $host_os in
19773   # For platforms which do not support PIC, -DPIC is meaningless:
19774   *djgpp*)
19775     lt_prog_compiler_pic_CXX=
19776     ;;
19777   *)
19778     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19779     ;;
19780 esac
19781
19782 #
19783 # Check to make sure the static flag actually works.
19784 #
19785 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19786 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19787 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19788 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19789   echo $ECHO_N "(cached) $ECHO_C" >&6
19790 else
19791   lt_prog_compiler_static_works_CXX=no
19792    save_LDFLAGS="$LDFLAGS"
19793    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19794    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19795    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19796      # The linker can only warn and ignore the option if not recognized
19797      # So say no if there are warnings
19798      if test -s conftest.err; then
19799        # Append any errors to the config.log.
19800        cat conftest.err 1>&5
19801        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19802        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19803        if diff conftest.exp conftest.er2 >/dev/null; then
19804          lt_prog_compiler_static_works_CXX=yes
19805        fi
19806      else
19807        lt_prog_compiler_static_works_CXX=yes
19808      fi
19809    fi
19810    $rm conftest*
19811    LDFLAGS="$save_LDFLAGS"
19812
19813 fi
19814 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19815 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19816
19817 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19818     :
19819 else
19820     lt_prog_compiler_static_CXX=
19821 fi
19822
19823
19824 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19825 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19826 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19827   echo $ECHO_N "(cached) $ECHO_C" >&6
19828 else
19829   lt_cv_prog_compiler_c_o_CXX=no
19830    $rm -r conftest 2>/dev/null
19831    mkdir conftest
19832    cd conftest
19833    mkdir out
19834    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19835
19836    lt_compiler_flag="-o out/conftest2.$ac_objext"
19837    # Insert the option either (1) after the last *FLAGS variable, or
19838    # (2) before a word containing "conftest.", or (3) at the end.
19839    # Note that $ac_compile itself does not contain backslashes and begins
19840    # with a dollar sign (not a hyphen), so the echo should work correctly.
19841    lt_compile=`echo "$ac_compile" | $SED \
19842    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19843    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19844    -e 's:$: $lt_compiler_flag:'`
19845    (eval echo "\"\$as_me:19845: $lt_compile\"" >&5)
19846    (eval "$lt_compile" 2>out/conftest.err)
19847    ac_status=$?
19848    cat out/conftest.err >&5
19849    echo "$as_me:19849: \$? = $ac_status" >&5
19850    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19851    then
19852      # The compiler can only warn and ignore the option if not recognized
19853      # So say no if there are warnings
19854      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19855      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19856      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19857        lt_cv_prog_compiler_c_o_CXX=yes
19858      fi
19859    fi
19860    chmod u+w . 2>&5
19861    $rm conftest*
19862    # SGI C++ compiler will create directory out/ii_files/ for
19863    # template instantiation
19864    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19865    $rm out/* && rmdir out
19866    cd ..
19867    rmdir conftest
19868    $rm conftest*
19869
19870 fi
19871 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19872 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19873
19874
19875 hard_links="nottested"
19876 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19877   # do not overwrite the value of need_locks provided by the user
19878   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19879 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19880   hard_links=yes
19881   $rm conftest*
19882   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19883   touch conftest.a
19884   ln conftest.a conftest.b 2>&5 || hard_links=no
19885   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19886   { echo "$as_me:$LINENO: result: $hard_links" >&5
19887 echo "${ECHO_T}$hard_links" >&6; }
19888   if test "$hard_links" = no; then
19889     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19890 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19891     need_locks=warn
19892   fi
19893 else
19894   need_locks=no
19895 fi
19896
19897 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19898 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19899
19900   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19901   case $host_os in
19902   aix4* | aix5*)
19903     # If we're using GNU nm, then we don't want the "-C" option.
19904     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19905     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19906       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'
19907     else
19908       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'
19909     fi
19910     ;;
19911   pw32*)
19912     export_symbols_cmds_CXX="$ltdll_cmds"
19913   ;;
19914   cygwin* | mingw*)
19915     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'
19916   ;;
19917   *)
19918     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19919   ;;
19920   esac
19921
19922 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19923 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19924 test "$ld_shlibs_CXX" = no && can_build_shared=no
19925
19926 #
19927 # Do we need to explicitly link libc?
19928 #
19929 case "x$archive_cmds_need_lc_CXX" in
19930 x|xyes)
19931   # Assume -lc should be added
19932   archive_cmds_need_lc_CXX=yes
19933
19934   if test "$enable_shared" = yes && test "$GCC" = yes; then
19935     case $archive_cmds_CXX in
19936     *'~'*)
19937       # FIXME: we may have to deal with multi-command sequences.
19938       ;;
19939     '$CC '*)
19940       # Test whether the compiler implicitly links with -lc since on some
19941       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19942       # to ld, don't add -lc before -lgcc.
19943       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19944 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19945       $rm conftest*
19946       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19947
19948       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19949   (eval $ac_compile) 2>&5
19950   ac_status=$?
19951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952   (exit $ac_status); } 2>conftest.err; then
19953         soname=conftest
19954         lib=conftest
19955         libobjs=conftest.$ac_objext
19956         deplibs=
19957         wl=$lt_prog_compiler_wl_CXX
19958         pic_flag=$lt_prog_compiler_pic_CXX
19959         compiler_flags=-v
19960         linker_flags=-v
19961         verstring=
19962         output_objdir=.
19963         libname=conftest
19964         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19965         allow_undefined_flag_CXX=
19966         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19967   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19968   ac_status=$?
19969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); }
19971         then
19972           archive_cmds_need_lc_CXX=no
19973         else
19974           archive_cmds_need_lc_CXX=yes
19975         fi
19976         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19977       else
19978         cat conftest.err 1>&5
19979       fi
19980       $rm conftest*
19981       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19982 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19983       ;;
19984     esac
19985   fi
19986   ;;
19987 esac
19988
19989 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19990 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19991 library_names_spec=
19992 libname_spec='lib$name'
19993 soname_spec=
19994 shrext_cmds=".so"
19995 postinstall_cmds=
19996 postuninstall_cmds=
19997 finish_cmds=
19998 finish_eval=
19999 shlibpath_var=
20000 shlibpath_overrides_runpath=unknown
20001 version_type=none
20002 dynamic_linker="$host_os ld.so"
20003 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20004 if test "$GCC" = yes; then
20005   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20006   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20007     # if the path contains ";" then we assume it to be the separator
20008     # otherwise default to the standard path separator (i.e. ":") - it is
20009     # assumed that no part of a normal pathname contains ";" but that should
20010     # okay in the real world where ";" in dirpaths is itself problematic.
20011     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20012   else
20013     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20014   fi
20015 else
20016   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20017 fi
20018 need_lib_prefix=unknown
20019 hardcode_into_libs=no
20020
20021 # when you set need_version to no, make sure it does not cause -set_version
20022 # flags to be left without arguments
20023 need_version=unknown
20024
20025 case $host_os in
20026 aix3*)
20027   version_type=linux
20028   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20029   shlibpath_var=LIBPATH
20030
20031   # AIX 3 has no versioning support, so we append a major version to the name.
20032   soname_spec='${libname}${release}${shared_ext}$major'
20033   ;;
20034
20035 aix4* | aix5*)
20036   version_type=linux
20037   need_lib_prefix=no
20038   need_version=no
20039   hardcode_into_libs=yes
20040   if test "$host_cpu" = ia64; then
20041     # AIX 5 supports IA64
20042     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20043     shlibpath_var=LD_LIBRARY_PATH
20044   else
20045     # With GCC up to 2.95.x, collect2 would create an import file
20046     # for dependence libraries.  The import file would start with
20047     # the line `#! .'.  This would cause the generated library to
20048     # depend on `.', always an invalid library.  This was fixed in
20049     # development snapshots of GCC prior to 3.0.
20050     case $host_os in
20051       aix4 | aix4.[01] | aix4.[01].*)
20052       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20053            echo ' yes '
20054            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20055         :
20056       else
20057         can_build_shared=no
20058       fi
20059       ;;
20060     esac
20061     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20062     # soname into executable. Probably we can add versioning support to
20063     # collect2, so additional links can be useful in future.
20064     if test "$aix_use_runtimelinking" = yes; then
20065       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20066       # instead of lib<name>.a to let people know that these are not
20067       # typical AIX shared libraries.
20068       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20069     else
20070       # We preserve .a as extension for shared libraries through AIX4.2
20071       # and later when we are not doing run time linking.
20072       library_names_spec='${libname}${release}.a $libname.a'
20073       soname_spec='${libname}${release}${shared_ext}$major'
20074     fi
20075     shlibpath_var=LIBPATH
20076   fi
20077   ;;
20078
20079 amigaos*)
20080   library_names_spec='$libname.ixlibrary $libname.a'
20081   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20082   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'
20083   ;;
20084
20085 beos*)
20086   library_names_spec='${libname}${shared_ext}'
20087   dynamic_linker="$host_os ld.so"
20088   shlibpath_var=LIBRARY_PATH
20089   ;;
20090
20091 bsdi[45]*)
20092   version_type=linux
20093   need_version=no
20094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20095   soname_spec='${libname}${release}${shared_ext}$major'
20096   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20097   shlibpath_var=LD_LIBRARY_PATH
20098   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20099   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20100   # the default ld.so.conf also contains /usr/contrib/lib and
20101   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20102   # libtool to hard-code these into programs
20103   ;;
20104
20105 cygwin* | mingw* | pw32*)
20106   version_type=windows
20107   shrext_cmds=".dll"
20108   need_version=no
20109   need_lib_prefix=no
20110
20111   case $GCC,$host_os in
20112   yes,cygwin* | yes,mingw* | yes,pw32*)
20113     library_names_spec='$libname.dll.a'
20114     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20115     postinstall_cmds='base_file=`basename \${file}`~
20116       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20117       dldir=$destdir/`dirname \$dlpath`~
20118       test -d \$dldir || mkdir -p \$dldir~
20119       $install_prog $dir/$dlname \$dldir/$dlname~
20120       chmod a+x \$dldir/$dlname'
20121     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20122       dlpath=$dir/\$dldll~
20123        $rm \$dlpath'
20124     shlibpath_overrides_runpath=yes
20125
20126     case $host_os in
20127     cygwin*)
20128       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20129       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20130       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20131       ;;
20132     mingw*)
20133       # MinGW DLLs use traditional 'lib' prefix
20134       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20135       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20136       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20137         # It is most probably a Windows format PATH printed by
20138         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20139         # path with ; separators, and with drive letters. We can handle the
20140         # drive letters (cygwin fileutils understands them), so leave them,
20141         # especially as we might pass files found there to a mingw objdump,
20142         # which wouldn't understand a cygwinified path. Ahh.
20143         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20144       else
20145         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20146       fi
20147       ;;
20148     pw32*)
20149       # pw32 DLLs use 'pw' prefix rather than 'lib'
20150       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20151       ;;
20152     esac
20153     ;;
20154
20155   *)
20156     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20157     ;;
20158   esac
20159   dynamic_linker='Win32 ld.exe'
20160   # FIXME: first we should search . and the directory the executable is in
20161   shlibpath_var=PATH
20162   ;;
20163
20164 darwin* | rhapsody*)
20165   dynamic_linker="$host_os dyld"
20166   version_type=darwin
20167   need_lib_prefix=no
20168   need_version=no
20169   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20170   soname_spec='${libname}${release}${major}$shared_ext'
20171   shlibpath_overrides_runpath=yes
20172   shlibpath_var=DYLD_LIBRARY_PATH
20173   shrext_cmds='.dylib'
20174   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20175   if test "$GCC" = yes; then
20176     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"`
20177   else
20178     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20179   fi
20180   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20181   ;;
20182
20183 dgux*)
20184   version_type=linux
20185   need_lib_prefix=no
20186   need_version=no
20187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20188   soname_spec='${libname}${release}${shared_ext}$major'
20189   shlibpath_var=LD_LIBRARY_PATH
20190   ;;
20191
20192 freebsd1*)
20193   dynamic_linker=no
20194   ;;
20195
20196 kfreebsd*-gnu)
20197   version_type=linux
20198   need_lib_prefix=no
20199   need_version=no
20200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20201   soname_spec='${libname}${release}${shared_ext}$major'
20202   shlibpath_var=LD_LIBRARY_PATH
20203   shlibpath_overrides_runpath=no
20204   hardcode_into_libs=yes
20205   dynamic_linker='GNU ld.so'
20206   ;;
20207
20208 freebsd* | dragonfly*)
20209   # DragonFly does not have aout.  When/if they implement a new
20210   # versioning mechanism, adjust this.
20211   if test -x /usr/bin/objformat; then
20212     objformat=`/usr/bin/objformat`
20213   else
20214     case $host_os in
20215     freebsd[123]*) objformat=aout ;;
20216     *) objformat=elf ;;
20217     esac
20218   fi
20219   version_type=freebsd-$objformat
20220   case $version_type in
20221     freebsd-elf*)
20222       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20223       need_version=no
20224       need_lib_prefix=no
20225       ;;
20226     freebsd-*)
20227       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20228       need_version=yes
20229       ;;
20230   esac
20231   shlibpath_var=LD_LIBRARY_PATH
20232   case $host_os in
20233   freebsd2*)
20234     shlibpath_overrides_runpath=yes
20235     ;;
20236   freebsd3.[01]* | freebsdelf3.[01]*)
20237     shlibpath_overrides_runpath=yes
20238     hardcode_into_libs=yes
20239     ;;
20240   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20241   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20242     shlibpath_overrides_runpath=no
20243     hardcode_into_libs=yes
20244     ;;
20245   freebsd*) # from 4.6 on
20246     shlibpath_overrides_runpath=yes
20247     hardcode_into_libs=yes
20248     ;;
20249   esac
20250   ;;
20251
20252 gnu*)
20253   version_type=linux
20254   need_lib_prefix=no
20255   need_version=no
20256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20257   soname_spec='${libname}${release}${shared_ext}$major'
20258   shlibpath_var=LD_LIBRARY_PATH
20259   hardcode_into_libs=yes
20260   ;;
20261
20262 hpux9* | hpux10* | hpux11*)
20263   # Give a soname corresponding to the major version so that dld.sl refuses to
20264   # link against other versions.
20265   version_type=sunos
20266   need_lib_prefix=no
20267   need_version=no
20268   case $host_cpu in
20269   ia64*)
20270     shrext_cmds='.so'
20271     hardcode_into_libs=yes
20272     dynamic_linker="$host_os dld.so"
20273     shlibpath_var=LD_LIBRARY_PATH
20274     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20275     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20276     soname_spec='${libname}${release}${shared_ext}$major'
20277     if test "X$HPUX_IA64_MODE" = X32; then
20278       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20279     else
20280       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20281     fi
20282     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20283     ;;
20284    hppa*64*)
20285      shrext_cmds='.sl'
20286      hardcode_into_libs=yes
20287      dynamic_linker="$host_os dld.sl"
20288      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20289      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20290      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20291      soname_spec='${libname}${release}${shared_ext}$major'
20292      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20293      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20294      ;;
20295    *)
20296     shrext_cmds='.sl'
20297     dynamic_linker="$host_os dld.sl"
20298     shlibpath_var=SHLIB_PATH
20299     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20300     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20301     soname_spec='${libname}${release}${shared_ext}$major'
20302     ;;
20303   esac
20304   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20305   postinstall_cmds='chmod 555 $lib'
20306   ;;
20307
20308 interix3*)
20309   version_type=linux
20310   need_lib_prefix=no
20311   need_version=no
20312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20313   soname_spec='${libname}${release}${shared_ext}$major'
20314   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20315   shlibpath_var=LD_LIBRARY_PATH
20316   shlibpath_overrides_runpath=no
20317   hardcode_into_libs=yes
20318   ;;
20319
20320 irix5* | irix6* | nonstopux*)
20321   case $host_os in
20322     nonstopux*) version_type=nonstopux ;;
20323     *)
20324         if test "$lt_cv_prog_gnu_ld" = yes; then
20325                 version_type=linux
20326         else
20327                 version_type=irix
20328         fi ;;
20329   esac
20330   need_lib_prefix=no
20331   need_version=no
20332   soname_spec='${libname}${release}${shared_ext}$major'
20333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20334   case $host_os in
20335   irix5* | nonstopux*)
20336     libsuff= shlibsuff=
20337     ;;
20338   *)
20339     case $LD in # libtool.m4 will add one of these switches to LD
20340     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20341       libsuff= shlibsuff= libmagic=32-bit;;
20342     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20343       libsuff=32 shlibsuff=N32 libmagic=N32;;
20344     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20345       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20346     *) libsuff= shlibsuff= libmagic=never-match;;
20347     esac
20348     ;;
20349   esac
20350   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20351   shlibpath_overrides_runpath=no
20352   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20353   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20354   hardcode_into_libs=yes
20355   ;;
20356
20357 # No shared lib support for Linux oldld, aout, or coff.
20358 linux*oldld* | linux*aout* | linux*coff*)
20359   dynamic_linker=no
20360   ;;
20361
20362 # This must be Linux ELF.
20363 linux*)
20364   version_type=linux
20365   need_lib_prefix=no
20366   need_version=no
20367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20368   soname_spec='${libname}${release}${shared_ext}$major'
20369   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20370   shlibpath_var=LD_LIBRARY_PATH
20371   shlibpath_overrides_runpath=no
20372   # This implies no fast_install, which is unacceptable.
20373   # Some rework will be needed to allow for fast_install
20374   # before this can be enabled.
20375   hardcode_into_libs=yes
20376
20377   # Append ld.so.conf contents to the search path
20378   if test -f /etc/ld.so.conf; then
20379     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' ' '`
20380     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20381   fi
20382
20383   # We used to test for /lib/ld.so.1 and disable shared libraries on
20384   # powerpc, because MkLinux only supported shared libraries with the
20385   # GNU dynamic linker.  Since this was broken with cross compilers,
20386   # most powerpc-linux boxes support dynamic linking these days and
20387   # people can always --disable-shared, the test was removed, and we
20388   # assume the GNU/Linux dynamic linker is in use.
20389   dynamic_linker='GNU/Linux ld.so'
20390   ;;
20391
20392 knetbsd*-gnu)
20393   version_type=linux
20394   need_lib_prefix=no
20395   need_version=no
20396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20397   soname_spec='${libname}${release}${shared_ext}$major'
20398   shlibpath_var=LD_LIBRARY_PATH
20399   shlibpath_overrides_runpath=no
20400   hardcode_into_libs=yes
20401   dynamic_linker='GNU ld.so'
20402   ;;
20403
20404 netbsd*)
20405   version_type=sunos
20406   need_lib_prefix=no
20407   need_version=no
20408   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20409     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20410     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20411     dynamic_linker='NetBSD (a.out) ld.so'
20412   else
20413     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20414     soname_spec='${libname}${release}${shared_ext}$major'
20415     dynamic_linker='NetBSD ld.elf_so'
20416   fi
20417   shlibpath_var=LD_LIBRARY_PATH
20418   shlibpath_overrides_runpath=yes
20419   hardcode_into_libs=yes
20420   ;;
20421
20422 newsos6)
20423   version_type=linux
20424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20425   shlibpath_var=LD_LIBRARY_PATH
20426   shlibpath_overrides_runpath=yes
20427   ;;
20428
20429 nto-qnx*)
20430   version_type=linux
20431   need_lib_prefix=no
20432   need_version=no
20433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20434   soname_spec='${libname}${release}${shared_ext}$major'
20435   shlibpath_var=LD_LIBRARY_PATH
20436   shlibpath_overrides_runpath=yes
20437   ;;
20438
20439 openbsd*)
20440   version_type=sunos
20441   sys_lib_dlsearch_path_spec="/usr/lib"
20442   need_lib_prefix=no
20443   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20444   case $host_os in
20445     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20446     *)                         need_version=no  ;;
20447   esac
20448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20449   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20450   shlibpath_var=LD_LIBRARY_PATH
20451   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20452     case $host_os in
20453       openbsd2.[89] | openbsd2.[89].*)
20454         shlibpath_overrides_runpath=no
20455         ;;
20456       *)
20457         shlibpath_overrides_runpath=yes
20458         ;;
20459       esac
20460   else
20461     shlibpath_overrides_runpath=yes
20462   fi
20463   ;;
20464
20465 os2*)
20466   libname_spec='$name'
20467   shrext_cmds=".dll"
20468   need_lib_prefix=no
20469   library_names_spec='$libname${shared_ext} $libname.a'
20470   dynamic_linker='OS/2 ld.exe'
20471   shlibpath_var=LIBPATH
20472   ;;
20473
20474 osf3* | osf4* | osf5*)
20475   version_type=osf
20476   need_lib_prefix=no
20477   need_version=no
20478   soname_spec='${libname}${release}${shared_ext}$major'
20479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20480   shlibpath_var=LD_LIBRARY_PATH
20481   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20482   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20483   ;;
20484
20485 solaris*)
20486   version_type=linux
20487   need_lib_prefix=no
20488   need_version=no
20489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20490   soname_spec='${libname}${release}${shared_ext}$major'
20491   shlibpath_var=LD_LIBRARY_PATH
20492   shlibpath_overrides_runpath=yes
20493   hardcode_into_libs=yes
20494   # ldd complains unless libraries are executable
20495   postinstall_cmds='chmod +x $lib'
20496   ;;
20497
20498 sunos4*)
20499   version_type=sunos
20500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20501   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20502   shlibpath_var=LD_LIBRARY_PATH
20503   shlibpath_overrides_runpath=yes
20504   if test "$with_gnu_ld" = yes; then
20505     need_lib_prefix=no
20506   fi
20507   need_version=yes
20508   ;;
20509
20510 sysv4 | sysv4.3*)
20511   version_type=linux
20512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20513   soname_spec='${libname}${release}${shared_ext}$major'
20514   shlibpath_var=LD_LIBRARY_PATH
20515   case $host_vendor in
20516     sni)
20517       shlibpath_overrides_runpath=no
20518       need_lib_prefix=no
20519       export_dynamic_flag_spec='${wl}-Blargedynsym'
20520       runpath_var=LD_RUN_PATH
20521       ;;
20522     siemens)
20523       need_lib_prefix=no
20524       ;;
20525     motorola)
20526       need_lib_prefix=no
20527       need_version=no
20528       shlibpath_overrides_runpath=no
20529       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20530       ;;
20531   esac
20532   ;;
20533
20534 sysv4*MP*)
20535   if test -d /usr/nec ;then
20536     version_type=linux
20537     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20538     soname_spec='$libname${shared_ext}.$major'
20539     shlibpath_var=LD_LIBRARY_PATH
20540   fi
20541   ;;
20542
20543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20544   version_type=freebsd-elf
20545   need_lib_prefix=no
20546   need_version=no
20547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20548   soname_spec='${libname}${release}${shared_ext}$major'
20549   shlibpath_var=LD_LIBRARY_PATH
20550   hardcode_into_libs=yes
20551   if test "$with_gnu_ld" = yes; then
20552     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20553     shlibpath_overrides_runpath=no
20554   else
20555     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20556     shlibpath_overrides_runpath=yes
20557     case $host_os in
20558       sco3.2v5*)
20559         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20560         ;;
20561     esac
20562   fi
20563   sys_lib_dlsearch_path_spec='/usr/lib'
20564   ;;
20565
20566 uts4*)
20567   version_type=linux
20568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20569   soname_spec='${libname}${release}${shared_ext}$major'
20570   shlibpath_var=LD_LIBRARY_PATH
20571   ;;
20572
20573 *)
20574   dynamic_linker=no
20575   ;;
20576 esac
20577 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20578 echo "${ECHO_T}$dynamic_linker" >&6; }
20579 test "$dynamic_linker" = no && can_build_shared=no
20580
20581 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20582 if test "$GCC" = yes; then
20583   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20584 fi
20585
20586 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20587 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20588 hardcode_action_CXX=
20589 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20590    test -n "$runpath_var_CXX" || \
20591    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20592
20593   # We can hardcode non-existant directories.
20594   if test "$hardcode_direct_CXX" != no &&
20595      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20596      # have to relink, otherwise we might link with an installed library
20597      # when we should be linking with a yet-to-be-installed one
20598      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20599      test "$hardcode_minus_L_CXX" != no; then
20600     # Linking always hardcodes the temporary library directory.
20601     hardcode_action_CXX=relink
20602   else
20603     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20604     hardcode_action_CXX=immediate
20605   fi
20606 else
20607   # We cannot hardcode anything, or else we can only hardcode existing
20608   # directories.
20609   hardcode_action_CXX=unsupported
20610 fi
20611 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20612 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20613
20614 if test "$hardcode_action_CXX" = relink; then
20615   # Fast installation is not supported
20616   enable_fast_install=no
20617 elif test "$shlibpath_overrides_runpath" = yes ||
20618      test "$enable_shared" = no; then
20619   # Fast installation is not necessary
20620   enable_fast_install=needless
20621 fi
20622
20623
20624 # The else clause should only fire when bootstrapping the
20625 # libtool distribution, otherwise you forgot to ship ltmain.sh
20626 # with your package, and you will get complaints that there are
20627 # no rules to generate ltmain.sh.
20628 if test -f "$ltmain"; then
20629   # See if we are running on zsh, and set the options which allow our commands through
20630   # without removal of \ escapes.
20631   if test -n "${ZSH_VERSION+set}" ; then
20632     setopt NO_GLOB_SUBST
20633   fi
20634   # Now quote all the things that may contain metacharacters while being
20635   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20636   # variables and quote the copies for generation of the libtool script.
20637   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20638     SED SHELL STRIP \
20639     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20640     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20641     deplibs_check_method reload_flag reload_cmds need_locks \
20642     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20643     lt_cv_sys_global_symbol_to_c_name_address \
20644     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20645     old_postinstall_cmds old_postuninstall_cmds \
20646     compiler_CXX \
20647     CC_CXX \
20648     LD_CXX \
20649     lt_prog_compiler_wl_CXX \
20650     lt_prog_compiler_pic_CXX \
20651     lt_prog_compiler_static_CXX \
20652     lt_prog_compiler_no_builtin_flag_CXX \
20653     export_dynamic_flag_spec_CXX \
20654     thread_safe_flag_spec_CXX \
20655     whole_archive_flag_spec_CXX \
20656     enable_shared_with_static_runtimes_CXX \
20657     old_archive_cmds_CXX \
20658     old_archive_from_new_cmds_CXX \
20659     predep_objects_CXX \
20660     postdep_objects_CXX \
20661     predeps_CXX \
20662     postdeps_CXX \
20663     compiler_lib_search_path_CXX \
20664     archive_cmds_CXX \
20665     archive_expsym_cmds_CXX \
20666     postinstall_cmds_CXX \
20667     postuninstall_cmds_CXX \
20668     old_archive_from_expsyms_cmds_CXX \
20669     allow_undefined_flag_CXX \
20670     no_undefined_flag_CXX \
20671     export_symbols_cmds_CXX \
20672     hardcode_libdir_flag_spec_CXX \
20673     hardcode_libdir_flag_spec_ld_CXX \
20674     hardcode_libdir_separator_CXX \
20675     hardcode_automatic_CXX \
20676     module_cmds_CXX \
20677     module_expsym_cmds_CXX \
20678     lt_cv_prog_compiler_c_o_CXX \
20679     exclude_expsyms_CXX \
20680     include_expsyms_CXX; do
20681
20682     case $var in
20683     old_archive_cmds_CXX | \
20684     old_archive_from_new_cmds_CXX | \
20685     archive_cmds_CXX | \
20686     archive_expsym_cmds_CXX | \
20687     module_cmds_CXX | \
20688     module_expsym_cmds_CXX | \
20689     old_archive_from_expsyms_cmds_CXX | \
20690     export_symbols_cmds_CXX | \
20691     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20692     postinstall_cmds | postuninstall_cmds | \
20693     old_postinstall_cmds | old_postuninstall_cmds | \
20694     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20695       # Double-quote double-evaled strings.
20696       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20697       ;;
20698     *)
20699       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20700       ;;
20701     esac
20702   done
20703
20704   case $lt_echo in
20705   *'\$0 --fallback-echo"')
20706     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20707     ;;
20708   esac
20709
20710 cfgfile="$ofile"
20711
20712   cat <<__EOF__ >> "$cfgfile"
20713 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20714
20715 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20716
20717 # Shell to use when invoking shell scripts.
20718 SHELL=$lt_SHELL
20719
20720 # Whether or not to build shared libraries.
20721 build_libtool_libs=$enable_shared
20722
20723 # Whether or not to build static libraries.
20724 build_old_libs=$enable_static
20725
20726 # Whether or not to add -lc for building shared libraries.
20727 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20728
20729 # Whether or not to disallow shared libs when runtime libs are static
20730 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20731
20732 # Whether or not to optimize for fast installation.
20733 fast_install=$enable_fast_install
20734
20735 # The host system.
20736 host_alias=$host_alias
20737 host=$host
20738 host_os=$host_os
20739
20740 # The build system.
20741 build_alias=$build_alias
20742 build=$build
20743 build_os=$build_os
20744
20745 # An echo program that does not interpret backslashes.
20746 echo=$lt_echo
20747
20748 # The archiver.
20749 AR=$lt_AR
20750 AR_FLAGS=$lt_AR_FLAGS
20751
20752 # A C compiler.
20753 LTCC=$lt_LTCC
20754
20755 # LTCC compiler flags.
20756 LTCFLAGS=$lt_LTCFLAGS
20757
20758 # A language-specific compiler.
20759 CC=$lt_compiler_CXX
20760
20761 # Is the compiler the GNU C compiler?
20762 with_gcc=$GCC_CXX
20763
20764 # An ERE matcher.
20765 EGREP=$lt_EGREP
20766
20767 # The linker used to build libraries.
20768 LD=$lt_LD_CXX
20769
20770 # Whether we need hard or soft links.
20771 LN_S=$lt_LN_S
20772
20773 # A BSD-compatible nm program.
20774 NM=$lt_NM
20775
20776 # A symbol stripping program
20777 STRIP=$lt_STRIP
20778
20779 # Used to examine libraries when file_magic_cmd begins "file"
20780 MAGIC_CMD=$MAGIC_CMD
20781
20782 # Used on cygwin: DLL creation program.
20783 DLLTOOL="$DLLTOOL"
20784
20785 # Used on cygwin: object dumper.
20786 OBJDUMP="$OBJDUMP"
20787
20788 # Used on cygwin: assembler.
20789 AS="$AS"
20790
20791 # The name of the directory that contains temporary libtool files.
20792 objdir=$objdir
20793
20794 # How to create reloadable object files.
20795 reload_flag=$lt_reload_flag
20796 reload_cmds=$lt_reload_cmds
20797
20798 # How to pass a linker flag through the compiler.
20799 wl=$lt_lt_prog_compiler_wl_CXX
20800
20801 # Object file suffix (normally "o").
20802 objext="$ac_objext"
20803
20804 # Old archive suffix (normally "a").
20805 libext="$libext"
20806
20807 # Shared library suffix (normally ".so").
20808 shrext_cmds='$shrext_cmds'
20809
20810 # Executable file suffix (normally "").
20811 exeext="$exeext"
20812
20813 # Additional compiler flags for building library objects.
20814 pic_flag=$lt_lt_prog_compiler_pic_CXX
20815 pic_mode=$pic_mode
20816
20817 # What is the maximum length of a command?
20818 max_cmd_len=$lt_cv_sys_max_cmd_len
20819
20820 # Does compiler simultaneously support -c and -o options?
20821 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20822
20823 # Must we lock files when doing compilation?
20824 need_locks=$lt_need_locks
20825
20826 # Do we need the lib prefix for modules?
20827 need_lib_prefix=$need_lib_prefix
20828
20829 # Do we need a version for libraries?
20830 need_version=$need_version
20831
20832 # Whether dlopen is supported.
20833 dlopen_support=$enable_dlopen
20834
20835 # Whether dlopen of programs is supported.
20836 dlopen_self=$enable_dlopen_self
20837
20838 # Whether dlopen of statically linked programs is supported.
20839 dlopen_self_static=$enable_dlopen_self_static
20840
20841 # Compiler flag to prevent dynamic linking.
20842 link_static_flag=$lt_lt_prog_compiler_static_CXX
20843
20844 # Compiler flag to turn off builtin functions.
20845 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20846
20847 # Compiler flag to allow reflexive dlopens.
20848 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20849
20850 # Compiler flag to generate shared objects directly from archives.
20851 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20852
20853 # Compiler flag to generate thread-safe objects.
20854 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20855
20856 # Library versioning type.
20857 version_type=$version_type
20858
20859 # Format of library name prefix.
20860 libname_spec=$lt_libname_spec
20861
20862 # List of archive names.  First name is the real one, the rest are links.
20863 # The last name is the one that the linker finds with -lNAME.
20864 library_names_spec=$lt_library_names_spec
20865
20866 # The coded name of the library, if different from the real name.
20867 soname_spec=$lt_soname_spec
20868
20869 # Commands used to build and install an old-style archive.
20870 RANLIB=$lt_RANLIB
20871 old_archive_cmds=$lt_old_archive_cmds_CXX
20872 old_postinstall_cmds=$lt_old_postinstall_cmds
20873 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20874
20875 # Create an old-style archive from a shared archive.
20876 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20877
20878 # Create a temporary old-style archive to link instead of a shared archive.
20879 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20880
20881 # Commands used to build and install a shared archive.
20882 archive_cmds=$lt_archive_cmds_CXX
20883 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20884 postinstall_cmds=$lt_postinstall_cmds
20885 postuninstall_cmds=$lt_postuninstall_cmds
20886
20887 # Commands used to build a loadable module (assumed same as above if empty)
20888 module_cmds=$lt_module_cmds_CXX
20889 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20890
20891 # Commands to strip libraries.
20892 old_striplib=$lt_old_striplib
20893 striplib=$lt_striplib
20894
20895 # Dependencies to place before the objects being linked to create a
20896 # shared library.
20897 predep_objects=$lt_predep_objects_CXX
20898
20899 # Dependencies to place after the objects being linked to create a
20900 # shared library.
20901 postdep_objects=$lt_postdep_objects_CXX
20902
20903 # Dependencies to place before the objects being linked to create a
20904 # shared library.
20905 predeps=$lt_predeps_CXX
20906
20907 # Dependencies to place after the objects being linked to create a
20908 # shared library.
20909 postdeps=$lt_postdeps_CXX
20910
20911 # The library search path used internally by the compiler when linking
20912 # a shared library.
20913 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20914
20915 # Method to check whether dependent libraries are shared objects.
20916 deplibs_check_method=$lt_deplibs_check_method
20917
20918 # Command to use when deplibs_check_method == file_magic.
20919 file_magic_cmd=$lt_file_magic_cmd
20920
20921 # Flag that allows shared libraries with undefined symbols to be built.
20922 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20923
20924 # Flag that forces no undefined symbols.
20925 no_undefined_flag=$lt_no_undefined_flag_CXX
20926
20927 # Commands used to finish a libtool library installation in a directory.
20928 finish_cmds=$lt_finish_cmds
20929
20930 # Same as above, but a single script fragment to be evaled but not shown.
20931 finish_eval=$lt_finish_eval
20932
20933 # Take the output of nm and produce a listing of raw symbols and C names.
20934 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20935
20936 # Transform the output of nm in a proper C declaration
20937 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20938
20939 # Transform the output of nm in a C name address pair
20940 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20941
20942 # This is the shared library runtime path variable.
20943 runpath_var=$runpath_var
20944
20945 # This is the shared library path variable.
20946 shlibpath_var=$shlibpath_var
20947
20948 # Is shlibpath searched before the hard-coded library search path?
20949 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20950
20951 # How to hardcode a shared library path into an executable.
20952 hardcode_action=$hardcode_action_CXX
20953
20954 # Whether we should hardcode library paths into libraries.
20955 hardcode_into_libs=$hardcode_into_libs
20956
20957 # Flag to hardcode \$libdir into a binary during linking.
20958 # This must work even if \$libdir does not exist.
20959 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20960
20961 # If ld is used when linking, flag to hardcode \$libdir into
20962 # a binary during linking. This must work even if \$libdir does
20963 # not exist.
20964 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20965
20966 # Whether we need a single -rpath flag with a separated argument.
20967 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20968
20969 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20970 # resulting binary.
20971 hardcode_direct=$hardcode_direct_CXX
20972
20973 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20974 # resulting binary.
20975 hardcode_minus_L=$hardcode_minus_L_CXX
20976
20977 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20978 # the resulting binary.
20979 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20980
20981 # Set to yes if building a shared library automatically hardcodes DIR into the library
20982 # and all subsequent libraries and executables linked against it.
20983 hardcode_automatic=$hardcode_automatic_CXX
20984
20985 # Variables whose values should be saved in libtool wrapper scripts and
20986 # restored at relink time.
20987 variables_saved_for_relink="$variables_saved_for_relink"
20988
20989 # Whether libtool must link a program against all its dependency libraries.
20990 link_all_deplibs=$link_all_deplibs_CXX
20991
20992 # Compile-time system search path for libraries
20993 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20994
20995 # Run-time system search path for libraries
20996 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20997
20998 # Fix the shell variable \$srcfile for the compiler.
20999 fix_srcfile_path="$fix_srcfile_path_CXX"
21000
21001 # Set to yes if exported symbols are required.
21002 always_export_symbols=$always_export_symbols_CXX
21003
21004 # The commands to list exported symbols.
21005 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21006
21007 # The commands to extract the exported symbol list from a shared archive.
21008 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21009
21010 # Symbols that should not be listed in the preloaded symbols.
21011 exclude_expsyms=$lt_exclude_expsyms_CXX
21012
21013 # Symbols that must always be exported.
21014 include_expsyms=$lt_include_expsyms_CXX
21015
21016 # ### END LIBTOOL TAG CONFIG: $tagname
21017
21018 __EOF__
21019
21020
21021 else
21022   # If there is no Makefile yet, we rely on a make rule to execute
21023   # `config.status --recheck' to rerun these tests and create the
21024   # libtool script then.
21025   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21026   if test -f "$ltmain_in"; then
21027     test -f Makefile && make "$ltmain"
21028   fi
21029 fi
21030
21031
21032 ac_ext=c
21033 ac_cpp='$CPP $CPPFLAGS'
21034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21037
21038 CC=$lt_save_CC
21039 LDCXX=$LD
21040 LD=$lt_save_LD
21041 GCC=$lt_save_GCC
21042 with_gnu_ldcxx=$with_gnu_ld
21043 with_gnu_ld=$lt_save_with_gnu_ld
21044 lt_cv_path_LDCXX=$lt_cv_path_LD
21045 lt_cv_path_LD=$lt_save_path_LD
21046 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21047 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21048
21049         else
21050           tagname=""
21051         fi
21052         ;;
21053
21054       F77)
21055         if test -n "$F77" && test "X$F77" != "Xno"; then
21056
21057 ac_ext=f
21058 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21059 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21060 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21061
21062
21063 archive_cmds_need_lc_F77=no
21064 allow_undefined_flag_F77=
21065 always_export_symbols_F77=no
21066 archive_expsym_cmds_F77=
21067 export_dynamic_flag_spec_F77=
21068 hardcode_direct_F77=no
21069 hardcode_libdir_flag_spec_F77=
21070 hardcode_libdir_flag_spec_ld_F77=
21071 hardcode_libdir_separator_F77=
21072 hardcode_minus_L_F77=no
21073 hardcode_automatic_F77=no
21074 module_cmds_F77=
21075 module_expsym_cmds_F77=
21076 link_all_deplibs_F77=unknown
21077 old_archive_cmds_F77=$old_archive_cmds
21078 no_undefined_flag_F77=
21079 whole_archive_flag_spec_F77=
21080 enable_shared_with_static_runtimes_F77=no
21081
21082 # Source file extension for f77 test sources.
21083 ac_ext=f
21084
21085 # Object file extension for compiled f77 test sources.
21086 objext=o
21087 objext_F77=$objext
21088
21089 # Code to be used in simple compile tests
21090 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21091
21092 # Code to be used in simple link tests
21093 lt_simple_link_test_code="      program t\n      end\n"
21094
21095 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21096
21097 # If no C compiler was specified, use CC.
21098 LTCC=${LTCC-"$CC"}
21099
21100 # If no C compiler flags were specified, use CFLAGS.
21101 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21102
21103 # Allow CC to be a program name with arguments.
21104 compiler=$CC
21105
21106
21107 # save warnings/boilerplate of simple test code
21108 ac_outfile=conftest.$ac_objext
21109 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21110 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21111 _lt_compiler_boilerplate=`cat conftest.err`
21112 $rm conftest*
21113
21114 ac_outfile=conftest.$ac_objext
21115 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21116 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21117 _lt_linker_boilerplate=`cat conftest.err`
21118 $rm conftest*
21119
21120
21121 # Allow CC to be a program name with arguments.
21122 lt_save_CC="$CC"
21123 CC=${F77-"f77"}
21124 compiler=$CC
21125 compiler_F77=$CC
21126 for cc_temp in $compiler""; do
21127   case $cc_temp in
21128     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21129     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21130     \-*) ;;
21131     *) break;;
21132   esac
21133 done
21134 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21135
21136
21137 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21138 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21139 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21140 echo "${ECHO_T}$can_build_shared" >&6; }
21141
21142 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21143 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21144 test "$can_build_shared" = "no" && enable_shared=no
21145
21146 # On AIX, shared libraries and static libraries use the same namespace, and
21147 # are all built from PIC.
21148 case $host_os in
21149 aix3*)
21150   test "$enable_shared" = yes && enable_static=no
21151   if test -n "$RANLIB"; then
21152     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21153     postinstall_cmds='$RANLIB $lib'
21154   fi
21155   ;;
21156 aix4* | aix5*)
21157   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21158     test "$enable_shared" = yes && enable_static=no
21159   fi
21160   ;;
21161 esac
21162 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21163 echo "${ECHO_T}$enable_shared" >&6; }
21164
21165 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21166 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21167 # Make sure either enable_shared or enable_static is yes.
21168 test "$enable_shared" = yes || enable_static=yes
21169 { echo "$as_me:$LINENO: result: $enable_static" >&5
21170 echo "${ECHO_T}$enable_static" >&6; }
21171
21172 GCC_F77="$G77"
21173 LD_F77="$LD"
21174
21175 lt_prog_compiler_wl_F77=
21176 lt_prog_compiler_pic_F77=
21177 lt_prog_compiler_static_F77=
21178
21179 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21180 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21181
21182   if test "$GCC" = yes; then
21183     lt_prog_compiler_wl_F77='-Wl,'
21184     lt_prog_compiler_static_F77='-static'
21185
21186     case $host_os in
21187       aix*)
21188       # All AIX code is PIC.
21189       if test "$host_cpu" = ia64; then
21190         # AIX 5 now supports IA64 processor
21191         lt_prog_compiler_static_F77='-Bstatic'
21192       fi
21193       ;;
21194
21195     amigaos*)
21196       # FIXME: we need at least 68020 code to build shared libraries, but
21197       # adding the `-m68020' flag to GCC prevents building anything better,
21198       # like `-m68040'.
21199       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21200       ;;
21201
21202     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21203       # PIC is the default for these OSes.
21204       ;;
21205
21206     mingw* | pw32* | os2*)
21207       # This hack is so that the source file can tell whether it is being
21208       # built for inclusion in a dll (and should export symbols for example).
21209       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21210       ;;
21211
21212     darwin* | rhapsody*)
21213       # PIC is the default on this platform
21214       # Common symbols not allowed in MH_DYLIB files
21215       lt_prog_compiler_pic_F77='-fno-common'
21216       ;;
21217
21218     interix3*)
21219       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21220       # Instead, we relocate shared libraries at runtime.
21221       ;;
21222
21223     msdosdjgpp*)
21224       # Just because we use GCC doesn't mean we suddenly get shared libraries
21225       # on systems that don't support them.
21226       lt_prog_compiler_can_build_shared_F77=no
21227       enable_shared=no
21228       ;;
21229
21230     sysv4*MP*)
21231       if test -d /usr/nec; then
21232         lt_prog_compiler_pic_F77=-Kconform_pic
21233       fi
21234       ;;
21235
21236     hpux*)
21237       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21238       # not for PA HP-UX.
21239       case $host_cpu in
21240       hppa*64*|ia64*)
21241         # +Z the default
21242         ;;
21243       *)
21244         lt_prog_compiler_pic_F77='-fPIC'
21245         ;;
21246       esac
21247       ;;
21248
21249     *)
21250       lt_prog_compiler_pic_F77='-fPIC'
21251       ;;
21252     esac
21253   else
21254     # PORTME Check for flag to pass linker flags through the system compiler.
21255     case $host_os in
21256     aix*)
21257       lt_prog_compiler_wl_F77='-Wl,'
21258       if test "$host_cpu" = ia64; then
21259         # AIX 5 now supports IA64 processor
21260         lt_prog_compiler_static_F77='-Bstatic'
21261       else
21262         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21263       fi
21264       ;;
21265       darwin*)
21266         # PIC is the default on this platform
21267         # Common symbols not allowed in MH_DYLIB files
21268        case $cc_basename in
21269          xlc*)
21270          lt_prog_compiler_pic_F77='-qnocommon'
21271          lt_prog_compiler_wl_F77='-Wl,'
21272          ;;
21273        esac
21274        ;;
21275
21276     mingw* | pw32* | os2*)
21277       # This hack is so that the source file can tell whether it is being
21278       # built for inclusion in a dll (and should export symbols for example).
21279       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21280       ;;
21281
21282     hpux9* | hpux10* | hpux11*)
21283       lt_prog_compiler_wl_F77='-Wl,'
21284       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21285       # not for PA HP-UX.
21286       case $host_cpu in
21287       hppa*64*|ia64*)
21288         # +Z the default
21289         ;;
21290       *)
21291         lt_prog_compiler_pic_F77='+Z'
21292         ;;
21293       esac
21294       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21295       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21296       ;;
21297
21298     irix5* | irix6* | nonstopux*)
21299       lt_prog_compiler_wl_F77='-Wl,'
21300       # PIC (with -KPIC) is the default.
21301       lt_prog_compiler_static_F77='-non_shared'
21302       ;;
21303
21304     newsos6)
21305       lt_prog_compiler_pic_F77='-KPIC'
21306       lt_prog_compiler_static_F77='-Bstatic'
21307       ;;
21308
21309     linux*)
21310       case $cc_basename in
21311       icc* | ecc*)
21312         lt_prog_compiler_wl_F77='-Wl,'
21313         lt_prog_compiler_pic_F77='-KPIC'
21314         lt_prog_compiler_static_F77='-static'
21315         ;;
21316       pgcc* | pgf77* | pgf90* | pgf95*)
21317         # Portland Group compilers (*not* the Pentium gcc compiler,
21318         # which looks to be a dead project)
21319         lt_prog_compiler_wl_F77='-Wl,'
21320         lt_prog_compiler_pic_F77='-fpic'
21321         lt_prog_compiler_static_F77='-Bstatic'
21322         ;;
21323       ccc*)
21324         lt_prog_compiler_wl_F77='-Wl,'
21325         # All Alpha code is PIC.
21326         lt_prog_compiler_static_F77='-non_shared'
21327         ;;
21328       esac
21329       ;;
21330
21331     osf3* | osf4* | osf5*)
21332       lt_prog_compiler_wl_F77='-Wl,'
21333       # All OSF/1 code is PIC.
21334       lt_prog_compiler_static_F77='-non_shared'
21335       ;;
21336
21337     solaris*)
21338       lt_prog_compiler_pic_F77='-KPIC'
21339       lt_prog_compiler_static_F77='-Bstatic'
21340       case $cc_basename in
21341       f77* | f90* | f95*)
21342         lt_prog_compiler_wl_F77='-Qoption ld ';;
21343       *)
21344         lt_prog_compiler_wl_F77='-Wl,';;
21345       esac
21346       ;;
21347
21348     sunos4*)
21349       lt_prog_compiler_wl_F77='-Qoption ld '
21350       lt_prog_compiler_pic_F77='-PIC'
21351       lt_prog_compiler_static_F77='-Bstatic'
21352       ;;
21353
21354     sysv4 | sysv4.2uw2* | sysv4.3*)
21355       lt_prog_compiler_wl_F77='-Wl,'
21356       lt_prog_compiler_pic_F77='-KPIC'
21357       lt_prog_compiler_static_F77='-Bstatic'
21358       ;;
21359
21360     sysv4*MP*)
21361       if test -d /usr/nec ;then
21362         lt_prog_compiler_pic_F77='-Kconform_pic'
21363         lt_prog_compiler_static_F77='-Bstatic'
21364       fi
21365       ;;
21366
21367     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21368       lt_prog_compiler_wl_F77='-Wl,'
21369       lt_prog_compiler_pic_F77='-KPIC'
21370       lt_prog_compiler_static_F77='-Bstatic'
21371       ;;
21372
21373     unicos*)
21374       lt_prog_compiler_wl_F77='-Wl,'
21375       lt_prog_compiler_can_build_shared_F77=no
21376       ;;
21377
21378     uts4*)
21379       lt_prog_compiler_pic_F77='-pic'
21380       lt_prog_compiler_static_F77='-Bstatic'
21381       ;;
21382
21383     *)
21384       lt_prog_compiler_can_build_shared_F77=no
21385       ;;
21386     esac
21387   fi
21388
21389 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21390 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21391
21392 #
21393 # Check to make sure the PIC flag actually works.
21394 #
21395 if test -n "$lt_prog_compiler_pic_F77"; then
21396
21397 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21398 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21399 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21400   echo $ECHO_N "(cached) $ECHO_C" >&6
21401 else
21402   lt_prog_compiler_pic_works_F77=no
21403   ac_outfile=conftest.$ac_objext
21404    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21405    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21406    # Insert the option either (1) after the last *FLAGS variable, or
21407    # (2) before a word containing "conftest.", or (3) at the end.
21408    # Note that $ac_compile itself does not contain backslashes and begins
21409    # with a dollar sign (not a hyphen), so the echo should work correctly.
21410    # The option is referenced via a variable to avoid confusing sed.
21411    lt_compile=`echo "$ac_compile" | $SED \
21412    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21413    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21414    -e 's:$: $lt_compiler_flag:'`
21415    (eval echo "\"\$as_me:21415: $lt_compile\"" >&5)
21416    (eval "$lt_compile" 2>conftest.err)
21417    ac_status=$?
21418    cat conftest.err >&5
21419    echo "$as_me:21419: \$? = $ac_status" >&5
21420    if (exit $ac_status) && test -s "$ac_outfile"; then
21421      # The compiler can only warn and ignore the option if not recognized
21422      # So say no if there are warnings other than the usual output.
21423      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21424      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21425      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21426        lt_prog_compiler_pic_works_F77=yes
21427      fi
21428    fi
21429    $rm conftest*
21430
21431 fi
21432 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21433 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21434
21435 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21436     case $lt_prog_compiler_pic_F77 in
21437      "" | " "*) ;;
21438      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21439      esac
21440 else
21441     lt_prog_compiler_pic_F77=
21442      lt_prog_compiler_can_build_shared_F77=no
21443 fi
21444
21445 fi
21446 case $host_os in
21447   # For platforms which do not support PIC, -DPIC is meaningless:
21448   *djgpp*)
21449     lt_prog_compiler_pic_F77=
21450     ;;
21451   *)
21452     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21453     ;;
21454 esac
21455
21456 #
21457 # Check to make sure the static flag actually works.
21458 #
21459 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21460 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21461 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21462 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21463   echo $ECHO_N "(cached) $ECHO_C" >&6
21464 else
21465   lt_prog_compiler_static_works_F77=no
21466    save_LDFLAGS="$LDFLAGS"
21467    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21468    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21469    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21470      # The linker can only warn and ignore the option if not recognized
21471      # So say no if there are warnings
21472      if test -s conftest.err; then
21473        # Append any errors to the config.log.
21474        cat conftest.err 1>&5
21475        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21476        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21477        if diff conftest.exp conftest.er2 >/dev/null; then
21478          lt_prog_compiler_static_works_F77=yes
21479        fi
21480      else
21481        lt_prog_compiler_static_works_F77=yes
21482      fi
21483    fi
21484    $rm conftest*
21485    LDFLAGS="$save_LDFLAGS"
21486
21487 fi
21488 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21489 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21490
21491 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21492     :
21493 else
21494     lt_prog_compiler_static_F77=
21495 fi
21496
21497
21498 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21499 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21500 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21501   echo $ECHO_N "(cached) $ECHO_C" >&6
21502 else
21503   lt_cv_prog_compiler_c_o_F77=no
21504    $rm -r conftest 2>/dev/null
21505    mkdir conftest
21506    cd conftest
21507    mkdir out
21508    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21509
21510    lt_compiler_flag="-o out/conftest2.$ac_objext"
21511    # Insert the option either (1) after the last *FLAGS variable, or
21512    # (2) before a word containing "conftest.", or (3) at the end.
21513    # Note that $ac_compile itself does not contain backslashes and begins
21514    # with a dollar sign (not a hyphen), so the echo should work correctly.
21515    lt_compile=`echo "$ac_compile" | $SED \
21516    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21517    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21518    -e 's:$: $lt_compiler_flag:'`
21519    (eval echo "\"\$as_me:21519: $lt_compile\"" >&5)
21520    (eval "$lt_compile" 2>out/conftest.err)
21521    ac_status=$?
21522    cat out/conftest.err >&5
21523    echo "$as_me:21523: \$? = $ac_status" >&5
21524    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21525    then
21526      # The compiler can only warn and ignore the option if not recognized
21527      # So say no if there are warnings
21528      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21529      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21530      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21531        lt_cv_prog_compiler_c_o_F77=yes
21532      fi
21533    fi
21534    chmod u+w . 2>&5
21535    $rm conftest*
21536    # SGI C++ compiler will create directory out/ii_files/ for
21537    # template instantiation
21538    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21539    $rm out/* && rmdir out
21540    cd ..
21541    rmdir conftest
21542    $rm conftest*
21543
21544 fi
21545 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21546 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21547
21548
21549 hard_links="nottested"
21550 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21551   # do not overwrite the value of need_locks provided by the user
21552   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21553 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21554   hard_links=yes
21555   $rm conftest*
21556   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21557   touch conftest.a
21558   ln conftest.a conftest.b 2>&5 || hard_links=no
21559   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21560   { echo "$as_me:$LINENO: result: $hard_links" >&5
21561 echo "${ECHO_T}$hard_links" >&6; }
21562   if test "$hard_links" = no; then
21563     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21564 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21565     need_locks=warn
21566   fi
21567 else
21568   need_locks=no
21569 fi
21570
21571 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21572 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21573
21574   runpath_var=
21575   allow_undefined_flag_F77=
21576   enable_shared_with_static_runtimes_F77=no
21577   archive_cmds_F77=
21578   archive_expsym_cmds_F77=
21579   old_archive_From_new_cmds_F77=
21580   old_archive_from_expsyms_cmds_F77=
21581   export_dynamic_flag_spec_F77=
21582   whole_archive_flag_spec_F77=
21583   thread_safe_flag_spec_F77=
21584   hardcode_libdir_flag_spec_F77=
21585   hardcode_libdir_flag_spec_ld_F77=
21586   hardcode_libdir_separator_F77=
21587   hardcode_direct_F77=no
21588   hardcode_minus_L_F77=no
21589   hardcode_shlibpath_var_F77=unsupported
21590   link_all_deplibs_F77=unknown
21591   hardcode_automatic_F77=no
21592   module_cmds_F77=
21593   module_expsym_cmds_F77=
21594   always_export_symbols_F77=no
21595   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21596   # include_expsyms should be a list of space-separated symbols to be *always*
21597   # included in the symbol list
21598   include_expsyms_F77=
21599   # exclude_expsyms can be an extended regexp of symbols to exclude
21600   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21601   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21602   # as well as any symbol that contains `d'.
21603   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21604   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21605   # platforms (ab)use it in PIC code, but their linkers get confused if
21606   # the symbol is explicitly referenced.  Since portable code cannot
21607   # rely on this symbol name, it's probably fine to never include it in
21608   # preloaded symbol tables.
21609   extract_expsyms_cmds=
21610   # Just being paranoid about ensuring that cc_basename is set.
21611   for cc_temp in $compiler""; do
21612   case $cc_temp in
21613     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21614     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21615     \-*) ;;
21616     *) break;;
21617   esac
21618 done
21619 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21620
21621   case $host_os in
21622   cygwin* | mingw* | pw32*)
21623     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21624     # When not using gcc, we currently assume that we are using
21625     # Microsoft Visual C++.
21626     if test "$GCC" != yes; then
21627       with_gnu_ld=no
21628     fi
21629     ;;
21630   interix*)
21631     # we just hope/assume this is gcc and not c89 (= MSVC++)
21632     with_gnu_ld=yes
21633     ;;
21634   openbsd*)
21635     with_gnu_ld=no
21636     ;;
21637   esac
21638
21639   ld_shlibs_F77=yes
21640   if test "$with_gnu_ld" = yes; then
21641     # If archive_cmds runs LD, not CC, wlarc should be empty
21642     wlarc='${wl}'
21643
21644     # Set some defaults for GNU ld with shared library support. These
21645     # are reset later if shared libraries are not supported. Putting them
21646     # here allows them to be overridden if necessary.
21647     runpath_var=LD_RUN_PATH
21648     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21649     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21650     # ancient GNU ld didn't support --whole-archive et. al.
21651     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21652         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21653       else
21654         whole_archive_flag_spec_F77=
21655     fi
21656     supports_anon_versioning=no
21657     case `$LD -v 2>/dev/null` in
21658       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21659       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21660       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21661       *\ 2.11.*) ;; # other 2.11 versions
21662       *) supports_anon_versioning=yes ;;
21663     esac
21664
21665     # See if GNU ld supports shared libraries.
21666     case $host_os in
21667     aix3* | aix4* | aix5*)
21668       # On AIX/PPC, the GNU linker is very broken
21669       if test "$host_cpu" != ia64; then
21670         ld_shlibs_F77=no
21671         cat <<EOF 1>&2
21672
21673 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21674 *** to be unable to reliably create shared libraries on AIX.
21675 *** Therefore, libtool is disabling shared libraries support.  If you
21676 *** really care for shared libraries, you may want to modify your PATH
21677 *** so that a non-GNU linker is found, and then restart.
21678
21679 EOF
21680       fi
21681       ;;
21682
21683     amigaos*)
21684       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)'
21685       hardcode_libdir_flag_spec_F77='-L$libdir'
21686       hardcode_minus_L_F77=yes
21687
21688       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21689       # that the semantics of dynamic libraries on AmigaOS, at least up
21690       # to version 4, is to share data among multiple programs linked
21691       # with the same dynamic library.  Since this doesn't match the
21692       # behavior of shared libraries on other platforms, we can't use
21693       # them.
21694       ld_shlibs_F77=no
21695       ;;
21696
21697     beos*)
21698       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21699         allow_undefined_flag_F77=unsupported
21700         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21701         # support --undefined.  This deserves some investigation.  FIXME
21702         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21703       else
21704         ld_shlibs_F77=no
21705       fi
21706       ;;
21707
21708     cygwin* | mingw* | pw32*)
21709       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21710       # as there is no search path for DLLs.
21711       hardcode_libdir_flag_spec_F77='-L$libdir'
21712       allow_undefined_flag_F77=unsupported
21713       always_export_symbols_F77=no
21714       enable_shared_with_static_runtimes_F77=yes
21715       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21716
21717       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21718         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21719         # If the export-symbols file already is a .def file (1st line
21720         # is EXPORTS), use it as is; otherwise, prepend...
21721         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21722           cp $export_symbols $output_objdir/$soname.def;
21723         else
21724           echo EXPORTS > $output_objdir/$soname.def;
21725           cat $export_symbols >> $output_objdir/$soname.def;
21726         fi~
21727         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21728       else
21729         ld_shlibs_F77=no
21730       fi
21731       ;;
21732
21733     interix3*)
21734       hardcode_direct_F77=no
21735       hardcode_shlibpath_var_F77=no
21736       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21737       export_dynamic_flag_spec_F77='${wl}-E'
21738       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21739       # Instead, shared libraries are loaded at an image base (0x10000000 by
21740       # default) and relocated if they conflict, which is a slow very memory
21741       # consuming and fragmenting process.  To avoid this, we pick a random,
21742       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21743       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21744       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'
21745       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'
21746       ;;
21747
21748     linux*)
21749       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21750         tmp_addflag=
21751         case $cc_basename,$host_cpu in
21752         pgcc*)                          # Portland Group C compiler
21753           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'
21754           tmp_addflag=' $pic_flag'
21755           ;;
21756         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21757           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'
21758           tmp_addflag=' $pic_flag -Mnomain' ;;
21759         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21760           tmp_addflag=' -i_dynamic' ;;
21761         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21762           tmp_addflag=' -i_dynamic -nofor_main' ;;
21763         ifc* | ifort*)                  # Intel Fortran compiler
21764           tmp_addflag=' -nofor_main' ;;
21765         esac
21766         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21767
21768         if test $supports_anon_versioning = yes; then
21769           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21770   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21771   $echo "local: *; };" >> $output_objdir/$libname.ver~
21772           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21773         fi
21774       else
21775         ld_shlibs_F77=no
21776       fi
21777       ;;
21778
21779     netbsd*)
21780       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21781         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21782         wlarc=
21783       else
21784         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21785         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21786       fi
21787       ;;
21788
21789     solaris*)
21790       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21791         ld_shlibs_F77=no
21792         cat <<EOF 1>&2
21793
21794 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21795 *** create shared libraries on Solaris systems.  Therefore, libtool
21796 *** is disabling shared libraries support.  We urge you to upgrade GNU
21797 *** binutils to release 2.9.1 or newer.  Another option is to modify
21798 *** your PATH or compiler configuration so that the native linker is
21799 *** used, and then restart.
21800
21801 EOF
21802       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21803         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21804         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21805       else
21806         ld_shlibs_F77=no
21807       fi
21808       ;;
21809
21810     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21811       case `$LD -v 2>&1` in
21812         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21813         ld_shlibs_F77=no
21814         cat <<_LT_EOF 1>&2
21815
21816 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21817 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21818 *** is disabling shared libraries support.  We urge you to upgrade GNU
21819 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21820 *** your PATH or compiler configuration so that the native linker is
21821 *** used, and then restart.
21822
21823 _LT_EOF
21824         ;;
21825         *)
21826           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21827             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21828             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21829             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21830           else
21831             ld_shlibs_F77=no
21832           fi
21833         ;;
21834       esac
21835       ;;
21836
21837     sunos4*)
21838       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21839       wlarc=
21840       hardcode_direct_F77=yes
21841       hardcode_shlibpath_var_F77=no
21842       ;;
21843
21844     *)
21845       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21846         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21847         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21848       else
21849         ld_shlibs_F77=no
21850       fi
21851       ;;
21852     esac
21853
21854     if test "$ld_shlibs_F77" = no; then
21855       runpath_var=
21856       hardcode_libdir_flag_spec_F77=
21857       export_dynamic_flag_spec_F77=
21858       whole_archive_flag_spec_F77=
21859     fi
21860   else
21861     # PORTME fill in a description of your system's linker (not GNU ld)
21862     case $host_os in
21863     aix3*)
21864       allow_undefined_flag_F77=unsupported
21865       always_export_symbols_F77=yes
21866       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'
21867       # Note: this linker hardcodes the directories in LIBPATH if there
21868       # are no directories specified by -L.
21869       hardcode_minus_L_F77=yes
21870       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21871         # Neither direct hardcoding nor static linking is supported with a
21872         # broken collect2.
21873         hardcode_direct_F77=unsupported
21874       fi
21875       ;;
21876
21877     aix4* | aix5*)
21878       if test "$host_cpu" = ia64; then
21879         # On IA64, the linker does run time linking by default, so we don't
21880         # have to do anything special.
21881         aix_use_runtimelinking=no
21882         exp_sym_flag='-Bexport'
21883         no_entry_flag=""
21884       else
21885         # If we're using GNU nm, then we don't want the "-C" option.
21886         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21887         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21888           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'
21889         else
21890           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'
21891         fi
21892         aix_use_runtimelinking=no
21893
21894         # Test if we are trying to use run time linking or normal
21895         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21896         # need to do runtime linking.
21897         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21898           for ld_flag in $LDFLAGS; do
21899           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21900             aix_use_runtimelinking=yes
21901             break
21902           fi
21903           done
21904           ;;
21905         esac
21906
21907         exp_sym_flag='-bexport'
21908         no_entry_flag='-bnoentry'
21909       fi
21910
21911       # When large executables or shared objects are built, AIX ld can
21912       # have problems creating the table of contents.  If linking a library
21913       # or program results in "error TOC overflow" add -mminimal-toc to
21914       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21915       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21916
21917       archive_cmds_F77=''
21918       hardcode_direct_F77=yes
21919       hardcode_libdir_separator_F77=':'
21920       link_all_deplibs_F77=yes
21921
21922       if test "$GCC" = yes; then
21923         case $host_os in aix4.[012]|aix4.[012].*)
21924         # We only want to do this on AIX 4.2 and lower, the check
21925         # below for broken collect2 doesn't work under 4.3+
21926           collect2name=`${CC} -print-prog-name=collect2`
21927           if test -f "$collect2name" && \
21928            strings "$collect2name" | grep resolve_lib_name >/dev/null
21929           then
21930           # We have reworked collect2
21931           hardcode_direct_F77=yes
21932           else
21933           # We have old collect2
21934           hardcode_direct_F77=unsupported
21935           # It fails to find uninstalled libraries when the uninstalled
21936           # path is not listed in the libpath.  Setting hardcode_minus_L
21937           # to unsupported forces relinking
21938           hardcode_minus_L_F77=yes
21939           hardcode_libdir_flag_spec_F77='-L$libdir'
21940           hardcode_libdir_separator_F77=
21941           fi
21942           ;;
21943         esac
21944         shared_flag='-shared'
21945         if test "$aix_use_runtimelinking" = yes; then
21946           shared_flag="$shared_flag "'${wl}-G'
21947         fi
21948       else
21949         # not using gcc
21950         if test "$host_cpu" = ia64; then
21951         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21952         # chokes on -Wl,-G. The following line is correct:
21953           shared_flag='-G'
21954         else
21955           if test "$aix_use_runtimelinking" = yes; then
21956             shared_flag='${wl}-G'
21957           else
21958             shared_flag='${wl}-bM:SRE'
21959           fi
21960         fi
21961       fi
21962
21963       # It seems that -bexpall does not export symbols beginning with
21964       # underscore (_), so it is better to generate a list of symbols to export.
21965       always_export_symbols_F77=yes
21966       if test "$aix_use_runtimelinking" = yes; then
21967         # Warning - without using the other runtime loading flags (-brtl),
21968         # -berok will link without error, but may produce a broken library.
21969         allow_undefined_flag_F77='-berok'
21970        # Determine the default libpath from the value encoded in an empty executable.
21971        cat >conftest.$ac_ext <<_ACEOF
21972       program main
21973
21974       end
21975 _ACEOF
21976 rm -f conftest.$ac_objext conftest$ac_exeext
21977 if { (ac_try="$ac_link"
21978 case "(($ac_try" in
21979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980   *) ac_try_echo=$ac_try;;
21981 esac
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983   (eval "$ac_link") 2>conftest.er1
21984   ac_status=$?
21985   grep -v '^ *+' conftest.er1 >conftest.err
21986   rm -f conftest.er1
21987   cat conftest.err >&5
21988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989   (exit $ac_status); } &&
21990          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21991   { (case "(($ac_try" in
21992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993   *) ac_try_echo=$ac_try;;
21994 esac
21995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996   (eval "$ac_try") 2>&5
21997   ac_status=$?
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); }; } &&
22000          { ac_try='test -s conftest$ac_exeext'
22001   { (case "(($ac_try" in
22002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003   *) ac_try_echo=$ac_try;;
22004 esac
22005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006   (eval "$ac_try") 2>&5
22007   ac_status=$?
22008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009   (exit $ac_status); }; }; then
22010
22011 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22012 }'`
22013 # Check for a 64-bit object if we didn't find anything.
22014 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; }
22015 }'`; fi
22016 else
22017   echo "$as_me: failed program was:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22019
22020
22021 fi
22022
22023 rm -f core conftest.err conftest.$ac_objext \
22024       conftest$ac_exeext conftest.$ac_ext
22025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22026
22027        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22028         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"
22029        else
22030         if test "$host_cpu" = ia64; then
22031           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22032           allow_undefined_flag_F77="-z nodefs"
22033           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"
22034         else
22035          # Determine the default libpath from the value encoded in an empty executable.
22036          cat >conftest.$ac_ext <<_ACEOF
22037       program main
22038
22039       end
22040 _ACEOF
22041 rm -f conftest.$ac_objext conftest$ac_exeext
22042 if { (ac_try="$ac_link"
22043 case "(($ac_try" in
22044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045   *) ac_try_echo=$ac_try;;
22046 esac
22047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22048   (eval "$ac_link") 2>conftest.er1
22049   ac_status=$?
22050   grep -v '^ *+' conftest.er1 >conftest.err
22051   rm -f conftest.er1
22052   cat conftest.err >&5
22053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054   (exit $ac_status); } &&
22055          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22056   { (case "(($ac_try" in
22057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058   *) ac_try_echo=$ac_try;;
22059 esac
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061   (eval "$ac_try") 2>&5
22062   ac_status=$?
22063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064   (exit $ac_status); }; } &&
22065          { ac_try='test -s conftest$ac_exeext'
22066   { (case "(($ac_try" in
22067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068   *) ac_try_echo=$ac_try;;
22069 esac
22070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22071   (eval "$ac_try") 2>&5
22072   ac_status=$?
22073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074   (exit $ac_status); }; }; then
22075
22076 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22077 }'`
22078 # Check for a 64-bit object if we didn't find anything.
22079 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; }
22080 }'`; fi
22081 else
22082   echo "$as_me: failed program was:" >&5
22083 sed 's/^/| /' conftest.$ac_ext >&5
22084
22085
22086 fi
22087
22088 rm -f core conftest.err conftest.$ac_objext \
22089       conftest$ac_exeext conftest.$ac_ext
22090 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22091
22092          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22093           # Warning - without using the other run time loading flags,
22094           # -berok will link without error, but may produce a broken library.
22095           no_undefined_flag_F77=' ${wl}-bernotok'
22096           allow_undefined_flag_F77=' ${wl}-berok'
22097           # Exported symbols can be pulled into shared objects from archives
22098           whole_archive_flag_spec_F77='$convenience'
22099           archive_cmds_need_lc_F77=yes
22100           # This is similar to how AIX traditionally builds its shared libraries.
22101           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'
22102         fi
22103       fi
22104       ;;
22105
22106     amigaos*)
22107       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)'
22108       hardcode_libdir_flag_spec_F77='-L$libdir'
22109       hardcode_minus_L_F77=yes
22110       # see comment about different semantics on the GNU ld section
22111       ld_shlibs_F77=no
22112       ;;
22113
22114     bsdi[45]*)
22115       export_dynamic_flag_spec_F77=-rdynamic
22116       ;;
22117
22118     cygwin* | mingw* | pw32*)
22119       # When not using gcc, we currently assume that we are using
22120       # Microsoft Visual C++.
22121       # hardcode_libdir_flag_spec is actually meaningless, as there is
22122       # no search path for DLLs.
22123       hardcode_libdir_flag_spec_F77=' '
22124       allow_undefined_flag_F77=unsupported
22125       # Tell ltmain to make .lib files, not .a files.
22126       libext=lib
22127       # Tell ltmain to make .dll files, not .so files.
22128       shrext_cmds=".dll"
22129       # FIXME: Setting linknames here is a bad hack.
22130       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22131       # The linker will automatically build a .lib file if we build a DLL.
22132       old_archive_From_new_cmds_F77='true'
22133       # FIXME: Should let the user specify the lib program.
22134       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22135       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22136       enable_shared_with_static_runtimes_F77=yes
22137       ;;
22138
22139     darwin* | rhapsody*)
22140       case $host_os in
22141         rhapsody* | darwin1.[012])
22142          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22143          ;;
22144        *) # Darwin 1.3 on
22145          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22146            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22147          else
22148            case ${MACOSX_DEPLOYMENT_TARGET} in
22149              10.[012])
22150                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22151                ;;
22152              10.*)
22153                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22154                ;;
22155            esac
22156          fi
22157          ;;
22158       esac
22159       archive_cmds_need_lc_F77=no
22160       hardcode_direct_F77=no
22161       hardcode_automatic_F77=yes
22162       hardcode_shlibpath_var_F77=unsupported
22163       whole_archive_flag_spec_F77=''
22164       link_all_deplibs_F77=yes
22165     if test "$GCC" = yes ; then
22166         output_verbose_link_cmd='echo'
22167         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22168       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22169       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22170       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}'
22171       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}'
22172     else
22173       case $cc_basename in
22174         xlc*)
22175          output_verbose_link_cmd='echo'
22176          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22177          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22178           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22179          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}'
22180           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}'
22181           ;;
22182        *)
22183          ld_shlibs_F77=no
22184           ;;
22185       esac
22186     fi
22187       ;;
22188
22189     dgux*)
22190       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22191       hardcode_libdir_flag_spec_F77='-L$libdir'
22192       hardcode_shlibpath_var_F77=no
22193       ;;
22194
22195     freebsd1*)
22196       ld_shlibs_F77=no
22197       ;;
22198
22199     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22200     # support.  Future versions do this automatically, but an explicit c++rt0.o
22201     # does not break anything, and helps significantly (at the cost of a little
22202     # extra space).
22203     freebsd2.2*)
22204       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22205       hardcode_libdir_flag_spec_F77='-R$libdir'
22206       hardcode_direct_F77=yes
22207       hardcode_shlibpath_var_F77=no
22208       ;;
22209
22210     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22211     freebsd2*)
22212       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22213       hardcode_direct_F77=yes
22214       hardcode_minus_L_F77=yes
22215       hardcode_shlibpath_var_F77=no
22216       ;;
22217
22218     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22219     freebsd* | kfreebsd*-gnu | dragonfly*)
22220       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22221       hardcode_libdir_flag_spec_F77='-R$libdir'
22222       hardcode_direct_F77=yes
22223       hardcode_shlibpath_var_F77=no
22224       ;;
22225
22226     hpux9*)
22227       if test "$GCC" = yes; then
22228         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'
22229       else
22230         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'
22231       fi
22232       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22233       hardcode_libdir_separator_F77=:
22234       hardcode_direct_F77=yes
22235
22236       # hardcode_minus_L: Not really in the search PATH,
22237       # but as the default location of the library.
22238       hardcode_minus_L_F77=yes
22239       export_dynamic_flag_spec_F77='${wl}-E'
22240       ;;
22241
22242     hpux10*)
22243       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22244         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22245       else
22246         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22247       fi
22248       if test "$with_gnu_ld" = no; then
22249         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22250         hardcode_libdir_separator_F77=:
22251
22252         hardcode_direct_F77=yes
22253         export_dynamic_flag_spec_F77='${wl}-E'
22254
22255         # hardcode_minus_L: Not really in the search PATH,
22256         # but as the default location of the library.
22257         hardcode_minus_L_F77=yes
22258       fi
22259       ;;
22260
22261     hpux11*)
22262       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22263         case $host_cpu in
22264         hppa*64*)
22265           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22266           ;;
22267         ia64*)
22268           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22269           ;;
22270         *)
22271           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22272           ;;
22273         esac
22274       else
22275         case $host_cpu in
22276         hppa*64*)
22277           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22278           ;;
22279         ia64*)
22280           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22281           ;;
22282         *)
22283           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22284           ;;
22285         esac
22286       fi
22287       if test "$with_gnu_ld" = no; then
22288         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22289         hardcode_libdir_separator_F77=:
22290
22291         case $host_cpu in
22292         hppa*64*|ia64*)
22293           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22294           hardcode_direct_F77=no
22295           hardcode_shlibpath_var_F77=no
22296           ;;
22297         *)
22298           hardcode_direct_F77=yes
22299           export_dynamic_flag_spec_F77='${wl}-E'
22300
22301           # hardcode_minus_L: Not really in the search PATH,
22302           # but as the default location of the library.
22303           hardcode_minus_L_F77=yes
22304           ;;
22305         esac
22306       fi
22307       ;;
22308
22309     irix5* | irix6* | nonstopux*)
22310       if test "$GCC" = yes; then
22311         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'
22312       else
22313         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'
22314         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22315       fi
22316       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22317       hardcode_libdir_separator_F77=:
22318       link_all_deplibs_F77=yes
22319       ;;
22320
22321     netbsd*)
22322       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22323         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22324       else
22325         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22326       fi
22327       hardcode_libdir_flag_spec_F77='-R$libdir'
22328       hardcode_direct_F77=yes
22329       hardcode_shlibpath_var_F77=no
22330       ;;
22331
22332     newsos6)
22333       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22334       hardcode_direct_F77=yes
22335       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22336       hardcode_libdir_separator_F77=:
22337       hardcode_shlibpath_var_F77=no
22338       ;;
22339
22340     openbsd*)
22341       hardcode_direct_F77=yes
22342       hardcode_shlibpath_var_F77=no
22343       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22344         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22345         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22346         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22347         export_dynamic_flag_spec_F77='${wl}-E'
22348       else
22349        case $host_os in
22350          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22351            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22352            hardcode_libdir_flag_spec_F77='-R$libdir'
22353            ;;
22354          *)
22355            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22356            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22357            ;;
22358        esac
22359       fi
22360       ;;
22361
22362     os2*)
22363       hardcode_libdir_flag_spec_F77='-L$libdir'
22364       hardcode_minus_L_F77=yes
22365       allow_undefined_flag_F77=unsupported
22366       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'
22367       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22368       ;;
22369
22370     osf3*)
22371       if test "$GCC" = yes; then
22372         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22373         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'
22374       else
22375         allow_undefined_flag_F77=' -expect_unresolved \*'
22376         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'
22377       fi
22378       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22379       hardcode_libdir_separator_F77=:
22380       ;;
22381
22382     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22383       if test "$GCC" = yes; then
22384         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22385         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'
22386         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22387       else
22388         allow_undefined_flag_F77=' -expect_unresolved \*'
22389         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'
22390         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~
22391         $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'
22392
22393         # Both c and cxx compiler support -rpath directly
22394         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22395       fi
22396       hardcode_libdir_separator_F77=:
22397       ;;
22398
22399     solaris*)
22400       no_undefined_flag_F77=' -z text'
22401       if test "$GCC" = yes; then
22402         wlarc='${wl}'
22403         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22404         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22405           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22406       else
22407         wlarc=''
22408         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22409         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22410         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22411       fi
22412       hardcode_libdir_flag_spec_F77='-R$libdir'
22413       hardcode_shlibpath_var_F77=no
22414       case $host_os in
22415       solaris2.[0-5] | solaris2.[0-5].*) ;;
22416       *)
22417         # The compiler driver will combine linker options so we
22418         # cannot just pass the convience library names through
22419         # without $wl, iff we do not link with $LD.
22420         # Luckily, gcc supports the same syntax we need for Sun Studio.
22421         # Supported since Solaris 2.6 (maybe 2.5.1?)
22422         case $wlarc in
22423         '')
22424           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22425         *)
22426           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' ;;
22427         esac ;;
22428       esac
22429       link_all_deplibs_F77=yes
22430       ;;
22431
22432     sunos4*)
22433       if test "x$host_vendor" = xsequent; then
22434         # Use $CC to link under sequent, because it throws in some extra .o
22435         # files that make .init and .fini sections work.
22436         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22437       else
22438         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22439       fi
22440       hardcode_libdir_flag_spec_F77='-L$libdir'
22441       hardcode_direct_F77=yes
22442       hardcode_minus_L_F77=yes
22443       hardcode_shlibpath_var_F77=no
22444       ;;
22445
22446     sysv4)
22447       case $host_vendor in
22448         sni)
22449           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22450           hardcode_direct_F77=yes # is this really true???
22451         ;;
22452         siemens)
22453           ## LD is ld it makes a PLAMLIB
22454           ## CC just makes a GrossModule.
22455           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22456           reload_cmds_F77='$CC -r -o $output$reload_objs'
22457           hardcode_direct_F77=no
22458         ;;
22459         motorola)
22460           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22461           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22462         ;;
22463       esac
22464       runpath_var='LD_RUN_PATH'
22465       hardcode_shlibpath_var_F77=no
22466       ;;
22467
22468     sysv4.3*)
22469       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22470       hardcode_shlibpath_var_F77=no
22471       export_dynamic_flag_spec_F77='-Bexport'
22472       ;;
22473
22474     sysv4*MP*)
22475       if test -d /usr/nec; then
22476         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22477         hardcode_shlibpath_var_F77=no
22478         runpath_var=LD_RUN_PATH
22479         hardcode_runpath_var=yes
22480         ld_shlibs_F77=yes
22481       fi
22482       ;;
22483
22484     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22485       no_undefined_flag_F77='${wl}-z,text'
22486       archive_cmds_need_lc_F77=no
22487       hardcode_shlibpath_var_F77=no
22488       runpath_var='LD_RUN_PATH'
22489
22490       if test "$GCC" = yes; then
22491         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22492         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22493       else
22494         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22495         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22496       fi
22497       ;;
22498
22499     sysv5* | sco3.2v5* | sco5v6*)
22500       # Note: We can NOT use -z defs as we might desire, because we do not
22501       # link with -lc, and that would cause any symbols used from libc to
22502       # always be unresolved, which means just about no library would
22503       # ever link correctly.  If we're not using GNU ld we use -z text
22504       # though, which does catch some bad symbols but isn't as heavy-handed
22505       # as -z defs.
22506       no_undefined_flag_F77='${wl}-z,text'
22507       allow_undefined_flag_F77='${wl}-z,nodefs'
22508       archive_cmds_need_lc_F77=no
22509       hardcode_shlibpath_var_F77=no
22510       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22511       hardcode_libdir_separator_F77=':'
22512       link_all_deplibs_F77=yes
22513       export_dynamic_flag_spec_F77='${wl}-Bexport'
22514       runpath_var='LD_RUN_PATH'
22515
22516       if test "$GCC" = yes; then
22517         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22518         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22519       else
22520         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22521         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22522       fi
22523       ;;
22524
22525     uts4*)
22526       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22527       hardcode_libdir_flag_spec_F77='-L$libdir'
22528       hardcode_shlibpath_var_F77=no
22529       ;;
22530
22531     *)
22532       ld_shlibs_F77=no
22533       ;;
22534     esac
22535   fi
22536
22537 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22538 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22539 test "$ld_shlibs_F77" = no && can_build_shared=no
22540
22541 #
22542 # Do we need to explicitly link libc?
22543 #
22544 case "x$archive_cmds_need_lc_F77" in
22545 x|xyes)
22546   # Assume -lc should be added
22547   archive_cmds_need_lc_F77=yes
22548
22549   if test "$enable_shared" = yes && test "$GCC" = yes; then
22550     case $archive_cmds_F77 in
22551     *'~'*)
22552       # FIXME: we may have to deal with multi-command sequences.
22553       ;;
22554     '$CC '*)
22555       # Test whether the compiler implicitly links with -lc since on some
22556       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22557       # to ld, don't add -lc before -lgcc.
22558       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22559 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22560       $rm conftest*
22561       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22562
22563       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22564   (eval $ac_compile) 2>&5
22565   ac_status=$?
22566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567   (exit $ac_status); } 2>conftest.err; then
22568         soname=conftest
22569         lib=conftest
22570         libobjs=conftest.$ac_objext
22571         deplibs=
22572         wl=$lt_prog_compiler_wl_F77
22573         pic_flag=$lt_prog_compiler_pic_F77
22574         compiler_flags=-v
22575         linker_flags=-v
22576         verstring=
22577         output_objdir=.
22578         libname=conftest
22579         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22580         allow_undefined_flag_F77=
22581         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22582   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22583   ac_status=$?
22584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585   (exit $ac_status); }
22586         then
22587           archive_cmds_need_lc_F77=no
22588         else
22589           archive_cmds_need_lc_F77=yes
22590         fi
22591         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22592       else
22593         cat conftest.err 1>&5
22594       fi
22595       $rm conftest*
22596       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22597 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22598       ;;
22599     esac
22600   fi
22601   ;;
22602 esac
22603
22604 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22605 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22606 library_names_spec=
22607 libname_spec='lib$name'
22608 soname_spec=
22609 shrext_cmds=".so"
22610 postinstall_cmds=
22611 postuninstall_cmds=
22612 finish_cmds=
22613 finish_eval=
22614 shlibpath_var=
22615 shlibpath_overrides_runpath=unknown
22616 version_type=none
22617 dynamic_linker="$host_os ld.so"
22618 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22619 if test "$GCC" = yes; then
22620   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22621   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22622     # if the path contains ";" then we assume it to be the separator
22623     # otherwise default to the standard path separator (i.e. ":") - it is
22624     # assumed that no part of a normal pathname contains ";" but that should
22625     # okay in the real world where ";" in dirpaths is itself problematic.
22626     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22627   else
22628     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22629   fi
22630 else
22631   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22632 fi
22633 need_lib_prefix=unknown
22634 hardcode_into_libs=no
22635
22636 # when you set need_version to no, make sure it does not cause -set_version
22637 # flags to be left without arguments
22638 need_version=unknown
22639
22640 case $host_os in
22641 aix3*)
22642   version_type=linux
22643   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22644   shlibpath_var=LIBPATH
22645
22646   # AIX 3 has no versioning support, so we append a major version to the name.
22647   soname_spec='${libname}${release}${shared_ext}$major'
22648   ;;
22649
22650 aix4* | aix5*)
22651   version_type=linux
22652   need_lib_prefix=no
22653   need_version=no
22654   hardcode_into_libs=yes
22655   if test "$host_cpu" = ia64; then
22656     # AIX 5 supports IA64
22657     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22658     shlibpath_var=LD_LIBRARY_PATH
22659   else
22660     # With GCC up to 2.95.x, collect2 would create an import file
22661     # for dependence libraries.  The import file would start with
22662     # the line `#! .'.  This would cause the generated library to
22663     # depend on `.', always an invalid library.  This was fixed in
22664     # development snapshots of GCC prior to 3.0.
22665     case $host_os in
22666       aix4 | aix4.[01] | aix4.[01].*)
22667       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22668            echo ' yes '
22669            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22670         :
22671       else
22672         can_build_shared=no
22673       fi
22674       ;;
22675     esac
22676     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22677     # soname into executable. Probably we can add versioning support to
22678     # collect2, so additional links can be useful in future.
22679     if test "$aix_use_runtimelinking" = yes; then
22680       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22681       # instead of lib<name>.a to let people know that these are not
22682       # typical AIX shared libraries.
22683       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22684     else
22685       # We preserve .a as extension for shared libraries through AIX4.2
22686       # and later when we are not doing run time linking.
22687       library_names_spec='${libname}${release}.a $libname.a'
22688       soname_spec='${libname}${release}${shared_ext}$major'
22689     fi
22690     shlibpath_var=LIBPATH
22691   fi
22692   ;;
22693
22694 amigaos*)
22695   library_names_spec='$libname.ixlibrary $libname.a'
22696   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22697   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'
22698   ;;
22699
22700 beos*)
22701   library_names_spec='${libname}${shared_ext}'
22702   dynamic_linker="$host_os ld.so"
22703   shlibpath_var=LIBRARY_PATH
22704   ;;
22705
22706 bsdi[45]*)
22707   version_type=linux
22708   need_version=no
22709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22710   soname_spec='${libname}${release}${shared_ext}$major'
22711   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22712   shlibpath_var=LD_LIBRARY_PATH
22713   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22714   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22715   # the default ld.so.conf also contains /usr/contrib/lib and
22716   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22717   # libtool to hard-code these into programs
22718   ;;
22719
22720 cygwin* | mingw* | pw32*)
22721   version_type=windows
22722   shrext_cmds=".dll"
22723   need_version=no
22724   need_lib_prefix=no
22725
22726   case $GCC,$host_os in
22727   yes,cygwin* | yes,mingw* | yes,pw32*)
22728     library_names_spec='$libname.dll.a'
22729     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22730     postinstall_cmds='base_file=`basename \${file}`~
22731       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22732       dldir=$destdir/`dirname \$dlpath`~
22733       test -d \$dldir || mkdir -p \$dldir~
22734       $install_prog $dir/$dlname \$dldir/$dlname~
22735       chmod a+x \$dldir/$dlname'
22736     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22737       dlpath=$dir/\$dldll~
22738        $rm \$dlpath'
22739     shlibpath_overrides_runpath=yes
22740
22741     case $host_os in
22742     cygwin*)
22743       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22744       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22745       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22746       ;;
22747     mingw*)
22748       # MinGW DLLs use traditional 'lib' prefix
22749       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22750       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22751       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22752         # It is most probably a Windows format PATH printed by
22753         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22754         # path with ; separators, and with drive letters. We can handle the
22755         # drive letters (cygwin fileutils understands them), so leave them,
22756         # especially as we might pass files found there to a mingw objdump,
22757         # which wouldn't understand a cygwinified path. Ahh.
22758         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22759       else
22760         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22761       fi
22762       ;;
22763     pw32*)
22764       # pw32 DLLs use 'pw' prefix rather than 'lib'
22765       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22766       ;;
22767     esac
22768     ;;
22769
22770   *)
22771     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22772     ;;
22773   esac
22774   dynamic_linker='Win32 ld.exe'
22775   # FIXME: first we should search . and the directory the executable is in
22776   shlibpath_var=PATH
22777   ;;
22778
22779 darwin* | rhapsody*)
22780   dynamic_linker="$host_os dyld"
22781   version_type=darwin
22782   need_lib_prefix=no
22783   need_version=no
22784   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22785   soname_spec='${libname}${release}${major}$shared_ext'
22786   shlibpath_overrides_runpath=yes
22787   shlibpath_var=DYLD_LIBRARY_PATH
22788   shrext_cmds='.dylib'
22789   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22790   if test "$GCC" = yes; then
22791     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"`
22792   else
22793     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22794   fi
22795   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22796   ;;
22797
22798 dgux*)
22799   version_type=linux
22800   need_lib_prefix=no
22801   need_version=no
22802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22803   soname_spec='${libname}${release}${shared_ext}$major'
22804   shlibpath_var=LD_LIBRARY_PATH
22805   ;;
22806
22807 freebsd1*)
22808   dynamic_linker=no
22809   ;;
22810
22811 kfreebsd*-gnu)
22812   version_type=linux
22813   need_lib_prefix=no
22814   need_version=no
22815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22816   soname_spec='${libname}${release}${shared_ext}$major'
22817   shlibpath_var=LD_LIBRARY_PATH
22818   shlibpath_overrides_runpath=no
22819   hardcode_into_libs=yes
22820   dynamic_linker='GNU ld.so'
22821   ;;
22822
22823 freebsd* | dragonfly*)
22824   # DragonFly does not have aout.  When/if they implement a new
22825   # versioning mechanism, adjust this.
22826   if test -x /usr/bin/objformat; then
22827     objformat=`/usr/bin/objformat`
22828   else
22829     case $host_os in
22830     freebsd[123]*) objformat=aout ;;
22831     *) objformat=elf ;;
22832     esac
22833   fi
22834   version_type=freebsd-$objformat
22835   case $version_type in
22836     freebsd-elf*)
22837       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22838       need_version=no
22839       need_lib_prefix=no
22840       ;;
22841     freebsd-*)
22842       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22843       need_version=yes
22844       ;;
22845   esac
22846   shlibpath_var=LD_LIBRARY_PATH
22847   case $host_os in
22848   freebsd2*)
22849     shlibpath_overrides_runpath=yes
22850     ;;
22851   freebsd3.[01]* | freebsdelf3.[01]*)
22852     shlibpath_overrides_runpath=yes
22853     hardcode_into_libs=yes
22854     ;;
22855   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22856   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22857     shlibpath_overrides_runpath=no
22858     hardcode_into_libs=yes
22859     ;;
22860   freebsd*) # from 4.6 on
22861     shlibpath_overrides_runpath=yes
22862     hardcode_into_libs=yes
22863     ;;
22864   esac
22865   ;;
22866
22867 gnu*)
22868   version_type=linux
22869   need_lib_prefix=no
22870   need_version=no
22871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22872   soname_spec='${libname}${release}${shared_ext}$major'
22873   shlibpath_var=LD_LIBRARY_PATH
22874   hardcode_into_libs=yes
22875   ;;
22876
22877 hpux9* | hpux10* | hpux11*)
22878   # Give a soname corresponding to the major version so that dld.sl refuses to
22879   # link against other versions.
22880   version_type=sunos
22881   need_lib_prefix=no
22882   need_version=no
22883   case $host_cpu in
22884   ia64*)
22885     shrext_cmds='.so'
22886     hardcode_into_libs=yes
22887     dynamic_linker="$host_os dld.so"
22888     shlibpath_var=LD_LIBRARY_PATH
22889     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22890     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22891     soname_spec='${libname}${release}${shared_ext}$major'
22892     if test "X$HPUX_IA64_MODE" = X32; then
22893       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22894     else
22895       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22896     fi
22897     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22898     ;;
22899    hppa*64*)
22900      shrext_cmds='.sl'
22901      hardcode_into_libs=yes
22902      dynamic_linker="$host_os dld.sl"
22903      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22904      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22905      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22906      soname_spec='${libname}${release}${shared_ext}$major'
22907      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22908      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22909      ;;
22910    *)
22911     shrext_cmds='.sl'
22912     dynamic_linker="$host_os dld.sl"
22913     shlibpath_var=SHLIB_PATH
22914     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22915     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22916     soname_spec='${libname}${release}${shared_ext}$major'
22917     ;;
22918   esac
22919   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22920   postinstall_cmds='chmod 555 $lib'
22921   ;;
22922
22923 interix3*)
22924   version_type=linux
22925   need_lib_prefix=no
22926   need_version=no
22927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22928   soname_spec='${libname}${release}${shared_ext}$major'
22929   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22930   shlibpath_var=LD_LIBRARY_PATH
22931   shlibpath_overrides_runpath=no
22932   hardcode_into_libs=yes
22933   ;;
22934
22935 irix5* | irix6* | nonstopux*)
22936   case $host_os in
22937     nonstopux*) version_type=nonstopux ;;
22938     *)
22939         if test "$lt_cv_prog_gnu_ld" = yes; then
22940                 version_type=linux
22941         else
22942                 version_type=irix
22943         fi ;;
22944   esac
22945   need_lib_prefix=no
22946   need_version=no
22947   soname_spec='${libname}${release}${shared_ext}$major'
22948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22949   case $host_os in
22950   irix5* | nonstopux*)
22951     libsuff= shlibsuff=
22952     ;;
22953   *)
22954     case $LD in # libtool.m4 will add one of these switches to LD
22955     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22956       libsuff= shlibsuff= libmagic=32-bit;;
22957     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22958       libsuff=32 shlibsuff=N32 libmagic=N32;;
22959     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22960       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22961     *) libsuff= shlibsuff= libmagic=never-match;;
22962     esac
22963     ;;
22964   esac
22965   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22966   shlibpath_overrides_runpath=no
22967   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22968   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22969   hardcode_into_libs=yes
22970   ;;
22971
22972 # No shared lib support for Linux oldld, aout, or coff.
22973 linux*oldld* | linux*aout* | linux*coff*)
22974   dynamic_linker=no
22975   ;;
22976
22977 # This must be Linux ELF.
22978 linux*)
22979   version_type=linux
22980   need_lib_prefix=no
22981   need_version=no
22982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22983   soname_spec='${libname}${release}${shared_ext}$major'
22984   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22985   shlibpath_var=LD_LIBRARY_PATH
22986   shlibpath_overrides_runpath=no
22987   # This implies no fast_install, which is unacceptable.
22988   # Some rework will be needed to allow for fast_install
22989   # before this can be enabled.
22990   hardcode_into_libs=yes
22991
22992   # Append ld.so.conf contents to the search path
22993   if test -f /etc/ld.so.conf; then
22994     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' ' '`
22995     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22996   fi
22997
22998   # We used to test for /lib/ld.so.1 and disable shared libraries on
22999   # powerpc, because MkLinux only supported shared libraries with the
23000   # GNU dynamic linker.  Since this was broken with cross compilers,
23001   # most powerpc-linux boxes support dynamic linking these days and
23002   # people can always --disable-shared, the test was removed, and we
23003   # assume the GNU/Linux dynamic linker is in use.
23004   dynamic_linker='GNU/Linux ld.so'
23005   ;;
23006
23007 knetbsd*-gnu)
23008   version_type=linux
23009   need_lib_prefix=no
23010   need_version=no
23011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23012   soname_spec='${libname}${release}${shared_ext}$major'
23013   shlibpath_var=LD_LIBRARY_PATH
23014   shlibpath_overrides_runpath=no
23015   hardcode_into_libs=yes
23016   dynamic_linker='GNU ld.so'
23017   ;;
23018
23019 netbsd*)
23020   version_type=sunos
23021   need_lib_prefix=no
23022   need_version=no
23023   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23024     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23025     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23026     dynamic_linker='NetBSD (a.out) ld.so'
23027   else
23028     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23029     soname_spec='${libname}${release}${shared_ext}$major'
23030     dynamic_linker='NetBSD ld.elf_so'
23031   fi
23032   shlibpath_var=LD_LIBRARY_PATH
23033   shlibpath_overrides_runpath=yes
23034   hardcode_into_libs=yes
23035   ;;
23036
23037 newsos6)
23038   version_type=linux
23039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23040   shlibpath_var=LD_LIBRARY_PATH
23041   shlibpath_overrides_runpath=yes
23042   ;;
23043
23044 nto-qnx*)
23045   version_type=linux
23046   need_lib_prefix=no
23047   need_version=no
23048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23049   soname_spec='${libname}${release}${shared_ext}$major'
23050   shlibpath_var=LD_LIBRARY_PATH
23051   shlibpath_overrides_runpath=yes
23052   ;;
23053
23054 openbsd*)
23055   version_type=sunos
23056   sys_lib_dlsearch_path_spec="/usr/lib"
23057   need_lib_prefix=no
23058   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23059   case $host_os in
23060     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23061     *)                         need_version=no  ;;
23062   esac
23063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23064   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23065   shlibpath_var=LD_LIBRARY_PATH
23066   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23067     case $host_os in
23068       openbsd2.[89] | openbsd2.[89].*)
23069         shlibpath_overrides_runpath=no
23070         ;;
23071       *)
23072         shlibpath_overrides_runpath=yes
23073         ;;
23074       esac
23075   else
23076     shlibpath_overrides_runpath=yes
23077   fi
23078   ;;
23079
23080 os2*)
23081   libname_spec='$name'
23082   shrext_cmds=".dll"
23083   need_lib_prefix=no
23084   library_names_spec='$libname${shared_ext} $libname.a'
23085   dynamic_linker='OS/2 ld.exe'
23086   shlibpath_var=LIBPATH
23087   ;;
23088
23089 osf3* | osf4* | osf5*)
23090   version_type=osf
23091   need_lib_prefix=no
23092   need_version=no
23093   soname_spec='${libname}${release}${shared_ext}$major'
23094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23095   shlibpath_var=LD_LIBRARY_PATH
23096   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23097   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23098   ;;
23099
23100 solaris*)
23101   version_type=linux
23102   need_lib_prefix=no
23103   need_version=no
23104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23105   soname_spec='${libname}${release}${shared_ext}$major'
23106   shlibpath_var=LD_LIBRARY_PATH
23107   shlibpath_overrides_runpath=yes
23108   hardcode_into_libs=yes
23109   # ldd complains unless libraries are executable
23110   postinstall_cmds='chmod +x $lib'
23111   ;;
23112
23113 sunos4*)
23114   version_type=sunos
23115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23116   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23117   shlibpath_var=LD_LIBRARY_PATH
23118   shlibpath_overrides_runpath=yes
23119   if test "$with_gnu_ld" = yes; then
23120     need_lib_prefix=no
23121   fi
23122   need_version=yes
23123   ;;
23124
23125 sysv4 | sysv4.3*)
23126   version_type=linux
23127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23128   soname_spec='${libname}${release}${shared_ext}$major'
23129   shlibpath_var=LD_LIBRARY_PATH
23130   case $host_vendor in
23131     sni)
23132       shlibpath_overrides_runpath=no
23133       need_lib_prefix=no
23134       export_dynamic_flag_spec='${wl}-Blargedynsym'
23135       runpath_var=LD_RUN_PATH
23136       ;;
23137     siemens)
23138       need_lib_prefix=no
23139       ;;
23140     motorola)
23141       need_lib_prefix=no
23142       need_version=no
23143       shlibpath_overrides_runpath=no
23144       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23145       ;;
23146   esac
23147   ;;
23148
23149 sysv4*MP*)
23150   if test -d /usr/nec ;then
23151     version_type=linux
23152     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23153     soname_spec='$libname${shared_ext}.$major'
23154     shlibpath_var=LD_LIBRARY_PATH
23155   fi
23156   ;;
23157
23158 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23159   version_type=freebsd-elf
23160   need_lib_prefix=no
23161   need_version=no
23162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23163   soname_spec='${libname}${release}${shared_ext}$major'
23164   shlibpath_var=LD_LIBRARY_PATH
23165   hardcode_into_libs=yes
23166   if test "$with_gnu_ld" = yes; then
23167     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23168     shlibpath_overrides_runpath=no
23169   else
23170     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23171     shlibpath_overrides_runpath=yes
23172     case $host_os in
23173       sco3.2v5*)
23174         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23175         ;;
23176     esac
23177   fi
23178   sys_lib_dlsearch_path_spec='/usr/lib'
23179   ;;
23180
23181 uts4*)
23182   version_type=linux
23183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23184   soname_spec='${libname}${release}${shared_ext}$major'
23185   shlibpath_var=LD_LIBRARY_PATH
23186   ;;
23187
23188 *)
23189   dynamic_linker=no
23190   ;;
23191 esac
23192 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23193 echo "${ECHO_T}$dynamic_linker" >&6; }
23194 test "$dynamic_linker" = no && can_build_shared=no
23195
23196 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23197 if test "$GCC" = yes; then
23198   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23199 fi
23200
23201 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23202 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23203 hardcode_action_F77=
23204 if test -n "$hardcode_libdir_flag_spec_F77" || \
23205    test -n "$runpath_var_F77" || \
23206    test "X$hardcode_automatic_F77" = "Xyes" ; then
23207
23208   # We can hardcode non-existant directories.
23209   if test "$hardcode_direct_F77" != no &&
23210      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23211      # have to relink, otherwise we might link with an installed library
23212      # when we should be linking with a yet-to-be-installed one
23213      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23214      test "$hardcode_minus_L_F77" != no; then
23215     # Linking always hardcodes the temporary library directory.
23216     hardcode_action_F77=relink
23217   else
23218     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23219     hardcode_action_F77=immediate
23220   fi
23221 else
23222   # We cannot hardcode anything, or else we can only hardcode existing
23223   # directories.
23224   hardcode_action_F77=unsupported
23225 fi
23226 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23227 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23228
23229 if test "$hardcode_action_F77" = relink; then
23230   # Fast installation is not supported
23231   enable_fast_install=no
23232 elif test "$shlibpath_overrides_runpath" = yes ||
23233      test "$enable_shared" = no; then
23234   # Fast installation is not necessary
23235   enable_fast_install=needless
23236 fi
23237
23238
23239 # The else clause should only fire when bootstrapping the
23240 # libtool distribution, otherwise you forgot to ship ltmain.sh
23241 # with your package, and you will get complaints that there are
23242 # no rules to generate ltmain.sh.
23243 if test -f "$ltmain"; then
23244   # See if we are running on zsh, and set the options which allow our commands through
23245   # without removal of \ escapes.
23246   if test -n "${ZSH_VERSION+set}" ; then
23247     setopt NO_GLOB_SUBST
23248   fi
23249   # Now quote all the things that may contain metacharacters while being
23250   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23251   # variables and quote the copies for generation of the libtool script.
23252   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23253     SED SHELL STRIP \
23254     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23255     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23256     deplibs_check_method reload_flag reload_cmds need_locks \
23257     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23258     lt_cv_sys_global_symbol_to_c_name_address \
23259     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23260     old_postinstall_cmds old_postuninstall_cmds \
23261     compiler_F77 \
23262     CC_F77 \
23263     LD_F77 \
23264     lt_prog_compiler_wl_F77 \
23265     lt_prog_compiler_pic_F77 \
23266     lt_prog_compiler_static_F77 \
23267     lt_prog_compiler_no_builtin_flag_F77 \
23268     export_dynamic_flag_spec_F77 \
23269     thread_safe_flag_spec_F77 \
23270     whole_archive_flag_spec_F77 \
23271     enable_shared_with_static_runtimes_F77 \
23272     old_archive_cmds_F77 \
23273     old_archive_from_new_cmds_F77 \
23274     predep_objects_F77 \
23275     postdep_objects_F77 \
23276     predeps_F77 \
23277     postdeps_F77 \
23278     compiler_lib_search_path_F77 \
23279     archive_cmds_F77 \
23280     archive_expsym_cmds_F77 \
23281     postinstall_cmds_F77 \
23282     postuninstall_cmds_F77 \
23283     old_archive_from_expsyms_cmds_F77 \
23284     allow_undefined_flag_F77 \
23285     no_undefined_flag_F77 \
23286     export_symbols_cmds_F77 \
23287     hardcode_libdir_flag_spec_F77 \
23288     hardcode_libdir_flag_spec_ld_F77 \
23289     hardcode_libdir_separator_F77 \
23290     hardcode_automatic_F77 \
23291     module_cmds_F77 \
23292     module_expsym_cmds_F77 \
23293     lt_cv_prog_compiler_c_o_F77 \
23294     exclude_expsyms_F77 \
23295     include_expsyms_F77; do
23296
23297     case $var in
23298     old_archive_cmds_F77 | \
23299     old_archive_from_new_cmds_F77 | \
23300     archive_cmds_F77 | \
23301     archive_expsym_cmds_F77 | \
23302     module_cmds_F77 | \
23303     module_expsym_cmds_F77 | \
23304     old_archive_from_expsyms_cmds_F77 | \
23305     export_symbols_cmds_F77 | \
23306     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23307     postinstall_cmds | postuninstall_cmds | \
23308     old_postinstall_cmds | old_postuninstall_cmds | \
23309     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23310       # Double-quote double-evaled strings.
23311       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23312       ;;
23313     *)
23314       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23315       ;;
23316     esac
23317   done
23318
23319   case $lt_echo in
23320   *'\$0 --fallback-echo"')
23321     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23322     ;;
23323   esac
23324
23325 cfgfile="$ofile"
23326
23327   cat <<__EOF__ >> "$cfgfile"
23328 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23329
23330 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23331
23332 # Shell to use when invoking shell scripts.
23333 SHELL=$lt_SHELL
23334
23335 # Whether or not to build shared libraries.
23336 build_libtool_libs=$enable_shared
23337
23338 # Whether or not to build static libraries.
23339 build_old_libs=$enable_static
23340
23341 # Whether or not to add -lc for building shared libraries.
23342 build_libtool_need_lc=$archive_cmds_need_lc_F77
23343
23344 # Whether or not to disallow shared libs when runtime libs are static
23345 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23346
23347 # Whether or not to optimize for fast installation.
23348 fast_install=$enable_fast_install
23349
23350 # The host system.
23351 host_alias=$host_alias
23352 host=$host
23353 host_os=$host_os
23354
23355 # The build system.
23356 build_alias=$build_alias
23357 build=$build
23358 build_os=$build_os
23359
23360 # An echo program that does not interpret backslashes.
23361 echo=$lt_echo
23362
23363 # The archiver.
23364 AR=$lt_AR
23365 AR_FLAGS=$lt_AR_FLAGS
23366
23367 # A C compiler.
23368 LTCC=$lt_LTCC
23369
23370 # LTCC compiler flags.
23371 LTCFLAGS=$lt_LTCFLAGS
23372
23373 # A language-specific compiler.
23374 CC=$lt_compiler_F77
23375
23376 # Is the compiler the GNU C compiler?
23377 with_gcc=$GCC_F77
23378
23379 # An ERE matcher.
23380 EGREP=$lt_EGREP
23381
23382 # The linker used to build libraries.
23383 LD=$lt_LD_F77
23384
23385 # Whether we need hard or soft links.
23386 LN_S=$lt_LN_S
23387
23388 # A BSD-compatible nm program.
23389 NM=$lt_NM
23390
23391 # A symbol stripping program
23392 STRIP=$lt_STRIP
23393
23394 # Used to examine libraries when file_magic_cmd begins "file"
23395 MAGIC_CMD=$MAGIC_CMD
23396
23397 # Used on cygwin: DLL creation program.
23398 DLLTOOL="$DLLTOOL"
23399
23400 # Used on cygwin: object dumper.
23401 OBJDUMP="$OBJDUMP"
23402
23403 # Used on cygwin: assembler.
23404 AS="$AS"
23405
23406 # The name of the directory that contains temporary libtool files.
23407 objdir=$objdir
23408
23409 # How to create reloadable object files.
23410 reload_flag=$lt_reload_flag
23411 reload_cmds=$lt_reload_cmds
23412
23413 # How to pass a linker flag through the compiler.
23414 wl=$lt_lt_prog_compiler_wl_F77
23415
23416 # Object file suffix (normally "o").
23417 objext="$ac_objext"
23418
23419 # Old archive suffix (normally "a").
23420 libext="$libext"
23421
23422 # Shared library suffix (normally ".so").
23423 shrext_cmds='$shrext_cmds'
23424
23425 # Executable file suffix (normally "").
23426 exeext="$exeext"
23427
23428 # Additional compiler flags for building library objects.
23429 pic_flag=$lt_lt_prog_compiler_pic_F77
23430 pic_mode=$pic_mode
23431
23432 # What is the maximum length of a command?
23433 max_cmd_len=$lt_cv_sys_max_cmd_len
23434
23435 # Does compiler simultaneously support -c and -o options?
23436 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23437
23438 # Must we lock files when doing compilation?
23439 need_locks=$lt_need_locks
23440
23441 # Do we need the lib prefix for modules?
23442 need_lib_prefix=$need_lib_prefix
23443
23444 # Do we need a version for libraries?
23445 need_version=$need_version
23446
23447 # Whether dlopen is supported.
23448 dlopen_support=$enable_dlopen
23449
23450 # Whether dlopen of programs is supported.
23451 dlopen_self=$enable_dlopen_self
23452
23453 # Whether dlopen of statically linked programs is supported.
23454 dlopen_self_static=$enable_dlopen_self_static
23455
23456 # Compiler flag to prevent dynamic linking.
23457 link_static_flag=$lt_lt_prog_compiler_static_F77
23458
23459 # Compiler flag to turn off builtin functions.
23460 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23461
23462 # Compiler flag to allow reflexive dlopens.
23463 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23464
23465 # Compiler flag to generate shared objects directly from archives.
23466 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23467
23468 # Compiler flag to generate thread-safe objects.
23469 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23470
23471 # Library versioning type.
23472 version_type=$version_type
23473
23474 # Format of library name prefix.
23475 libname_spec=$lt_libname_spec
23476
23477 # List of archive names.  First name is the real one, the rest are links.
23478 # The last name is the one that the linker finds with -lNAME.
23479 library_names_spec=$lt_library_names_spec
23480
23481 # The coded name of the library, if different from the real name.
23482 soname_spec=$lt_soname_spec
23483
23484 # Commands used to build and install an old-style archive.
23485 RANLIB=$lt_RANLIB
23486 old_archive_cmds=$lt_old_archive_cmds_F77
23487 old_postinstall_cmds=$lt_old_postinstall_cmds
23488 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23489
23490 # Create an old-style archive from a shared archive.
23491 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23492
23493 # Create a temporary old-style archive to link instead of a shared archive.
23494 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23495
23496 # Commands used to build and install a shared archive.
23497 archive_cmds=$lt_archive_cmds_F77
23498 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23499 postinstall_cmds=$lt_postinstall_cmds
23500 postuninstall_cmds=$lt_postuninstall_cmds
23501
23502 # Commands used to build a loadable module (assumed same as above if empty)
23503 module_cmds=$lt_module_cmds_F77
23504 module_expsym_cmds=$lt_module_expsym_cmds_F77
23505
23506 # Commands to strip libraries.
23507 old_striplib=$lt_old_striplib
23508 striplib=$lt_striplib
23509
23510 # Dependencies to place before the objects being linked to create a
23511 # shared library.
23512 predep_objects=$lt_predep_objects_F77
23513
23514 # Dependencies to place after the objects being linked to create a
23515 # shared library.
23516 postdep_objects=$lt_postdep_objects_F77
23517
23518 # Dependencies to place before the objects being linked to create a
23519 # shared library.
23520 predeps=$lt_predeps_F77
23521
23522 # Dependencies to place after the objects being linked to create a
23523 # shared library.
23524 postdeps=$lt_postdeps_F77
23525
23526 # The library search path used internally by the compiler when linking
23527 # a shared library.
23528 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23529
23530 # Method to check whether dependent libraries are shared objects.
23531 deplibs_check_method=$lt_deplibs_check_method
23532
23533 # Command to use when deplibs_check_method == file_magic.
23534 file_magic_cmd=$lt_file_magic_cmd
23535
23536 # Flag that allows shared libraries with undefined symbols to be built.
23537 allow_undefined_flag=$lt_allow_undefined_flag_F77
23538
23539 # Flag that forces no undefined symbols.
23540 no_undefined_flag=$lt_no_undefined_flag_F77
23541
23542 # Commands used to finish a libtool library installation in a directory.
23543 finish_cmds=$lt_finish_cmds
23544
23545 # Same as above, but a single script fragment to be evaled but not shown.
23546 finish_eval=$lt_finish_eval
23547
23548 # Take the output of nm and produce a listing of raw symbols and C names.
23549 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23550
23551 # Transform the output of nm in a proper C declaration
23552 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23553
23554 # Transform the output of nm in a C name address pair
23555 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23556
23557 # This is the shared library runtime path variable.
23558 runpath_var=$runpath_var
23559
23560 # This is the shared library path variable.
23561 shlibpath_var=$shlibpath_var
23562
23563 # Is shlibpath searched before the hard-coded library search path?
23564 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23565
23566 # How to hardcode a shared library path into an executable.
23567 hardcode_action=$hardcode_action_F77
23568
23569 # Whether we should hardcode library paths into libraries.
23570 hardcode_into_libs=$hardcode_into_libs
23571
23572 # Flag to hardcode \$libdir into a binary during linking.
23573 # This must work even if \$libdir does not exist.
23574 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23575
23576 # If ld is used when linking, flag to hardcode \$libdir into
23577 # a binary during linking. This must work even if \$libdir does
23578 # not exist.
23579 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23580
23581 # Whether we need a single -rpath flag with a separated argument.
23582 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23583
23584 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23585 # resulting binary.
23586 hardcode_direct=$hardcode_direct_F77
23587
23588 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23589 # resulting binary.
23590 hardcode_minus_L=$hardcode_minus_L_F77
23591
23592 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23593 # the resulting binary.
23594 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23595
23596 # Set to yes if building a shared library automatically hardcodes DIR into the library
23597 # and all subsequent libraries and executables linked against it.
23598 hardcode_automatic=$hardcode_automatic_F77
23599
23600 # Variables whose values should be saved in libtool wrapper scripts and
23601 # restored at relink time.
23602 variables_saved_for_relink="$variables_saved_for_relink"
23603
23604 # Whether libtool must link a program against all its dependency libraries.
23605 link_all_deplibs=$link_all_deplibs_F77
23606
23607 # Compile-time system search path for libraries
23608 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23609
23610 # Run-time system search path for libraries
23611 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23612
23613 # Fix the shell variable \$srcfile for the compiler.
23614 fix_srcfile_path="$fix_srcfile_path_F77"
23615
23616 # Set to yes if exported symbols are required.
23617 always_export_symbols=$always_export_symbols_F77
23618
23619 # The commands to list exported symbols.
23620 export_symbols_cmds=$lt_export_symbols_cmds_F77
23621
23622 # The commands to extract the exported symbol list from a shared archive.
23623 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23624
23625 # Symbols that should not be listed in the preloaded symbols.
23626 exclude_expsyms=$lt_exclude_expsyms_F77
23627
23628 # Symbols that must always be exported.
23629 include_expsyms=$lt_include_expsyms_F77
23630
23631 # ### END LIBTOOL TAG CONFIG: $tagname
23632
23633 __EOF__
23634
23635
23636 else
23637   # If there is no Makefile yet, we rely on a make rule to execute
23638   # `config.status --recheck' to rerun these tests and create the
23639   # libtool script then.
23640   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23641   if test -f "$ltmain_in"; then
23642     test -f Makefile && make "$ltmain"
23643   fi
23644 fi
23645
23646
23647 ac_ext=c
23648 ac_cpp='$CPP $CPPFLAGS'
23649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23652
23653 CC="$lt_save_CC"
23654
23655         else
23656           tagname=""
23657         fi
23658         ;;
23659
23660       GCJ)
23661         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23662           ac_ext=c
23663 ac_cpp='$CPP $CPPFLAGS'
23664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23667
23668
23669 # Source file extension for Java test sources.
23670 ac_ext=java
23671
23672 # Object file extension for compiled Java test sources.
23673 objext=o
23674 objext_GCJ=$objext
23675
23676 # Code to be used in simple compile tests
23677 lt_simple_compile_test_code="class foo {}\n"
23678
23679 # Code to be used in simple link tests
23680 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23681
23682 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23683
23684 # If no C compiler was specified, use CC.
23685 LTCC=${LTCC-"$CC"}
23686
23687 # If no C compiler flags were specified, use CFLAGS.
23688 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23689
23690 # Allow CC to be a program name with arguments.
23691 compiler=$CC
23692
23693
23694 # save warnings/boilerplate of simple test code
23695 ac_outfile=conftest.$ac_objext
23696 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23697 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23698 _lt_compiler_boilerplate=`cat conftest.err`
23699 $rm conftest*
23700
23701 ac_outfile=conftest.$ac_objext
23702 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23703 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23704 _lt_linker_boilerplate=`cat conftest.err`
23705 $rm conftest*
23706
23707
23708 # Allow CC to be a program name with arguments.
23709 lt_save_CC="$CC"
23710 CC=${GCJ-"gcj"}
23711 compiler=$CC
23712 compiler_GCJ=$CC
23713 for cc_temp in $compiler""; do
23714   case $cc_temp in
23715     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23716     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23717     \-*) ;;
23718     *) break;;
23719   esac
23720 done
23721 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23722
23723
23724 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23725 archive_cmds_need_lc_GCJ=no
23726
23727 old_archive_cmds_GCJ=$old_archive_cmds
23728
23729
23730 lt_prog_compiler_no_builtin_flag_GCJ=
23731
23732 if test "$GCC" = yes; then
23733   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23734
23735
23736 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23737 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23738 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23739   echo $ECHO_N "(cached) $ECHO_C" >&6
23740 else
23741   lt_cv_prog_compiler_rtti_exceptions=no
23742   ac_outfile=conftest.$ac_objext
23743    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23744    lt_compiler_flag="-fno-rtti -fno-exceptions"
23745    # Insert the option either (1) after the last *FLAGS variable, or
23746    # (2) before a word containing "conftest.", or (3) at the end.
23747    # Note that $ac_compile itself does not contain backslashes and begins
23748    # with a dollar sign (not a hyphen), so the echo should work correctly.
23749    # The option is referenced via a variable to avoid confusing sed.
23750    lt_compile=`echo "$ac_compile" | $SED \
23751    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23752    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23753    -e 's:$: $lt_compiler_flag:'`
23754    (eval echo "\"\$as_me:23754: $lt_compile\"" >&5)
23755    (eval "$lt_compile" 2>conftest.err)
23756    ac_status=$?
23757    cat conftest.err >&5
23758    echo "$as_me:23758: \$? = $ac_status" >&5
23759    if (exit $ac_status) && test -s "$ac_outfile"; then
23760      # The compiler can only warn and ignore the option if not recognized
23761      # So say no if there are warnings other than the usual output.
23762      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23763      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23764      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23765        lt_cv_prog_compiler_rtti_exceptions=yes
23766      fi
23767    fi
23768    $rm conftest*
23769
23770 fi
23771 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23772 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23773
23774 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23775     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23776 else
23777     :
23778 fi
23779
23780 fi
23781
23782 lt_prog_compiler_wl_GCJ=
23783 lt_prog_compiler_pic_GCJ=
23784 lt_prog_compiler_static_GCJ=
23785
23786 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23787 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23788
23789   if test "$GCC" = yes; then
23790     lt_prog_compiler_wl_GCJ='-Wl,'
23791     lt_prog_compiler_static_GCJ='-static'
23792
23793     case $host_os in
23794       aix*)
23795       # All AIX code is PIC.
23796       if test "$host_cpu" = ia64; then
23797         # AIX 5 now supports IA64 processor
23798         lt_prog_compiler_static_GCJ='-Bstatic'
23799       fi
23800       ;;
23801
23802     amigaos*)
23803       # FIXME: we need at least 68020 code to build shared libraries, but
23804       # adding the `-m68020' flag to GCC prevents building anything better,
23805       # like `-m68040'.
23806       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23807       ;;
23808
23809     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23810       # PIC is the default for these OSes.
23811       ;;
23812
23813     mingw* | pw32* | os2*)
23814       # This hack is so that the source file can tell whether it is being
23815       # built for inclusion in a dll (and should export symbols for example).
23816       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23817       ;;
23818
23819     darwin* | rhapsody*)
23820       # PIC is the default on this platform
23821       # Common symbols not allowed in MH_DYLIB files
23822       lt_prog_compiler_pic_GCJ='-fno-common'
23823       ;;
23824
23825     interix3*)
23826       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23827       # Instead, we relocate shared libraries at runtime.
23828       ;;
23829
23830     msdosdjgpp*)
23831       # Just because we use GCC doesn't mean we suddenly get shared libraries
23832       # on systems that don't support them.
23833       lt_prog_compiler_can_build_shared_GCJ=no
23834       enable_shared=no
23835       ;;
23836
23837     sysv4*MP*)
23838       if test -d /usr/nec; then
23839         lt_prog_compiler_pic_GCJ=-Kconform_pic
23840       fi
23841       ;;
23842
23843     hpux*)
23844       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23845       # not for PA HP-UX.
23846       case $host_cpu in
23847       hppa*64*|ia64*)
23848         # +Z the default
23849         ;;
23850       *)
23851         lt_prog_compiler_pic_GCJ='-fPIC'
23852         ;;
23853       esac
23854       ;;
23855
23856     *)
23857       lt_prog_compiler_pic_GCJ='-fPIC'
23858       ;;
23859     esac
23860   else
23861     # PORTME Check for flag to pass linker flags through the system compiler.
23862     case $host_os in
23863     aix*)
23864       lt_prog_compiler_wl_GCJ='-Wl,'
23865       if test "$host_cpu" = ia64; then
23866         # AIX 5 now supports IA64 processor
23867         lt_prog_compiler_static_GCJ='-Bstatic'
23868       else
23869         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23870       fi
23871       ;;
23872       darwin*)
23873         # PIC is the default on this platform
23874         # Common symbols not allowed in MH_DYLIB files
23875        case $cc_basename in
23876          xlc*)
23877          lt_prog_compiler_pic_GCJ='-qnocommon'
23878          lt_prog_compiler_wl_GCJ='-Wl,'
23879          ;;
23880        esac
23881        ;;
23882
23883     mingw* | pw32* | os2*)
23884       # This hack is so that the source file can tell whether it is being
23885       # built for inclusion in a dll (and should export symbols for example).
23886       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23887       ;;
23888
23889     hpux9* | hpux10* | hpux11*)
23890       lt_prog_compiler_wl_GCJ='-Wl,'
23891       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23892       # not for PA HP-UX.
23893       case $host_cpu in
23894       hppa*64*|ia64*)
23895         # +Z the default
23896         ;;
23897       *)
23898         lt_prog_compiler_pic_GCJ='+Z'
23899         ;;
23900       esac
23901       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23902       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23903       ;;
23904
23905     irix5* | irix6* | nonstopux*)
23906       lt_prog_compiler_wl_GCJ='-Wl,'
23907       # PIC (with -KPIC) is the default.
23908       lt_prog_compiler_static_GCJ='-non_shared'
23909       ;;
23910
23911     newsos6)
23912       lt_prog_compiler_pic_GCJ='-KPIC'
23913       lt_prog_compiler_static_GCJ='-Bstatic'
23914       ;;
23915
23916     linux*)
23917       case $cc_basename in
23918       icc* | ecc*)
23919         lt_prog_compiler_wl_GCJ='-Wl,'
23920         lt_prog_compiler_pic_GCJ='-KPIC'
23921         lt_prog_compiler_static_GCJ='-static'
23922         ;;
23923       pgcc* | pgf77* | pgf90* | pgf95*)
23924         # Portland Group compilers (*not* the Pentium gcc compiler,
23925         # which looks to be a dead project)
23926         lt_prog_compiler_wl_GCJ='-Wl,'
23927         lt_prog_compiler_pic_GCJ='-fpic'
23928         lt_prog_compiler_static_GCJ='-Bstatic'
23929         ;;
23930       ccc*)
23931         lt_prog_compiler_wl_GCJ='-Wl,'
23932         # All Alpha code is PIC.
23933         lt_prog_compiler_static_GCJ='-non_shared'
23934         ;;
23935       esac
23936       ;;
23937
23938     osf3* | osf4* | osf5*)
23939       lt_prog_compiler_wl_GCJ='-Wl,'
23940       # All OSF/1 code is PIC.
23941       lt_prog_compiler_static_GCJ='-non_shared'
23942       ;;
23943
23944     solaris*)
23945       lt_prog_compiler_pic_GCJ='-KPIC'
23946       lt_prog_compiler_static_GCJ='-Bstatic'
23947       case $cc_basename in
23948       f77* | f90* | f95*)
23949         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23950       *)
23951         lt_prog_compiler_wl_GCJ='-Wl,';;
23952       esac
23953       ;;
23954
23955     sunos4*)
23956       lt_prog_compiler_wl_GCJ='-Qoption ld '
23957       lt_prog_compiler_pic_GCJ='-PIC'
23958       lt_prog_compiler_static_GCJ='-Bstatic'
23959       ;;
23960
23961     sysv4 | sysv4.2uw2* | sysv4.3*)
23962       lt_prog_compiler_wl_GCJ='-Wl,'
23963       lt_prog_compiler_pic_GCJ='-KPIC'
23964       lt_prog_compiler_static_GCJ='-Bstatic'
23965       ;;
23966
23967     sysv4*MP*)
23968       if test -d /usr/nec ;then
23969         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23970         lt_prog_compiler_static_GCJ='-Bstatic'
23971       fi
23972       ;;
23973
23974     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23975       lt_prog_compiler_wl_GCJ='-Wl,'
23976       lt_prog_compiler_pic_GCJ='-KPIC'
23977       lt_prog_compiler_static_GCJ='-Bstatic'
23978       ;;
23979
23980     unicos*)
23981       lt_prog_compiler_wl_GCJ='-Wl,'
23982       lt_prog_compiler_can_build_shared_GCJ=no
23983       ;;
23984
23985     uts4*)
23986       lt_prog_compiler_pic_GCJ='-pic'
23987       lt_prog_compiler_static_GCJ='-Bstatic'
23988       ;;
23989
23990     *)
23991       lt_prog_compiler_can_build_shared_GCJ=no
23992       ;;
23993     esac
23994   fi
23995
23996 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23997 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23998
23999 #
24000 # Check to make sure the PIC flag actually works.
24001 #
24002 if test -n "$lt_prog_compiler_pic_GCJ"; then
24003
24004 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24005 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24006 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24007   echo $ECHO_N "(cached) $ECHO_C" >&6
24008 else
24009   lt_prog_compiler_pic_works_GCJ=no
24010   ac_outfile=conftest.$ac_objext
24011    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24012    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24013    # Insert the option either (1) after the last *FLAGS variable, or
24014    # (2) before a word containing "conftest.", or (3) at the end.
24015    # Note that $ac_compile itself does not contain backslashes and begins
24016    # with a dollar sign (not a hyphen), so the echo should work correctly.
24017    # The option is referenced via a variable to avoid confusing sed.
24018    lt_compile=`echo "$ac_compile" | $SED \
24019    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24020    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24021    -e 's:$: $lt_compiler_flag:'`
24022    (eval echo "\"\$as_me:24022: $lt_compile\"" >&5)
24023    (eval "$lt_compile" 2>conftest.err)
24024    ac_status=$?
24025    cat conftest.err >&5
24026    echo "$as_me:24026: \$? = $ac_status" >&5
24027    if (exit $ac_status) && test -s "$ac_outfile"; then
24028      # The compiler can only warn and ignore the option if not recognized
24029      # So say no if there are warnings other than the usual output.
24030      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24031      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24032      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24033        lt_prog_compiler_pic_works_GCJ=yes
24034      fi
24035    fi
24036    $rm conftest*
24037
24038 fi
24039 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24040 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24041
24042 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24043     case $lt_prog_compiler_pic_GCJ in
24044      "" | " "*) ;;
24045      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24046      esac
24047 else
24048     lt_prog_compiler_pic_GCJ=
24049      lt_prog_compiler_can_build_shared_GCJ=no
24050 fi
24051
24052 fi
24053 case $host_os in
24054   # For platforms which do not support PIC, -DPIC is meaningless:
24055   *djgpp*)
24056     lt_prog_compiler_pic_GCJ=
24057     ;;
24058   *)
24059     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24060     ;;
24061 esac
24062
24063 #
24064 # Check to make sure the static flag actually works.
24065 #
24066 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24067 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24068 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24069 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24070   echo $ECHO_N "(cached) $ECHO_C" >&6
24071 else
24072   lt_prog_compiler_static_works_GCJ=no
24073    save_LDFLAGS="$LDFLAGS"
24074    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24075    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24076    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24077      # The linker can only warn and ignore the option if not recognized
24078      # So say no if there are warnings
24079      if test -s conftest.err; then
24080        # Append any errors to the config.log.
24081        cat conftest.err 1>&5
24082        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24083        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24084        if diff conftest.exp conftest.er2 >/dev/null; then
24085          lt_prog_compiler_static_works_GCJ=yes
24086        fi
24087      else
24088        lt_prog_compiler_static_works_GCJ=yes
24089      fi
24090    fi
24091    $rm conftest*
24092    LDFLAGS="$save_LDFLAGS"
24093
24094 fi
24095 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24096 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24097
24098 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24099     :
24100 else
24101     lt_prog_compiler_static_GCJ=
24102 fi
24103
24104
24105 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24106 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24107 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24108   echo $ECHO_N "(cached) $ECHO_C" >&6
24109 else
24110   lt_cv_prog_compiler_c_o_GCJ=no
24111    $rm -r conftest 2>/dev/null
24112    mkdir conftest
24113    cd conftest
24114    mkdir out
24115    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24116
24117    lt_compiler_flag="-o out/conftest2.$ac_objext"
24118    # Insert the option either (1) after the last *FLAGS variable, or
24119    # (2) before a word containing "conftest.", or (3) at the end.
24120    # Note that $ac_compile itself does not contain backslashes and begins
24121    # with a dollar sign (not a hyphen), so the echo should work correctly.
24122    lt_compile=`echo "$ac_compile" | $SED \
24123    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24124    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24125    -e 's:$: $lt_compiler_flag:'`
24126    (eval echo "\"\$as_me:24126: $lt_compile\"" >&5)
24127    (eval "$lt_compile" 2>out/conftest.err)
24128    ac_status=$?
24129    cat out/conftest.err >&5
24130    echo "$as_me:24130: \$? = $ac_status" >&5
24131    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24132    then
24133      # The compiler can only warn and ignore the option if not recognized
24134      # So say no if there are warnings
24135      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24136      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24137      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24138        lt_cv_prog_compiler_c_o_GCJ=yes
24139      fi
24140    fi
24141    chmod u+w . 2>&5
24142    $rm conftest*
24143    # SGI C++ compiler will create directory out/ii_files/ for
24144    # template instantiation
24145    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24146    $rm out/* && rmdir out
24147    cd ..
24148    rmdir conftest
24149    $rm conftest*
24150
24151 fi
24152 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24153 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24154
24155
24156 hard_links="nottested"
24157 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24158   # do not overwrite the value of need_locks provided by the user
24159   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24160 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24161   hard_links=yes
24162   $rm conftest*
24163   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24164   touch conftest.a
24165   ln conftest.a conftest.b 2>&5 || hard_links=no
24166   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24167   { echo "$as_me:$LINENO: result: $hard_links" >&5
24168 echo "${ECHO_T}$hard_links" >&6; }
24169   if test "$hard_links" = no; then
24170     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24171 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24172     need_locks=warn
24173   fi
24174 else
24175   need_locks=no
24176 fi
24177
24178 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24179 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24180
24181   runpath_var=
24182   allow_undefined_flag_GCJ=
24183   enable_shared_with_static_runtimes_GCJ=no
24184   archive_cmds_GCJ=
24185   archive_expsym_cmds_GCJ=
24186   old_archive_From_new_cmds_GCJ=
24187   old_archive_from_expsyms_cmds_GCJ=
24188   export_dynamic_flag_spec_GCJ=
24189   whole_archive_flag_spec_GCJ=
24190   thread_safe_flag_spec_GCJ=
24191   hardcode_libdir_flag_spec_GCJ=
24192   hardcode_libdir_flag_spec_ld_GCJ=
24193   hardcode_libdir_separator_GCJ=
24194   hardcode_direct_GCJ=no
24195   hardcode_minus_L_GCJ=no
24196   hardcode_shlibpath_var_GCJ=unsupported
24197   link_all_deplibs_GCJ=unknown
24198   hardcode_automatic_GCJ=no
24199   module_cmds_GCJ=
24200   module_expsym_cmds_GCJ=
24201   always_export_symbols_GCJ=no
24202   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24203   # include_expsyms should be a list of space-separated symbols to be *always*
24204   # included in the symbol list
24205   include_expsyms_GCJ=
24206   # exclude_expsyms can be an extended regexp of symbols to exclude
24207   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24208   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24209   # as well as any symbol that contains `d'.
24210   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24211   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24212   # platforms (ab)use it in PIC code, but their linkers get confused if
24213   # the symbol is explicitly referenced.  Since portable code cannot
24214   # rely on this symbol name, it's probably fine to never include it in
24215   # preloaded symbol tables.
24216   extract_expsyms_cmds=
24217   # Just being paranoid about ensuring that cc_basename is set.
24218   for cc_temp in $compiler""; do
24219   case $cc_temp in
24220     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24221     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24222     \-*) ;;
24223     *) break;;
24224   esac
24225 done
24226 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24227
24228   case $host_os in
24229   cygwin* | mingw* | pw32*)
24230     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24231     # When not using gcc, we currently assume that we are using
24232     # Microsoft Visual C++.
24233     if test "$GCC" != yes; then
24234       with_gnu_ld=no
24235     fi
24236     ;;
24237   interix*)
24238     # we just hope/assume this is gcc and not c89 (= MSVC++)
24239     with_gnu_ld=yes
24240     ;;
24241   openbsd*)
24242     with_gnu_ld=no
24243     ;;
24244   esac
24245
24246   ld_shlibs_GCJ=yes
24247   if test "$with_gnu_ld" = yes; then
24248     # If archive_cmds runs LD, not CC, wlarc should be empty
24249     wlarc='${wl}'
24250
24251     # Set some defaults for GNU ld with shared library support. These
24252     # are reset later if shared libraries are not supported. Putting them
24253     # here allows them to be overridden if necessary.
24254     runpath_var=LD_RUN_PATH
24255     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24256     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24257     # ancient GNU ld didn't support --whole-archive et. al.
24258     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24259         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24260       else
24261         whole_archive_flag_spec_GCJ=
24262     fi
24263     supports_anon_versioning=no
24264     case `$LD -v 2>/dev/null` in
24265       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24266       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24267       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24268       *\ 2.11.*) ;; # other 2.11 versions
24269       *) supports_anon_versioning=yes ;;
24270     esac
24271
24272     # See if GNU ld supports shared libraries.
24273     case $host_os in
24274     aix3* | aix4* | aix5*)
24275       # On AIX/PPC, the GNU linker is very broken
24276       if test "$host_cpu" != ia64; then
24277         ld_shlibs_GCJ=no
24278         cat <<EOF 1>&2
24279
24280 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24281 *** to be unable to reliably create shared libraries on AIX.
24282 *** Therefore, libtool is disabling shared libraries support.  If you
24283 *** really care for shared libraries, you may want to modify your PATH
24284 *** so that a non-GNU linker is found, and then restart.
24285
24286 EOF
24287       fi
24288       ;;
24289
24290     amigaos*)
24291       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)'
24292       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24293       hardcode_minus_L_GCJ=yes
24294
24295       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24296       # that the semantics of dynamic libraries on AmigaOS, at least up
24297       # to version 4, is to share data among multiple programs linked
24298       # with the same dynamic library.  Since this doesn't match the
24299       # behavior of shared libraries on other platforms, we can't use
24300       # them.
24301       ld_shlibs_GCJ=no
24302       ;;
24303
24304     beos*)
24305       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24306         allow_undefined_flag_GCJ=unsupported
24307         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24308         # support --undefined.  This deserves some investigation.  FIXME
24309         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24310       else
24311         ld_shlibs_GCJ=no
24312       fi
24313       ;;
24314
24315     cygwin* | mingw* | pw32*)
24316       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24317       # as there is no search path for DLLs.
24318       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24319       allow_undefined_flag_GCJ=unsupported
24320       always_export_symbols_GCJ=no
24321       enable_shared_with_static_runtimes_GCJ=yes
24322       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24323
24324       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24325         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24326         # If the export-symbols file already is a .def file (1st line
24327         # is EXPORTS), use it as is; otherwise, prepend...
24328         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24329           cp $export_symbols $output_objdir/$soname.def;
24330         else
24331           echo EXPORTS > $output_objdir/$soname.def;
24332           cat $export_symbols >> $output_objdir/$soname.def;
24333         fi~
24334         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24335       else
24336         ld_shlibs_GCJ=no
24337       fi
24338       ;;
24339
24340     interix3*)
24341       hardcode_direct_GCJ=no
24342       hardcode_shlibpath_var_GCJ=no
24343       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24344       export_dynamic_flag_spec_GCJ='${wl}-E'
24345       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24346       # Instead, shared libraries are loaded at an image base (0x10000000 by
24347       # default) and relocated if they conflict, which is a slow very memory
24348       # consuming and fragmenting process.  To avoid this, we pick a random,
24349       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24350       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24351       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'
24352       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'
24353       ;;
24354
24355     linux*)
24356       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24357         tmp_addflag=
24358         case $cc_basename,$host_cpu in
24359         pgcc*)                          # Portland Group C compiler
24360           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'
24361           tmp_addflag=' $pic_flag'
24362           ;;
24363         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24364           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'
24365           tmp_addflag=' $pic_flag -Mnomain' ;;
24366         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24367           tmp_addflag=' -i_dynamic' ;;
24368         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24369           tmp_addflag=' -i_dynamic -nofor_main' ;;
24370         ifc* | ifort*)                  # Intel Fortran compiler
24371           tmp_addflag=' -nofor_main' ;;
24372         esac
24373         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24374
24375         if test $supports_anon_versioning = yes; then
24376           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24377   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24378   $echo "local: *; };" >> $output_objdir/$libname.ver~
24379           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24380         fi
24381       else
24382         ld_shlibs_GCJ=no
24383       fi
24384       ;;
24385
24386     netbsd*)
24387       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24388         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24389         wlarc=
24390       else
24391         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24392         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24393       fi
24394       ;;
24395
24396     solaris*)
24397       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24398         ld_shlibs_GCJ=no
24399         cat <<EOF 1>&2
24400
24401 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24402 *** create shared libraries on Solaris systems.  Therefore, libtool
24403 *** is disabling shared libraries support.  We urge you to upgrade GNU
24404 *** binutils to release 2.9.1 or newer.  Another option is to modify
24405 *** your PATH or compiler configuration so that the native linker is
24406 *** used, and then restart.
24407
24408 EOF
24409       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24410         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24411         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24412       else
24413         ld_shlibs_GCJ=no
24414       fi
24415       ;;
24416
24417     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24418       case `$LD -v 2>&1` in
24419         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24420         ld_shlibs_GCJ=no
24421         cat <<_LT_EOF 1>&2
24422
24423 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24424 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24425 *** is disabling shared libraries support.  We urge you to upgrade GNU
24426 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24427 *** your PATH or compiler configuration so that the native linker is
24428 *** used, and then restart.
24429
24430 _LT_EOF
24431         ;;
24432         *)
24433           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24434             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24435             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24436             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24437           else
24438             ld_shlibs_GCJ=no
24439           fi
24440         ;;
24441       esac
24442       ;;
24443
24444     sunos4*)
24445       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24446       wlarc=
24447       hardcode_direct_GCJ=yes
24448       hardcode_shlibpath_var_GCJ=no
24449       ;;
24450
24451     *)
24452       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24453         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24454         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24455       else
24456         ld_shlibs_GCJ=no
24457       fi
24458       ;;
24459     esac
24460
24461     if test "$ld_shlibs_GCJ" = no; then
24462       runpath_var=
24463       hardcode_libdir_flag_spec_GCJ=
24464       export_dynamic_flag_spec_GCJ=
24465       whole_archive_flag_spec_GCJ=
24466     fi
24467   else
24468     # PORTME fill in a description of your system's linker (not GNU ld)
24469     case $host_os in
24470     aix3*)
24471       allow_undefined_flag_GCJ=unsupported
24472       always_export_symbols_GCJ=yes
24473       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'
24474       # Note: this linker hardcodes the directories in LIBPATH if there
24475       # are no directories specified by -L.
24476       hardcode_minus_L_GCJ=yes
24477       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24478         # Neither direct hardcoding nor static linking is supported with a
24479         # broken collect2.
24480         hardcode_direct_GCJ=unsupported
24481       fi
24482       ;;
24483
24484     aix4* | aix5*)
24485       if test "$host_cpu" = ia64; then
24486         # On IA64, the linker does run time linking by default, so we don't
24487         # have to do anything special.
24488         aix_use_runtimelinking=no
24489         exp_sym_flag='-Bexport'
24490         no_entry_flag=""
24491       else
24492         # If we're using GNU nm, then we don't want the "-C" option.
24493         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24494         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24495           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'
24496         else
24497           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'
24498         fi
24499         aix_use_runtimelinking=no
24500
24501         # Test if we are trying to use run time linking or normal
24502         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24503         # need to do runtime linking.
24504         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24505           for ld_flag in $LDFLAGS; do
24506           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24507             aix_use_runtimelinking=yes
24508             break
24509           fi
24510           done
24511           ;;
24512         esac
24513
24514         exp_sym_flag='-bexport'
24515         no_entry_flag='-bnoentry'
24516       fi
24517
24518       # When large executables or shared objects are built, AIX ld can
24519       # have problems creating the table of contents.  If linking a library
24520       # or program results in "error TOC overflow" add -mminimal-toc to
24521       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24522       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24523
24524       archive_cmds_GCJ=''
24525       hardcode_direct_GCJ=yes
24526       hardcode_libdir_separator_GCJ=':'
24527       link_all_deplibs_GCJ=yes
24528
24529       if test "$GCC" = yes; then
24530         case $host_os in aix4.[012]|aix4.[012].*)
24531         # We only want to do this on AIX 4.2 and lower, the check
24532         # below for broken collect2 doesn't work under 4.3+
24533           collect2name=`${CC} -print-prog-name=collect2`
24534           if test -f "$collect2name" && \
24535            strings "$collect2name" | grep resolve_lib_name >/dev/null
24536           then
24537           # We have reworked collect2
24538           hardcode_direct_GCJ=yes
24539           else
24540           # We have old collect2
24541           hardcode_direct_GCJ=unsupported
24542           # It fails to find uninstalled libraries when the uninstalled
24543           # path is not listed in the libpath.  Setting hardcode_minus_L
24544           # to unsupported forces relinking
24545           hardcode_minus_L_GCJ=yes
24546           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24547           hardcode_libdir_separator_GCJ=
24548           fi
24549           ;;
24550         esac
24551         shared_flag='-shared'
24552         if test "$aix_use_runtimelinking" = yes; then
24553           shared_flag="$shared_flag "'${wl}-G'
24554         fi
24555       else
24556         # not using gcc
24557         if test "$host_cpu" = ia64; then
24558         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24559         # chokes on -Wl,-G. The following line is correct:
24560           shared_flag='-G'
24561         else
24562           if test "$aix_use_runtimelinking" = yes; then
24563             shared_flag='${wl}-G'
24564           else
24565             shared_flag='${wl}-bM:SRE'
24566           fi
24567         fi
24568       fi
24569
24570       # It seems that -bexpall does not export symbols beginning with
24571       # underscore (_), so it is better to generate a list of symbols to export.
24572       always_export_symbols_GCJ=yes
24573       if test "$aix_use_runtimelinking" = yes; then
24574         # Warning - without using the other runtime loading flags (-brtl),
24575         # -berok will link without error, but may produce a broken library.
24576         allow_undefined_flag_GCJ='-berok'
24577        # Determine the default libpath from the value encoded in an empty executable.
24578        cat >conftest.$ac_ext <<_ACEOF
24579 /* confdefs.h.  */
24580 _ACEOF
24581 cat confdefs.h >>conftest.$ac_ext
24582 cat >>conftest.$ac_ext <<_ACEOF
24583 /* end confdefs.h.  */
24584
24585 int
24586 main ()
24587 {
24588
24589   ;
24590   return 0;
24591 }
24592 _ACEOF
24593 rm -f conftest.$ac_objext conftest$ac_exeext
24594 if { (ac_try="$ac_link"
24595 case "(($ac_try" in
24596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597   *) ac_try_echo=$ac_try;;
24598 esac
24599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24600   (eval "$ac_link") 2>conftest.er1
24601   ac_status=$?
24602   grep -v '^ *+' conftest.er1 >conftest.err
24603   rm -f conftest.er1
24604   cat conftest.err >&5
24605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606   (exit $ac_status); } &&
24607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24608   { (case "(($ac_try" in
24609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24610   *) ac_try_echo=$ac_try;;
24611 esac
24612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24613   (eval "$ac_try") 2>&5
24614   ac_status=$?
24615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616   (exit $ac_status); }; } &&
24617          { ac_try='test -s conftest$ac_exeext'
24618   { (case "(($ac_try" in
24619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24620   *) ac_try_echo=$ac_try;;
24621 esac
24622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24623   (eval "$ac_try") 2>&5
24624   ac_status=$?
24625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626   (exit $ac_status); }; }; then
24627
24628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24629 }'`
24630 # Check for a 64-bit object if we didn't find anything.
24631 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; }
24632 }'`; fi
24633 else
24634   echo "$as_me: failed program was:" >&5
24635 sed 's/^/| /' conftest.$ac_ext >&5
24636
24637
24638 fi
24639
24640 rm -f core conftest.err conftest.$ac_objext \
24641       conftest$ac_exeext conftest.$ac_ext
24642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24643
24644        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24645         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"
24646        else
24647         if test "$host_cpu" = ia64; then
24648           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24649           allow_undefined_flag_GCJ="-z nodefs"
24650           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"
24651         else
24652          # Determine the default libpath from the value encoded in an empty executable.
24653          cat >conftest.$ac_ext <<_ACEOF
24654 /* confdefs.h.  */
24655 _ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h.  */
24659
24660 int
24661 main ()
24662 {
24663
24664   ;
24665   return 0;
24666 }
24667 _ACEOF
24668 rm -f conftest.$ac_objext conftest$ac_exeext
24669 if { (ac_try="$ac_link"
24670 case "(($ac_try" in
24671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24672   *) ac_try_echo=$ac_try;;
24673 esac
24674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24675   (eval "$ac_link") 2>conftest.er1
24676   ac_status=$?
24677   grep -v '^ *+' conftest.er1 >conftest.err
24678   rm -f conftest.er1
24679   cat conftest.err >&5
24680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681   (exit $ac_status); } &&
24682          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24683   { (case "(($ac_try" in
24684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24685   *) ac_try_echo=$ac_try;;
24686 esac
24687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24688   (eval "$ac_try") 2>&5
24689   ac_status=$?
24690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691   (exit $ac_status); }; } &&
24692          { ac_try='test -s conftest$ac_exeext'
24693   { (case "(($ac_try" in
24694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695   *) ac_try_echo=$ac_try;;
24696 esac
24697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698   (eval "$ac_try") 2>&5
24699   ac_status=$?
24700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701   (exit $ac_status); }; }; then
24702
24703 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24704 }'`
24705 # Check for a 64-bit object if we didn't find anything.
24706 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; }
24707 }'`; fi
24708 else
24709   echo "$as_me: failed program was:" >&5
24710 sed 's/^/| /' conftest.$ac_ext >&5
24711
24712
24713 fi
24714
24715 rm -f core conftest.err conftest.$ac_objext \
24716       conftest$ac_exeext conftest.$ac_ext
24717 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24718
24719          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24720           # Warning - without using the other run time loading flags,
24721           # -berok will link without error, but may produce a broken library.
24722           no_undefined_flag_GCJ=' ${wl}-bernotok'
24723           allow_undefined_flag_GCJ=' ${wl}-berok'
24724           # Exported symbols can be pulled into shared objects from archives
24725           whole_archive_flag_spec_GCJ='$convenience'
24726           archive_cmds_need_lc_GCJ=yes
24727           # This is similar to how AIX traditionally builds its shared libraries.
24728           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'
24729         fi
24730       fi
24731       ;;
24732
24733     amigaos*)
24734       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)'
24735       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24736       hardcode_minus_L_GCJ=yes
24737       # see comment about different semantics on the GNU ld section
24738       ld_shlibs_GCJ=no
24739       ;;
24740
24741     bsdi[45]*)
24742       export_dynamic_flag_spec_GCJ=-rdynamic
24743       ;;
24744
24745     cygwin* | mingw* | pw32*)
24746       # When not using gcc, we currently assume that we are using
24747       # Microsoft Visual C++.
24748       # hardcode_libdir_flag_spec is actually meaningless, as there is
24749       # no search path for DLLs.
24750       hardcode_libdir_flag_spec_GCJ=' '
24751       allow_undefined_flag_GCJ=unsupported
24752       # Tell ltmain to make .lib files, not .a files.
24753       libext=lib
24754       # Tell ltmain to make .dll files, not .so files.
24755       shrext_cmds=".dll"
24756       # FIXME: Setting linknames here is a bad hack.
24757       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24758       # The linker will automatically build a .lib file if we build a DLL.
24759       old_archive_From_new_cmds_GCJ='true'
24760       # FIXME: Should let the user specify the lib program.
24761       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24762       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24763       enable_shared_with_static_runtimes_GCJ=yes
24764       ;;
24765
24766     darwin* | rhapsody*)
24767       case $host_os in
24768         rhapsody* | darwin1.[012])
24769          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24770          ;;
24771        *) # Darwin 1.3 on
24772          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24773            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24774          else
24775            case ${MACOSX_DEPLOYMENT_TARGET} in
24776              10.[012])
24777                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24778                ;;
24779              10.*)
24780                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24781                ;;
24782            esac
24783          fi
24784          ;;
24785       esac
24786       archive_cmds_need_lc_GCJ=no
24787       hardcode_direct_GCJ=no
24788       hardcode_automatic_GCJ=yes
24789       hardcode_shlibpath_var_GCJ=unsupported
24790       whole_archive_flag_spec_GCJ=''
24791       link_all_deplibs_GCJ=yes
24792     if test "$GCC" = yes ; then
24793         output_verbose_link_cmd='echo'
24794         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24795       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24796       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24797       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}'
24798       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}'
24799     else
24800       case $cc_basename in
24801         xlc*)
24802          output_verbose_link_cmd='echo'
24803          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24804          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24805           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24806          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}'
24807           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}'
24808           ;;
24809        *)
24810          ld_shlibs_GCJ=no
24811           ;;
24812       esac
24813     fi
24814       ;;
24815
24816     dgux*)
24817       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24818       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24819       hardcode_shlibpath_var_GCJ=no
24820       ;;
24821
24822     freebsd1*)
24823       ld_shlibs_GCJ=no
24824       ;;
24825
24826     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24827     # support.  Future versions do this automatically, but an explicit c++rt0.o
24828     # does not break anything, and helps significantly (at the cost of a little
24829     # extra space).
24830     freebsd2.2*)
24831       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24832       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24833       hardcode_direct_GCJ=yes
24834       hardcode_shlibpath_var_GCJ=no
24835       ;;
24836
24837     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24838     freebsd2*)
24839       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24840       hardcode_direct_GCJ=yes
24841       hardcode_minus_L_GCJ=yes
24842       hardcode_shlibpath_var_GCJ=no
24843       ;;
24844
24845     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24846     freebsd* | kfreebsd*-gnu | dragonfly*)
24847       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24848       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24849       hardcode_direct_GCJ=yes
24850       hardcode_shlibpath_var_GCJ=no
24851       ;;
24852
24853     hpux9*)
24854       if test "$GCC" = yes; then
24855         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'
24856       else
24857         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'
24858       fi
24859       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24860       hardcode_libdir_separator_GCJ=:
24861       hardcode_direct_GCJ=yes
24862
24863       # hardcode_minus_L: Not really in the search PATH,
24864       # but as the default location of the library.
24865       hardcode_minus_L_GCJ=yes
24866       export_dynamic_flag_spec_GCJ='${wl}-E'
24867       ;;
24868
24869     hpux10*)
24870       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24871         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24872       else
24873         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24874       fi
24875       if test "$with_gnu_ld" = no; then
24876         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24877         hardcode_libdir_separator_GCJ=:
24878
24879         hardcode_direct_GCJ=yes
24880         export_dynamic_flag_spec_GCJ='${wl}-E'
24881
24882         # hardcode_minus_L: Not really in the search PATH,
24883         # but as the default location of the library.
24884         hardcode_minus_L_GCJ=yes
24885       fi
24886       ;;
24887
24888     hpux11*)
24889       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24890         case $host_cpu in
24891         hppa*64*)
24892           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24893           ;;
24894         ia64*)
24895           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24896           ;;
24897         *)
24898           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24899           ;;
24900         esac
24901       else
24902         case $host_cpu in
24903         hppa*64*)
24904           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24905           ;;
24906         ia64*)
24907           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24908           ;;
24909         *)
24910           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24911           ;;
24912         esac
24913       fi
24914       if test "$with_gnu_ld" = no; then
24915         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24916         hardcode_libdir_separator_GCJ=:
24917
24918         case $host_cpu in
24919         hppa*64*|ia64*)
24920           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24921           hardcode_direct_GCJ=no
24922           hardcode_shlibpath_var_GCJ=no
24923           ;;
24924         *)
24925           hardcode_direct_GCJ=yes
24926           export_dynamic_flag_spec_GCJ='${wl}-E'
24927
24928           # hardcode_minus_L: Not really in the search PATH,
24929           # but as the default location of the library.
24930           hardcode_minus_L_GCJ=yes
24931           ;;
24932         esac
24933       fi
24934       ;;
24935
24936     irix5* | irix6* | nonstopux*)
24937       if test "$GCC" = yes; then
24938         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'
24939       else
24940         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'
24941         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24942       fi
24943       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24944       hardcode_libdir_separator_GCJ=:
24945       link_all_deplibs_GCJ=yes
24946       ;;
24947
24948     netbsd*)
24949       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24950         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24951       else
24952         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24953       fi
24954       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24955       hardcode_direct_GCJ=yes
24956       hardcode_shlibpath_var_GCJ=no
24957       ;;
24958
24959     newsos6)
24960       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24961       hardcode_direct_GCJ=yes
24962       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24963       hardcode_libdir_separator_GCJ=:
24964       hardcode_shlibpath_var_GCJ=no
24965       ;;
24966
24967     openbsd*)
24968       hardcode_direct_GCJ=yes
24969       hardcode_shlibpath_var_GCJ=no
24970       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24971         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24972         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24973         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24974         export_dynamic_flag_spec_GCJ='${wl}-E'
24975       else
24976        case $host_os in
24977          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24978            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24979            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24980            ;;
24981          *)
24982            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24983            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24984            ;;
24985        esac
24986       fi
24987       ;;
24988
24989     os2*)
24990       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24991       hardcode_minus_L_GCJ=yes
24992       allow_undefined_flag_GCJ=unsupported
24993       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'
24994       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24995       ;;
24996
24997     osf3*)
24998       if test "$GCC" = yes; then
24999         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25000         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'
25001       else
25002         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25003         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'
25004       fi
25005       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25006       hardcode_libdir_separator_GCJ=:
25007       ;;
25008
25009     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25010       if test "$GCC" = yes; then
25011         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25012         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'
25013         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25014       else
25015         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25016         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'
25017         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~
25018         $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'
25019
25020         # Both c and cxx compiler support -rpath directly
25021         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25022       fi
25023       hardcode_libdir_separator_GCJ=:
25024       ;;
25025
25026     solaris*)
25027       no_undefined_flag_GCJ=' -z text'
25028       if test "$GCC" = yes; then
25029         wlarc='${wl}'
25030         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25031         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25032           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25033       else
25034         wlarc=''
25035         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25036         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25037         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25038       fi
25039       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25040       hardcode_shlibpath_var_GCJ=no
25041       case $host_os in
25042       solaris2.[0-5] | solaris2.[0-5].*) ;;
25043       *)
25044         # The compiler driver will combine linker options so we
25045         # cannot just pass the convience library names through
25046         # without $wl, iff we do not link with $LD.
25047         # Luckily, gcc supports the same syntax we need for Sun Studio.
25048         # Supported since Solaris 2.6 (maybe 2.5.1?)
25049         case $wlarc in
25050         '')
25051           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25052         *)
25053           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' ;;
25054         esac ;;
25055       esac
25056       link_all_deplibs_GCJ=yes
25057       ;;
25058
25059     sunos4*)
25060       if test "x$host_vendor" = xsequent; then
25061         # Use $CC to link under sequent, because it throws in some extra .o
25062         # files that make .init and .fini sections work.
25063         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25064       else
25065         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25066       fi
25067       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25068       hardcode_direct_GCJ=yes
25069       hardcode_minus_L_GCJ=yes
25070       hardcode_shlibpath_var_GCJ=no
25071       ;;
25072
25073     sysv4)
25074       case $host_vendor in
25075         sni)
25076           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25077           hardcode_direct_GCJ=yes # is this really true???
25078         ;;
25079         siemens)
25080           ## LD is ld it makes a PLAMLIB
25081           ## CC just makes a GrossModule.
25082           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25083           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25084           hardcode_direct_GCJ=no
25085         ;;
25086         motorola)
25087           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25088           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25089         ;;
25090       esac
25091       runpath_var='LD_RUN_PATH'
25092       hardcode_shlibpath_var_GCJ=no
25093       ;;
25094
25095     sysv4.3*)
25096       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25097       hardcode_shlibpath_var_GCJ=no
25098       export_dynamic_flag_spec_GCJ='-Bexport'
25099       ;;
25100
25101     sysv4*MP*)
25102       if test -d /usr/nec; then
25103         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25104         hardcode_shlibpath_var_GCJ=no
25105         runpath_var=LD_RUN_PATH
25106         hardcode_runpath_var=yes
25107         ld_shlibs_GCJ=yes
25108       fi
25109       ;;
25110
25111     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25112       no_undefined_flag_GCJ='${wl}-z,text'
25113       archive_cmds_need_lc_GCJ=no
25114       hardcode_shlibpath_var_GCJ=no
25115       runpath_var='LD_RUN_PATH'
25116
25117       if test "$GCC" = yes; then
25118         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25119         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25120       else
25121         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25122         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25123       fi
25124       ;;
25125
25126     sysv5* | sco3.2v5* | sco5v6*)
25127       # Note: We can NOT use -z defs as we might desire, because we do not
25128       # link with -lc, and that would cause any symbols used from libc to
25129       # always be unresolved, which means just about no library would
25130       # ever link correctly.  If we're not using GNU ld we use -z text
25131       # though, which does catch some bad symbols but isn't as heavy-handed
25132       # as -z defs.
25133       no_undefined_flag_GCJ='${wl}-z,text'
25134       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25135       archive_cmds_need_lc_GCJ=no
25136       hardcode_shlibpath_var_GCJ=no
25137       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25138       hardcode_libdir_separator_GCJ=':'
25139       link_all_deplibs_GCJ=yes
25140       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25141       runpath_var='LD_RUN_PATH'
25142
25143       if test "$GCC" = yes; then
25144         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25145         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25146       else
25147         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25148         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25149       fi
25150       ;;
25151
25152     uts4*)
25153       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25154       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25155       hardcode_shlibpath_var_GCJ=no
25156       ;;
25157
25158     *)
25159       ld_shlibs_GCJ=no
25160       ;;
25161     esac
25162   fi
25163
25164 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25165 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25166 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25167
25168 #
25169 # Do we need to explicitly link libc?
25170 #
25171 case "x$archive_cmds_need_lc_GCJ" in
25172 x|xyes)
25173   # Assume -lc should be added
25174   archive_cmds_need_lc_GCJ=yes
25175
25176   if test "$enable_shared" = yes && test "$GCC" = yes; then
25177     case $archive_cmds_GCJ in
25178     *'~'*)
25179       # FIXME: we may have to deal with multi-command sequences.
25180       ;;
25181     '$CC '*)
25182       # Test whether the compiler implicitly links with -lc since on some
25183       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25184       # to ld, don't add -lc before -lgcc.
25185       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25186 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25187       $rm conftest*
25188       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25189
25190       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25191   (eval $ac_compile) 2>&5
25192   ac_status=$?
25193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194   (exit $ac_status); } 2>conftest.err; then
25195         soname=conftest
25196         lib=conftest
25197         libobjs=conftest.$ac_objext
25198         deplibs=
25199         wl=$lt_prog_compiler_wl_GCJ
25200         pic_flag=$lt_prog_compiler_pic_GCJ
25201         compiler_flags=-v
25202         linker_flags=-v
25203         verstring=
25204         output_objdir=.
25205         libname=conftest
25206         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25207         allow_undefined_flag_GCJ=
25208         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25209   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25210   ac_status=$?
25211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212   (exit $ac_status); }
25213         then
25214           archive_cmds_need_lc_GCJ=no
25215         else
25216           archive_cmds_need_lc_GCJ=yes
25217         fi
25218         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25219       else
25220         cat conftest.err 1>&5
25221       fi
25222       $rm conftest*
25223       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25224 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25225       ;;
25226     esac
25227   fi
25228   ;;
25229 esac
25230
25231 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25232 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25233 library_names_spec=
25234 libname_spec='lib$name'
25235 soname_spec=
25236 shrext_cmds=".so"
25237 postinstall_cmds=
25238 postuninstall_cmds=
25239 finish_cmds=
25240 finish_eval=
25241 shlibpath_var=
25242 shlibpath_overrides_runpath=unknown
25243 version_type=none
25244 dynamic_linker="$host_os ld.so"
25245 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25246 if test "$GCC" = yes; then
25247   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25248   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25249     # if the path contains ";" then we assume it to be the separator
25250     # otherwise default to the standard path separator (i.e. ":") - it is
25251     # assumed that no part of a normal pathname contains ";" but that should
25252     # okay in the real world where ";" in dirpaths is itself problematic.
25253     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25254   else
25255     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25256   fi
25257 else
25258   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25259 fi
25260 need_lib_prefix=unknown
25261 hardcode_into_libs=no
25262
25263 # when you set need_version to no, make sure it does not cause -set_version
25264 # flags to be left without arguments
25265 need_version=unknown
25266
25267 case $host_os in
25268 aix3*)
25269   version_type=linux
25270   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25271   shlibpath_var=LIBPATH
25272
25273   # AIX 3 has no versioning support, so we append a major version to the name.
25274   soname_spec='${libname}${release}${shared_ext}$major'
25275   ;;
25276
25277 aix4* | aix5*)
25278   version_type=linux
25279   need_lib_prefix=no
25280   need_version=no
25281   hardcode_into_libs=yes
25282   if test "$host_cpu" = ia64; then
25283     # AIX 5 supports IA64
25284     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25285     shlibpath_var=LD_LIBRARY_PATH
25286   else
25287     # With GCC up to 2.95.x, collect2 would create an import file
25288     # for dependence libraries.  The import file would start with
25289     # the line `#! .'.  This would cause the generated library to
25290     # depend on `.', always an invalid library.  This was fixed in
25291     # development snapshots of GCC prior to 3.0.
25292     case $host_os in
25293       aix4 | aix4.[01] | aix4.[01].*)
25294       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25295            echo ' yes '
25296            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25297         :
25298       else
25299         can_build_shared=no
25300       fi
25301       ;;
25302     esac
25303     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25304     # soname into executable. Probably we can add versioning support to
25305     # collect2, so additional links can be useful in future.
25306     if test "$aix_use_runtimelinking" = yes; then
25307       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25308       # instead of lib<name>.a to let people know that these are not
25309       # typical AIX shared libraries.
25310       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25311     else
25312       # We preserve .a as extension for shared libraries through AIX4.2
25313       # and later when we are not doing run time linking.
25314       library_names_spec='${libname}${release}.a $libname.a'
25315       soname_spec='${libname}${release}${shared_ext}$major'
25316     fi
25317     shlibpath_var=LIBPATH
25318   fi
25319   ;;
25320
25321 amigaos*)
25322   library_names_spec='$libname.ixlibrary $libname.a'
25323   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25324   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'
25325   ;;
25326
25327 beos*)
25328   library_names_spec='${libname}${shared_ext}'
25329   dynamic_linker="$host_os ld.so"
25330   shlibpath_var=LIBRARY_PATH
25331   ;;
25332
25333 bsdi[45]*)
25334   version_type=linux
25335   need_version=no
25336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25337   soname_spec='${libname}${release}${shared_ext}$major'
25338   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25339   shlibpath_var=LD_LIBRARY_PATH
25340   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25341   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25342   # the default ld.so.conf also contains /usr/contrib/lib and
25343   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25344   # libtool to hard-code these into programs
25345   ;;
25346
25347 cygwin* | mingw* | pw32*)
25348   version_type=windows
25349   shrext_cmds=".dll"
25350   need_version=no
25351   need_lib_prefix=no
25352
25353   case $GCC,$host_os in
25354   yes,cygwin* | yes,mingw* | yes,pw32*)
25355     library_names_spec='$libname.dll.a'
25356     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25357     postinstall_cmds='base_file=`basename \${file}`~
25358       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25359       dldir=$destdir/`dirname \$dlpath`~
25360       test -d \$dldir || mkdir -p \$dldir~
25361       $install_prog $dir/$dlname \$dldir/$dlname~
25362       chmod a+x \$dldir/$dlname'
25363     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25364       dlpath=$dir/\$dldll~
25365        $rm \$dlpath'
25366     shlibpath_overrides_runpath=yes
25367
25368     case $host_os in
25369     cygwin*)
25370       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25371       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25372       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25373       ;;
25374     mingw*)
25375       # MinGW DLLs use traditional 'lib' prefix
25376       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25377       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25378       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25379         # It is most probably a Windows format PATH printed by
25380         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25381         # path with ; separators, and with drive letters. We can handle the
25382         # drive letters (cygwin fileutils understands them), so leave them,
25383         # especially as we might pass files found there to a mingw objdump,
25384         # which wouldn't understand a cygwinified path. Ahh.
25385         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25386       else
25387         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25388       fi
25389       ;;
25390     pw32*)
25391       # pw32 DLLs use 'pw' prefix rather than 'lib'
25392       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25393       ;;
25394     esac
25395     ;;
25396
25397   *)
25398     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25399     ;;
25400   esac
25401   dynamic_linker='Win32 ld.exe'
25402   # FIXME: first we should search . and the directory the executable is in
25403   shlibpath_var=PATH
25404   ;;
25405
25406 darwin* | rhapsody*)
25407   dynamic_linker="$host_os dyld"
25408   version_type=darwin
25409   need_lib_prefix=no
25410   need_version=no
25411   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25412   soname_spec='${libname}${release}${major}$shared_ext'
25413   shlibpath_overrides_runpath=yes
25414   shlibpath_var=DYLD_LIBRARY_PATH
25415   shrext_cmds='.dylib'
25416   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25417   if test "$GCC" = yes; then
25418     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"`
25419   else
25420     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25421   fi
25422   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25423   ;;
25424
25425 dgux*)
25426   version_type=linux
25427   need_lib_prefix=no
25428   need_version=no
25429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25430   soname_spec='${libname}${release}${shared_ext}$major'
25431   shlibpath_var=LD_LIBRARY_PATH
25432   ;;
25433
25434 freebsd1*)
25435   dynamic_linker=no
25436   ;;
25437
25438 kfreebsd*-gnu)
25439   version_type=linux
25440   need_lib_prefix=no
25441   need_version=no
25442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25443   soname_spec='${libname}${release}${shared_ext}$major'
25444   shlibpath_var=LD_LIBRARY_PATH
25445   shlibpath_overrides_runpath=no
25446   hardcode_into_libs=yes
25447   dynamic_linker='GNU ld.so'
25448   ;;
25449
25450 freebsd* | dragonfly*)
25451   # DragonFly does not have aout.  When/if they implement a new
25452   # versioning mechanism, adjust this.
25453   if test -x /usr/bin/objformat; then
25454     objformat=`/usr/bin/objformat`
25455   else
25456     case $host_os in
25457     freebsd[123]*) objformat=aout ;;
25458     *) objformat=elf ;;
25459     esac
25460   fi
25461   version_type=freebsd-$objformat
25462   case $version_type in
25463     freebsd-elf*)
25464       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25465       need_version=no
25466       need_lib_prefix=no
25467       ;;
25468     freebsd-*)
25469       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25470       need_version=yes
25471       ;;
25472   esac
25473   shlibpath_var=LD_LIBRARY_PATH
25474   case $host_os in
25475   freebsd2*)
25476     shlibpath_overrides_runpath=yes
25477     ;;
25478   freebsd3.[01]* | freebsdelf3.[01]*)
25479     shlibpath_overrides_runpath=yes
25480     hardcode_into_libs=yes
25481     ;;
25482   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25483   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25484     shlibpath_overrides_runpath=no
25485     hardcode_into_libs=yes
25486     ;;
25487   freebsd*) # from 4.6 on
25488     shlibpath_overrides_runpath=yes
25489     hardcode_into_libs=yes
25490     ;;
25491   esac
25492   ;;
25493
25494 gnu*)
25495   version_type=linux
25496   need_lib_prefix=no
25497   need_version=no
25498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25499   soname_spec='${libname}${release}${shared_ext}$major'
25500   shlibpath_var=LD_LIBRARY_PATH
25501   hardcode_into_libs=yes
25502   ;;
25503
25504 hpux9* | hpux10* | hpux11*)
25505   # Give a soname corresponding to the major version so that dld.sl refuses to
25506   # link against other versions.
25507   version_type=sunos
25508   need_lib_prefix=no
25509   need_version=no
25510   case $host_cpu in
25511   ia64*)
25512     shrext_cmds='.so'
25513     hardcode_into_libs=yes
25514     dynamic_linker="$host_os dld.so"
25515     shlibpath_var=LD_LIBRARY_PATH
25516     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25517     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25518     soname_spec='${libname}${release}${shared_ext}$major'
25519     if test "X$HPUX_IA64_MODE" = X32; then
25520       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25521     else
25522       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25523     fi
25524     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25525     ;;
25526    hppa*64*)
25527      shrext_cmds='.sl'
25528      hardcode_into_libs=yes
25529      dynamic_linker="$host_os dld.sl"
25530      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25531      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25532      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25533      soname_spec='${libname}${release}${shared_ext}$major'
25534      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25535      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25536      ;;
25537    *)
25538     shrext_cmds='.sl'
25539     dynamic_linker="$host_os dld.sl"
25540     shlibpath_var=SHLIB_PATH
25541     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25542     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25543     soname_spec='${libname}${release}${shared_ext}$major'
25544     ;;
25545   esac
25546   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25547   postinstall_cmds='chmod 555 $lib'
25548   ;;
25549
25550 interix3*)
25551   version_type=linux
25552   need_lib_prefix=no
25553   need_version=no
25554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25555   soname_spec='${libname}${release}${shared_ext}$major'
25556   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25557   shlibpath_var=LD_LIBRARY_PATH
25558   shlibpath_overrides_runpath=no
25559   hardcode_into_libs=yes
25560   ;;
25561
25562 irix5* | irix6* | nonstopux*)
25563   case $host_os in
25564     nonstopux*) version_type=nonstopux ;;
25565     *)
25566         if test "$lt_cv_prog_gnu_ld" = yes; then
25567                 version_type=linux
25568         else
25569                 version_type=irix
25570         fi ;;
25571   esac
25572   need_lib_prefix=no
25573   need_version=no
25574   soname_spec='${libname}${release}${shared_ext}$major'
25575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25576   case $host_os in
25577   irix5* | nonstopux*)
25578     libsuff= shlibsuff=
25579     ;;
25580   *)
25581     case $LD in # libtool.m4 will add one of these switches to LD
25582     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25583       libsuff= shlibsuff= libmagic=32-bit;;
25584     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25585       libsuff=32 shlibsuff=N32 libmagic=N32;;
25586     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25587       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25588     *) libsuff= shlibsuff= libmagic=never-match;;
25589     esac
25590     ;;
25591   esac
25592   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25593   shlibpath_overrides_runpath=no
25594   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25595   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25596   hardcode_into_libs=yes
25597   ;;
25598
25599 # No shared lib support for Linux oldld, aout, or coff.
25600 linux*oldld* | linux*aout* | linux*coff*)
25601   dynamic_linker=no
25602   ;;
25603
25604 # This must be Linux ELF.
25605 linux*)
25606   version_type=linux
25607   need_lib_prefix=no
25608   need_version=no
25609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25610   soname_spec='${libname}${release}${shared_ext}$major'
25611   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25612   shlibpath_var=LD_LIBRARY_PATH
25613   shlibpath_overrides_runpath=no
25614   # This implies no fast_install, which is unacceptable.
25615   # Some rework will be needed to allow for fast_install
25616   # before this can be enabled.
25617   hardcode_into_libs=yes
25618
25619   # Append ld.so.conf contents to the search path
25620   if test -f /etc/ld.so.conf; then
25621     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' ' '`
25622     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25623   fi
25624
25625   # We used to test for /lib/ld.so.1 and disable shared libraries on
25626   # powerpc, because MkLinux only supported shared libraries with the
25627   # GNU dynamic linker.  Since this was broken with cross compilers,
25628   # most powerpc-linux boxes support dynamic linking these days and
25629   # people can always --disable-shared, the test was removed, and we
25630   # assume the GNU/Linux dynamic linker is in use.
25631   dynamic_linker='GNU/Linux ld.so'
25632   ;;
25633
25634 knetbsd*-gnu)
25635   version_type=linux
25636   need_lib_prefix=no
25637   need_version=no
25638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25639   soname_spec='${libname}${release}${shared_ext}$major'
25640   shlibpath_var=LD_LIBRARY_PATH
25641   shlibpath_overrides_runpath=no
25642   hardcode_into_libs=yes
25643   dynamic_linker='GNU ld.so'
25644   ;;
25645
25646 netbsd*)
25647   version_type=sunos
25648   need_lib_prefix=no
25649   need_version=no
25650   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25651     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25652     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25653     dynamic_linker='NetBSD (a.out) ld.so'
25654   else
25655     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25656     soname_spec='${libname}${release}${shared_ext}$major'
25657     dynamic_linker='NetBSD ld.elf_so'
25658   fi
25659   shlibpath_var=LD_LIBRARY_PATH
25660   shlibpath_overrides_runpath=yes
25661   hardcode_into_libs=yes
25662   ;;
25663
25664 newsos6)
25665   version_type=linux
25666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25667   shlibpath_var=LD_LIBRARY_PATH
25668   shlibpath_overrides_runpath=yes
25669   ;;
25670
25671 nto-qnx*)
25672   version_type=linux
25673   need_lib_prefix=no
25674   need_version=no
25675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25676   soname_spec='${libname}${release}${shared_ext}$major'
25677   shlibpath_var=LD_LIBRARY_PATH
25678   shlibpath_overrides_runpath=yes
25679   ;;
25680
25681 openbsd*)
25682   version_type=sunos
25683   sys_lib_dlsearch_path_spec="/usr/lib"
25684   need_lib_prefix=no
25685   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25686   case $host_os in
25687     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25688     *)                         need_version=no  ;;
25689   esac
25690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25691   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25692   shlibpath_var=LD_LIBRARY_PATH
25693   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25694     case $host_os in
25695       openbsd2.[89] | openbsd2.[89].*)
25696         shlibpath_overrides_runpath=no
25697         ;;
25698       *)
25699         shlibpath_overrides_runpath=yes
25700         ;;
25701       esac
25702   else
25703     shlibpath_overrides_runpath=yes
25704   fi
25705   ;;
25706
25707 os2*)
25708   libname_spec='$name'
25709   shrext_cmds=".dll"
25710   need_lib_prefix=no
25711   library_names_spec='$libname${shared_ext} $libname.a'
25712   dynamic_linker='OS/2 ld.exe'
25713   shlibpath_var=LIBPATH
25714   ;;
25715
25716 osf3* | osf4* | osf5*)
25717   version_type=osf
25718   need_lib_prefix=no
25719   need_version=no
25720   soname_spec='${libname}${release}${shared_ext}$major'
25721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25722   shlibpath_var=LD_LIBRARY_PATH
25723   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25724   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25725   ;;
25726
25727 solaris*)
25728   version_type=linux
25729   need_lib_prefix=no
25730   need_version=no
25731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25732   soname_spec='${libname}${release}${shared_ext}$major'
25733   shlibpath_var=LD_LIBRARY_PATH
25734   shlibpath_overrides_runpath=yes
25735   hardcode_into_libs=yes
25736   # ldd complains unless libraries are executable
25737   postinstall_cmds='chmod +x $lib'
25738   ;;
25739
25740 sunos4*)
25741   version_type=sunos
25742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25743   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25744   shlibpath_var=LD_LIBRARY_PATH
25745   shlibpath_overrides_runpath=yes
25746   if test "$with_gnu_ld" = yes; then
25747     need_lib_prefix=no
25748   fi
25749   need_version=yes
25750   ;;
25751
25752 sysv4 | sysv4.3*)
25753   version_type=linux
25754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25755   soname_spec='${libname}${release}${shared_ext}$major'
25756   shlibpath_var=LD_LIBRARY_PATH
25757   case $host_vendor in
25758     sni)
25759       shlibpath_overrides_runpath=no
25760       need_lib_prefix=no
25761       export_dynamic_flag_spec='${wl}-Blargedynsym'
25762       runpath_var=LD_RUN_PATH
25763       ;;
25764     siemens)
25765       need_lib_prefix=no
25766       ;;
25767     motorola)
25768       need_lib_prefix=no
25769       need_version=no
25770       shlibpath_overrides_runpath=no
25771       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25772       ;;
25773   esac
25774   ;;
25775
25776 sysv4*MP*)
25777   if test -d /usr/nec ;then
25778     version_type=linux
25779     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25780     soname_spec='$libname${shared_ext}.$major'
25781     shlibpath_var=LD_LIBRARY_PATH
25782   fi
25783   ;;
25784
25785 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25786   version_type=freebsd-elf
25787   need_lib_prefix=no
25788   need_version=no
25789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25790   soname_spec='${libname}${release}${shared_ext}$major'
25791   shlibpath_var=LD_LIBRARY_PATH
25792   hardcode_into_libs=yes
25793   if test "$with_gnu_ld" = yes; then
25794     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25795     shlibpath_overrides_runpath=no
25796   else
25797     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25798     shlibpath_overrides_runpath=yes
25799     case $host_os in
25800       sco3.2v5*)
25801         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25802         ;;
25803     esac
25804   fi
25805   sys_lib_dlsearch_path_spec='/usr/lib'
25806   ;;
25807
25808 uts4*)
25809   version_type=linux
25810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25811   soname_spec='${libname}${release}${shared_ext}$major'
25812   shlibpath_var=LD_LIBRARY_PATH
25813   ;;
25814
25815 *)
25816   dynamic_linker=no
25817   ;;
25818 esac
25819 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25820 echo "${ECHO_T}$dynamic_linker" >&6; }
25821 test "$dynamic_linker" = no && can_build_shared=no
25822
25823 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25824 if test "$GCC" = yes; then
25825   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25826 fi
25827
25828 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25829 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25830 hardcode_action_GCJ=
25831 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25832    test -n "$runpath_var_GCJ" || \
25833    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25834
25835   # We can hardcode non-existant directories.
25836   if test "$hardcode_direct_GCJ" != no &&
25837      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25838      # have to relink, otherwise we might link with an installed library
25839      # when we should be linking with a yet-to-be-installed one
25840      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25841      test "$hardcode_minus_L_GCJ" != no; then
25842     # Linking always hardcodes the temporary library directory.
25843     hardcode_action_GCJ=relink
25844   else
25845     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25846     hardcode_action_GCJ=immediate
25847   fi
25848 else
25849   # We cannot hardcode anything, or else we can only hardcode existing
25850   # directories.
25851   hardcode_action_GCJ=unsupported
25852 fi
25853 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25854 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25855
25856 if test "$hardcode_action_GCJ" = relink; then
25857   # Fast installation is not supported
25858   enable_fast_install=no
25859 elif test "$shlibpath_overrides_runpath" = yes ||
25860      test "$enable_shared" = no; then
25861   # Fast installation is not necessary
25862   enable_fast_install=needless
25863 fi
25864
25865
25866 # The else clause should only fire when bootstrapping the
25867 # libtool distribution, otherwise you forgot to ship ltmain.sh
25868 # with your package, and you will get complaints that there are
25869 # no rules to generate ltmain.sh.
25870 if test -f "$ltmain"; then
25871   # See if we are running on zsh, and set the options which allow our commands through
25872   # without removal of \ escapes.
25873   if test -n "${ZSH_VERSION+set}" ; then
25874     setopt NO_GLOB_SUBST
25875   fi
25876   # Now quote all the things that may contain metacharacters while being
25877   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25878   # variables and quote the copies for generation of the libtool script.
25879   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25880     SED SHELL STRIP \
25881     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25882     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25883     deplibs_check_method reload_flag reload_cmds need_locks \
25884     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25885     lt_cv_sys_global_symbol_to_c_name_address \
25886     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25887     old_postinstall_cmds old_postuninstall_cmds \
25888     compiler_GCJ \
25889     CC_GCJ \
25890     LD_GCJ \
25891     lt_prog_compiler_wl_GCJ \
25892     lt_prog_compiler_pic_GCJ \
25893     lt_prog_compiler_static_GCJ \
25894     lt_prog_compiler_no_builtin_flag_GCJ \
25895     export_dynamic_flag_spec_GCJ \
25896     thread_safe_flag_spec_GCJ \
25897     whole_archive_flag_spec_GCJ \
25898     enable_shared_with_static_runtimes_GCJ \
25899     old_archive_cmds_GCJ \
25900     old_archive_from_new_cmds_GCJ \
25901     predep_objects_GCJ \
25902     postdep_objects_GCJ \
25903     predeps_GCJ \
25904     postdeps_GCJ \
25905     compiler_lib_search_path_GCJ \
25906     archive_cmds_GCJ \
25907     archive_expsym_cmds_GCJ \
25908     postinstall_cmds_GCJ \
25909     postuninstall_cmds_GCJ \
25910     old_archive_from_expsyms_cmds_GCJ \
25911     allow_undefined_flag_GCJ \
25912     no_undefined_flag_GCJ \
25913     export_symbols_cmds_GCJ \
25914     hardcode_libdir_flag_spec_GCJ \
25915     hardcode_libdir_flag_spec_ld_GCJ \
25916     hardcode_libdir_separator_GCJ \
25917     hardcode_automatic_GCJ \
25918     module_cmds_GCJ \
25919     module_expsym_cmds_GCJ \
25920     lt_cv_prog_compiler_c_o_GCJ \
25921     exclude_expsyms_GCJ \
25922     include_expsyms_GCJ; do
25923
25924     case $var in
25925     old_archive_cmds_GCJ | \
25926     old_archive_from_new_cmds_GCJ | \
25927     archive_cmds_GCJ | \
25928     archive_expsym_cmds_GCJ | \
25929     module_cmds_GCJ | \
25930     module_expsym_cmds_GCJ | \
25931     old_archive_from_expsyms_cmds_GCJ | \
25932     export_symbols_cmds_GCJ | \
25933     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25934     postinstall_cmds | postuninstall_cmds | \
25935     old_postinstall_cmds | old_postuninstall_cmds | \
25936     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25937       # Double-quote double-evaled strings.
25938       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25939       ;;
25940     *)
25941       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25942       ;;
25943     esac
25944   done
25945
25946   case $lt_echo in
25947   *'\$0 --fallback-echo"')
25948     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25949     ;;
25950   esac
25951
25952 cfgfile="$ofile"
25953
25954   cat <<__EOF__ >> "$cfgfile"
25955 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25956
25957 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25958
25959 # Shell to use when invoking shell scripts.
25960 SHELL=$lt_SHELL
25961
25962 # Whether or not to build shared libraries.
25963 build_libtool_libs=$enable_shared
25964
25965 # Whether or not to build static libraries.
25966 build_old_libs=$enable_static
25967
25968 # Whether or not to add -lc for building shared libraries.
25969 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25970
25971 # Whether or not to disallow shared libs when runtime libs are static
25972 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25973
25974 # Whether or not to optimize for fast installation.
25975 fast_install=$enable_fast_install
25976
25977 # The host system.
25978 host_alias=$host_alias
25979 host=$host
25980 host_os=$host_os
25981
25982 # The build system.
25983 build_alias=$build_alias
25984 build=$build
25985 build_os=$build_os
25986
25987 # An echo program that does not interpret backslashes.
25988 echo=$lt_echo
25989
25990 # The archiver.
25991 AR=$lt_AR
25992 AR_FLAGS=$lt_AR_FLAGS
25993
25994 # A C compiler.
25995 LTCC=$lt_LTCC
25996
25997 # LTCC compiler flags.
25998 LTCFLAGS=$lt_LTCFLAGS
25999
26000 # A language-specific compiler.
26001 CC=$lt_compiler_GCJ
26002
26003 # Is the compiler the GNU C compiler?
26004 with_gcc=$GCC_GCJ
26005
26006 # An ERE matcher.
26007 EGREP=$lt_EGREP
26008
26009 # The linker used to build libraries.
26010 LD=$lt_LD_GCJ
26011
26012 # Whether we need hard or soft links.
26013 LN_S=$lt_LN_S
26014
26015 # A BSD-compatible nm program.
26016 NM=$lt_NM
26017
26018 # A symbol stripping program
26019 STRIP=$lt_STRIP
26020
26021 # Used to examine libraries when file_magic_cmd begins "file"
26022 MAGIC_CMD=$MAGIC_CMD
26023
26024 # Used on cygwin: DLL creation program.
26025 DLLTOOL="$DLLTOOL"
26026
26027 # Used on cygwin: object dumper.
26028 OBJDUMP="$OBJDUMP"
26029
26030 # Used on cygwin: assembler.
26031 AS="$AS"
26032
26033 # The name of the directory that contains temporary libtool files.
26034 objdir=$objdir
26035
26036 # How to create reloadable object files.
26037 reload_flag=$lt_reload_flag
26038 reload_cmds=$lt_reload_cmds
26039
26040 # How to pass a linker flag through the compiler.
26041 wl=$lt_lt_prog_compiler_wl_GCJ
26042
26043 # Object file suffix (normally "o").
26044 objext="$ac_objext"
26045
26046 # Old archive suffix (normally "a").
26047 libext="$libext"
26048
26049 # Shared library suffix (normally ".so").
26050 shrext_cmds='$shrext_cmds'
26051
26052 # Executable file suffix (normally "").
26053 exeext="$exeext"
26054
26055 # Additional compiler flags for building library objects.
26056 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26057 pic_mode=$pic_mode
26058
26059 # What is the maximum length of a command?
26060 max_cmd_len=$lt_cv_sys_max_cmd_len
26061
26062 # Does compiler simultaneously support -c and -o options?
26063 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26064
26065 # Must we lock files when doing compilation?
26066 need_locks=$lt_need_locks
26067
26068 # Do we need the lib prefix for modules?
26069 need_lib_prefix=$need_lib_prefix
26070
26071 # Do we need a version for libraries?
26072 need_version=$need_version
26073
26074 # Whether dlopen is supported.
26075 dlopen_support=$enable_dlopen
26076
26077 # Whether dlopen of programs is supported.
26078 dlopen_self=$enable_dlopen_self
26079
26080 # Whether dlopen of statically linked programs is supported.
26081 dlopen_self_static=$enable_dlopen_self_static
26082
26083 # Compiler flag to prevent dynamic linking.
26084 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26085
26086 # Compiler flag to turn off builtin functions.
26087 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26088
26089 # Compiler flag to allow reflexive dlopens.
26090 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26091
26092 # Compiler flag to generate shared objects directly from archives.
26093 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26094
26095 # Compiler flag to generate thread-safe objects.
26096 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26097
26098 # Library versioning type.
26099 version_type=$version_type
26100
26101 # Format of library name prefix.
26102 libname_spec=$lt_libname_spec
26103
26104 # List of archive names.  First name is the real one, the rest are links.
26105 # The last name is the one that the linker finds with -lNAME.
26106 library_names_spec=$lt_library_names_spec
26107
26108 # The coded name of the library, if different from the real name.
26109 soname_spec=$lt_soname_spec
26110
26111 # Commands used to build and install an old-style archive.
26112 RANLIB=$lt_RANLIB
26113 old_archive_cmds=$lt_old_archive_cmds_GCJ
26114 old_postinstall_cmds=$lt_old_postinstall_cmds
26115 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26116
26117 # Create an old-style archive from a shared archive.
26118 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26119
26120 # Create a temporary old-style archive to link instead of a shared archive.
26121 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26122
26123 # Commands used to build and install a shared archive.
26124 archive_cmds=$lt_archive_cmds_GCJ
26125 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26126 postinstall_cmds=$lt_postinstall_cmds
26127 postuninstall_cmds=$lt_postuninstall_cmds
26128
26129 # Commands used to build a loadable module (assumed same as above if empty)
26130 module_cmds=$lt_module_cmds_GCJ
26131 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26132
26133 # Commands to strip libraries.
26134 old_striplib=$lt_old_striplib
26135 striplib=$lt_striplib
26136
26137 # Dependencies to place before the objects being linked to create a
26138 # shared library.
26139 predep_objects=$lt_predep_objects_GCJ
26140
26141 # Dependencies to place after the objects being linked to create a
26142 # shared library.
26143 postdep_objects=$lt_postdep_objects_GCJ
26144
26145 # Dependencies to place before the objects being linked to create a
26146 # shared library.
26147 predeps=$lt_predeps_GCJ
26148
26149 # Dependencies to place after the objects being linked to create a
26150 # shared library.
26151 postdeps=$lt_postdeps_GCJ
26152
26153 # The library search path used internally by the compiler when linking
26154 # a shared library.
26155 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26156
26157 # Method to check whether dependent libraries are shared objects.
26158 deplibs_check_method=$lt_deplibs_check_method
26159
26160 # Command to use when deplibs_check_method == file_magic.
26161 file_magic_cmd=$lt_file_magic_cmd
26162
26163 # Flag that allows shared libraries with undefined symbols to be built.
26164 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26165
26166 # Flag that forces no undefined symbols.
26167 no_undefined_flag=$lt_no_undefined_flag_GCJ
26168
26169 # Commands used to finish a libtool library installation in a directory.
26170 finish_cmds=$lt_finish_cmds
26171
26172 # Same as above, but a single script fragment to be evaled but not shown.
26173 finish_eval=$lt_finish_eval
26174
26175 # Take the output of nm and produce a listing of raw symbols and C names.
26176 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26177
26178 # Transform the output of nm in a proper C declaration
26179 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26180
26181 # Transform the output of nm in a C name address pair
26182 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26183
26184 # This is the shared library runtime path variable.
26185 runpath_var=$runpath_var
26186
26187 # This is the shared library path variable.
26188 shlibpath_var=$shlibpath_var
26189
26190 # Is shlibpath searched before the hard-coded library search path?
26191 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26192
26193 # How to hardcode a shared library path into an executable.
26194 hardcode_action=$hardcode_action_GCJ
26195
26196 # Whether we should hardcode library paths into libraries.
26197 hardcode_into_libs=$hardcode_into_libs
26198
26199 # Flag to hardcode \$libdir into a binary during linking.
26200 # This must work even if \$libdir does not exist.
26201 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26202
26203 # If ld is used when linking, flag to hardcode \$libdir into
26204 # a binary during linking. This must work even if \$libdir does
26205 # not exist.
26206 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26207
26208 # Whether we need a single -rpath flag with a separated argument.
26209 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26210
26211 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26212 # resulting binary.
26213 hardcode_direct=$hardcode_direct_GCJ
26214
26215 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26216 # resulting binary.
26217 hardcode_minus_L=$hardcode_minus_L_GCJ
26218
26219 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26220 # the resulting binary.
26221 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26222
26223 # Set to yes if building a shared library automatically hardcodes DIR into the library
26224 # and all subsequent libraries and executables linked against it.
26225 hardcode_automatic=$hardcode_automatic_GCJ
26226
26227 # Variables whose values should be saved in libtool wrapper scripts and
26228 # restored at relink time.
26229 variables_saved_for_relink="$variables_saved_for_relink"
26230
26231 # Whether libtool must link a program against all its dependency libraries.
26232 link_all_deplibs=$link_all_deplibs_GCJ
26233
26234 # Compile-time system search path for libraries
26235 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26236
26237 # Run-time system search path for libraries
26238 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26239
26240 # Fix the shell variable \$srcfile for the compiler.
26241 fix_srcfile_path="$fix_srcfile_path_GCJ"
26242
26243 # Set to yes if exported symbols are required.
26244 always_export_symbols=$always_export_symbols_GCJ
26245
26246 # The commands to list exported symbols.
26247 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26248
26249 # The commands to extract the exported symbol list from a shared archive.
26250 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26251
26252 # Symbols that should not be listed in the preloaded symbols.
26253 exclude_expsyms=$lt_exclude_expsyms_GCJ
26254
26255 # Symbols that must always be exported.
26256 include_expsyms=$lt_include_expsyms_GCJ
26257
26258 # ### END LIBTOOL TAG CONFIG: $tagname
26259
26260 __EOF__
26261
26262
26263 else
26264   # If there is no Makefile yet, we rely on a make rule to execute
26265   # `config.status --recheck' to rerun these tests and create the
26266   # libtool script then.
26267   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26268   if test -f "$ltmain_in"; then
26269     test -f Makefile && make "$ltmain"
26270   fi
26271 fi
26272
26273
26274 ac_ext=c
26275 ac_cpp='$CPP $CPPFLAGS'
26276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26279
26280 CC="$lt_save_CC"
26281
26282         else
26283           tagname=""
26284         fi
26285         ;;
26286
26287       RC)
26288         ac_ext=c
26289 ac_cpp='$CPP $CPPFLAGS'
26290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26293
26294
26295 # Source file extension for RC test sources.
26296 ac_ext=rc
26297
26298 # Object file extension for compiled RC test sources.
26299 objext=o
26300 objext_RC=$objext
26301
26302 # Code to be used in simple compile tests
26303 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26304
26305 # Code to be used in simple link tests
26306 lt_simple_link_test_code="$lt_simple_compile_test_code"
26307
26308 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26309
26310 # If no C compiler was specified, use CC.
26311 LTCC=${LTCC-"$CC"}
26312
26313 # If no C compiler flags were specified, use CFLAGS.
26314 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26315
26316 # Allow CC to be a program name with arguments.
26317 compiler=$CC
26318
26319
26320 # save warnings/boilerplate of simple test code
26321 ac_outfile=conftest.$ac_objext
26322 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26323 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26324 _lt_compiler_boilerplate=`cat conftest.err`
26325 $rm conftest*
26326
26327 ac_outfile=conftest.$ac_objext
26328 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26329 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26330 _lt_linker_boilerplate=`cat conftest.err`
26331 $rm conftest*
26332
26333
26334 # Allow CC to be a program name with arguments.
26335 lt_save_CC="$CC"
26336 CC=${RC-"windres"}
26337 compiler=$CC
26338 compiler_RC=$CC
26339 for cc_temp in $compiler""; do
26340   case $cc_temp in
26341     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26342     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26343     \-*) ;;
26344     *) break;;
26345   esac
26346 done
26347 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26348
26349 lt_cv_prog_compiler_c_o_RC=yes
26350
26351 # The else clause should only fire when bootstrapping the
26352 # libtool distribution, otherwise you forgot to ship ltmain.sh
26353 # with your package, and you will get complaints that there are
26354 # no rules to generate ltmain.sh.
26355 if test -f "$ltmain"; then
26356   # See if we are running on zsh, and set the options which allow our commands through
26357   # without removal of \ escapes.
26358   if test -n "${ZSH_VERSION+set}" ; then
26359     setopt NO_GLOB_SUBST
26360   fi
26361   # Now quote all the things that may contain metacharacters while being
26362   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26363   # variables and quote the copies for generation of the libtool script.
26364   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26365     SED SHELL STRIP \
26366     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26367     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26368     deplibs_check_method reload_flag reload_cmds need_locks \
26369     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26370     lt_cv_sys_global_symbol_to_c_name_address \
26371     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26372     old_postinstall_cmds old_postuninstall_cmds \
26373     compiler_RC \
26374     CC_RC \
26375     LD_RC \
26376     lt_prog_compiler_wl_RC \
26377     lt_prog_compiler_pic_RC \
26378     lt_prog_compiler_static_RC \
26379     lt_prog_compiler_no_builtin_flag_RC \
26380     export_dynamic_flag_spec_RC \
26381     thread_safe_flag_spec_RC \
26382     whole_archive_flag_spec_RC \
26383     enable_shared_with_static_runtimes_RC \
26384     old_archive_cmds_RC \
26385     old_archive_from_new_cmds_RC \
26386     predep_objects_RC \
26387     postdep_objects_RC \
26388     predeps_RC \
26389     postdeps_RC \
26390     compiler_lib_search_path_RC \
26391     archive_cmds_RC \
26392     archive_expsym_cmds_RC \
26393     postinstall_cmds_RC \
26394     postuninstall_cmds_RC \
26395     old_archive_from_expsyms_cmds_RC \
26396     allow_undefined_flag_RC \
26397     no_undefined_flag_RC \
26398     export_symbols_cmds_RC \
26399     hardcode_libdir_flag_spec_RC \
26400     hardcode_libdir_flag_spec_ld_RC \
26401     hardcode_libdir_separator_RC \
26402     hardcode_automatic_RC \
26403     module_cmds_RC \
26404     module_expsym_cmds_RC \
26405     lt_cv_prog_compiler_c_o_RC \
26406     exclude_expsyms_RC \
26407     include_expsyms_RC; do
26408
26409     case $var in
26410     old_archive_cmds_RC | \
26411     old_archive_from_new_cmds_RC | \
26412     archive_cmds_RC | \
26413     archive_expsym_cmds_RC | \
26414     module_cmds_RC | \
26415     module_expsym_cmds_RC | \
26416     old_archive_from_expsyms_cmds_RC | \
26417     export_symbols_cmds_RC | \
26418     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26419     postinstall_cmds | postuninstall_cmds | \
26420     old_postinstall_cmds | old_postuninstall_cmds | \
26421     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26422       # Double-quote double-evaled strings.
26423       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26424       ;;
26425     *)
26426       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26427       ;;
26428     esac
26429   done
26430
26431   case $lt_echo in
26432   *'\$0 --fallback-echo"')
26433     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26434     ;;
26435   esac
26436
26437 cfgfile="$ofile"
26438
26439   cat <<__EOF__ >> "$cfgfile"
26440 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26441
26442 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26443
26444 # Shell to use when invoking shell scripts.
26445 SHELL=$lt_SHELL
26446
26447 # Whether or not to build shared libraries.
26448 build_libtool_libs=$enable_shared
26449
26450 # Whether or not to build static libraries.
26451 build_old_libs=$enable_static
26452
26453 # Whether or not to add -lc for building shared libraries.
26454 build_libtool_need_lc=$archive_cmds_need_lc_RC
26455
26456 # Whether or not to disallow shared libs when runtime libs are static
26457 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26458
26459 # Whether or not to optimize for fast installation.
26460 fast_install=$enable_fast_install
26461
26462 # The host system.
26463 host_alias=$host_alias
26464 host=$host
26465 host_os=$host_os
26466
26467 # The build system.
26468 build_alias=$build_alias
26469 build=$build
26470 build_os=$build_os
26471
26472 # An echo program that does not interpret backslashes.
26473 echo=$lt_echo
26474
26475 # The archiver.
26476 AR=$lt_AR
26477 AR_FLAGS=$lt_AR_FLAGS
26478
26479 # A C compiler.
26480 LTCC=$lt_LTCC
26481
26482 # LTCC compiler flags.
26483 LTCFLAGS=$lt_LTCFLAGS
26484
26485 # A language-specific compiler.
26486 CC=$lt_compiler_RC
26487
26488 # Is the compiler the GNU C compiler?
26489 with_gcc=$GCC_RC
26490
26491 # An ERE matcher.
26492 EGREP=$lt_EGREP
26493
26494 # The linker used to build libraries.
26495 LD=$lt_LD_RC
26496
26497 # Whether we need hard or soft links.
26498 LN_S=$lt_LN_S
26499
26500 # A BSD-compatible nm program.
26501 NM=$lt_NM
26502
26503 # A symbol stripping program
26504 STRIP=$lt_STRIP
26505
26506 # Used to examine libraries when file_magic_cmd begins "file"
26507 MAGIC_CMD=$MAGIC_CMD
26508
26509 # Used on cygwin: DLL creation program.
26510 DLLTOOL="$DLLTOOL"
26511
26512 # Used on cygwin: object dumper.
26513 OBJDUMP="$OBJDUMP"
26514
26515 # Used on cygwin: assembler.
26516 AS="$AS"
26517
26518 # The name of the directory that contains temporary libtool files.
26519 objdir=$objdir
26520
26521 # How to create reloadable object files.
26522 reload_flag=$lt_reload_flag
26523 reload_cmds=$lt_reload_cmds
26524
26525 # How to pass a linker flag through the compiler.
26526 wl=$lt_lt_prog_compiler_wl_RC
26527
26528 # Object file suffix (normally "o").
26529 objext="$ac_objext"
26530
26531 # Old archive suffix (normally "a").
26532 libext="$libext"
26533
26534 # Shared library suffix (normally ".so").
26535 shrext_cmds='$shrext_cmds'
26536
26537 # Executable file suffix (normally "").
26538 exeext="$exeext"
26539
26540 # Additional compiler flags for building library objects.
26541 pic_flag=$lt_lt_prog_compiler_pic_RC
26542 pic_mode=$pic_mode
26543
26544 # What is the maximum length of a command?
26545 max_cmd_len=$lt_cv_sys_max_cmd_len
26546
26547 # Does compiler simultaneously support -c and -o options?
26548 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26549
26550 # Must we lock files when doing compilation?
26551 need_locks=$lt_need_locks
26552
26553 # Do we need the lib prefix for modules?
26554 need_lib_prefix=$need_lib_prefix
26555
26556 # Do we need a version for libraries?
26557 need_version=$need_version
26558
26559 # Whether dlopen is supported.
26560 dlopen_support=$enable_dlopen
26561
26562 # Whether dlopen of programs is supported.
26563 dlopen_self=$enable_dlopen_self
26564
26565 # Whether dlopen of statically linked programs is supported.
26566 dlopen_self_static=$enable_dlopen_self_static
26567
26568 # Compiler flag to prevent dynamic linking.
26569 link_static_flag=$lt_lt_prog_compiler_static_RC
26570
26571 # Compiler flag to turn off builtin functions.
26572 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26573
26574 # Compiler flag to allow reflexive dlopens.
26575 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26576
26577 # Compiler flag to generate shared objects directly from archives.
26578 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26579
26580 # Compiler flag to generate thread-safe objects.
26581 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26582
26583 # Library versioning type.
26584 version_type=$version_type
26585
26586 # Format of library name prefix.
26587 libname_spec=$lt_libname_spec
26588
26589 # List of archive names.  First name is the real one, the rest are links.
26590 # The last name is the one that the linker finds with -lNAME.
26591 library_names_spec=$lt_library_names_spec
26592
26593 # The coded name of the library, if different from the real name.
26594 soname_spec=$lt_soname_spec
26595
26596 # Commands used to build and install an old-style archive.
26597 RANLIB=$lt_RANLIB
26598 old_archive_cmds=$lt_old_archive_cmds_RC
26599 old_postinstall_cmds=$lt_old_postinstall_cmds
26600 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26601
26602 # Create an old-style archive from a shared archive.
26603 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26604
26605 # Create a temporary old-style archive to link instead of a shared archive.
26606 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26607
26608 # Commands used to build and install a shared archive.
26609 archive_cmds=$lt_archive_cmds_RC
26610 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26611 postinstall_cmds=$lt_postinstall_cmds
26612 postuninstall_cmds=$lt_postuninstall_cmds
26613
26614 # Commands used to build a loadable module (assumed same as above if empty)
26615 module_cmds=$lt_module_cmds_RC
26616 module_expsym_cmds=$lt_module_expsym_cmds_RC
26617
26618 # Commands to strip libraries.
26619 old_striplib=$lt_old_striplib
26620 striplib=$lt_striplib
26621
26622 # Dependencies to place before the objects being linked to create a
26623 # shared library.
26624 predep_objects=$lt_predep_objects_RC
26625
26626 # Dependencies to place after the objects being linked to create a
26627 # shared library.
26628 postdep_objects=$lt_postdep_objects_RC
26629
26630 # Dependencies to place before the objects being linked to create a
26631 # shared library.
26632 predeps=$lt_predeps_RC
26633
26634 # Dependencies to place after the objects being linked to create a
26635 # shared library.
26636 postdeps=$lt_postdeps_RC
26637
26638 # The library search path used internally by the compiler when linking
26639 # a shared library.
26640 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26641
26642 # Method to check whether dependent libraries are shared objects.
26643 deplibs_check_method=$lt_deplibs_check_method
26644
26645 # Command to use when deplibs_check_method == file_magic.
26646 file_magic_cmd=$lt_file_magic_cmd
26647
26648 # Flag that allows shared libraries with undefined symbols to be built.
26649 allow_undefined_flag=$lt_allow_undefined_flag_RC
26650
26651 # Flag that forces no undefined symbols.
26652 no_undefined_flag=$lt_no_undefined_flag_RC
26653
26654 # Commands used to finish a libtool library installation in a directory.
26655 finish_cmds=$lt_finish_cmds
26656
26657 # Same as above, but a single script fragment to be evaled but not shown.
26658 finish_eval=$lt_finish_eval
26659
26660 # Take the output of nm and produce a listing of raw symbols and C names.
26661 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26662
26663 # Transform the output of nm in a proper C declaration
26664 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26665
26666 # Transform the output of nm in a C name address pair
26667 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26668
26669 # This is the shared library runtime path variable.
26670 runpath_var=$runpath_var
26671
26672 # This is the shared library path variable.
26673 shlibpath_var=$shlibpath_var
26674
26675 # Is shlibpath searched before the hard-coded library search path?
26676 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26677
26678 # How to hardcode a shared library path into an executable.
26679 hardcode_action=$hardcode_action_RC
26680
26681 # Whether we should hardcode library paths into libraries.
26682 hardcode_into_libs=$hardcode_into_libs
26683
26684 # Flag to hardcode \$libdir into a binary during linking.
26685 # This must work even if \$libdir does not exist.
26686 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26687
26688 # If ld is used when linking, flag to hardcode \$libdir into
26689 # a binary during linking. This must work even if \$libdir does
26690 # not exist.
26691 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26692
26693 # Whether we need a single -rpath flag with a separated argument.
26694 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26695
26696 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26697 # resulting binary.
26698 hardcode_direct=$hardcode_direct_RC
26699
26700 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26701 # resulting binary.
26702 hardcode_minus_L=$hardcode_minus_L_RC
26703
26704 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26705 # the resulting binary.
26706 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26707
26708 # Set to yes if building a shared library automatically hardcodes DIR into the library
26709 # and all subsequent libraries and executables linked against it.
26710 hardcode_automatic=$hardcode_automatic_RC
26711
26712 # Variables whose values should be saved in libtool wrapper scripts and
26713 # restored at relink time.
26714 variables_saved_for_relink="$variables_saved_for_relink"
26715
26716 # Whether libtool must link a program against all its dependency libraries.
26717 link_all_deplibs=$link_all_deplibs_RC
26718
26719 # Compile-time system search path for libraries
26720 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26721
26722 # Run-time system search path for libraries
26723 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26724
26725 # Fix the shell variable \$srcfile for the compiler.
26726 fix_srcfile_path="$fix_srcfile_path_RC"
26727
26728 # Set to yes if exported symbols are required.
26729 always_export_symbols=$always_export_symbols_RC
26730
26731 # The commands to list exported symbols.
26732 export_symbols_cmds=$lt_export_symbols_cmds_RC
26733
26734 # The commands to extract the exported symbol list from a shared archive.
26735 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26736
26737 # Symbols that should not be listed in the preloaded symbols.
26738 exclude_expsyms=$lt_exclude_expsyms_RC
26739
26740 # Symbols that must always be exported.
26741 include_expsyms=$lt_include_expsyms_RC
26742
26743 # ### END LIBTOOL TAG CONFIG: $tagname
26744
26745 __EOF__
26746
26747
26748 else
26749   # If there is no Makefile yet, we rely on a make rule to execute
26750   # `config.status --recheck' to rerun these tests and create the
26751   # libtool script then.
26752   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26753   if test -f "$ltmain_in"; then
26754     test -f Makefile && make "$ltmain"
26755   fi
26756 fi
26757
26758
26759 ac_ext=c
26760 ac_cpp='$CPP $CPPFLAGS'
26761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26764
26765 CC="$lt_save_CC"
26766
26767         ;;
26768
26769       *)
26770         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26771 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26772    { (exit 1); exit 1; }; }
26773         ;;
26774       esac
26775
26776       # Append the new tag name to the list of available tags.
26777       if test -n "$tagname" ; then
26778       available_tags="$available_tags $tagname"
26779     fi
26780     fi
26781   done
26782   IFS="$lt_save_ifs"
26783
26784   # Now substitute the updated list of available tags.
26785   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26786     mv "${ofile}T" "$ofile"
26787     chmod +x "$ofile"
26788   else
26789     rm -f "${ofile}T"
26790     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26791 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26792    { (exit 1); exit 1; }; }
26793   fi
26794 fi
26795
26796
26797
26798 # This can be used to rebuild libtool when needed
26799 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26800
26801 # Always use our own libtool.
26802 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26803
26804 # Prevent multiple expansion
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816
26817
26818
26819
26820
26821
26822
26823
26824
26825
26826 if test "$lt_cv_dlopen_self" = "yes" ; then
26827
26828 cat >>confdefs.h <<\_ACEOF
26829 #define CAN_DLOPEN_SELF 1
26830 _ACEOF
26831
26832 fi
26833
26834 if test "$WITH_LLVMGCCDIR" = "default" ; then
26835   LLVMGCC="llvm-gcc${EXEEXT}"
26836   LLVMGXX="llvm-g++${EXEEXT}"
26837   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26838 set dummy $LLVMGCC; ac_word=$2
26839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26841 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26842   echo $ECHO_N "(cached) $ECHO_C" >&6
26843 else
26844   case $LLVMGCC in
26845   [\\/]* | ?:[\\/]*)
26846   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26847   ;;
26848   *)
26849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26850 for as_dir in $PATH
26851 do
26852   IFS=$as_save_IFS
26853   test -z "$as_dir" && as_dir=.
26854   for ac_exec_ext in '' $ac_executable_extensions; do
26855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26856     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26858     break 2
26859   fi
26860 done
26861 done
26862 IFS=$as_save_IFS
26863
26864   ;;
26865 esac
26866 fi
26867 LLVMGCC=$ac_cv_path_LLVMGCC
26868 if test -n "$LLVMGCC"; then
26869   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26870 echo "${ECHO_T}$LLVMGCC" >&6; }
26871 else
26872   { echo "$as_me:$LINENO: result: no" >&5
26873 echo "${ECHO_T}no" >&6; }
26874 fi
26875
26876
26877   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26878 set dummy $LLVMGXX; ac_word=$2
26879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26881 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26882   echo $ECHO_N "(cached) $ECHO_C" >&6
26883 else
26884   case $LLVMGXX in
26885   [\\/]* | ?:[\\/]*)
26886   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26887   ;;
26888   *)
26889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26890 for as_dir in $PATH
26891 do
26892   IFS=$as_save_IFS
26893   test -z "$as_dir" && as_dir=.
26894   for ac_exec_ext in '' $ac_executable_extensions; do
26895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26896     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26898     break 2
26899   fi
26900 done
26901 done
26902 IFS=$as_save_IFS
26903
26904   ;;
26905 esac
26906 fi
26907 LLVMGXX=$ac_cv_path_LLVMGXX
26908 if test -n "$LLVMGXX"; then
26909   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26910 echo "${ECHO_T}$LLVMGXX" >&6; }
26911 else
26912   { echo "$as_me:$LINENO: result: no" >&5
26913 echo "${ECHO_T}no" >&6; }
26914 fi
26915
26916
26917 else
26918   if test -z "$LLVMGCC"; then
26919     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26920   fi
26921   if test -z "$LLVMGXX"; then
26922     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26923   fi
26924   LLVMGCC=$LLVMGCC
26925
26926   LLVMGXX=$LLVMGXX
26927
26928 fi
26929
26930 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26931 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26932
26933 ICC=no
26934 IXX=no
26935 case $CC in
26936   icc*|icpc*)
26937     ICC=yes
26938     IXX=yes
26939     ;;
26940    *)
26941     ;;
26942 esac
26943
26944 if test "$GCC" != "yes" && test "$ICC" != "yes"
26945 then
26946   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26947 echo "$as_me: error: gcc|icc required but not found" >&2;}
26948    { (exit 1); exit 1; }; }
26949 fi
26950
26951 if test "$GXX" != "yes" && test "$IXX" != "yes"
26952 then
26953   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26954 echo "$as_me: error: g++|icc required but not found" >&2;}
26955    { (exit 1); exit 1; }; }
26956 fi
26957
26958 if test "$GCC" = "yes"
26959 then
26960   cat >conftest.$ac_ext <<_ACEOF
26961 #if !defined(__GNUC__) || __GNUC__ < 3
26962 #error Unsupported GCC version
26963 #endif
26964
26965 _ACEOF
26966 rm -f conftest.$ac_objext
26967 if { (ac_try="$ac_compile"
26968 case "(($ac_try" in
26969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26970   *) ac_try_echo=$ac_try;;
26971 esac
26972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26973   (eval "$ac_compile") 2>conftest.er1
26974   ac_status=$?
26975   grep -v '^ *+' conftest.er1 >conftest.err
26976   rm -f conftest.er1
26977   cat conftest.err >&5
26978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979   (exit $ac_status); } &&
26980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26981   { (case "(($ac_try" in
26982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26983   *) ac_try_echo=$ac_try;;
26984 esac
26985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26986   (eval "$ac_try") 2>&5
26987   ac_status=$?
26988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989   (exit $ac_status); }; } &&
26990          { ac_try='test -s conftest.$ac_objext'
26991   { (case "(($ac_try" in
26992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26993   *) ac_try_echo=$ac_try;;
26994 esac
26995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26996   (eval "$ac_try") 2>&5
26997   ac_status=$?
26998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999   (exit $ac_status); }; }; then
27000   :
27001 else
27002   echo "$as_me: failed program was:" >&5
27003 sed 's/^/| /' conftest.$ac_ext >&5
27004
27005         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27006 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27007    { (exit 1); exit 1; }; }
27008 fi
27009
27010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27011 fi
27012
27013 if test -z "$llvm_cv_gnu_make_command"
27014 then
27015   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27016 echo "$as_me: error: GNU Make required but not found" >&2;}
27017    { (exit 1); exit 1; }; }
27018 fi
27019
27020 { echo "$as_me:$LINENO: result: ok" >&5
27021 echo "${ECHO_T}ok" >&6; }
27022
27023
27024
27025 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27026 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27027 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27028   echo $ECHO_N "(cached) $ECHO_C" >&6
27029 else
27030   ac_check_lib_save_LIBS=$LIBS
27031 LIBS="-lelf  $LIBS"
27032 cat >conftest.$ac_ext <<_ACEOF
27033 /* confdefs.h.  */
27034 _ACEOF
27035 cat confdefs.h >>conftest.$ac_ext
27036 cat >>conftest.$ac_ext <<_ACEOF
27037 /* end confdefs.h.  */
27038
27039 /* Override any GCC internal prototype to avoid an error.
27040    Use char because int might match the return type of a GCC
27041    builtin and then its argument prototype would still apply.  */
27042 #ifdef __cplusplus
27043 extern "C"
27044 #endif
27045 char elf_begin ();
27046 int
27047 main ()
27048 {
27049 return elf_begin ();
27050   ;
27051   return 0;
27052 }
27053 _ACEOF
27054 rm -f conftest.$ac_objext conftest$ac_exeext
27055 if { (ac_try="$ac_link"
27056 case "(($ac_try" in
27057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27058   *) ac_try_echo=$ac_try;;
27059 esac
27060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27061   (eval "$ac_link") 2>conftest.er1
27062   ac_status=$?
27063   grep -v '^ *+' conftest.er1 >conftest.err
27064   rm -f conftest.er1
27065   cat conftest.err >&5
27066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067   (exit $ac_status); } &&
27068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27069   { (case "(($ac_try" in
27070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27071   *) ac_try_echo=$ac_try;;
27072 esac
27073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27074   (eval "$ac_try") 2>&5
27075   ac_status=$?
27076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077   (exit $ac_status); }; } &&
27078          { ac_try='test -s conftest$ac_exeext'
27079   { (case "(($ac_try" in
27080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27081   *) ac_try_echo=$ac_try;;
27082 esac
27083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27084   (eval "$ac_try") 2>&5
27085   ac_status=$?
27086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087   (exit $ac_status); }; }; then
27088   ac_cv_lib_elf_elf_begin=yes
27089 else
27090   echo "$as_me: failed program was:" >&5
27091 sed 's/^/| /' conftest.$ac_ext >&5
27092
27093         ac_cv_lib_elf_elf_begin=no
27094 fi
27095
27096 rm -f core conftest.err conftest.$ac_objext \
27097       conftest$ac_exeext conftest.$ac_ext
27098 LIBS=$ac_check_lib_save_LIBS
27099 fi
27100 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27101 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27102 if test $ac_cv_lib_elf_elf_begin = yes; then
27103   cat >>confdefs.h <<_ACEOF
27104 #define HAVE_LIBELF 1
27105 _ACEOF
27106
27107   LIBS="-lelf $LIBS"
27108
27109 fi
27110
27111
27112 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27113 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27114 if test "${ac_cv_lib_m_sin+set}" = set; then
27115   echo $ECHO_N "(cached) $ECHO_C" >&6
27116 else
27117   ac_check_lib_save_LIBS=$LIBS
27118 LIBS="-lm  $LIBS"
27119 cat >conftest.$ac_ext <<_ACEOF
27120 /* confdefs.h.  */
27121 _ACEOF
27122 cat confdefs.h >>conftest.$ac_ext
27123 cat >>conftest.$ac_ext <<_ACEOF
27124 /* end confdefs.h.  */
27125
27126 /* Override any GCC internal prototype to avoid an error.
27127    Use char because int might match the return type of a GCC
27128    builtin and then its argument prototype would still apply.  */
27129 #ifdef __cplusplus
27130 extern "C"
27131 #endif
27132 char sin ();
27133 int
27134 main ()
27135 {
27136 return sin ();
27137   ;
27138   return 0;
27139 }
27140 _ACEOF
27141 rm -f conftest.$ac_objext conftest$ac_exeext
27142 if { (ac_try="$ac_link"
27143 case "(($ac_try" in
27144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27145   *) ac_try_echo=$ac_try;;
27146 esac
27147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27148   (eval "$ac_link") 2>conftest.er1
27149   ac_status=$?
27150   grep -v '^ *+' conftest.er1 >conftest.err
27151   rm -f conftest.er1
27152   cat conftest.err >&5
27153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154   (exit $ac_status); } &&
27155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27156   { (case "(($ac_try" in
27157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27158   *) ac_try_echo=$ac_try;;
27159 esac
27160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27161   (eval "$ac_try") 2>&5
27162   ac_status=$?
27163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27164   (exit $ac_status); }; } &&
27165          { ac_try='test -s conftest$ac_exeext'
27166   { (case "(($ac_try" in
27167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27168   *) ac_try_echo=$ac_try;;
27169 esac
27170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27171   (eval "$ac_try") 2>&5
27172   ac_status=$?
27173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174   (exit $ac_status); }; }; then
27175   ac_cv_lib_m_sin=yes
27176 else
27177   echo "$as_me: failed program was:" >&5
27178 sed 's/^/| /' conftest.$ac_ext >&5
27179
27180         ac_cv_lib_m_sin=no
27181 fi
27182
27183 rm -f core conftest.err conftest.$ac_objext \
27184       conftest$ac_exeext conftest.$ac_ext
27185 LIBS=$ac_check_lib_save_LIBS
27186 fi
27187 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27188 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27189 if test $ac_cv_lib_m_sin = yes; then
27190   cat >>confdefs.h <<_ACEOF
27191 #define HAVE_LIBM 1
27192 _ACEOF
27193
27194   LIBS="-lm $LIBS"
27195
27196 fi
27197
27198 if test "$llvm_cv_os_type" = "MingW" ; then
27199
27200 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27201 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27202 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27203   echo $ECHO_N "(cached) $ECHO_C" >&6
27204 else
27205   ac_check_lib_save_LIBS=$LIBS
27206 LIBS="-limagehlp  $LIBS"
27207 cat >conftest.$ac_ext <<_ACEOF
27208 /* confdefs.h.  */
27209 _ACEOF
27210 cat confdefs.h >>conftest.$ac_ext
27211 cat >>conftest.$ac_ext <<_ACEOF
27212 /* end confdefs.h.  */
27213
27214
27215 int
27216 main ()
27217 {
27218 return main ();
27219   ;
27220   return 0;
27221 }
27222 _ACEOF
27223 rm -f conftest.$ac_objext conftest$ac_exeext
27224 if { (ac_try="$ac_link"
27225 case "(($ac_try" in
27226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227   *) ac_try_echo=$ac_try;;
27228 esac
27229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27230   (eval "$ac_link") 2>conftest.er1
27231   ac_status=$?
27232   grep -v '^ *+' conftest.er1 >conftest.err
27233   rm -f conftest.er1
27234   cat conftest.err >&5
27235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236   (exit $ac_status); } &&
27237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27238   { (case "(($ac_try" in
27239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27240   *) ac_try_echo=$ac_try;;
27241 esac
27242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27243   (eval "$ac_try") 2>&5
27244   ac_status=$?
27245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246   (exit $ac_status); }; } &&
27247          { ac_try='test -s conftest$ac_exeext'
27248   { (case "(($ac_try" in
27249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27250   *) ac_try_echo=$ac_try;;
27251 esac
27252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27253   (eval "$ac_try") 2>&5
27254   ac_status=$?
27255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256   (exit $ac_status); }; }; then
27257   ac_cv_lib_imagehlp_main=yes
27258 else
27259   echo "$as_me: failed program was:" >&5
27260 sed 's/^/| /' conftest.$ac_ext >&5
27261
27262         ac_cv_lib_imagehlp_main=no
27263 fi
27264
27265 rm -f core conftest.err conftest.$ac_objext \
27266       conftest$ac_exeext conftest.$ac_ext
27267 LIBS=$ac_check_lib_save_LIBS
27268 fi
27269 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27270 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27271 if test $ac_cv_lib_imagehlp_main = yes; then
27272   cat >>confdefs.h <<_ACEOF
27273 #define HAVE_LIBIMAGEHLP 1
27274 _ACEOF
27275
27276   LIBS="-limagehlp $LIBS"
27277
27278 fi
27279
27280
27281 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27282 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27283 if test "${ac_cv_lib_psapi_main+set}" = set; then
27284   echo $ECHO_N "(cached) $ECHO_C" >&6
27285 else
27286   ac_check_lib_save_LIBS=$LIBS
27287 LIBS="-lpsapi  $LIBS"
27288 cat >conftest.$ac_ext <<_ACEOF
27289 /* confdefs.h.  */
27290 _ACEOF
27291 cat confdefs.h >>conftest.$ac_ext
27292 cat >>conftest.$ac_ext <<_ACEOF
27293 /* end confdefs.h.  */
27294
27295
27296 int
27297 main ()
27298 {
27299 return main ();
27300   ;
27301   return 0;
27302 }
27303 _ACEOF
27304 rm -f conftest.$ac_objext conftest$ac_exeext
27305 if { (ac_try="$ac_link"
27306 case "(($ac_try" in
27307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27308   *) ac_try_echo=$ac_try;;
27309 esac
27310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27311   (eval "$ac_link") 2>conftest.er1
27312   ac_status=$?
27313   grep -v '^ *+' conftest.er1 >conftest.err
27314   rm -f conftest.er1
27315   cat conftest.err >&5
27316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317   (exit $ac_status); } &&
27318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27319   { (case "(($ac_try" in
27320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321   *) ac_try_echo=$ac_try;;
27322 esac
27323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27324   (eval "$ac_try") 2>&5
27325   ac_status=$?
27326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327   (exit $ac_status); }; } &&
27328          { ac_try='test -s conftest$ac_exeext'
27329   { (case "(($ac_try" in
27330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27331   *) ac_try_echo=$ac_try;;
27332 esac
27333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27334   (eval "$ac_try") 2>&5
27335   ac_status=$?
27336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337   (exit $ac_status); }; }; then
27338   ac_cv_lib_psapi_main=yes
27339 else
27340   echo "$as_me: failed program was:" >&5
27341 sed 's/^/| /' conftest.$ac_ext >&5
27342
27343         ac_cv_lib_psapi_main=no
27344 fi
27345
27346 rm -f core conftest.err conftest.$ac_objext \
27347       conftest$ac_exeext conftest.$ac_ext
27348 LIBS=$ac_check_lib_save_LIBS
27349 fi
27350 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27351 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27352 if test $ac_cv_lib_psapi_main = yes; then
27353   cat >>confdefs.h <<_ACEOF
27354 #define HAVE_LIBPSAPI 1
27355 _ACEOF
27356
27357   LIBS="-lpsapi $LIBS"
27358
27359 fi
27360
27361 fi
27362
27363 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27364 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27365 if test "${ac_cv_search_dlopen+set}" = set; then
27366   echo $ECHO_N "(cached) $ECHO_C" >&6
27367 else
27368   ac_func_search_save_LIBS=$LIBS
27369 cat >conftest.$ac_ext <<_ACEOF
27370 /* confdefs.h.  */
27371 _ACEOF
27372 cat confdefs.h >>conftest.$ac_ext
27373 cat >>conftest.$ac_ext <<_ACEOF
27374 /* end confdefs.h.  */
27375
27376 /* Override any GCC internal prototype to avoid an error.
27377    Use char because int might match the return type of a GCC
27378    builtin and then its argument prototype would still apply.  */
27379 #ifdef __cplusplus
27380 extern "C"
27381 #endif
27382 char dlopen ();
27383 int
27384 main ()
27385 {
27386 return dlopen ();
27387   ;
27388   return 0;
27389 }
27390 _ACEOF
27391 for ac_lib in '' dl; do
27392   if test -z "$ac_lib"; then
27393     ac_res="none required"
27394   else
27395     ac_res=-l$ac_lib
27396     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27397   fi
27398   rm -f conftest.$ac_objext conftest$ac_exeext
27399 if { (ac_try="$ac_link"
27400 case "(($ac_try" in
27401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27402   *) ac_try_echo=$ac_try;;
27403 esac
27404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27405   (eval "$ac_link") 2>conftest.er1
27406   ac_status=$?
27407   grep -v '^ *+' conftest.er1 >conftest.err
27408   rm -f conftest.er1
27409   cat conftest.err >&5
27410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411   (exit $ac_status); } &&
27412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27413   { (case "(($ac_try" in
27414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415   *) ac_try_echo=$ac_try;;
27416 esac
27417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418   (eval "$ac_try") 2>&5
27419   ac_status=$?
27420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421   (exit $ac_status); }; } &&
27422          { ac_try='test -s conftest$ac_exeext'
27423   { (case "(($ac_try" in
27424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27425   *) ac_try_echo=$ac_try;;
27426 esac
27427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27428   (eval "$ac_try") 2>&5
27429   ac_status=$?
27430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431   (exit $ac_status); }; }; then
27432   ac_cv_search_dlopen=$ac_res
27433 else
27434   echo "$as_me: failed program was:" >&5
27435 sed 's/^/| /' conftest.$ac_ext >&5
27436
27437
27438 fi
27439
27440 rm -f core conftest.err conftest.$ac_objext \
27441       conftest$ac_exeext
27442   if test "${ac_cv_search_dlopen+set}" = set; then
27443   break
27444 fi
27445 done
27446 if test "${ac_cv_search_dlopen+set}" = set; then
27447   :
27448 else
27449   ac_cv_search_dlopen=no
27450 fi
27451 rm conftest.$ac_ext
27452 LIBS=$ac_func_search_save_LIBS
27453 fi
27454 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27455 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27456 ac_res=$ac_cv_search_dlopen
27457 if test "$ac_res" != no; then
27458   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27459
27460 cat >>confdefs.h <<\_ACEOF
27461 #define HAVE_DLOPEN 1
27462 _ACEOF
27463
27464 else
27465   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27466 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27467 fi
27468
27469
27470 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27471 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27472 if test "${ac_cv_search_mallinfo+set}" = set; then
27473   echo $ECHO_N "(cached) $ECHO_C" >&6
27474 else
27475   ac_func_search_save_LIBS=$LIBS
27476 cat >conftest.$ac_ext <<_ACEOF
27477 /* confdefs.h.  */
27478 _ACEOF
27479 cat confdefs.h >>conftest.$ac_ext
27480 cat >>conftest.$ac_ext <<_ACEOF
27481 /* end confdefs.h.  */
27482
27483 /* Override any GCC internal prototype to avoid an error.
27484    Use char because int might match the return type of a GCC
27485    builtin and then its argument prototype would still apply.  */
27486 #ifdef __cplusplus
27487 extern "C"
27488 #endif
27489 char mallinfo ();
27490 int
27491 main ()
27492 {
27493 return mallinfo ();
27494   ;
27495   return 0;
27496 }
27497 _ACEOF
27498 for ac_lib in '' malloc; do
27499   if test -z "$ac_lib"; then
27500     ac_res="none required"
27501   else
27502     ac_res=-l$ac_lib
27503     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27504   fi
27505   rm -f conftest.$ac_objext conftest$ac_exeext
27506 if { (ac_try="$ac_link"
27507 case "(($ac_try" in
27508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27509   *) ac_try_echo=$ac_try;;
27510 esac
27511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27512   (eval "$ac_link") 2>conftest.er1
27513   ac_status=$?
27514   grep -v '^ *+' conftest.er1 >conftest.err
27515   rm -f conftest.er1
27516   cat conftest.err >&5
27517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518   (exit $ac_status); } &&
27519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27520   { (case "(($ac_try" in
27521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27522   *) ac_try_echo=$ac_try;;
27523 esac
27524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27525   (eval "$ac_try") 2>&5
27526   ac_status=$?
27527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528   (exit $ac_status); }; } &&
27529          { ac_try='test -s conftest$ac_exeext'
27530   { (case "(($ac_try" in
27531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27532   *) ac_try_echo=$ac_try;;
27533 esac
27534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27535   (eval "$ac_try") 2>&5
27536   ac_status=$?
27537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538   (exit $ac_status); }; }; then
27539   ac_cv_search_mallinfo=$ac_res
27540 else
27541   echo "$as_me: failed program was:" >&5
27542 sed 's/^/| /' conftest.$ac_ext >&5
27543
27544
27545 fi
27546
27547 rm -f core conftest.err conftest.$ac_objext \
27548       conftest$ac_exeext
27549   if test "${ac_cv_search_mallinfo+set}" = set; then
27550   break
27551 fi
27552 done
27553 if test "${ac_cv_search_mallinfo+set}" = set; then
27554   :
27555 else
27556   ac_cv_search_mallinfo=no
27557 fi
27558 rm conftest.$ac_ext
27559 LIBS=$ac_func_search_save_LIBS
27560 fi
27561 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27562 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27563 ac_res=$ac_cv_search_mallinfo
27564 if test "$ac_res" != no; then
27565   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27566
27567 cat >>confdefs.h <<\_ACEOF
27568 #define HAVE_MALLINFO 1
27569 _ACEOF
27570
27571 fi
27572
27573
27574 if test "$ENABLE_THREADS" -eq 1 ; then
27575
27576 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27577 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27578 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27579   echo $ECHO_N "(cached) $ECHO_C" >&6
27580 else
27581   ac_check_lib_save_LIBS=$LIBS
27582 LIBS="-lpthread  $LIBS"
27583 cat >conftest.$ac_ext <<_ACEOF
27584 /* confdefs.h.  */
27585 _ACEOF
27586 cat confdefs.h >>conftest.$ac_ext
27587 cat >>conftest.$ac_ext <<_ACEOF
27588 /* end confdefs.h.  */
27589
27590 /* Override any GCC internal prototype to avoid an error.
27591    Use char because int might match the return type of a GCC
27592    builtin and then its argument prototype would still apply.  */
27593 #ifdef __cplusplus
27594 extern "C"
27595 #endif
27596 char pthread_mutex_init ();
27597 int
27598 main ()
27599 {
27600 return pthread_mutex_init ();
27601   ;
27602   return 0;
27603 }
27604 _ACEOF
27605 rm -f conftest.$ac_objext conftest$ac_exeext
27606 if { (ac_try="$ac_link"
27607 case "(($ac_try" in
27608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27609   *) ac_try_echo=$ac_try;;
27610 esac
27611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27612   (eval "$ac_link") 2>conftest.er1
27613   ac_status=$?
27614   grep -v '^ *+' conftest.er1 >conftest.err
27615   rm -f conftest.er1
27616   cat conftest.err >&5
27617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27618   (exit $ac_status); } &&
27619          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27620   { (case "(($ac_try" in
27621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27622   *) ac_try_echo=$ac_try;;
27623 esac
27624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27625   (eval "$ac_try") 2>&5
27626   ac_status=$?
27627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628   (exit $ac_status); }; } &&
27629          { ac_try='test -s conftest$ac_exeext'
27630   { (case "(($ac_try" in
27631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27632   *) ac_try_echo=$ac_try;;
27633 esac
27634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27635   (eval "$ac_try") 2>&5
27636   ac_status=$?
27637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638   (exit $ac_status); }; }; then
27639   ac_cv_lib_pthread_pthread_mutex_init=yes
27640 else
27641   echo "$as_me: failed program was:" >&5
27642 sed 's/^/| /' conftest.$ac_ext >&5
27643
27644         ac_cv_lib_pthread_pthread_mutex_init=no
27645 fi
27646
27647 rm -f core conftest.err conftest.$ac_objext \
27648       conftest$ac_exeext conftest.$ac_ext
27649 LIBS=$ac_check_lib_save_LIBS
27650 fi
27651 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27652 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27653 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27654   cat >>confdefs.h <<_ACEOF
27655 #define HAVE_LIBPTHREAD 1
27656 _ACEOF
27657
27658   LIBS="-lpthread $LIBS"
27659
27660 fi
27661
27662   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27663 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27664 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27665   echo $ECHO_N "(cached) $ECHO_C" >&6
27666 else
27667   ac_func_search_save_LIBS=$LIBS
27668 cat >conftest.$ac_ext <<_ACEOF
27669 /* confdefs.h.  */
27670 _ACEOF
27671 cat confdefs.h >>conftest.$ac_ext
27672 cat >>conftest.$ac_ext <<_ACEOF
27673 /* end confdefs.h.  */
27674
27675 /* Override any GCC internal prototype to avoid an error.
27676    Use char because int might match the return type of a GCC
27677    builtin and then its argument prototype would still apply.  */
27678 #ifdef __cplusplus
27679 extern "C"
27680 #endif
27681 char pthread_mutex_lock ();
27682 int
27683 main ()
27684 {
27685 return pthread_mutex_lock ();
27686   ;
27687   return 0;
27688 }
27689 _ACEOF
27690 for ac_lib in '' pthread; do
27691   if test -z "$ac_lib"; then
27692     ac_res="none required"
27693   else
27694     ac_res=-l$ac_lib
27695     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27696   fi
27697   rm -f conftest.$ac_objext conftest$ac_exeext
27698 if { (ac_try="$ac_link"
27699 case "(($ac_try" in
27700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27701   *) ac_try_echo=$ac_try;;
27702 esac
27703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27704   (eval "$ac_link") 2>conftest.er1
27705   ac_status=$?
27706   grep -v '^ *+' conftest.er1 >conftest.err
27707   rm -f conftest.er1
27708   cat conftest.err >&5
27709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710   (exit $ac_status); } &&
27711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27712   { (case "(($ac_try" in
27713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27714   *) ac_try_echo=$ac_try;;
27715 esac
27716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27717   (eval "$ac_try") 2>&5
27718   ac_status=$?
27719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720   (exit $ac_status); }; } &&
27721          { ac_try='test -s conftest$ac_exeext'
27722   { (case "(($ac_try" in
27723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27724   *) ac_try_echo=$ac_try;;
27725 esac
27726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27727   (eval "$ac_try") 2>&5
27728   ac_status=$?
27729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730   (exit $ac_status); }; }; then
27731   ac_cv_search_pthread_mutex_lock=$ac_res
27732 else
27733   echo "$as_me: failed program was:" >&5
27734 sed 's/^/| /' conftest.$ac_ext >&5
27735
27736
27737 fi
27738
27739 rm -f core conftest.err conftest.$ac_objext \
27740       conftest$ac_exeext
27741   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27742   break
27743 fi
27744 done
27745 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27746   :
27747 else
27748   ac_cv_search_pthread_mutex_lock=no
27749 fi
27750 rm conftest.$ac_ext
27751 LIBS=$ac_func_search_save_LIBS
27752 fi
27753 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27754 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27755 ac_res=$ac_cv_search_pthread_mutex_lock
27756 if test "$ac_res" != no; then
27757   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27758
27759 cat >>confdefs.h <<\_ACEOF
27760 #define HAVE_PTHREAD_MUTEX_LOCK 1
27761 _ACEOF
27762
27763 fi
27764
27765 fi
27766
27767
27768 # Check whether --with-udis86 was given.
27769 if test "${with_udis86+set}" = set; then
27770   withval=$with_udis86;
27771       USE_UDIS86=1
27772
27773       case "$withval" in
27774         /usr/lib|yes) ;;
27775         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27776       esac
27777
27778 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27779 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27780 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27781   echo $ECHO_N "(cached) $ECHO_C" >&6
27782 else
27783   ac_check_lib_save_LIBS=$LIBS
27784 LIBS="-ludis86  $LIBS"
27785 cat >conftest.$ac_ext <<_ACEOF
27786 /* confdefs.h.  */
27787 _ACEOF
27788 cat confdefs.h >>conftest.$ac_ext
27789 cat >>conftest.$ac_ext <<_ACEOF
27790 /* end confdefs.h.  */
27791
27792 /* Override any GCC internal prototype to avoid an error.
27793    Use char because int might match the return type of a GCC
27794    builtin and then its argument prototype would still apply.  */
27795 #ifdef __cplusplus
27796 extern "C"
27797 #endif
27798 char ud_init ();
27799 int
27800 main ()
27801 {
27802 return ud_init ();
27803   ;
27804   return 0;
27805 }
27806 _ACEOF
27807 rm -f conftest.$ac_objext conftest$ac_exeext
27808 if { (ac_try="$ac_link"
27809 case "(($ac_try" in
27810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27811   *) ac_try_echo=$ac_try;;
27812 esac
27813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27814   (eval "$ac_link") 2>conftest.er1
27815   ac_status=$?
27816   grep -v '^ *+' conftest.er1 >conftest.err
27817   rm -f conftest.er1
27818   cat conftest.err >&5
27819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820   (exit $ac_status); } &&
27821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27822   { (case "(($ac_try" in
27823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27824   *) ac_try_echo=$ac_try;;
27825 esac
27826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27827   (eval "$ac_try") 2>&5
27828   ac_status=$?
27829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27830   (exit $ac_status); }; } &&
27831          { ac_try='test -s conftest$ac_exeext'
27832   { (case "(($ac_try" in
27833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27834   *) ac_try_echo=$ac_try;;
27835 esac
27836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27837   (eval "$ac_try") 2>&5
27838   ac_status=$?
27839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840   (exit $ac_status); }; }; then
27841   ac_cv_lib_udis86_ud_init=yes
27842 else
27843   echo "$as_me: failed program was:" >&5
27844 sed 's/^/| /' conftest.$ac_ext >&5
27845
27846         ac_cv_lib_udis86_ud_init=no
27847 fi
27848
27849 rm -f core conftest.err conftest.$ac_objext \
27850       conftest$ac_exeext conftest.$ac_ext
27851 LIBS=$ac_check_lib_save_LIBS
27852 fi
27853 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27854 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27855 if test $ac_cv_lib_udis86_ud_init = yes; then
27856   cat >>confdefs.h <<_ACEOF
27857 #define HAVE_LIBUDIS86 1
27858 _ACEOF
27859
27860   LIBS="-ludis86 $LIBS"
27861
27862 else
27863
27864         echo "Error! You need to have libudis86 around."
27865         exit -1
27866
27867 fi
27868
27869
27870 else
27871   USE_UDIS86=0
27872
27873 fi
27874
27875
27876 cat >>confdefs.h <<_ACEOF
27877 #define USE_UDIS86 $USE_UDIS86
27878 _ACEOF
27879
27880
27881
27882
27883
27884
27885
27886
27887 ac_header_dirent=no
27888 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27889   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27890 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27891 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27893   echo $ECHO_N "(cached) $ECHO_C" >&6
27894 else
27895   cat >conftest.$ac_ext <<_ACEOF
27896 /* confdefs.h.  */
27897 _ACEOF
27898 cat confdefs.h >>conftest.$ac_ext
27899 cat >>conftest.$ac_ext <<_ACEOF
27900 /* end confdefs.h.  */
27901 #include <sys/types.h>
27902 #include <$ac_hdr>
27903
27904 int
27905 main ()
27906 {
27907 if ((DIR *) 0)
27908 return 0;
27909   ;
27910   return 0;
27911 }
27912 _ACEOF
27913 rm -f conftest.$ac_objext
27914 if { (ac_try="$ac_compile"
27915 case "(($ac_try" in
27916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27917   *) ac_try_echo=$ac_try;;
27918 esac
27919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27920   (eval "$ac_compile") 2>conftest.er1
27921   ac_status=$?
27922   grep -v '^ *+' conftest.er1 >conftest.err
27923   rm -f conftest.er1
27924   cat conftest.err >&5
27925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926   (exit $ac_status); } &&
27927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27928   { (case "(($ac_try" in
27929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27930   *) ac_try_echo=$ac_try;;
27931 esac
27932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27933   (eval "$ac_try") 2>&5
27934   ac_status=$?
27935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936   (exit $ac_status); }; } &&
27937          { ac_try='test -s conftest.$ac_objext'
27938   { (case "(($ac_try" in
27939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27940   *) ac_try_echo=$ac_try;;
27941 esac
27942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27943   (eval "$ac_try") 2>&5
27944   ac_status=$?
27945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946   (exit $ac_status); }; }; then
27947   eval "$as_ac_Header=yes"
27948 else
27949   echo "$as_me: failed program was:" >&5
27950 sed 's/^/| /' conftest.$ac_ext >&5
27951
27952         eval "$as_ac_Header=no"
27953 fi
27954
27955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27956 fi
27957 ac_res=`eval echo '${'$as_ac_Header'}'`
27958                { echo "$as_me:$LINENO: result: $ac_res" >&5
27959 echo "${ECHO_T}$ac_res" >&6; }
27960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27961   cat >>confdefs.h <<_ACEOF
27962 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27963 _ACEOF
27964
27965 ac_header_dirent=$ac_hdr; break
27966 fi
27967
27968 done
27969 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27970 if test $ac_header_dirent = dirent.h; then
27971   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27972 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27973 if test "${ac_cv_search_opendir+set}" = set; then
27974   echo $ECHO_N "(cached) $ECHO_C" >&6
27975 else
27976   ac_func_search_save_LIBS=$LIBS
27977 cat >conftest.$ac_ext <<_ACEOF
27978 /* confdefs.h.  */
27979 _ACEOF
27980 cat confdefs.h >>conftest.$ac_ext
27981 cat >>conftest.$ac_ext <<_ACEOF
27982 /* end confdefs.h.  */
27983
27984 /* Override any GCC internal prototype to avoid an error.
27985    Use char because int might match the return type of a GCC
27986    builtin and then its argument prototype would still apply.  */
27987 #ifdef __cplusplus
27988 extern "C"
27989 #endif
27990 char opendir ();
27991 int
27992 main ()
27993 {
27994 return opendir ();
27995   ;
27996   return 0;
27997 }
27998 _ACEOF
27999 for ac_lib in '' dir; do
28000   if test -z "$ac_lib"; then
28001     ac_res="none required"
28002   else
28003     ac_res=-l$ac_lib
28004     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28005   fi
28006   rm -f conftest.$ac_objext conftest$ac_exeext
28007 if { (ac_try="$ac_link"
28008 case "(($ac_try" in
28009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28010   *) ac_try_echo=$ac_try;;
28011 esac
28012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28013   (eval "$ac_link") 2>conftest.er1
28014   ac_status=$?
28015   grep -v '^ *+' conftest.er1 >conftest.err
28016   rm -f conftest.er1
28017   cat conftest.err >&5
28018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019   (exit $ac_status); } &&
28020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28021   { (case "(($ac_try" in
28022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28023   *) ac_try_echo=$ac_try;;
28024 esac
28025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28026   (eval "$ac_try") 2>&5
28027   ac_status=$?
28028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029   (exit $ac_status); }; } &&
28030          { ac_try='test -s conftest$ac_exeext'
28031   { (case "(($ac_try" in
28032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28033   *) ac_try_echo=$ac_try;;
28034 esac
28035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28036   (eval "$ac_try") 2>&5
28037   ac_status=$?
28038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039   (exit $ac_status); }; }; then
28040   ac_cv_search_opendir=$ac_res
28041 else
28042   echo "$as_me: failed program was:" >&5
28043 sed 's/^/| /' conftest.$ac_ext >&5
28044
28045
28046 fi
28047
28048 rm -f core conftest.err conftest.$ac_objext \
28049       conftest$ac_exeext
28050   if test "${ac_cv_search_opendir+set}" = set; then
28051   break
28052 fi
28053 done
28054 if test "${ac_cv_search_opendir+set}" = set; then
28055   :
28056 else
28057   ac_cv_search_opendir=no
28058 fi
28059 rm conftest.$ac_ext
28060 LIBS=$ac_func_search_save_LIBS
28061 fi
28062 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28063 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28064 ac_res=$ac_cv_search_opendir
28065 if test "$ac_res" != no; then
28066   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28067
28068 fi
28069
28070 else
28071   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28072 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28073 if test "${ac_cv_search_opendir+set}" = set; then
28074   echo $ECHO_N "(cached) $ECHO_C" >&6
28075 else
28076   ac_func_search_save_LIBS=$LIBS
28077 cat >conftest.$ac_ext <<_ACEOF
28078 /* confdefs.h.  */
28079 _ACEOF
28080 cat confdefs.h >>conftest.$ac_ext
28081 cat >>conftest.$ac_ext <<_ACEOF
28082 /* end confdefs.h.  */
28083
28084 /* Override any GCC internal prototype to avoid an error.
28085    Use char because int might match the return type of a GCC
28086    builtin and then its argument prototype would still apply.  */
28087 #ifdef __cplusplus
28088 extern "C"
28089 #endif
28090 char opendir ();
28091 int
28092 main ()
28093 {
28094 return opendir ();
28095   ;
28096   return 0;
28097 }
28098 _ACEOF
28099 for ac_lib in '' x; do
28100   if test -z "$ac_lib"; then
28101     ac_res="none required"
28102   else
28103     ac_res=-l$ac_lib
28104     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28105   fi
28106   rm -f conftest.$ac_objext conftest$ac_exeext
28107 if { (ac_try="$ac_link"
28108 case "(($ac_try" in
28109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28110   *) ac_try_echo=$ac_try;;
28111 esac
28112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28113   (eval "$ac_link") 2>conftest.er1
28114   ac_status=$?
28115   grep -v '^ *+' conftest.er1 >conftest.err
28116   rm -f conftest.er1
28117   cat conftest.err >&5
28118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119   (exit $ac_status); } &&
28120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28121   { (case "(($ac_try" in
28122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28123   *) ac_try_echo=$ac_try;;
28124 esac
28125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28126   (eval "$ac_try") 2>&5
28127   ac_status=$?
28128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129   (exit $ac_status); }; } &&
28130          { ac_try='test -s conftest$ac_exeext'
28131   { (case "(($ac_try" in
28132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28133   *) ac_try_echo=$ac_try;;
28134 esac
28135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28136   (eval "$ac_try") 2>&5
28137   ac_status=$?
28138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139   (exit $ac_status); }; }; then
28140   ac_cv_search_opendir=$ac_res
28141 else
28142   echo "$as_me: failed program was:" >&5
28143 sed 's/^/| /' conftest.$ac_ext >&5
28144
28145
28146 fi
28147
28148 rm -f core conftest.err conftest.$ac_objext \
28149       conftest$ac_exeext
28150   if test "${ac_cv_search_opendir+set}" = set; then
28151   break
28152 fi
28153 done
28154 if test "${ac_cv_search_opendir+set}" = set; then
28155   :
28156 else
28157   ac_cv_search_opendir=no
28158 fi
28159 rm conftest.$ac_ext
28160 LIBS=$ac_func_search_save_LIBS
28161 fi
28162 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28163 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28164 ac_res=$ac_cv_search_opendir
28165 if test "$ac_res" != no; then
28166   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28167
28168 fi
28169
28170 fi
28171
28172 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28173 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28174 if test "${ac_cv_header_mmap_anon+set}" = set; then
28175   echo $ECHO_N "(cached) $ECHO_C" >&6
28176 else
28177    ac_ext=c
28178 ac_cpp='$CPP $CPPFLAGS'
28179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28182
28183   cat >conftest.$ac_ext <<_ACEOF
28184 /* confdefs.h.  */
28185 _ACEOF
28186 cat confdefs.h >>conftest.$ac_ext
28187 cat >>conftest.$ac_ext <<_ACEOF
28188 /* end confdefs.h.  */
28189 #include <sys/mman.h>
28190 #include <unistd.h>
28191 #include <fcntl.h>
28192 int
28193 main ()
28194 {
28195 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28196   ;
28197   return 0;
28198 }
28199 _ACEOF
28200 rm -f conftest.$ac_objext
28201 if { (ac_try="$ac_compile"
28202 case "(($ac_try" in
28203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28204   *) ac_try_echo=$ac_try;;
28205 esac
28206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28207   (eval "$ac_compile") 2>conftest.er1
28208   ac_status=$?
28209   grep -v '^ *+' conftest.er1 >conftest.err
28210   rm -f conftest.er1
28211   cat conftest.err >&5
28212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213   (exit $ac_status); } &&
28214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28215   { (case "(($ac_try" in
28216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28217   *) ac_try_echo=$ac_try;;
28218 esac
28219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28220   (eval "$ac_try") 2>&5
28221   ac_status=$?
28222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223   (exit $ac_status); }; } &&
28224          { ac_try='test -s conftest.$ac_objext'
28225   { (case "(($ac_try" in
28226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28227   *) ac_try_echo=$ac_try;;
28228 esac
28229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28230   (eval "$ac_try") 2>&5
28231   ac_status=$?
28232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233   (exit $ac_status); }; }; then
28234   ac_cv_header_mmap_anon=yes
28235 else
28236   echo "$as_me: failed program was:" >&5
28237 sed 's/^/| /' conftest.$ac_ext >&5
28238
28239         ac_cv_header_mmap_anon=no
28240 fi
28241
28242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28243   ac_ext=c
28244 ac_cpp='$CPP $CPPFLAGS'
28245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28248
28249
28250 fi
28251 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28252 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28253 if test "$ac_cv_header_mmap_anon" = yes; then
28254
28255 cat >>confdefs.h <<\_ACEOF
28256 #define HAVE_MMAP_ANONYMOUS 1
28257 _ACEOF
28258
28259 fi
28260
28261 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28262 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28263 if test "${ac_cv_header_stat_broken+set}" = set; then
28264   echo $ECHO_N "(cached) $ECHO_C" >&6
28265 else
28266   cat >conftest.$ac_ext <<_ACEOF
28267 /* confdefs.h.  */
28268 _ACEOF
28269 cat confdefs.h >>conftest.$ac_ext
28270 cat >>conftest.$ac_ext <<_ACEOF
28271 /* end confdefs.h.  */
28272 #include <sys/types.h>
28273 #include <sys/stat.h>
28274
28275 #if defined S_ISBLK && defined S_IFDIR
28276 # if S_ISBLK (S_IFDIR)
28277 You lose.
28278 # endif
28279 #endif
28280
28281 #if defined S_ISBLK && defined S_IFCHR
28282 # if S_ISBLK (S_IFCHR)
28283 You lose.
28284 # endif
28285 #endif
28286
28287 #if defined S_ISLNK && defined S_IFREG
28288 # if S_ISLNK (S_IFREG)
28289 You lose.
28290 # endif
28291 #endif
28292
28293 #if defined S_ISSOCK && defined S_IFREG
28294 # if S_ISSOCK (S_IFREG)
28295 You lose.
28296 # endif
28297 #endif
28298
28299 _ACEOF
28300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28301   $EGREP "You lose" >/dev/null 2>&1; then
28302   ac_cv_header_stat_broken=yes
28303 else
28304   ac_cv_header_stat_broken=no
28305 fi
28306 rm -f conftest*
28307
28308 fi
28309 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28310 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28311 if test $ac_cv_header_stat_broken = yes; then
28312
28313 cat >>confdefs.h <<\_ACEOF
28314 #define STAT_MACROS_BROKEN 1
28315 _ACEOF
28316
28317 fi
28318
28319 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28320 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28321 if test "${ac_cv_header_stdc+set}" = set; then
28322   echo $ECHO_N "(cached) $ECHO_C" >&6
28323 else
28324   cat >conftest.$ac_ext <<_ACEOF
28325 /* confdefs.h.  */
28326 _ACEOF
28327 cat confdefs.h >>conftest.$ac_ext
28328 cat >>conftest.$ac_ext <<_ACEOF
28329 /* end confdefs.h.  */
28330 #include <stdlib.h>
28331 #include <stdarg.h>
28332 #include <string.h>
28333 #include <float.h>
28334
28335 int
28336 main ()
28337 {
28338
28339   ;
28340   return 0;
28341 }
28342 _ACEOF
28343 rm -f conftest.$ac_objext
28344 if { (ac_try="$ac_compile"
28345 case "(($ac_try" in
28346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28347   *) ac_try_echo=$ac_try;;
28348 esac
28349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28350   (eval "$ac_compile") 2>conftest.er1
28351   ac_status=$?
28352   grep -v '^ *+' conftest.er1 >conftest.err
28353   rm -f conftest.er1
28354   cat conftest.err >&5
28355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356   (exit $ac_status); } &&
28357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28358   { (case "(($ac_try" in
28359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28360   *) ac_try_echo=$ac_try;;
28361 esac
28362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28363   (eval "$ac_try") 2>&5
28364   ac_status=$?
28365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366   (exit $ac_status); }; } &&
28367          { ac_try='test -s conftest.$ac_objext'
28368   { (case "(($ac_try" in
28369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28370   *) ac_try_echo=$ac_try;;
28371 esac
28372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28373   (eval "$ac_try") 2>&5
28374   ac_status=$?
28375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376   (exit $ac_status); }; }; then
28377   ac_cv_header_stdc=yes
28378 else
28379   echo "$as_me: failed program was:" >&5
28380 sed 's/^/| /' conftest.$ac_ext >&5
28381
28382         ac_cv_header_stdc=no
28383 fi
28384
28385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28386
28387 if test $ac_cv_header_stdc = yes; then
28388   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28389   cat >conftest.$ac_ext <<_ACEOF
28390 /* confdefs.h.  */
28391 _ACEOF
28392 cat confdefs.h >>conftest.$ac_ext
28393 cat >>conftest.$ac_ext <<_ACEOF
28394 /* end confdefs.h.  */
28395 #include <string.h>
28396
28397 _ACEOF
28398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28399   $EGREP "memchr" >/dev/null 2>&1; then
28400   :
28401 else
28402   ac_cv_header_stdc=no
28403 fi
28404 rm -f conftest*
28405
28406 fi
28407
28408 if test $ac_cv_header_stdc = yes; then
28409   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28410   cat >conftest.$ac_ext <<_ACEOF
28411 /* confdefs.h.  */
28412 _ACEOF
28413 cat confdefs.h >>conftest.$ac_ext
28414 cat >>conftest.$ac_ext <<_ACEOF
28415 /* end confdefs.h.  */
28416 #include <stdlib.h>
28417
28418 _ACEOF
28419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28420   $EGREP "free" >/dev/null 2>&1; then
28421   :
28422 else
28423   ac_cv_header_stdc=no
28424 fi
28425 rm -f conftest*
28426
28427 fi
28428
28429 if test $ac_cv_header_stdc = yes; then
28430   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28431   if test "$cross_compiling" = yes; then
28432   :
28433 else
28434   cat >conftest.$ac_ext <<_ACEOF
28435 /* confdefs.h.  */
28436 _ACEOF
28437 cat confdefs.h >>conftest.$ac_ext
28438 cat >>conftest.$ac_ext <<_ACEOF
28439 /* end confdefs.h.  */
28440 #include <ctype.h>
28441 #include <stdlib.h>
28442 #if ((' ' & 0x0FF) == 0x020)
28443 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28444 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28445 #else
28446 # define ISLOWER(c) \
28447                    (('a' <= (c) && (c) <= 'i') \
28448                      || ('j' <= (c) && (c) <= 'r') \
28449                      || ('s' <= (c) && (c) <= 'z'))
28450 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28451 #endif
28452
28453 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28454 int
28455 main ()
28456 {
28457   int i;
28458   for (i = 0; i < 256; i++)
28459     if (XOR (islower (i), ISLOWER (i))
28460         || toupper (i) != TOUPPER (i))
28461       return 2;
28462   return 0;
28463 }
28464 _ACEOF
28465 rm -f conftest$ac_exeext
28466 if { (ac_try="$ac_link"
28467 case "(($ac_try" in
28468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469   *) ac_try_echo=$ac_try;;
28470 esac
28471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28472   (eval "$ac_link") 2>&5
28473   ac_status=$?
28474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28476   { (case "(($ac_try" in
28477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28478   *) ac_try_echo=$ac_try;;
28479 esac
28480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28481   (eval "$ac_try") 2>&5
28482   ac_status=$?
28483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484   (exit $ac_status); }; }; then
28485   :
28486 else
28487   echo "$as_me: program exited with status $ac_status" >&5
28488 echo "$as_me: failed program was:" >&5
28489 sed 's/^/| /' conftest.$ac_ext >&5
28490
28491 ( exit $ac_status )
28492 ac_cv_header_stdc=no
28493 fi
28494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28495 fi
28496
28497
28498 fi
28499 fi
28500 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28501 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28502 if test $ac_cv_header_stdc = yes; then
28503
28504 cat >>confdefs.h <<\_ACEOF
28505 #define STDC_HEADERS 1
28506 _ACEOF
28507
28508 fi
28509
28510 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28511 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28512 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28513   echo $ECHO_N "(cached) $ECHO_C" >&6
28514 else
28515   cat >conftest.$ac_ext <<_ACEOF
28516 /* confdefs.h.  */
28517 _ACEOF
28518 cat confdefs.h >>conftest.$ac_ext
28519 cat >>conftest.$ac_ext <<_ACEOF
28520 /* end confdefs.h.  */
28521 #include <sys/types.h>
28522 #include <sys/wait.h>
28523 #ifndef WEXITSTATUS
28524 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28525 #endif
28526 #ifndef WIFEXITED
28527 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28528 #endif
28529
28530 int
28531 main ()
28532 {
28533   int s;
28534   wait (&s);
28535   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28536   ;
28537   return 0;
28538 }
28539 _ACEOF
28540 rm -f conftest.$ac_objext
28541 if { (ac_try="$ac_compile"
28542 case "(($ac_try" in
28543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544   *) ac_try_echo=$ac_try;;
28545 esac
28546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547   (eval "$ac_compile") 2>conftest.er1
28548   ac_status=$?
28549   grep -v '^ *+' conftest.er1 >conftest.err
28550   rm -f conftest.er1
28551   cat conftest.err >&5
28552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553   (exit $ac_status); } &&
28554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28555   { (case "(($ac_try" in
28556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28557   *) ac_try_echo=$ac_try;;
28558 esac
28559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28560   (eval "$ac_try") 2>&5
28561   ac_status=$?
28562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563   (exit $ac_status); }; } &&
28564          { ac_try='test -s conftest.$ac_objext'
28565   { (case "(($ac_try" in
28566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28567   *) ac_try_echo=$ac_try;;
28568 esac
28569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28570   (eval "$ac_try") 2>&5
28571   ac_status=$?
28572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573   (exit $ac_status); }; }; then
28574   ac_cv_header_sys_wait_h=yes
28575 else
28576   echo "$as_me: failed program was:" >&5
28577 sed 's/^/| /' conftest.$ac_ext >&5
28578
28579         ac_cv_header_sys_wait_h=no
28580 fi
28581
28582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28583 fi
28584 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28585 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28586 if test $ac_cv_header_sys_wait_h = yes; then
28587
28588 cat >>confdefs.h <<\_ACEOF
28589 #define HAVE_SYS_WAIT_H 1
28590 _ACEOF
28591
28592 fi
28593
28594 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28595 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28596 if test "${ac_cv_header_time+set}" = set; then
28597   echo $ECHO_N "(cached) $ECHO_C" >&6
28598 else
28599   cat >conftest.$ac_ext <<_ACEOF
28600 /* confdefs.h.  */
28601 _ACEOF
28602 cat confdefs.h >>conftest.$ac_ext
28603 cat >>conftest.$ac_ext <<_ACEOF
28604 /* end confdefs.h.  */
28605 #include <sys/types.h>
28606 #include <sys/time.h>
28607 #include <time.h>
28608
28609 int
28610 main ()
28611 {
28612 if ((struct tm *) 0)
28613 return 0;
28614   ;
28615   return 0;
28616 }
28617 _ACEOF
28618 rm -f conftest.$ac_objext
28619 if { (ac_try="$ac_compile"
28620 case "(($ac_try" in
28621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622   *) ac_try_echo=$ac_try;;
28623 esac
28624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28625   (eval "$ac_compile") 2>conftest.er1
28626   ac_status=$?
28627   grep -v '^ *+' conftest.er1 >conftest.err
28628   rm -f conftest.er1
28629   cat conftest.err >&5
28630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631   (exit $ac_status); } &&
28632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28633   { (case "(($ac_try" in
28634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28635   *) ac_try_echo=$ac_try;;
28636 esac
28637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28638   (eval "$ac_try") 2>&5
28639   ac_status=$?
28640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641   (exit $ac_status); }; } &&
28642          { ac_try='test -s conftest.$ac_objext'
28643   { (case "(($ac_try" in
28644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28645   *) ac_try_echo=$ac_try;;
28646 esac
28647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28648   (eval "$ac_try") 2>&5
28649   ac_status=$?
28650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651   (exit $ac_status); }; }; then
28652   ac_cv_header_time=yes
28653 else
28654   echo "$as_me: failed program was:" >&5
28655 sed 's/^/| /' conftest.$ac_ext >&5
28656
28657         ac_cv_header_time=no
28658 fi
28659
28660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28661 fi
28662 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28663 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28664 if test $ac_cv_header_time = yes; then
28665
28666 cat >>confdefs.h <<\_ACEOF
28667 #define TIME_WITH_SYS_TIME 1
28668 _ACEOF
28669
28670 fi
28671
28672
28673
28674
28675
28676
28677
28678
28679 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28680 do
28681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28683   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28686   echo $ECHO_N "(cached) $ECHO_C" >&6
28687 fi
28688 ac_res=`eval echo '${'$as_ac_Header'}'`
28689                { echo "$as_me:$LINENO: result: $ac_res" >&5
28690 echo "${ECHO_T}$ac_res" >&6; }
28691 else
28692   # Is the header compilable?
28693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28695 cat >conftest.$ac_ext <<_ACEOF
28696 /* confdefs.h.  */
28697 _ACEOF
28698 cat confdefs.h >>conftest.$ac_ext
28699 cat >>conftest.$ac_ext <<_ACEOF
28700 /* end confdefs.h.  */
28701 $ac_includes_default
28702 #include <$ac_header>
28703 _ACEOF
28704 rm -f conftest.$ac_objext
28705 if { (ac_try="$ac_compile"
28706 case "(($ac_try" in
28707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708   *) ac_try_echo=$ac_try;;
28709 esac
28710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711   (eval "$ac_compile") 2>conftest.er1
28712   ac_status=$?
28713   grep -v '^ *+' conftest.er1 >conftest.err
28714   rm -f conftest.er1
28715   cat conftest.err >&5
28716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717   (exit $ac_status); } &&
28718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
28728          { ac_try='test -s conftest.$ac_objext'
28729   { (case "(($ac_try" in
28730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28731   *) ac_try_echo=$ac_try;;
28732 esac
28733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28734   (eval "$ac_try") 2>&5
28735   ac_status=$?
28736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737   (exit $ac_status); }; }; then
28738   ac_header_compiler=yes
28739 else
28740   echo "$as_me: failed program was:" >&5
28741 sed 's/^/| /' conftest.$ac_ext >&5
28742
28743         ac_header_compiler=no
28744 fi
28745
28746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28748 echo "${ECHO_T}$ac_header_compiler" >&6; }
28749
28750 # Is the header present?
28751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28753 cat >conftest.$ac_ext <<_ACEOF
28754 /* confdefs.h.  */
28755 _ACEOF
28756 cat confdefs.h >>conftest.$ac_ext
28757 cat >>conftest.$ac_ext <<_ACEOF
28758 /* end confdefs.h.  */
28759 #include <$ac_header>
28760 _ACEOF
28761 if { (ac_try="$ac_cpp conftest.$ac_ext"
28762 case "(($ac_try" in
28763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764   *) ac_try_echo=$ac_try;;
28765 esac
28766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28768   ac_status=$?
28769   grep -v '^ *+' conftest.er1 >conftest.err
28770   rm -f conftest.er1
28771   cat conftest.err >&5
28772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773   (exit $ac_status); } >/dev/null; then
28774   if test -s conftest.err; then
28775     ac_cpp_err=$ac_c_preproc_warn_flag
28776     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28777   else
28778     ac_cpp_err=
28779   fi
28780 else
28781   ac_cpp_err=yes
28782 fi
28783 if test -z "$ac_cpp_err"; then
28784   ac_header_preproc=yes
28785 else
28786   echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.$ac_ext >&5
28788
28789   ac_header_preproc=no
28790 fi
28791
28792 rm -f conftest.err conftest.$ac_ext
28793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28794 echo "${ECHO_T}$ac_header_preproc" >&6; }
28795
28796 # So?  What about this header?
28797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28798   yes:no: )
28799     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28803     ac_header_preproc=yes
28804     ;;
28805   no:yes:* )
28806     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28808     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28809 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28810     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28812     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28813 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28816     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28818     ( cat <<\_ASBOX
28819 ## ----------------------------------- ##
28820 ## Report this to llvmbugs@cs.uiuc.edu ##
28821 ## ----------------------------------- ##
28822 _ASBOX
28823      ) | sed "s/^/$as_me: WARNING:     /" >&2
28824     ;;
28825 esac
28826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28829   echo $ECHO_N "(cached) $ECHO_C" >&6
28830 else
28831   eval "$as_ac_Header=\$ac_header_preproc"
28832 fi
28833 ac_res=`eval echo '${'$as_ac_Header'}'`
28834                { echo "$as_me:$LINENO: result: $ac_res" >&5
28835 echo "${ECHO_T}$ac_res" >&6; }
28836
28837 fi
28838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28839   cat >>confdefs.h <<_ACEOF
28840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28841 _ACEOF
28842
28843 fi
28844
28845 done
28846
28847
28848
28849
28850
28851
28852
28853 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28854 do
28855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28857   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28860   echo $ECHO_N "(cached) $ECHO_C" >&6
28861 fi
28862 ac_res=`eval echo '${'$as_ac_Header'}'`
28863                { echo "$as_me:$LINENO: result: $ac_res" >&5
28864 echo "${ECHO_T}$ac_res" >&6; }
28865 else
28866   # Is the header compilable?
28867 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28869 cat >conftest.$ac_ext <<_ACEOF
28870 /* confdefs.h.  */
28871 _ACEOF
28872 cat confdefs.h >>conftest.$ac_ext
28873 cat >>conftest.$ac_ext <<_ACEOF
28874 /* end confdefs.h.  */
28875 $ac_includes_default
28876 #include <$ac_header>
28877 _ACEOF
28878 rm -f conftest.$ac_objext
28879 if { (ac_try="$ac_compile"
28880 case "(($ac_try" in
28881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28882   *) ac_try_echo=$ac_try;;
28883 esac
28884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28885   (eval "$ac_compile") 2>conftest.er1
28886   ac_status=$?
28887   grep -v '^ *+' conftest.er1 >conftest.err
28888   rm -f conftest.er1
28889   cat conftest.err >&5
28890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891   (exit $ac_status); } &&
28892          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28893   { (case "(($ac_try" in
28894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28895   *) ac_try_echo=$ac_try;;
28896 esac
28897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28898   (eval "$ac_try") 2>&5
28899   ac_status=$?
28900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901   (exit $ac_status); }; } &&
28902          { ac_try='test -s conftest.$ac_objext'
28903   { (case "(($ac_try" in
28904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28905   *) ac_try_echo=$ac_try;;
28906 esac
28907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28908   (eval "$ac_try") 2>&5
28909   ac_status=$?
28910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911   (exit $ac_status); }; }; then
28912   ac_header_compiler=yes
28913 else
28914   echo "$as_me: failed program was:" >&5
28915 sed 's/^/| /' conftest.$ac_ext >&5
28916
28917         ac_header_compiler=no
28918 fi
28919
28920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28921 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28922 echo "${ECHO_T}$ac_header_compiler" >&6; }
28923
28924 # Is the header present?
28925 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28926 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28927 cat >conftest.$ac_ext <<_ACEOF
28928 /* confdefs.h.  */
28929 _ACEOF
28930 cat confdefs.h >>conftest.$ac_ext
28931 cat >>conftest.$ac_ext <<_ACEOF
28932 /* end confdefs.h.  */
28933 #include <$ac_header>
28934 _ACEOF
28935 if { (ac_try="$ac_cpp conftest.$ac_ext"
28936 case "(($ac_try" in
28937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28938   *) ac_try_echo=$ac_try;;
28939 esac
28940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28941   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28942   ac_status=$?
28943   grep -v '^ *+' conftest.er1 >conftest.err
28944   rm -f conftest.er1
28945   cat conftest.err >&5
28946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947   (exit $ac_status); } >/dev/null; then
28948   if test -s conftest.err; then
28949     ac_cpp_err=$ac_c_preproc_warn_flag
28950     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28951   else
28952     ac_cpp_err=
28953   fi
28954 else
28955   ac_cpp_err=yes
28956 fi
28957 if test -z "$ac_cpp_err"; then
28958   ac_header_preproc=yes
28959 else
28960   echo "$as_me: failed program was:" >&5
28961 sed 's/^/| /' conftest.$ac_ext >&5
28962
28963   ac_header_preproc=no
28964 fi
28965
28966 rm -f conftest.err conftest.$ac_ext
28967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28968 echo "${ECHO_T}$ac_header_preproc" >&6; }
28969
28970 # So?  What about this header?
28971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28972   yes:no: )
28973     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28975     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28977     ac_header_preproc=yes
28978     ;;
28979   no:yes:* )
28980     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28982     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28983 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28984     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28986     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28987 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28988     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28990     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28992     ( cat <<\_ASBOX
28993 ## ----------------------------------- ##
28994 ## Report this to llvmbugs@cs.uiuc.edu ##
28995 ## ----------------------------------- ##
28996 _ASBOX
28997      ) | sed "s/^/$as_me: WARNING:     /" >&2
28998     ;;
28999 esac
29000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29003   echo $ECHO_N "(cached) $ECHO_C" >&6
29004 else
29005   eval "$as_ac_Header=\$ac_header_preproc"
29006 fi
29007 ac_res=`eval echo '${'$as_ac_Header'}'`
29008                { echo "$as_me:$LINENO: result: $ac_res" >&5
29009 echo "${ECHO_T}$ac_res" >&6; }
29010
29011 fi
29012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29013   cat >>confdefs.h <<_ACEOF
29014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29015 _ACEOF
29016
29017 fi
29018
29019 done
29020
29021
29022 for ac_header in windows.h
29023 do
29024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29026   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29029   echo $ECHO_N "(cached) $ECHO_C" >&6
29030 fi
29031 ac_res=`eval echo '${'$as_ac_Header'}'`
29032                { echo "$as_me:$LINENO: result: $ac_res" >&5
29033 echo "${ECHO_T}$ac_res" >&6; }
29034 else
29035   # Is the header compilable?
29036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29038 cat >conftest.$ac_ext <<_ACEOF
29039 /* confdefs.h.  */
29040 _ACEOF
29041 cat confdefs.h >>conftest.$ac_ext
29042 cat >>conftest.$ac_ext <<_ACEOF
29043 /* end confdefs.h.  */
29044 $ac_includes_default
29045 #include <$ac_header>
29046 _ACEOF
29047 rm -f conftest.$ac_objext
29048 if { (ac_try="$ac_compile"
29049 case "(($ac_try" in
29050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29051   *) ac_try_echo=$ac_try;;
29052 esac
29053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29054   (eval "$ac_compile") 2>conftest.er1
29055   ac_status=$?
29056   grep -v '^ *+' conftest.er1 >conftest.err
29057   rm -f conftest.er1
29058   cat conftest.err >&5
29059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060   (exit $ac_status); } &&
29061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29062   { (case "(($ac_try" in
29063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29064   *) ac_try_echo=$ac_try;;
29065 esac
29066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29067   (eval "$ac_try") 2>&5
29068   ac_status=$?
29069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070   (exit $ac_status); }; } &&
29071          { ac_try='test -s conftest.$ac_objext'
29072   { (case "(($ac_try" in
29073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29074   *) ac_try_echo=$ac_try;;
29075 esac
29076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29077   (eval "$ac_try") 2>&5
29078   ac_status=$?
29079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080   (exit $ac_status); }; }; then
29081   ac_header_compiler=yes
29082 else
29083   echo "$as_me: failed program was:" >&5
29084 sed 's/^/| /' conftest.$ac_ext >&5
29085
29086         ac_header_compiler=no
29087 fi
29088
29089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29091 echo "${ECHO_T}$ac_header_compiler" >&6; }
29092
29093 # Is the header present?
29094 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29096 cat >conftest.$ac_ext <<_ACEOF
29097 /* confdefs.h.  */
29098 _ACEOF
29099 cat confdefs.h >>conftest.$ac_ext
29100 cat >>conftest.$ac_ext <<_ACEOF
29101 /* end confdefs.h.  */
29102 #include <$ac_header>
29103 _ACEOF
29104 if { (ac_try="$ac_cpp conftest.$ac_ext"
29105 case "(($ac_try" in
29106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29107   *) ac_try_echo=$ac_try;;
29108 esac
29109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29110   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29111   ac_status=$?
29112   grep -v '^ *+' conftest.er1 >conftest.err
29113   rm -f conftest.er1
29114   cat conftest.err >&5
29115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116   (exit $ac_status); } >/dev/null; then
29117   if test -s conftest.err; then
29118     ac_cpp_err=$ac_c_preproc_warn_flag
29119     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29120   else
29121     ac_cpp_err=
29122   fi
29123 else
29124   ac_cpp_err=yes
29125 fi
29126 if test -z "$ac_cpp_err"; then
29127   ac_header_preproc=yes
29128 else
29129   echo "$as_me: failed program was:" >&5
29130 sed 's/^/| /' conftest.$ac_ext >&5
29131
29132   ac_header_preproc=no
29133 fi
29134
29135 rm -f conftest.err conftest.$ac_ext
29136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29137 echo "${ECHO_T}$ac_header_preproc" >&6; }
29138
29139 # So?  What about this header?
29140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29141   yes:no: )
29142     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29146     ac_header_preproc=yes
29147     ;;
29148   no:yes:* )
29149     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29151     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29152 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29153     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29155     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29156 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29159     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29161     ( cat <<\_ASBOX
29162 ## ----------------------------------- ##
29163 ## Report this to llvmbugs@cs.uiuc.edu ##
29164 ## ----------------------------------- ##
29165 _ASBOX
29166      ) | sed "s/^/$as_me: WARNING:     /" >&2
29167     ;;
29168 esac
29169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29172   echo $ECHO_N "(cached) $ECHO_C" >&6
29173 else
29174   eval "$as_ac_Header=\$ac_header_preproc"
29175 fi
29176 ac_res=`eval echo '${'$as_ac_Header'}'`
29177                { echo "$as_me:$LINENO: result: $ac_res" >&5
29178 echo "${ECHO_T}$ac_res" >&6; }
29179
29180 fi
29181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29182   cat >>confdefs.h <<_ACEOF
29183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29184 _ACEOF
29185
29186 fi
29187
29188 done
29189
29190
29191
29192
29193
29194 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29195 do
29196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29198   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29201   echo $ECHO_N "(cached) $ECHO_C" >&6
29202 fi
29203 ac_res=`eval echo '${'$as_ac_Header'}'`
29204                { echo "$as_me:$LINENO: result: $ac_res" >&5
29205 echo "${ECHO_T}$ac_res" >&6; }
29206 else
29207   # Is the header compilable?
29208 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29210 cat >conftest.$ac_ext <<_ACEOF
29211 /* confdefs.h.  */
29212 _ACEOF
29213 cat confdefs.h >>conftest.$ac_ext
29214 cat >>conftest.$ac_ext <<_ACEOF
29215 /* end confdefs.h.  */
29216 $ac_includes_default
29217 #include <$ac_header>
29218 _ACEOF
29219 rm -f conftest.$ac_objext
29220 if { (ac_try="$ac_compile"
29221 case "(($ac_try" in
29222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29223   *) ac_try_echo=$ac_try;;
29224 esac
29225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29226   (eval "$ac_compile") 2>conftest.er1
29227   ac_status=$?
29228   grep -v '^ *+' conftest.er1 >conftest.err
29229   rm -f conftest.er1
29230   cat conftest.err >&5
29231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232   (exit $ac_status); } &&
29233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29234   { (case "(($ac_try" in
29235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29236   *) ac_try_echo=$ac_try;;
29237 esac
29238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29239   (eval "$ac_try") 2>&5
29240   ac_status=$?
29241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242   (exit $ac_status); }; } &&
29243          { ac_try='test -s conftest.$ac_objext'
29244   { (case "(($ac_try" in
29245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29246   *) ac_try_echo=$ac_try;;
29247 esac
29248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29249   (eval "$ac_try") 2>&5
29250   ac_status=$?
29251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29252   (exit $ac_status); }; }; then
29253   ac_header_compiler=yes
29254 else
29255   echo "$as_me: failed program was:" >&5
29256 sed 's/^/| /' conftest.$ac_ext >&5
29257
29258         ac_header_compiler=no
29259 fi
29260
29261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29263 echo "${ECHO_T}$ac_header_compiler" >&6; }
29264
29265 # Is the header present?
29266 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29268 cat >conftest.$ac_ext <<_ACEOF
29269 /* confdefs.h.  */
29270 _ACEOF
29271 cat confdefs.h >>conftest.$ac_ext
29272 cat >>conftest.$ac_ext <<_ACEOF
29273 /* end confdefs.h.  */
29274 #include <$ac_header>
29275 _ACEOF
29276 if { (ac_try="$ac_cpp conftest.$ac_ext"
29277 case "(($ac_try" in
29278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29279   *) ac_try_echo=$ac_try;;
29280 esac
29281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29282   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29283   ac_status=$?
29284   grep -v '^ *+' conftest.er1 >conftest.err
29285   rm -f conftest.er1
29286   cat conftest.err >&5
29287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288   (exit $ac_status); } >/dev/null; then
29289   if test -s conftest.err; then
29290     ac_cpp_err=$ac_c_preproc_warn_flag
29291     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29292   else
29293     ac_cpp_err=
29294   fi
29295 else
29296   ac_cpp_err=yes
29297 fi
29298 if test -z "$ac_cpp_err"; then
29299   ac_header_preproc=yes
29300 else
29301   echo "$as_me: failed program was:" >&5
29302 sed 's/^/| /' conftest.$ac_ext >&5
29303
29304   ac_header_preproc=no
29305 fi
29306
29307 rm -f conftest.err conftest.$ac_ext
29308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29309 echo "${ECHO_T}$ac_header_preproc" >&6; }
29310
29311 # So?  What about this header?
29312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29313   yes:no: )
29314     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29316     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29318     ac_header_preproc=yes
29319     ;;
29320   no:yes:* )
29321     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29323     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29324 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29325     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29327     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29328 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29329     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29331     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29333     ( cat <<\_ASBOX
29334 ## ----------------------------------- ##
29335 ## Report this to llvmbugs@cs.uiuc.edu ##
29336 ## ----------------------------------- ##
29337 _ASBOX
29338      ) | sed "s/^/$as_me: WARNING:     /" >&2
29339     ;;
29340 esac
29341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29344   echo $ECHO_N "(cached) $ECHO_C" >&6
29345 else
29346   eval "$as_ac_Header=\$ac_header_preproc"
29347 fi
29348 ac_res=`eval echo '${'$as_ac_Header'}'`
29349                { echo "$as_me:$LINENO: result: $ac_res" >&5
29350 echo "${ECHO_T}$ac_res" >&6; }
29351
29352 fi
29353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29354   cat >>confdefs.h <<_ACEOF
29355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29356 _ACEOF
29357
29358 fi
29359
29360 done
29361
29362
29363
29364
29365 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29366 do
29367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29369   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29372   echo $ECHO_N "(cached) $ECHO_C" >&6
29373 fi
29374 ac_res=`eval echo '${'$as_ac_Header'}'`
29375                { echo "$as_me:$LINENO: result: $ac_res" >&5
29376 echo "${ECHO_T}$ac_res" >&6; }
29377 else
29378   # Is the header compilable?
29379 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29381 cat >conftest.$ac_ext <<_ACEOF
29382 /* confdefs.h.  */
29383 _ACEOF
29384 cat confdefs.h >>conftest.$ac_ext
29385 cat >>conftest.$ac_ext <<_ACEOF
29386 /* end confdefs.h.  */
29387 $ac_includes_default
29388 #include <$ac_header>
29389 _ACEOF
29390 rm -f conftest.$ac_objext
29391 if { (ac_try="$ac_compile"
29392 case "(($ac_try" in
29393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29394   *) ac_try_echo=$ac_try;;
29395 esac
29396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29397   (eval "$ac_compile") 2>conftest.er1
29398   ac_status=$?
29399   grep -v '^ *+' conftest.er1 >conftest.err
29400   rm -f conftest.er1
29401   cat conftest.err >&5
29402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403   (exit $ac_status); } &&
29404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29405   { (case "(($ac_try" in
29406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29407   *) ac_try_echo=$ac_try;;
29408 esac
29409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29410   (eval "$ac_try") 2>&5
29411   ac_status=$?
29412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413   (exit $ac_status); }; } &&
29414          { ac_try='test -s conftest.$ac_objext'
29415   { (case "(($ac_try" in
29416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29417   *) ac_try_echo=$ac_try;;
29418 esac
29419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29420   (eval "$ac_try") 2>&5
29421   ac_status=$?
29422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423   (exit $ac_status); }; }; then
29424   ac_header_compiler=yes
29425 else
29426   echo "$as_me: failed program was:" >&5
29427 sed 's/^/| /' conftest.$ac_ext >&5
29428
29429         ac_header_compiler=no
29430 fi
29431
29432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29434 echo "${ECHO_T}$ac_header_compiler" >&6; }
29435
29436 # Is the header present?
29437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29439 cat >conftest.$ac_ext <<_ACEOF
29440 /* confdefs.h.  */
29441 _ACEOF
29442 cat confdefs.h >>conftest.$ac_ext
29443 cat >>conftest.$ac_ext <<_ACEOF
29444 /* end confdefs.h.  */
29445 #include <$ac_header>
29446 _ACEOF
29447 if { (ac_try="$ac_cpp conftest.$ac_ext"
29448 case "(($ac_try" in
29449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29450   *) ac_try_echo=$ac_try;;
29451 esac
29452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29453   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29454   ac_status=$?
29455   grep -v '^ *+' conftest.er1 >conftest.err
29456   rm -f conftest.er1
29457   cat conftest.err >&5
29458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459   (exit $ac_status); } >/dev/null; then
29460   if test -s conftest.err; then
29461     ac_cpp_err=$ac_c_preproc_warn_flag
29462     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29463   else
29464     ac_cpp_err=
29465   fi
29466 else
29467   ac_cpp_err=yes
29468 fi
29469 if test -z "$ac_cpp_err"; then
29470   ac_header_preproc=yes
29471 else
29472   echo "$as_me: failed program was:" >&5
29473 sed 's/^/| /' conftest.$ac_ext >&5
29474
29475   ac_header_preproc=no
29476 fi
29477
29478 rm -f conftest.err conftest.$ac_ext
29479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29480 echo "${ECHO_T}$ac_header_preproc" >&6; }
29481
29482 # So?  What about this header?
29483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29484   yes:no: )
29485     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29489     ac_header_preproc=yes
29490     ;;
29491   no:yes:* )
29492     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29494     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29495 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29496     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29498     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29499 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29502     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29504     ( cat <<\_ASBOX
29505 ## ----------------------------------- ##
29506 ## Report this to llvmbugs@cs.uiuc.edu ##
29507 ## ----------------------------------- ##
29508 _ASBOX
29509      ) | sed "s/^/$as_me: WARNING:     /" >&2
29510     ;;
29511 esac
29512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29515   echo $ECHO_N "(cached) $ECHO_C" >&6
29516 else
29517   eval "$as_ac_Header=\$ac_header_preproc"
29518 fi
29519 ac_res=`eval echo '${'$as_ac_Header'}'`
29520                { echo "$as_me:$LINENO: result: $ac_res" >&5
29521 echo "${ECHO_T}$ac_res" >&6; }
29522
29523 fi
29524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29525   cat >>confdefs.h <<_ACEOF
29526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29527 _ACEOF
29528
29529 fi
29530
29531 done
29532
29533 if test "$ENABLE_THREADS" -eq 1 ; then
29534
29535 for ac_header in pthread.h
29536 do
29537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29539   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29542   echo $ECHO_N "(cached) $ECHO_C" >&6
29543 fi
29544 ac_res=`eval echo '${'$as_ac_Header'}'`
29545                { echo "$as_me:$LINENO: result: $ac_res" >&5
29546 echo "${ECHO_T}$ac_res" >&6; }
29547 else
29548   # Is the header compilable?
29549 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29551 cat >conftest.$ac_ext <<_ACEOF
29552 /* confdefs.h.  */
29553 _ACEOF
29554 cat confdefs.h >>conftest.$ac_ext
29555 cat >>conftest.$ac_ext <<_ACEOF
29556 /* end confdefs.h.  */
29557 $ac_includes_default
29558 #include <$ac_header>
29559 _ACEOF
29560 rm -f conftest.$ac_objext
29561 if { (ac_try="$ac_compile"
29562 case "(($ac_try" in
29563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29564   *) ac_try_echo=$ac_try;;
29565 esac
29566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29567   (eval "$ac_compile") 2>conftest.er1
29568   ac_status=$?
29569   grep -v '^ *+' conftest.er1 >conftest.err
29570   rm -f conftest.er1
29571   cat conftest.err >&5
29572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573   (exit $ac_status); } &&
29574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29575   { (case "(($ac_try" in
29576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29577   *) ac_try_echo=$ac_try;;
29578 esac
29579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29580   (eval "$ac_try") 2>&5
29581   ac_status=$?
29582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583   (exit $ac_status); }; } &&
29584          { ac_try='test -s conftest.$ac_objext'
29585   { (case "(($ac_try" in
29586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587   *) ac_try_echo=$ac_try;;
29588 esac
29589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29590   (eval "$ac_try") 2>&5
29591   ac_status=$?
29592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593   (exit $ac_status); }; }; then
29594   ac_header_compiler=yes
29595 else
29596   echo "$as_me: failed program was:" >&5
29597 sed 's/^/| /' conftest.$ac_ext >&5
29598
29599         ac_header_compiler=no
29600 fi
29601
29602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29604 echo "${ECHO_T}$ac_header_compiler" >&6; }
29605
29606 # Is the header present?
29607 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29609 cat >conftest.$ac_ext <<_ACEOF
29610 /* confdefs.h.  */
29611 _ACEOF
29612 cat confdefs.h >>conftest.$ac_ext
29613 cat >>conftest.$ac_ext <<_ACEOF
29614 /* end confdefs.h.  */
29615 #include <$ac_header>
29616 _ACEOF
29617 if { (ac_try="$ac_cpp conftest.$ac_ext"
29618 case "(($ac_try" in
29619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29620   *) ac_try_echo=$ac_try;;
29621 esac
29622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29623   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29624   ac_status=$?
29625   grep -v '^ *+' conftest.er1 >conftest.err
29626   rm -f conftest.er1
29627   cat conftest.err >&5
29628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629   (exit $ac_status); } >/dev/null; then
29630   if test -s conftest.err; then
29631     ac_cpp_err=$ac_c_preproc_warn_flag
29632     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29633   else
29634     ac_cpp_err=
29635   fi
29636 else
29637   ac_cpp_err=yes
29638 fi
29639 if test -z "$ac_cpp_err"; then
29640   ac_header_preproc=yes
29641 else
29642   echo "$as_me: failed program was:" >&5
29643 sed 's/^/| /' conftest.$ac_ext >&5
29644
29645   ac_header_preproc=no
29646 fi
29647
29648 rm -f conftest.err conftest.$ac_ext
29649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29650 echo "${ECHO_T}$ac_header_preproc" >&6; }
29651
29652 # So?  What about this header?
29653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29654   yes:no: )
29655     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29659     ac_header_preproc=yes
29660     ;;
29661   no:yes:* )
29662     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29664     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29665 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29666     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29668     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29669 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29670     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29672     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29674     ( cat <<\_ASBOX
29675 ## ----------------------------------- ##
29676 ## Report this to llvmbugs@cs.uiuc.edu ##
29677 ## ----------------------------------- ##
29678 _ASBOX
29679      ) | sed "s/^/$as_me: WARNING:     /" >&2
29680     ;;
29681 esac
29682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29685   echo $ECHO_N "(cached) $ECHO_C" >&6
29686 else
29687   eval "$as_ac_Header=\$ac_header_preproc"
29688 fi
29689 ac_res=`eval echo '${'$as_ac_Header'}'`
29690                { echo "$as_me:$LINENO: result: $ac_res" >&5
29691 echo "${ECHO_T}$ac_res" >&6; }
29692
29693 fi
29694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29695   cat >>confdefs.h <<_ACEOF
29696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29697 _ACEOF
29698  HAVE_PTHREAD=1
29699
29700 else
29701   HAVE_PTHREAD=0
29702
29703 fi
29704
29705 done
29706
29707 else
29708   HAVE_PTHREAD=0
29709
29710 fi
29711
29712
29713
29714   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29715 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29716 if test "${ac_cv_huge_val_sanity+set}" = set; then
29717   echo $ECHO_N "(cached) $ECHO_C" >&6
29718 else
29719
29720     ac_ext=cpp
29721 ac_cpp='$CXXCPP $CPPFLAGS'
29722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29725
29726     CXXFLAGS=-pedantic
29727     if test "$cross_compiling" = yes; then
29728   ac_cv_huge_val_sanity=yes
29729 else
29730   cat >conftest.$ac_ext <<_ACEOF
29731 /* confdefs.h.  */
29732 _ACEOF
29733 cat confdefs.h >>conftest.$ac_ext
29734 cat >>conftest.$ac_ext <<_ACEOF
29735 /* end confdefs.h.  */
29736 #include <math.h>
29737 int
29738 main ()
29739 {
29740 double x = HUGE_VAL; return x != x;
29741   ;
29742   return 0;
29743 }
29744 _ACEOF
29745 rm -f conftest$ac_exeext
29746 if { (ac_try="$ac_link"
29747 case "(($ac_try" in
29748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29749   *) ac_try_echo=$ac_try;;
29750 esac
29751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29752   (eval "$ac_link") 2>&5
29753   ac_status=$?
29754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29756   { (case "(($ac_try" in
29757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29758   *) ac_try_echo=$ac_try;;
29759 esac
29760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29761   (eval "$ac_try") 2>&5
29762   ac_status=$?
29763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764   (exit $ac_status); }; }; then
29765   ac_cv_huge_val_sanity=yes
29766 else
29767   echo "$as_me: program exited with status $ac_status" >&5
29768 echo "$as_me: failed program was:" >&5
29769 sed 's/^/| /' conftest.$ac_ext >&5
29770
29771 ( exit $ac_status )
29772 ac_cv_huge_val_sanity=no
29773 fi
29774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29775 fi
29776
29777
29778     ac_ext=c
29779 ac_cpp='$CPP $CPPFLAGS'
29780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29783
29784
29785 fi
29786 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29787 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29788   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29789
29790
29791 { echo "$as_me:$LINENO: checking for pid_t" >&5
29792 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29793 if test "${ac_cv_type_pid_t+set}" = set; then
29794   echo $ECHO_N "(cached) $ECHO_C" >&6
29795 else
29796   cat >conftest.$ac_ext <<_ACEOF
29797 /* confdefs.h.  */
29798 _ACEOF
29799 cat confdefs.h >>conftest.$ac_ext
29800 cat >>conftest.$ac_ext <<_ACEOF
29801 /* end confdefs.h.  */
29802 $ac_includes_default
29803 typedef pid_t ac__type_new_;
29804 int
29805 main ()
29806 {
29807 if ((ac__type_new_ *) 0)
29808   return 0;
29809 if (sizeof (ac__type_new_))
29810   return 0;
29811   ;
29812   return 0;
29813 }
29814 _ACEOF
29815 rm -f conftest.$ac_objext
29816 if { (ac_try="$ac_compile"
29817 case "(($ac_try" in
29818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29819   *) ac_try_echo=$ac_try;;
29820 esac
29821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29822   (eval "$ac_compile") 2>conftest.er1
29823   ac_status=$?
29824   grep -v '^ *+' conftest.er1 >conftest.err
29825   rm -f conftest.er1
29826   cat conftest.err >&5
29827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828   (exit $ac_status); } &&
29829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29830   { (case "(($ac_try" in
29831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29832   *) ac_try_echo=$ac_try;;
29833 esac
29834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29835   (eval "$ac_try") 2>&5
29836   ac_status=$?
29837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838   (exit $ac_status); }; } &&
29839          { ac_try='test -s conftest.$ac_objext'
29840   { (case "(($ac_try" in
29841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29842   *) ac_try_echo=$ac_try;;
29843 esac
29844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29845   (eval "$ac_try") 2>&5
29846   ac_status=$?
29847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848   (exit $ac_status); }; }; then
29849   ac_cv_type_pid_t=yes
29850 else
29851   echo "$as_me: failed program was:" >&5
29852 sed 's/^/| /' conftest.$ac_ext >&5
29853
29854         ac_cv_type_pid_t=no
29855 fi
29856
29857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29858 fi
29859 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29860 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29861 if test $ac_cv_type_pid_t = yes; then
29862   :
29863 else
29864
29865 cat >>confdefs.h <<_ACEOF
29866 #define pid_t int
29867 _ACEOF
29868
29869 fi
29870
29871 { echo "$as_me:$LINENO: checking for size_t" >&5
29872 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29873 if test "${ac_cv_type_size_t+set}" = set; then
29874   echo $ECHO_N "(cached) $ECHO_C" >&6
29875 else
29876   cat >conftest.$ac_ext <<_ACEOF
29877 /* confdefs.h.  */
29878 _ACEOF
29879 cat confdefs.h >>conftest.$ac_ext
29880 cat >>conftest.$ac_ext <<_ACEOF
29881 /* end confdefs.h.  */
29882 $ac_includes_default
29883 typedef size_t ac__type_new_;
29884 int
29885 main ()
29886 {
29887 if ((ac__type_new_ *) 0)
29888   return 0;
29889 if (sizeof (ac__type_new_))
29890   return 0;
29891   ;
29892   return 0;
29893 }
29894 _ACEOF
29895 rm -f conftest.$ac_objext
29896 if { (ac_try="$ac_compile"
29897 case "(($ac_try" in
29898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29899   *) ac_try_echo=$ac_try;;
29900 esac
29901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29902   (eval "$ac_compile") 2>conftest.er1
29903   ac_status=$?
29904   grep -v '^ *+' conftest.er1 >conftest.err
29905   rm -f conftest.er1
29906   cat conftest.err >&5
29907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908   (exit $ac_status); } &&
29909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29910   { (case "(($ac_try" in
29911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29912   *) ac_try_echo=$ac_try;;
29913 esac
29914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29915   (eval "$ac_try") 2>&5
29916   ac_status=$?
29917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918   (exit $ac_status); }; } &&
29919          { ac_try='test -s conftest.$ac_objext'
29920   { (case "(($ac_try" in
29921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29922   *) ac_try_echo=$ac_try;;
29923 esac
29924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29925   (eval "$ac_try") 2>&5
29926   ac_status=$?
29927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928   (exit $ac_status); }; }; then
29929   ac_cv_type_size_t=yes
29930 else
29931   echo "$as_me: failed program was:" >&5
29932 sed 's/^/| /' conftest.$ac_ext >&5
29933
29934         ac_cv_type_size_t=no
29935 fi
29936
29937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29938 fi
29939 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29940 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29941 if test $ac_cv_type_size_t = yes; then
29942   :
29943 else
29944
29945 cat >>confdefs.h <<_ACEOF
29946 #define size_t unsigned int
29947 _ACEOF
29948
29949 fi
29950
29951 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29952 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29953 if test "${ac_cv_type_signal+set}" = set; then
29954   echo $ECHO_N "(cached) $ECHO_C" >&6
29955 else
29956   cat >conftest.$ac_ext <<_ACEOF
29957 /* confdefs.h.  */
29958 _ACEOF
29959 cat confdefs.h >>conftest.$ac_ext
29960 cat >>conftest.$ac_ext <<_ACEOF
29961 /* end confdefs.h.  */
29962 #include <sys/types.h>
29963 #include <signal.h>
29964
29965 int
29966 main ()
29967 {
29968 return *(signal (0, 0)) (0) == 1;
29969   ;
29970   return 0;
29971 }
29972 _ACEOF
29973 rm -f conftest.$ac_objext
29974 if { (ac_try="$ac_compile"
29975 case "(($ac_try" in
29976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29977   *) ac_try_echo=$ac_try;;
29978 esac
29979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29980   (eval "$ac_compile") 2>conftest.er1
29981   ac_status=$?
29982   grep -v '^ *+' conftest.er1 >conftest.err
29983   rm -f conftest.er1
29984   cat conftest.err >&5
29985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986   (exit $ac_status); } &&
29987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29988   { (case "(($ac_try" in
29989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29990   *) ac_try_echo=$ac_try;;
29991 esac
29992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29993   (eval "$ac_try") 2>&5
29994   ac_status=$?
29995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996   (exit $ac_status); }; } &&
29997          { ac_try='test -s conftest.$ac_objext'
29998   { (case "(($ac_try" in
29999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30000   *) ac_try_echo=$ac_try;;
30001 esac
30002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30003   (eval "$ac_try") 2>&5
30004   ac_status=$?
30005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30006   (exit $ac_status); }; }; then
30007   ac_cv_type_signal=int
30008 else
30009   echo "$as_me: failed program was:" >&5
30010 sed 's/^/| /' conftest.$ac_ext >&5
30011
30012         ac_cv_type_signal=void
30013 fi
30014
30015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30016 fi
30017 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30018 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30019
30020 cat >>confdefs.h <<_ACEOF
30021 #define RETSIGTYPE $ac_cv_type_signal
30022 _ACEOF
30023
30024
30025 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30026 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30027 if test "${ac_cv_struct_tm+set}" = set; then
30028   echo $ECHO_N "(cached) $ECHO_C" >&6
30029 else
30030   cat >conftest.$ac_ext <<_ACEOF
30031 /* confdefs.h.  */
30032 _ACEOF
30033 cat confdefs.h >>conftest.$ac_ext
30034 cat >>conftest.$ac_ext <<_ACEOF
30035 /* end confdefs.h.  */
30036 #include <sys/types.h>
30037 #include <time.h>
30038
30039 int
30040 main ()
30041 {
30042 struct tm *tp; tp->tm_sec;
30043   ;
30044   return 0;
30045 }
30046 _ACEOF
30047 rm -f conftest.$ac_objext
30048 if { (ac_try="$ac_compile"
30049 case "(($ac_try" in
30050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30051   *) ac_try_echo=$ac_try;;
30052 esac
30053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30054   (eval "$ac_compile") 2>conftest.er1
30055   ac_status=$?
30056   grep -v '^ *+' conftest.er1 >conftest.err
30057   rm -f conftest.er1
30058   cat conftest.err >&5
30059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060   (exit $ac_status); } &&
30061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30062   { (case "(($ac_try" in
30063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30064   *) ac_try_echo=$ac_try;;
30065 esac
30066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30067   (eval "$ac_try") 2>&5
30068   ac_status=$?
30069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070   (exit $ac_status); }; } &&
30071          { ac_try='test -s conftest.$ac_objext'
30072   { (case "(($ac_try" in
30073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30074   *) ac_try_echo=$ac_try;;
30075 esac
30076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30077   (eval "$ac_try") 2>&5
30078   ac_status=$?
30079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080   (exit $ac_status); }; }; then
30081   ac_cv_struct_tm=time.h
30082 else
30083   echo "$as_me: failed program was:" >&5
30084 sed 's/^/| /' conftest.$ac_ext >&5
30085
30086         ac_cv_struct_tm=sys/time.h
30087 fi
30088
30089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30090 fi
30091 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30092 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30093 if test $ac_cv_struct_tm = sys/time.h; then
30094
30095 cat >>confdefs.h <<\_ACEOF
30096 #define TM_IN_SYS_TIME 1
30097 _ACEOF
30098
30099 fi
30100
30101 { echo "$as_me:$LINENO: checking for int64_t" >&5
30102 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30103 if test "${ac_cv_type_int64_t+set}" = set; then
30104   echo $ECHO_N "(cached) $ECHO_C" >&6
30105 else
30106   cat >conftest.$ac_ext <<_ACEOF
30107 /* confdefs.h.  */
30108 _ACEOF
30109 cat confdefs.h >>conftest.$ac_ext
30110 cat >>conftest.$ac_ext <<_ACEOF
30111 /* end confdefs.h.  */
30112 $ac_includes_default
30113 typedef int64_t ac__type_new_;
30114 int
30115 main ()
30116 {
30117 if ((ac__type_new_ *) 0)
30118   return 0;
30119 if (sizeof (ac__type_new_))
30120   return 0;
30121   ;
30122   return 0;
30123 }
30124 _ACEOF
30125 rm -f conftest.$ac_objext
30126 if { (ac_try="$ac_compile"
30127 case "(($ac_try" in
30128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30129   *) ac_try_echo=$ac_try;;
30130 esac
30131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30132   (eval "$ac_compile") 2>conftest.er1
30133   ac_status=$?
30134   grep -v '^ *+' conftest.er1 >conftest.err
30135   rm -f conftest.er1
30136   cat conftest.err >&5
30137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138   (exit $ac_status); } &&
30139          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
30146   ac_status=$?
30147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148   (exit $ac_status); }; } &&
30149          { ac_try='test -s conftest.$ac_objext'
30150   { (case "(($ac_try" in
30151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30152   *) ac_try_echo=$ac_try;;
30153 esac
30154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30155   (eval "$ac_try") 2>&5
30156   ac_status=$?
30157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158   (exit $ac_status); }; }; then
30159   ac_cv_type_int64_t=yes
30160 else
30161   echo "$as_me: failed program was:" >&5
30162 sed 's/^/| /' conftest.$ac_ext >&5
30163
30164         ac_cv_type_int64_t=no
30165 fi
30166
30167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30168 fi
30169 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30170 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30171 if test $ac_cv_type_int64_t = yes; then
30172
30173 cat >>confdefs.h <<_ACEOF
30174 #define HAVE_INT64_T 1
30175 _ACEOF
30176
30177
30178 else
30179   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30180 echo "$as_me: error: Type int64_t required but not found" >&2;}
30181    { (exit 1); exit 1; }; }
30182 fi
30183
30184 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30185 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30186 if test "${ac_cv_type_uint64_t+set}" = set; then
30187   echo $ECHO_N "(cached) $ECHO_C" >&6
30188 else
30189   cat >conftest.$ac_ext <<_ACEOF
30190 /* confdefs.h.  */
30191 _ACEOF
30192 cat confdefs.h >>conftest.$ac_ext
30193 cat >>conftest.$ac_ext <<_ACEOF
30194 /* end confdefs.h.  */
30195 $ac_includes_default
30196 typedef uint64_t ac__type_new_;
30197 int
30198 main ()
30199 {
30200 if ((ac__type_new_ *) 0)
30201   return 0;
30202 if (sizeof (ac__type_new_))
30203   return 0;
30204   ;
30205   return 0;
30206 }
30207 _ACEOF
30208 rm -f conftest.$ac_objext
30209 if { (ac_try="$ac_compile"
30210 case "(($ac_try" in
30211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30212   *) ac_try_echo=$ac_try;;
30213 esac
30214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30215   (eval "$ac_compile") 2>conftest.er1
30216   ac_status=$?
30217   grep -v '^ *+' conftest.er1 >conftest.err
30218   rm -f conftest.er1
30219   cat conftest.err >&5
30220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221   (exit $ac_status); } &&
30222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30223   { (case "(($ac_try" in
30224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30225   *) ac_try_echo=$ac_try;;
30226 esac
30227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30228   (eval "$ac_try") 2>&5
30229   ac_status=$?
30230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231   (exit $ac_status); }; } &&
30232          { ac_try='test -s conftest.$ac_objext'
30233   { (case "(($ac_try" in
30234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30235   *) ac_try_echo=$ac_try;;
30236 esac
30237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30238   (eval "$ac_try") 2>&5
30239   ac_status=$?
30240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241   (exit $ac_status); }; }; then
30242   ac_cv_type_uint64_t=yes
30243 else
30244   echo "$as_me: failed program was:" >&5
30245 sed 's/^/| /' conftest.$ac_ext >&5
30246
30247         ac_cv_type_uint64_t=no
30248 fi
30249
30250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30251 fi
30252 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30253 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30254 if test $ac_cv_type_uint64_t = yes; then
30255
30256 cat >>confdefs.h <<_ACEOF
30257 #define HAVE_UINT64_T 1
30258 _ACEOF
30259
30260
30261 else
30262   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30263 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30264 if test "${ac_cv_type_u_int64_t+set}" = set; then
30265   echo $ECHO_N "(cached) $ECHO_C" >&6
30266 else
30267   cat >conftest.$ac_ext <<_ACEOF
30268 /* confdefs.h.  */
30269 _ACEOF
30270 cat confdefs.h >>conftest.$ac_ext
30271 cat >>conftest.$ac_ext <<_ACEOF
30272 /* end confdefs.h.  */
30273 $ac_includes_default
30274 typedef u_int64_t ac__type_new_;
30275 int
30276 main ()
30277 {
30278 if ((ac__type_new_ *) 0)
30279   return 0;
30280 if (sizeof (ac__type_new_))
30281   return 0;
30282   ;
30283   return 0;
30284 }
30285 _ACEOF
30286 rm -f conftest.$ac_objext
30287 if { (ac_try="$ac_compile"
30288 case "(($ac_try" in
30289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30290   *) ac_try_echo=$ac_try;;
30291 esac
30292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30293   (eval "$ac_compile") 2>conftest.er1
30294   ac_status=$?
30295   grep -v '^ *+' conftest.er1 >conftest.err
30296   rm -f conftest.er1
30297   cat conftest.err >&5
30298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299   (exit $ac_status); } &&
30300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30301   { (case "(($ac_try" in
30302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30303   *) ac_try_echo=$ac_try;;
30304 esac
30305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30306   (eval "$ac_try") 2>&5
30307   ac_status=$?
30308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309   (exit $ac_status); }; } &&
30310          { ac_try='test -s conftest.$ac_objext'
30311   { (case "(($ac_try" in
30312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30313   *) ac_try_echo=$ac_try;;
30314 esac
30315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30316   (eval "$ac_try") 2>&5
30317   ac_status=$?
30318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319   (exit $ac_status); }; }; then
30320   ac_cv_type_u_int64_t=yes
30321 else
30322   echo "$as_me: failed program was:" >&5
30323 sed 's/^/| /' conftest.$ac_ext >&5
30324
30325         ac_cv_type_u_int64_t=no
30326 fi
30327
30328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30329 fi
30330 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30331 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30332 if test $ac_cv_type_u_int64_t = yes; then
30333
30334 cat >>confdefs.h <<_ACEOF
30335 #define HAVE_U_INT64_T 1
30336 _ACEOF
30337
30338
30339 else
30340   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30341 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30342    { (exit 1); exit 1; }; }
30343 fi
30344
30345 fi
30346
30347
30348
30349
30350
30351
30352
30353
30354
30355
30356 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30357 do
30358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30362   echo $ECHO_N "(cached) $ECHO_C" >&6
30363 else
30364   cat >conftest.$ac_ext <<_ACEOF
30365 /* confdefs.h.  */
30366 _ACEOF
30367 cat confdefs.h >>conftest.$ac_ext
30368 cat >>conftest.$ac_ext <<_ACEOF
30369 /* end confdefs.h.  */
30370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30372 #define $ac_func innocuous_$ac_func
30373
30374 /* System header to define __stub macros and hopefully few prototypes,
30375     which can conflict with char $ac_func (); below.
30376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30377     <limits.h> exists even on freestanding compilers.  */
30378
30379 #ifdef __STDC__
30380 # include <limits.h>
30381 #else
30382 # include <assert.h>
30383 #endif
30384
30385 #undef $ac_func
30386
30387 /* Override any GCC internal prototype to avoid an error.
30388    Use char because int might match the return type of a GCC
30389    builtin and then its argument prototype would still apply.  */
30390 #ifdef __cplusplus
30391 extern "C"
30392 #endif
30393 char $ac_func ();
30394 /* The GNU C library defines this for functions which it implements
30395     to always fail with ENOSYS.  Some functions are actually named
30396     something starting with __ and the normal name is an alias.  */
30397 #if defined __stub_$ac_func || defined __stub___$ac_func
30398 choke me
30399 #endif
30400
30401 int
30402 main ()
30403 {
30404 return $ac_func ();
30405   ;
30406   return 0;
30407 }
30408 _ACEOF
30409 rm -f conftest.$ac_objext conftest$ac_exeext
30410 if { (ac_try="$ac_link"
30411 case "(($ac_try" in
30412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30413   *) ac_try_echo=$ac_try;;
30414 esac
30415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30416   (eval "$ac_link") 2>conftest.er1
30417   ac_status=$?
30418   grep -v '^ *+' conftest.er1 >conftest.err
30419   rm -f conftest.er1
30420   cat conftest.err >&5
30421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30422   (exit $ac_status); } &&
30423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30424   { (case "(($ac_try" in
30425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30426   *) ac_try_echo=$ac_try;;
30427 esac
30428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30429   (eval "$ac_try") 2>&5
30430   ac_status=$?
30431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432   (exit $ac_status); }; } &&
30433          { ac_try='test -s conftest$ac_exeext'
30434   { (case "(($ac_try" in
30435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30436   *) ac_try_echo=$ac_try;;
30437 esac
30438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30439   (eval "$ac_try") 2>&5
30440   ac_status=$?
30441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442   (exit $ac_status); }; }; then
30443   eval "$as_ac_var=yes"
30444 else
30445   echo "$as_me: failed program was:" >&5
30446 sed 's/^/| /' conftest.$ac_ext >&5
30447
30448         eval "$as_ac_var=no"
30449 fi
30450
30451 rm -f core conftest.err conftest.$ac_objext \
30452       conftest$ac_exeext conftest.$ac_ext
30453 fi
30454 ac_res=`eval echo '${'$as_ac_var'}'`
30455                { echo "$as_me:$LINENO: result: $ac_res" >&5
30456 echo "${ECHO_T}$ac_res" >&6; }
30457 if test `eval echo '${'$as_ac_var'}'` = yes; then
30458   cat >>confdefs.h <<_ACEOF
30459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30460 _ACEOF
30461
30462 fi
30463 done
30464
30465
30466
30467
30468
30469 for ac_func in powf fmodf strtof round
30470 do
30471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30475   echo $ECHO_N "(cached) $ECHO_C" >&6
30476 else
30477   cat >conftest.$ac_ext <<_ACEOF
30478 /* confdefs.h.  */
30479 _ACEOF
30480 cat confdefs.h >>conftest.$ac_ext
30481 cat >>conftest.$ac_ext <<_ACEOF
30482 /* end confdefs.h.  */
30483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30485 #define $ac_func innocuous_$ac_func
30486
30487 /* System header to define __stub macros and hopefully few prototypes,
30488     which can conflict with char $ac_func (); below.
30489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30490     <limits.h> exists even on freestanding compilers.  */
30491
30492 #ifdef __STDC__
30493 # include <limits.h>
30494 #else
30495 # include <assert.h>
30496 #endif
30497
30498 #undef $ac_func
30499
30500 /* Override any GCC internal prototype to avoid an error.
30501    Use char because int might match the return type of a GCC
30502    builtin and then its argument prototype would still apply.  */
30503 #ifdef __cplusplus
30504 extern "C"
30505 #endif
30506 char $ac_func ();
30507 /* The GNU C library defines this for functions which it implements
30508     to always fail with ENOSYS.  Some functions are actually named
30509     something starting with __ and the normal name is an alias.  */
30510 #if defined __stub_$ac_func || defined __stub___$ac_func
30511 choke me
30512 #endif
30513
30514 int
30515 main ()
30516 {
30517 return $ac_func ();
30518   ;
30519   return 0;
30520 }
30521 _ACEOF
30522 rm -f conftest.$ac_objext conftest$ac_exeext
30523 if { (ac_try="$ac_link"
30524 case "(($ac_try" in
30525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30526   *) ac_try_echo=$ac_try;;
30527 esac
30528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30529   (eval "$ac_link") 2>conftest.er1
30530   ac_status=$?
30531   grep -v '^ *+' conftest.er1 >conftest.err
30532   rm -f conftest.er1
30533   cat conftest.err >&5
30534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535   (exit $ac_status); } &&
30536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30537   { (case "(($ac_try" in
30538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30539   *) ac_try_echo=$ac_try;;
30540 esac
30541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30542   (eval "$ac_try") 2>&5
30543   ac_status=$?
30544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545   (exit $ac_status); }; } &&
30546          { ac_try='test -s conftest$ac_exeext'
30547   { (case "(($ac_try" in
30548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30549   *) ac_try_echo=$ac_try;;
30550 esac
30551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30552   (eval "$ac_try") 2>&5
30553   ac_status=$?
30554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555   (exit $ac_status); }; }; then
30556   eval "$as_ac_var=yes"
30557 else
30558   echo "$as_me: failed program was:" >&5
30559 sed 's/^/| /' conftest.$ac_ext >&5
30560
30561         eval "$as_ac_var=no"
30562 fi
30563
30564 rm -f core conftest.err conftest.$ac_objext \
30565       conftest$ac_exeext conftest.$ac_ext
30566 fi
30567 ac_res=`eval echo '${'$as_ac_var'}'`
30568                { echo "$as_me:$LINENO: result: $ac_res" >&5
30569 echo "${ECHO_T}$ac_res" >&6; }
30570 if test `eval echo '${'$as_ac_var'}'` = yes; then
30571   cat >>confdefs.h <<_ACEOF
30572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30573 _ACEOF
30574
30575 fi
30576 done
30577
30578
30579
30580
30581
30582
30583 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30584 do
30585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30589   echo $ECHO_N "(cached) $ECHO_C" >&6
30590 else
30591   cat >conftest.$ac_ext <<_ACEOF
30592 /* confdefs.h.  */
30593 _ACEOF
30594 cat confdefs.h >>conftest.$ac_ext
30595 cat >>conftest.$ac_ext <<_ACEOF
30596 /* end confdefs.h.  */
30597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30599 #define $ac_func innocuous_$ac_func
30600
30601 /* System header to define __stub macros and hopefully few prototypes,
30602     which can conflict with char $ac_func (); below.
30603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30604     <limits.h> exists even on freestanding compilers.  */
30605
30606 #ifdef __STDC__
30607 # include <limits.h>
30608 #else
30609 # include <assert.h>
30610 #endif
30611
30612 #undef $ac_func
30613
30614 /* Override any GCC internal prototype to avoid an error.
30615    Use char because int might match the return type of a GCC
30616    builtin and then its argument prototype would still apply.  */
30617 #ifdef __cplusplus
30618 extern "C"
30619 #endif
30620 char $ac_func ();
30621 /* The GNU C library defines this for functions which it implements
30622     to always fail with ENOSYS.  Some functions are actually named
30623     something starting with __ and the normal name is an alias.  */
30624 #if defined __stub_$ac_func || defined __stub___$ac_func
30625 choke me
30626 #endif
30627
30628 int
30629 main ()
30630 {
30631 return $ac_func ();
30632   ;
30633   return 0;
30634 }
30635 _ACEOF
30636 rm -f conftest.$ac_objext conftest$ac_exeext
30637 if { (ac_try="$ac_link"
30638 case "(($ac_try" in
30639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30640   *) ac_try_echo=$ac_try;;
30641 esac
30642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30643   (eval "$ac_link") 2>conftest.er1
30644   ac_status=$?
30645   grep -v '^ *+' conftest.er1 >conftest.err
30646   rm -f conftest.er1
30647   cat conftest.err >&5
30648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649   (exit $ac_status); } &&
30650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30651   { (case "(($ac_try" in
30652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30653   *) ac_try_echo=$ac_try;;
30654 esac
30655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30656   (eval "$ac_try") 2>&5
30657   ac_status=$?
30658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659   (exit $ac_status); }; } &&
30660          { ac_try='test -s conftest$ac_exeext'
30661   { (case "(($ac_try" in
30662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30663   *) ac_try_echo=$ac_try;;
30664 esac
30665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30666   (eval "$ac_try") 2>&5
30667   ac_status=$?
30668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669   (exit $ac_status); }; }; then
30670   eval "$as_ac_var=yes"
30671 else
30672   echo "$as_me: failed program was:" >&5
30673 sed 's/^/| /' conftest.$ac_ext >&5
30674
30675         eval "$as_ac_var=no"
30676 fi
30677
30678 rm -f core conftest.err conftest.$ac_objext \
30679       conftest$ac_exeext conftest.$ac_ext
30680 fi
30681 ac_res=`eval echo '${'$as_ac_var'}'`
30682                { echo "$as_me:$LINENO: result: $ac_res" >&5
30683 echo "${ECHO_T}$ac_res" >&6; }
30684 if test `eval echo '${'$as_ac_var'}'` = yes; then
30685   cat >>confdefs.h <<_ACEOF
30686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30687 _ACEOF
30688
30689 fi
30690 done
30691
30692
30693
30694
30695 for ac_func in isatty mkdtemp mkstemp
30696 do
30697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30701   echo $ECHO_N "(cached) $ECHO_C" >&6
30702 else
30703   cat >conftest.$ac_ext <<_ACEOF
30704 /* confdefs.h.  */
30705 _ACEOF
30706 cat confdefs.h >>conftest.$ac_ext
30707 cat >>conftest.$ac_ext <<_ACEOF
30708 /* end confdefs.h.  */
30709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30711 #define $ac_func innocuous_$ac_func
30712
30713 /* System header to define __stub macros and hopefully few prototypes,
30714     which can conflict with char $ac_func (); below.
30715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30716     <limits.h> exists even on freestanding compilers.  */
30717
30718 #ifdef __STDC__
30719 # include <limits.h>
30720 #else
30721 # include <assert.h>
30722 #endif
30723
30724 #undef $ac_func
30725
30726 /* Override any GCC internal prototype to avoid an error.
30727    Use char because int might match the return type of a GCC
30728    builtin and then its argument prototype would still apply.  */
30729 #ifdef __cplusplus
30730 extern "C"
30731 #endif
30732 char $ac_func ();
30733 /* The GNU C library defines this for functions which it implements
30734     to always fail with ENOSYS.  Some functions are actually named
30735     something starting with __ and the normal name is an alias.  */
30736 #if defined __stub_$ac_func || defined __stub___$ac_func
30737 choke me
30738 #endif
30739
30740 int
30741 main ()
30742 {
30743 return $ac_func ();
30744   ;
30745   return 0;
30746 }
30747 _ACEOF
30748 rm -f conftest.$ac_objext conftest$ac_exeext
30749 if { (ac_try="$ac_link"
30750 case "(($ac_try" in
30751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30752   *) ac_try_echo=$ac_try;;
30753 esac
30754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30755   (eval "$ac_link") 2>conftest.er1
30756   ac_status=$?
30757   grep -v '^ *+' conftest.er1 >conftest.err
30758   rm -f conftest.er1
30759   cat conftest.err >&5
30760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761   (exit $ac_status); } &&
30762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30763   { (case "(($ac_try" in
30764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30765   *) ac_try_echo=$ac_try;;
30766 esac
30767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30768   (eval "$ac_try") 2>&5
30769   ac_status=$?
30770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771   (exit $ac_status); }; } &&
30772          { ac_try='test -s conftest$ac_exeext'
30773   { (case "(($ac_try" in
30774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30775   *) ac_try_echo=$ac_try;;
30776 esac
30777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30778   (eval "$ac_try") 2>&5
30779   ac_status=$?
30780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781   (exit $ac_status); }; }; then
30782   eval "$as_ac_var=yes"
30783 else
30784   echo "$as_me: failed program was:" >&5
30785 sed 's/^/| /' conftest.$ac_ext >&5
30786
30787         eval "$as_ac_var=no"
30788 fi
30789
30790 rm -f core conftest.err conftest.$ac_objext \
30791       conftest$ac_exeext conftest.$ac_ext
30792 fi
30793 ac_res=`eval echo '${'$as_ac_var'}'`
30794                { echo "$as_me:$LINENO: result: $ac_res" >&5
30795 echo "${ECHO_T}$ac_res" >&6; }
30796 if test `eval echo '${'$as_ac_var'}'` = yes; then
30797   cat >>confdefs.h <<_ACEOF
30798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30799 _ACEOF
30800
30801 fi
30802 done
30803
30804
30805
30806
30807
30808
30809
30810
30811 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30812 do
30813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30817   echo $ECHO_N "(cached) $ECHO_C" >&6
30818 else
30819   cat >conftest.$ac_ext <<_ACEOF
30820 /* confdefs.h.  */
30821 _ACEOF
30822 cat confdefs.h >>conftest.$ac_ext
30823 cat >>conftest.$ac_ext <<_ACEOF
30824 /* end confdefs.h.  */
30825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30827 #define $ac_func innocuous_$ac_func
30828
30829 /* System header to define __stub macros and hopefully few prototypes,
30830     which can conflict with char $ac_func (); below.
30831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30832     <limits.h> exists even on freestanding compilers.  */
30833
30834 #ifdef __STDC__
30835 # include <limits.h>
30836 #else
30837 # include <assert.h>
30838 #endif
30839
30840 #undef $ac_func
30841
30842 /* Override any GCC internal prototype to avoid an error.
30843    Use char because int might match the return type of a GCC
30844    builtin and then its argument prototype would still apply.  */
30845 #ifdef __cplusplus
30846 extern "C"
30847 #endif
30848 char $ac_func ();
30849 /* The GNU C library defines this for functions which it implements
30850     to always fail with ENOSYS.  Some functions are actually named
30851     something starting with __ and the normal name is an alias.  */
30852 #if defined __stub_$ac_func || defined __stub___$ac_func
30853 choke me
30854 #endif
30855
30856 int
30857 main ()
30858 {
30859 return $ac_func ();
30860   ;
30861   return 0;
30862 }
30863 _ACEOF
30864 rm -f conftest.$ac_objext conftest$ac_exeext
30865 if { (ac_try="$ac_link"
30866 case "(($ac_try" in
30867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30868   *) ac_try_echo=$ac_try;;
30869 esac
30870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30871   (eval "$ac_link") 2>conftest.er1
30872   ac_status=$?
30873   grep -v '^ *+' conftest.er1 >conftest.err
30874   rm -f conftest.er1
30875   cat conftest.err >&5
30876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877   (exit $ac_status); } &&
30878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30879   { (case "(($ac_try" in
30880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30881   *) ac_try_echo=$ac_try;;
30882 esac
30883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30884   (eval "$ac_try") 2>&5
30885   ac_status=$?
30886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887   (exit $ac_status); }; } &&
30888          { ac_try='test -s conftest$ac_exeext'
30889   { (case "(($ac_try" in
30890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30891   *) ac_try_echo=$ac_try;;
30892 esac
30893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30894   (eval "$ac_try") 2>&5
30895   ac_status=$?
30896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897   (exit $ac_status); }; }; then
30898   eval "$as_ac_var=yes"
30899 else
30900   echo "$as_me: failed program was:" >&5
30901 sed 's/^/| /' conftest.$ac_ext >&5
30902
30903         eval "$as_ac_var=no"
30904 fi
30905
30906 rm -f core conftest.err conftest.$ac_objext \
30907       conftest$ac_exeext conftest.$ac_ext
30908 fi
30909 ac_res=`eval echo '${'$as_ac_var'}'`
30910                { echo "$as_me:$LINENO: result: $ac_res" >&5
30911 echo "${ECHO_T}$ac_res" >&6; }
30912 if test `eval echo '${'$as_ac_var'}'` = yes; then
30913   cat >>confdefs.h <<_ACEOF
30914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30915 _ACEOF
30916
30917 fi
30918 done
30919
30920
30921
30922
30923
30924 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30925 do
30926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30927 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30930   echo $ECHO_N "(cached) $ECHO_C" >&6
30931 else
30932   cat >conftest.$ac_ext <<_ACEOF
30933 /* confdefs.h.  */
30934 _ACEOF
30935 cat confdefs.h >>conftest.$ac_ext
30936 cat >>conftest.$ac_ext <<_ACEOF
30937 /* end confdefs.h.  */
30938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30940 #define $ac_func innocuous_$ac_func
30941
30942 /* System header to define __stub macros and hopefully few prototypes,
30943     which can conflict with char $ac_func (); below.
30944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30945     <limits.h> exists even on freestanding compilers.  */
30946
30947 #ifdef __STDC__
30948 # include <limits.h>
30949 #else
30950 # include <assert.h>
30951 #endif
30952
30953 #undef $ac_func
30954
30955 /* Override any GCC internal prototype to avoid an error.
30956    Use char because int might match the return type of a GCC
30957    builtin and then its argument prototype would still apply.  */
30958 #ifdef __cplusplus
30959 extern "C"
30960 #endif
30961 char $ac_func ();
30962 /* The GNU C library defines this for functions which it implements
30963     to always fail with ENOSYS.  Some functions are actually named
30964     something starting with __ and the normal name is an alias.  */
30965 #if defined __stub_$ac_func || defined __stub___$ac_func
30966 choke me
30967 #endif
30968
30969 int
30970 main ()
30971 {
30972 return $ac_func ();
30973   ;
30974   return 0;
30975 }
30976 _ACEOF
30977 rm -f conftest.$ac_objext conftest$ac_exeext
30978 if { (ac_try="$ac_link"
30979 case "(($ac_try" in
30980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30981   *) ac_try_echo=$ac_try;;
30982 esac
30983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30984   (eval "$ac_link") 2>conftest.er1
30985   ac_status=$?
30986   grep -v '^ *+' conftest.er1 >conftest.err
30987   rm -f conftest.er1
30988   cat conftest.err >&5
30989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990   (exit $ac_status); } &&
30991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30992   { (case "(($ac_try" in
30993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30994   *) ac_try_echo=$ac_try;;
30995 esac
30996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30997   (eval "$ac_try") 2>&5
30998   ac_status=$?
30999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31000   (exit $ac_status); }; } &&
31001          { ac_try='test -s conftest$ac_exeext'
31002   { (case "(($ac_try" in
31003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31004   *) ac_try_echo=$ac_try;;
31005 esac
31006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31007   (eval "$ac_try") 2>&5
31008   ac_status=$?
31009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31010   (exit $ac_status); }; }; then
31011   eval "$as_ac_var=yes"
31012 else
31013   echo "$as_me: failed program was:" >&5
31014 sed 's/^/| /' conftest.$ac_ext >&5
31015
31016         eval "$as_ac_var=no"
31017 fi
31018
31019 rm -f core conftest.err conftest.$ac_objext \
31020       conftest$ac_exeext conftest.$ac_ext
31021 fi
31022 ac_res=`eval echo '${'$as_ac_var'}'`
31023                { echo "$as_me:$LINENO: result: $ac_res" >&5
31024 echo "${ECHO_T}$ac_res" >&6; }
31025 if test `eval echo '${'$as_ac_var'}'` = yes; then
31026   cat >>confdefs.h <<_ACEOF
31027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31028 _ACEOF
31029
31030 fi
31031 done
31032
31033
31034
31035
31036
31037 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31038 do
31039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31040 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31042 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31043   echo $ECHO_N "(cached) $ECHO_C" >&6
31044 else
31045   cat >conftest.$ac_ext <<_ACEOF
31046 /* confdefs.h.  */
31047 _ACEOF
31048 cat confdefs.h >>conftest.$ac_ext
31049 cat >>conftest.$ac_ext <<_ACEOF
31050 /* end confdefs.h.  */
31051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31053 #define $ac_func innocuous_$ac_func
31054
31055 /* System header to define __stub macros and hopefully few prototypes,
31056     which can conflict with char $ac_func (); below.
31057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31058     <limits.h> exists even on freestanding compilers.  */
31059
31060 #ifdef __STDC__
31061 # include <limits.h>
31062 #else
31063 # include <assert.h>
31064 #endif
31065
31066 #undef $ac_func
31067
31068 /* Override any GCC internal prototype to avoid an error.
31069    Use char because int might match the return type of a GCC
31070    builtin and then its argument prototype would still apply.  */
31071 #ifdef __cplusplus
31072 extern "C"
31073 #endif
31074 char $ac_func ();
31075 /* The GNU C library defines this for functions which it implements
31076     to always fail with ENOSYS.  Some functions are actually named
31077     something starting with __ and the normal name is an alias.  */
31078 #if defined __stub_$ac_func || defined __stub___$ac_func
31079 choke me
31080 #endif
31081
31082 int
31083 main ()
31084 {
31085 return $ac_func ();
31086   ;
31087   return 0;
31088 }
31089 _ACEOF
31090 rm -f conftest.$ac_objext conftest$ac_exeext
31091 if { (ac_try="$ac_link"
31092 case "(($ac_try" in
31093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31094   *) ac_try_echo=$ac_try;;
31095 esac
31096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31097   (eval "$ac_link") 2>conftest.er1
31098   ac_status=$?
31099   grep -v '^ *+' conftest.er1 >conftest.err
31100   rm -f conftest.er1
31101   cat conftest.err >&5
31102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31103   (exit $ac_status); } &&
31104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31105   { (case "(($ac_try" in
31106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31107   *) ac_try_echo=$ac_try;;
31108 esac
31109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31110   (eval "$ac_try") 2>&5
31111   ac_status=$?
31112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31113   (exit $ac_status); }; } &&
31114          { ac_try='test -s conftest$ac_exeext'
31115   { (case "(($ac_try" in
31116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31117   *) ac_try_echo=$ac_try;;
31118 esac
31119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31120   (eval "$ac_try") 2>&5
31121   ac_status=$?
31122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31123   (exit $ac_status); }; }; then
31124   eval "$as_ac_var=yes"
31125 else
31126   echo "$as_me: failed program was:" >&5
31127 sed 's/^/| /' conftest.$ac_ext >&5
31128
31129         eval "$as_ac_var=no"
31130 fi
31131
31132 rm -f core conftest.err conftest.$ac_objext \
31133       conftest$ac_exeext conftest.$ac_ext
31134 fi
31135 ac_res=`eval echo '${'$as_ac_var'}'`
31136                { echo "$as_me:$LINENO: result: $ac_res" >&5
31137 echo "${ECHO_T}$ac_res" >&6; }
31138 if test `eval echo '${'$as_ac_var'}'` = yes; then
31139   cat >>confdefs.h <<_ACEOF
31140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31141 _ACEOF
31142
31143 fi
31144 done
31145
31146 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31147 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31148 if test "${llvm_cv_c_printf_a+set}" = set; then
31149   echo $ECHO_N "(cached) $ECHO_C" >&6
31150 else
31151   ac_ext=c
31152 ac_cpp='$CPP $CPPFLAGS'
31153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31156
31157  if test "$cross_compiling" = yes; then
31158   llvmac_cv_c_printf_a=no
31159 else
31160   cat >conftest.$ac_ext <<_ACEOF
31161
31162   /* confdefs.h.  */
31163 _ACEOF
31164 cat confdefs.h >>conftest.$ac_ext
31165 cat >>conftest.$ac_ext <<_ACEOF
31166 /* end confdefs.h.  */
31167
31168 #include <stdio.h>
31169 #include <stdlib.h>
31170
31171 int
31172 main ()
31173 {
31174
31175 volatile double A, B;
31176 char Buffer[100];
31177 A = 1;
31178 A /= 10.0;
31179 sprintf(Buffer, "%a", A);
31180 B = atof(Buffer);
31181 if (A != B)
31182   return (1);
31183 if (A != 0x1.999999999999ap-4)
31184   return (1);
31185 return (0);
31186   ;
31187   return 0;
31188 }
31189 _ACEOF
31190 rm -f conftest$ac_exeext
31191 if { (ac_try="$ac_link"
31192 case "(($ac_try" in
31193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31194   *) ac_try_echo=$ac_try;;
31195 esac
31196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31197   (eval "$ac_link") 2>&5
31198   ac_status=$?
31199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31200   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31201   { (case "(($ac_try" in
31202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31203   *) ac_try_echo=$ac_try;;
31204 esac
31205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31206   (eval "$ac_try") 2>&5
31207   ac_status=$?
31208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31209   (exit $ac_status); }; }; then
31210   llvm_cv_c_printf_a=yes
31211 else
31212   echo "$as_me: program exited with status $ac_status" >&5
31213 echo "$as_me: failed program was:" >&5
31214 sed 's/^/| /' conftest.$ac_ext >&5
31215
31216 ( exit $ac_status )
31217 llvmac_cv_c_printf_a=no
31218 fi
31219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31220 fi
31221
31222
31223  ac_ext=c
31224 ac_cpp='$CPP $CPPFLAGS'
31225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31228
31229 fi
31230 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31231 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31232  if test "$llvm_cv_c_printf_a" = "yes"; then
31233
31234 cat >>confdefs.h <<\_ACEOF
31235 #define HAVE_PRINTF_A 1
31236 _ACEOF
31237
31238  fi
31239
31240 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31241 # for constant arguments.  Useless!
31242 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31243 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31244 if test "${ac_cv_working_alloca_h+set}" = set; then
31245   echo $ECHO_N "(cached) $ECHO_C" >&6
31246 else
31247   cat >conftest.$ac_ext <<_ACEOF
31248 /* confdefs.h.  */
31249 _ACEOF
31250 cat confdefs.h >>conftest.$ac_ext
31251 cat >>conftest.$ac_ext <<_ACEOF
31252 /* end confdefs.h.  */
31253 #include <alloca.h>
31254 int
31255 main ()
31256 {
31257 char *p = (char *) alloca (2 * sizeof (int));
31258                           if (p) return 0;
31259   ;
31260   return 0;
31261 }
31262 _ACEOF
31263 rm -f conftest.$ac_objext conftest$ac_exeext
31264 if { (ac_try="$ac_link"
31265 case "(($ac_try" in
31266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31267   *) ac_try_echo=$ac_try;;
31268 esac
31269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31270   (eval "$ac_link") 2>conftest.er1
31271   ac_status=$?
31272   grep -v '^ *+' conftest.er1 >conftest.err
31273   rm -f conftest.er1
31274   cat conftest.err >&5
31275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276   (exit $ac_status); } &&
31277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31278   { (case "(($ac_try" in
31279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31280   *) ac_try_echo=$ac_try;;
31281 esac
31282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31283   (eval "$ac_try") 2>&5
31284   ac_status=$?
31285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31286   (exit $ac_status); }; } &&
31287          { ac_try='test -s conftest$ac_exeext'
31288   { (case "(($ac_try" in
31289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31290   *) ac_try_echo=$ac_try;;
31291 esac
31292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31293   (eval "$ac_try") 2>&5
31294   ac_status=$?
31295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296   (exit $ac_status); }; }; then
31297   ac_cv_working_alloca_h=yes
31298 else
31299   echo "$as_me: failed program was:" >&5
31300 sed 's/^/| /' conftest.$ac_ext >&5
31301
31302         ac_cv_working_alloca_h=no
31303 fi
31304
31305 rm -f core conftest.err conftest.$ac_objext \
31306       conftest$ac_exeext conftest.$ac_ext
31307 fi
31308 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31309 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31310 if test $ac_cv_working_alloca_h = yes; then
31311
31312 cat >>confdefs.h <<\_ACEOF
31313 #define HAVE_ALLOCA_H 1
31314 _ACEOF
31315
31316 fi
31317
31318 { echo "$as_me:$LINENO: checking for alloca" >&5
31319 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31320 if test "${ac_cv_func_alloca_works+set}" = set; then
31321   echo $ECHO_N "(cached) $ECHO_C" >&6
31322 else
31323   cat >conftest.$ac_ext <<_ACEOF
31324 /* confdefs.h.  */
31325 _ACEOF
31326 cat confdefs.h >>conftest.$ac_ext
31327 cat >>conftest.$ac_ext <<_ACEOF
31328 /* end confdefs.h.  */
31329 #ifdef __GNUC__
31330 # define alloca __builtin_alloca
31331 #else
31332 # ifdef _MSC_VER
31333 #  include <malloc.h>
31334 #  define alloca _alloca
31335 # else
31336 #  if HAVE_ALLOCA_H
31337 #   include <alloca.h>
31338 #  else
31339 #   ifdef _AIX
31340  #pragma alloca
31341 #   else
31342 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31343 char *alloca ();
31344 #    endif
31345 #   endif
31346 #  endif
31347 # endif
31348 #endif
31349
31350 int
31351 main ()
31352 {
31353 char *p = (char *) alloca (1);
31354                                     if (p) return 0;
31355   ;
31356   return 0;
31357 }
31358 _ACEOF
31359 rm -f conftest.$ac_objext conftest$ac_exeext
31360 if { (ac_try="$ac_link"
31361 case "(($ac_try" in
31362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31363   *) ac_try_echo=$ac_try;;
31364 esac
31365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31366   (eval "$ac_link") 2>conftest.er1
31367   ac_status=$?
31368   grep -v '^ *+' conftest.er1 >conftest.err
31369   rm -f conftest.er1
31370   cat conftest.err >&5
31371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372   (exit $ac_status); } &&
31373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31374   { (case "(($ac_try" in
31375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31376   *) ac_try_echo=$ac_try;;
31377 esac
31378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31379   (eval "$ac_try") 2>&5
31380   ac_status=$?
31381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382   (exit $ac_status); }; } &&
31383          { ac_try='test -s conftest$ac_exeext'
31384   { (case "(($ac_try" in
31385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31386   *) ac_try_echo=$ac_try;;
31387 esac
31388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31389   (eval "$ac_try") 2>&5
31390   ac_status=$?
31391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31392   (exit $ac_status); }; }; then
31393   ac_cv_func_alloca_works=yes
31394 else
31395   echo "$as_me: failed program was:" >&5
31396 sed 's/^/| /' conftest.$ac_ext >&5
31397
31398         ac_cv_func_alloca_works=no
31399 fi
31400
31401 rm -f core conftest.err conftest.$ac_objext \
31402       conftest$ac_exeext conftest.$ac_ext
31403 fi
31404 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31405 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31406
31407 if test $ac_cv_func_alloca_works = yes; then
31408
31409 cat >>confdefs.h <<\_ACEOF
31410 #define HAVE_ALLOCA 1
31411 _ACEOF
31412
31413 else
31414   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31415 # that cause trouble.  Some versions do not even contain alloca or
31416 # contain a buggy version.  If you still want to use their alloca,
31417 # use ar to extract alloca.o from them instead of compiling alloca.c.
31418
31419 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31420
31421 cat >>confdefs.h <<\_ACEOF
31422 #define C_ALLOCA 1
31423 _ACEOF
31424
31425
31426 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31427 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31428 if test "${ac_cv_os_cray+set}" = set; then
31429   echo $ECHO_N "(cached) $ECHO_C" >&6
31430 else
31431   cat >conftest.$ac_ext <<_ACEOF
31432 /* confdefs.h.  */
31433 _ACEOF
31434 cat confdefs.h >>conftest.$ac_ext
31435 cat >>conftest.$ac_ext <<_ACEOF
31436 /* end confdefs.h.  */
31437 #if defined CRAY && ! defined CRAY2
31438 webecray
31439 #else
31440 wenotbecray
31441 #endif
31442
31443 _ACEOF
31444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31445   $EGREP "webecray" >/dev/null 2>&1; then
31446   ac_cv_os_cray=yes
31447 else
31448   ac_cv_os_cray=no
31449 fi
31450 rm -f conftest*
31451
31452 fi
31453 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31454 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31455 if test $ac_cv_os_cray = yes; then
31456   for ac_func in _getb67 GETB67 getb67; do
31457     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31461   echo $ECHO_N "(cached) $ECHO_C" >&6
31462 else
31463   cat >conftest.$ac_ext <<_ACEOF
31464 /* confdefs.h.  */
31465 _ACEOF
31466 cat confdefs.h >>conftest.$ac_ext
31467 cat >>conftest.$ac_ext <<_ACEOF
31468 /* end confdefs.h.  */
31469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31471 #define $ac_func innocuous_$ac_func
31472
31473 /* System header to define __stub macros and hopefully few prototypes,
31474     which can conflict with char $ac_func (); below.
31475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31476     <limits.h> exists even on freestanding compilers.  */
31477
31478 #ifdef __STDC__
31479 # include <limits.h>
31480 #else
31481 # include <assert.h>
31482 #endif
31483
31484 #undef $ac_func
31485
31486 /* Override any GCC internal prototype to avoid an error.
31487    Use char because int might match the return type of a GCC
31488    builtin and then its argument prototype would still apply.  */
31489 #ifdef __cplusplus
31490 extern "C"
31491 #endif
31492 char $ac_func ();
31493 /* The GNU C library defines this for functions which it implements
31494     to always fail with ENOSYS.  Some functions are actually named
31495     something starting with __ and the normal name is an alias.  */
31496 #if defined __stub_$ac_func || defined __stub___$ac_func
31497 choke me
31498 #endif
31499
31500 int
31501 main ()
31502 {
31503 return $ac_func ();
31504   ;
31505   return 0;
31506 }
31507 _ACEOF
31508 rm -f conftest.$ac_objext conftest$ac_exeext
31509 if { (ac_try="$ac_link"
31510 case "(($ac_try" in
31511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31512   *) ac_try_echo=$ac_try;;
31513 esac
31514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31515   (eval "$ac_link") 2>conftest.er1
31516   ac_status=$?
31517   grep -v '^ *+' conftest.er1 >conftest.err
31518   rm -f conftest.er1
31519   cat conftest.err >&5
31520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521   (exit $ac_status); } &&
31522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31523   { (case "(($ac_try" in
31524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31525   *) ac_try_echo=$ac_try;;
31526 esac
31527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31528   (eval "$ac_try") 2>&5
31529   ac_status=$?
31530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531   (exit $ac_status); }; } &&
31532          { ac_try='test -s conftest$ac_exeext'
31533   { (case "(($ac_try" in
31534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31535   *) ac_try_echo=$ac_try;;
31536 esac
31537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31538   (eval "$ac_try") 2>&5
31539   ac_status=$?
31540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541   (exit $ac_status); }; }; then
31542   eval "$as_ac_var=yes"
31543 else
31544   echo "$as_me: failed program was:" >&5
31545 sed 's/^/| /' conftest.$ac_ext >&5
31546
31547         eval "$as_ac_var=no"
31548 fi
31549
31550 rm -f core conftest.err conftest.$ac_objext \
31551       conftest$ac_exeext conftest.$ac_ext
31552 fi
31553 ac_res=`eval echo '${'$as_ac_var'}'`
31554                { echo "$as_me:$LINENO: result: $ac_res" >&5
31555 echo "${ECHO_T}$ac_res" >&6; }
31556 if test `eval echo '${'$as_ac_var'}'` = yes; then
31557
31558 cat >>confdefs.h <<_ACEOF
31559 #define CRAY_STACKSEG_END $ac_func
31560 _ACEOF
31561
31562     break
31563 fi
31564
31565   done
31566 fi
31567
31568 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31569 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31570 if test "${ac_cv_c_stack_direction+set}" = set; then
31571   echo $ECHO_N "(cached) $ECHO_C" >&6
31572 else
31573   if test "$cross_compiling" = yes; then
31574   ac_cv_c_stack_direction=0
31575 else
31576   cat >conftest.$ac_ext <<_ACEOF
31577 /* confdefs.h.  */
31578 _ACEOF
31579 cat confdefs.h >>conftest.$ac_ext
31580 cat >>conftest.$ac_ext <<_ACEOF
31581 /* end confdefs.h.  */
31582 $ac_includes_default
31583 int
31584 find_stack_direction ()
31585 {
31586   static char *addr = 0;
31587   auto char dummy;
31588   if (addr == 0)
31589     {
31590       addr = &dummy;
31591       return find_stack_direction ();
31592     }
31593   else
31594     return (&dummy > addr) ? 1 : -1;
31595 }
31596
31597 int
31598 main ()
31599 {
31600   return find_stack_direction () < 0;
31601 }
31602 _ACEOF
31603 rm -f conftest$ac_exeext
31604 if { (ac_try="$ac_link"
31605 case "(($ac_try" in
31606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31607   *) ac_try_echo=$ac_try;;
31608 esac
31609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31610   (eval "$ac_link") 2>&5
31611   ac_status=$?
31612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31614   { (case "(($ac_try" in
31615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31616   *) ac_try_echo=$ac_try;;
31617 esac
31618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31619   (eval "$ac_try") 2>&5
31620   ac_status=$?
31621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622   (exit $ac_status); }; }; then
31623   ac_cv_c_stack_direction=1
31624 else
31625   echo "$as_me: program exited with status $ac_status" >&5
31626 echo "$as_me: failed program was:" >&5
31627 sed 's/^/| /' conftest.$ac_ext >&5
31628
31629 ( exit $ac_status )
31630 ac_cv_c_stack_direction=-1
31631 fi
31632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31633 fi
31634
31635
31636 fi
31637 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31638 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31639
31640 cat >>confdefs.h <<_ACEOF
31641 #define STACK_DIRECTION $ac_cv_c_stack_direction
31642 _ACEOF
31643
31644
31645 fi
31646
31647
31648 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31649 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31650 if test "${ac_cv_func_rand48+set}" = set; then
31651   echo $ECHO_N "(cached) $ECHO_C" >&6
31652 else
31653   ac_ext=cpp
31654 ac_cpp='$CXXCPP $CPPFLAGS'
31655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31658
31659    cat >conftest.$ac_ext <<_ACEOF
31660 /* confdefs.h.  */
31661 _ACEOF
31662 cat confdefs.h >>conftest.$ac_ext
31663 cat >>conftest.$ac_ext <<_ACEOF
31664 /* end confdefs.h.  */
31665 #include <stdlib.h>
31666 int
31667 main ()
31668 {
31669 srand48(0);lrand48();drand48();
31670   ;
31671   return 0;
31672 }
31673 _ACEOF
31674 rm -f conftest.$ac_objext
31675 if { (ac_try="$ac_compile"
31676 case "(($ac_try" in
31677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31678   *) ac_try_echo=$ac_try;;
31679 esac
31680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31681   (eval "$ac_compile") 2>conftest.er1
31682   ac_status=$?
31683   grep -v '^ *+' conftest.er1 >conftest.err
31684   rm -f conftest.er1
31685   cat conftest.err >&5
31686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31687   (exit $ac_status); } &&
31688          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31689   { (case "(($ac_try" in
31690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31691   *) ac_try_echo=$ac_try;;
31692 esac
31693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31694   (eval "$ac_try") 2>&5
31695   ac_status=$?
31696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31697   (exit $ac_status); }; } &&
31698          { ac_try='test -s conftest.$ac_objext'
31699   { (case "(($ac_try" in
31700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31701   *) ac_try_echo=$ac_try;;
31702 esac
31703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31704   (eval "$ac_try") 2>&5
31705   ac_status=$?
31706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31707   (exit $ac_status); }; }; then
31708   ac_cv_func_rand48=yes
31709 else
31710   echo "$as_me: failed program was:" >&5
31711 sed 's/^/| /' conftest.$ac_ext >&5
31712
31713         ac_cv_func_rand48=no
31714 fi
31715
31716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31717   ac_ext=c
31718 ac_cpp='$CPP $CPPFLAGS'
31719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31722
31723 fi
31724 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31725 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31726
31727 if test "$ac_cv_func_rand48" = "yes" ; then
31728
31729 cat >>confdefs.h <<\_ACEOF
31730 #define HAVE_RAND48 1
31731 _ACEOF
31732
31733 fi
31734
31735
31736 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31737 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31738 if test "${ac_cv_cxx_namespaces+set}" = set; then
31739   echo $ECHO_N "(cached) $ECHO_C" >&6
31740 else
31741   ac_ext=cpp
31742 ac_cpp='$CXXCPP $CPPFLAGS'
31743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31746
31747  cat >conftest.$ac_ext <<_ACEOF
31748 /* confdefs.h.  */
31749 _ACEOF
31750 cat confdefs.h >>conftest.$ac_ext
31751 cat >>conftest.$ac_ext <<_ACEOF
31752 /* end confdefs.h.  */
31753 namespace Outer { namespace Inner { int i = 0; }}
31754 int
31755 main ()
31756 {
31757 using namespace Outer::Inner; return i;
31758   ;
31759   return 0;
31760 }
31761 _ACEOF
31762 rm -f conftest.$ac_objext
31763 if { (ac_try="$ac_compile"
31764 case "(($ac_try" in
31765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31766   *) ac_try_echo=$ac_try;;
31767 esac
31768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31769   (eval "$ac_compile") 2>conftest.er1
31770   ac_status=$?
31771   grep -v '^ *+' conftest.er1 >conftest.err
31772   rm -f conftest.er1
31773   cat conftest.err >&5
31774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775   (exit $ac_status); } &&
31776          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31777   { (case "(($ac_try" in
31778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31779   *) ac_try_echo=$ac_try;;
31780 esac
31781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31782   (eval "$ac_try") 2>&5
31783   ac_status=$?
31784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785   (exit $ac_status); }; } &&
31786          { ac_try='test -s conftest.$ac_objext'
31787   { (case "(($ac_try" in
31788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31789   *) ac_try_echo=$ac_try;;
31790 esac
31791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31792   (eval "$ac_try") 2>&5
31793   ac_status=$?
31794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795   (exit $ac_status); }; }; then
31796   ac_cv_cxx_namespaces=yes
31797 else
31798   echo "$as_me: failed program was:" >&5
31799 sed 's/^/| /' conftest.$ac_ext >&5
31800
31801         ac_cv_cxx_namespaces=no
31802 fi
31803
31804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31805  ac_ext=c
31806 ac_cpp='$CPP $CPPFLAGS'
31807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31810
31811
31812 fi
31813 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31814 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31815 if test "$ac_cv_cxx_namespaces" = yes; then
31816
31817 cat >>confdefs.h <<\_ACEOF
31818 #define HAVE_NAMESPACES
31819 _ACEOF
31820
31821 fi
31822
31823 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31824 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31825 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31826   echo $ECHO_N "(cached) $ECHO_C" >&6
31827 else
31828
31829   ac_ext=cpp
31830 ac_cpp='$CXXCPP $CPPFLAGS'
31831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31834
31835   cat >conftest.$ac_ext <<_ACEOF
31836 /* confdefs.h.  */
31837 _ACEOF
31838 cat confdefs.h >>conftest.$ac_ext
31839 cat >>conftest.$ac_ext <<_ACEOF
31840 /* end confdefs.h.  */
31841 #include <ext/hash_map>
31842 #ifdef HAVE_NAMESPACES
31843 using namespace std;
31844 #endif
31845 int
31846 main ()
31847 {
31848 hash_map<int, int> t;
31849   ;
31850   return 0;
31851 }
31852 _ACEOF
31853 rm -f conftest.$ac_objext
31854 if { (ac_try="$ac_compile"
31855 case "(($ac_try" in
31856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31857   *) ac_try_echo=$ac_try;;
31858 esac
31859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31860   (eval "$ac_compile") 2>conftest.er1
31861   ac_status=$?
31862   grep -v '^ *+' conftest.er1 >conftest.err
31863   rm -f conftest.er1
31864   cat conftest.err >&5
31865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31866   (exit $ac_status); } &&
31867          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31868   { (case "(($ac_try" in
31869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31870   *) ac_try_echo=$ac_try;;
31871 esac
31872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31873   (eval "$ac_try") 2>&5
31874   ac_status=$?
31875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876   (exit $ac_status); }; } &&
31877          { ac_try='test -s conftest.$ac_objext'
31878   { (case "(($ac_try" in
31879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31880   *) ac_try_echo=$ac_try;;
31881 esac
31882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31883   (eval "$ac_try") 2>&5
31884   ac_status=$?
31885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31886   (exit $ac_status); }; }; then
31887   ac_cv_cxx_have_std_ext_hash_map=yes
31888 else
31889   echo "$as_me: failed program was:" >&5
31890 sed 's/^/| /' conftest.$ac_ext >&5
31891
31892         ac_cv_cxx_have_std_ext_hash_map=no
31893 fi
31894
31895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31896   ac_ext=c
31897 ac_cpp='$CPP $CPPFLAGS'
31898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31901
31902 fi
31903 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31904 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31905  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31906  then
31907
31908 cat >>confdefs.h <<\_ACEOF
31909 #define HAVE_STD_EXT_HASH_MAP 1
31910 _ACEOF
31911
31912  else
31913
31914 cat >>confdefs.h <<\_ACEOF
31915 #define HAVE_STD_EXT_HASH_MAP 0
31916 _ACEOF
31917
31918  fi
31919
31920  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31921 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31922 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31923   echo $ECHO_N "(cached) $ECHO_C" >&6
31924 else
31925
31926   ac_ext=cpp
31927 ac_cpp='$CXXCPP $CPPFLAGS'
31928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31931
31932   cat >conftest.$ac_ext <<_ACEOF
31933 /* confdefs.h.  */
31934 _ACEOF
31935 cat confdefs.h >>conftest.$ac_ext
31936 cat >>conftest.$ac_ext <<_ACEOF
31937 /* end confdefs.h.  */
31938 #include <ext/hash_map>
31939 #ifdef HAVE_NAMESPACES
31940 using namespace __gnu_cxx;
31941 #endif
31942 int
31943 main ()
31944 {
31945 hash_map<int,int> t;
31946   ;
31947   return 0;
31948 }
31949 _ACEOF
31950 rm -f conftest.$ac_objext
31951 if { (ac_try="$ac_compile"
31952 case "(($ac_try" in
31953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31954   *) ac_try_echo=$ac_try;;
31955 esac
31956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31957   (eval "$ac_compile") 2>conftest.er1
31958   ac_status=$?
31959   grep -v '^ *+' conftest.er1 >conftest.err
31960   rm -f conftest.er1
31961   cat conftest.err >&5
31962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31963   (exit $ac_status); } &&
31964          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31965   { (case "(($ac_try" in
31966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31967   *) ac_try_echo=$ac_try;;
31968 esac
31969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31970   (eval "$ac_try") 2>&5
31971   ac_status=$?
31972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31973   (exit $ac_status); }; } &&
31974          { ac_try='test -s conftest.$ac_objext'
31975   { (case "(($ac_try" in
31976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31977   *) ac_try_echo=$ac_try;;
31978 esac
31979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31980   (eval "$ac_try") 2>&5
31981   ac_status=$?
31982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31983   (exit $ac_status); }; }; then
31984   ac_cv_cxx_have_gnu_ext_hash_map=yes
31985 else
31986   echo "$as_me: failed program was:" >&5
31987 sed 's/^/| /' conftest.$ac_ext >&5
31988
31989         ac_cv_cxx_have_gnu_ext_hash_map=no
31990 fi
31991
31992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31993   ac_ext=c
31994 ac_cpp='$CPP $CPPFLAGS'
31995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31998
31999 fi
32000 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32001 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32002  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32003  then
32004
32005 cat >>confdefs.h <<\_ACEOF
32006 #define HAVE_GNU_EXT_HASH_MAP 1
32007 _ACEOF
32008
32009  else
32010
32011 cat >>confdefs.h <<\_ACEOF
32012 #define HAVE_GNU_EXT_HASH_MAP 0
32013 _ACEOF
32014
32015  fi
32016
32017  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32018 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32019 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32020   echo $ECHO_N "(cached) $ECHO_C" >&6
32021 else
32022
32023   ac_ext=cpp
32024 ac_cpp='$CXXCPP $CPPFLAGS'
32025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32028
32029   cat >conftest.$ac_ext <<_ACEOF
32030 /* confdefs.h.  */
32031 _ACEOF
32032 cat confdefs.h >>conftest.$ac_ext
32033 cat >>conftest.$ac_ext <<_ACEOF
32034 /* end confdefs.h.  */
32035 #include <hash_map>
32036 int
32037 main ()
32038 {
32039 hash_map<int,int> t;
32040   ;
32041   return 0;
32042 }
32043 _ACEOF
32044 rm -f conftest.$ac_objext
32045 if { (ac_try="$ac_compile"
32046 case "(($ac_try" in
32047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32048   *) ac_try_echo=$ac_try;;
32049 esac
32050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32051   (eval "$ac_compile") 2>conftest.er1
32052   ac_status=$?
32053   grep -v '^ *+' conftest.er1 >conftest.err
32054   rm -f conftest.er1
32055   cat conftest.err >&5
32056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057   (exit $ac_status); } &&
32058          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32059   { (case "(($ac_try" in
32060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32061   *) ac_try_echo=$ac_try;;
32062 esac
32063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32064   (eval "$ac_try") 2>&5
32065   ac_status=$?
32066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067   (exit $ac_status); }; } &&
32068          { ac_try='test -s conftest.$ac_objext'
32069   { (case "(($ac_try" in
32070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32071   *) ac_try_echo=$ac_try;;
32072 esac
32073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32074   (eval "$ac_try") 2>&5
32075   ac_status=$?
32076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077   (exit $ac_status); }; }; then
32078   ac_cv_cxx_have_global_hash_map=yes
32079 else
32080   echo "$as_me: failed program was:" >&5
32081 sed 's/^/| /' conftest.$ac_ext >&5
32082
32083         ac_cv_cxx_have_global_hash_map=no
32084 fi
32085
32086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32087   ac_ext=c
32088 ac_cpp='$CPP $CPPFLAGS'
32089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32092
32093 fi
32094 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32095 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32096  if test "$ac_cv_cxx_have_global_hash_map" = yes
32097  then
32098
32099 cat >>confdefs.h <<\_ACEOF
32100 #define HAVE_GLOBAL_HASH_MAP 1
32101 _ACEOF
32102
32103  else
32104
32105 cat >>confdefs.h <<\_ACEOF
32106 #define HAVE_GLOBAL_HASH_MAP 0
32107 _ACEOF
32108
32109  fi
32110
32111 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32112 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32113 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32114   echo $ECHO_N "(cached) $ECHO_C" >&6
32115 else
32116
32117   ac_ext=cpp
32118 ac_cpp='$CXXCPP $CPPFLAGS'
32119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32122
32123   cat >conftest.$ac_ext <<_ACEOF
32124 /* confdefs.h.  */
32125 _ACEOF
32126 cat confdefs.h >>conftest.$ac_ext
32127 cat >>conftest.$ac_ext <<_ACEOF
32128 /* end confdefs.h.  */
32129 #include <ext/hash_set>
32130 #ifdef HAVE_NAMESPACES
32131 using namespace std;
32132 #endif
32133 int
32134 main ()
32135 {
32136 hash_set<int> t;
32137   ;
32138   return 0;
32139 }
32140 _ACEOF
32141 rm -f conftest.$ac_objext
32142 if { (ac_try="$ac_compile"
32143 case "(($ac_try" in
32144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32145   *) ac_try_echo=$ac_try;;
32146 esac
32147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32148   (eval "$ac_compile") 2>conftest.er1
32149   ac_status=$?
32150   grep -v '^ *+' conftest.er1 >conftest.err
32151   rm -f conftest.er1
32152   cat conftest.err >&5
32153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154   (exit $ac_status); } &&
32155          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32156   { (case "(($ac_try" in
32157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32158   *) ac_try_echo=$ac_try;;
32159 esac
32160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32161   (eval "$ac_try") 2>&5
32162   ac_status=$?
32163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32164   (exit $ac_status); }; } &&
32165          { ac_try='test -s conftest.$ac_objext'
32166   { (case "(($ac_try" in
32167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32168   *) ac_try_echo=$ac_try;;
32169 esac
32170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32171   (eval "$ac_try") 2>&5
32172   ac_status=$?
32173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32174   (exit $ac_status); }; }; then
32175   ac_cv_cxx_have_std_ext_hash_set=yes
32176 else
32177   echo "$as_me: failed program was:" >&5
32178 sed 's/^/| /' conftest.$ac_ext >&5
32179
32180         ac_cv_cxx_have_std_ext_hash_set=no
32181 fi
32182
32183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32184   ac_ext=c
32185 ac_cpp='$CPP $CPPFLAGS'
32186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32189
32190 fi
32191 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32192 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32193  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32194  then
32195
32196 cat >>confdefs.h <<\_ACEOF
32197 #define HAVE_STD_EXT_HASH_SET 1
32198 _ACEOF
32199
32200  else
32201
32202 cat >>confdefs.h <<\_ACEOF
32203 #define HAVE_STD_EXT_HASH_SET 0
32204 _ACEOF
32205
32206  fi
32207
32208  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32209 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32210 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32211   echo $ECHO_N "(cached) $ECHO_C" >&6
32212 else
32213
32214   ac_ext=cpp
32215 ac_cpp='$CXXCPP $CPPFLAGS'
32216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32219
32220   cat >conftest.$ac_ext <<_ACEOF
32221 /* confdefs.h.  */
32222 _ACEOF
32223 cat confdefs.h >>conftest.$ac_ext
32224 cat >>conftest.$ac_ext <<_ACEOF
32225 /* end confdefs.h.  */
32226 #include <ext/hash_set>
32227 #ifdef HAVE_NAMESPACES
32228 using namespace __gnu_cxx;
32229 #endif
32230 int
32231 main ()
32232 {
32233 hash_set<int> t;
32234   ;
32235   return 0;
32236 }
32237 _ACEOF
32238 rm -f conftest.$ac_objext
32239 if { (ac_try="$ac_compile"
32240 case "(($ac_try" in
32241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32242   *) ac_try_echo=$ac_try;;
32243 esac
32244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32245   (eval "$ac_compile") 2>conftest.er1
32246   ac_status=$?
32247   grep -v '^ *+' conftest.er1 >conftest.err
32248   rm -f conftest.er1
32249   cat conftest.err >&5
32250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251   (exit $ac_status); } &&
32252          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32253   { (case "(($ac_try" in
32254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32255   *) ac_try_echo=$ac_try;;
32256 esac
32257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32258   (eval "$ac_try") 2>&5
32259   ac_status=$?
32260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261   (exit $ac_status); }; } &&
32262          { ac_try='test -s conftest.$ac_objext'
32263   { (case "(($ac_try" in
32264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32265   *) ac_try_echo=$ac_try;;
32266 esac
32267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32268   (eval "$ac_try") 2>&5
32269   ac_status=$?
32270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271   (exit $ac_status); }; }; then
32272   ac_cv_cxx_have_gnu_ext_hash_set=yes
32273 else
32274   echo "$as_me: failed program was:" >&5
32275 sed 's/^/| /' conftest.$ac_ext >&5
32276
32277         ac_cv_cxx_have_gnu_ext_hash_set=no
32278 fi
32279
32280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32281   ac_ext=c
32282 ac_cpp='$CPP $CPPFLAGS'
32283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32286
32287 fi
32288 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32289 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32290  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32291  then
32292
32293 cat >>confdefs.h <<\_ACEOF
32294 #define HAVE_GNU_EXT_HASH_SET 1
32295 _ACEOF
32296
32297  else
32298
32299 cat >>confdefs.h <<\_ACEOF
32300 #define HAVE_GNU_EXT_HASH_SET 0
32301 _ACEOF
32302
32303  fi
32304
32305  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32306 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32307 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32308   echo $ECHO_N "(cached) $ECHO_C" >&6
32309 else
32310
32311   ac_ext=cpp
32312 ac_cpp='$CXXCPP $CPPFLAGS'
32313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32316
32317   cat >conftest.$ac_ext <<_ACEOF
32318 /* confdefs.h.  */
32319 _ACEOF
32320 cat confdefs.h >>conftest.$ac_ext
32321 cat >>conftest.$ac_ext <<_ACEOF
32322 /* end confdefs.h.  */
32323 #include <hash_set>
32324 int
32325 main ()
32326 {
32327 hash_set<int> t; return 0;
32328   ;
32329   return 0;
32330 }
32331 _ACEOF
32332 rm -f conftest.$ac_objext
32333 if { (ac_try="$ac_compile"
32334 case "(($ac_try" in
32335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32336   *) ac_try_echo=$ac_try;;
32337 esac
32338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32339   (eval "$ac_compile") 2>conftest.er1
32340   ac_status=$?
32341   grep -v '^ *+' conftest.er1 >conftest.err
32342   rm -f conftest.er1
32343   cat conftest.err >&5
32344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32345   (exit $ac_status); } &&
32346          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32347   { (case "(($ac_try" in
32348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32349   *) ac_try_echo=$ac_try;;
32350 esac
32351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32352   (eval "$ac_try") 2>&5
32353   ac_status=$?
32354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355   (exit $ac_status); }; } &&
32356          { ac_try='test -s conftest.$ac_objext'
32357   { (case "(($ac_try" in
32358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32359   *) ac_try_echo=$ac_try;;
32360 esac
32361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32362   (eval "$ac_try") 2>&5
32363   ac_status=$?
32364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365   (exit $ac_status); }; }; then
32366   ac_cv_cxx_have_global_hash_set=yes
32367 else
32368   echo "$as_me: failed program was:" >&5
32369 sed 's/^/| /' conftest.$ac_ext >&5
32370
32371         ac_cv_cxx_have_global_hash_set=no
32372 fi
32373
32374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32375   ac_ext=c
32376 ac_cpp='$CPP $CPPFLAGS'
32377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32380
32381 fi
32382 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32383 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32384  if test "$ac_cv_cxx_have_global_hash_set" = yes
32385  then
32386
32387 cat >>confdefs.h <<\_ACEOF
32388 #define HAVE_GLOBAL_HASH_SET 1
32389 _ACEOF
32390
32391  else
32392
32393 cat >>confdefs.h <<\_ACEOF
32394 #define HAVE_GLOBAL_HASH_SET 0
32395 _ACEOF
32396
32397  fi
32398
32399 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32400 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32401 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32402   echo $ECHO_N "(cached) $ECHO_C" >&6
32403 else
32404
32405   ac_ext=cpp
32406 ac_cpp='$CXXCPP $CPPFLAGS'
32407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32410
32411   cat >conftest.$ac_ext <<_ACEOF
32412 /* confdefs.h.  */
32413 _ACEOF
32414 cat confdefs.h >>conftest.$ac_ext
32415 cat >>conftest.$ac_ext <<_ACEOF
32416 /* end confdefs.h.  */
32417 #include <iterator>
32418 #ifdef HAVE_NAMESPACES
32419 using namespace std;
32420 #endif
32421 int
32422 main ()
32423 {
32424 iterator<int,int,int> t; return 0;
32425   ;
32426   return 0;
32427 }
32428 _ACEOF
32429 rm -f conftest.$ac_objext
32430 if { (ac_try="$ac_compile"
32431 case "(($ac_try" in
32432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32433   *) ac_try_echo=$ac_try;;
32434 esac
32435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32436   (eval "$ac_compile") 2>conftest.er1
32437   ac_status=$?
32438   grep -v '^ *+' conftest.er1 >conftest.err
32439   rm -f conftest.er1
32440   cat conftest.err >&5
32441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32442   (exit $ac_status); } &&
32443          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32444   { (case "(($ac_try" in
32445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32446   *) ac_try_echo=$ac_try;;
32447 esac
32448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32449   (eval "$ac_try") 2>&5
32450   ac_status=$?
32451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452   (exit $ac_status); }; } &&
32453          { ac_try='test -s conftest.$ac_objext'
32454   { (case "(($ac_try" in
32455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32456   *) ac_try_echo=$ac_try;;
32457 esac
32458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32459   (eval "$ac_try") 2>&5
32460   ac_status=$?
32461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462   (exit $ac_status); }; }; then
32463   ac_cv_cxx_have_std_iterator=yes
32464 else
32465   echo "$as_me: failed program was:" >&5
32466 sed 's/^/| /' conftest.$ac_ext >&5
32467
32468         ac_cv_cxx_have_std_iterator=no
32469 fi
32470
32471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32472   ac_ext=c
32473 ac_cpp='$CPP $CPPFLAGS'
32474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32477
32478
32479 fi
32480 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32481 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32482 if test "$ac_cv_cxx_have_std_iterator" = yes
32483 then
32484
32485 cat >>confdefs.h <<\_ACEOF
32486 #define HAVE_STD_ITERATOR 1
32487 _ACEOF
32488
32489 else
32490
32491 cat >>confdefs.h <<\_ACEOF
32492 #define HAVE_STD_ITERATOR 0
32493 _ACEOF
32494
32495 fi
32496
32497 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32498 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32499 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32500   echo $ECHO_N "(cached) $ECHO_C" >&6
32501 else
32502
32503   ac_ext=cpp
32504 ac_cpp='$CXXCPP $CPPFLAGS'
32505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32508
32509   cat >conftest.$ac_ext <<_ACEOF
32510 /* confdefs.h.  */
32511 _ACEOF
32512 cat confdefs.h >>conftest.$ac_ext
32513 cat >>conftest.$ac_ext <<_ACEOF
32514 /* end confdefs.h.  */
32515 #include <iterator>
32516 #ifdef HAVE_NAMESPACES
32517 using namespace std;
32518 #endif
32519 int
32520 main ()
32521 {
32522 bidirectional_iterator<int,int> t; return 0;
32523   ;
32524   return 0;
32525 }
32526 _ACEOF
32527 rm -f conftest.$ac_objext
32528 if { (ac_try="$ac_compile"
32529 case "(($ac_try" in
32530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32531   *) ac_try_echo=$ac_try;;
32532 esac
32533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32534   (eval "$ac_compile") 2>conftest.er1
32535   ac_status=$?
32536   grep -v '^ *+' conftest.er1 >conftest.err
32537   rm -f conftest.er1
32538   cat conftest.err >&5
32539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32540   (exit $ac_status); } &&
32541          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32542   { (case "(($ac_try" in
32543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32544   *) ac_try_echo=$ac_try;;
32545 esac
32546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32547   (eval "$ac_try") 2>&5
32548   ac_status=$?
32549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550   (exit $ac_status); }; } &&
32551          { ac_try='test -s conftest.$ac_objext'
32552   { (case "(($ac_try" in
32553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32554   *) ac_try_echo=$ac_try;;
32555 esac
32556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32557   (eval "$ac_try") 2>&5
32558   ac_status=$?
32559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32560   (exit $ac_status); }; }; then
32561   ac_cv_cxx_have_bi_iterator=yes
32562 else
32563   echo "$as_me: failed program was:" >&5
32564 sed 's/^/| /' conftest.$ac_ext >&5
32565
32566         ac_cv_cxx_have_bi_iterator=no
32567 fi
32568
32569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32570   ac_ext=c
32571 ac_cpp='$CPP $CPPFLAGS'
32572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32575
32576
32577 fi
32578 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32579 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32580 if test "$ac_cv_cxx_have_bi_iterator" = yes
32581 then
32582
32583 cat >>confdefs.h <<\_ACEOF
32584 #define HAVE_BI_ITERATOR 1
32585 _ACEOF
32586
32587 else
32588
32589 cat >>confdefs.h <<\_ACEOF
32590 #define HAVE_BI_ITERATOR 0
32591 _ACEOF
32592
32593 fi
32594
32595 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32596 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32597 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32598   echo $ECHO_N "(cached) $ECHO_C" >&6
32599 else
32600
32601   ac_ext=cpp
32602 ac_cpp='$CXXCPP $CPPFLAGS'
32603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32606
32607   cat >conftest.$ac_ext <<_ACEOF
32608 /* confdefs.h.  */
32609 _ACEOF
32610 cat confdefs.h >>conftest.$ac_ext
32611 cat >>conftest.$ac_ext <<_ACEOF
32612 /* end confdefs.h.  */
32613 #include <iterator>
32614 #ifdef HAVE_NAMESPACES
32615 using namespace std;
32616 #endif
32617 int
32618 main ()
32619 {
32620 forward_iterator<int,int> t; return 0;
32621   ;
32622   return 0;
32623 }
32624 _ACEOF
32625 rm -f conftest.$ac_objext
32626 if { (ac_try="$ac_compile"
32627 case "(($ac_try" in
32628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32629   *) ac_try_echo=$ac_try;;
32630 esac
32631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32632   (eval "$ac_compile") 2>conftest.er1
32633   ac_status=$?
32634   grep -v '^ *+' conftest.er1 >conftest.err
32635   rm -f conftest.er1
32636   cat conftest.err >&5
32637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638   (exit $ac_status); } &&
32639          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32640   { (case "(($ac_try" in
32641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32642   *) ac_try_echo=$ac_try;;
32643 esac
32644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32645   (eval "$ac_try") 2>&5
32646   ac_status=$?
32647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648   (exit $ac_status); }; } &&
32649          { ac_try='test -s conftest.$ac_objext'
32650   { (case "(($ac_try" in
32651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32652   *) ac_try_echo=$ac_try;;
32653 esac
32654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32655   (eval "$ac_try") 2>&5
32656   ac_status=$?
32657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658   (exit $ac_status); }; }; then
32659   ac_cv_cxx_have_fwd_iterator=yes
32660 else
32661   echo "$as_me: failed program was:" >&5
32662 sed 's/^/| /' conftest.$ac_ext >&5
32663
32664         ac_cv_cxx_have_fwd_iterator=no
32665 fi
32666
32667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32668   ac_ext=c
32669 ac_cpp='$CPP $CPPFLAGS'
32670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32673
32674
32675 fi
32676 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32677 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32678 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32679 then
32680
32681 cat >>confdefs.h <<\_ACEOF
32682 #define HAVE_FWD_ITERATOR 1
32683 _ACEOF
32684
32685 else
32686
32687 cat >>confdefs.h <<\_ACEOF
32688 #define HAVE_FWD_ITERATOR 0
32689 _ACEOF
32690
32691 fi
32692
32693
32694 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32695 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32696 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32697   echo $ECHO_N "(cached) $ECHO_C" >&6
32698 else
32699   ac_ext=cpp
32700 ac_cpp='$CXXCPP $CPPFLAGS'
32701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32704
32705    cat >conftest.$ac_ext <<_ACEOF
32706 /* confdefs.h.  */
32707 _ACEOF
32708 cat confdefs.h >>conftest.$ac_ext
32709 cat >>conftest.$ac_ext <<_ACEOF
32710 /* end confdefs.h.  */
32711 #include <math.h>
32712 int
32713 main ()
32714 {
32715 float f; isnan(f);
32716   ;
32717   return 0;
32718 }
32719 _ACEOF
32720 rm -f conftest.$ac_objext
32721 if { (ac_try="$ac_compile"
32722 case "(($ac_try" in
32723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32724   *) ac_try_echo=$ac_try;;
32725 esac
32726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32727   (eval "$ac_compile") 2>conftest.er1
32728   ac_status=$?
32729   grep -v '^ *+' conftest.er1 >conftest.err
32730   rm -f conftest.er1
32731   cat conftest.err >&5
32732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32733   (exit $ac_status); } &&
32734          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32735   { (case "(($ac_try" in
32736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32737   *) ac_try_echo=$ac_try;;
32738 esac
32739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32740   (eval "$ac_try") 2>&5
32741   ac_status=$?
32742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32743   (exit $ac_status); }; } &&
32744          { ac_try='test -s conftest.$ac_objext'
32745   { (case "(($ac_try" in
32746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32747   *) ac_try_echo=$ac_try;;
32748 esac
32749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32750   (eval "$ac_try") 2>&5
32751   ac_status=$?
32752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753   (exit $ac_status); }; }; then
32754   ac_cv_func_isnan_in_math_h=yes
32755 else
32756   echo "$as_me: failed program was:" >&5
32757 sed 's/^/| /' conftest.$ac_ext >&5
32758
32759         ac_cv_func_isnan_in_math_h=no
32760 fi
32761
32762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32763   ac_ext=c
32764 ac_cpp='$CPP $CPPFLAGS'
32765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32768
32769 fi
32770 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32771 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32772
32773
32774 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32775
32776 cat >>confdefs.h <<\_ACEOF
32777 #define HAVE_ISNAN_IN_MATH_H 1
32778 _ACEOF
32779
32780 fi
32781
32782 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32783 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32784 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32785   echo $ECHO_N "(cached) $ECHO_C" >&6
32786 else
32787   ac_ext=cpp
32788 ac_cpp='$CXXCPP $CPPFLAGS'
32789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32792
32793    cat >conftest.$ac_ext <<_ACEOF
32794 /* confdefs.h.  */
32795 _ACEOF
32796 cat confdefs.h >>conftest.$ac_ext
32797 cat >>conftest.$ac_ext <<_ACEOF
32798 /* end confdefs.h.  */
32799 #include <cmath>
32800 int
32801 main ()
32802 {
32803 float f; isnan(f);
32804   ;
32805   return 0;
32806 }
32807 _ACEOF
32808 rm -f conftest.$ac_objext
32809 if { (ac_try="$ac_compile"
32810 case "(($ac_try" in
32811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32812   *) ac_try_echo=$ac_try;;
32813 esac
32814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32815   (eval "$ac_compile") 2>conftest.er1
32816   ac_status=$?
32817   grep -v '^ *+' conftest.er1 >conftest.err
32818   rm -f conftest.er1
32819   cat conftest.err >&5
32820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32821   (exit $ac_status); } &&
32822          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32823   { (case "(($ac_try" in
32824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32825   *) ac_try_echo=$ac_try;;
32826 esac
32827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32828   (eval "$ac_try") 2>&5
32829   ac_status=$?
32830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831   (exit $ac_status); }; } &&
32832          { ac_try='test -s conftest.$ac_objext'
32833   { (case "(($ac_try" in
32834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32835   *) ac_try_echo=$ac_try;;
32836 esac
32837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32838   (eval "$ac_try") 2>&5
32839   ac_status=$?
32840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841   (exit $ac_status); }; }; then
32842   ac_cv_func_isnan_in_cmath=yes
32843 else
32844   echo "$as_me: failed program was:" >&5
32845 sed 's/^/| /' conftest.$ac_ext >&5
32846
32847         ac_cv_func_isnan_in_cmath=no
32848 fi
32849
32850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32851   ac_ext=c
32852 ac_cpp='$CPP $CPPFLAGS'
32853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32856
32857 fi
32858 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32859 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32860
32861 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32862
32863 cat >>confdefs.h <<\_ACEOF
32864 #define HAVE_ISNAN_IN_CMATH 1
32865 _ACEOF
32866
32867 fi
32868
32869 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32870 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32871 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32872   echo $ECHO_N "(cached) $ECHO_C" >&6
32873 else
32874   ac_ext=cpp
32875 ac_cpp='$CXXCPP $CPPFLAGS'
32876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32879
32880    cat >conftest.$ac_ext <<_ACEOF
32881 /* confdefs.h.  */
32882 _ACEOF
32883 cat confdefs.h >>conftest.$ac_ext
32884 cat >>conftest.$ac_ext <<_ACEOF
32885 /* end confdefs.h.  */
32886 #include <cmath>
32887 int
32888 main ()
32889 {
32890 float f; std::isnan(f);
32891   ;
32892   return 0;
32893 }
32894 _ACEOF
32895 rm -f conftest.$ac_objext
32896 if { (ac_try="$ac_compile"
32897 case "(($ac_try" in
32898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32899   *) ac_try_echo=$ac_try;;
32900 esac
32901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32902   (eval "$ac_compile") 2>conftest.er1
32903   ac_status=$?
32904   grep -v '^ *+' conftest.er1 >conftest.err
32905   rm -f conftest.er1
32906   cat conftest.err >&5
32907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908   (exit $ac_status); } &&
32909          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32910   { (case "(($ac_try" in
32911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32912   *) ac_try_echo=$ac_try;;
32913 esac
32914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32915   (eval "$ac_try") 2>&5
32916   ac_status=$?
32917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32918   (exit $ac_status); }; } &&
32919          { ac_try='test -s conftest.$ac_objext'
32920   { (case "(($ac_try" in
32921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32922   *) ac_try_echo=$ac_try;;
32923 esac
32924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32925   (eval "$ac_try") 2>&5
32926   ac_status=$?
32927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32928   (exit $ac_status); }; }; then
32929   ac_cv_func_std_isnan_in_cmath=yes
32930 else
32931   echo "$as_me: failed program was:" >&5
32932 sed 's/^/| /' conftest.$ac_ext >&5
32933
32934         ac_cv_func_std_isnan_in_cmath=no
32935 fi
32936
32937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32938   ac_ext=c
32939 ac_cpp='$CPP $CPPFLAGS'
32940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32943
32944 fi
32945 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32946 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32947
32948 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32949
32950 cat >>confdefs.h <<\_ACEOF
32951 #define HAVE_STD_ISNAN_IN_CMATH 1
32952 _ACEOF
32953
32954 fi
32955
32956
32957 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32958 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32959 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32960   echo $ECHO_N "(cached) $ECHO_C" >&6
32961 else
32962   ac_ext=cpp
32963 ac_cpp='$CXXCPP $CPPFLAGS'
32964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32967
32968    cat >conftest.$ac_ext <<_ACEOF
32969 /* confdefs.h.  */
32970 _ACEOF
32971 cat confdefs.h >>conftest.$ac_ext
32972 cat >>conftest.$ac_ext <<_ACEOF
32973 /* end confdefs.h.  */
32974 #include <math.h>
32975 int
32976 main ()
32977 {
32978 float f; isinf(f);
32979   ;
32980   return 0;
32981 }
32982 _ACEOF
32983 rm -f conftest.$ac_objext
32984 if { (ac_try="$ac_compile"
32985 case "(($ac_try" in
32986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32987   *) ac_try_echo=$ac_try;;
32988 esac
32989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32990   (eval "$ac_compile") 2>conftest.er1
32991   ac_status=$?
32992   grep -v '^ *+' conftest.er1 >conftest.err
32993   rm -f conftest.er1
32994   cat conftest.err >&5
32995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996   (exit $ac_status); } &&
32997          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32998   { (case "(($ac_try" in
32999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33000   *) ac_try_echo=$ac_try;;
33001 esac
33002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33003   (eval "$ac_try") 2>&5
33004   ac_status=$?
33005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006   (exit $ac_status); }; } &&
33007          { ac_try='test -s conftest.$ac_objext'
33008   { (case "(($ac_try" in
33009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33010   *) ac_try_echo=$ac_try;;
33011 esac
33012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33013   (eval "$ac_try") 2>&5
33014   ac_status=$?
33015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016   (exit $ac_status); }; }; then
33017   ac_cv_func_isinf_in_math_h=yes
33018 else
33019   echo "$as_me: failed program was:" >&5
33020 sed 's/^/| /' conftest.$ac_ext >&5
33021
33022         ac_cv_func_isinf_in_math_h=no
33023 fi
33024
33025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33026   ac_ext=c
33027 ac_cpp='$CPP $CPPFLAGS'
33028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33031
33032 fi
33033 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33034 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33035
33036 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33037
33038 cat >>confdefs.h <<\_ACEOF
33039 #define HAVE_ISINF_IN_MATH_H 1
33040 _ACEOF
33041
33042 fi
33043
33044 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33045 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33046 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33047   echo $ECHO_N "(cached) $ECHO_C" >&6
33048 else
33049   ac_ext=cpp
33050 ac_cpp='$CXXCPP $CPPFLAGS'
33051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33054
33055    cat >conftest.$ac_ext <<_ACEOF
33056 /* confdefs.h.  */
33057 _ACEOF
33058 cat confdefs.h >>conftest.$ac_ext
33059 cat >>conftest.$ac_ext <<_ACEOF
33060 /* end confdefs.h.  */
33061 #include <cmath>
33062 int
33063 main ()
33064 {
33065 float f; isinf(f);
33066   ;
33067   return 0;
33068 }
33069 _ACEOF
33070 rm -f conftest.$ac_objext
33071 if { (ac_try="$ac_compile"
33072 case "(($ac_try" in
33073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33074   *) ac_try_echo=$ac_try;;
33075 esac
33076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33077   (eval "$ac_compile") 2>conftest.er1
33078   ac_status=$?
33079   grep -v '^ *+' conftest.er1 >conftest.err
33080   rm -f conftest.er1
33081   cat conftest.err >&5
33082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083   (exit $ac_status); } &&
33084          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33085   { (case "(($ac_try" in
33086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33087   *) ac_try_echo=$ac_try;;
33088 esac
33089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33090   (eval "$ac_try") 2>&5
33091   ac_status=$?
33092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093   (exit $ac_status); }; } &&
33094          { ac_try='test -s conftest.$ac_objext'
33095   { (case "(($ac_try" in
33096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33097   *) ac_try_echo=$ac_try;;
33098 esac
33099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33100   (eval "$ac_try") 2>&5
33101   ac_status=$?
33102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103   (exit $ac_status); }; }; then
33104   ac_cv_func_isinf_in_cmath=yes
33105 else
33106   echo "$as_me: failed program was:" >&5
33107 sed 's/^/| /' conftest.$ac_ext >&5
33108
33109         ac_cv_func_isinf_in_cmath=no
33110 fi
33111
33112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33113   ac_ext=c
33114 ac_cpp='$CPP $CPPFLAGS'
33115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33118
33119 fi
33120 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33121 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33122
33123 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33124
33125 cat >>confdefs.h <<\_ACEOF
33126 #define HAVE_ISINF_IN_CMATH 1
33127 _ACEOF
33128
33129 fi
33130
33131 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33132 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33133 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33134   echo $ECHO_N "(cached) $ECHO_C" >&6
33135 else
33136   ac_ext=cpp
33137 ac_cpp='$CXXCPP $CPPFLAGS'
33138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33141
33142    cat >conftest.$ac_ext <<_ACEOF
33143 /* confdefs.h.  */
33144 _ACEOF
33145 cat confdefs.h >>conftest.$ac_ext
33146 cat >>conftest.$ac_ext <<_ACEOF
33147 /* end confdefs.h.  */
33148 #include <cmath>
33149 int
33150 main ()
33151 {
33152 float f; std::isinf(f)}
33153   ;
33154   return 0;
33155 }
33156 _ACEOF
33157 rm -f conftest.$ac_objext
33158 if { (ac_try="$ac_compile"
33159 case "(($ac_try" in
33160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33161   *) ac_try_echo=$ac_try;;
33162 esac
33163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33164   (eval "$ac_compile") 2>conftest.er1
33165   ac_status=$?
33166   grep -v '^ *+' conftest.er1 >conftest.err
33167   rm -f conftest.er1
33168   cat conftest.err >&5
33169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33170   (exit $ac_status); } &&
33171          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33172   { (case "(($ac_try" in
33173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33174   *) ac_try_echo=$ac_try;;
33175 esac
33176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33177   (eval "$ac_try") 2>&5
33178   ac_status=$?
33179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180   (exit $ac_status); }; } &&
33181          { ac_try='test -s conftest.$ac_objext'
33182   { (case "(($ac_try" in
33183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33184   *) ac_try_echo=$ac_try;;
33185 esac
33186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33187   (eval "$ac_try") 2>&5
33188   ac_status=$?
33189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33190   (exit $ac_status); }; }; then
33191   ac_cv_func_std_isinf_in_cmath=yes
33192 else
33193   echo "$as_me: failed program was:" >&5
33194 sed 's/^/| /' conftest.$ac_ext >&5
33195
33196         ac_cv_func_std_isinf_in_cmath=no
33197 fi
33198
33199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33200   ac_ext=c
33201 ac_cpp='$CPP $CPPFLAGS'
33202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33205
33206 fi
33207 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33208 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33209
33210 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33211
33212 cat >>confdefs.h <<\_ACEOF
33213 #define HAVE_STD_ISINF_IN_CMATH 1
33214 _ACEOF
33215
33216 fi
33217
33218 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33219 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33220 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33221   echo $ECHO_N "(cached) $ECHO_C" >&6
33222 else
33223   ac_ext=cpp
33224 ac_cpp='$CXXCPP $CPPFLAGS'
33225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33228
33229    cat >conftest.$ac_ext <<_ACEOF
33230 /* confdefs.h.  */
33231 _ACEOF
33232 cat confdefs.h >>conftest.$ac_ext
33233 cat >>conftest.$ac_ext <<_ACEOF
33234 /* end confdefs.h.  */
33235 #include <ieeefp.h>
33236 int
33237 main ()
33238 {
33239 float f; finite(f);
33240   ;
33241   return 0;
33242 }
33243 _ACEOF
33244 rm -f conftest.$ac_objext
33245 if { (ac_try="$ac_compile"
33246 case "(($ac_try" in
33247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33248   *) ac_try_echo=$ac_try;;
33249 esac
33250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33251   (eval "$ac_compile") 2>conftest.er1
33252   ac_status=$?
33253   grep -v '^ *+' conftest.er1 >conftest.err
33254   rm -f conftest.er1
33255   cat conftest.err >&5
33256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33257   (exit $ac_status); } &&
33258          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33259   { (case "(($ac_try" in
33260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33261   *) ac_try_echo=$ac_try;;
33262 esac
33263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33264   (eval "$ac_try") 2>&5
33265   ac_status=$?
33266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267   (exit $ac_status); }; } &&
33268          { ac_try='test -s conftest.$ac_objext'
33269   { (case "(($ac_try" in
33270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33271   *) ac_try_echo=$ac_try;;
33272 esac
33273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33274   (eval "$ac_try") 2>&5
33275   ac_status=$?
33276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33277   (exit $ac_status); }; }; then
33278   ac_cv_func_finite_in_ieeefp_h=yes
33279 else
33280   echo "$as_me: failed program was:" >&5
33281 sed 's/^/| /' conftest.$ac_ext >&5
33282
33283         ac_cv_func_finite_in_ieeefp_h=no
33284 fi
33285
33286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33287   ac_ext=c
33288 ac_cpp='$CPP $CPPFLAGS'
33289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33292
33293 fi
33294 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33295 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33296
33297 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33298
33299 cat >>confdefs.h <<\_ACEOF
33300 #define HAVE_FINITE_IN_IEEEFP_H 1
33301 _ACEOF
33302
33303 fi
33304
33305
33306
33307 if test "$llvm_cv_platform_type" = "Unix" ; then
33308
33309
33310 for ac_header in stdlib.h unistd.h
33311 do
33312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33314   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33317   echo $ECHO_N "(cached) $ECHO_C" >&6
33318 fi
33319 ac_res=`eval echo '${'$as_ac_Header'}'`
33320                { echo "$as_me:$LINENO: result: $ac_res" >&5
33321 echo "${ECHO_T}$ac_res" >&6; }
33322 else
33323   # Is the header compilable?
33324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33326 cat >conftest.$ac_ext <<_ACEOF
33327 /* confdefs.h.  */
33328 _ACEOF
33329 cat confdefs.h >>conftest.$ac_ext
33330 cat >>conftest.$ac_ext <<_ACEOF
33331 /* end confdefs.h.  */
33332 $ac_includes_default
33333 #include <$ac_header>
33334 _ACEOF
33335 rm -f conftest.$ac_objext
33336 if { (ac_try="$ac_compile"
33337 case "(($ac_try" in
33338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33339   *) ac_try_echo=$ac_try;;
33340 esac
33341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33342   (eval "$ac_compile") 2>conftest.er1
33343   ac_status=$?
33344   grep -v '^ *+' conftest.er1 >conftest.err
33345   rm -f conftest.er1
33346   cat conftest.err >&5
33347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33348   (exit $ac_status); } &&
33349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33350   { (case "(($ac_try" in
33351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33352   *) ac_try_echo=$ac_try;;
33353 esac
33354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33355   (eval "$ac_try") 2>&5
33356   ac_status=$?
33357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358   (exit $ac_status); }; } &&
33359          { ac_try='test -s conftest.$ac_objext'
33360   { (case "(($ac_try" in
33361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33362   *) ac_try_echo=$ac_try;;
33363 esac
33364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33365   (eval "$ac_try") 2>&5
33366   ac_status=$?
33367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368   (exit $ac_status); }; }; then
33369   ac_header_compiler=yes
33370 else
33371   echo "$as_me: failed program was:" >&5
33372 sed 's/^/| /' conftest.$ac_ext >&5
33373
33374         ac_header_compiler=no
33375 fi
33376
33377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33379 echo "${ECHO_T}$ac_header_compiler" >&6; }
33380
33381 # Is the header present?
33382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33384 cat >conftest.$ac_ext <<_ACEOF
33385 /* confdefs.h.  */
33386 _ACEOF
33387 cat confdefs.h >>conftest.$ac_ext
33388 cat >>conftest.$ac_ext <<_ACEOF
33389 /* end confdefs.h.  */
33390 #include <$ac_header>
33391 _ACEOF
33392 if { (ac_try="$ac_cpp conftest.$ac_ext"
33393 case "(($ac_try" in
33394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33395   *) ac_try_echo=$ac_try;;
33396 esac
33397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33398   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33399   ac_status=$?
33400   grep -v '^ *+' conftest.er1 >conftest.err
33401   rm -f conftest.er1
33402   cat conftest.err >&5
33403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33404   (exit $ac_status); } >/dev/null; then
33405   if test -s conftest.err; then
33406     ac_cpp_err=$ac_c_preproc_warn_flag
33407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33408   else
33409     ac_cpp_err=
33410   fi
33411 else
33412   ac_cpp_err=yes
33413 fi
33414 if test -z "$ac_cpp_err"; then
33415   ac_header_preproc=yes
33416 else
33417   echo "$as_me: failed program was:" >&5
33418 sed 's/^/| /' conftest.$ac_ext >&5
33419
33420   ac_header_preproc=no
33421 fi
33422
33423 rm -f conftest.err conftest.$ac_ext
33424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33425 echo "${ECHO_T}$ac_header_preproc" >&6; }
33426
33427 # So?  What about this header?
33428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33429   yes:no: )
33430     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33434     ac_header_preproc=yes
33435     ;;
33436   no:yes:* )
33437     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33439     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33440 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33441     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33443     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33444 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33447     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33449     ( cat <<\_ASBOX
33450 ## ----------------------------------- ##
33451 ## Report this to llvmbugs@cs.uiuc.edu ##
33452 ## ----------------------------------- ##
33453 _ASBOX
33454      ) | sed "s/^/$as_me: WARNING:     /" >&2
33455     ;;
33456 esac
33457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33460   echo $ECHO_N "(cached) $ECHO_C" >&6
33461 else
33462   eval "$as_ac_Header=\$ac_header_preproc"
33463 fi
33464 ac_res=`eval echo '${'$as_ac_Header'}'`
33465                { echo "$as_me:$LINENO: result: $ac_res" >&5
33466 echo "${ECHO_T}$ac_res" >&6; }
33467
33468 fi
33469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33470   cat >>confdefs.h <<_ACEOF
33471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33472 _ACEOF
33473
33474 fi
33475
33476 done
33477
33478
33479 for ac_func in getpagesize
33480 do
33481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33482 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33484 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33485   echo $ECHO_N "(cached) $ECHO_C" >&6
33486 else
33487   cat >conftest.$ac_ext <<_ACEOF
33488 /* confdefs.h.  */
33489 _ACEOF
33490 cat confdefs.h >>conftest.$ac_ext
33491 cat >>conftest.$ac_ext <<_ACEOF
33492 /* end confdefs.h.  */
33493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33495 #define $ac_func innocuous_$ac_func
33496
33497 /* System header to define __stub macros and hopefully few prototypes,
33498     which can conflict with char $ac_func (); below.
33499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33500     <limits.h> exists even on freestanding compilers.  */
33501
33502 #ifdef __STDC__
33503 # include <limits.h>
33504 #else
33505 # include <assert.h>
33506 #endif
33507
33508 #undef $ac_func
33509
33510 /* Override any GCC internal prototype to avoid an error.
33511    Use char because int might match the return type of a GCC
33512    builtin and then its argument prototype would still apply.  */
33513 #ifdef __cplusplus
33514 extern "C"
33515 #endif
33516 char $ac_func ();
33517 /* The GNU C library defines this for functions which it implements
33518     to always fail with ENOSYS.  Some functions are actually named
33519     something starting with __ and the normal name is an alias.  */
33520 #if defined __stub_$ac_func || defined __stub___$ac_func
33521 choke me
33522 #endif
33523
33524 int
33525 main ()
33526 {
33527 return $ac_func ();
33528   ;
33529   return 0;
33530 }
33531 _ACEOF
33532 rm -f conftest.$ac_objext conftest$ac_exeext
33533 if { (ac_try="$ac_link"
33534 case "(($ac_try" in
33535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33536   *) ac_try_echo=$ac_try;;
33537 esac
33538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33539   (eval "$ac_link") 2>conftest.er1
33540   ac_status=$?
33541   grep -v '^ *+' conftest.er1 >conftest.err
33542   rm -f conftest.er1
33543   cat conftest.err >&5
33544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545   (exit $ac_status); } &&
33546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33547   { (case "(($ac_try" in
33548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33549   *) ac_try_echo=$ac_try;;
33550 esac
33551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33552   (eval "$ac_try") 2>&5
33553   ac_status=$?
33554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555   (exit $ac_status); }; } &&
33556          { ac_try='test -s conftest$ac_exeext'
33557   { (case "(($ac_try" in
33558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33559   *) ac_try_echo=$ac_try;;
33560 esac
33561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33562   (eval "$ac_try") 2>&5
33563   ac_status=$?
33564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565   (exit $ac_status); }; }; then
33566   eval "$as_ac_var=yes"
33567 else
33568   echo "$as_me: failed program was:" >&5
33569 sed 's/^/| /' conftest.$ac_ext >&5
33570
33571         eval "$as_ac_var=no"
33572 fi
33573
33574 rm -f core conftest.err conftest.$ac_objext \
33575       conftest$ac_exeext conftest.$ac_ext
33576 fi
33577 ac_res=`eval echo '${'$as_ac_var'}'`
33578                { echo "$as_me:$LINENO: result: $ac_res" >&5
33579 echo "${ECHO_T}$ac_res" >&6; }
33580 if test `eval echo '${'$as_ac_var'}'` = yes; then
33581   cat >>confdefs.h <<_ACEOF
33582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33583 _ACEOF
33584
33585 fi
33586 done
33587
33588 { echo "$as_me:$LINENO: checking for working mmap" >&5
33589 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33590 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33591   echo $ECHO_N "(cached) $ECHO_C" >&6
33592 else
33593   if test "$cross_compiling" = yes; then
33594   ac_cv_func_mmap_fixed_mapped=no
33595 else
33596   cat >conftest.$ac_ext <<_ACEOF
33597 /* confdefs.h.  */
33598 _ACEOF
33599 cat confdefs.h >>conftest.$ac_ext
33600 cat >>conftest.$ac_ext <<_ACEOF
33601 /* end confdefs.h.  */
33602 $ac_includes_default
33603 /* malloc might have been renamed as rpl_malloc. */
33604 #undef malloc
33605
33606 /* Thanks to Mike Haertel and Jim Avera for this test.
33607    Here is a matrix of mmap possibilities:
33608         mmap private not fixed
33609         mmap private fixed at somewhere currently unmapped
33610         mmap private fixed at somewhere already mapped
33611         mmap shared not fixed
33612         mmap shared fixed at somewhere currently unmapped
33613         mmap shared fixed at somewhere already mapped
33614    For private mappings, we should verify that changes cannot be read()
33615    back from the file, nor mmap's back from the file at a different
33616    address.  (There have been systems where private was not correctly
33617    implemented like the infamous i386 svr4.0, and systems where the
33618    VM page cache was not coherent with the file system buffer cache
33619    like early versions of FreeBSD and possibly contemporary NetBSD.)
33620    For shared mappings, we should conversely verify that changes get
33621    propagated back to all the places they're supposed to be.
33622
33623    Grep wants private fixed already mapped.
33624    The main things grep needs to know about mmap are:
33625    * does it exist and is it safe to write into the mmap'd area
33626    * how to use it (BSD variants)  */
33627
33628 #include <fcntl.h>
33629 #include <sys/mman.h>
33630
33631 #if !STDC_HEADERS && !HAVE_STDLIB_H
33632 char *malloc ();
33633 #endif
33634
33635 /* This mess was copied from the GNU getpagesize.h.  */
33636 #if !HAVE_GETPAGESIZE
33637 /* Assume that all systems that can run configure have sys/param.h.  */
33638 # if !HAVE_SYS_PARAM_H
33639 #  define HAVE_SYS_PARAM_H 1
33640 # endif
33641
33642 # ifdef _SC_PAGESIZE
33643 #  define getpagesize() sysconf(_SC_PAGESIZE)
33644 # else /* no _SC_PAGESIZE */
33645 #  if HAVE_SYS_PARAM_H
33646 #   include <sys/param.h>
33647 #   ifdef EXEC_PAGESIZE
33648 #    define getpagesize() EXEC_PAGESIZE
33649 #   else /* no EXEC_PAGESIZE */
33650 #    ifdef NBPG
33651 #     define getpagesize() NBPG * CLSIZE
33652 #     ifndef CLSIZE
33653 #      define CLSIZE 1
33654 #     endif /* no CLSIZE */
33655 #    else /* no NBPG */
33656 #     ifdef NBPC
33657 #      define getpagesize() NBPC
33658 #     else /* no NBPC */
33659 #      ifdef PAGESIZE
33660 #       define getpagesize() PAGESIZE
33661 #      endif /* PAGESIZE */
33662 #     endif /* no NBPC */
33663 #    endif /* no NBPG */
33664 #   endif /* no EXEC_PAGESIZE */
33665 #  else /* no HAVE_SYS_PARAM_H */
33666 #   define getpagesize() 8192   /* punt totally */
33667 #  endif /* no HAVE_SYS_PARAM_H */
33668 # endif /* no _SC_PAGESIZE */
33669
33670 #endif /* no HAVE_GETPAGESIZE */
33671
33672 int
33673 main ()
33674 {
33675   char *data, *data2, *data3;
33676   int i, pagesize;
33677   int fd;
33678
33679   pagesize = getpagesize ();
33680
33681   /* First, make a file with some known garbage in it. */
33682   data = (char *) malloc (pagesize);
33683   if (!data)
33684     return 1;
33685   for (i = 0; i < pagesize; ++i)
33686     *(data + i) = rand ();
33687   umask (0);
33688   fd = creat ("conftest.mmap", 0600);
33689   if (fd < 0)
33690     return 1;
33691   if (write (fd, data, pagesize) != pagesize)
33692     return 1;
33693   close (fd);
33694
33695   /* Next, try to mmap the file at a fixed address which already has
33696      something else allocated at it.  If we can, also make sure that
33697      we see the same garbage.  */
33698   fd = open ("conftest.mmap", O_RDWR);
33699   if (fd < 0)
33700     return 1;
33701   data2 = (char *) malloc (2 * pagesize);
33702   if (!data2)
33703     return 1;
33704   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33705   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33706                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33707     return 1;
33708   for (i = 0; i < pagesize; ++i)
33709     if (*(data + i) != *(data2 + i))
33710       return 1;
33711
33712   /* Finally, make sure that changes to the mapped area do not
33713      percolate back to the file as seen by read().  (This is a bug on
33714      some variants of i386 svr4.0.)  */
33715   for (i = 0; i < pagesize; ++i)
33716     *(data2 + i) = *(data2 + i) + 1;
33717   data3 = (char *) malloc (pagesize);
33718   if (!data3)
33719     return 1;
33720   if (read (fd, data3, pagesize) != pagesize)
33721     return 1;
33722   for (i = 0; i < pagesize; ++i)
33723     if (*(data + i) != *(data3 + i))
33724       return 1;
33725   close (fd);
33726   return 0;
33727 }
33728 _ACEOF
33729 rm -f conftest$ac_exeext
33730 if { (ac_try="$ac_link"
33731 case "(($ac_try" in
33732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33733   *) ac_try_echo=$ac_try;;
33734 esac
33735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33736   (eval "$ac_link") 2>&5
33737   ac_status=$?
33738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33740   { (case "(($ac_try" in
33741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33742   *) ac_try_echo=$ac_try;;
33743 esac
33744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33745   (eval "$ac_try") 2>&5
33746   ac_status=$?
33747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748   (exit $ac_status); }; }; then
33749   ac_cv_func_mmap_fixed_mapped=yes
33750 else
33751   echo "$as_me: program exited with status $ac_status" >&5
33752 echo "$as_me: failed program was:" >&5
33753 sed 's/^/| /' conftest.$ac_ext >&5
33754
33755 ( exit $ac_status )
33756 ac_cv_func_mmap_fixed_mapped=no
33757 fi
33758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33759 fi
33760
33761
33762 fi
33763 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33764 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33765 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33766
33767 cat >>confdefs.h <<\_ACEOF
33768 #define HAVE_MMAP 1
33769 _ACEOF
33770
33771 fi
33772 rm -f conftest.mmap
33773
33774   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33775 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33776 if test "${ac_cv_func_mmap_file+set}" = set; then
33777   echo $ECHO_N "(cached) $ECHO_C" >&6
33778 else
33779    ac_ext=c
33780 ac_cpp='$CPP $CPPFLAGS'
33781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33784
33785   if test "$cross_compiling" = yes; then
33786   ac_cv_func_mmap_file=no
33787 else
33788   cat >conftest.$ac_ext <<_ACEOF
33789
33790     /* confdefs.h.  */
33791 _ACEOF
33792 cat confdefs.h >>conftest.$ac_ext
33793 cat >>conftest.$ac_ext <<_ACEOF
33794 /* end confdefs.h.  */
33795
33796 #include <sys/types.h>
33797 #include <sys/mman.h>
33798 #include <fcntl.h>
33799
33800 int
33801 main ()
33802 {
33803
33804   int fd;
33805   fd = creat ("foo",0777);
33806   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33807   unlink ("foo");
33808   return (fd != (int) MAP_FAILED);
33809   ;
33810   return 0;
33811 }
33812 _ACEOF
33813 rm -f conftest$ac_exeext
33814 if { (ac_try="$ac_link"
33815 case "(($ac_try" in
33816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33817   *) ac_try_echo=$ac_try;;
33818 esac
33819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33820   (eval "$ac_link") 2>&5
33821   ac_status=$?
33822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33823   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33824   { (case "(($ac_try" in
33825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33826   *) ac_try_echo=$ac_try;;
33827 esac
33828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33829   (eval "$ac_try") 2>&5
33830   ac_status=$?
33831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33832   (exit $ac_status); }; }; then
33833   ac_cv_func_mmap_file=yes
33834 else
33835   echo "$as_me: program exited with status $ac_status" >&5
33836 echo "$as_me: failed program was:" >&5
33837 sed 's/^/| /' conftest.$ac_ext >&5
33838
33839 ( exit $ac_status )
33840 ac_cv_func_mmap_file=no
33841 fi
33842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33843 fi
33844
33845
33846   ac_ext=c
33847 ac_cpp='$CPP $CPPFLAGS'
33848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33851
33852
33853 fi
33854 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33855 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33856 if test "$ac_cv_func_mmap_file" = yes; then
33857
33858 cat >>confdefs.h <<\_ACEOF
33859 #define HAVE_MMAP_FILE
33860 _ACEOF
33861
33862    MMAP_FILE=yes
33863
33864 fi
33865
33866   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33867 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33868 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33869   echo $ECHO_N "(cached) $ECHO_C" >&6
33870 else
33871   if test "$llvm_cv_os_type" = "Interix" ; then
33872    ac_cv_need_dev_zero_for_mmap=yes
33873  else
33874    ac_cv_need_dev_zero_for_mmap=no
33875  fi
33876
33877 fi
33878 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33879 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33880 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33881
33882 cat >>confdefs.h <<\_ACEOF
33883 #define NEED_DEV_ZERO_FOR_MMAP 1
33884 _ACEOF
33885
33886 fi
33887
33888   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33889   then
33890     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33891 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33892   fi
33893   if test "$ac_cv_func_mmap_file" = "no"
33894   then
33895     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33896 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33897   fi
33898 fi
33899
33900
33901
33902 for ac_func in __dso_handle
33903 do
33904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33905 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33907 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33908   echo $ECHO_N "(cached) $ECHO_C" >&6
33909 else
33910   cat >conftest.$ac_ext <<_ACEOF
33911 /* confdefs.h.  */
33912 _ACEOF
33913 cat confdefs.h >>conftest.$ac_ext
33914 cat >>conftest.$ac_ext <<_ACEOF
33915 /* end confdefs.h.  */
33916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33917    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33918 #define $ac_func innocuous_$ac_func
33919
33920 /* System header to define __stub macros and hopefully few prototypes,
33921     which can conflict with char $ac_func (); below.
33922     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33923     <limits.h> exists even on freestanding compilers.  */
33924
33925 #ifdef __STDC__
33926 # include <limits.h>
33927 #else
33928 # include <assert.h>
33929 #endif
33930
33931 #undef $ac_func
33932
33933 /* Override any GCC internal prototype to avoid an error.
33934    Use char because int might match the return type of a GCC
33935    builtin and then its argument prototype would still apply.  */
33936 #ifdef __cplusplus
33937 extern "C"
33938 #endif
33939 char $ac_func ();
33940 /* The GNU C library defines this for functions which it implements
33941     to always fail with ENOSYS.  Some functions are actually named
33942     something starting with __ and the normal name is an alias.  */
33943 #if defined __stub_$ac_func || defined __stub___$ac_func
33944 choke me
33945 #endif
33946
33947 int
33948 main ()
33949 {
33950 return $ac_func ();
33951   ;
33952   return 0;
33953 }
33954 _ACEOF
33955 rm -f conftest.$ac_objext conftest$ac_exeext
33956 if { (ac_try="$ac_link"
33957 case "(($ac_try" in
33958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33959   *) ac_try_echo=$ac_try;;
33960 esac
33961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33962   (eval "$ac_link") 2>conftest.er1
33963   ac_status=$?
33964   grep -v '^ *+' conftest.er1 >conftest.err
33965   rm -f conftest.er1
33966   cat conftest.err >&5
33967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33968   (exit $ac_status); } &&
33969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33970   { (case "(($ac_try" in
33971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33972   *) ac_try_echo=$ac_try;;
33973 esac
33974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33975   (eval "$ac_try") 2>&5
33976   ac_status=$?
33977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33978   (exit $ac_status); }; } &&
33979          { ac_try='test -s conftest$ac_exeext'
33980   { (case "(($ac_try" in
33981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33982   *) ac_try_echo=$ac_try;;
33983 esac
33984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33985   (eval "$ac_try") 2>&5
33986   ac_status=$?
33987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33988   (exit $ac_status); }; }; then
33989   eval "$as_ac_var=yes"
33990 else
33991   echo "$as_me: failed program was:" >&5
33992 sed 's/^/| /' conftest.$ac_ext >&5
33993
33994         eval "$as_ac_var=no"
33995 fi
33996
33997 rm -f core conftest.err conftest.$ac_objext \
33998       conftest$ac_exeext conftest.$ac_ext
33999 fi
34000 ac_res=`eval echo '${'$as_ac_var'}'`
34001                { echo "$as_me:$LINENO: result: $ac_res" >&5
34002 echo "${ECHO_T}$ac_res" >&6; }
34003 if test `eval echo '${'$as_ac_var'}'` = yes; then
34004   cat >>confdefs.h <<_ACEOF
34005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34006 _ACEOF
34007
34008 fi
34009 done
34010
34011
34012 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34013 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34014 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34015   echo $ECHO_N "(cached) $ECHO_C" >&6
34016 else
34017   llvm_cv_llvmgcc_sanity="no"
34018 if test -x "$LLVMGCC" ; then
34019   cp /dev/null conftest.c
34020   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34021       grep 'target datalayout =' > /dev/null 2>&1
34022   if test $? -eq 0 ; then
34023     llvm_cv_llvmgcc_sanity="yes"
34024   fi
34025   rm conftest.c
34026 fi
34027 fi
34028 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34029 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34030
34031 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34032   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34033 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34034   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34035   LLVMCC1=$llvmcc1path
34036
34037   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34038   LLVMCC1PLUS=$llvmcc1pluspath
34039
34040   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34041   LLVMGCCDIR=$llvmgccdir
34042
34043   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34044   LLVMGCCLIBEXEC=$llvmgcclibexec
34045
34046   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34047   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34048   LLVMGCC_VERSION=$llvmgccversion
34049
34050   LLVMGCC_MAJVERS=$llvmgccmajvers
34051
34052   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34053   LLVMGCC_LANGS=$llvmgcclangs
34054
34055   { echo "$as_me:$LINENO: result: ok" >&5
34056 echo "${ECHO_T}ok" >&6; }
34057 fi
34058
34059 SHLIBEXT=$libltdl_cv_shlibext
34060
34061
34062 # Translate the various configuration directories and other basic
34063 # information into substitutions that will end up in Makefile.config.in
34064 # that these configured values can be used by the makefiles
34065 if test "${prefix}" = "NONE" ; then
34066   prefix="/usr/local"
34067 fi
34068 eval LLVM_PREFIX="${prefix}";
34069 eval LLVM_BINDIR="${prefix}/bin";
34070 eval LLVM_LIBDIR="${prefix}/lib";
34071 eval LLVM_DATADIR="${prefix}/share/llvm";
34072 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34073 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34074 eval LLVM_INCLUDEDIR="${prefix}/include";
34075 eval LLVM_INFODIR="${prefix}/info";
34076 eval LLVM_MANDIR="${prefix}/man";
34077 LLVM_CONFIGTIME=`date`
34078
34079
34080
34081
34082
34083
34084
34085
34086
34087
34088
34089 # Place the various directores into the config.h file as #defines so that we
34090 # can know about the installation paths within LLVM.
34091
34092 cat >>confdefs.h <<_ACEOF
34093 #define LLVM_PREFIX "$LLVM_PREFIX"
34094 _ACEOF
34095
34096
34097 cat >>confdefs.h <<_ACEOF
34098 #define LLVM_BINDIR "$LLVM_BINDIR"
34099 _ACEOF
34100
34101
34102 cat >>confdefs.h <<_ACEOF
34103 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34104 _ACEOF
34105
34106
34107 cat >>confdefs.h <<_ACEOF
34108 #define LLVM_DATADIR "$LLVM_DATADIR"
34109 _ACEOF
34110
34111
34112 cat >>confdefs.h <<_ACEOF
34113 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34114 _ACEOF
34115
34116
34117 cat >>confdefs.h <<_ACEOF
34118 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34119 _ACEOF
34120
34121
34122 cat >>confdefs.h <<_ACEOF
34123 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34124 _ACEOF
34125
34126
34127 cat >>confdefs.h <<_ACEOF
34128 #define LLVM_INFODIR "$LLVM_INFODIR"
34129 _ACEOF
34130
34131
34132 cat >>confdefs.h <<_ACEOF
34133 #define LLVM_MANDIR "$LLVM_MANDIR"
34134 _ACEOF
34135
34136
34137 cat >>confdefs.h <<_ACEOF
34138 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34139 _ACEOF
34140
34141
34142 cat >>confdefs.h <<_ACEOF
34143 #define LLVM_HOSTTRIPLE "$host"
34144 _ACEOF
34145
34146
34147 # Determine which bindings to build.
34148 if test "$BINDINGS_TO_BUILD" = auto ; then
34149   BINDINGS_TO_BUILD=""
34150   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34151     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34152   fi
34153 fi
34154 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34155
34156
34157 # This isn't really configurey, but it avoids having to repeat the list in
34158 # other files.
34159 ALL_BINDINGS=ocaml
34160
34161
34162 # Do any work necessary to ensure that bindings have what they need.
34163 binding_prereqs_failed=0
34164 for a_binding in $BINDINGS_TO_BUILD ; do
34165   case "$a_binding" in
34166   ocaml)
34167     if test "x$OCAMLC" = x ; then
34168       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34169 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34170       binding_prereqs_failed=1
34171     fi
34172     if test "x$OCAMLDEP" = x ; then
34173       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34174 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34175       binding_prereqs_failed=1
34176     fi
34177     if test "x$OCAMLOPT" = x ; then
34178       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34179 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34180           fi
34181     if test "x$with_ocaml_libdir" != xauto ; then
34182       OCAML_LIBDIR=$with_ocaml_libdir
34183
34184     else
34185       ocaml_stdlib="`"$OCAMLC" -where`"
34186       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34187       then
34188         # ocaml stdlib is beneath our prefix; use stdlib
34189         OCAML_LIBDIR=$ocaml_stdlib
34190
34191       else
34192         # ocaml stdlib is outside our prefix; use libdir/ocaml
34193         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34194
34195       fi
34196     fi
34197     ;;
34198   esac
34199 done
34200 if test "$binding_prereqs_failed" = 1 ; then
34201   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34202 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34203    { (exit 1); exit 1; }; }
34204 fi
34205
34206
34207
34208 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34209
34210 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34211
34212 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34213
34214 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34215
34216 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34217
34218
34219 ac_config_files="$ac_config_files Makefile.config"
34220
34221
34222 ac_config_files="$ac_config_files llvm.spec"
34223
34224
34225 ac_config_files="$ac_config_files docs/doxygen.cfg"
34226
34227
34228 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34229
34230
34231 ac_config_commands="$ac_config_commands setup"
34232
34233 ac_config_commands="$ac_config_commands Makefile"
34234
34235
34236 ac_config_commands="$ac_config_commands Makefile.common"
34237
34238
34239 ac_config_commands="$ac_config_commands examples/Makefile"
34240
34241
34242 ac_config_commands="$ac_config_commands lib/Makefile"
34243
34244
34245 ac_config_commands="$ac_config_commands runtime/Makefile"
34246
34247
34248 ac_config_commands="$ac_config_commands test/Makefile"
34249
34250
34251 ac_config_commands="$ac_config_commands test/Makefile.tests"
34252
34253
34254 ac_config_commands="$ac_config_commands tools/Makefile"
34255
34256
34257 ac_config_commands="$ac_config_commands utils/Makefile"
34258
34259
34260 ac_config_commands="$ac_config_commands projects/Makefile"
34261
34262
34263 ac_config_commands="$ac_config_commands bindings/Makefile"
34264
34265
34266 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34267
34268
34269
34270 cat >confcache <<\_ACEOF
34271 # This file is a shell script that caches the results of configure
34272 # tests run on this system so they can be shared between configure
34273 # scripts and configure runs, see configure's option --config-cache.
34274 # It is not useful on other systems.  If it contains results you don't
34275 # want to keep, you may remove or edit it.
34276 #
34277 # config.status only pays attention to the cache file if you give it
34278 # the --recheck option to rerun configure.
34279 #
34280 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34281 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34282 # following values.
34283
34284 _ACEOF
34285
34286 # The following way of writing the cache mishandles newlines in values,
34287 # but we know of no workaround that is simple, portable, and efficient.
34288 # So, we kill variables containing newlines.
34289 # Ultrix sh set writes to stderr and can't be redirected directly,
34290 # and sets the high bit in the cache file unless we assign to the vars.
34291 (
34292   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34293     eval ac_val=\$$ac_var
34294     case $ac_val in #(
34295     *${as_nl}*)
34296       case $ac_var in #(
34297       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34298 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34299       esac
34300       case $ac_var in #(
34301       _ | IFS | as_nl) ;; #(
34302       *) $as_unset $ac_var ;;
34303       esac ;;
34304     esac
34305   done
34306
34307   (set) 2>&1 |
34308     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34309     *${as_nl}ac_space=\ *)
34310       # `set' does not quote correctly, so add quotes (double-quote
34311       # substitution turns \\\\ into \\, and sed turns \\ into \).
34312       sed -n \
34313         "s/'/'\\\\''/g;
34314           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34315       ;; #(
34316     *)
34317       # `set' quotes correctly as required by POSIX, so do not add quotes.
34318       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34319       ;;
34320     esac |
34321     sort
34322 ) |
34323   sed '
34324      /^ac_cv_env_/b end
34325      t clear
34326      :clear
34327      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34328      t end
34329      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34330      :end' >>confcache
34331 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34332   if test -w "$cache_file"; then
34333     test "x$cache_file" != "x/dev/null" &&
34334       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34335 echo "$as_me: updating cache $cache_file" >&6;}
34336     cat confcache >$cache_file
34337   else
34338     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34339 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34340   fi
34341 fi
34342 rm -f confcache
34343
34344 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34345 # Let make expand exec_prefix.
34346 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34347
34348 DEFS=-DHAVE_CONFIG_H
34349
34350 ac_libobjs=
34351 ac_ltlibobjs=
34352 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34353   # 1. Remove the extension, and $U if already installed.
34354   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34355   ac_i=`echo "$ac_i" | sed "$ac_script"`
34356   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34357   #    will be set to the directory where LIBOBJS objects are built.
34358   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34359   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34360 done
34361 LIBOBJS=$ac_libobjs
34362
34363 LTLIBOBJS=$ac_ltlibobjs
34364
34365
34366 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34367   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34368 Usually this means the macro was only invoked conditionally." >&5
34369 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34370 Usually this means the macro was only invoked conditionally." >&2;}
34371    { (exit 1); exit 1; }; }
34372 fi
34373 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34374   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34375 Usually this means the macro was only invoked conditionally." >&5
34376 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34377 Usually this means the macro was only invoked conditionally." >&2;}
34378    { (exit 1); exit 1; }; }
34379 fi
34380
34381 : ${CONFIG_STATUS=./config.status}
34382 ac_clean_files_save=$ac_clean_files
34383 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34384 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34385 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34386 cat >$CONFIG_STATUS <<_ACEOF
34387 #! $SHELL
34388 # Generated by $as_me.
34389 # Run this file to recreate the current configuration.
34390 # Compiler output produced by configure, useful for debugging
34391 # configure, is in config.log if it exists.
34392
34393 debug=false
34394 ac_cs_recheck=false
34395 ac_cs_silent=false
34396 SHELL=\${CONFIG_SHELL-$SHELL}
34397 _ACEOF
34398
34399 cat >>$CONFIG_STATUS <<\_ACEOF
34400 ## --------------------- ##
34401 ## M4sh Initialization.  ##
34402 ## --------------------- ##
34403
34404 # Be Bourne compatible
34405 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34406   emulate sh
34407   NULLCMD=:
34408   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34409   # is contrary to our usage.  Disable this feature.
34410   alias -g '${1+"$@"}'='"$@"'
34411   setopt NO_GLOB_SUBST
34412 else
34413   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34414 fi
34415 BIN_SH=xpg4; export BIN_SH # for Tru64
34416 DUALCASE=1; export DUALCASE # for MKS sh
34417
34418
34419 # PATH needs CR
34420 # Avoid depending upon Character Ranges.
34421 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34422 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34423 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34424 as_cr_digits='0123456789'
34425 as_cr_alnum=$as_cr_Letters$as_cr_digits
34426
34427 # The user is always right.
34428 if test "${PATH_SEPARATOR+set}" != set; then
34429   echo "#! /bin/sh" >conf$$.sh
34430   echo  "exit 0"   >>conf$$.sh
34431   chmod +x conf$$.sh
34432   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34433     PATH_SEPARATOR=';'
34434   else
34435     PATH_SEPARATOR=:
34436   fi
34437   rm -f conf$$.sh
34438 fi
34439
34440 # Support unset when possible.
34441 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34442   as_unset=unset
34443 else
34444   as_unset=false
34445 fi
34446
34447
34448 # IFS
34449 # We need space, tab and new line, in precisely that order.  Quoting is
34450 # there to prevent editors from complaining about space-tab.
34451 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34452 # splitting by setting IFS to empty value.)
34453 as_nl='
34454 '
34455 IFS=" ""        $as_nl"
34456
34457 # Find who we are.  Look in the path if we contain no directory separator.
34458 case $0 in
34459   *[\\/]* ) as_myself=$0 ;;
34460   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34461 for as_dir in $PATH
34462 do
34463   IFS=$as_save_IFS
34464   test -z "$as_dir" && as_dir=.
34465   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34466 done
34467 IFS=$as_save_IFS
34468
34469      ;;
34470 esac
34471 # We did not find ourselves, most probably we were run as `sh COMMAND'
34472 # in which case we are not to be found in the path.
34473 if test "x$as_myself" = x; then
34474   as_myself=$0
34475 fi
34476 if test ! -f "$as_myself"; then
34477   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34478   { (exit 1); exit 1; }
34479 fi
34480
34481 # Work around bugs in pre-3.0 UWIN ksh.
34482 for as_var in ENV MAIL MAILPATH
34483 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34484 done
34485 PS1='$ '
34486 PS2='> '
34487 PS4='+ '
34488
34489 # NLS nuisances.
34490 for as_var in \
34491   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34492   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34493   LC_TELEPHONE LC_TIME
34494 do
34495   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34496     eval $as_var=C; export $as_var
34497   else
34498     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34499   fi
34500 done
34501
34502 # Required to use basename.
34503 if expr a : '\(a\)' >/dev/null 2>&1 &&
34504    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34505   as_expr=expr
34506 else
34507   as_expr=false
34508 fi
34509
34510 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34511   as_basename=basename
34512 else
34513   as_basename=false
34514 fi
34515
34516
34517 # Name of the executable.
34518 as_me=`$as_basename -- "$0" ||
34519 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34520          X"$0" : 'X\(//\)$' \| \
34521          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34522 echo X/"$0" |
34523     sed '/^.*\/\([^/][^/]*\)\/*$/{
34524             s//\1/
34525             q
34526           }
34527           /^X\/\(\/\/\)$/{
34528             s//\1/
34529             q
34530           }
34531           /^X\/\(\/\).*/{
34532             s//\1/
34533             q
34534           }
34535           s/.*/./; q'`
34536
34537 # CDPATH.
34538 $as_unset CDPATH
34539
34540
34541
34542   as_lineno_1=$LINENO
34543   as_lineno_2=$LINENO
34544   test "x$as_lineno_1" != "x$as_lineno_2" &&
34545   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34546
34547   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34548   # uniformly replaced by the line number.  The first 'sed' inserts a
34549   # line-number line after each line using $LINENO; the second 'sed'
34550   # does the real work.  The second script uses 'N' to pair each
34551   # line-number line with the line containing $LINENO, and appends
34552   # trailing '-' during substitution so that $LINENO is not a special
34553   # case at line end.
34554   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34555   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34556   # E. McMahon (1931-1989) for sed's syntax.  :-)
34557   sed -n '
34558     p
34559     /[$]LINENO/=
34560   ' <$as_myself |
34561     sed '
34562       s/[$]LINENO.*/&-/
34563       t lineno
34564       b
34565       :lineno
34566       N
34567       :loop
34568       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34569       t loop
34570       s/-\n.*//
34571     ' >$as_me.lineno &&
34572   chmod +x "$as_me.lineno" ||
34573     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34574    { (exit 1); exit 1; }; }
34575
34576   # Don't try to exec as it changes $[0], causing all sort of problems
34577   # (the dirname of $[0] is not the place where we might find the
34578   # original and so on.  Autoconf is especially sensitive to this).
34579   . "./$as_me.lineno"
34580   # Exit status is that of the last command.
34581   exit
34582 }
34583
34584
34585 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34586   as_dirname=dirname
34587 else
34588   as_dirname=false
34589 fi
34590
34591 ECHO_C= ECHO_N= ECHO_T=
34592 case `echo -n x` in
34593 -n*)
34594   case `echo 'x\c'` in
34595   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34596   *)   ECHO_C='\c';;
34597   esac;;
34598 *)
34599   ECHO_N='-n';;
34600 esac
34601
34602 if expr a : '\(a\)' >/dev/null 2>&1 &&
34603    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34604   as_expr=expr
34605 else
34606   as_expr=false
34607 fi
34608
34609 rm -f conf$$ conf$$.exe conf$$.file
34610 if test -d conf$$.dir; then
34611   rm -f conf$$.dir/conf$$.file
34612 else
34613   rm -f conf$$.dir
34614   mkdir conf$$.dir
34615 fi
34616 echo >conf$$.file
34617 if ln -s conf$$.file conf$$ 2>/dev/null; then
34618   as_ln_s='ln -s'
34619   # ... but there are two gotchas:
34620   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34621   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34622   # In both cases, we have to default to `cp -p'.
34623   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34624     as_ln_s='cp -p'
34625 elif ln conf$$.file conf$$ 2>/dev/null; then
34626   as_ln_s=ln
34627 else
34628   as_ln_s='cp -p'
34629 fi
34630 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34631 rmdir conf$$.dir 2>/dev/null
34632
34633 if mkdir -p . 2>/dev/null; then
34634   as_mkdir_p=:
34635 else
34636   test -d ./-p && rmdir ./-p
34637   as_mkdir_p=false
34638 fi
34639
34640 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34641 # systems may use methods other than mode bits to determine executability.
34642 cat >conf$$.file <<_ASEOF
34643 #! /bin/sh
34644 exit 0
34645 _ASEOF
34646 chmod +x conf$$.file
34647 if test -x conf$$.file >/dev/null 2>&1; then
34648   as_executable_p="test -x"
34649 else
34650   as_executable_p=:
34651 fi
34652 rm -f conf$$.file
34653
34654 # Sed expression to map a string onto a valid CPP name.
34655 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34656
34657 # Sed expression to map a string onto a valid variable name.
34658 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34659
34660
34661 exec 6>&1
34662
34663 # Save the log message, to keep $[0] and so on meaningful, and to
34664 # report actual input values of CONFIG_FILES etc. instead of their
34665 # values after options handling.
34666 ac_log="
34667 This file was extended by llvm $as_me 2.3svn, which was
34668 generated by GNU Autoconf 2.60.  Invocation command line was
34669
34670   CONFIG_FILES    = $CONFIG_FILES
34671   CONFIG_HEADERS  = $CONFIG_HEADERS
34672   CONFIG_LINKS    = $CONFIG_LINKS
34673   CONFIG_COMMANDS = $CONFIG_COMMANDS
34674   $ $0 $@
34675
34676 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34677 "
34678
34679 _ACEOF
34680
34681 cat >>$CONFIG_STATUS <<_ACEOF
34682 # Files that config.status was made for.
34683 config_files="$ac_config_files"
34684 config_headers="$ac_config_headers"
34685 config_commands="$ac_config_commands"
34686
34687 _ACEOF
34688
34689 cat >>$CONFIG_STATUS <<\_ACEOF
34690 ac_cs_usage="\
34691 \`$as_me' instantiates files from templates according to the
34692 current configuration.
34693
34694 Usage: $0 [OPTIONS] [FILE]...
34695
34696   -h, --help       print this help, then exit
34697   -V, --version    print version number, then exit
34698   -q, --quiet      do not print progress messages
34699   -d, --debug      don't remove temporary files
34700       --recheck    update $as_me by reconfiguring in the same conditions
34701   --file=FILE[:TEMPLATE]
34702                    instantiate the configuration file FILE
34703   --header=FILE[:TEMPLATE]
34704                    instantiate the configuration header FILE
34705
34706 Configuration files:
34707 $config_files
34708
34709 Configuration headers:
34710 $config_headers
34711
34712 Configuration commands:
34713 $config_commands
34714
34715 Report bugs to <bug-autoconf@gnu.org>."
34716
34717 _ACEOF
34718 cat >>$CONFIG_STATUS <<_ACEOF
34719 ac_cs_version="\\
34720 llvm config.status 2.3svn
34721 configured by $0, generated by GNU Autoconf 2.60,
34722   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34723
34724 Copyright (C) 2006 Free Software Foundation, Inc.
34725 This config.status script is free software; the Free Software Foundation
34726 gives unlimited permission to copy, distribute and modify it."
34727
34728 ac_pwd='$ac_pwd'
34729 srcdir='$srcdir'
34730 INSTALL='$INSTALL'
34731 _ACEOF
34732
34733 cat >>$CONFIG_STATUS <<\_ACEOF
34734 # If no file are specified by the user, then we need to provide default
34735 # value.  By we need to know if files were specified by the user.
34736 ac_need_defaults=:
34737 while test $# != 0
34738 do
34739   case $1 in
34740   --*=*)
34741     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34742     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34743     ac_shift=:
34744     ;;
34745   *)
34746     ac_option=$1
34747     ac_optarg=$2
34748     ac_shift=shift
34749     ;;
34750   esac
34751
34752   case $ac_option in
34753   # Handling of the options.
34754   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34755     ac_cs_recheck=: ;;
34756   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34757     echo "$ac_cs_version"; exit ;;
34758   --debug | --debu | --deb | --de | --d | -d )
34759     debug=: ;;
34760   --file | --fil | --fi | --f )
34761     $ac_shift
34762     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34763     ac_need_defaults=false;;
34764   --header | --heade | --head | --hea )
34765     $ac_shift
34766     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34767     ac_need_defaults=false;;
34768   --he | --h)
34769     # Conflict between --help and --header
34770     { echo "$as_me: error: ambiguous option: $1
34771 Try \`$0 --help' for more information." >&2
34772    { (exit 1); exit 1; }; };;
34773   --help | --hel | -h )
34774     echo "$ac_cs_usage"; exit ;;
34775   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34776   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34777     ac_cs_silent=: ;;
34778
34779   # This is an error.
34780   -*) { echo "$as_me: error: unrecognized option: $1
34781 Try \`$0 --help' for more information." >&2
34782    { (exit 1); exit 1; }; } ;;
34783
34784   *) ac_config_targets="$ac_config_targets $1"
34785      ac_need_defaults=false ;;
34786
34787   esac
34788   shift
34789 done
34790
34791 ac_configure_extra_args=
34792
34793 if $ac_cs_silent; then
34794   exec 6>/dev/null
34795   ac_configure_extra_args="$ac_configure_extra_args --silent"
34796 fi
34797
34798 _ACEOF
34799 cat >>$CONFIG_STATUS <<_ACEOF
34800 if \$ac_cs_recheck; then
34801   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34802   CONFIG_SHELL=$SHELL
34803   export CONFIG_SHELL
34804   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34805 fi
34806
34807 _ACEOF
34808 cat >>$CONFIG_STATUS <<\_ACEOF
34809 exec 5>>config.log
34810 {
34811   echo
34812   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34813 ## Running $as_me. ##
34814 _ASBOX
34815   echo "$ac_log"
34816 } >&5
34817
34818 _ACEOF
34819 cat >>$CONFIG_STATUS <<_ACEOF
34820 #
34821 # INIT-COMMANDS
34822 #
34823 llvm_src="${srcdir}"
34824
34825 _ACEOF
34826
34827 cat >>$CONFIG_STATUS <<\_ACEOF
34828
34829 # Handling of arguments.
34830 for ac_config_target in $ac_config_targets
34831 do
34832   case $ac_config_target in
34833     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34834     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34835     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34836     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34837     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34838     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34839     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34840     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34841     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34842     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34843     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34844     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34845     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34846     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34847     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34848     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34849     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34850     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34851     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34852     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34853     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34854     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34855
34856   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34857 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34858    { (exit 1); exit 1; }; };;
34859   esac
34860 done
34861
34862
34863 # If the user did not use the arguments to specify the items to instantiate,
34864 # then the envvar interface is used.  Set only those that are not.
34865 # We use the long form for the default assignment because of an extremely
34866 # bizarre bug on SunOS 4.1.3.
34867 if $ac_need_defaults; then
34868   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34869   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34870   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34871 fi
34872
34873 # Have a temporary directory for convenience.  Make it in the build tree
34874 # simply because there is no reason against having it here, and in addition,
34875 # creating and moving files from /tmp can sometimes cause problems.
34876 # Hook for its removal unless debugging.
34877 # Note that there is a small window in which the directory will not be cleaned:
34878 # after its creation but before its name has been assigned to `$tmp'.
34879 $debug ||
34880 {
34881   tmp=
34882   trap 'exit_status=$?
34883   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34884 ' 0
34885   trap '{ (exit 1); exit 1; }' 1 2 13 15
34886 }
34887 # Create a (secure) tmp directory for tmp files.
34888
34889 {
34890   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34891   test -n "$tmp" && test -d "$tmp"
34892 }  ||
34893 {
34894   tmp=./conf$$-$RANDOM
34895   (umask 077 && mkdir "$tmp")
34896 } ||
34897 {
34898    echo "$me: cannot create a temporary directory in ." >&2
34899    { (exit 1); exit 1; }
34900 }
34901
34902 #
34903 # Set up the sed scripts for CONFIG_FILES section.
34904 #
34905
34906 # No need to generate the scripts if there are no CONFIG_FILES.
34907 # This happens for instance when ./config.status config.h
34908 if test -n "$CONFIG_FILES"; then
34909
34910 _ACEOF
34911
34912
34913
34914 ac_delim='%!_!# '
34915 for ac_last_try in false false false false false :; do
34916   cat >conf$$subs.sed <<_ACEOF
34917 SHELL!$SHELL$ac_delim
34918 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34919 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34920 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34921 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34922 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34923 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34924 exec_prefix!$exec_prefix$ac_delim
34925 prefix!$prefix$ac_delim
34926 program_transform_name!$program_transform_name$ac_delim
34927 bindir!$bindir$ac_delim
34928 sbindir!$sbindir$ac_delim
34929 libexecdir!$libexecdir$ac_delim
34930 datarootdir!$datarootdir$ac_delim
34931 datadir!$datadir$ac_delim
34932 sysconfdir!$sysconfdir$ac_delim
34933 sharedstatedir!$sharedstatedir$ac_delim
34934 localstatedir!$localstatedir$ac_delim
34935 includedir!$includedir$ac_delim
34936 oldincludedir!$oldincludedir$ac_delim
34937 docdir!$docdir$ac_delim
34938 infodir!$infodir$ac_delim
34939 htmldir!$htmldir$ac_delim
34940 dvidir!$dvidir$ac_delim
34941 pdfdir!$pdfdir$ac_delim
34942 psdir!$psdir$ac_delim
34943 libdir!$libdir$ac_delim
34944 localedir!$localedir$ac_delim
34945 mandir!$mandir$ac_delim
34946 DEFS!$DEFS$ac_delim
34947 ECHO_C!$ECHO_C$ac_delim
34948 ECHO_N!$ECHO_N$ac_delim
34949 ECHO_T!$ECHO_T$ac_delim
34950 LIBS!$LIBS$ac_delim
34951 build_alias!$build_alias$ac_delim
34952 host_alias!$host_alias$ac_delim
34953 target_alias!$target_alias$ac_delim
34954 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34955 subdirs!$subdirs$ac_delim
34956 build!$build$ac_delim
34957 build_cpu!$build_cpu$ac_delim
34958 build_vendor!$build_vendor$ac_delim
34959 build_os!$build_os$ac_delim
34960 host!$host$ac_delim
34961 host_cpu!$host_cpu$ac_delim
34962 host_vendor!$host_vendor$ac_delim
34963 host_os!$host_os$ac_delim
34964 target!$target$ac_delim
34965 target_cpu!$target_cpu$ac_delim
34966 target_vendor!$target_vendor$ac_delim
34967 target_os!$target_os$ac_delim
34968 OS!$OS$ac_delim
34969 LINKALL!$LINKALL$ac_delim
34970 NOLINKALL!$NOLINKALL$ac_delim
34971 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34972 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34973 ARCH!$ARCH$ac_delim
34974 ENDIAN!$ENDIAN$ac_delim
34975 CC!$CC$ac_delim
34976 CFLAGS!$CFLAGS$ac_delim
34977 LDFLAGS!$LDFLAGS$ac_delim
34978 CPPFLAGS!$CPPFLAGS$ac_delim
34979 ac_ct_CC!$ac_ct_CC$ac_delim
34980 EXEEXT!$EXEEXT$ac_delim
34981 OBJEXT!$OBJEXT$ac_delim
34982 CPP!$CPP$ac_delim
34983 GREP!$GREP$ac_delim
34984 EGREP!$EGREP$ac_delim
34985 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34986 BUILD_CC!$BUILD_CC$ac_delim
34987 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34988 CVSBUILD!$CVSBUILD$ac_delim
34989 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34990 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34991 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34992 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34993 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34994 JIT!$JIT$ac_delim
34995 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34996 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34997 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34998 ENABLE_PIC!$ENABLE_PIC$ac_delim
34999 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35000 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35001 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35002 CXX!$CXX$ac_delim
35003 CXXFLAGS!$CXXFLAGS$ac_delim
35004 ac_ct_CXX!$ac_ct_CXX$ac_delim
35005 LEX!$LEX$ac_delim
35006 LEXLIB!$LEXLIB$ac_delim
35007 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35008 FLEX!$FLEX$ac_delim
35009 YACC!$YACC$ac_delim
35010 YFLAGS!$YFLAGS$ac_delim
35011 BISON!$BISON$ac_delim
35012 NM!$NM$ac_delim
35013 ifGNUmake!$ifGNUmake$ac_delim
35014 _ACEOF
35015
35016   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35017     break
35018   elif $ac_last_try; then
35019     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35020 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35021    { (exit 1); exit 1; }; }
35022   else
35023     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35024   fi
35025 done
35026
35027 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35028 if test -n "$ac_eof"; then
35029   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35030   ac_eof=`expr $ac_eof + 1`
35031 fi
35032
35033 cat >>$CONFIG_STATUS <<_ACEOF
35034 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35036 _ACEOF
35037 sed '
35038 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35039 s/^/s,@/; s/!/@,|#_!!_#|/
35040 :n
35041 t n
35042 s/'"$ac_delim"'$/,g/; t
35043 s/$/\\/; p
35044 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35045 ' >>$CONFIG_STATUS <conf$$subs.sed
35046 rm -f conf$$subs.sed
35047 cat >>$CONFIG_STATUS <<_ACEOF
35048 CEOF$ac_eof
35049 _ACEOF
35050
35051
35052 ac_delim='%!_!# '
35053 for ac_last_try in false false false false false :; do
35054   cat >conf$$subs.sed <<_ACEOF
35055 LN_S!$LN_S$ac_delim
35056 CMP!$CMP$ac_delim
35057 CP!$CP$ac_delim
35058 DATE!$DATE$ac_delim
35059 FIND!$FIND$ac_delim
35060 MKDIR!$MKDIR$ac_delim
35061 MV!$MV$ac_delim
35062 RANLIB!$RANLIB$ac_delim
35063 RM!$RM$ac_delim
35064 SED!$SED$ac_delim
35065 TAR!$TAR$ac_delim
35066 BINPWD!$BINPWD$ac_delim
35067 GRAPHVIZ!$GRAPHVIZ$ac_delim
35068 DOT!$DOT$ac_delim
35069 GV!$GV$ac_delim
35070 DOTTY!$DOTTY$ac_delim
35071 PERL!$PERL$ac_delim
35072 HAVE_PERL!$HAVE_PERL$ac_delim
35073 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35074 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35075 INSTALL_DATA!$INSTALL_DATA$ac_delim
35076 BZIP2!$BZIP2$ac_delim
35077 DOXYGEN!$DOXYGEN$ac_delim
35078 GROFF!$GROFF$ac_delim
35079 GZIP!$GZIP$ac_delim
35080 POD2HTML!$POD2HTML$ac_delim
35081 POD2MAN!$POD2MAN$ac_delim
35082 RUNTEST!$RUNTEST$ac_delim
35083 TCLSH!$TCLSH$ac_delim
35084 ZIP!$ZIP$ac_delim
35085 OCAMLC!$OCAMLC$ac_delim
35086 OCAMLOPT!$OCAMLOPT$ac_delim
35087 OCAMLDEP!$OCAMLDEP$ac_delim
35088 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35089 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35090 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35091 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35092 LIBADD_DL!$LIBADD_DL$ac_delim
35093 ECHO!$ECHO$ac_delim
35094 AR!$AR$ac_delim
35095 STRIP!$STRIP$ac_delim
35096 CXXCPP!$CXXCPP$ac_delim
35097 F77!$F77$ac_delim
35098 FFLAGS!$FFLAGS$ac_delim
35099 ac_ct_F77!$ac_ct_F77$ac_delim
35100 LIBTOOL!$LIBTOOL$ac_delim
35101 LLVMGCC!$LLVMGCC$ac_delim
35102 LLVMGXX!$LLVMGXX$ac_delim
35103 USE_UDIS86!$USE_UDIS86$ac_delim
35104 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35105 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35106 ALLOCA!$ALLOCA$ac_delim
35107 MMAP_FILE!$MMAP_FILE$ac_delim
35108 LLVMCC1!$LLVMCC1$ac_delim
35109 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35110 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35111 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35112 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35113 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35114 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35115 SHLIBEXT!$SHLIBEXT$ac_delim
35116 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35117 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35118 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35119 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35120 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35121 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35122 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35123 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35124 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35125 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35126 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35127 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35128 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35129 LIBOBJS!$LIBOBJS$ac_delim
35130 LTLIBOBJS!$LTLIBOBJS$ac_delim
35131 _ACEOF
35132
35133   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
35134     break
35135   elif $ac_last_try; then
35136     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35137 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35138    { (exit 1); exit 1; }; }
35139   else
35140     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35141   fi
35142 done
35143
35144 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35145 if test -n "$ac_eof"; then
35146   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35147   ac_eof=`expr $ac_eof + 1`
35148 fi
35149
35150 cat >>$CONFIG_STATUS <<_ACEOF
35151 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35153 _ACEOF
35154 sed '
35155 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35156 s/^/s,@/; s/!/@,|#_!!_#|/
35157 :n
35158 t n
35159 s/'"$ac_delim"'$/,g/; t
35160 s/$/\\/; p
35161 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35162 ' >>$CONFIG_STATUS <conf$$subs.sed
35163 rm -f conf$$subs.sed
35164 cat >>$CONFIG_STATUS <<_ACEOF
35165 :end
35166 s/|#_!!_#|//g
35167 CEOF$ac_eof
35168 _ACEOF
35169
35170
35171 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35172 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35173 # trailing colons and then remove the whole line if VPATH becomes empty
35174 # (actually we leave an empty line to preserve line numbers).
35175 if test "x$srcdir" = x.; then
35176   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35177 s/:*\$(srcdir):*/:/
35178 s/:*\${srcdir}:*/:/
35179 s/:*@srcdir@:*/:/
35180 s/^\([^=]*=[     ]*\):*/\1/
35181 s/:*$//
35182 s/^[^=]*=[       ]*$//
35183 }'
35184 fi
35185
35186 cat >>$CONFIG_STATUS <<\_ACEOF
35187 fi # test -n "$CONFIG_FILES"
35188
35189
35190 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35191 do
35192   case $ac_tag in
35193   :[FHLC]) ac_mode=$ac_tag; continue;;
35194   esac
35195   case $ac_mode$ac_tag in
35196   :[FHL]*:*);;
35197   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35198 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35199    { (exit 1); exit 1; }; };;
35200   :[FH]-) ac_tag=-:-;;
35201   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35202   esac
35203   ac_save_IFS=$IFS
35204   IFS=:
35205   set x $ac_tag
35206   IFS=$ac_save_IFS
35207   shift
35208   ac_file=$1
35209   shift
35210
35211   case $ac_mode in
35212   :L) ac_source=$1;;
35213   :[FH])
35214     ac_file_inputs=
35215     for ac_f
35216     do
35217       case $ac_f in
35218       -) ac_f="$tmp/stdin";;
35219       *) # Look for the file first in the build tree, then in the source tree
35220          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35221          # because $ac_f cannot contain `:'.
35222          test -f "$ac_f" ||
35223            case $ac_f in
35224            [\\/$]*) false;;
35225            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35226            esac ||
35227            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35228 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35229    { (exit 1); exit 1; }; };;
35230       esac
35231       ac_file_inputs="$ac_file_inputs $ac_f"
35232     done
35233
35234     # Let's still pretend it is `configure' which instantiates (i.e., don't
35235     # use $as_me), people would be surprised to read:
35236     #    /* config.h.  Generated by config.status.  */
35237     configure_input="Generated from "`IFS=:
35238           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35239     if test x"$ac_file" != x-; then
35240       configure_input="$ac_file.  $configure_input"
35241       { echo "$as_me:$LINENO: creating $ac_file" >&5
35242 echo "$as_me: creating $ac_file" >&6;}
35243     fi
35244
35245     case $ac_tag in
35246     *:-:* | *:-) cat >"$tmp/stdin";;
35247     esac
35248     ;;
35249   esac
35250
35251   ac_dir=`$as_dirname -- "$ac_file" ||
35252 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35253          X"$ac_file" : 'X\(//\)[^/]' \| \
35254          X"$ac_file" : 'X\(//\)$' \| \
35255          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35256 echo X"$ac_file" |
35257     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35258             s//\1/
35259             q
35260           }
35261           /^X\(\/\/\)[^/].*/{
35262             s//\1/
35263             q
35264           }
35265           /^X\(\/\/\)$/{
35266             s//\1/
35267             q
35268           }
35269           /^X\(\/\).*/{
35270             s//\1/
35271             q
35272           }
35273           s/.*/./; q'`
35274   { as_dir="$ac_dir"
35275   case $as_dir in #(
35276   -*) as_dir=./$as_dir;;
35277   esac
35278   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35279     as_dirs=
35280     while :; do
35281       case $as_dir in #(
35282       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35283       *) as_qdir=$as_dir;;
35284       esac
35285       as_dirs="'$as_qdir' $as_dirs"
35286       as_dir=`$as_dirname -- "$as_dir" ||
35287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35288          X"$as_dir" : 'X\(//\)[^/]' \| \
35289          X"$as_dir" : 'X\(//\)$' \| \
35290          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35291 echo X"$as_dir" |
35292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35293             s//\1/
35294             q
35295           }
35296           /^X\(\/\/\)[^/].*/{
35297             s//\1/
35298             q
35299           }
35300           /^X\(\/\/\)$/{
35301             s//\1/
35302             q
35303           }
35304           /^X\(\/\).*/{
35305             s//\1/
35306             q
35307           }
35308           s/.*/./; q'`
35309       test -d "$as_dir" && break
35310     done
35311     test -z "$as_dirs" || eval "mkdir $as_dirs"
35312   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35313 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35314    { (exit 1); exit 1; }; }; }
35315   ac_builddir=.
35316
35317 case "$ac_dir" in
35318 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35319 *)
35320   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35321   # A ".." for each directory in $ac_dir_suffix.
35322   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35323   case $ac_top_builddir_sub in
35324   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35325   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35326   esac ;;
35327 esac
35328 ac_abs_top_builddir=$ac_pwd
35329 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35330 # for backward compatibility:
35331 ac_top_builddir=$ac_top_build_prefix
35332
35333 case $srcdir in
35334   .)  # We are building in place.
35335     ac_srcdir=.
35336     ac_top_srcdir=$ac_top_builddir_sub
35337     ac_abs_top_srcdir=$ac_pwd ;;
35338   [\\/]* | ?:[\\/]* )  # Absolute name.
35339     ac_srcdir=$srcdir$ac_dir_suffix;
35340     ac_top_srcdir=$srcdir
35341     ac_abs_top_srcdir=$srcdir ;;
35342   *) # Relative name.
35343     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35344     ac_top_srcdir=$ac_top_build_prefix$srcdir
35345     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35346 esac
35347 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35348
35349
35350   case $ac_mode in
35351   :F)
35352   #
35353   # CONFIG_FILE
35354   #
35355
35356   case $INSTALL in
35357   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35358   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35359   esac
35360 _ACEOF
35361
35362 cat >>$CONFIG_STATUS <<\_ACEOF
35363 # If the template does not know about datarootdir, expand it.
35364 # FIXME: This hack should be removed a few years after 2.60.
35365 ac_datarootdir_hack=; ac_datarootdir_seen=
35366
35367 case `sed -n '/datarootdir/ {
35368   p
35369   q
35370 }
35371 /@datadir@/p
35372 /@docdir@/p
35373 /@infodir@/p
35374 /@localedir@/p
35375 /@mandir@/p
35376 ' $ac_file_inputs` in
35377 *datarootdir*) ac_datarootdir_seen=yes;;
35378 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35379   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35380 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35381 _ACEOF
35382 cat >>$CONFIG_STATUS <<_ACEOF
35383   ac_datarootdir_hack='
35384   s&@datadir@&$datadir&g
35385   s&@docdir@&$docdir&g
35386   s&@infodir@&$infodir&g
35387   s&@localedir@&$localedir&g
35388   s&@mandir@&$mandir&g
35389     s&\\\${datarootdir}&$datarootdir&g' ;;
35390 esac
35391 _ACEOF
35392
35393 # Neutralize VPATH when `$srcdir' = `.'.
35394 # Shell code in configure.ac might set extrasub.
35395 # FIXME: do we really want to maintain this feature?
35396 cat >>$CONFIG_STATUS <<_ACEOF
35397   sed "$ac_vpsub
35398 $extrasub
35399 _ACEOF
35400 cat >>$CONFIG_STATUS <<\_ACEOF
35401 :t
35402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35403 s&@configure_input@&$configure_input&;t t
35404 s&@top_builddir@&$ac_top_builddir_sub&;t t
35405 s&@srcdir@&$ac_srcdir&;t t
35406 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35407 s&@top_srcdir@&$ac_top_srcdir&;t t
35408 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35409 s&@builddir@&$ac_builddir&;t t
35410 s&@abs_builddir@&$ac_abs_builddir&;t t
35411 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35412 s&@INSTALL@&$ac_INSTALL&;t t
35413 $ac_datarootdir_hack
35414 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35415
35416 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35417   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35418   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35419   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35420 which seems to be undefined.  Please make sure it is defined." >&5
35421 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35422 which seems to be undefined.  Please make sure it is defined." >&2;}
35423
35424   rm -f "$tmp/stdin"
35425   case $ac_file in
35426   -) cat "$tmp/out"; rm -f "$tmp/out";;
35427   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35428   esac
35429  ;;
35430   :H)
35431   #
35432   # CONFIG_HEADER
35433   #
35434 _ACEOF
35435
35436 # Transform confdefs.h into a sed script `conftest.defines', that
35437 # substitutes the proper values into config.h.in to produce config.h.
35438 rm -f conftest.defines conftest.tail
35439 # First, append a space to every undef/define line, to ease matching.
35440 echo 's/$/ /' >conftest.defines
35441 # Then, protect against being on the right side of a sed subst, or in
35442 # an unquoted here document, in config.status.  If some macros were
35443 # called several times there might be several #defines for the same
35444 # symbol, which is useless.  But do not sort them, since the last
35445 # AC_DEFINE must be honored.
35446 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35447 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35448 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35449 # PARAMS is the parameter list in the macro definition--in most cases, it's
35450 # just an empty string.
35451 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35452 ac_dB='\\)[      (].*,\\1define\\2'
35453 ac_dC=' '
35454 ac_dD=' ,'
35455
35456 uniq confdefs.h |
35457   sed -n '
35458         t rset
35459         :rset
35460         s/^[     ]*#[    ]*define[       ][      ]*//
35461         t ok
35462         d
35463         :ok
35464         s/[\\&,]/\\&/g
35465         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35466         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35467   ' >>conftest.defines
35468
35469 # Remove the space that was appended to ease matching.
35470 # Then replace #undef with comments.  This is necessary, for
35471 # example, in the case of _POSIX_SOURCE, which is predefined and required
35472 # on some systems where configure will not decide to define it.
35473 # (The regexp can be short, since the line contains either #define or #undef.)
35474 echo 's/ $//
35475 s,^[     #]*u.*,/* & */,' >>conftest.defines
35476
35477 # Break up conftest.defines:
35478 ac_max_sed_lines=50
35479
35480 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35481 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35482 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35483 # et cetera.
35484 ac_in='$ac_file_inputs'
35485 ac_out='"$tmp/out1"'
35486 ac_nxt='"$tmp/out2"'
35487
35488 while :
35489 do
35490   # Write a here document:
35491     cat >>$CONFIG_STATUS <<_ACEOF
35492     # First, check the format of the line:
35493     cat >"\$tmp/defines.sed" <<\\CEOF
35494 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35495 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35496 b
35497 :def
35498 _ACEOF
35499   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35500   echo 'CEOF
35501     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35502   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35503   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35504   grep . conftest.tail >/dev/null || break
35505   rm -f conftest.defines
35506   mv conftest.tail conftest.defines
35507 done
35508 rm -f conftest.defines conftest.tail
35509
35510 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35511 cat >>$CONFIG_STATUS <<\_ACEOF
35512   if test x"$ac_file" != x-; then
35513     echo "/* $configure_input  */" >"$tmp/config.h"
35514     cat "$ac_result" >>"$tmp/config.h"
35515     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35516       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35517 echo "$as_me: $ac_file is unchanged" >&6;}
35518     else
35519       rm -f $ac_file
35520       mv "$tmp/config.h" $ac_file
35521     fi
35522   else
35523     echo "/* $configure_input  */"
35524     cat "$ac_result"
35525   fi
35526   rm -f "$tmp/out12"
35527  ;;
35528
35529   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35530 echo "$as_me: executing $ac_file commands" >&6;}
35531  ;;
35532   esac
35533
35534
35535   case $ac_file$ac_mode in
35536     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35537    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35538     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35539    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35540     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35541    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35542     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35543    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35544     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35545    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35546     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35547    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35548     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35549    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35550     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35551    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35552     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35553    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35554     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35555    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35556     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35557    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35558     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35559    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35560
35561   esac
35562 done # for ac_tag
35563
35564
35565 { (exit 0); exit 0; }
35566 _ACEOF
35567 chmod +x $CONFIG_STATUS
35568 ac_clean_files=$ac_clean_files_save
35569
35570
35571 # configure is writing to config.log, and then calls config.status.
35572 # config.status does its own redirection, appending to config.log.
35573 # Unfortunately, on DOS this fails, as config.log is still kept open
35574 # by configure, so config.status won't be able to write to it; its
35575 # output is simply discarded.  So we exec the FD to /dev/null,
35576 # effectively closing config.log, so it can be properly (re)opened and
35577 # appended to by config.status.  When coming back to configure, we
35578 # need to make the FD available again.
35579 if test "$no_create" != yes; then
35580   ac_cs_success=:
35581   ac_config_status_args=
35582   test "$silent" = yes &&
35583     ac_config_status_args="$ac_config_status_args --quiet"
35584   exec 5>/dev/null
35585   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35586   exec 5>>config.log
35587   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35588   # would make configure fail if this is the last instruction.
35589   $ac_cs_success || { (exit 1); exit 1; }
35590 fi
35591
35592 #
35593 # CONFIG_SUBDIRS section.
35594 #
35595 if test "$no_recursion" != yes; then
35596
35597   # Remove --cache-file and --srcdir arguments so they do not pile up.
35598   ac_sub_configure_args=
35599   ac_prev=
35600   eval "set x $ac_configure_args"
35601   shift
35602   for ac_arg
35603   do
35604     if test -n "$ac_prev"; then
35605       ac_prev=
35606       continue
35607     fi
35608     case $ac_arg in
35609     -cache-file | --cache-file | --cache-fil | --cache-fi \
35610     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35611       ac_prev=cache_file ;;
35612     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35613     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35614     | --c=*)
35615       ;;
35616     --config-cache | -C)
35617       ;;
35618     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35619       ac_prev=srcdir ;;
35620     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35621       ;;
35622     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35623       ac_prev=prefix ;;
35624     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35625       ;;
35626     *)
35627       case $ac_arg in
35628       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35629       esac
35630       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35631     esac
35632   done
35633
35634   # Always prepend --prefix to ensure using the same prefix
35635   # in subdir configurations.
35636   ac_arg="--prefix=$prefix"
35637   case $ac_arg in
35638   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35639   esac
35640   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35641
35642   ac_popdir=`pwd`
35643   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35644
35645     # Do not complain, so a configure script can configure whichever
35646     # parts of a large source tree are present.
35647     test -d "$srcdir/$ac_dir" || continue
35648
35649     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35650     echo "$as_me:$LINENO: $ac_msg" >&5
35651     echo "$ac_msg" >&6
35652     { as_dir="$ac_dir"
35653   case $as_dir in #(
35654   -*) as_dir=./$as_dir;;
35655   esac
35656   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35657     as_dirs=
35658     while :; do
35659       case $as_dir in #(
35660       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35661       *) as_qdir=$as_dir;;
35662       esac
35663       as_dirs="'$as_qdir' $as_dirs"
35664       as_dir=`$as_dirname -- "$as_dir" ||
35665 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35666          X"$as_dir" : 'X\(//\)[^/]' \| \
35667          X"$as_dir" : 'X\(//\)$' \| \
35668          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35669 echo X"$as_dir" |
35670     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35671             s//\1/
35672             q
35673           }
35674           /^X\(\/\/\)[^/].*/{
35675             s//\1/
35676             q
35677           }
35678           /^X\(\/\/\)$/{
35679             s//\1/
35680             q
35681           }
35682           /^X\(\/\).*/{
35683             s//\1/
35684             q
35685           }
35686           s/.*/./; q'`
35687       test -d "$as_dir" && break
35688     done
35689     test -z "$as_dirs" || eval "mkdir $as_dirs"
35690   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35691 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35692    { (exit 1); exit 1; }; }; }
35693     ac_builddir=.
35694
35695 case "$ac_dir" in
35696 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35697 *)
35698   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35699   # A ".." for each directory in $ac_dir_suffix.
35700   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35701   case $ac_top_builddir_sub in
35702   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35703   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35704   esac ;;
35705 esac
35706 ac_abs_top_builddir=$ac_pwd
35707 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35708 # for backward compatibility:
35709 ac_top_builddir=$ac_top_build_prefix
35710
35711 case $srcdir in
35712   .)  # We are building in place.
35713     ac_srcdir=.
35714     ac_top_srcdir=$ac_top_builddir_sub
35715     ac_abs_top_srcdir=$ac_pwd ;;
35716   [\\/]* | ?:[\\/]* )  # Absolute name.
35717     ac_srcdir=$srcdir$ac_dir_suffix;
35718     ac_top_srcdir=$srcdir
35719     ac_abs_top_srcdir=$srcdir ;;
35720   *) # Relative name.
35721     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35722     ac_top_srcdir=$ac_top_build_prefix$srcdir
35723     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35724 esac
35725 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35726
35727
35728     cd "$ac_dir"
35729
35730     # Check for guested configure; otherwise get Cygnus style configure.
35731     if test -f "$ac_srcdir/configure.gnu"; then
35732       ac_sub_configure=$ac_srcdir/configure.gnu
35733     elif test -f "$ac_srcdir/configure"; then
35734       ac_sub_configure=$ac_srcdir/configure
35735     elif test -f "$ac_srcdir/configure.in"; then
35736       # This should be Cygnus configure.
35737       ac_sub_configure=$ac_aux_dir/configure
35738     else
35739       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35740 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35741       ac_sub_configure=
35742     fi
35743
35744     # The recursion is here.
35745     if test -n "$ac_sub_configure"; then
35746       # Make the cache file name correct relative to the subdirectory.
35747       case $cache_file in
35748       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35749       *) # Relative name.
35750         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35751       esac
35752
35753       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35754 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35755       # The eval makes quoting arguments work.
35756       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35757            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35758         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35759 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35760    { (exit 1); exit 1; }; }
35761     fi
35762
35763     cd "$ac_popdir"
35764   done
35765 fi
35766