Commit the new DeadArgElim pass again, this time with the gcc bootstrap failures...
[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.4svn.
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.4svn'
719 PACKAGE_STRING='llvm 2.4svn'
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 OCAMLDOC
890 INSTALL_LTDL_TRUE
891 INSTALL_LTDL_FALSE
892 CONVENIENCE_LTDL_TRUE
893 CONVENIENCE_LTDL_FALSE
894 LIBADD_DL
895 ECHO
896 AR
897 STRIP
898 CXXCPP
899 F77
900 FFLAGS
901 ac_ct_F77
902 LIBTOOL
903 LLVMGCC
904 LLVMGXX
905 USE_UDIS86
906 HAVE_PTHREAD
907 HUGE_VAL_SANITY
908 ALLOCA
909 MMAP_FILE
910 LLVMCC1
911 LLVMCC1PLUS
912 LLVMGCCDIR
913 LLVMGCCLIBEXEC
914 LLVMGCC_VERSION
915 LLVMGCC_MAJVERS
916 LLVMGCC_LANGS
917 SHLIBEXT
918 LLVM_PREFIX
919 LLVM_BINDIR
920 LLVM_LIBDIR
921 LLVM_DATADIR
922 LLVM_DOCSDIR
923 LLVM_ETCDIR
924 LLVM_INCLUDEDIR
925 LLVM_INFODIR
926 LLVM_MANDIR
927 LLVM_CONFIGTIME
928 BINDINGS_TO_BUILD
929 ALL_BINDINGS
930 OCAML_LIBDIR
931 LIBOBJS
932 LTLIBOBJS'
933 ac_subst_files=''
934       ac_precious_vars='build_alias
935 host_alias
936 target_alias
937 CC
938 CFLAGS
939 LDFLAGS
940 CPPFLAGS
941 CPP
942 CXX
943 CXXFLAGS
944 CCC
945 YACC
946 YFLAGS
947 CXXCPP
948 F77
949 FFLAGS'
950 ac_subdirs_all='projects/sample
951 projects/privbracket
952 projects/llvm-stacker
953 projects/llvm-test
954 projects/test-suite
955 projects/llvm-reopt
956 projects/llvm-gcc
957 projects/llvm-java
958 projects/llvm-tv
959 projects/llvm-poolalloc
960 projects/poolalloc
961 projects/llvm-kernel'
962
963 # Initialize some variables set by options.
964 ac_init_help=
965 ac_init_version=false
966 # The variables have the same names as the options, with
967 # dashes changed to underlines.
968 cache_file=/dev/null
969 exec_prefix=NONE
970 no_create=
971 no_recursion=
972 prefix=NONE
973 program_prefix=NONE
974 program_suffix=NONE
975 program_transform_name=s,x,x,
976 silent=
977 site=
978 srcdir=
979 verbose=
980 x_includes=NONE
981 x_libraries=NONE
982
983 # Installation directory options.
984 # These are left unexpanded so users can "make install exec_prefix=/foo"
985 # and all the variables that are supposed to be based on exec_prefix
986 # by default will actually change.
987 # Use braces instead of parens because sh, perl, etc. also accept them.
988 # (The list follows the same order as the GNU Coding Standards.)
989 bindir='${exec_prefix}/bin'
990 sbindir='${exec_prefix}/sbin'
991 libexecdir='${exec_prefix}/libexec'
992 datarootdir='${prefix}/share'
993 datadir='${datarootdir}'
994 sysconfdir='${prefix}/etc'
995 sharedstatedir='${prefix}/com'
996 localstatedir='${prefix}/var'
997 includedir='${prefix}/include'
998 oldincludedir='/usr/include'
999 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000 infodir='${datarootdir}/info'
1001 htmldir='${docdir}'
1002 dvidir='${docdir}'
1003 pdfdir='${docdir}'
1004 psdir='${docdir}'
1005 libdir='${exec_prefix}/lib'
1006 localedir='${datarootdir}/locale'
1007 mandir='${datarootdir}/man'
1008
1009 ac_prev=
1010 ac_dashdash=
1011 for ac_option
1012 do
1013   # If the previous option needs an argument, assign it.
1014   if test -n "$ac_prev"; then
1015     eval $ac_prev=\$ac_option
1016     ac_prev=
1017     continue
1018   fi
1019
1020   case $ac_option in
1021   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022   *)    ac_optarg=yes ;;
1023   esac
1024
1025   # Accept the important Cygnus configure options, so we can diagnose typos.
1026
1027   case $ac_dashdash$ac_option in
1028   --)
1029     ac_dashdash=yes ;;
1030
1031   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032     ac_prev=bindir ;;
1033   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034     bindir=$ac_optarg ;;
1035
1036   -build | --build | --buil | --bui | --bu)
1037     ac_prev=build_alias ;;
1038   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039     build_alias=$ac_optarg ;;
1040
1041   -cache-file | --cache-file | --cache-fil | --cache-fi \
1042   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043     ac_prev=cache_file ;;
1044   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046     cache_file=$ac_optarg ;;
1047
1048   --config-cache | -C)
1049     cache_file=config.cache ;;
1050
1051   -datadir | --datadir | --datadi | --datad)
1052     ac_prev=datadir ;;
1053   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054     datadir=$ac_optarg ;;
1055
1056   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057   | --dataroo | --dataro | --datar)
1058     ac_prev=datarootdir ;;
1059   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061     datarootdir=$ac_optarg ;;
1062
1063   -disable-* | --disable-*)
1064     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065     # Reject names that are not valid shell variable names.
1066     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1067       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068    { (exit 1); exit 1; }; }
1069     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1070     eval enable_$ac_feature=no ;;
1071
1072   -docdir | --docdir | --docdi | --doc | --do)
1073     ac_prev=docdir ;;
1074   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075     docdir=$ac_optarg ;;
1076
1077   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078     ac_prev=dvidir ;;
1079   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080     dvidir=$ac_optarg ;;
1081
1082   -enable-* | --enable-*)
1083     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084     # Reject names that are not valid shell variable names.
1085     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1086       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087    { (exit 1); exit 1; }; }
1088     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1089     eval enable_$ac_feature=\$ac_optarg ;;
1090
1091   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093   | --exec | --exe | --ex)
1094     ac_prev=exec_prefix ;;
1095   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097   | --exec=* | --exe=* | --ex=*)
1098     exec_prefix=$ac_optarg ;;
1099
1100   -gas | --gas | --ga | --g)
1101     # Obsolete; use --with-gas.
1102     with_gas=yes ;;
1103
1104   -help | --help | --hel | --he | -h)
1105     ac_init_help=long ;;
1106   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107     ac_init_help=recursive ;;
1108   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109     ac_init_help=short ;;
1110
1111   -host | --host | --hos | --ho)
1112     ac_prev=host_alias ;;
1113   -host=* | --host=* | --hos=* | --ho=*)
1114     host_alias=$ac_optarg ;;
1115
1116   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117     ac_prev=htmldir ;;
1118   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119   | --ht=*)
1120     htmldir=$ac_optarg ;;
1121
1122   -includedir | --includedir | --includedi | --included | --include \
1123   | --includ | --inclu | --incl | --inc)
1124     ac_prev=includedir ;;
1125   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126   | --includ=* | --inclu=* | --incl=* | --inc=*)
1127     includedir=$ac_optarg ;;
1128
1129   -infodir | --infodir | --infodi | --infod | --info | --inf)
1130     ac_prev=infodir ;;
1131   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132     infodir=$ac_optarg ;;
1133
1134   -libdir | --libdir | --libdi | --libd)
1135     ac_prev=libdir ;;
1136   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137     libdir=$ac_optarg ;;
1138
1139   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140   | --libexe | --libex | --libe)
1141     ac_prev=libexecdir ;;
1142   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143   | --libexe=* | --libex=* | --libe=*)
1144     libexecdir=$ac_optarg ;;
1145
1146   -localedir | --localedir | --localedi | --localed | --locale)
1147     ac_prev=localedir ;;
1148   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149     localedir=$ac_optarg ;;
1150
1151   -localstatedir | --localstatedir | --localstatedi | --localstated \
1152   | --localstate | --localstat | --localsta | --localst | --locals)
1153     ac_prev=localstatedir ;;
1154   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156     localstatedir=$ac_optarg ;;
1157
1158   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159     ac_prev=mandir ;;
1160   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161     mandir=$ac_optarg ;;
1162
1163   -nfp | --nfp | --nf)
1164     # Obsolete; use --without-fp.
1165     with_fp=no ;;
1166
1167   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168   | --no-cr | --no-c | -n)
1169     no_create=yes ;;
1170
1171   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173     no_recursion=yes ;;
1174
1175   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177   | --oldin | --oldi | --old | --ol | --o)
1178     ac_prev=oldincludedir ;;
1179   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182     oldincludedir=$ac_optarg ;;
1183
1184   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185     ac_prev=prefix ;;
1186   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187     prefix=$ac_optarg ;;
1188
1189   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190   | --program-pre | --program-pr | --program-p)
1191     ac_prev=program_prefix ;;
1192   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194     program_prefix=$ac_optarg ;;
1195
1196   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197   | --program-suf | --program-su | --program-s)
1198     ac_prev=program_suffix ;;
1199   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201     program_suffix=$ac_optarg ;;
1202
1203   -program-transform-name | --program-transform-name \
1204   | --program-transform-nam | --program-transform-na \
1205   | --program-transform-n | --program-transform- \
1206   | --program-transform | --program-transfor \
1207   | --program-transfo | --program-transf \
1208   | --program-trans | --program-tran \
1209   | --progr-tra | --program-tr | --program-t)
1210     ac_prev=program_transform_name ;;
1211   -program-transform-name=* | --program-transform-name=* \
1212   | --program-transform-nam=* | --program-transform-na=* \
1213   | --program-transform-n=* | --program-transform-=* \
1214   | --program-transform=* | --program-transfor=* \
1215   | --program-transfo=* | --program-transf=* \
1216   | --program-trans=* | --program-tran=* \
1217   | --progr-tra=* | --program-tr=* | --program-t=*)
1218     program_transform_name=$ac_optarg ;;
1219
1220   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221     ac_prev=pdfdir ;;
1222   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223     pdfdir=$ac_optarg ;;
1224
1225   -psdir | --psdir | --psdi | --psd | --ps)
1226     ac_prev=psdir ;;
1227   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228     psdir=$ac_optarg ;;
1229
1230   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231   | -silent | --silent | --silen | --sile | --sil)
1232     silent=yes ;;
1233
1234   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235     ac_prev=sbindir ;;
1236   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237   | --sbi=* | --sb=*)
1238     sbindir=$ac_optarg ;;
1239
1240   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242   | --sharedst | --shareds | --shared | --share | --shar \
1243   | --sha | --sh)
1244     ac_prev=sharedstatedir ;;
1245   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248   | --sha=* | --sh=*)
1249     sharedstatedir=$ac_optarg ;;
1250
1251   -site | --site | --sit)
1252     ac_prev=site ;;
1253   -site=* | --site=* | --sit=*)
1254     site=$ac_optarg ;;
1255
1256   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257     ac_prev=srcdir ;;
1258   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259     srcdir=$ac_optarg ;;
1260
1261   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262   | --syscon | --sysco | --sysc | --sys | --sy)
1263     ac_prev=sysconfdir ;;
1264   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266     sysconfdir=$ac_optarg ;;
1267
1268   -target | --target | --targe | --targ | --tar | --ta | --t)
1269     ac_prev=target_alias ;;
1270   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271     target_alias=$ac_optarg ;;
1272
1273   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274     verbose=yes ;;
1275
1276   -version | --version | --versio | --versi | --vers | -V)
1277     ac_init_version=: ;;
1278
1279   -with-* | --with-*)
1280     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281     # Reject names that are not valid shell variable names.
1282     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1283       { echo "$as_me: error: invalid package name: $ac_package" >&2
1284    { (exit 1); exit 1; }; }
1285     ac_package=`echo $ac_package| sed 's/-/_/g'`
1286     eval with_$ac_package=\$ac_optarg ;;
1287
1288   -without-* | --without-*)
1289     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290     # Reject names that are not valid shell variable names.
1291     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1292       { echo "$as_me: error: invalid package name: $ac_package" >&2
1293    { (exit 1); exit 1; }; }
1294     ac_package=`echo $ac_package | sed 's/-/_/g'`
1295     eval with_$ac_package=no ;;
1296
1297   --x)
1298     # Obsolete; use --with-x.
1299     with_x=yes ;;
1300
1301   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302   | --x-incl | --x-inc | --x-in | --x-i)
1303     ac_prev=x_includes ;;
1304   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306     x_includes=$ac_optarg ;;
1307
1308   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310     ac_prev=x_libraries ;;
1311   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313     x_libraries=$ac_optarg ;;
1314
1315   -*) { echo "$as_me: error: unrecognized option: $ac_option
1316 Try \`$0 --help' for more information." >&2
1317    { (exit 1); exit 1; }; }
1318     ;;
1319
1320   *=*)
1321     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322     # Reject names that are not valid shell variable names.
1323     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1324       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1325    { (exit 1); exit 1; }; }
1326     eval $ac_envvar=\$ac_optarg
1327     export $ac_envvar ;;
1328
1329   *)
1330     # FIXME: should be removed in autoconf 3.0.
1331     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1335     ;;
1336
1337   esac
1338 done
1339
1340 if test -n "$ac_prev"; then
1341   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342   { echo "$as_me: error: missing argument to $ac_option" >&2
1343    { (exit 1); exit 1; }; }
1344 fi
1345
1346 # Be sure to have absolute directory names.
1347 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348                 datadir sysconfdir sharedstatedir localstatedir includedir \
1349                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350                 libdir localedir mandir
1351 do
1352   eval ac_val=\$$ac_var
1353   case $ac_val in
1354     [\\/$]* | ?:[\\/]* )  continue;;
1355     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356   esac
1357   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1358    { (exit 1); exit 1; }; }
1359 done
1360
1361 # There might be people who depend on the old broken behavior: `$host'
1362 # used to hold the argument of --host etc.
1363 # FIXME: To remove some day.
1364 build=$build_alias
1365 host=$host_alias
1366 target=$target_alias
1367
1368 # FIXME: To remove some day.
1369 if test "x$host_alias" != x; then
1370   if test "x$build_alias" = x; then
1371     cross_compiling=maybe
1372     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373     If a cross compiler is detected then cross compile mode will be used." >&2
1374   elif test "x$build_alias" != "x$host_alias"; then
1375     cross_compiling=yes
1376   fi
1377 fi
1378
1379 ac_tool_prefix=
1380 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382 test "$silent" = yes && exec 6>/dev/null
1383
1384
1385 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di=`ls -di .` &&
1387 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388   { echo "$as_me: error: Working directory cannot be determined" >&2
1389    { (exit 1); exit 1; }; }
1390 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391   { echo "$as_me: error: pwd does not report name of working directory" >&2
1392    { (exit 1); exit 1; }; }
1393
1394
1395 # Find the source files, if location was not specified.
1396 if test -z "$srcdir"; then
1397   ac_srcdir_defaulted=yes
1398   # Try the directory containing this script, then the parent directory.
1399   ac_confdir=`$as_dirname -- "$0" ||
1400 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401          X"$0" : 'X\(//\)[^/]' \| \
1402          X"$0" : 'X\(//\)$' \| \
1403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1404 echo X"$0" |
1405     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406             s//\1/
1407             q
1408           }
1409           /^X\(\/\/\)[^/].*/{
1410             s//\1/
1411             q
1412           }
1413           /^X\(\/\/\)$/{
1414             s//\1/
1415             q
1416           }
1417           /^X\(\/\).*/{
1418             s//\1/
1419             q
1420           }
1421           s/.*/./; q'`
1422   srcdir=$ac_confdir
1423   if test ! -r "$srcdir/$ac_unique_file"; then
1424     srcdir=..
1425   fi
1426 else
1427   ac_srcdir_defaulted=no
1428 fi
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1430   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1432    { (exit 1); exit 1; }; }
1433 fi
1434 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435 ac_abs_confdir=`(
1436         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1437    { (exit 1); exit 1; }; }
1438         pwd)`
1439 # When building in place, set srcdir=.
1440 if test "$ac_abs_confdir" = "$ac_pwd"; then
1441   srcdir=.
1442 fi
1443 # Remove unnecessary trailing slashes from srcdir.
1444 # Double slashes in file names in object file debugging info
1445 # mess up M-x gdb in Emacs.
1446 case $srcdir in
1447 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 esac
1449 for ac_var in $ac_precious_vars; do
1450   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451   eval ac_env_${ac_var}_value=\$${ac_var}
1452   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 done
1455
1456 #
1457 # Report the --help message.
1458 #
1459 if test "$ac_init_help" = "long"; then
1460   # Omit some internal or obsolete options to make the list less imposing.
1461   # This message is too long to be a string in the A/UX 3.1 sh.
1462   cat <<_ACEOF
1463 \`configure' configures llvm 2.4svn to adapt to many kinds of systems.
1464
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE.  See below for descriptions of some of the useful variables.
1469
1470 Defaults for the options are specified in brackets.
1471
1472 Configuration:
1473   -h, --help              display this help and exit
1474       --help=short        display options specific to this package
1475       --help=recursive    display the short help of all the included packages
1476   -V, --version           display version information and exit
1477   -q, --quiet, --silent   do not print \`checking...' messages
1478       --cache-file=FILE   cache test results in FILE [disabled]
1479   -C, --config-cache      alias for \`--cache-file=config.cache'
1480   -n, --no-create         do not create output files
1481       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1482
1483 Installation directories:
1484   --prefix=PREFIX         install architecture-independent files in PREFIX
1485                           [$ac_default_prefix]
1486   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1487                           [PREFIX]
1488
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1493
1494 For better control, use the options below.
1495
1496 Fine tuning of the installation directories:
1497   --bindir=DIR           user executables [EPREFIX/bin]
1498   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1499   --libexecdir=DIR       program executables [EPREFIX/libexec]
1500   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1501   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1502   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1503   --libdir=DIR           object code libraries [EPREFIX/lib]
1504   --includedir=DIR       C header files [PREFIX/include]
1505   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1506   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1507   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1508   --infodir=DIR          info documentation [DATAROOTDIR/info]
1509   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1510   --mandir=DIR           man documentation [DATAROOTDIR/man]
1511   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1512   --htmldir=DIR          html documentation [DOCDIR]
1513   --dvidir=DIR           dvi documentation [DOCDIR]
1514   --pdfdir=DIR           pdf documentation [DOCDIR]
1515   --psdir=DIR            ps documentation [DOCDIR]
1516 _ACEOF
1517
1518   cat <<\_ACEOF
1519
1520 System types:
1521   --build=BUILD     configure for building on BUILD [guessed]
1522   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1523   --target=TARGET   configure for building compilers for TARGET [HOST]
1524 _ACEOF
1525 fi
1526
1527 if test -n "$ac_init_help"; then
1528   case $ac_init_help in
1529      short | recursive ) echo "Configuration of llvm 2.4svn:";;
1530    esac
1531   cat <<\_ACEOF
1532
1533 Optional Features:
1534   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1535   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1536   --enable-optimized
1537   --enable-assertions
1538   --enable-expensive-checks
1539
1540   --enable-debug-runtime
1541   --enable-jit            Enable Just In Time Compiling (default is YES)
1542   --enable-doxygen        Build doxygen documentation (default is NO)
1543   --enable-threads        Use threads if available (default is YES)
1544   --enable-pic            Build LLVM with Position Independent Code (default
1545                           is NO)
1546   --enable-targets        Build specific host targets:
1547                           all,host-only,{target-name} (default=all)
1548   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1549                           %a (default is YES)
1550   --enable-bindings       Build specific language bindings:
1551                           all,auto,none,{binding-name} (default=auto)
1552   --enable-ltdl-install   install libltdl
1553   --enable-shared[=PKGS]  build shared libraries
1554                           [default=yes]
1555   --enable-static[=PKGS]  build static libraries
1556                           [default=yes]
1557   --enable-fast-install[=PKGS]
1558                           optimize for fast installation
1559                           [default=yes]
1560   --disable-libtool-lock  avoid locking (might break parallel builds)
1561
1562 Optional Packages:
1563   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1564   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1565   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1566                           searches PATH)
1567   --with-llvmgcc          Specify location of llvm-gcc driver (default
1568                           searches PATH)
1569   --with-llvmgxx          Specify location of llvm-g++ driver (default
1570                           searches PATH)
1571   --with-extra-options    Specify addtional options to compile LLVM with
1572   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1573                           is stdlib)
1574   --with-tclinclude       directory where tcl headers are
1575   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1576   --with-pic              try to use only PIC/non-PIC objects [default=use
1577                           both]
1578   --with-tags[=TAGS]      include additional configurations [automatic]
1579   --with-udis86=<path>    Use udis86 external x86 disassembler library
1580
1581 Some influential environment variables:
1582   CC          C compiler command
1583   CFLAGS      C compiler flags
1584   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1585               nonstandard directory <lib dir>
1586   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587               you have headers in a nonstandard directory <include dir>
1588   CPP         C preprocessor
1589   CXX         C++ compiler command
1590   CXXFLAGS    C++ compiler flags
1591   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1592               the first program found out of: `bison -y', `byacc', `yacc'.
1593   YFLAGS      The list of arguments that will be passed by default to $YACC.
1594               This script will default YFLAGS to the empty string to avoid a
1595               default value of `-d' given by some make applications.
1596   CXXCPP      C++ preprocessor
1597   F77         Fortran 77 compiler command
1598   FFLAGS      Fortran 77 compiler flags
1599
1600 Use these variables to override the choices made by `configure' or to help
1601 it to find libraries and programs with nonstandard names/locations.
1602
1603 Report bugs to <llvmbugs@cs.uiuc.edu>.
1604 _ACEOF
1605 ac_status=$?
1606 fi
1607
1608 if test "$ac_init_help" = "recursive"; then
1609   # If there are subdirs, report their specific --help.
1610   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1611     test -d "$ac_dir" || continue
1612     ac_builddir=.
1613
1614 case "$ac_dir" in
1615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *)
1617   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1618   # A ".." for each directory in $ac_dir_suffix.
1619   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1620   case $ac_top_builddir_sub in
1621   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623   esac ;;
1624 esac
1625 ac_abs_top_builddir=$ac_pwd
1626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627 # for backward compatibility:
1628 ac_top_builddir=$ac_top_build_prefix
1629
1630 case $srcdir in
1631   .)  # We are building in place.
1632     ac_srcdir=.
1633     ac_top_srcdir=$ac_top_builddir_sub
1634     ac_abs_top_srcdir=$ac_pwd ;;
1635   [\\/]* | ?:[\\/]* )  # Absolute name.
1636     ac_srcdir=$srcdir$ac_dir_suffix;
1637     ac_top_srcdir=$srcdir
1638     ac_abs_top_srcdir=$srcdir ;;
1639   *) # Relative name.
1640     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641     ac_top_srcdir=$ac_top_build_prefix$srcdir
1642     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643 esac
1644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645
1646     cd "$ac_dir" || { ac_status=$?; continue; }
1647     # Check for guested configure.
1648     if test -f "$ac_srcdir/configure.gnu"; then
1649       echo &&
1650       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651     elif test -f "$ac_srcdir/configure"; then
1652       echo &&
1653       $SHELL "$ac_srcdir/configure" --help=recursive
1654     else
1655       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656     fi || ac_status=$?
1657     cd "$ac_pwd" || { ac_status=$?; break; }
1658   done
1659 fi
1660
1661 test -n "$ac_init_help" && exit $ac_status
1662 if $ac_init_version; then
1663   cat <<\_ACEOF
1664 llvm configure 2.4svn
1665 generated by GNU Autoconf 2.60
1666
1667 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1668 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1669 This configure script is free software; the Free Software Foundation
1670 gives unlimited permission to copy, distribute and modify it.
1671
1672 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1673 _ACEOF
1674   exit
1675 fi
1676 cat >config.log <<_ACEOF
1677 This file contains any messages produced by compilers while
1678 running configure, to aid debugging if configure makes a mistake.
1679
1680 It was created by llvm $as_me 2.4svn, which was
1681 generated by GNU Autoconf 2.60.  Invocation command line was
1682
1683   $ $0 $@
1684
1685 _ACEOF
1686 exec 5>>config.log
1687 {
1688 cat <<_ASUNAME
1689 ## --------- ##
1690 ## Platform. ##
1691 ## --------- ##
1692
1693 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1694 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1695 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1696 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1697 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1698
1699 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1700 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1701
1702 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1703 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1704 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1705 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1706 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1707 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1708 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1709
1710 _ASUNAME
1711
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1714 do
1715   IFS=$as_save_IFS
1716   test -z "$as_dir" && as_dir=.
1717   echo "PATH: $as_dir"
1718 done
1719 IFS=$as_save_IFS
1720
1721 } >&5
1722
1723 cat >&5 <<_ACEOF
1724
1725
1726 ## ----------- ##
1727 ## Core tests. ##
1728 ## ----------- ##
1729
1730 _ACEOF
1731
1732
1733 # Keep a trace of the command line.
1734 # Strip out --no-create and --no-recursion so they do not pile up.
1735 # Strip out --silent because we don't want to record it for future runs.
1736 # Also quote any args containing shell meta-characters.
1737 # Make two passes to allow for proper duplicate-argument suppression.
1738 ac_configure_args=
1739 ac_configure_args0=
1740 ac_configure_args1=
1741 ac_must_keep_next=false
1742 for ac_pass in 1 2
1743 do
1744   for ac_arg
1745   do
1746     case $ac_arg in
1747     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1748     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1749     | -silent | --silent | --silen | --sile | --sil)
1750       continue ;;
1751     *\'*)
1752       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1753     esac
1754     case $ac_pass in
1755     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1756     2)
1757       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1758       if test $ac_must_keep_next = true; then
1759         ac_must_keep_next=false # Got value, back to normal.
1760       else
1761         case $ac_arg in
1762           *=* | --config-cache | -C | -disable-* | --disable-* \
1763           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1764           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1765           | -with-* | --with-* | -without-* | --without-* | --x)
1766             case "$ac_configure_args0 " in
1767               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1768             esac
1769             ;;
1770           -* ) ac_must_keep_next=true ;;
1771         esac
1772       fi
1773       ac_configure_args="$ac_configure_args '$ac_arg'"
1774       ;;
1775     esac
1776   done
1777 done
1778 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1779 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1780
1781 # When interrupted or exit'd, cleanup temporary files, and complete
1782 # config.log.  We remove comments because anyway the quotes in there
1783 # would cause problems or look ugly.
1784 # WARNING: Use '\'' to represent an apostrophe within the trap.
1785 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1786 trap 'exit_status=$?
1787   # Save into config.log some information that might help in debugging.
1788   {
1789     echo
1790
1791     cat <<\_ASBOX
1792 ## ---------------- ##
1793 ## Cache variables. ##
1794 ## ---------------- ##
1795 _ASBOX
1796     echo
1797     # The following way of writing the cache mishandles newlines in values,
1798 (
1799   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1800     eval ac_val=\$$ac_var
1801     case $ac_val in #(
1802     *${as_nl}*)
1803       case $ac_var in #(
1804       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1805 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1806       esac
1807       case $ac_var in #(
1808       _ | IFS | as_nl) ;; #(
1809       *) $as_unset $ac_var ;;
1810       esac ;;
1811     esac
1812   done
1813   (set) 2>&1 |
1814     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1815     *${as_nl}ac_space=\ *)
1816       sed -n \
1817         "s/'\''/'\''\\\\'\'''\''/g;
1818           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1819       ;; #(
1820     *)
1821       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1822       ;;
1823     esac |
1824     sort
1825 )
1826     echo
1827
1828     cat <<\_ASBOX
1829 ## ----------------- ##
1830 ## Output variables. ##
1831 ## ----------------- ##
1832 _ASBOX
1833     echo
1834     for ac_var in $ac_subst_vars
1835     do
1836       eval ac_val=\$$ac_var
1837       case $ac_val in
1838       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1839       esac
1840       echo "$ac_var='\''$ac_val'\''"
1841     done | sort
1842     echo
1843
1844     if test -n "$ac_subst_files"; then
1845       cat <<\_ASBOX
1846 ## ------------------- ##
1847 ## File substitutions. ##
1848 ## ------------------- ##
1849 _ASBOX
1850       echo
1851       for ac_var in $ac_subst_files
1852       do
1853         eval ac_val=\$$ac_var
1854         case $ac_val in
1855         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856         esac
1857         echo "$ac_var='\''$ac_val'\''"
1858       done | sort
1859       echo
1860     fi
1861
1862     if test -s confdefs.h; then
1863       cat <<\_ASBOX
1864 ## ----------- ##
1865 ## confdefs.h. ##
1866 ## ----------- ##
1867 _ASBOX
1868       echo
1869       cat confdefs.h
1870       echo
1871     fi
1872     test "$ac_signal" != 0 &&
1873       echo "$as_me: caught signal $ac_signal"
1874     echo "$as_me: exit $exit_status"
1875   } >&5
1876   rm -f core *.core core.conftest.* &&
1877     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1878     exit $exit_status
1879 ' 0
1880 for ac_signal in 1 2 13 15; do
1881   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1882 done
1883 ac_signal=0
1884
1885 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1886 rm -f -r conftest* confdefs.h
1887
1888 # Predefined preprocessor variables.
1889
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_NAME "$PACKAGE_NAME"
1892 _ACEOF
1893
1894
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1897 _ACEOF
1898
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1902 _ACEOF
1903
1904
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_STRING "$PACKAGE_STRING"
1907 _ACEOF
1908
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1912 _ACEOF
1913
1914
1915 # Let the site file select an alternate cache file if it wants to.
1916 # Prefer explicitly selected file to automatically selected ones.
1917 if test -n "$CONFIG_SITE"; then
1918   set x "$CONFIG_SITE"
1919 elif test "x$prefix" != xNONE; then
1920   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1921 else
1922   set x "$ac_default_prefix/share/config.site" \
1923         "$ac_default_prefix/etc/config.site"
1924 fi
1925 shift
1926 for ac_site_file
1927 do
1928   if test -r "$ac_site_file"; then
1929     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1930 echo "$as_me: loading site script $ac_site_file" >&6;}
1931     sed 's/^/| /' "$ac_site_file" >&5
1932     . "$ac_site_file"
1933   fi
1934 done
1935
1936 if test -r "$cache_file"; then
1937   # Some versions of bash will fail to source /dev/null (special
1938   # files actually), so we avoid doing that.
1939   if test -f "$cache_file"; then
1940     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1941 echo "$as_me: loading cache $cache_file" >&6;}
1942     case $cache_file in
1943       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1944       *)                      . "./$cache_file";;
1945     esac
1946   fi
1947 else
1948   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1949 echo "$as_me: creating cache $cache_file" >&6;}
1950   >$cache_file
1951 fi
1952
1953 # Check that the precious variables saved in the cache have kept the same
1954 # value.
1955 ac_cache_corrupted=false
1956 for ac_var in $ac_precious_vars; do
1957   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1958   eval ac_new_set=\$ac_env_${ac_var}_set
1959   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1960   eval ac_new_val=\$ac_env_${ac_var}_value
1961   case $ac_old_set,$ac_new_set in
1962     set,)
1963       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1964 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1965       ac_cache_corrupted=: ;;
1966     ,set)
1967       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1968 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1969       ac_cache_corrupted=: ;;
1970     ,);;
1971     *)
1972       if test "x$ac_old_val" != "x$ac_new_val"; then
1973         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1974 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1975         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1976 echo "$as_me:   former value:  $ac_old_val" >&2;}
1977         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1978 echo "$as_me:   current value: $ac_new_val" >&2;}
1979         ac_cache_corrupted=:
1980       fi;;
1981   esac
1982   # Pass precious variables to config.status.
1983   if test "$ac_new_set" = set; then
1984     case $ac_new_val in
1985     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1986     *) ac_arg=$ac_var=$ac_new_val ;;
1987     esac
1988     case " $ac_configure_args " in
1989       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1990       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1991     esac
1992   fi
1993 done
1994 if $ac_cache_corrupted; then
1995   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1996 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1997   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1998 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1999    { (exit 1); exit 1; }; }
2000 fi
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026 ac_ext=c
2027 ac_cpp='$CPP $CPPFLAGS'
2028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2031
2032
2033
2034 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2035
2036
2037
2038
2039
2040
2041
2042 ac_aux_dir=
2043 for ac_dir in autoconf "$srcdir"/autoconf; do
2044   if test -f "$ac_dir/install-sh"; then
2045     ac_aux_dir=$ac_dir
2046     ac_install_sh="$ac_aux_dir/install-sh -c"
2047     break
2048   elif test -f "$ac_dir/install.sh"; then
2049     ac_aux_dir=$ac_dir
2050     ac_install_sh="$ac_aux_dir/install.sh -c"
2051     break
2052   elif test -f "$ac_dir/shtool"; then
2053     ac_aux_dir=$ac_dir
2054     ac_install_sh="$ac_aux_dir/shtool install -c"
2055     break
2056   fi
2057 done
2058 if test -z "$ac_aux_dir"; then
2059   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2060 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2061    { (exit 1); exit 1; }; }
2062 fi
2063
2064 # These three variables are undocumented and unsupported,
2065 # and are intended to be withdrawn in a future Autoconf release.
2066 # They can cause serious problems if a builder's source tree is in a directory
2067 # whose full name contains unusual characters.
2068 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2069 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2070 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2071
2072
2073
2074 if test ${srcdir} != "." ; then
2075   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2076     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2077 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2078    { (exit 1); exit 1; }; }
2079   fi
2080 fi
2081
2082 for i in `ls ${srcdir}/projects`
2083 do
2084   if test -d ${srcdir}/projects/${i} ; then
2085     case ${i} in
2086       CVS) ;;
2087       sample)       subdirs="$subdirs projects/sample"
2088     ;;
2089       privbracket)  subdirs="$subdirs projects/privbracket"
2090  ;;
2091       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2092  ;;
2093       llvm-test)    subdirs="$subdirs projects/llvm-test"
2094  ;;
2095       test-suite)   subdirs="$subdirs projects/test-suite"
2096  ;;
2097       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2098 ;;
2099       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2100   ;;
2101       llvm-java)    subdirs="$subdirs projects/llvm-java"
2102  ;;
2103       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2104    ;;
2105       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2106  ;;
2107       poolalloc)    subdirs="$subdirs projects/poolalloc"
2108  ;;
2109       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2110  ;;
2111       *)
2112         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2113 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2114         ;;
2115     esac
2116   fi
2117 done
2118
2119
2120 # Make sure we can run config.sub.
2121 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2122   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2123 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2124    { (exit 1); exit 1; }; }
2125
2126 { echo "$as_me:$LINENO: checking build system type" >&5
2127 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2128 if test "${ac_cv_build+set}" = set; then
2129   echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131   ac_build_alias=$build_alias
2132 test "x$ac_build_alias" = x &&
2133   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2134 test "x$ac_build_alias" = x &&
2135   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2136 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2137    { (exit 1); exit 1; }; }
2138 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2139   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2140 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2141    { (exit 1); exit 1; }; }
2142
2143 fi
2144 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2145 echo "${ECHO_T}$ac_cv_build" >&6; }
2146 case $ac_cv_build in
2147 *-*-*) ;;
2148 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2149 echo "$as_me: error: invalid value of canonical build" >&2;}
2150    { (exit 1); exit 1; }; };;
2151 esac
2152 build=$ac_cv_build
2153 ac_save_IFS=$IFS; IFS='-'
2154 set x $ac_cv_build
2155 shift
2156 build_cpu=$1
2157 build_vendor=$2
2158 shift; shift
2159 # Remember, the first character of IFS is used to create $*,
2160 # except with old shells:
2161 build_os=$*
2162 IFS=$ac_save_IFS
2163 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2164
2165
2166 { echo "$as_me:$LINENO: checking host system type" >&5
2167 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2168 if test "${ac_cv_host+set}" = set; then
2169   echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171   if test "x$host_alias" = x; then
2172   ac_cv_host=$ac_cv_build
2173 else
2174   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2175     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2176 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2177    { (exit 1); exit 1; }; }
2178 fi
2179
2180 fi
2181 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2182 echo "${ECHO_T}$ac_cv_host" >&6; }
2183 case $ac_cv_host in
2184 *-*-*) ;;
2185 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2186 echo "$as_me: error: invalid value of canonical host" >&2;}
2187    { (exit 1); exit 1; }; };;
2188 esac
2189 host=$ac_cv_host
2190 ac_save_IFS=$IFS; IFS='-'
2191 set x $ac_cv_host
2192 shift
2193 host_cpu=$1
2194 host_vendor=$2
2195 shift; shift
2196 # Remember, the first character of IFS is used to create $*,
2197 # except with old shells:
2198 host_os=$*
2199 IFS=$ac_save_IFS
2200 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2201
2202
2203 { echo "$as_me:$LINENO: checking target system type" >&5
2204 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2205 if test "${ac_cv_target+set}" = set; then
2206   echo $ECHO_N "(cached) $ECHO_C" >&6
2207 else
2208   if test "x$target_alias" = x; then
2209   ac_cv_target=$ac_cv_host
2210 else
2211   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2212     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2213 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2214    { (exit 1); exit 1; }; }
2215 fi
2216
2217 fi
2218 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2219 echo "${ECHO_T}$ac_cv_target" >&6; }
2220 case $ac_cv_target in
2221 *-*-*) ;;
2222 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2223 echo "$as_me: error: invalid value of canonical target" >&2;}
2224    { (exit 1); exit 1; }; };;
2225 esac
2226 target=$ac_cv_target
2227 ac_save_IFS=$IFS; IFS='-'
2228 set x $ac_cv_target
2229 shift
2230 target_cpu=$1
2231 target_vendor=$2
2232 shift; shift
2233 # Remember, the first character of IFS is used to create $*,
2234 # except with old shells:
2235 target_os=$*
2236 IFS=$ac_save_IFS
2237 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2238
2239
2240 # The aliases save the names the user supplied, while $host etc.
2241 # will get canonicalized.
2242 test -n "$target_alias" &&
2243   test "$program_prefix$program_suffix$program_transform_name" = \
2244     NONENONEs,x,x, &&
2245   program_prefix=${target_alias}-
2246
2247 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2248 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2249 if test "${llvm_cv_os_type+set}" = set; then
2250   echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252   case $host in
2253   *-*-aix*)
2254     llvm_cv_link_all_option="-Wl,--whole-archive"
2255     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2256     llvm_cv_os_type="AIX"
2257     llvm_cv_platform_type="Unix" ;;
2258   *-*-irix*)
2259     llvm_cv_link_all_option="-Wl,--whole-archive"
2260     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261     llvm_cv_os_type="IRIX"
2262     llvm_cv_platform_type="Unix" ;;
2263   *-*-cygwin*)
2264     llvm_cv_link_all_option="-Wl,--whole-archive"
2265     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266     llvm_cv_os_type="Cygwin"
2267     llvm_cv_platform_type="Unix" ;;
2268   *-*-darwin*)
2269     llvm_cv_link_all_option="-Wl,-all_load"
2270     llvm_cv_no_link_all_option="-Wl,-noall_load"
2271     llvm_cv_os_type="Darwin"
2272     llvm_cv_platform_type="Unix" ;;
2273   *-*-freebsd*)
2274     llvm_cv_link_all_option="-Wl,--whole-archive"
2275     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276     llvm_cv_os_type="FreeBSD"
2277     llvm_cv_platform_type="Unix" ;;
2278   *-*-openbsd*)
2279     llvm_cv_link_all_option="-Wl,--whole-archive"
2280     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281     llvm_cv_os_type="OpenBSD"
2282     llvm_cv_platform_type="Unix" ;;
2283   *-*-netbsd*)
2284     llvm_cv_link_all_option="-Wl,--whole-archive"
2285     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286     llvm_cv_os_type="NetBSD"
2287     llvm_cv_platform_type="Unix" ;;
2288   *-*-hpux*)
2289     llvm_cv_link_all_option="-Wl,--whole-archive"
2290     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291     llvm_cv_os_type="HP-UX"
2292     llvm_cv_platform_type="Unix" ;;
2293   *-*-interix*)
2294     llvm_cv_link_all_option="-Wl,--whole-archive"
2295     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296     llvm_cv_os_type="Interix"
2297     llvm_cv_platform_type="Unix" ;;
2298   *-*-linux*)
2299     llvm_cv_link_all_option="-Wl,--whole-archive"
2300     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301     llvm_cv_os_type="Linux"
2302     llvm_cv_platform_type="Unix" ;;
2303   *-*-solaris*)
2304     llvm_cv_link_all_option="-Wl,-z,allextract"
2305     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2306     llvm_cv_os_type="SunOS"
2307     llvm_cv_platform_type="Unix" ;;
2308   *-*-win32*)
2309     llvm_cv_link_all_option="-Wl,--whole-archive"
2310     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311     llvm_cv_os_type="Win32"
2312     llvm_cv_platform_type="Win32" ;;
2313   *-*-mingw*)
2314     llvm_cv_link_all_option="-Wl,--whole-archive"
2315     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316     llvm_cv_os_type="MingW"
2317     llvm_cv_platform_type="Win32" ;;
2318   *)
2319     llvm_cv_link_all_option=""
2320     llvm_cv_no_link_all_option=""
2321     llvm_cv_os_type="Unknown"
2322     llvm_cv_platform_type="Unknown" ;;
2323 esac
2324 fi
2325 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2326 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2327
2328 if test "$llvm_cv_os_type" = "Unknown" ; then
2329   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2330 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2331    { (exit 1); exit 1; }; }
2332 fi
2333
2334 OS=$llvm_cv_os_type
2335
2336
2337 LINKALL=$llvm_cv_link_all_option
2338
2339 NOLINKALL=$llvm_cv_no_link_all_option
2340
2341
2342 case $llvm_cv_platform_type in
2343   Unix)
2344
2345 cat >>confdefs.h <<\_ACEOF
2346 #define LLVM_ON_UNIX 1
2347 _ACEOF
2348
2349     LLVM_ON_UNIX=1
2350
2351     LLVM_ON_WIN32=0
2352
2353     ;;
2354   Win32)
2355
2356 cat >>confdefs.h <<\_ACEOF
2357 #define LLVM_ON_WIN32 1
2358 _ACEOF
2359
2360     LLVM_ON_UNIX=0
2361
2362     LLVM_ON_WIN32=1
2363
2364     ;;
2365 esac
2366
2367 { echo "$as_me:$LINENO: checking target architecture" >&5
2368 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2369 if test "${llvm_cv_target_arch+set}" = set; then
2370   echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372   case $target in
2373   i?86-*)                 llvm_cv_target_arch="x86" ;;
2374   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2375   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2376   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2377   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2378   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2379   arm-*)                  llvm_cv_target_arch="ARM" ;;
2380   mips-*)                 llvm_cv_target_arch="Mips" ;;
2381   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2382   *)                      llvm_cv_target_arch="Unknown" ;;
2383 esac
2384 fi
2385 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2386 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2387
2388 if test "$llvm_cv_target_arch" = "Unknown" ; then
2389   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2390 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2391 fi
2392
2393 ARCH=$llvm_cv_target_arch
2394
2395
2396 ac_ext=c
2397 ac_cpp='$CPP $CPPFLAGS'
2398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2401 if test -n "$ac_tool_prefix"; then
2402   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2403 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2406 if test "${ac_cv_prog_CC+set}" = set; then
2407   echo $ECHO_N "(cached) $ECHO_C" >&6
2408 else
2409   if test -n "$CC"; then
2410   ac_cv_prog_CC="$CC" # Let the user override the test.
2411 else
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH
2414 do
2415   IFS=$as_save_IFS
2416   test -z "$as_dir" && as_dir=.
2417   for ac_exec_ext in '' $ac_executable_extensions; do
2418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2419     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421     break 2
2422   fi
2423 done
2424 done
2425 IFS=$as_save_IFS
2426
2427 fi
2428 fi
2429 CC=$ac_cv_prog_CC
2430 if test -n "$CC"; then
2431   { echo "$as_me:$LINENO: result: $CC" >&5
2432 echo "${ECHO_T}$CC" >&6; }
2433 else
2434   { echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6; }
2436 fi
2437
2438
2439 fi
2440 if test -z "$ac_cv_prog_CC"; then
2441   ac_ct_CC=$CC
2442   # Extract the first word of "gcc", so it can be a program name with args.
2443 set dummy gcc; ac_word=$2
2444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2447   echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449   if test -n "$ac_ct_CC"; then
2450   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455   IFS=$as_save_IFS
2456   test -z "$as_dir" && as_dir=.
2457   for ac_exec_ext in '' $ac_executable_extensions; do
2458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2459     ac_cv_prog_ac_ct_CC="gcc"
2460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461     break 2
2462   fi
2463 done
2464 done
2465 IFS=$as_save_IFS
2466
2467 fi
2468 fi
2469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2470 if test -n "$ac_ct_CC"; then
2471   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2472 echo "${ECHO_T}$ac_ct_CC" >&6; }
2473 else
2474   { echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6; }
2476 fi
2477
2478   if test "x$ac_ct_CC" = x; then
2479     CC=""
2480   else
2481     case $cross_compiling:$ac_tool_warned in
2482 yes:)
2483 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2484 whose name does not start with the host triplet.  If you think this
2485 configuration is useful to you, please write to autoconf@gnu.org." >&5
2486 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2487 whose name does not start with the host triplet.  If you think this
2488 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2489 ac_tool_warned=yes ;;
2490 esac
2491     CC=$ac_ct_CC
2492   fi
2493 else
2494   CC="$ac_cv_prog_CC"
2495 fi
2496
2497 if test -z "$CC"; then
2498           if test -n "$ac_tool_prefix"; then
2499     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2500 set dummy ${ac_tool_prefix}cc; ac_word=$2
2501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503 if test "${ac_cv_prog_CC+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   if test -n "$CC"; then
2507   ac_cv_prog_CC="$CC" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512   IFS=$as_save_IFS
2513   test -z "$as_dir" && as_dir=.
2514   for ac_exec_ext in '' $ac_executable_extensions; do
2515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2516     ac_cv_prog_CC="${ac_tool_prefix}cc"
2517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518     break 2
2519   fi
2520 done
2521 done
2522 IFS=$as_save_IFS
2523
2524 fi
2525 fi
2526 CC=$ac_cv_prog_CC
2527 if test -n "$CC"; then
2528   { echo "$as_me:$LINENO: result: $CC" >&5
2529 echo "${ECHO_T}$CC" >&6; }
2530 else
2531   { echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6; }
2533 fi
2534
2535
2536   fi
2537 fi
2538 if test -z "$CC"; then
2539   # Extract the first word of "cc", so it can be a program name with args.
2540 set dummy cc; ac_word=$2
2541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2543 if test "${ac_cv_prog_CC+set}" = set; then
2544   echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546   if test -n "$CC"; then
2547   ac_cv_prog_CC="$CC" # Let the user override the test.
2548 else
2549   ac_prog_rejected=no
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2552 do
2553   IFS=$as_save_IFS
2554   test -z "$as_dir" && as_dir=.
2555   for ac_exec_ext in '' $ac_executable_extensions; do
2556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2557     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2558        ac_prog_rejected=yes
2559        continue
2560      fi
2561     ac_cv_prog_CC="cc"
2562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563     break 2
2564   fi
2565 done
2566 done
2567 IFS=$as_save_IFS
2568
2569 if test $ac_prog_rejected = yes; then
2570   # We found a bogon in the path, so make sure we never use it.
2571   set dummy $ac_cv_prog_CC
2572   shift
2573   if test $# != 0; then
2574     # We chose a different compiler from the bogus one.
2575     # However, it has the same basename, so the bogon will be chosen
2576     # first if we set CC to just the basename; use the full file name.
2577     shift
2578     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2579   fi
2580 fi
2581 fi
2582 fi
2583 CC=$ac_cv_prog_CC
2584 if test -n "$CC"; then
2585   { echo "$as_me:$LINENO: result: $CC" >&5
2586 echo "${ECHO_T}$CC" >&6; }
2587 else
2588   { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2590 fi
2591
2592
2593 fi
2594 if test -z "$CC"; then
2595   if test -n "$ac_tool_prefix"; then
2596   for ac_prog in cl.exe
2597   do
2598     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602 if test "${ac_cv_prog_CC+set}" = set; then
2603   echo $ECHO_N "(cached) $ECHO_C" >&6
2604 else
2605   if test -n "$CC"; then
2606   ac_cv_prog_CC="$CC" # Let the user override the test.
2607 else
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611   IFS=$as_save_IFS
2612   test -z "$as_dir" && as_dir=.
2613   for ac_exec_ext in '' $ac_executable_extensions; do
2614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2615     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617     break 2
2618   fi
2619 done
2620 done
2621 IFS=$as_save_IFS
2622
2623 fi
2624 fi
2625 CC=$ac_cv_prog_CC
2626 if test -n "$CC"; then
2627   { echo "$as_me:$LINENO: result: $CC" >&5
2628 echo "${ECHO_T}$CC" >&6; }
2629 else
2630   { echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6; }
2632 fi
2633
2634
2635     test -n "$CC" && break
2636   done
2637 fi
2638 if test -z "$CC"; then
2639   ac_ct_CC=$CC
2640   for ac_prog in cl.exe
2641 do
2642   # Extract the first word of "$ac_prog", so it can be a program name with args.
2643 set dummy $ac_prog; ac_word=$2
2644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2647   echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649   if test -n "$ac_ct_CC"; then
2650   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2654 do
2655   IFS=$as_save_IFS
2656   test -z "$as_dir" && as_dir=.
2657   for ac_exec_ext in '' $ac_executable_extensions; do
2658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2659     ac_cv_prog_ac_ct_CC="$ac_prog"
2660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661     break 2
2662   fi
2663 done
2664 done
2665 IFS=$as_save_IFS
2666
2667 fi
2668 fi
2669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2670 if test -n "$ac_ct_CC"; then
2671   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2672 echo "${ECHO_T}$ac_ct_CC" >&6; }
2673 else
2674   { echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6; }
2676 fi
2677
2678
2679   test -n "$ac_ct_CC" && break
2680 done
2681
2682   if test "x$ac_ct_CC" = x; then
2683     CC=""
2684   else
2685     case $cross_compiling:$ac_tool_warned in
2686 yes:)
2687 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2688 whose name does not start with the host triplet.  If you think this
2689 configuration is useful to you, please write to autoconf@gnu.org." >&5
2690 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2691 whose name does not start with the host triplet.  If you think this
2692 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2693 ac_tool_warned=yes ;;
2694 esac
2695     CC=$ac_ct_CC
2696   fi
2697 fi
2698
2699 fi
2700
2701
2702 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2703 See \`config.log' for more details." >&5
2704 echo "$as_me: error: no acceptable C compiler found in \$PATH
2705 See \`config.log' for more details." >&2;}
2706    { (exit 1); exit 1; }; }
2707
2708 # Provide some information about the compiler.
2709 echo "$as_me:$LINENO: checking for C compiler version" >&5
2710 ac_compiler=`set X $ac_compile; echo $2`
2711 { (ac_try="$ac_compiler --version >&5"
2712 case "(($ac_try" in
2713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714   *) ac_try_echo=$ac_try;;
2715 esac
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717   (eval "$ac_compiler --version >&5") 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }
2721 { (ac_try="$ac_compiler -v >&5"
2722 case "(($ac_try" in
2723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724   *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727   (eval "$ac_compiler -v >&5") 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }
2731 { (ac_try="$ac_compiler -V >&5"
2732 case "(($ac_try" in
2733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734   *) ac_try_echo=$ac_try;;
2735 esac
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737   (eval "$ac_compiler -V >&5") 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }
2741
2742 cat >conftest.$ac_ext <<_ACEOF
2743 /* confdefs.h.  */
2744 _ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h.  */
2748
2749 int
2750 main ()
2751 {
2752
2753   ;
2754   return 0;
2755 }
2756 _ACEOF
2757 ac_clean_files_save=$ac_clean_files
2758 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2759 # Try to create an executable without -o first, disregard a.out.
2760 # It will help us diagnose broken compilers, and finding out an intuition
2761 # of exeext.
2762 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2763 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2764 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2765 #
2766 # List of possible output files, starting from the most likely.
2767 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2768 # only as a last resort.  b.out is created by i960 compilers.
2769 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2770 #
2771 # The IRIX 6 linker writes into existing files which may not be
2772 # executable, retaining their permissions.  Remove them first so a
2773 # subsequent execution test works.
2774 ac_rmfiles=
2775 for ac_file in $ac_files
2776 do
2777   case $ac_file in
2778     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2779     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2780   esac
2781 done
2782 rm -f $ac_rmfiles
2783
2784 if { (ac_try="$ac_link_default"
2785 case "(($ac_try" in
2786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787   *) ac_try_echo=$ac_try;;
2788 esac
2789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790   (eval "$ac_link_default") 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; then
2794   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2795 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2796 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2797 # so that the user can short-circuit this test for compilers unknown to
2798 # Autoconf.
2799 for ac_file in $ac_files
2800 do
2801   test -f "$ac_file" || continue
2802   case $ac_file in
2803     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2804         ;;
2805     [ab].out )
2806         # We found the default executable, but exeext='' is most
2807         # certainly right.
2808         break;;
2809     *.* )
2810         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2811         then :; else
2812            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2813         fi
2814         # We set ac_cv_exeext here because the later test for it is not
2815         # safe: cross compilers may not add the suffix if given an `-o'
2816         # argument, so we may need to know it at that point already.
2817         # Even if this section looks crufty: it has the advantage of
2818         # actually working.
2819         break;;
2820     * )
2821         break;;
2822   esac
2823 done
2824 test "$ac_cv_exeext" = no && ac_cv_exeext=
2825
2826 else
2827   echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2829
2830 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2831 See \`config.log' for more details." >&5
2832 echo "$as_me: error: C compiler cannot create executables
2833 See \`config.log' for more details." >&2;}
2834    { (exit 77); exit 77; }; }
2835 fi
2836
2837 ac_exeext=$ac_cv_exeext
2838 { echo "$as_me:$LINENO: result: $ac_file" >&5
2839 echo "${ECHO_T}$ac_file" >&6; }
2840
2841 # Check that the compiler produces executables we can run.  If not, either
2842 # the compiler is broken, or we cross compile.
2843 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2844 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2845 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2846 # If not cross compiling, check that we can run a simple program.
2847 if test "$cross_compiling" != yes; then
2848   if { ac_try='./$ac_file'
2849   { (case "(($ac_try" in
2850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851   *) ac_try_echo=$ac_try;;
2852 esac
2853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854   (eval "$ac_try") 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; }; then
2858     cross_compiling=no
2859   else
2860     if test "$cross_compiling" = maybe; then
2861         cross_compiling=yes
2862     else
2863         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2864 If you meant to cross compile, use \`--host'.
2865 See \`config.log' for more details." >&5
2866 echo "$as_me: error: cannot run C compiled programs.
2867 If you meant to cross compile, use \`--host'.
2868 See \`config.log' for more details." >&2;}
2869    { (exit 1); exit 1; }; }
2870     fi
2871   fi
2872 fi
2873 { echo "$as_me:$LINENO: result: yes" >&5
2874 echo "${ECHO_T}yes" >&6; }
2875
2876 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2877 ac_clean_files=$ac_clean_files_save
2878 # Check that the compiler produces executables we can run.  If not, either
2879 # the compiler is broken, or we cross compile.
2880 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2881 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2882 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2883 echo "${ECHO_T}$cross_compiling" >&6; }
2884
2885 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2886 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2887 if { (ac_try="$ac_link"
2888 case "(($ac_try" in
2889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890   *) ac_try_echo=$ac_try;;
2891 esac
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893   (eval "$ac_link") 2>&5
2894   ac_status=$?
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); }; then
2897   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2898 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2899 # work properly (i.e., refer to `conftest.exe'), while it won't with
2900 # `rm'.
2901 for ac_file in conftest.exe conftest conftest.*; do
2902   test -f "$ac_file" || continue
2903   case $ac_file in
2904     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2905     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2906           break;;
2907     * ) break;;
2908   esac
2909 done
2910 else
2911   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2912 See \`config.log' for more details." >&5
2913 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2914 See \`config.log' for more details." >&2;}
2915    { (exit 1); exit 1; }; }
2916 fi
2917
2918 rm -f conftest$ac_cv_exeext
2919 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2920 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2921
2922 rm -f conftest.$ac_ext
2923 EXEEXT=$ac_cv_exeext
2924 ac_exeext=$EXEEXT
2925 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2926 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2927 if test "${ac_cv_objext+set}" = set; then
2928   echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930   cat >conftest.$ac_ext <<_ACEOF
2931 /* confdefs.h.  */
2932 _ACEOF
2933 cat confdefs.h >>conftest.$ac_ext
2934 cat >>conftest.$ac_ext <<_ACEOF
2935 /* end confdefs.h.  */
2936
2937 int
2938 main ()
2939 {
2940
2941   ;
2942   return 0;
2943 }
2944 _ACEOF
2945 rm -f conftest.o conftest.obj
2946 if { (ac_try="$ac_compile"
2947 case "(($ac_try" in
2948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949   *) ac_try_echo=$ac_try;;
2950 esac
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952   (eval "$ac_compile") 2>&5
2953   ac_status=$?
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); }; then
2956   for ac_file in conftest.o conftest.obj conftest.*; do
2957   test -f "$ac_file" || continue;
2958   case $ac_file in
2959     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2960     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2961        break;;
2962   esac
2963 done
2964 else
2965   echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2969 See \`config.log' for more details." >&5
2970 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2971 See \`config.log' for more details." >&2;}
2972    { (exit 1); exit 1; }; }
2973 fi
2974
2975 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2976 fi
2977 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2978 echo "${ECHO_T}$ac_cv_objext" >&6; }
2979 OBJEXT=$ac_cv_objext
2980 ac_objext=$OBJEXT
2981 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2982 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2983 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2984   echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986   cat >conftest.$ac_ext <<_ACEOF
2987 /* confdefs.h.  */
2988 _ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h.  */
2992
2993 int
2994 main ()
2995 {
2996 #ifndef __GNUC__
2997        choke me
2998 #endif
2999
3000   ;
3001   return 0;
3002 }
3003 _ACEOF
3004 rm -f conftest.$ac_objext
3005 if { (ac_try="$ac_compile"
3006 case "(($ac_try" in
3007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008   *) ac_try_echo=$ac_try;;
3009 esac
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011   (eval "$ac_compile") 2>conftest.er1
3012   ac_status=$?
3013   grep -v '^ *+' conftest.er1 >conftest.err
3014   rm -f conftest.er1
3015   cat conftest.err >&5
3016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017   (exit $ac_status); } &&
3018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3019   { (case "(($ac_try" in
3020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021   *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024   (eval "$ac_try") 2>&5
3025   ac_status=$?
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); }; } &&
3028          { ac_try='test -s conftest.$ac_objext'
3029   { (case "(($ac_try" in
3030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031   *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034   (eval "$ac_try") 2>&5
3035   ac_status=$?
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); }; }; then
3038   ac_compiler_gnu=yes
3039 else
3040   echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043         ac_compiler_gnu=no
3044 fi
3045
3046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3048
3049 fi
3050 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3051 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3052 GCC=`test $ac_compiler_gnu = yes && echo yes`
3053 ac_test_CFLAGS=${CFLAGS+set}
3054 ac_save_CFLAGS=$CFLAGS
3055 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3056 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3057 if test "${ac_cv_prog_cc_g+set}" = set; then
3058   echo $ECHO_N "(cached) $ECHO_C" >&6
3059 else
3060   ac_save_c_werror_flag=$ac_c_werror_flag
3061    ac_c_werror_flag=yes
3062    ac_cv_prog_cc_g=no
3063    CFLAGS="-g"
3064    cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h.  */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h.  */
3070
3071 int
3072 main ()
3073 {
3074
3075   ;
3076   return 0;
3077 }
3078 _ACEOF
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3081 case "(($ac_try" in
3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083   *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086   (eval "$ac_compile") 2>conftest.er1
3087   ac_status=$?
3088   grep -v '^ *+' conftest.er1 >conftest.err
3089   rm -f conftest.er1
3090   cat conftest.err >&5
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); } &&
3093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3094   { (case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_try") 2>&5
3100   ac_status=$?
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); }; } &&
3103          { ac_try='test -s conftest.$ac_objext'
3104   { (case "(($ac_try" in
3105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106   *) ac_try_echo=$ac_try;;
3107 esac
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109   (eval "$ac_try") 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); }; }; then
3113   ac_cv_prog_cc_g=yes
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118         CFLAGS=""
3119       cat >conftest.$ac_ext <<_ACEOF
3120 /* confdefs.h.  */
3121 _ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h.  */
3125
3126 int
3127 main ()
3128 {
3129
3130   ;
3131   return 0;
3132 }
3133 _ACEOF
3134 rm -f conftest.$ac_objext
3135 if { (ac_try="$ac_compile"
3136 case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141   (eval "$ac_compile") 2>conftest.er1
3142   ac_status=$?
3143   grep -v '^ *+' conftest.er1 >conftest.err
3144   rm -f conftest.er1
3145   cat conftest.err >&5
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); } &&
3148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3149   { (case "(($ac_try" in
3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151   *) ac_try_echo=$ac_try;;
3152 esac
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154   (eval "$ac_try") 2>&5
3155   ac_status=$?
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); }; } &&
3158          { ac_try='test -s conftest.$ac_objext'
3159   { (case "(($ac_try" in
3160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161   *) ac_try_echo=$ac_try;;
3162 esac
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164   (eval "$ac_try") 2>&5
3165   ac_status=$?
3166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167   (exit $ac_status); }; }; then
3168   :
3169 else
3170   echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173         ac_c_werror_flag=$ac_save_c_werror_flag
3174          CFLAGS="-g"
3175          cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h.  */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h.  */
3181
3182 int
3183 main ()
3184 {
3185
3186   ;
3187   return 0;
3188 }
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197   (eval "$ac_compile") 2>conftest.er1
3198   ac_status=$?
3199   grep -v '^ *+' conftest.er1 >conftest.err
3200   rm -f conftest.er1
3201   cat conftest.err >&5
3202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203   (exit $ac_status); } &&
3204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3205   { (case "(($ac_try" in
3206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207   *) ac_try_echo=$ac_try;;
3208 esac
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210   (eval "$ac_try") 2>&5
3211   ac_status=$?
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); }; } &&
3214          { ac_try='test -s conftest.$ac_objext'
3215   { (case "(($ac_try" in
3216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217   *) ac_try_echo=$ac_try;;
3218 esac
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220   (eval "$ac_try") 2>&5
3221   ac_status=$?
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); }; }; then
3224   ac_cv_prog_cc_g=yes
3225 else
3226   echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3228
3229
3230 fi
3231
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 fi
3234
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 fi
3237
3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239    ac_c_werror_flag=$ac_save_c_werror_flag
3240 fi
3241 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3242 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3243 if test "$ac_test_CFLAGS" = set; then
3244   CFLAGS=$ac_save_CFLAGS
3245 elif test $ac_cv_prog_cc_g = yes; then
3246   if test "$GCC" = yes; then
3247     CFLAGS="-g -O2"
3248   else
3249     CFLAGS="-g"
3250   fi
3251 else
3252   if test "$GCC" = yes; then
3253     CFLAGS="-O2"
3254   else
3255     CFLAGS=
3256   fi
3257 fi
3258 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3259 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3260 if test "${ac_cv_prog_cc_c89+set}" = set; then
3261   echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263   ac_cv_prog_cc_c89=no
3264 ac_save_CC=$CC
3265 cat >conftest.$ac_ext <<_ACEOF
3266 /* confdefs.h.  */
3267 _ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h.  */
3271 #include <stdarg.h>
3272 #include <stdio.h>
3273 #include <sys/types.h>
3274 #include <sys/stat.h>
3275 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3276 struct buf { int x; };
3277 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3278 static char *e (p, i)
3279      char **p;
3280      int i;
3281 {
3282   return p[i];
3283 }
3284 static char *f (char * (*g) (char **, int), char **p, ...)
3285 {
3286   char *s;
3287   va_list v;
3288   va_start (v,p);
3289   s = g (p, va_arg (v,int));
3290   va_end (v);
3291   return s;
3292 }
3293
3294 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3295    function prototypes and stuff, but not '\xHH' hex character constants.
3296    These don't provoke an error unfortunately, instead are silently treated
3297    as 'x'.  The following induces an error, until -std is added to get
3298    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3299    array size at least.  It's necessary to write '\x00'==0 to get something
3300    that's true only with -std.  */
3301 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3302
3303 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3304    inside strings and character constants.  */
3305 #define FOO(x) 'x'
3306 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3307
3308 int test (int i, double x);
3309 struct s1 {int (*f) (int a);};
3310 struct s2 {int (*f) (double a);};
3311 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3312 int argc;
3313 char **argv;
3314 int
3315 main ()
3316 {
3317 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3318   ;
3319   return 0;
3320 }
3321 _ACEOF
3322 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3323         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3324 do
3325   CC="$ac_save_CC $ac_arg"
3326   rm -f conftest.$ac_objext
3327 if { (ac_try="$ac_compile"
3328 case "(($ac_try" in
3329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330   *) ac_try_echo=$ac_try;;
3331 esac
3332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3333   (eval "$ac_compile") 2>conftest.er1
3334   ac_status=$?
3335   grep -v '^ *+' conftest.er1 >conftest.err
3336   rm -f conftest.er1
3337   cat conftest.err >&5
3338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339   (exit $ac_status); } &&
3340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3341   { (case "(($ac_try" in
3342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343   *) ac_try_echo=$ac_try;;
3344 esac
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346   (eval "$ac_try") 2>&5
3347   ac_status=$?
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); }; } &&
3350          { ac_try='test -s conftest.$ac_objext'
3351   { (case "(($ac_try" in
3352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353   *) ac_try_echo=$ac_try;;
3354 esac
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356   (eval "$ac_try") 2>&5
3357   ac_status=$?
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); }; }; then
3360   ac_cv_prog_cc_c89=$ac_arg
3361 else
3362   echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365
3366 fi
3367
3368 rm -f core conftest.err conftest.$ac_objext
3369   test "x$ac_cv_prog_cc_c89" != "xno" && break
3370 done
3371 rm -f conftest.$ac_ext
3372 CC=$ac_save_CC
3373
3374 fi
3375 # AC_CACHE_VAL
3376 case "x$ac_cv_prog_cc_c89" in
3377   x)
3378     { echo "$as_me:$LINENO: result: none needed" >&5
3379 echo "${ECHO_T}none needed" >&6; } ;;
3380   xno)
3381     { echo "$as_me:$LINENO: result: unsupported" >&5
3382 echo "${ECHO_T}unsupported" >&6; } ;;
3383   *)
3384     CC="$CC $ac_cv_prog_cc_c89"
3385     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3386 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3387 esac
3388
3389
3390 ac_ext=c
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395
3396
3397 ac_ext=c
3398 ac_cpp='$CPP $CPPFLAGS'
3399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3402 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3403 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3404 # On Suns, sometimes $CPP names a directory.
3405 if test -n "$CPP" && test -d "$CPP"; then
3406   CPP=
3407 fi
3408 if test -z "$CPP"; then
3409   if test "${ac_cv_prog_CPP+set}" = set; then
3410   echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412       # Double quotes because CPP needs to be expanded
3413     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3414     do
3415       ac_preproc_ok=false
3416 for ac_c_preproc_warn_flag in '' yes
3417 do
3418   # Use a header file that comes with gcc, so configuring glibc
3419   # with a fresh cross-compiler works.
3420   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3421   # <limits.h> exists even on freestanding compilers.
3422   # On the NeXT, cc -E runs the code through the compiler's parser,
3423   # not just through cpp. "Syntax error" is here to catch this case.
3424   cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h.  */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h.  */
3430 #ifdef __STDC__
3431 # include <limits.h>
3432 #else
3433 # include <assert.h>
3434 #endif
3435                      Syntax error
3436 _ACEOF
3437 if { (ac_try="$ac_cpp conftest.$ac_ext"
3438 case "(($ac_try" in
3439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440   *) ac_try_echo=$ac_try;;
3441 esac
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3444   ac_status=$?
3445   grep -v '^ *+' conftest.er1 >conftest.err
3446   rm -f conftest.er1
3447   cat conftest.err >&5
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); } >/dev/null; then
3450   if test -s conftest.err; then
3451     ac_cpp_err=$ac_c_preproc_warn_flag
3452     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3453   else
3454     ac_cpp_err=
3455   fi
3456 else
3457   ac_cpp_err=yes
3458 fi
3459 if test -z "$ac_cpp_err"; then
3460   :
3461 else
3462   echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465   # Broken: fails on valid input.
3466 continue
3467 fi
3468
3469 rm -f conftest.err conftest.$ac_ext
3470
3471   # OK, works on sane cases.  Now check whether nonexistent headers
3472   # can be detected and how.
3473   cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h.  */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h.  */
3479 #include <ac_nonexistent.h>
3480 _ACEOF
3481 if { (ac_try="$ac_cpp conftest.$ac_ext"
3482 case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3488   ac_status=$?
3489   grep -v '^ *+' conftest.er1 >conftest.err
3490   rm -f conftest.er1
3491   cat conftest.err >&5
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); } >/dev/null; then
3494   if test -s conftest.err; then
3495     ac_cpp_err=$ac_c_preproc_warn_flag
3496     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3497   else
3498     ac_cpp_err=
3499   fi
3500 else
3501   ac_cpp_err=yes
3502 fi
3503 if test -z "$ac_cpp_err"; then
3504   # Broken: success on invalid input.
3505 continue
3506 else
3507   echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510   # Passes both tests.
3511 ac_preproc_ok=:
3512 break
3513 fi
3514
3515 rm -f conftest.err conftest.$ac_ext
3516
3517 done
3518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3519 rm -f conftest.err conftest.$ac_ext
3520 if $ac_preproc_ok; then
3521   break
3522 fi
3523
3524     done
3525     ac_cv_prog_CPP=$CPP
3526
3527 fi
3528   CPP=$ac_cv_prog_CPP
3529 else
3530   ac_cv_prog_CPP=$CPP
3531 fi
3532 { echo "$as_me:$LINENO: result: $CPP" >&5
3533 echo "${ECHO_T}$CPP" >&6; }
3534 ac_preproc_ok=false
3535 for ac_c_preproc_warn_flag in '' yes
3536 do
3537   # Use a header file that comes with gcc, so configuring glibc
3538   # with a fresh cross-compiler works.
3539   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3540   # <limits.h> exists even on freestanding compilers.
3541   # On the NeXT, cc -E runs the code through the compiler's parser,
3542   # not just through cpp. "Syntax error" is here to catch this case.
3543   cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h.  */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h.  */
3549 #ifdef __STDC__
3550 # include <limits.h>
3551 #else
3552 # include <assert.h>
3553 #endif
3554                      Syntax error
3555 _ACEOF
3556 if { (ac_try="$ac_cpp conftest.$ac_ext"
3557 case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3563   ac_status=$?
3564   grep -v '^ *+' conftest.er1 >conftest.err
3565   rm -f conftest.er1
3566   cat conftest.err >&5
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); } >/dev/null; then
3569   if test -s conftest.err; then
3570     ac_cpp_err=$ac_c_preproc_warn_flag
3571     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3572   else
3573     ac_cpp_err=
3574   fi
3575 else
3576   ac_cpp_err=yes
3577 fi
3578 if test -z "$ac_cpp_err"; then
3579   :
3580 else
3581   echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3583
3584   # Broken: fails on valid input.
3585 continue
3586 fi
3587
3588 rm -f conftest.err conftest.$ac_ext
3589
3590   # OK, works on sane cases.  Now check whether nonexistent headers
3591   # can be detected and how.
3592   cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h.  */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h.  */
3598 #include <ac_nonexistent.h>
3599 _ACEOF
3600 if { (ac_try="$ac_cpp conftest.$ac_ext"
3601 case "(($ac_try" in
3602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603   *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3607   ac_status=$?
3608   grep -v '^ *+' conftest.er1 >conftest.err
3609   rm -f conftest.er1
3610   cat conftest.err >&5
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); } >/dev/null; then
3613   if test -s conftest.err; then
3614     ac_cpp_err=$ac_c_preproc_warn_flag
3615     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3616   else
3617     ac_cpp_err=
3618   fi
3619 else
3620   ac_cpp_err=yes
3621 fi
3622 if test -z "$ac_cpp_err"; then
3623   # Broken: success on invalid input.
3624 continue
3625 else
3626   echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3628
3629   # Passes both tests.
3630 ac_preproc_ok=:
3631 break
3632 fi
3633
3634 rm -f conftest.err conftest.$ac_ext
3635
3636 done
3637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3638 rm -f conftest.err conftest.$ac_ext
3639 if $ac_preproc_ok; then
3640   :
3641 else
3642   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3643 See \`config.log' for more details." >&5
3644 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3645 See \`config.log' for more details." >&2;}
3646    { (exit 1); exit 1; }; }
3647 fi
3648
3649 ac_ext=c
3650 ac_cpp='$CPP $CPPFLAGS'
3651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654
3655
3656 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3657 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3658 if test "${ac_cv_path_GREP+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   # Extract the first word of "grep ggrep" to use in msg output
3662 if test -z "$GREP"; then
3663 set dummy grep ggrep; ac_prog_name=$2
3664 if test "${ac_cv_path_GREP+set}" = set; then
3665   echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667   ac_path_GREP_found=false
3668 # Loop through the user's path and test for each of PROGNAME-LIST
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3671 do
3672   IFS=$as_save_IFS
3673   test -z "$as_dir" && as_dir=.
3674   for ac_prog in grep ggrep; do
3675   for ac_exec_ext in '' $ac_executable_extensions; do
3676     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3677     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3678     # Check for GNU ac_path_GREP and select it if it is found.
3679   # Check for GNU $ac_path_GREP
3680 case `"$ac_path_GREP" --version 2>&1` in
3681 *GNU*)
3682   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3683 *)
3684   ac_count=0
3685   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3686   while :
3687   do
3688     cat "conftest.in" "conftest.in" >"conftest.tmp"
3689     mv "conftest.tmp" "conftest.in"
3690     cp "conftest.in" "conftest.nl"
3691     echo 'GREP' >> "conftest.nl"
3692     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3693     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3694     ac_count=`expr $ac_count + 1`
3695     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3696       # Best one so far, save it but keep looking for a better one
3697       ac_cv_path_GREP="$ac_path_GREP"
3698       ac_path_GREP_max=$ac_count
3699     fi
3700     # 10*(2^10) chars as input seems more than enough
3701     test $ac_count -gt 10 && break
3702   done
3703   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3704 esac
3705
3706
3707     $ac_path_GREP_found && break 3
3708   done
3709 done
3710
3711 done
3712 IFS=$as_save_IFS
3713
3714
3715 fi
3716
3717 GREP="$ac_cv_path_GREP"
3718 if test -z "$GREP"; then
3719   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3720 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3721    { (exit 1); exit 1; }; }
3722 fi
3723
3724 else
3725   ac_cv_path_GREP=$GREP
3726 fi
3727
3728
3729 fi
3730 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3731 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3732  GREP="$ac_cv_path_GREP"
3733
3734
3735 { echo "$as_me:$LINENO: checking for egrep" >&5
3736 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3737 if test "${ac_cv_path_EGREP+set}" = set; then
3738   echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3741    then ac_cv_path_EGREP="$GREP -E"
3742    else
3743      # Extract the first word of "egrep" to use in msg output
3744 if test -z "$EGREP"; then
3745 set dummy egrep; ac_prog_name=$2
3746 if test "${ac_cv_path_EGREP+set}" = set; then
3747   echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749   ac_path_EGREP_found=false
3750 # Loop through the user's path and test for each of PROGNAME-LIST
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3753 do
3754   IFS=$as_save_IFS
3755   test -z "$as_dir" && as_dir=.
3756   for ac_prog in egrep; do
3757   for ac_exec_ext in '' $ac_executable_extensions; do
3758     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3759     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3760     # Check for GNU ac_path_EGREP and select it if it is found.
3761   # Check for GNU $ac_path_EGREP
3762 case `"$ac_path_EGREP" --version 2>&1` in
3763 *GNU*)
3764   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3765 *)
3766   ac_count=0
3767   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3768   while :
3769   do
3770     cat "conftest.in" "conftest.in" >"conftest.tmp"
3771     mv "conftest.tmp" "conftest.in"
3772     cp "conftest.in" "conftest.nl"
3773     echo 'EGREP' >> "conftest.nl"
3774     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3775     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3776     ac_count=`expr $ac_count + 1`
3777     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3778       # Best one so far, save it but keep looking for a better one
3779       ac_cv_path_EGREP="$ac_path_EGREP"
3780       ac_path_EGREP_max=$ac_count
3781     fi
3782     # 10*(2^10) chars as input seems more than enough
3783     test $ac_count -gt 10 && break
3784   done
3785   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3786 esac
3787
3788
3789     $ac_path_EGREP_found && break 3
3790   done
3791 done
3792
3793 done
3794 IFS=$as_save_IFS
3795
3796
3797 fi
3798
3799 EGREP="$ac_cv_path_EGREP"
3800 if test -z "$EGREP"; then
3801   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3802 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3803    { (exit 1); exit 1; }; }
3804 fi
3805
3806 else
3807   ac_cv_path_EGREP=$EGREP
3808 fi
3809
3810
3811    fi
3812 fi
3813 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3814 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3815  EGREP="$ac_cv_path_EGREP"
3816
3817
3818 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3819 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3820 if test "${ac_cv_header_stdc+set}" = set; then
3821   echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823   cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h.  */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h.  */
3829 #include <stdlib.h>
3830 #include <stdarg.h>
3831 #include <string.h>
3832 #include <float.h>
3833
3834 int
3835 main ()
3836 {
3837
3838   ;
3839   return 0;
3840 }
3841 _ACEOF
3842 rm -f conftest.$ac_objext
3843 if { (ac_try="$ac_compile"
3844 case "(($ac_try" in
3845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846   *) ac_try_echo=$ac_try;;
3847 esac
3848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3849   (eval "$ac_compile") 2>conftest.er1
3850   ac_status=$?
3851   grep -v '^ *+' conftest.er1 >conftest.err
3852   rm -f conftest.er1
3853   cat conftest.err >&5
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); } &&
3856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3857   { (case "(($ac_try" in
3858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859   *) ac_try_echo=$ac_try;;
3860 esac
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862   (eval "$ac_try") 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }; } &&
3866          { ac_try='test -s conftest.$ac_objext'
3867   { (case "(($ac_try" in
3868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869   *) ac_try_echo=$ac_try;;
3870 esac
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872   (eval "$ac_try") 2>&5
3873   ac_status=$?
3874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875   (exit $ac_status); }; }; then
3876   ac_cv_header_stdc=yes
3877 else
3878   echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3880
3881         ac_cv_header_stdc=no
3882 fi
3883
3884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3885
3886 if test $ac_cv_header_stdc = yes; then
3887   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3888   cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h.  */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h.  */
3894 #include <string.h>
3895
3896 _ACEOF
3897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3898   $EGREP "memchr" >/dev/null 2>&1; then
3899   :
3900 else
3901   ac_cv_header_stdc=no
3902 fi
3903 rm -f conftest*
3904
3905 fi
3906
3907 if test $ac_cv_header_stdc = yes; then
3908   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3909   cat >conftest.$ac_ext <<_ACEOF
3910 /* confdefs.h.  */
3911 _ACEOF
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h.  */
3915 #include <stdlib.h>
3916
3917 _ACEOF
3918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3919   $EGREP "free" >/dev/null 2>&1; then
3920   :
3921 else
3922   ac_cv_header_stdc=no
3923 fi
3924 rm -f conftest*
3925
3926 fi
3927
3928 if test $ac_cv_header_stdc = yes; then
3929   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3930   if test "$cross_compiling" = yes; then
3931   :
3932 else
3933   cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h.  */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h.  */
3939 #include <ctype.h>
3940 #include <stdlib.h>
3941 #if ((' ' & 0x0FF) == 0x020)
3942 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3943 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3944 #else
3945 # define ISLOWER(c) \
3946                    (('a' <= (c) && (c) <= 'i') \
3947                      || ('j' <= (c) && (c) <= 'r') \
3948                      || ('s' <= (c) && (c) <= 'z'))
3949 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3950 #endif
3951
3952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3953 int
3954 main ()
3955 {
3956   int i;
3957   for (i = 0; i < 256; i++)
3958     if (XOR (islower (i), ISLOWER (i))
3959         || toupper (i) != TOUPPER (i))
3960       return 2;
3961   return 0;
3962 }
3963 _ACEOF
3964 rm -f conftest$ac_exeext
3965 if { (ac_try="$ac_link"
3966 case "(($ac_try" in
3967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968   *) ac_try_echo=$ac_try;;
3969 esac
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971   (eval "$ac_link") 2>&5
3972   ac_status=$?
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3975   { (case "(($ac_try" in
3976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977   *) ac_try_echo=$ac_try;;
3978 esac
3979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980   (eval "$ac_try") 2>&5
3981   ac_status=$?
3982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983   (exit $ac_status); }; }; then
3984   :
3985 else
3986   echo "$as_me: program exited with status $ac_status" >&5
3987 echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3989
3990 ( exit $ac_status )
3991 ac_cv_header_stdc=no
3992 fi
3993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3994 fi
3995
3996
3997 fi
3998 fi
3999 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4000 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4001 if test $ac_cv_header_stdc = yes; then
4002
4003 cat >>confdefs.h <<\_ACEOF
4004 #define STDC_HEADERS 1
4005 _ACEOF
4006
4007 fi
4008
4009 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4020                   inttypes.h stdint.h unistd.h
4021 do
4022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4026   echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028   cat >conftest.$ac_ext <<_ACEOF
4029 /* confdefs.h.  */
4030 _ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h.  */
4034 $ac_includes_default
4035
4036 #include <$ac_header>
4037 _ACEOF
4038 rm -f conftest.$ac_objext
4039 if { (ac_try="$ac_compile"
4040 case "(($ac_try" in
4041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042   *) ac_try_echo=$ac_try;;
4043 esac
4044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045   (eval "$ac_compile") 2>conftest.er1
4046   ac_status=$?
4047   grep -v '^ *+' conftest.er1 >conftest.err
4048   rm -f conftest.er1
4049   cat conftest.err >&5
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); } &&
4052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4053   { (case "(($ac_try" in
4054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055   *) ac_try_echo=$ac_try;;
4056 esac
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058   (eval "$ac_try") 2>&5
4059   ac_status=$?
4060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061   (exit $ac_status); }; } &&
4062          { ac_try='test -s conftest.$ac_objext'
4063   { (case "(($ac_try" in
4064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065   *) ac_try_echo=$ac_try;;
4066 esac
4067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068   (eval "$ac_try") 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); }; }; then
4072   eval "$as_ac_Header=yes"
4073 else
4074   echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4076
4077         eval "$as_ac_Header=no"
4078 fi
4079
4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081 fi
4082 ac_res=`eval echo '${'$as_ac_Header'}'`
4083                { echo "$as_me:$LINENO: result: $ac_res" >&5
4084 echo "${ECHO_T}$ac_res" >&6; }
4085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4086   cat >>confdefs.h <<_ACEOF
4087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4088 _ACEOF
4089
4090 fi
4091
4092 done
4093
4094
4095 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4096 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4097 if test "${ac_cv_c_bigendian+set}" = set; then
4098   echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100   # See if sys/param.h defines the BYTE_ORDER macro.
4101 cat >conftest.$ac_ext <<_ACEOF
4102 /* confdefs.h.  */
4103 _ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h.  */
4107 #include <sys/types.h>
4108 #include <sys/param.h>
4109
4110 int
4111 main ()
4112 {
4113 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4114  bogus endian macros
4115 #endif
4116
4117   ;
4118   return 0;
4119 }
4120 _ACEOF
4121 rm -f conftest.$ac_objext
4122 if { (ac_try="$ac_compile"
4123 case "(($ac_try" in
4124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125   *) ac_try_echo=$ac_try;;
4126 esac
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128   (eval "$ac_compile") 2>conftest.er1
4129   ac_status=$?
4130   grep -v '^ *+' conftest.er1 >conftest.err
4131   rm -f conftest.er1
4132   cat conftest.err >&5
4133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134   (exit $ac_status); } &&
4135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4136   { (case "(($ac_try" in
4137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138   *) ac_try_echo=$ac_try;;
4139 esac
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141   (eval "$ac_try") 2>&5
4142   ac_status=$?
4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144   (exit $ac_status); }; } &&
4145          { ac_try='test -s conftest.$ac_objext'
4146   { (case "(($ac_try" in
4147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148   *) ac_try_echo=$ac_try;;
4149 esac
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151   (eval "$ac_try") 2>&5
4152   ac_status=$?
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); }; }; then
4155   # It does; now see whether it defined to BIG_ENDIAN or not.
4156 cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h.  */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h.  */
4162 #include <sys/types.h>
4163 #include <sys/param.h>
4164
4165 int
4166 main ()
4167 {
4168 #if BYTE_ORDER != BIG_ENDIAN
4169  not big endian
4170 #endif
4171
4172   ;
4173   return 0;
4174 }
4175 _ACEOF
4176 rm -f conftest.$ac_objext
4177 if { (ac_try="$ac_compile"
4178 case "(($ac_try" in
4179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180   *) ac_try_echo=$ac_try;;
4181 esac
4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183   (eval "$ac_compile") 2>conftest.er1
4184   ac_status=$?
4185   grep -v '^ *+' conftest.er1 >conftest.err
4186   rm -f conftest.er1
4187   cat conftest.err >&5
4188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189   (exit $ac_status); } &&
4190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4191   { (case "(($ac_try" in
4192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193   *) ac_try_echo=$ac_try;;
4194 esac
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196   (eval "$ac_try") 2>&5
4197   ac_status=$?
4198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199   (exit $ac_status); }; } &&
4200          { ac_try='test -s conftest.$ac_objext'
4201   { (case "(($ac_try" in
4202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203   *) ac_try_echo=$ac_try;;
4204 esac
4205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206   (eval "$ac_try") 2>&5
4207   ac_status=$?
4208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209   (exit $ac_status); }; }; then
4210   ac_cv_c_bigendian=yes
4211 else
4212   echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4214
4215         ac_cv_c_bigendian=no
4216 fi
4217
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219 else
4220   echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4222
4223         # It does not; compile a test program.
4224 if test "$cross_compiling" = yes; then
4225   # try to guess the endianness by grepping values into an object file
4226   ac_cv_c_bigendian=unknown
4227   cat >conftest.$ac_ext <<_ACEOF
4228 /* confdefs.h.  */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h.  */
4233 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4234 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4235 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4236 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4237 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4238 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4239 int
4240 main ()
4241 {
4242  _ascii (); _ebcdic ();
4243   ;
4244   return 0;
4245 }
4246 _ACEOF
4247 rm -f conftest.$ac_objext
4248 if { (ac_try="$ac_compile"
4249 case "(($ac_try" in
4250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251   *) ac_try_echo=$ac_try;;
4252 esac
4253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254   (eval "$ac_compile") 2>conftest.er1
4255   ac_status=$?
4256   grep -v '^ *+' conftest.er1 >conftest.err
4257   rm -f conftest.er1
4258   cat conftest.err >&5
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); } &&
4261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4262   { (case "(($ac_try" in
4263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264   *) ac_try_echo=$ac_try;;
4265 esac
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267   (eval "$ac_try") 2>&5
4268   ac_status=$?
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); }; } &&
4271          { ac_try='test -s conftest.$ac_objext'
4272   { (case "(($ac_try" in
4273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274   *) ac_try_echo=$ac_try;;
4275 esac
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277   (eval "$ac_try") 2>&5
4278   ac_status=$?
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); }; }; then
4281   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4282   ac_cv_c_bigendian=yes
4283 fi
4284 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4285   if test "$ac_cv_c_bigendian" = unknown; then
4286     ac_cv_c_bigendian=no
4287   else
4288     # finding both strings is unlikely to happen, but who knows?
4289     ac_cv_c_bigendian=unknown
4290   fi
4291 fi
4292 else
4293   echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4295
4296
4297 fi
4298
4299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 else
4301   cat >conftest.$ac_ext <<_ACEOF
4302 /* confdefs.h.  */
4303 _ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h.  */
4307 $ac_includes_default
4308 int
4309 main ()
4310 {
4311
4312   /* Are we little or big endian?  From Harbison&Steele.  */
4313   union
4314   {
4315     long int l;
4316     char c[sizeof (long int)];
4317   } u;
4318   u.l = 1;
4319   return u.c[sizeof (long int) - 1] == 1;
4320
4321   ;
4322   return 0;
4323 }
4324 _ACEOF
4325 rm -f conftest$ac_exeext
4326 if { (ac_try="$ac_link"
4327 case "(($ac_try" in
4328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329   *) ac_try_echo=$ac_try;;
4330 esac
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332   (eval "$ac_link") 2>&5
4333   ac_status=$?
4334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4336   { (case "(($ac_try" in
4337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338   *) ac_try_echo=$ac_try;;
4339 esac
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341   (eval "$ac_try") 2>&5
4342   ac_status=$?
4343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344   (exit $ac_status); }; }; then
4345   ac_cv_c_bigendian=no
4346 else
4347   echo "$as_me: program exited with status $ac_status" >&5
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4350
4351 ( exit $ac_status )
4352 ac_cv_c_bigendian=yes
4353 fi
4354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4355 fi
4356
4357
4358 fi
4359
4360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361 fi
4362 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4363 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4364 case $ac_cv_c_bigendian in
4365   yes)
4366     ENDIAN=big
4367  ;;
4368   no)
4369     ENDIAN=little
4370  ;;
4371   *)
4372     { { echo "$as_me:$LINENO: error: unknown endianness
4373 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4374 echo "$as_me: error: unknown endianness
4375 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4376    { (exit 1); exit 1; }; } ;;
4377 esac
4378
4379
4380 if test "$cross_compiling" = yes; then
4381   LLVM_CROSS_COMPILING=1
4382
4383
4384 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4385 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4386 if test "${ac_cv_build_exeext+set}" = set; then
4387   echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4390   ac_cv_build_exeext=.exe
4391 else
4392   ac_build_prefix=${build_alias}-
4393
4394   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4395 set dummy ${ac_build_prefix}gcc; ac_word=$2
4396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4398 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4399   echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401   if test -n "$BUILD_CC"; then
4402   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407   IFS=$as_save_IFS
4408   test -z "$as_dir" && as_dir=.
4409   for ac_exec_ext in '' $ac_executable_extensions; do
4410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4411     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413     break 2
4414   fi
4415 done
4416 done
4417 IFS=$as_save_IFS
4418
4419 fi
4420 fi
4421 BUILD_CC=$ac_cv_prog_BUILD_CC
4422 if test -n "$BUILD_CC"; then
4423   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4424 echo "${ECHO_T}$BUILD_CC" >&6; }
4425 else
4426   { echo "$as_me:$LINENO: result: no" >&5
4427 echo "${ECHO_T}no" >&6; }
4428 fi
4429
4430
4431   if test -z "$BUILD_CC"; then
4432      # Extract the first word of "gcc", so it can be a program name with args.
4433 set dummy gcc; ac_word=$2
4434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4437   echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439   if test -n "$BUILD_CC"; then
4440   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445   IFS=$as_save_IFS
4446   test -z "$as_dir" && as_dir=.
4447   for ac_exec_ext in '' $ac_executable_extensions; do
4448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4449     ac_cv_prog_BUILD_CC="gcc"
4450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451     break 2
4452   fi
4453 done
4454 done
4455 IFS=$as_save_IFS
4456
4457 fi
4458 fi
4459 BUILD_CC=$ac_cv_prog_BUILD_CC
4460 if test -n "$BUILD_CC"; then
4461   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4462 echo "${ECHO_T}$BUILD_CC" >&6; }
4463 else
4464   { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4466 fi
4467
4468
4469      if test -z "$BUILD_CC"; then
4470        # Extract the first word of "cc", so it can be a program name with args.
4471 set dummy cc; ac_word=$2
4472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4474 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4475   echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477   if test -n "$BUILD_CC"; then
4478   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4479 else
4480   ac_prog_rejected=no
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484   IFS=$as_save_IFS
4485   test -z "$as_dir" && as_dir=.
4486   for ac_exec_ext in '' $ac_executable_extensions; do
4487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4488     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4489        ac_prog_rejected=yes
4490        continue
4491      fi
4492     ac_cv_prog_BUILD_CC="cc"
4493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4494     break 2
4495   fi
4496 done
4497 done
4498 IFS=$as_save_IFS
4499
4500 if test $ac_prog_rejected = yes; then
4501   # We found a bogon in the path, so make sure we never use it.
4502   set dummy $ac_cv_prog_BUILD_CC
4503   shift
4504   if test $# != 0; then
4505     # We chose a different compiler from the bogus one.
4506     # However, it has the same basename, so the bogon will be chosen
4507     # first if we set BUILD_CC to just the basename; use the full file name.
4508     shift
4509     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4510   fi
4511 fi
4512 fi
4513 fi
4514 BUILD_CC=$ac_cv_prog_BUILD_CC
4515 if test -n "$BUILD_CC"; then
4516   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4517 echo "${ECHO_T}$BUILD_CC" >&6; }
4518 else
4519   { echo "$as_me:$LINENO: result: no" >&5
4520 echo "${ECHO_T}no" >&6; }
4521 fi
4522
4523
4524      fi
4525   fi
4526   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4527 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4528    { (exit 1); exit 1; }; }
4529   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4530   rm -f conftest*
4531   echo 'int main () { return 0; }' > conftest.$ac_ext
4532   ac_cv_build_exeext=
4533   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4534   (eval $ac_build_link) 2>&5
4535   ac_status=$?
4536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); }; then
4538     for file in conftest.*; do
4539       case $file in
4540       *.c | *.o | *.obj) ;;
4541       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4542       esac
4543     done
4544   else
4545     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4546 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4547    { (exit 1); exit 1; }; }
4548   fi
4549   rm -f conftest*
4550   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4551 fi
4552 fi
4553
4554 BUILD_EXEEXT=""
4555 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4556 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4557 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4558 ac_build_exeext=$BUILD_EXEEXT
4559
4560 else
4561   LLVM_CROSS_COMPILING=0
4562
4563 fi
4564
4565 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4566   cvsbuild="yes"
4567   optimize="no"
4568   CVSBUILD=CVSBUILD=1
4569
4570 else
4571   cvsbuild="no"
4572   optimize="yes"
4573 fi
4574
4575
4576 # Check whether --enable-optimized was given.
4577 if test "${enable_optimized+set}" = set; then
4578   enableval=$enable_optimized;
4579 else
4580   enableval=$optimize
4581 fi
4582
4583 if test ${enableval} = "no" ; then
4584   ENABLE_OPTIMIZED=
4585
4586 else
4587   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4588
4589 fi
4590
4591 # Check whether --enable-assertions was given.
4592 if test "${enable_assertions+set}" = set; then
4593   enableval=$enable_assertions;
4594 else
4595   enableval="yes"
4596 fi
4597
4598 if test ${enableval} = "yes" ; then
4599   DISABLE_ASSERTIONS=
4600
4601 else
4602   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4603
4604 fi
4605
4606 # Check whether --enable-expensive-checks was given.
4607 if test "${enable_expensive_checks+set}" = set; then
4608   enableval=$enable_expensive_checks;
4609 else
4610   enableval="no"
4611 fi
4612
4613 if test ${enableval} = "yes" ; then
4614   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4615
4616   EXPENSIVE_CHECKS=yes
4617
4618 else
4619   ENABLE_EXPENSIVE_CHECKS=
4620
4621   EXPENSIVE_CHECKS=no
4622
4623 fi
4624
4625 # Check whether --enable-debug-runtime was given.
4626 if test "${enable_debug_runtime+set}" = set; then
4627   enableval=$enable_debug_runtime;
4628 else
4629   enableval=no
4630 fi
4631
4632 if test ${enableval} = "no" ; then
4633   DEBUG_RUNTIME=
4634
4635 else
4636   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4637
4638 fi
4639
4640 # Check whether --enable-jit was given.
4641 if test "${enable_jit+set}" = set; then
4642   enableval=$enable_jit;
4643 else
4644   enableval=default
4645 fi
4646
4647 if test ${enableval} = "no"
4648 then
4649   JIT=
4650
4651 else
4652   case "$llvm_cv_target_arch" in
4653     x86)     TARGET_HAS_JIT=1
4654  ;;
4655     Sparc)   TARGET_HAS_JIT=0
4656  ;;
4657     PowerPC) TARGET_HAS_JIT=1
4658  ;;
4659     x86_64)  TARGET_HAS_JIT=1
4660  ;;
4661     Alpha)   TARGET_HAS_JIT=1
4662  ;;
4663     IA64)    TARGET_HAS_JIT=0
4664  ;;
4665     ARM)     TARGET_HAS_JIT=0
4666  ;;
4667     Mips)    TARGET_HAS_JIT=0
4668  ;;
4669     PIC16)   TARGET_HAS_JIT=0
4670  ;;
4671     *)       TARGET_HAS_JIT=0
4672  ;;
4673   esac
4674 fi
4675
4676 # Check whether --enable-doxygen was given.
4677 if test "${enable_doxygen+set}" = set; then
4678   enableval=$enable_doxygen;
4679 else
4680   enableval=default
4681 fi
4682
4683 case "$enableval" in
4684   yes) ENABLE_DOXYGEN=1
4685  ;;
4686   no)  ENABLE_DOXYGEN=0
4687  ;;
4688   default) ENABLE_DOXYGEN=0
4689  ;;
4690   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4691 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4692    { (exit 1); exit 1; }; } ;;
4693 esac
4694
4695 # Check whether --enable-threads was given.
4696 if test "${enable_threads+set}" = set; then
4697   enableval=$enable_threads;
4698 else
4699   enableval=default
4700 fi
4701
4702 case "$enableval" in
4703   yes) ENABLE_THREADS=1
4704  ;;
4705   no)  ENABLE_THREADS=0
4706  ;;
4707   default) ENABLE_THREADS=1
4708  ;;
4709   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4710 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4711    { (exit 1); exit 1; }; } ;;
4712 esac
4713
4714 cat >>confdefs.h <<_ACEOF
4715 #define ENABLE_THREADS $ENABLE_THREADS
4716 _ACEOF
4717
4718
4719 # Check whether --enable-pic was given.
4720 if test "${enable_pic+set}" = set; then
4721   enableval=$enable_pic;
4722 else
4723   enableval=default
4724 fi
4725
4726 case "$enableval" in
4727   yes) ENABLE_PIC=1
4728  ;;
4729   no)  ENABLE_PIC=0
4730  ;;
4731   default) ENABLE_PIC=0
4732  ;;
4733   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4734 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4735    { (exit 1); exit 1; }; } ;;
4736 esac
4737
4738 cat >>confdefs.h <<_ACEOF
4739 #define ENABLE_PIC $ENABLE_PIC
4740 _ACEOF
4741
4742
4743 TARGETS_TO_BUILD=""
4744 # Check whether --enable-targets was given.
4745 if test "${enable_targets+set}" = set; then
4746   enableval=$enable_targets;
4747 else
4748   enableval=all
4749 fi
4750
4751 case "$enableval" in
4752   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
4753   host-only)
4754     case "$llvm_cv_target_arch" in
4755       x86)     TARGETS_TO_BUILD="X86" ;;
4756       x86_64)  TARGETS_TO_BUILD="X86" ;;
4757       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4758       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4759       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4760       IA64)    TARGETS_TO_BUILD="IA64" ;;
4761       ARM)     TARGETS_TO_BUILD="ARM" ;;
4762       Mips)    TARGETS_TO_BUILD="Mips" ;;
4763       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4764       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4765       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4766 echo "$as_me: error: Can not set target to build" >&2;}
4767    { (exit 1); exit 1; }; } ;;
4768     esac
4769     ;;
4770   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4771       case "$a_target" in
4772         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4773         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4774         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4775         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4776         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4777         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4778         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4779         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4780         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4781         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4782         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4783         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4784         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4785         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4786 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4787    { (exit 1); exit 1; }; } ;;
4788       esac
4789   done
4790   ;;
4791 esac
4792 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4793
4794
4795 # Check whether --enable-cbe-printf-a was given.
4796 if test "${enable_cbe_printf_a+set}" = set; then
4797   enableval=$enable_cbe_printf_a;
4798 else
4799   enableval=default
4800 fi
4801
4802 case "$enableval" in
4803   yes) ENABLE_CBE_PRINTF_A=1
4804  ;;
4805   no)  ENABLE_CBE_PRINTF_A=0
4806  ;;
4807   default)  ENABLE_CBE_PRINTF_A=1
4808  ;;
4809   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4810 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4811    { (exit 1); exit 1; }; } ;;
4812 esac
4813
4814 cat >>confdefs.h <<_ACEOF
4815 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4816 _ACEOF
4817
4818
4819
4820 # Check whether --with-llvmgccdir was given.
4821 if test "${with_llvmgccdir+set}" = set; then
4822   withval=$with_llvmgccdir;
4823 else
4824   withval=default
4825 fi
4826
4827 case "$withval" in
4828   default) WITH_LLVMGCCDIR=default ;;
4829   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4830   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4831 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4832    { (exit 1); exit 1; }; } ;;
4833 esac
4834
4835
4836 # Check whether --with-llvmgcc was given.
4837 if test "${with_llvmgcc+set}" = set; then
4838   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4839       WITH_LLVMGCCDIR=""
4840 fi
4841
4842
4843
4844 # Check whether --with-llvmgxx was given.
4845 if test "${with_llvmgxx+set}" = set; then
4846   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4847     WITH_LLVMGCCDIR=""
4848 fi
4849
4850
4851 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4852    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4853 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4854    { (exit 1); exit 1; }; };
4855 fi
4856
4857 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4858    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4859 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4860    { (exit 1); exit 1; }; };
4861 fi
4862
4863
4864 # Check whether --with-extra-options was given.
4865 if test "${with_extra_options+set}" = set; then
4866   withval=$with_extra_options;
4867 else
4868   withval=default
4869 fi
4870
4871 case "$withval" in
4872   default) EXTRA_OPTIONS= ;;
4873   *) EXTRA_OPTIONS=$withval ;;
4874 esac
4875 EXTRA_OPTIONS=$EXTRA_OPTIONS
4876
4877
4878 # Check whether --enable-bindings was given.
4879 if test "${enable_bindings+set}" = set; then
4880   enableval=$enable_bindings;
4881 else
4882   enableval=default
4883 fi
4884
4885 BINDINGS_TO_BUILD=""
4886 case "$enableval" in
4887   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4888   all ) BINDINGS_TO_BUILD="ocaml" ;;
4889   none | no) BINDINGS_TO_BUILD="" ;;
4890   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4891       case "$a_binding" in
4892         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4893         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4894 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4895    { (exit 1); exit 1; }; } ;;
4896       esac
4897   done
4898   ;;
4899 esac
4900
4901
4902 # Check whether --with-ocaml-libdir was given.
4903 if test "${with_ocaml_libdir+set}" = set; then
4904   withval=$with_ocaml_libdir;
4905 else
4906   withval=auto
4907 fi
4908
4909 case "$withval" in
4910   auto) with_ocaml_libdir="$withval" ;;
4911   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4912   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4913 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4914    { (exit 1); exit 1; }; } ;;
4915 esac
4916
4917
4918 ac_ext=c
4919 ac_cpp='$CPP $CPPFLAGS'
4920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4924 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4925 # On Suns, sometimes $CPP names a directory.
4926 if test -n "$CPP" && test -d "$CPP"; then
4927   CPP=
4928 fi
4929 if test -z "$CPP"; then
4930   if test "${ac_cv_prog_CPP+set}" = set; then
4931   echo $ECHO_N "(cached) $ECHO_C" >&6
4932 else
4933       # Double quotes because CPP needs to be expanded
4934     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4935     do
4936       ac_preproc_ok=false
4937 for ac_c_preproc_warn_flag in '' yes
4938 do
4939   # Use a header file that comes with gcc, so configuring glibc
4940   # with a fresh cross-compiler works.
4941   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4942   # <limits.h> exists even on freestanding compilers.
4943   # On the NeXT, cc -E runs the code through the compiler's parser,
4944   # not just through cpp. "Syntax error" is here to catch this case.
4945   cat >conftest.$ac_ext <<_ACEOF
4946 /* confdefs.h.  */
4947 _ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h.  */
4951 #ifdef __STDC__
4952 # include <limits.h>
4953 #else
4954 # include <assert.h>
4955 #endif
4956                      Syntax error
4957 _ACEOF
4958 if { (ac_try="$ac_cpp conftest.$ac_ext"
4959 case "(($ac_try" in
4960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961   *) ac_try_echo=$ac_try;;
4962 esac
4963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4964   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4965   ac_status=$?
4966   grep -v '^ *+' conftest.er1 >conftest.err
4967   rm -f conftest.er1
4968   cat conftest.err >&5
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); } >/dev/null; then
4971   if test -s conftest.err; then
4972     ac_cpp_err=$ac_c_preproc_warn_flag
4973     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4974   else
4975     ac_cpp_err=
4976   fi
4977 else
4978   ac_cpp_err=yes
4979 fi
4980 if test -z "$ac_cpp_err"; then
4981   :
4982 else
4983   echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4985
4986   # Broken: fails on valid input.
4987 continue
4988 fi
4989
4990 rm -f conftest.err conftest.$ac_ext
4991
4992   # OK, works on sane cases.  Now check whether nonexistent headers
4993   # can be detected and how.
4994   cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h.  */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h.  */
5000 #include <ac_nonexistent.h>
5001 _ACEOF
5002 if { (ac_try="$ac_cpp conftest.$ac_ext"
5003 case "(($ac_try" in
5004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005   *) ac_try_echo=$ac_try;;
5006 esac
5007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5008   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5009   ac_status=$?
5010   grep -v '^ *+' conftest.er1 >conftest.err
5011   rm -f conftest.er1
5012   cat conftest.err >&5
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); } >/dev/null; then
5015   if test -s conftest.err; then
5016     ac_cpp_err=$ac_c_preproc_warn_flag
5017     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5018   else
5019     ac_cpp_err=
5020   fi
5021 else
5022   ac_cpp_err=yes
5023 fi
5024 if test -z "$ac_cpp_err"; then
5025   # Broken: success on invalid input.
5026 continue
5027 else
5028   echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5030
5031   # Passes both tests.
5032 ac_preproc_ok=:
5033 break
5034 fi
5035
5036 rm -f conftest.err conftest.$ac_ext
5037
5038 done
5039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5040 rm -f conftest.err conftest.$ac_ext
5041 if $ac_preproc_ok; then
5042   break
5043 fi
5044
5045     done
5046     ac_cv_prog_CPP=$CPP
5047
5048 fi
5049   CPP=$ac_cv_prog_CPP
5050 else
5051   ac_cv_prog_CPP=$CPP
5052 fi
5053 { echo "$as_me:$LINENO: result: $CPP" >&5
5054 echo "${ECHO_T}$CPP" >&6; }
5055 ac_preproc_ok=false
5056 for ac_c_preproc_warn_flag in '' yes
5057 do
5058   # Use a header file that comes with gcc, so configuring glibc
5059   # with a fresh cross-compiler works.
5060   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5061   # <limits.h> exists even on freestanding compilers.
5062   # On the NeXT, cc -E runs the code through the compiler's parser,
5063   # not just through cpp. "Syntax error" is here to catch this case.
5064   cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h.  */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h.  */
5070 #ifdef __STDC__
5071 # include <limits.h>
5072 #else
5073 # include <assert.h>
5074 #endif
5075                      Syntax error
5076 _ACEOF
5077 if { (ac_try="$ac_cpp conftest.$ac_ext"
5078 case "(($ac_try" in
5079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080   *) ac_try_echo=$ac_try;;
5081 esac
5082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5084   ac_status=$?
5085   grep -v '^ *+' conftest.er1 >conftest.err
5086   rm -f conftest.er1
5087   cat conftest.err >&5
5088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089   (exit $ac_status); } >/dev/null; then
5090   if test -s conftest.err; then
5091     ac_cpp_err=$ac_c_preproc_warn_flag
5092     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5093   else
5094     ac_cpp_err=
5095   fi
5096 else
5097   ac_cpp_err=yes
5098 fi
5099 if test -z "$ac_cpp_err"; then
5100   :
5101 else
5102   echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5104
5105   # Broken: fails on valid input.
5106 continue
5107 fi
5108
5109 rm -f conftest.err conftest.$ac_ext
5110
5111   # OK, works on sane cases.  Now check whether nonexistent headers
5112   # can be detected and how.
5113   cat >conftest.$ac_ext <<_ACEOF
5114 /* confdefs.h.  */
5115 _ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h.  */
5119 #include <ac_nonexistent.h>
5120 _ACEOF
5121 if { (ac_try="$ac_cpp conftest.$ac_ext"
5122 case "(($ac_try" in
5123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124   *) ac_try_echo=$ac_try;;
5125 esac
5126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5128   ac_status=$?
5129   grep -v '^ *+' conftest.er1 >conftest.err
5130   rm -f conftest.er1
5131   cat conftest.err >&5
5132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133   (exit $ac_status); } >/dev/null; then
5134   if test -s conftest.err; then
5135     ac_cpp_err=$ac_c_preproc_warn_flag
5136     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5137   else
5138     ac_cpp_err=
5139   fi
5140 else
5141   ac_cpp_err=yes
5142 fi
5143 if test -z "$ac_cpp_err"; then
5144   # Broken: success on invalid input.
5145 continue
5146 else
5147   echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5149
5150   # Passes both tests.
5151 ac_preproc_ok=:
5152 break
5153 fi
5154
5155 rm -f conftest.err conftest.$ac_ext
5156
5157 done
5158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5159 rm -f conftest.err conftest.$ac_ext
5160 if $ac_preproc_ok; then
5161   :
5162 else
5163   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5164 See \`config.log' for more details." >&5
5165 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5166 See \`config.log' for more details." >&2;}
5167    { (exit 1); exit 1; }; }
5168 fi
5169
5170 ac_ext=c
5171 ac_cpp='$CPP $CPPFLAGS'
5172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5175
5176 ac_ext=c
5177 ac_cpp='$CPP $CPPFLAGS'
5178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5181 if test -n "$ac_tool_prefix"; then
5182   for ac_prog in gcc
5183   do
5184     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5188 if test "${ac_cv_prog_CC+set}" = set; then
5189   echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191   if test -n "$CC"; then
5192   ac_cv_prog_CC="$CC" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5196 do
5197   IFS=$as_save_IFS
5198   test -z "$as_dir" && as_dir=.
5199   for ac_exec_ext in '' $ac_executable_extensions; do
5200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5201     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203     break 2
5204   fi
5205 done
5206 done
5207 IFS=$as_save_IFS
5208
5209 fi
5210 fi
5211 CC=$ac_cv_prog_CC
5212 if test -n "$CC"; then
5213   { echo "$as_me:$LINENO: result: $CC" >&5
5214 echo "${ECHO_T}$CC" >&6; }
5215 else
5216   { echo "$as_me:$LINENO: result: no" >&5
5217 echo "${ECHO_T}no" >&6; }
5218 fi
5219
5220
5221     test -n "$CC" && break
5222   done
5223 fi
5224 if test -z "$CC"; then
5225   ac_ct_CC=$CC
5226   for ac_prog in gcc
5227 do
5228   # Extract the first word of "$ac_prog", so it can be a program name with args.
5229 set dummy $ac_prog; ac_word=$2
5230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5232 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5233   echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235   if test -n "$ac_ct_CC"; then
5236   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5237 else
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5240 do
5241   IFS=$as_save_IFS
5242   test -z "$as_dir" && as_dir=.
5243   for ac_exec_ext in '' $ac_executable_extensions; do
5244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5245     ac_cv_prog_ac_ct_CC="$ac_prog"
5246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247     break 2
5248   fi
5249 done
5250 done
5251 IFS=$as_save_IFS
5252
5253 fi
5254 fi
5255 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5256 if test -n "$ac_ct_CC"; then
5257   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5258 echo "${ECHO_T}$ac_ct_CC" >&6; }
5259 else
5260   { echo "$as_me:$LINENO: result: no" >&5
5261 echo "${ECHO_T}no" >&6; }
5262 fi
5263
5264
5265   test -n "$ac_ct_CC" && break
5266 done
5267
5268   if test "x$ac_ct_CC" = x; then
5269     CC=""
5270   else
5271     case $cross_compiling:$ac_tool_warned in
5272 yes:)
5273 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5274 whose name does not start with the host triplet.  If you think this
5275 configuration is useful to you, please write to autoconf@gnu.org." >&5
5276 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5277 whose name does not start with the host triplet.  If you think this
5278 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5279 ac_tool_warned=yes ;;
5280 esac
5281     CC=$ac_ct_CC
5282   fi
5283 fi
5284
5285
5286 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5287 See \`config.log' for more details." >&5
5288 echo "$as_me: error: no acceptable C compiler found in \$PATH
5289 See \`config.log' for more details." >&2;}
5290    { (exit 1); exit 1; }; }
5291
5292 # Provide some information about the compiler.
5293 echo "$as_me:$LINENO: checking for C compiler version" >&5
5294 ac_compiler=`set X $ac_compile; echo $2`
5295 { (ac_try="$ac_compiler --version >&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 --version >&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 { (ac_try="$ac_compiler -V >&5"
5316 case "(($ac_try" in
5317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318   *) ac_try_echo=$ac_try;;
5319 esac
5320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321   (eval "$ac_compiler -V >&5") 2>&5
5322   ac_status=$?
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); }
5325
5326 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5327 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5328 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5329   echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331   cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h.  */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h.  */
5337
5338 int
5339 main ()
5340 {
5341 #ifndef __GNUC__
5342        choke me
5343 #endif
5344
5345   ;
5346   return 0;
5347 }
5348 _ACEOF
5349 rm -f conftest.$ac_objext
5350 if { (ac_try="$ac_compile"
5351 case "(($ac_try" in
5352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353   *) ac_try_echo=$ac_try;;
5354 esac
5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356   (eval "$ac_compile") 2>conftest.er1
5357   ac_status=$?
5358   grep -v '^ *+' conftest.er1 >conftest.err
5359   rm -f conftest.er1
5360   cat conftest.err >&5
5361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362   (exit $ac_status); } &&
5363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5373          { ac_try='test -s conftest.$ac_objext'
5374   { (case "(($ac_try" in
5375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376   *) ac_try_echo=$ac_try;;
5377 esac
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379   (eval "$ac_try") 2>&5
5380   ac_status=$?
5381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382   (exit $ac_status); }; }; then
5383   ac_compiler_gnu=yes
5384 else
5385   echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5387
5388         ac_compiler_gnu=no
5389 fi
5390
5391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5393
5394 fi
5395 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5396 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5397 GCC=`test $ac_compiler_gnu = yes && echo yes`
5398 ac_test_CFLAGS=${CFLAGS+set}
5399 ac_save_CFLAGS=$CFLAGS
5400 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5401 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5402 if test "${ac_cv_prog_cc_g+set}" = set; then
5403   echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405   ac_save_c_werror_flag=$ac_c_werror_flag
5406    ac_c_werror_flag=yes
5407    ac_cv_prog_cc_g=no
5408    CFLAGS="-g"
5409    cat >conftest.$ac_ext <<_ACEOF
5410 /* confdefs.h.  */
5411 _ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h.  */
5415
5416 int
5417 main ()
5418 {
5419
5420   ;
5421   return 0;
5422 }
5423 _ACEOF
5424 rm -f conftest.$ac_objext
5425 if { (ac_try="$ac_compile"
5426 case "(($ac_try" in
5427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428   *) ac_try_echo=$ac_try;;
5429 esac
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431   (eval "$ac_compile") 2>conftest.er1
5432   ac_status=$?
5433   grep -v '^ *+' conftest.er1 >conftest.err
5434   rm -f conftest.er1
5435   cat conftest.err >&5
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); } &&
5438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5448          { ac_try='test -s conftest.$ac_objext'
5449   { (case "(($ac_try" in
5450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451   *) ac_try_echo=$ac_try;;
5452 esac
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454   (eval "$ac_try") 2>&5
5455   ac_status=$?
5456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); }; }; then
5458   ac_cv_prog_cc_g=yes
5459 else
5460   echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5462
5463         CFLAGS=""
5464       cat >conftest.$ac_ext <<_ACEOF
5465 /* confdefs.h.  */
5466 _ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h.  */
5470
5471 int
5472 main ()
5473 {
5474
5475   ;
5476   return 0;
5477 }
5478 _ACEOF
5479 rm -f conftest.$ac_objext
5480 if { (ac_try="$ac_compile"
5481 case "(($ac_try" in
5482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483   *) ac_try_echo=$ac_try;;
5484 esac
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486   (eval "$ac_compile") 2>conftest.er1
5487   ac_status=$?
5488   grep -v '^ *+' conftest.er1 >conftest.err
5489   rm -f conftest.er1
5490   cat conftest.err >&5
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); } &&
5493          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5503          { ac_try='test -s conftest.$ac_objext'
5504   { (case "(($ac_try" in
5505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506   *) ac_try_echo=$ac_try;;
5507 esac
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509   (eval "$ac_try") 2>&5
5510   ac_status=$?
5511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512   (exit $ac_status); }; }; then
5513   :
5514 else
5515   echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5517
5518         ac_c_werror_flag=$ac_save_c_werror_flag
5519          CFLAGS="-g"
5520          cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h.  */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h.  */
5526
5527 int
5528 main ()
5529 {
5530
5531   ;
5532   return 0;
5533 }
5534 _ACEOF
5535 rm -f conftest.$ac_objext
5536 if { (ac_try="$ac_compile"
5537 case "(($ac_try" in
5538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539   *) ac_try_echo=$ac_try;;
5540 esac
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542   (eval "$ac_compile") 2>conftest.er1
5543   ac_status=$?
5544   grep -v '^ *+' conftest.er1 >conftest.err
5545   rm -f conftest.er1
5546   cat conftest.err >&5
5547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548   (exit $ac_status); } &&
5549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5559          { ac_try='test -s conftest.$ac_objext'
5560   { (case "(($ac_try" in
5561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562   *) ac_try_echo=$ac_try;;
5563 esac
5564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565   (eval "$ac_try") 2>&5
5566   ac_status=$?
5567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568   (exit $ac_status); }; }; then
5569   ac_cv_prog_cc_g=yes
5570 else
5571   echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5573
5574
5575 fi
5576
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 fi
5579
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 fi
5582
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584    ac_c_werror_flag=$ac_save_c_werror_flag
5585 fi
5586 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5587 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5588 if test "$ac_test_CFLAGS" = set; then
5589   CFLAGS=$ac_save_CFLAGS
5590 elif test $ac_cv_prog_cc_g = yes; then
5591   if test "$GCC" = yes; then
5592     CFLAGS="-g -O2"
5593   else
5594     CFLAGS="-g"
5595   fi
5596 else
5597   if test "$GCC" = yes; then
5598     CFLAGS="-O2"
5599   else
5600     CFLAGS=
5601   fi
5602 fi
5603 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5604 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5605 if test "${ac_cv_prog_cc_c89+set}" = set; then
5606   echo $ECHO_N "(cached) $ECHO_C" >&6
5607 else
5608   ac_cv_prog_cc_c89=no
5609 ac_save_CC=$CC
5610 cat >conftest.$ac_ext <<_ACEOF
5611 /* confdefs.h.  */
5612 _ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h.  */
5616 #include <stdarg.h>
5617 #include <stdio.h>
5618 #include <sys/types.h>
5619 #include <sys/stat.h>
5620 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5621 struct buf { int x; };
5622 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5623 static char *e (p, i)
5624      char **p;
5625      int i;
5626 {
5627   return p[i];
5628 }
5629 static char *f (char * (*g) (char **, int), char **p, ...)
5630 {
5631   char *s;
5632   va_list v;
5633   va_start (v,p);
5634   s = g (p, va_arg (v,int));
5635   va_end (v);
5636   return s;
5637 }
5638
5639 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5640    function prototypes and stuff, but not '\xHH' hex character constants.
5641    These don't provoke an error unfortunately, instead are silently treated
5642    as 'x'.  The following induces an error, until -std is added to get
5643    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5644    array size at least.  It's necessary to write '\x00'==0 to get something
5645    that's true only with -std.  */
5646 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5647
5648 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5649    inside strings and character constants.  */
5650 #define FOO(x) 'x'
5651 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5652
5653 int test (int i, double x);
5654 struct s1 {int (*f) (int a);};
5655 struct s2 {int (*f) (double a);};
5656 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5657 int argc;
5658 char **argv;
5659 int
5660 main ()
5661 {
5662 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5663   ;
5664   return 0;
5665 }
5666 _ACEOF
5667 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5668         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5669 do
5670   CC="$ac_save_CC $ac_arg"
5671   rm -f conftest.$ac_objext
5672 if { (ac_try="$ac_compile"
5673 case "(($ac_try" in
5674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675   *) ac_try_echo=$ac_try;;
5676 esac
5677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678   (eval "$ac_compile") 2>conftest.er1
5679   ac_status=$?
5680   grep -v '^ *+' conftest.er1 >conftest.err
5681   rm -f conftest.er1
5682   cat conftest.err >&5
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); } &&
5685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5695          { ac_try='test -s conftest.$ac_objext'
5696   { (case "(($ac_try" in
5697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698   *) ac_try_echo=$ac_try;;
5699 esac
5700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701   (eval "$ac_try") 2>&5
5702   ac_status=$?
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); }; }; then
5705   ac_cv_prog_cc_c89=$ac_arg
5706 else
5707   echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5709
5710
5711 fi
5712
5713 rm -f core conftest.err conftest.$ac_objext
5714   test "x$ac_cv_prog_cc_c89" != "xno" && break
5715 done
5716 rm -f conftest.$ac_ext
5717 CC=$ac_save_CC
5718
5719 fi
5720 # AC_CACHE_VAL
5721 case "x$ac_cv_prog_cc_c89" in
5722   x)
5723     { echo "$as_me:$LINENO: result: none needed" >&5
5724 echo "${ECHO_T}none needed" >&6; } ;;
5725   xno)
5726     { echo "$as_me:$LINENO: result: unsupported" >&5
5727 echo "${ECHO_T}unsupported" >&6; } ;;
5728   *)
5729     CC="$CC $ac_cv_prog_cc_c89"
5730     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5731 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5732 esac
5733
5734
5735 ac_ext=c
5736 ac_cpp='$CPP $CPPFLAGS'
5737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5740
5741 ac_ext=cpp
5742 ac_cpp='$CXXCPP $CPPFLAGS'
5743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5746 if test -z "$CXX"; then
5747   if test -n "$CCC"; then
5748     CXX=$CCC
5749   else
5750     if test -n "$ac_tool_prefix"; then
5751   for ac_prog in g++
5752   do
5753     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5757 if test "${ac_cv_prog_CXX+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760   if test -n "$CXX"; then
5761   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5762 else
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766   IFS=$as_save_IFS
5767   test -z "$as_dir" && as_dir=.
5768   for ac_exec_ext in '' $ac_executable_extensions; do
5769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5770     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772     break 2
5773   fi
5774 done
5775 done
5776 IFS=$as_save_IFS
5777
5778 fi
5779 fi
5780 CXX=$ac_cv_prog_CXX
5781 if test -n "$CXX"; then
5782   { echo "$as_me:$LINENO: result: $CXX" >&5
5783 echo "${ECHO_T}$CXX" >&6; }
5784 else
5785   { echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6; }
5787 fi
5788
5789
5790     test -n "$CXX" && break
5791   done
5792 fi
5793 if test -z "$CXX"; then
5794   ac_ct_CXX=$CXX
5795   for ac_prog in g++
5796 do
5797   # Extract the first word of "$ac_prog", so it can be a program name with args.
5798 set dummy $ac_prog; ac_word=$2
5799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5801 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5802   echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804   if test -n "$ac_ct_CXX"; then
5805   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5806 else
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5809 do
5810   IFS=$as_save_IFS
5811   test -z "$as_dir" && as_dir=.
5812   for ac_exec_ext in '' $ac_executable_extensions; do
5813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5814     ac_cv_prog_ac_ct_CXX="$ac_prog"
5815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816     break 2
5817   fi
5818 done
5819 done
5820 IFS=$as_save_IFS
5821
5822 fi
5823 fi
5824 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5825 if test -n "$ac_ct_CXX"; then
5826   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5827 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5828 else
5829   { echo "$as_me:$LINENO: result: no" >&5
5830 echo "${ECHO_T}no" >&6; }
5831 fi
5832
5833
5834   test -n "$ac_ct_CXX" && break
5835 done
5836
5837   if test "x$ac_ct_CXX" = x; then
5838     CXX="g++"
5839   else
5840     case $cross_compiling:$ac_tool_warned in
5841 yes:)
5842 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5843 whose name does not start with the host triplet.  If you think this
5844 configuration is useful to you, please write to autoconf@gnu.org." >&5
5845 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5846 whose name does not start with the host triplet.  If you think this
5847 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5848 ac_tool_warned=yes ;;
5849 esac
5850     CXX=$ac_ct_CXX
5851   fi
5852 fi
5853
5854   fi
5855 fi
5856 # Provide some information about the compiler.
5857 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5858 ac_compiler=`set X $ac_compile; echo $2`
5859 { (ac_try="$ac_compiler --version >&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 --version >&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 { (ac_try="$ac_compiler -V >&5"
5880 case "(($ac_try" in
5881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882   *) ac_try_echo=$ac_try;;
5883 esac
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885   (eval "$ac_compiler -V >&5") 2>&5
5886   ac_status=$?
5887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888   (exit $ac_status); }
5889
5890 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5891 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5892 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5893   echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895   cat >conftest.$ac_ext <<_ACEOF
5896 /* confdefs.h.  */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h.  */
5901
5902 int
5903 main ()
5904 {
5905 #ifndef __GNUC__
5906        choke me
5907 #endif
5908
5909   ;
5910   return 0;
5911 }
5912 _ACEOF
5913 rm -f conftest.$ac_objext
5914 if { (ac_try="$ac_compile"
5915 case "(($ac_try" in
5916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917   *) ac_try_echo=$ac_try;;
5918 esac
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920   (eval "$ac_compile") 2>conftest.er1
5921   ac_status=$?
5922   grep -v '^ *+' conftest.er1 >conftest.err
5923   rm -f conftest.er1
5924   cat conftest.err >&5
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); } &&
5927          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
5937          { ac_try='test -s conftest.$ac_objext'
5938   { (case "(($ac_try" in
5939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940   *) ac_try_echo=$ac_try;;
5941 esac
5942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943   (eval "$ac_try") 2>&5
5944   ac_status=$?
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); }; }; then
5947   ac_compiler_gnu=yes
5948 else
5949   echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5951
5952         ac_compiler_gnu=no
5953 fi
5954
5955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5957
5958 fi
5959 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5960 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5961 GXX=`test $ac_compiler_gnu = yes && echo yes`
5962 ac_test_CXXFLAGS=${CXXFLAGS+set}
5963 ac_save_CXXFLAGS=$CXXFLAGS
5964 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5965 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5966 if test "${ac_cv_prog_cxx_g+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5970    ac_cxx_werror_flag=yes
5971    ac_cv_prog_cxx_g=no
5972    CXXFLAGS="-g"
5973    cat >conftest.$ac_ext <<_ACEOF
5974 /* confdefs.h.  */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h.  */
5979
5980 int
5981 main ()
5982 {
5983
5984   ;
5985   return 0;
5986 }
5987 _ACEOF
5988 rm -f conftest.$ac_objext
5989 if { (ac_try="$ac_compile"
5990 case "(($ac_try" in
5991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992   *) ac_try_echo=$ac_try;;
5993 esac
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995   (eval "$ac_compile") 2>conftest.er1
5996   ac_status=$?
5997   grep -v '^ *+' conftest.er1 >conftest.err
5998   rm -f conftest.er1
5999   cat conftest.err >&5
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); } &&
6002          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6012          { ac_try='test -s conftest.$ac_objext'
6013   { (case "(($ac_try" in
6014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015   *) ac_try_echo=$ac_try;;
6016 esac
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018   (eval "$ac_try") 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; }; then
6022   ac_cv_prog_cxx_g=yes
6023 else
6024   echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6026
6027         CXXFLAGS=""
6028       cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h.  */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h.  */
6034
6035 int
6036 main ()
6037 {
6038
6039   ;
6040   return 0;
6041 }
6042 _ACEOF
6043 rm -f conftest.$ac_objext
6044 if { (ac_try="$ac_compile"
6045 case "(($ac_try" in
6046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047   *) ac_try_echo=$ac_try;;
6048 esac
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050   (eval "$ac_compile") 2>conftest.er1
6051   ac_status=$?
6052   grep -v '^ *+' conftest.er1 >conftest.err
6053   rm -f conftest.er1
6054   cat conftest.err >&5
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); } &&
6057          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6067          { ac_try='test -s conftest.$ac_objext'
6068   { (case "(($ac_try" in
6069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070   *) ac_try_echo=$ac_try;;
6071 esac
6072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073   (eval "$ac_try") 2>&5
6074   ac_status=$?
6075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076   (exit $ac_status); }; }; then
6077   :
6078 else
6079   echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6081
6082         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6083          CXXFLAGS="-g"
6084          cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h.  */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h.  */
6090
6091 int
6092 main ()
6093 {
6094
6095   ;
6096   return 0;
6097 }
6098 _ACEOF
6099 rm -f conftest.$ac_objext
6100 if { (ac_try="$ac_compile"
6101 case "(($ac_try" in
6102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103   *) ac_try_echo=$ac_try;;
6104 esac
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106   (eval "$ac_compile") 2>conftest.er1
6107   ac_status=$?
6108   grep -v '^ *+' conftest.er1 >conftest.err
6109   rm -f conftest.er1
6110   cat conftest.err >&5
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); } &&
6113          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6123          { ac_try='test -s conftest.$ac_objext'
6124   { (case "(($ac_try" in
6125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126   *) ac_try_echo=$ac_try;;
6127 esac
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129   (eval "$ac_try") 2>&5
6130   ac_status=$?
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); }; }; then
6133   ac_cv_prog_cxx_g=yes
6134 else
6135   echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6137
6138
6139 fi
6140
6141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6142 fi
6143
6144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145 fi
6146
6147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6149 fi
6150 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6151 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6152 if test "$ac_test_CXXFLAGS" = set; then
6153   CXXFLAGS=$ac_save_CXXFLAGS
6154 elif test $ac_cv_prog_cxx_g = yes; then
6155   if test "$GXX" = yes; then
6156     CXXFLAGS="-g -O2"
6157   else
6158     CXXFLAGS="-g"
6159   fi
6160 else
6161   if test "$GXX" = yes; then
6162     CXXFLAGS="-O2"
6163   else
6164     CXXFLAGS=
6165   fi
6166 fi
6167 ac_ext=c
6168 ac_cpp='$CPP $CPPFLAGS'
6169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6172
6173 { echo "$as_me:$LINENO: checking " >&5
6174 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6175 if test "${ac_cv_has_flex+set}" = set; then
6176   echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178   for ac_prog in flex lex
6179 do
6180   # Extract the first word of "$ac_prog", so it can be a program name with args.
6181 set dummy $ac_prog; ac_word=$2
6182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6184 if test "${ac_cv_prog_LEX+set}" = set; then
6185   echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187   if test -n "$LEX"; then
6188   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6189 else
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6192 do
6193   IFS=$as_save_IFS
6194   test -z "$as_dir" && as_dir=.
6195   for ac_exec_ext in '' $ac_executable_extensions; do
6196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6197     ac_cv_prog_LEX="$ac_prog"
6198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199     break 2
6200   fi
6201 done
6202 done
6203 IFS=$as_save_IFS
6204
6205 fi
6206 fi
6207 LEX=$ac_cv_prog_LEX
6208 if test -n "$LEX"; then
6209   { echo "$as_me:$LINENO: result: $LEX" >&5
6210 echo "${ECHO_T}$LEX" >&6; }
6211 else
6212   { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6214 fi
6215
6216
6217   test -n "$LEX" && break
6218 done
6219 test -n "$LEX" || LEX=":"
6220
6221 if test -z "$LEXLIB"
6222 then
6223   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6224 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6225 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6226   echo $ECHO_N "(cached) $ECHO_C" >&6
6227 else
6228   ac_check_lib_save_LIBS=$LIBS
6229 LIBS="-lfl  $LIBS"
6230 cat >conftest.$ac_ext <<_ACEOF
6231 /* confdefs.h.  */
6232 _ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h.  */
6236
6237 /* Override any GCC internal prototype to avoid an error.
6238    Use char because int might match the return type of a GCC
6239    builtin and then its argument prototype would still apply.  */
6240 #ifdef __cplusplus
6241 extern "C"
6242 #endif
6243 char yywrap ();
6244 int
6245 main ()
6246 {
6247 return yywrap ();
6248   ;
6249   return 0;
6250 }
6251 _ACEOF
6252 rm -f conftest.$ac_objext conftest$ac_exeext
6253 if { (ac_try="$ac_link"
6254 case "(($ac_try" in
6255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256   *) ac_try_echo=$ac_try;;
6257 esac
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259   (eval "$ac_link") 2>conftest.er1
6260   ac_status=$?
6261   grep -v '^ *+' conftest.er1 >conftest.err
6262   rm -f conftest.er1
6263   cat conftest.err >&5
6264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265   (exit $ac_status); } &&
6266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6276          { ac_try='test -s conftest$ac_exeext'
6277   { (case "(($ac_try" in
6278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279   *) ac_try_echo=$ac_try;;
6280 esac
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282   (eval "$ac_try") 2>&5
6283   ac_status=$?
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); }; }; then
6286   ac_cv_lib_fl_yywrap=yes
6287 else
6288   echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6290
6291         ac_cv_lib_fl_yywrap=no
6292 fi
6293
6294 rm -f core conftest.err conftest.$ac_objext \
6295       conftest$ac_exeext conftest.$ac_ext
6296 LIBS=$ac_check_lib_save_LIBS
6297 fi
6298 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6299 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6300 if test $ac_cv_lib_fl_yywrap = yes; then
6301   LEXLIB="-lfl"
6302 else
6303   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6304 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6305 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308   ac_check_lib_save_LIBS=$LIBS
6309 LIBS="-ll  $LIBS"
6310 cat >conftest.$ac_ext <<_ACEOF
6311 /* confdefs.h.  */
6312 _ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h.  */
6316
6317 /* Override any GCC internal prototype to avoid an error.
6318    Use char because int might match the return type of a GCC
6319    builtin and then its argument prototype would still apply.  */
6320 #ifdef __cplusplus
6321 extern "C"
6322 #endif
6323 char yywrap ();
6324 int
6325 main ()
6326 {
6327 return yywrap ();
6328   ;
6329   return 0;
6330 }
6331 _ACEOF
6332 rm -f conftest.$ac_objext conftest$ac_exeext
6333 if { (ac_try="$ac_link"
6334 case "(($ac_try" in
6335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336   *) ac_try_echo=$ac_try;;
6337 esac
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339   (eval "$ac_link") 2>conftest.er1
6340   ac_status=$?
6341   grep -v '^ *+' conftest.er1 >conftest.err
6342   rm -f conftest.er1
6343   cat conftest.err >&5
6344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345   (exit $ac_status); } &&
6346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6356          { ac_try='test -s conftest$ac_exeext'
6357   { (case "(($ac_try" in
6358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6359   *) ac_try_echo=$ac_try;;
6360 esac
6361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6362   (eval "$ac_try") 2>&5
6363   ac_status=$?
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); }; }; then
6366   ac_cv_lib_l_yywrap=yes
6367 else
6368   echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6370
6371         ac_cv_lib_l_yywrap=no
6372 fi
6373
6374 rm -f core conftest.err conftest.$ac_objext \
6375       conftest$ac_exeext conftest.$ac_ext
6376 LIBS=$ac_check_lib_save_LIBS
6377 fi
6378 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6379 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6380 if test $ac_cv_lib_l_yywrap = yes; then
6381   LEXLIB="-ll"
6382 fi
6383
6384 fi
6385
6386 fi
6387
6388 if test "x$LEX" != "x:"; then
6389   { echo "$as_me:$LINENO: checking lex output file root" >&5
6390 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6391 if test "${ac_cv_prog_lex_root+set}" = set; then
6392   echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394   # The minimal lex program is just a single line: %%.  But some broken lexes
6395 # (Solaris, I think it was) want two %% lines, so accommodate them.
6396 cat >conftest.l <<_ACEOF
6397 %%
6398 %%
6399 _ACEOF
6400 { (ac_try="$LEX conftest.l"
6401 case "(($ac_try" in
6402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403   *) ac_try_echo=$ac_try;;
6404 esac
6405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406   (eval "$LEX conftest.l") 2>&5
6407   ac_status=$?
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); }
6410 if test -f lex.yy.c; then
6411   ac_cv_prog_lex_root=lex.yy
6412 elif test -f lexyy.c; then
6413   ac_cv_prog_lex_root=lexyy
6414 else
6415   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6416 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6417    { (exit 1); exit 1; }; }
6418 fi
6419 fi
6420 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6421 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6422 rm -f conftest.l
6423 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6424
6425 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6426 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6427 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6428   echo $ECHO_N "(cached) $ECHO_C" >&6
6429 else
6430   # POSIX says lex can declare yytext either as a pointer or an array; the
6431 # default is implementation-dependent. Figure out which it is, since
6432 # not all implementations provide the %pointer and %array declarations.
6433 ac_cv_prog_lex_yytext_pointer=no
6434 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6435 ac_save_LIBS=$LIBS
6436 LIBS="$LIBS $LEXLIB"
6437 cat >conftest.$ac_ext <<_ACEOF
6438 `cat $LEX_OUTPUT_ROOT.c`
6439 _ACEOF
6440 rm -f conftest.$ac_objext conftest$ac_exeext
6441 if { (ac_try="$ac_link"
6442 case "(($ac_try" in
6443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444   *) ac_try_echo=$ac_try;;
6445 esac
6446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447   (eval "$ac_link") 2>conftest.er1
6448   ac_status=$?
6449   grep -v '^ *+' conftest.er1 >conftest.err
6450   rm -f conftest.er1
6451   cat conftest.err >&5
6452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453   (exit $ac_status); } &&
6454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6464          { ac_try='test -s conftest$ac_exeext'
6465   { (case "(($ac_try" in
6466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467   *) ac_try_echo=$ac_try;;
6468 esac
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470   (eval "$ac_try") 2>&5
6471   ac_status=$?
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); }; }; then
6474   ac_cv_prog_lex_yytext_pointer=yes
6475 else
6476   echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6478
6479
6480 fi
6481
6482 rm -f core conftest.err conftest.$ac_objext \
6483       conftest$ac_exeext conftest.$ac_ext
6484 LIBS=$ac_save_LIBS
6485 rm -f "${LEX_OUTPUT_ROOT}.c"
6486
6487 fi
6488 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6489 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6490 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6491
6492 cat >>confdefs.h <<\_ACEOF
6493 #define YYTEXT_POINTER 1
6494 _ACEOF
6495
6496 fi
6497
6498 fi
6499
6500 fi
6501 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6502 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6503 if test "$LEX" != "flex"; then
6504   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6505 echo "$as_me: error: flex not found but required" >&2;}
6506    { (exit 1); exit 1; }; }
6507 else
6508   FLEX=flex
6509
6510 fi
6511
6512 { echo "$as_me:$LINENO: checking " >&5
6513 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6514 if test "${llvm_cv_has_bison+set}" = set; then
6515   echo $ECHO_N "(cached) $ECHO_C" >&6
6516 else
6517   for ac_prog in 'bison -y' byacc
6518 do
6519   # Extract the first word of "$ac_prog", so it can be a program name with args.
6520 set dummy $ac_prog; ac_word=$2
6521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6523 if test "${ac_cv_prog_YACC+set}" = set; then
6524   echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526   if test -n "$YACC"; then
6527   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6528 else
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6531 do
6532   IFS=$as_save_IFS
6533   test -z "$as_dir" && as_dir=.
6534   for ac_exec_ext in '' $ac_executable_extensions; do
6535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6536     ac_cv_prog_YACC="$ac_prog"
6537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538     break 2
6539   fi
6540 done
6541 done
6542 IFS=$as_save_IFS
6543
6544 fi
6545 fi
6546 YACC=$ac_cv_prog_YACC
6547 if test -n "$YACC"; then
6548   { echo "$as_me:$LINENO: result: $YACC" >&5
6549 echo "${ECHO_T}$YACC" >&6; }
6550 else
6551   { echo "$as_me:$LINENO: result: no" >&5
6552 echo "${ECHO_T}no" >&6; }
6553 fi
6554
6555
6556   test -n "$YACC" && break
6557 done
6558 test -n "$YACC" || YACC="yacc"
6559
6560 fi
6561 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6562 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6563 if test "$YACC" != "bison -y"; then
6564
6565   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6566 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6567 else
6568   BISON=bison
6569
6570 fi
6571
6572 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6573 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6574 if test "${lt_cv_path_NM+set}" = set; then
6575   echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577   if test -n "$NM"; then
6578   # Let the user override the test.
6579   lt_cv_path_NM="$NM"
6580 else
6581   lt_nm_to_check="${ac_tool_prefix}nm"
6582   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6583     lt_nm_to_check="$lt_nm_to_check nm"
6584   fi
6585   for lt_tmp_nm in $lt_nm_to_check; do
6586     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6587     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6588       IFS="$lt_save_ifs"
6589       test -z "$ac_dir" && ac_dir=.
6590       tmp_nm="$ac_dir/$lt_tmp_nm"
6591       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6592         # Check to see if the nm accepts a BSD-compat flag.
6593         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6594         #   nm: unknown option "B" ignored
6595         # Tru64's nm complains that /dev/null is an invalid object file
6596         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6597         */dev/null* | *'Invalid file or object type'*)
6598           lt_cv_path_NM="$tmp_nm -B"
6599           break
6600           ;;
6601         *)
6602           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6603           */dev/null*)
6604             lt_cv_path_NM="$tmp_nm -p"
6605             break
6606             ;;
6607           *)
6608             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6609             continue # so that we can try to find one that supports BSD flags
6610             ;;
6611           esac
6612           ;;
6613         esac
6614       fi
6615     done
6616     IFS="$lt_save_ifs"
6617   done
6618   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6619 fi
6620 fi
6621 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6622 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6623 NM="$lt_cv_path_NM"
6624
6625
6626
6627 { echo "$as_me:$LINENO: checking for GNU make" >&5
6628 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6629 if test "${llvm_cv_gnu_make_command+set}" = set; then
6630   echo $ECHO_N "(cached) $ECHO_C" >&6
6631 else
6632   llvm_cv_gnu_make_command=''
6633  for a in "$MAKE" make gmake gnumake ; do
6634   if test -z "$a" ; then continue ; fi ;
6635   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6636   then
6637    llvm_cv_gnu_make_command=$a ;
6638    break;
6639   fi
6640  done
6641 fi
6642 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6643 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6644  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6645    ifGNUmake='' ;
6646  else
6647    ifGNUmake='#' ;
6648    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6649 echo "${ECHO_T}\"Not found\"" >&6; };
6650  fi
6651
6652
6653 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6654 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6655 LN_S=$as_ln_s
6656 if test "$LN_S" = "ln -s"; then
6657   { echo "$as_me:$LINENO: result: yes" >&5
6658 echo "${ECHO_T}yes" >&6; }
6659 else
6660   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6661 echo "${ECHO_T}no, using $LN_S" >&6; }
6662 fi
6663
6664 # Extract the first word of "cmp", so it can be a program name with args.
6665 set dummy cmp; ac_word=$2
6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668 if test "${ac_cv_path_CMP+set}" = set; then
6669   echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671   case $CMP in
6672   [\\/]* | ?:[\\/]*)
6673   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6674   ;;
6675   *)
6676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679   IFS=$as_save_IFS
6680   test -z "$as_dir" && as_dir=.
6681   for ac_exec_ext in '' $ac_executable_extensions; do
6682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6683     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685     break 2
6686   fi
6687 done
6688 done
6689 IFS=$as_save_IFS
6690
6691   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6692   ;;
6693 esac
6694 fi
6695 CMP=$ac_cv_path_CMP
6696 if test -n "$CMP"; then
6697   { echo "$as_me:$LINENO: result: $CMP" >&5
6698 echo "${ECHO_T}$CMP" >&6; }
6699 else
6700   { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6702 fi
6703
6704
6705 # Extract the first word of "cp", so it can be a program name with args.
6706 set dummy cp; ac_word=$2
6707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709 if test "${ac_cv_path_CP+set}" = set; then
6710   echo $ECHO_N "(cached) $ECHO_C" >&6
6711 else
6712   case $CP in
6713   [\\/]* | ?:[\\/]*)
6714   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6715   ;;
6716   *)
6717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6719 do
6720   IFS=$as_save_IFS
6721   test -z "$as_dir" && as_dir=.
6722   for ac_exec_ext in '' $ac_executable_extensions; do
6723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6724     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726     break 2
6727   fi
6728 done
6729 done
6730 IFS=$as_save_IFS
6731
6732   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6733   ;;
6734 esac
6735 fi
6736 CP=$ac_cv_path_CP
6737 if test -n "$CP"; then
6738   { echo "$as_me:$LINENO: result: $CP" >&5
6739 echo "${ECHO_T}$CP" >&6; }
6740 else
6741   { echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6; }
6743 fi
6744
6745
6746 # Extract the first word of "date", so it can be a program name with args.
6747 set dummy date; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_path_DATE+set}" = set; then
6751   echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753   case $DATE in
6754   [\\/]* | ?:[\\/]*)
6755   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6756   ;;
6757   *)
6758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761   IFS=$as_save_IFS
6762   test -z "$as_dir" && as_dir=.
6763   for ac_exec_ext in '' $ac_executable_extensions; do
6764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6765     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767     break 2
6768   fi
6769 done
6770 done
6771 IFS=$as_save_IFS
6772
6773   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6774   ;;
6775 esac
6776 fi
6777 DATE=$ac_cv_path_DATE
6778 if test -n "$DATE"; then
6779   { echo "$as_me:$LINENO: result: $DATE" >&5
6780 echo "${ECHO_T}$DATE" >&6; }
6781 else
6782   { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6784 fi
6785
6786
6787 # Extract the first word of "find", so it can be a program name with args.
6788 set dummy find; ac_word=$2
6789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6791 if test "${ac_cv_path_FIND+set}" = set; then
6792   echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794   case $FIND in
6795   [\\/]* | ?:[\\/]*)
6796   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6797   ;;
6798   *)
6799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 for as_dir in $PATH
6801 do
6802   IFS=$as_save_IFS
6803   test -z "$as_dir" && as_dir=.
6804   for ac_exec_ext in '' $ac_executable_extensions; do
6805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6806     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808     break 2
6809   fi
6810 done
6811 done
6812 IFS=$as_save_IFS
6813
6814   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6815   ;;
6816 esac
6817 fi
6818 FIND=$ac_cv_path_FIND
6819 if test -n "$FIND"; then
6820   { echo "$as_me:$LINENO: result: $FIND" >&5
6821 echo "${ECHO_T}$FIND" >&6; }
6822 else
6823   { echo "$as_me:$LINENO: result: no" >&5
6824 echo "${ECHO_T}no" >&6; }
6825 fi
6826
6827
6828 # Extract the first word of "grep", so it can be a program name with args.
6829 set dummy grep; ac_word=$2
6830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832 if test "${ac_cv_path_GREP+set}" = set; then
6833   echo $ECHO_N "(cached) $ECHO_C" >&6
6834 else
6835   case $GREP in
6836   [\\/]* | ?:[\\/]*)
6837   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6838   ;;
6839   *)
6840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843   IFS=$as_save_IFS
6844   test -z "$as_dir" && as_dir=.
6845   for ac_exec_ext in '' $ac_executable_extensions; do
6846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6847     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849     break 2
6850   fi
6851 done
6852 done
6853 IFS=$as_save_IFS
6854
6855   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6856   ;;
6857 esac
6858 fi
6859 GREP=$ac_cv_path_GREP
6860 if test -n "$GREP"; then
6861   { echo "$as_me:$LINENO: result: $GREP" >&5
6862 echo "${ECHO_T}$GREP" >&6; }
6863 else
6864   { echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6; }
6866 fi
6867
6868
6869 # Extract the first word of "mkdir", so it can be a program name with args.
6870 set dummy mkdir; ac_word=$2
6871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6873 if test "${ac_cv_path_MKDIR+set}" = set; then
6874   echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876   case $MKDIR in
6877   [\\/]* | ?:[\\/]*)
6878   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6879   ;;
6880   *)
6881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884   IFS=$as_save_IFS
6885   test -z "$as_dir" && as_dir=.
6886   for ac_exec_ext in '' $ac_executable_extensions; do
6887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6888     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890     break 2
6891   fi
6892 done
6893 done
6894 IFS=$as_save_IFS
6895
6896   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6897   ;;
6898 esac
6899 fi
6900 MKDIR=$ac_cv_path_MKDIR
6901 if test -n "$MKDIR"; then
6902   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6903 echo "${ECHO_T}$MKDIR" >&6; }
6904 else
6905   { echo "$as_me:$LINENO: result: no" >&5
6906 echo "${ECHO_T}no" >&6; }
6907 fi
6908
6909
6910 # Extract the first word of "mv", so it can be a program name with args.
6911 set dummy mv; ac_word=$2
6912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914 if test "${ac_cv_path_MV+set}" = set; then
6915   echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917   case $MV in
6918   [\\/]* | ?:[\\/]*)
6919   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6920   ;;
6921   *)
6922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925   IFS=$as_save_IFS
6926   test -z "$as_dir" && as_dir=.
6927   for ac_exec_ext in '' $ac_executable_extensions; do
6928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6929     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931     break 2
6932   fi
6933 done
6934 done
6935 IFS=$as_save_IFS
6936
6937   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6938   ;;
6939 esac
6940 fi
6941 MV=$ac_cv_path_MV
6942 if test -n "$MV"; then
6943   { echo "$as_me:$LINENO: result: $MV" >&5
6944 echo "${ECHO_T}$MV" >&6; }
6945 else
6946   { echo "$as_me:$LINENO: result: no" >&5
6947 echo "${ECHO_T}no" >&6; }
6948 fi
6949
6950
6951 if test -n "$ac_tool_prefix"; then
6952   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6953 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6956 if test "${ac_cv_prog_RANLIB+set}" = set; then
6957   echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959   if test -n "$RANLIB"; then
6960   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6961 else
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 for as_dir in $PATH
6964 do
6965   IFS=$as_save_IFS
6966   test -z "$as_dir" && as_dir=.
6967   for ac_exec_ext in '' $ac_executable_extensions; do
6968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6969     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6971     break 2
6972   fi
6973 done
6974 done
6975 IFS=$as_save_IFS
6976
6977 fi
6978 fi
6979 RANLIB=$ac_cv_prog_RANLIB
6980 if test -n "$RANLIB"; then
6981   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6982 echo "${ECHO_T}$RANLIB" >&6; }
6983 else
6984   { echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6; }
6986 fi
6987
6988
6989 fi
6990 if test -z "$ac_cv_prog_RANLIB"; then
6991   ac_ct_RANLIB=$RANLIB
6992   # Extract the first word of "ranlib", so it can be a program name with args.
6993 set dummy ranlib; ac_word=$2
6994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6997   echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999   if test -n "$ac_ct_RANLIB"; then
7000   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7001 else
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005   IFS=$as_save_IFS
7006   test -z "$as_dir" && as_dir=.
7007   for ac_exec_ext in '' $ac_executable_extensions; do
7008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7009     ac_cv_prog_ac_ct_RANLIB="ranlib"
7010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011     break 2
7012   fi
7013 done
7014 done
7015 IFS=$as_save_IFS
7016
7017 fi
7018 fi
7019 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7020 if test -n "$ac_ct_RANLIB"; then
7021   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7022 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7023 else
7024   { echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6; }
7026 fi
7027
7028   if test "x$ac_ct_RANLIB" = x; then
7029     RANLIB=":"
7030   else
7031     case $cross_compiling:$ac_tool_warned in
7032 yes:)
7033 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7034 whose name does not start with the host triplet.  If you think this
7035 configuration is useful to you, please write to autoconf@gnu.org." >&5
7036 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7037 whose name does not start with the host triplet.  If you think this
7038 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7039 ac_tool_warned=yes ;;
7040 esac
7041     RANLIB=$ac_ct_RANLIB
7042   fi
7043 else
7044   RANLIB="$ac_cv_prog_RANLIB"
7045 fi
7046
7047 # Extract the first word of "rm", so it can be a program name with args.
7048 set dummy rm; ac_word=$2
7049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051 if test "${ac_cv_path_RM+set}" = set; then
7052   echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054   case $RM in
7055   [\\/]* | ?:[\\/]*)
7056   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7057   ;;
7058   *)
7059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 for as_dir in $PATH
7061 do
7062   IFS=$as_save_IFS
7063   test -z "$as_dir" && as_dir=.
7064   for ac_exec_ext in '' $ac_executable_extensions; do
7065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7066     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068     break 2
7069   fi
7070 done
7071 done
7072 IFS=$as_save_IFS
7073
7074   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7075   ;;
7076 esac
7077 fi
7078 RM=$ac_cv_path_RM
7079 if test -n "$RM"; then
7080   { echo "$as_me:$LINENO: result: $RM" >&5
7081 echo "${ECHO_T}$RM" >&6; }
7082 else
7083   { echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6; }
7085 fi
7086
7087
7088 # Extract the first word of "sed", so it can be a program name with args.
7089 set dummy sed; ac_word=$2
7090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7092 if test "${ac_cv_path_SED+set}" = set; then
7093   echo $ECHO_N "(cached) $ECHO_C" >&6
7094 else
7095   case $SED in
7096   [\\/]* | ?:[\\/]*)
7097   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7098   ;;
7099   *)
7100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7102 do
7103   IFS=$as_save_IFS
7104   test -z "$as_dir" && as_dir=.
7105   for ac_exec_ext in '' $ac_executable_extensions; do
7106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7107     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109     break 2
7110   fi
7111 done
7112 done
7113 IFS=$as_save_IFS
7114
7115   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7116   ;;
7117 esac
7118 fi
7119 SED=$ac_cv_path_SED
7120 if test -n "$SED"; then
7121   { echo "$as_me:$LINENO: result: $SED" >&5
7122 echo "${ECHO_T}$SED" >&6; }
7123 else
7124   { echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6; }
7126 fi
7127
7128
7129 # Extract the first word of "tar", so it can be a program name with args.
7130 set dummy tar; ac_word=$2
7131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7133 if test "${ac_cv_path_TAR+set}" = set; then
7134   echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136   case $TAR in
7137   [\\/]* | ?:[\\/]*)
7138   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7139   ;;
7140   *)
7141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7143 do
7144   IFS=$as_save_IFS
7145   test -z "$as_dir" && as_dir=.
7146   for ac_exec_ext in '' $ac_executable_extensions; do
7147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7148     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150     break 2
7151   fi
7152 done
7153 done
7154 IFS=$as_save_IFS
7155
7156   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7157   ;;
7158 esac
7159 fi
7160 TAR=$ac_cv_path_TAR
7161 if test -n "$TAR"; then
7162   { echo "$as_me:$LINENO: result: $TAR" >&5
7163 echo "${ECHO_T}$TAR" >&6; }
7164 else
7165   { echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6; }
7167 fi
7168
7169
7170 # Extract the first word of "pwd", so it can be a program name with args.
7171 set dummy pwd; ac_word=$2
7172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174 if test "${ac_cv_path_BINPWD+set}" = set; then
7175   echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177   case $BINPWD in
7178   [\\/]* | ?:[\\/]*)
7179   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7180   ;;
7181   *)
7182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7184 do
7185   IFS=$as_save_IFS
7186   test -z "$as_dir" && as_dir=.
7187   for ac_exec_ext in '' $ac_executable_extensions; do
7188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7189     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191     break 2
7192   fi
7193 done
7194 done
7195 IFS=$as_save_IFS
7196
7197   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7198   ;;
7199 esac
7200 fi
7201 BINPWD=$ac_cv_path_BINPWD
7202 if test -n "$BINPWD"; then
7203   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7204 echo "${ECHO_T}$BINPWD" >&6; }
7205 else
7206   { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7208 fi
7209
7210
7211
7212 # Extract the first word of "Graphviz", so it can be a program name with args.
7213 set dummy Graphviz; ac_word=$2
7214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7216 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7217   echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219   case $GRAPHVIZ in
7220   [\\/]* | ?:[\\/]*)
7221   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7222   ;;
7223   *)
7224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7226 do
7227   IFS=$as_save_IFS
7228   test -z "$as_dir" && as_dir=.
7229   for ac_exec_ext in '' $ac_executable_extensions; do
7230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7231     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233     break 2
7234   fi
7235 done
7236 done
7237 IFS=$as_save_IFS
7238
7239   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7240   ;;
7241 esac
7242 fi
7243 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7244 if test -n "$GRAPHVIZ"; then
7245   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7246 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7247 else
7248   { echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6; }
7250 fi
7251
7252
7253 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7254
7255 cat >>confdefs.h <<\_ACEOF
7256 #define HAVE_GRAPHVIZ 1
7257 _ACEOF
7258
7259     if test "$llvm_cv_os_type" = "MingW" ; then
7260     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7261   fi
7262
7263 cat >>confdefs.h <<_ACEOF
7264 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7265 _ACEOF
7266
7267 fi
7268 # Extract the first word of "dot", so it can be a program name with args.
7269 set dummy dot; ac_word=$2
7270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7272 if test "${ac_cv_path_DOT+set}" = set; then
7273   echo $ECHO_N "(cached) $ECHO_C" >&6
7274 else
7275   case $DOT in
7276   [\\/]* | ?:[\\/]*)
7277   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7278   ;;
7279   *)
7280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7282 do
7283   IFS=$as_save_IFS
7284   test -z "$as_dir" && as_dir=.
7285   for ac_exec_ext in '' $ac_executable_extensions; do
7286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7287     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289     break 2
7290   fi
7291 done
7292 done
7293 IFS=$as_save_IFS
7294
7295   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7296   ;;
7297 esac
7298 fi
7299 DOT=$ac_cv_path_DOT
7300 if test -n "$DOT"; then
7301   { echo "$as_me:$LINENO: result: $DOT" >&5
7302 echo "${ECHO_T}$DOT" >&6; }
7303 else
7304   { echo "$as_me:$LINENO: result: no" >&5
7305 echo "${ECHO_T}no" >&6; }
7306 fi
7307
7308
7309 if test "$DOT" != "echo dot" ; then
7310
7311 cat >>confdefs.h <<\_ACEOF
7312 #define HAVE_DOT 1
7313 _ACEOF
7314
7315     if test "$llvm_cv_os_type" = "MingW" ; then
7316     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7317   fi
7318
7319 cat >>confdefs.h <<_ACEOF
7320 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7321 _ACEOF
7322
7323 fi
7324 for ac_prog in gv gsview32
7325 do
7326   # Extract the first word of "$ac_prog", so it can be a program name with args.
7327 set dummy $ac_prog; ac_word=$2
7328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330 if test "${ac_cv_path_GV+set}" = set; then
7331   echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333   case $GV in
7334   [\\/]* | ?:[\\/]*)
7335   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7336   ;;
7337   *)
7338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7340 do
7341   IFS=$as_save_IFS
7342   test -z "$as_dir" && as_dir=.
7343   for ac_exec_ext in '' $ac_executable_extensions; do
7344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7345     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347     break 2
7348   fi
7349 done
7350 done
7351 IFS=$as_save_IFS
7352
7353   ;;
7354 esac
7355 fi
7356 GV=$ac_cv_path_GV
7357 if test -n "$GV"; then
7358   { echo "$as_me:$LINENO: result: $GV" >&5
7359 echo "${ECHO_T}$GV" >&6; }
7360 else
7361   { echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6; }
7363 fi
7364
7365
7366   test -n "$GV" && break
7367 done
7368 test -n "$GV" || GV="echo gv"
7369
7370 if test "$GV" != "echo gv" ; then
7371
7372 cat >>confdefs.h <<\_ACEOF
7373 #define HAVE_GV 1
7374 _ACEOF
7375
7376     if test "$llvm_cv_os_type" = "MingW" ; then
7377     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7378   fi
7379
7380 cat >>confdefs.h <<_ACEOF
7381 #define LLVM_PATH_GV "$GV${EXEEXT}"
7382 _ACEOF
7383
7384 fi
7385 # Extract the first word of "dotty", so it can be a program name with args.
7386 set dummy dotty; ac_word=$2
7387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7389 if test "${ac_cv_path_DOTTY+set}" = set; then
7390   echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392   case $DOTTY in
7393   [\\/]* | ?:[\\/]*)
7394   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7395   ;;
7396   *)
7397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400   IFS=$as_save_IFS
7401   test -z "$as_dir" && as_dir=.
7402   for ac_exec_ext in '' $ac_executable_extensions; do
7403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7404     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407   fi
7408 done
7409 done
7410 IFS=$as_save_IFS
7411
7412   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7413   ;;
7414 esac
7415 fi
7416 DOTTY=$ac_cv_path_DOTTY
7417 if test -n "$DOTTY"; then
7418   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7419 echo "${ECHO_T}$DOTTY" >&6; }
7420 else
7421   { echo "$as_me:$LINENO: result: no" >&5
7422 echo "${ECHO_T}no" >&6; }
7423 fi
7424
7425
7426 if test "$DOTTY" != "echo dotty" ; then
7427
7428 cat >>confdefs.h <<\_ACEOF
7429 #define HAVE_DOTTY 1
7430 _ACEOF
7431
7432     if test "$llvm_cv_os_type" = "MingW" ; then
7433     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7434   fi
7435
7436 cat >>confdefs.h <<_ACEOF
7437 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7438 _ACEOF
7439
7440 fi
7441
7442
7443 # Extract the first word of "perl", so it can be a program name with args.
7444 set dummy perl; ac_word=$2
7445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7447 if test "${ac_cv_path_PERL+set}" = set; then
7448   echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450   case $PERL in
7451   [\\/]* | ?:[\\/]*)
7452   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7453   ;;
7454   *)
7455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7457 do
7458   IFS=$as_save_IFS
7459   test -z "$as_dir" && as_dir=.
7460   for ac_exec_ext in '' $ac_executable_extensions; do
7461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7462     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464     break 2
7465   fi
7466 done
7467 done
7468 IFS=$as_save_IFS
7469
7470   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7471   ;;
7472 esac
7473 fi
7474 PERL=$ac_cv_path_PERL
7475 if test -n "$PERL"; then
7476   { echo "$as_me:$LINENO: result: $PERL" >&5
7477 echo "${ECHO_T}$PERL" >&6; }
7478 else
7479   { echo "$as_me:$LINENO: result: no" >&5
7480 echo "${ECHO_T}no" >&6; }
7481 fi
7482
7483
7484 if test "$PERL" != "none"; then
7485   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7486 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7487   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7488     { echo "$as_me:$LINENO: result: yes" >&5
7489 echo "${ECHO_T}yes" >&6; }
7490   else
7491     PERL=none
7492     { echo "$as_me:$LINENO: result: not found" >&5
7493 echo "${ECHO_T}not found" >&6; }
7494   fi
7495 fi
7496
7497
7498 if test x"$PERL" = xnone; then
7499    HAVE_PERL=0
7500
7501    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7502 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7503    { (exit 1); exit 1; }; }
7504 else
7505    HAVE_PERL=1
7506
7507 fi
7508
7509 # Find a good install program.  We prefer a C program (faster),
7510 # so one script is as good as another.  But avoid the broken or
7511 # incompatible versions:
7512 # SysV /etc/install, /usr/sbin/install
7513 # SunOS /usr/etc/install
7514 # IRIX /sbin/install
7515 # AIX /bin/install
7516 # AmigaOS /C/install, which installs bootblocks on floppy discs
7517 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7518 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7519 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7520 # OS/2's system install, which has a completely different semantic
7521 # ./install, which can be erroneously created by make from ./install.sh.
7522 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7523 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7524 if test -z "$INSTALL"; then
7525 if test "${ac_cv_path_install+set}" = set; then
7526   echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7530 do
7531   IFS=$as_save_IFS
7532   test -z "$as_dir" && as_dir=.
7533   # Account for people who put trailing slashes in PATH elements.
7534 case $as_dir/ in
7535   ./ | .// | /cC/* | \
7536   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7537   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7538   /usr/ucb/* ) ;;
7539   *)
7540     # OSF1 and SCO ODT 3.0 have their own names for install.
7541     # Don't use installbsd from OSF since it installs stuff as root
7542     # by default.
7543     for ac_prog in ginstall scoinst install; do
7544       for ac_exec_ext in '' $ac_executable_extensions; do
7545         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7546           if test $ac_prog = install &&
7547             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7548             # AIX install.  It has an incompatible calling convention.
7549             :
7550           elif test $ac_prog = install &&
7551             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7552             # program-specific install script used by HP pwplus--don't use.
7553             :
7554           else
7555             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7556             break 3
7557           fi
7558         fi
7559       done
7560     done
7561     ;;
7562 esac
7563 done
7564 IFS=$as_save_IFS
7565
7566
7567 fi
7568   if test "${ac_cv_path_install+set}" = set; then
7569     INSTALL=$ac_cv_path_install
7570   else
7571     # As a last resort, use the slow shell script.  Don't cache a
7572     # value for INSTALL within a source directory, because that will
7573     # break other packages using the cache if that directory is
7574     # removed, or if the value is a relative name.
7575     INSTALL=$ac_install_sh
7576   fi
7577 fi
7578 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7579 echo "${ECHO_T}$INSTALL" >&6; }
7580
7581 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7582 # It thinks the first close brace ends the variable substitution.
7583 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7584
7585 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7586
7587 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7588
7589
7590 # Extract the first word of "bzip2", so it can be a program name with args.
7591 set dummy bzip2; ac_word=$2
7592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7594 if test "${ac_cv_path_BZIP2+set}" = set; then
7595   echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597   case $BZIP2 in
7598   [\\/]* | ?:[\\/]*)
7599   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7600   ;;
7601   *)
7602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 for as_dir in $PATH
7604 do
7605   IFS=$as_save_IFS
7606   test -z "$as_dir" && as_dir=.
7607   for ac_exec_ext in '' $ac_executable_extensions; do
7608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7609     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611     break 2
7612   fi
7613 done
7614 done
7615 IFS=$as_save_IFS
7616
7617   ;;
7618 esac
7619 fi
7620 BZIP2=$ac_cv_path_BZIP2
7621 if test -n "$BZIP2"; then
7622   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7623 echo "${ECHO_T}$BZIP2" >&6; }
7624 else
7625   { echo "$as_me:$LINENO: result: no" >&5
7626 echo "${ECHO_T}no" >&6; }
7627 fi
7628
7629
7630 # Extract the first word of "doxygen", so it can be a program name with args.
7631 set dummy doxygen; ac_word=$2
7632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7635   echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637   case $DOXYGEN in
7638   [\\/]* | ?:[\\/]*)
7639   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7640   ;;
7641   *)
7642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7644 do
7645   IFS=$as_save_IFS
7646   test -z "$as_dir" && as_dir=.
7647   for ac_exec_ext in '' $ac_executable_extensions; do
7648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7649     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651     break 2
7652   fi
7653 done
7654 done
7655 IFS=$as_save_IFS
7656
7657   ;;
7658 esac
7659 fi
7660 DOXYGEN=$ac_cv_path_DOXYGEN
7661 if test -n "$DOXYGEN"; then
7662   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7663 echo "${ECHO_T}$DOXYGEN" >&6; }
7664 else
7665   { echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6; }
7667 fi
7668
7669
7670 # Extract the first word of "groff", so it can be a program name with args.
7671 set dummy groff; ac_word=$2
7672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674 if test "${ac_cv_path_GROFF+set}" = set; then
7675   echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677   case $GROFF in
7678   [\\/]* | ?:[\\/]*)
7679   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7680   ;;
7681   *)
7682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7684 do
7685   IFS=$as_save_IFS
7686   test -z "$as_dir" && as_dir=.
7687   for ac_exec_ext in '' $ac_executable_extensions; do
7688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7689     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691     break 2
7692   fi
7693 done
7694 done
7695 IFS=$as_save_IFS
7696
7697   ;;
7698 esac
7699 fi
7700 GROFF=$ac_cv_path_GROFF
7701 if test -n "$GROFF"; then
7702   { echo "$as_me:$LINENO: result: $GROFF" >&5
7703 echo "${ECHO_T}$GROFF" >&6; }
7704 else
7705   { echo "$as_me:$LINENO: result: no" >&5
7706 echo "${ECHO_T}no" >&6; }
7707 fi
7708
7709
7710 # Extract the first word of "gzip", so it can be a program name with args.
7711 set dummy gzip; ac_word=$2
7712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7714 if test "${ac_cv_path_GZIP+set}" = set; then
7715   echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717   case $GZIP in
7718   [\\/]* | ?:[\\/]*)
7719   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7720   ;;
7721   *)
7722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 for as_dir in $PATH
7724 do
7725   IFS=$as_save_IFS
7726   test -z "$as_dir" && as_dir=.
7727   for ac_exec_ext in '' $ac_executable_extensions; do
7728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7729     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7731     break 2
7732   fi
7733 done
7734 done
7735 IFS=$as_save_IFS
7736
7737   ;;
7738 esac
7739 fi
7740 GZIP=$ac_cv_path_GZIP
7741 if test -n "$GZIP"; then
7742   { echo "$as_me:$LINENO: result: $GZIP" >&5
7743 echo "${ECHO_T}$GZIP" >&6; }
7744 else
7745   { echo "$as_me:$LINENO: result: no" >&5
7746 echo "${ECHO_T}no" >&6; }
7747 fi
7748
7749
7750 # Extract the first word of "pod2html", so it can be a program name with args.
7751 set dummy pod2html; ac_word=$2
7752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7754 if test "${ac_cv_path_POD2HTML+set}" = set; then
7755   echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757   case $POD2HTML in
7758   [\\/]* | ?:[\\/]*)
7759   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7760   ;;
7761   *)
7762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765   IFS=$as_save_IFS
7766   test -z "$as_dir" && as_dir=.
7767   for ac_exec_ext in '' $ac_executable_extensions; do
7768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7769     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771     break 2
7772   fi
7773 done
7774 done
7775 IFS=$as_save_IFS
7776
7777   ;;
7778 esac
7779 fi
7780 POD2HTML=$ac_cv_path_POD2HTML
7781 if test -n "$POD2HTML"; then
7782   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7783 echo "${ECHO_T}$POD2HTML" >&6; }
7784 else
7785   { echo "$as_me:$LINENO: result: no" >&5
7786 echo "${ECHO_T}no" >&6; }
7787 fi
7788
7789
7790 # Extract the first word of "pod2man", so it can be a program name with args.
7791 set dummy pod2man; ac_word=$2
7792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7794 if test "${ac_cv_path_POD2MAN+set}" = set; then
7795   echo $ECHO_N "(cached) $ECHO_C" >&6
7796 else
7797   case $POD2MAN in
7798   [\\/]* | ?:[\\/]*)
7799   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7800   ;;
7801   *)
7802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805   IFS=$as_save_IFS
7806   test -z "$as_dir" && as_dir=.
7807   for ac_exec_ext in '' $ac_executable_extensions; do
7808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7809     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7811     break 2
7812   fi
7813 done
7814 done
7815 IFS=$as_save_IFS
7816
7817   ;;
7818 esac
7819 fi
7820 POD2MAN=$ac_cv_path_POD2MAN
7821 if test -n "$POD2MAN"; then
7822   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7823 echo "${ECHO_T}$POD2MAN" >&6; }
7824 else
7825   { echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6; }
7827 fi
7828
7829
7830 # Extract the first word of "runtest", so it can be a program name with args.
7831 set dummy runtest; ac_word=$2
7832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7834 if test "${ac_cv_path_RUNTEST+set}" = set; then
7835   echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837   case $RUNTEST in
7838   [\\/]* | ?:[\\/]*)
7839   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7840   ;;
7841   *)
7842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7844 do
7845   IFS=$as_save_IFS
7846   test -z "$as_dir" && as_dir=.
7847   for ac_exec_ext in '' $ac_executable_extensions; do
7848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7849     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851     break 2
7852   fi
7853 done
7854 done
7855 IFS=$as_save_IFS
7856
7857   ;;
7858 esac
7859 fi
7860 RUNTEST=$ac_cv_path_RUNTEST
7861 if test -n "$RUNTEST"; then
7862   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7863 echo "${ECHO_T}$RUNTEST" >&6; }
7864 else
7865   { echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6; }
7867 fi
7868
7869
7870
7871 no_itcl=true
7872 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7873 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7874
7875 # Check whether --with-tclinclude was given.
7876 if test "${with_tclinclude+set}" = set; then
7877   withval=$with_tclinclude; with_tclinclude=${withval}
7878 else
7879   with_tclinclude=''
7880 fi
7881
7882 if test "${ac_cv_path_tclsh+set}" = set; then
7883   echo $ECHO_N "(cached) $ECHO_C" >&6
7884 else
7885
7886 if test x"${with_tclinclude}" != x ; then
7887   if test -f ${with_tclinclude}/tclsh ; then
7888     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7889   elif test -f ${with_tclinclude}/src/tclsh ; then
7890     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7891   else
7892     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7893 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7894    { (exit 1); exit 1; }; }
7895   fi
7896 fi
7897
7898 if test x"${ac_cv_path_tclsh}" = x ; then
7899   { echo "$as_me:$LINENO: result: none" >&5
7900 echo "${ECHO_T}none" >&6; }
7901   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
7902 do
7903   # Extract the first word of "$ac_prog", so it can be a program name with args.
7904 set dummy $ac_prog; ac_word=$2
7905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7907 if test "${ac_cv_path_TCLSH+set}" = set; then
7908   echo $ECHO_N "(cached) $ECHO_C" >&6
7909 else
7910   case $TCLSH in
7911   [\\/]* | ?:[\\/]*)
7912   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7913   ;;
7914   *)
7915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 for as_dir in $PATH
7917 do
7918   IFS=$as_save_IFS
7919   test -z "$as_dir" && as_dir=.
7920   for ac_exec_ext in '' $ac_executable_extensions; do
7921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7922     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7924     break 2
7925   fi
7926 done
7927 done
7928 IFS=$as_save_IFS
7929
7930   ;;
7931 esac
7932 fi
7933 TCLSH=$ac_cv_path_TCLSH
7934 if test -n "$TCLSH"; then
7935   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7936 echo "${ECHO_T}$TCLSH" >&6; }
7937 else
7938   { echo "$as_me:$LINENO: result: no" >&5
7939 echo "${ECHO_T}no" >&6; }
7940 fi
7941
7942
7943   test -n "$TCLSH" && break
7944 done
7945
7946   if test x"${TCLSH}" = x ; then
7947     ac_cv_path_tclsh='';
7948   else
7949     ac_cv_path_tclsh="${TCLSH}";
7950   fi
7951 else
7952   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7953 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7954   TCLSH="${ac_cv_path_tclsh}"
7955
7956 fi
7957
7958 fi
7959
7960 # Extract the first word of "zip", so it can be a program name with args.
7961 set dummy zip; ac_word=$2
7962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7964 if test "${ac_cv_path_ZIP+set}" = set; then
7965   echo $ECHO_N "(cached) $ECHO_C" >&6
7966 else
7967   case $ZIP in
7968   [\\/]* | ?:[\\/]*)
7969   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7970   ;;
7971   *)
7972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 for as_dir in $PATH
7974 do
7975   IFS=$as_save_IFS
7976   test -z "$as_dir" && as_dir=.
7977   for ac_exec_ext in '' $ac_executable_extensions; do
7978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7979     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7981     break 2
7982   fi
7983 done
7984 done
7985 IFS=$as_save_IFS
7986
7987   ;;
7988 esac
7989 fi
7990 ZIP=$ac_cv_path_ZIP
7991 if test -n "$ZIP"; then
7992   { echo "$as_me:$LINENO: result: $ZIP" >&5
7993 echo "${ECHO_T}$ZIP" >&6; }
7994 else
7995   { echo "$as_me:$LINENO: result: no" >&5
7996 echo "${ECHO_T}no" >&6; }
7997 fi
7998
7999
8000 for ac_prog in ocamlc.opt ocamlc
8001 do
8002   # Extract the first word of "$ac_prog", so it can be a program name with args.
8003 set dummy $ac_prog; ac_word=$2
8004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8006 if test "${ac_cv_path_OCAMLC+set}" = set; then
8007   echo $ECHO_N "(cached) $ECHO_C" >&6
8008 else
8009   case $OCAMLC in
8010   [\\/]* | ?:[\\/]*)
8011   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8012   ;;
8013   *)
8014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH
8016 do
8017   IFS=$as_save_IFS
8018   test -z "$as_dir" && as_dir=.
8019   for ac_exec_ext in '' $ac_executable_extensions; do
8020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8021     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8023     break 2
8024   fi
8025 done
8026 done
8027 IFS=$as_save_IFS
8028
8029   ;;
8030 esac
8031 fi
8032 OCAMLC=$ac_cv_path_OCAMLC
8033 if test -n "$OCAMLC"; then
8034   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8035 echo "${ECHO_T}$OCAMLC" >&6; }
8036 else
8037   { echo "$as_me:$LINENO: result: no" >&5
8038 echo "${ECHO_T}no" >&6; }
8039 fi
8040
8041
8042   test -n "$OCAMLC" && break
8043 done
8044
8045 for ac_prog in ocamlopt.opt ocamlopt
8046 do
8047   # Extract the first word of "$ac_prog", so it can be a program name with args.
8048 set dummy $ac_prog; ac_word=$2
8049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8051 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8052   echo $ECHO_N "(cached) $ECHO_C" >&6
8053 else
8054   case $OCAMLOPT in
8055   [\\/]* | ?:[\\/]*)
8056   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8057   ;;
8058   *)
8059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8061 do
8062   IFS=$as_save_IFS
8063   test -z "$as_dir" && as_dir=.
8064   for ac_exec_ext in '' $ac_executable_extensions; do
8065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8066     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8068     break 2
8069   fi
8070 done
8071 done
8072 IFS=$as_save_IFS
8073
8074   ;;
8075 esac
8076 fi
8077 OCAMLOPT=$ac_cv_path_OCAMLOPT
8078 if test -n "$OCAMLOPT"; then
8079   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8080 echo "${ECHO_T}$OCAMLOPT" >&6; }
8081 else
8082   { echo "$as_me:$LINENO: result: no" >&5
8083 echo "${ECHO_T}no" >&6; }
8084 fi
8085
8086
8087   test -n "$OCAMLOPT" && break
8088 done
8089
8090 for ac_prog in ocamldep.opt ocamldep
8091 do
8092   # Extract the first word of "$ac_prog", so it can be a program name with args.
8093 set dummy $ac_prog; ac_word=$2
8094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8096 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8097   echo $ECHO_N "(cached) $ECHO_C" >&6
8098 else
8099   case $OCAMLDEP in
8100   [\\/]* | ?:[\\/]*)
8101   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8102   ;;
8103   *)
8104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 for as_dir in $PATH
8106 do
8107   IFS=$as_save_IFS
8108   test -z "$as_dir" && as_dir=.
8109   for ac_exec_ext in '' $ac_executable_extensions; do
8110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8111     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8113     break 2
8114   fi
8115 done
8116 done
8117 IFS=$as_save_IFS
8118
8119   ;;
8120 esac
8121 fi
8122 OCAMLDEP=$ac_cv_path_OCAMLDEP
8123 if test -n "$OCAMLDEP"; then
8124   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8125 echo "${ECHO_T}$OCAMLDEP" >&6; }
8126 else
8127   { echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6; }
8129 fi
8130
8131
8132   test -n "$OCAMLDEP" && break
8133 done
8134
8135 for ac_prog in ocamldoc.opt ocamldoc
8136 do
8137   # Extract the first word of "$ac_prog", so it can be a program name with args.
8138 set dummy $ac_prog; ac_word=$2
8139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8141 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8142   echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144   case $OCAMLDOC in
8145   [\\/]* | ?:[\\/]*)
8146   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8147   ;;
8148   *)
8149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8151 do
8152   IFS=$as_save_IFS
8153   test -z "$as_dir" && as_dir=.
8154   for ac_exec_ext in '' $ac_executable_extensions; do
8155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8156     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158     break 2
8159   fi
8160 done
8161 done
8162 IFS=$as_save_IFS
8163
8164   ;;
8165 esac
8166 fi
8167 OCAMLDOC=$ac_cv_path_OCAMLDOC
8168 if test -n "$OCAMLDOC"; then
8169   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8170 echo "${ECHO_T}$OCAMLDOC" >&6; }
8171 else
8172   { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8174 fi
8175
8176
8177   test -n "$OCAMLDOC" && break
8178 done
8179
8180
8181 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8182 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8183 if test "${llvm_cv_link_use_r+set}" = set; then
8184   echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186    ac_ext=c
8187 ac_cpp='$CPP $CPPFLAGS'
8188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8191
8192   oldcflags="$CFLAGS"
8193   CFLAGS="$CFLAGS -Wl,-R."
8194   cat >conftest.$ac_ext <<_ACEOF
8195 /* confdefs.h.  */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h.  */
8200
8201 int
8202 main ()
8203 {
8204 int main() { return 0; }
8205   ;
8206   return 0;
8207 }
8208 _ACEOF
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (ac_try="$ac_link"
8211 case "(($ac_try" in
8212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213   *) ac_try_echo=$ac_try;;
8214 esac
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216   (eval "$ac_link") 2>conftest.er1
8217   ac_status=$?
8218   grep -v '^ *+' conftest.er1 >conftest.err
8219   rm -f conftest.er1
8220   cat conftest.err >&5
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); } &&
8223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8224   { (case "(($ac_try" in
8225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226   *) ac_try_echo=$ac_try;;
8227 esac
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229   (eval "$ac_try") 2>&5
8230   ac_status=$?
8231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232   (exit $ac_status); }; } &&
8233          { ac_try='test -s conftest$ac_exeext'
8234   { (case "(($ac_try" in
8235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236   *) ac_try_echo=$ac_try;;
8237 esac
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239   (eval "$ac_try") 2>&5
8240   ac_status=$?
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); }; }; then
8243   llvm_cv_link_use_r=yes
8244 else
8245   echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8247
8248         llvm_cv_link_use_r=no
8249 fi
8250
8251 rm -f core conftest.err conftest.$ac_objext \
8252       conftest$ac_exeext conftest.$ac_ext
8253   CFLAGS="$oldcflags"
8254   ac_ext=c
8255 ac_cpp='$CPP $CPPFLAGS'
8256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8259
8260
8261 fi
8262 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8263 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8264 if test "$llvm_cv_link_use_r" = yes ; then
8265
8266 cat >>confdefs.h <<\_ACEOF
8267 #define HAVE_LINK_R 1
8268 _ACEOF
8269
8270   fi
8271
8272
8273
8274
8275 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8276 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8277 if test "${ac_cv_c_const+set}" = set; then
8278   echo $ECHO_N "(cached) $ECHO_C" >&6
8279 else
8280   cat >conftest.$ac_ext <<_ACEOF
8281 /* confdefs.h.  */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h.  */
8286
8287 int
8288 main ()
8289 {
8290 /* FIXME: Include the comments suggested by Paul. */
8291 #ifndef __cplusplus
8292   /* Ultrix mips cc rejects this.  */
8293   typedef int charset[2];
8294   const charset x;
8295   /* SunOS 4.1.1 cc rejects this.  */
8296   char const *const *ccp;
8297   char **p;
8298   /* NEC SVR4.0.2 mips cc rejects this.  */
8299   struct point {int x, y;};
8300   static struct point const zero = {0,0};
8301   /* AIX XL C 1.02.0.0 rejects this.
8302      It does not let you subtract one const X* pointer from another in
8303      an arm of an if-expression whose if-part is not a constant
8304      expression */
8305   const char *g = "string";
8306   ccp = &g + (g ? g-g : 0);
8307   /* HPUX 7.0 cc rejects these. */
8308   ++ccp;
8309   p = (char**) ccp;
8310   ccp = (char const *const *) p;
8311   { /* SCO 3.2v4 cc rejects this.  */
8312     char *t;
8313     char const *s = 0 ? (char *) 0 : (char const *) 0;
8314
8315     *t++ = 0;
8316     if (s) return 0;
8317   }
8318   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8319     int x[] = {25, 17};
8320     const int *foo = &x[0];
8321     ++foo;
8322   }
8323   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8324     typedef const int *iptr;
8325     iptr p = 0;
8326     ++p;
8327   }
8328   { /* AIX XL C 1.02.0.0 rejects this saying
8329        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8330     struct s { int j; const int *ap[3]; };
8331     struct s *b; b->j = 5;
8332   }
8333   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8334     const int foo = 10;
8335     if (!foo) return 0;
8336   }
8337   return !x[0] && !zero.x;
8338 #endif
8339
8340   ;
8341   return 0;
8342 }
8343 _ACEOF
8344 rm -f conftest.$ac_objext
8345 if { (ac_try="$ac_compile"
8346 case "(($ac_try" in
8347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348   *) ac_try_echo=$ac_try;;
8349 esac
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351   (eval "$ac_compile") 2>conftest.er1
8352   ac_status=$?
8353   grep -v '^ *+' conftest.er1 >conftest.err
8354   rm -f conftest.er1
8355   cat conftest.err >&5
8356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357   (exit $ac_status); } &&
8358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8359   { (case "(($ac_try" in
8360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361   *) ac_try_echo=$ac_try;;
8362 esac
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364   (eval "$ac_try") 2>&5
8365   ac_status=$?
8366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367   (exit $ac_status); }; } &&
8368          { ac_try='test -s conftest.$ac_objext'
8369   { (case "(($ac_try" in
8370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371   *) ac_try_echo=$ac_try;;
8372 esac
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374   (eval "$ac_try") 2>&5
8375   ac_status=$?
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); }; }; then
8378   ac_cv_c_const=yes
8379 else
8380   echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383         ac_cv_c_const=no
8384 fi
8385
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 fi
8388 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8389 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8390 if test $ac_cv_c_const = no; then
8391
8392 cat >>confdefs.h <<\_ACEOF
8393 #define const
8394 _ACEOF
8395
8396 fi
8397
8398
8399
8400
8401
8402
8403 ac_header_dirent=no
8404 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8405   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8406 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8407 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8409   echo $ECHO_N "(cached) $ECHO_C" >&6
8410 else
8411   cat >conftest.$ac_ext <<_ACEOF
8412 /* confdefs.h.  */
8413 _ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h.  */
8417 #include <sys/types.h>
8418 #include <$ac_hdr>
8419
8420 int
8421 main ()
8422 {
8423 if ((DIR *) 0)
8424 return 0;
8425   ;
8426   return 0;
8427 }
8428 _ACEOF
8429 rm -f conftest.$ac_objext
8430 if { (ac_try="$ac_compile"
8431 case "(($ac_try" in
8432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433   *) ac_try_echo=$ac_try;;
8434 esac
8435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436   (eval "$ac_compile") 2>conftest.er1
8437   ac_status=$?
8438   grep -v '^ *+' conftest.er1 >conftest.err
8439   rm -f conftest.er1
8440   cat conftest.err >&5
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); } &&
8443          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8444   { (case "(($ac_try" in
8445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446   *) ac_try_echo=$ac_try;;
8447 esac
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449   (eval "$ac_try") 2>&5
8450   ac_status=$?
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); }; } &&
8453          { ac_try='test -s conftest.$ac_objext'
8454   { (case "(($ac_try" in
8455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456   *) ac_try_echo=$ac_try;;
8457 esac
8458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8459   (eval "$ac_try") 2>&5
8460   ac_status=$?
8461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); }; }; then
8463   eval "$as_ac_Header=yes"
8464 else
8465   echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8467
8468         eval "$as_ac_Header=no"
8469 fi
8470
8471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8472 fi
8473 ac_res=`eval echo '${'$as_ac_Header'}'`
8474                { echo "$as_me:$LINENO: result: $ac_res" >&5
8475 echo "${ECHO_T}$ac_res" >&6; }
8476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8477   cat >>confdefs.h <<_ACEOF
8478 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8479 _ACEOF
8480
8481 ac_header_dirent=$ac_hdr; break
8482 fi
8483
8484 done
8485 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8486 if test $ac_header_dirent = dirent.h; then
8487   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8488 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8489 if test "${ac_cv_search_opendir+set}" = set; then
8490   echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492   ac_func_search_save_LIBS=$LIBS
8493 cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h.  */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h.  */
8499
8500 /* Override any GCC internal prototype to avoid an error.
8501    Use char because int might match the return type of a GCC
8502    builtin and then its argument prototype would still apply.  */
8503 #ifdef __cplusplus
8504 extern "C"
8505 #endif
8506 char opendir ();
8507 int
8508 main ()
8509 {
8510 return opendir ();
8511   ;
8512   return 0;
8513 }
8514 _ACEOF
8515 for ac_lib in '' dir; do
8516   if test -z "$ac_lib"; then
8517     ac_res="none required"
8518   else
8519     ac_res=-l$ac_lib
8520     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8521   fi
8522   rm -f conftest.$ac_objext conftest$ac_exeext
8523 if { (ac_try="$ac_link"
8524 case "(($ac_try" in
8525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526   *) ac_try_echo=$ac_try;;
8527 esac
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529   (eval "$ac_link") 2>conftest.er1
8530   ac_status=$?
8531   grep -v '^ *+' conftest.er1 >conftest.err
8532   rm -f conftest.er1
8533   cat conftest.err >&5
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); } &&
8536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8537   { (case "(($ac_try" in
8538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539   *) ac_try_echo=$ac_try;;
8540 esac
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542   (eval "$ac_try") 2>&5
8543   ac_status=$?
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); }; } &&
8546          { ac_try='test -s conftest$ac_exeext'
8547   { (case "(($ac_try" in
8548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549   *) ac_try_echo=$ac_try;;
8550 esac
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552   (eval "$ac_try") 2>&5
8553   ac_status=$?
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); }; }; then
8556   ac_cv_search_opendir=$ac_res
8557 else
8558   echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8560
8561
8562 fi
8563
8564 rm -f core conftest.err conftest.$ac_objext \
8565       conftest$ac_exeext
8566   if test "${ac_cv_search_opendir+set}" = set; then
8567   break
8568 fi
8569 done
8570 if test "${ac_cv_search_opendir+set}" = set; then
8571   :
8572 else
8573   ac_cv_search_opendir=no
8574 fi
8575 rm conftest.$ac_ext
8576 LIBS=$ac_func_search_save_LIBS
8577 fi
8578 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8579 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8580 ac_res=$ac_cv_search_opendir
8581 if test "$ac_res" != no; then
8582   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8583
8584 fi
8585
8586 else
8587   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8588 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8589 if test "${ac_cv_search_opendir+set}" = set; then
8590   echo $ECHO_N "(cached) $ECHO_C" >&6
8591 else
8592   ac_func_search_save_LIBS=$LIBS
8593 cat >conftest.$ac_ext <<_ACEOF
8594 /* confdefs.h.  */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h.  */
8599
8600 /* Override any GCC internal prototype to avoid an error.
8601    Use char because int might match the return type of a GCC
8602    builtin and then its argument prototype would still apply.  */
8603 #ifdef __cplusplus
8604 extern "C"
8605 #endif
8606 char opendir ();
8607 int
8608 main ()
8609 {
8610 return opendir ();
8611   ;
8612   return 0;
8613 }
8614 _ACEOF
8615 for ac_lib in '' x; do
8616   if test -z "$ac_lib"; then
8617     ac_res="none required"
8618   else
8619     ac_res=-l$ac_lib
8620     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8621   fi
8622   rm -f conftest.$ac_objext conftest$ac_exeext
8623 if { (ac_try="$ac_link"
8624 case "(($ac_try" in
8625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626   *) ac_try_echo=$ac_try;;
8627 esac
8628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629   (eval "$ac_link") 2>conftest.er1
8630   ac_status=$?
8631   grep -v '^ *+' conftest.er1 >conftest.err
8632   rm -f conftest.er1
8633   cat conftest.err >&5
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); } &&
8636          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8637   { (case "(($ac_try" in
8638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639   *) ac_try_echo=$ac_try;;
8640 esac
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642   (eval "$ac_try") 2>&5
8643   ac_status=$?
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); }; } &&
8646          { ac_try='test -s conftest$ac_exeext'
8647   { (case "(($ac_try" in
8648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649   *) ac_try_echo=$ac_try;;
8650 esac
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652   (eval "$ac_try") 2>&5
8653   ac_status=$?
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); }; }; then
8656   ac_cv_search_opendir=$ac_res
8657 else
8658   echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8660
8661
8662 fi
8663
8664 rm -f core conftest.err conftest.$ac_objext \
8665       conftest$ac_exeext
8666   if test "${ac_cv_search_opendir+set}" = set; then
8667   break
8668 fi
8669 done
8670 if test "${ac_cv_search_opendir+set}" = set; then
8671   :
8672 else
8673   ac_cv_search_opendir=no
8674 fi
8675 rm conftest.$ac_ext
8676 LIBS=$ac_func_search_save_LIBS
8677 fi
8678 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8679 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8680 ac_res=$ac_cv_search_opendir
8681 if test "$ac_res" != no; then
8682   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8683
8684 fi
8685
8686 fi
8687
8688
8689 for ac_header in dlfcn.h
8690 do
8691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8693   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8696   echo $ECHO_N "(cached) $ECHO_C" >&6
8697 fi
8698 ac_res=`eval echo '${'$as_ac_Header'}'`
8699                { echo "$as_me:$LINENO: result: $ac_res" >&5
8700 echo "${ECHO_T}$ac_res" >&6; }
8701 else
8702   # Is the header compilable?
8703 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8705 cat >conftest.$ac_ext <<_ACEOF
8706 /* confdefs.h.  */
8707 _ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h.  */
8711 $ac_includes_default
8712 #include <$ac_header>
8713 _ACEOF
8714 rm -f conftest.$ac_objext
8715 if { (ac_try="$ac_compile"
8716 case "(($ac_try" in
8717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8718   *) ac_try_echo=$ac_try;;
8719 esac
8720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8721   (eval "$ac_compile") 2>conftest.er1
8722   ac_status=$?
8723   grep -v '^ *+' conftest.er1 >conftest.err
8724   rm -f conftest.er1
8725   cat conftest.err >&5
8726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727   (exit $ac_status); } &&
8728          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8729   { (case "(($ac_try" in
8730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731   *) ac_try_echo=$ac_try;;
8732 esac
8733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8734   (eval "$ac_try") 2>&5
8735   ac_status=$?
8736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737   (exit $ac_status); }; } &&
8738          { ac_try='test -s conftest.$ac_objext'
8739   { (case "(($ac_try" in
8740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8741   *) ac_try_echo=$ac_try;;
8742 esac
8743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8744   (eval "$ac_try") 2>&5
8745   ac_status=$?
8746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747   (exit $ac_status); }; }; then
8748   ac_header_compiler=yes
8749 else
8750   echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8752
8753         ac_header_compiler=no
8754 fi
8755
8756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8758 echo "${ECHO_T}$ac_header_compiler" >&6; }
8759
8760 # Is the header present?
8761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8763 cat >conftest.$ac_ext <<_ACEOF
8764 /* confdefs.h.  */
8765 _ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h.  */
8769 #include <$ac_header>
8770 _ACEOF
8771 if { (ac_try="$ac_cpp conftest.$ac_ext"
8772 case "(($ac_try" in
8773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774   *) ac_try_echo=$ac_try;;
8775 esac
8776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8778   ac_status=$?
8779   grep -v '^ *+' conftest.er1 >conftest.err
8780   rm -f conftest.er1
8781   cat conftest.err >&5
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); } >/dev/null; then
8784   if test -s conftest.err; then
8785     ac_cpp_err=$ac_c_preproc_warn_flag
8786     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8787   else
8788     ac_cpp_err=
8789   fi
8790 else
8791   ac_cpp_err=yes
8792 fi
8793 if test -z "$ac_cpp_err"; then
8794   ac_header_preproc=yes
8795 else
8796   echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8798
8799   ac_header_preproc=no
8800 fi
8801
8802 rm -f conftest.err conftest.$ac_ext
8803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8804 echo "${ECHO_T}$ac_header_preproc" >&6; }
8805
8806 # So?  What about this header?
8807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8808   yes:no: )
8809     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8813     ac_header_preproc=yes
8814     ;;
8815   no:yes:* )
8816     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8818     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8819 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8820     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8822     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8823 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8826     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8828     ( cat <<\_ASBOX
8829 ## ----------------------------------- ##
8830 ## Report this to llvmbugs@cs.uiuc.edu ##
8831 ## ----------------------------------- ##
8832 _ASBOX
8833      ) | sed "s/^/$as_me: WARNING:     /" >&2
8834     ;;
8835 esac
8836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8839   echo $ECHO_N "(cached) $ECHO_C" >&6
8840 else
8841   eval "$as_ac_Header=\$ac_header_preproc"
8842 fi
8843 ac_res=`eval echo '${'$as_ac_Header'}'`
8844                { echo "$as_me:$LINENO: result: $ac_res" >&5
8845 echo "${ECHO_T}$ac_res" >&6; }
8846
8847 fi
8848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8849   cat >>confdefs.h <<_ACEOF
8850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8851 _ACEOF
8852
8853 fi
8854
8855 done
8856
8857 # Check whether --enable-ltdl-install was given.
8858 if test "${enable_ltdl_install+set}" = set; then
8859   enableval=$enable_ltdl_install;
8860 fi
8861
8862
8863
8864
8865 if test x"${enable_ltdl_install-no}" != xno; then
8866   INSTALL_LTDL_TRUE=
8867   INSTALL_LTDL_FALSE='#'
8868 else
8869   INSTALL_LTDL_TRUE='#'
8870   INSTALL_LTDL_FALSE=
8871 fi
8872
8873
8874
8875 if test x"${enable_ltdl_convenience-no}" != xno; then
8876   CONVENIENCE_LTDL_TRUE=
8877   CONVENIENCE_LTDL_FALSE='#'
8878 else
8879   CONVENIENCE_LTDL_TRUE='#'
8880   CONVENIENCE_LTDL_FALSE=
8881 fi
8882
8883
8884 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8885 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8886 library_names_spec=
8887 libname_spec='lib$name'
8888 soname_spec=
8889 shrext_cmds=".so"
8890 postinstall_cmds=
8891 postuninstall_cmds=
8892 finish_cmds=
8893 finish_eval=
8894 shlibpath_var=
8895 shlibpath_overrides_runpath=unknown
8896 version_type=none
8897 dynamic_linker="$host_os ld.so"
8898 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8899 if test "$GCC" = yes; then
8900   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8901   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8902     # if the path contains ";" then we assume it to be the separator
8903     # otherwise default to the standard path separator (i.e. ":") - it is
8904     # assumed that no part of a normal pathname contains ";" but that should
8905     # okay in the real world where ";" in dirpaths is itself problematic.
8906     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8907   else
8908     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8909   fi
8910 else
8911   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8912 fi
8913 need_lib_prefix=unknown
8914 hardcode_into_libs=no
8915
8916 # when you set need_version to no, make sure it does not cause -set_version
8917 # flags to be left without arguments
8918 need_version=unknown
8919
8920 case $host_os in
8921 aix3*)
8922   version_type=linux
8923   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8924   shlibpath_var=LIBPATH
8925
8926   # AIX 3 has no versioning support, so we append a major version to the name.
8927   soname_spec='${libname}${release}${shared_ext}$major'
8928   ;;
8929
8930 aix4* | aix5*)
8931   version_type=linux
8932   need_lib_prefix=no
8933   need_version=no
8934   hardcode_into_libs=yes
8935   if test "$host_cpu" = ia64; then
8936     # AIX 5 supports IA64
8937     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8938     shlibpath_var=LD_LIBRARY_PATH
8939   else
8940     # With GCC up to 2.95.x, collect2 would create an import file
8941     # for dependence libraries.  The import file would start with
8942     # the line `#! .'.  This would cause the generated library to
8943     # depend on `.', always an invalid library.  This was fixed in
8944     # development snapshots of GCC prior to 3.0.
8945     case $host_os in
8946       aix4 | aix4.[01] | aix4.[01].*)
8947       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8948            echo ' yes '
8949            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8950         :
8951       else
8952         can_build_shared=no
8953       fi
8954       ;;
8955     esac
8956     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8957     # soname into executable. Probably we can add versioning support to
8958     # collect2, so additional links can be useful in future.
8959     if test "$aix_use_runtimelinking" = yes; then
8960       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8961       # instead of lib<name>.a to let people know that these are not
8962       # typical AIX shared libraries.
8963       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8964     else
8965       # We preserve .a as extension for shared libraries through AIX4.2
8966       # and later when we are not doing run time linking.
8967       library_names_spec='${libname}${release}.a $libname.a'
8968       soname_spec='${libname}${release}${shared_ext}$major'
8969     fi
8970     shlibpath_var=LIBPATH
8971   fi
8972   ;;
8973
8974 amigaos*)
8975   library_names_spec='$libname.ixlibrary $libname.a'
8976   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8977   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'
8978   ;;
8979
8980 beos*)
8981   library_names_spec='${libname}${shared_ext}'
8982   dynamic_linker="$host_os ld.so"
8983   shlibpath_var=LIBRARY_PATH
8984   ;;
8985
8986 bsdi[45]*)
8987   version_type=linux
8988   need_version=no
8989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990   soname_spec='${libname}${release}${shared_ext}$major'
8991   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8992   shlibpath_var=LD_LIBRARY_PATH
8993   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8994   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8995   # the default ld.so.conf also contains /usr/contrib/lib and
8996   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8997   # libtool to hard-code these into programs
8998   ;;
8999
9000 cygwin* | mingw* | pw32*)
9001   version_type=windows
9002   shrext_cmds=".dll"
9003   need_version=no
9004   need_lib_prefix=no
9005
9006   case $GCC,$host_os in
9007   yes,cygwin* | yes,mingw* | yes,pw32*)
9008     library_names_spec='$libname.dll.a'
9009     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9010     postinstall_cmds='base_file=`basename \${file}`~
9011       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9012       dldir=$destdir/`dirname \$dlpath`~
9013       test -d \$dldir || mkdir -p \$dldir~
9014       $install_prog $dir/$dlname \$dldir/$dlname~
9015       chmod a+x \$dldir/$dlname'
9016     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9017       dlpath=$dir/\$dldll~
9018        $rm \$dlpath'
9019     shlibpath_overrides_runpath=yes
9020
9021     case $host_os in
9022     cygwin*)
9023       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9024       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9025       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9026       ;;
9027     mingw*)
9028       # MinGW DLLs use traditional 'lib' prefix
9029       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9030       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9031       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9032         # It is most probably a Windows format PATH printed by
9033         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9034         # path with ; separators, and with drive letters. We can handle the
9035         # drive letters (cygwin fileutils understands them), so leave them,
9036         # especially as we might pass files found there to a mingw objdump,
9037         # which wouldn't understand a cygwinified path. Ahh.
9038         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9039       else
9040         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9041       fi
9042       ;;
9043     pw32*)
9044       # pw32 DLLs use 'pw' prefix rather than 'lib'
9045       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9046       ;;
9047     esac
9048     ;;
9049
9050   *)
9051     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9052     ;;
9053   esac
9054   dynamic_linker='Win32 ld.exe'
9055   # FIXME: first we should search . and the directory the executable is in
9056   shlibpath_var=PATH
9057   ;;
9058
9059 darwin* | rhapsody*)
9060   dynamic_linker="$host_os dyld"
9061   version_type=darwin
9062   need_lib_prefix=no
9063   need_version=no
9064   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9065   soname_spec='${libname}${release}${major}$shared_ext'
9066   shlibpath_overrides_runpath=yes
9067   shlibpath_var=DYLD_LIBRARY_PATH
9068   shrext_cmds='.dylib'
9069   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9070   if test "$GCC" = yes; then
9071     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"`
9072   else
9073     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9074   fi
9075   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9076   ;;
9077
9078 dgux*)
9079   version_type=linux
9080   need_lib_prefix=no
9081   need_version=no
9082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9083   soname_spec='${libname}${release}${shared_ext}$major'
9084   shlibpath_var=LD_LIBRARY_PATH
9085   ;;
9086
9087 freebsd1*)
9088   dynamic_linker=no
9089   ;;
9090
9091 kfreebsd*-gnu)
9092   version_type=linux
9093   need_lib_prefix=no
9094   need_version=no
9095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9096   soname_spec='${libname}${release}${shared_ext}$major'
9097   shlibpath_var=LD_LIBRARY_PATH
9098   shlibpath_overrides_runpath=no
9099   hardcode_into_libs=yes
9100   dynamic_linker='GNU ld.so'
9101   ;;
9102
9103 freebsd* | dragonfly*)
9104   # DragonFly does not have aout.  When/if they implement a new
9105   # versioning mechanism, adjust this.
9106   if test -x /usr/bin/objformat; then
9107     objformat=`/usr/bin/objformat`
9108   else
9109     case $host_os in
9110     freebsd[123]*) objformat=aout ;;
9111     *) objformat=elf ;;
9112     esac
9113   fi
9114   version_type=freebsd-$objformat
9115   case $version_type in
9116     freebsd-elf*)
9117       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9118       need_version=no
9119       need_lib_prefix=no
9120       ;;
9121     freebsd-*)
9122       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9123       need_version=yes
9124       ;;
9125   esac
9126   shlibpath_var=LD_LIBRARY_PATH
9127   case $host_os in
9128   freebsd2*)
9129     shlibpath_overrides_runpath=yes
9130     ;;
9131   freebsd3.[01]* | freebsdelf3.[01]*)
9132     shlibpath_overrides_runpath=yes
9133     hardcode_into_libs=yes
9134     ;;
9135   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9136   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9137     shlibpath_overrides_runpath=no
9138     hardcode_into_libs=yes
9139     ;;
9140   freebsd*) # from 4.6 on
9141     shlibpath_overrides_runpath=yes
9142     hardcode_into_libs=yes
9143     ;;
9144   esac
9145   ;;
9146
9147 gnu*)
9148   version_type=linux
9149   need_lib_prefix=no
9150   need_version=no
9151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9152   soname_spec='${libname}${release}${shared_ext}$major'
9153   shlibpath_var=LD_LIBRARY_PATH
9154   hardcode_into_libs=yes
9155   ;;
9156
9157 hpux9* | hpux10* | hpux11*)
9158   # Give a soname corresponding to the major version so that dld.sl refuses to
9159   # link against other versions.
9160   version_type=sunos
9161   need_lib_prefix=no
9162   need_version=no
9163   case $host_cpu in
9164   ia64*)
9165     shrext_cmds='.so'
9166     hardcode_into_libs=yes
9167     dynamic_linker="$host_os dld.so"
9168     shlibpath_var=LD_LIBRARY_PATH
9169     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9170     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171     soname_spec='${libname}${release}${shared_ext}$major'
9172     if test "X$HPUX_IA64_MODE" = X32; then
9173       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9174     else
9175       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9176     fi
9177     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9178     ;;
9179    hppa*64*)
9180      shrext_cmds='.sl'
9181      hardcode_into_libs=yes
9182      dynamic_linker="$host_os dld.sl"
9183      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9184      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9185      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186      soname_spec='${libname}${release}${shared_ext}$major'
9187      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9188      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9189      ;;
9190    *)
9191     shrext_cmds='.sl'
9192     dynamic_linker="$host_os dld.sl"
9193     shlibpath_var=SHLIB_PATH
9194     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9196     soname_spec='${libname}${release}${shared_ext}$major'
9197     ;;
9198   esac
9199   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9200   postinstall_cmds='chmod 555 $lib'
9201   ;;
9202
9203 interix3*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9210   shlibpath_var=LD_LIBRARY_PATH
9211   shlibpath_overrides_runpath=no
9212   hardcode_into_libs=yes
9213   ;;
9214
9215 irix5* | irix6* | nonstopux*)
9216   case $host_os in
9217     nonstopux*) version_type=nonstopux ;;
9218     *)
9219         if test "$lt_cv_prog_gnu_ld" = yes; then
9220                 version_type=linux
9221         else
9222                 version_type=irix
9223         fi ;;
9224   esac
9225   need_lib_prefix=no
9226   need_version=no
9227   soname_spec='${libname}${release}${shared_ext}$major'
9228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9229   case $host_os in
9230   irix5* | nonstopux*)
9231     libsuff= shlibsuff=
9232     ;;
9233   *)
9234     case $LD in # libtool.m4 will add one of these switches to LD
9235     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9236       libsuff= shlibsuff= libmagic=32-bit;;
9237     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9238       libsuff=32 shlibsuff=N32 libmagic=N32;;
9239     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9240       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9241     *) libsuff= shlibsuff= libmagic=never-match;;
9242     esac
9243     ;;
9244   esac
9245   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9246   shlibpath_overrides_runpath=no
9247   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9248   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9249   hardcode_into_libs=yes
9250   ;;
9251
9252 # No shared lib support for Linux oldld, aout, or coff.
9253 linux*oldld* | linux*aout* | linux*coff*)
9254   dynamic_linker=no
9255   ;;
9256
9257 # This must be Linux ELF.
9258 linux*)
9259   version_type=linux
9260   need_lib_prefix=no
9261   need_version=no
9262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9263   soname_spec='${libname}${release}${shared_ext}$major'
9264   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9265   shlibpath_var=LD_LIBRARY_PATH
9266   shlibpath_overrides_runpath=no
9267   # This implies no fast_install, which is unacceptable.
9268   # Some rework will be needed to allow for fast_install
9269   # before this can be enabled.
9270   hardcode_into_libs=yes
9271
9272   # Append ld.so.conf contents to the search path
9273   if test -f /etc/ld.so.conf; then
9274     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' ' '`
9275     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9276   fi
9277
9278   # We used to test for /lib/ld.so.1 and disable shared libraries on
9279   # powerpc, because MkLinux only supported shared libraries with the
9280   # GNU dynamic linker.  Since this was broken with cross compilers,
9281   # most powerpc-linux boxes support dynamic linking these days and
9282   # people can always --disable-shared, the test was removed, and we
9283   # assume the GNU/Linux dynamic linker is in use.
9284   dynamic_linker='GNU/Linux ld.so'
9285   ;;
9286
9287 knetbsd*-gnu)
9288   version_type=linux
9289   need_lib_prefix=no
9290   need_version=no
9291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9292   soname_spec='${libname}${release}${shared_ext}$major'
9293   shlibpath_var=LD_LIBRARY_PATH
9294   shlibpath_overrides_runpath=no
9295   hardcode_into_libs=yes
9296   dynamic_linker='GNU ld.so'
9297   ;;
9298
9299 netbsd*)
9300   version_type=sunos
9301   need_lib_prefix=no
9302   need_version=no
9303   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9304     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9305     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9306     dynamic_linker='NetBSD (a.out) ld.so'
9307   else
9308     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9309     soname_spec='${libname}${release}${shared_ext}$major'
9310     dynamic_linker='NetBSD ld.elf_so'
9311   fi
9312   shlibpath_var=LD_LIBRARY_PATH
9313   shlibpath_overrides_runpath=yes
9314   hardcode_into_libs=yes
9315   ;;
9316
9317 newsos6)
9318   version_type=linux
9319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320   shlibpath_var=LD_LIBRARY_PATH
9321   shlibpath_overrides_runpath=yes
9322   ;;
9323
9324 nto-qnx*)
9325   version_type=linux
9326   need_lib_prefix=no
9327   need_version=no
9328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9329   soname_spec='${libname}${release}${shared_ext}$major'
9330   shlibpath_var=LD_LIBRARY_PATH
9331   shlibpath_overrides_runpath=yes
9332   ;;
9333
9334 openbsd*)
9335   version_type=sunos
9336   sys_lib_dlsearch_path_spec="/usr/lib"
9337   need_lib_prefix=no
9338   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9339   case $host_os in
9340     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9341     *)                         need_version=no  ;;
9342   esac
9343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9344   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9345   shlibpath_var=LD_LIBRARY_PATH
9346   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9347     case $host_os in
9348       openbsd2.[89] | openbsd2.[89].*)
9349         shlibpath_overrides_runpath=no
9350         ;;
9351       *)
9352         shlibpath_overrides_runpath=yes
9353         ;;
9354       esac
9355   else
9356     shlibpath_overrides_runpath=yes
9357   fi
9358   ;;
9359
9360 os2*)
9361   libname_spec='$name'
9362   shrext_cmds=".dll"
9363   need_lib_prefix=no
9364   library_names_spec='$libname${shared_ext} $libname.a'
9365   dynamic_linker='OS/2 ld.exe'
9366   shlibpath_var=LIBPATH
9367   ;;
9368
9369 osf3* | osf4* | osf5*)
9370   version_type=osf
9371   need_lib_prefix=no
9372   need_version=no
9373   soname_spec='${libname}${release}${shared_ext}$major'
9374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375   shlibpath_var=LD_LIBRARY_PATH
9376   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9377   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9378   ;;
9379
9380 solaris*)
9381   version_type=linux
9382   need_lib_prefix=no
9383   need_version=no
9384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385   soname_spec='${libname}${release}${shared_ext}$major'
9386   shlibpath_var=LD_LIBRARY_PATH
9387   shlibpath_overrides_runpath=yes
9388   hardcode_into_libs=yes
9389   # ldd complains unless libraries are executable
9390   postinstall_cmds='chmod +x $lib'
9391   ;;
9392
9393 sunos4*)
9394   version_type=sunos
9395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9396   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9397   shlibpath_var=LD_LIBRARY_PATH
9398   shlibpath_overrides_runpath=yes
9399   if test "$with_gnu_ld" = yes; then
9400     need_lib_prefix=no
9401   fi
9402   need_version=yes
9403   ;;
9404
9405 sysv4 | sysv4.3*)
9406   version_type=linux
9407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408   soname_spec='${libname}${release}${shared_ext}$major'
9409   shlibpath_var=LD_LIBRARY_PATH
9410   case $host_vendor in
9411     sni)
9412       shlibpath_overrides_runpath=no
9413       need_lib_prefix=no
9414       export_dynamic_flag_spec='${wl}-Blargedynsym'
9415       runpath_var=LD_RUN_PATH
9416       ;;
9417     siemens)
9418       need_lib_prefix=no
9419       ;;
9420     motorola)
9421       need_lib_prefix=no
9422       need_version=no
9423       shlibpath_overrides_runpath=no
9424       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9425       ;;
9426   esac
9427   ;;
9428
9429 sysv4*MP*)
9430   if test -d /usr/nec ;then
9431     version_type=linux
9432     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9433     soname_spec='$libname${shared_ext}.$major'
9434     shlibpath_var=LD_LIBRARY_PATH
9435   fi
9436   ;;
9437
9438 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9439   version_type=freebsd-elf
9440   need_lib_prefix=no
9441   need_version=no
9442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9443   soname_spec='${libname}${release}${shared_ext}$major'
9444   shlibpath_var=LD_LIBRARY_PATH
9445   hardcode_into_libs=yes
9446   if test "$with_gnu_ld" = yes; then
9447     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9448     shlibpath_overrides_runpath=no
9449   else
9450     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9451     shlibpath_overrides_runpath=yes
9452     case $host_os in
9453       sco3.2v5*)
9454         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9455         ;;
9456     esac
9457   fi
9458   sys_lib_dlsearch_path_spec='/usr/lib'
9459   ;;
9460
9461 uts4*)
9462   version_type=linux
9463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464   soname_spec='${libname}${release}${shared_ext}$major'
9465   shlibpath_var=LD_LIBRARY_PATH
9466   ;;
9467
9468 *)
9469   dynamic_linker=no
9470   ;;
9471 esac
9472 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9473 echo "${ECHO_T}$dynamic_linker" >&6; }
9474 test "$dynamic_linker" = no && can_build_shared=no
9475
9476 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9477 if test "$GCC" = yes; then
9478   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9479 fi
9480
9481
9482 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9483 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9484 if test "${libltdl_cv_shlibext+set}" = set; then
9485   echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487
9488 module=yes
9489 eval libltdl_cv_shlibext=$shrext_cmds
9490
9491 fi
9492 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9493 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9494 if test -n "$libltdl_cv_shlibext"; then
9495
9496 cat >>confdefs.h <<_ACEOF
9497 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9498 _ACEOF
9499
9500 fi
9501
9502
9503 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9504 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9505 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9506   echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508   libltdl_cv_shlibpath_var="$shlibpath_var"
9509 fi
9510 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9511 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9512 if test -n "$libltdl_cv_shlibpath_var"; then
9513
9514 cat >>confdefs.h <<_ACEOF
9515 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9516 _ACEOF
9517
9518 fi
9519
9520
9521 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9522 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9523 if test "${libltdl_cv_sys_search_path+set}" = set; then
9524   echo $ECHO_N "(cached) $ECHO_C" >&6
9525 else
9526   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9527 fi
9528 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9529 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9530 if test -n "$libltdl_cv_sys_search_path"; then
9531   sys_search_path=
9532   for dir in $libltdl_cv_sys_search_path; do
9533     if test -z "$sys_search_path"; then
9534       sys_search_path="$dir"
9535     else
9536       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9537     fi
9538   done
9539
9540 cat >>confdefs.h <<_ACEOF
9541 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9542 _ACEOF
9543
9544 fi
9545
9546 { echo "$as_me:$LINENO: checking for objdir" >&5
9547 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9548 if test "${libltdl_cv_objdir+set}" = set; then
9549   echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551   libltdl_cv_objdir="$objdir"
9552   if test -n "$objdir"; then
9553     :
9554   else
9555     rm -f .libs 2>/dev/null
9556     mkdir .libs 2>/dev/null
9557     if test -d .libs; then
9558       libltdl_cv_objdir=.libs
9559     else
9560       # MS-DOS does not allow filenames that begin with a dot.
9561       libltdl_cv_objdir=_libs
9562     fi
9563   rmdir .libs 2>/dev/null
9564   fi
9565
9566 fi
9567 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9568 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9569
9570 cat >>confdefs.h <<_ACEOF
9571 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9572 _ACEOF
9573
9574
9575
9576
9577
9578
9579 # Check for command to grab the raw symbol name followed by C symbol from nm.
9580 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9581 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9582 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9583   echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9585
9586 # These are sane defaults that work on at least a few old systems.
9587 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9588
9589 # Character class describing NM global symbol codes.
9590 symcode='[BCDEGRST]'
9591
9592 # Regexp to match symbols that can be accessed directly from C.
9593 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9594
9595 # Transform an extracted symbol line into a proper C declaration
9596 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9597
9598 # Transform an extracted symbol line into symbol name and symbol address
9599 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'"
9600
9601 # Define system-specific variables.
9602 case $host_os in
9603 aix*)
9604   symcode='[BCDT]'
9605   ;;
9606 cygwin* | mingw* | pw32*)
9607   symcode='[ABCDGISTW]'
9608   ;;
9609 hpux*) # Its linker distinguishes data from code symbols
9610   if test "$host_cpu" = ia64; then
9611     symcode='[ABCDEGRST]'
9612   fi
9613   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9614   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'"
9615   ;;
9616 linux*)
9617   if test "$host_cpu" = ia64; then
9618     symcode='[ABCDGIRSTW]'
9619     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9620     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'"
9621   fi
9622   ;;
9623 irix* | nonstopux*)
9624   symcode='[BCDEGRST]'
9625   ;;
9626 osf*)
9627   symcode='[BCDEGQRST]'
9628   ;;
9629 solaris*)
9630   symcode='[BDRT]'
9631   ;;
9632 sco3.2v5*)
9633   symcode='[DT]'
9634   ;;
9635 sysv4.2uw2*)
9636   symcode='[DT]'
9637   ;;
9638 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9639   symcode='[ABDT]'
9640   ;;
9641 sysv4)
9642   symcode='[DFNSTU]'
9643   ;;
9644 esac
9645
9646 # Handle CRLF in mingw tool chain
9647 opt_cr=
9648 case $build_os in
9649 mingw*)
9650   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9651   ;;
9652 esac
9653
9654 # If we're using GNU nm, then use its standard symbol codes.
9655 case `$NM -V 2>&1` in
9656 *GNU* | *'with BFD'*)
9657   symcode='[ABCDGIRSTW]' ;;
9658 esac
9659
9660 # Try without a prefix undercore, then with it.
9661 for ac_symprfx in "" "_"; do
9662
9663   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9664   symxfrm="\\1 $ac_symprfx\\2 \\2"
9665
9666   # Write the raw and C identifiers.
9667   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9668
9669   # Check to see that the pipe works correctly.
9670   pipe_works=no
9671
9672   rm -f conftest*
9673   cat > conftest.$ac_ext <<EOF
9674 #ifdef __cplusplus
9675 extern "C" {
9676 #endif
9677 char nm_test_var;
9678 void nm_test_func(){}
9679 #ifdef __cplusplus
9680 }
9681 #endif
9682 int main(){nm_test_var='a';nm_test_func();return(0);}
9683 EOF
9684
9685   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9686   (eval $ac_compile) 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); }; then
9690     # Now try to grab the symbols.
9691     nlist=conftest.nm
9692     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9693   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9694   ac_status=$?
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); } && test -s "$nlist"; then
9697       # Try sorting and uniquifying the output.
9698       if sort "$nlist" | uniq > "$nlist"T; then
9699         mv -f "$nlist"T "$nlist"
9700       else
9701         rm -f "$nlist"T
9702       fi
9703
9704       # Make sure that we snagged all the symbols we need.
9705       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9706         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9707           cat <<EOF > conftest.$ac_ext
9708 #ifdef __cplusplus
9709 extern "C" {
9710 #endif
9711
9712 EOF
9713           # Now generate the symbol file.
9714           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9715
9716           cat <<EOF >> conftest.$ac_ext
9717 #if defined (__STDC__) && __STDC__
9718 # define lt_ptr_t void *
9719 #else
9720 # define lt_ptr_t char *
9721 # define const
9722 #endif
9723
9724 /* The mapping between symbol names and symbols. */
9725 const struct {
9726   const char *name;
9727   lt_ptr_t address;
9728 }
9729 lt_preloaded_symbols[] =
9730 {
9731 EOF
9732           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9733           cat <<\EOF >> conftest.$ac_ext
9734   {0, (lt_ptr_t) 0}
9735 };
9736
9737 #ifdef __cplusplus
9738 }
9739 #endif
9740 EOF
9741           # Now try linking the two files.
9742           mv conftest.$ac_objext conftstm.$ac_objext
9743           lt_save_LIBS="$LIBS"
9744           lt_save_CFLAGS="$CFLAGS"
9745           LIBS="conftstm.$ac_objext"
9746           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9747           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9748   (eval $ac_link) 2>&5
9749   ac_status=$?
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9752             pipe_works=yes
9753           fi
9754           LIBS="$lt_save_LIBS"
9755           CFLAGS="$lt_save_CFLAGS"
9756         else
9757           echo "cannot find nm_test_func in $nlist" >&5
9758         fi
9759       else
9760         echo "cannot find nm_test_var in $nlist" >&5
9761       fi
9762     else
9763       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9764     fi
9765   else
9766     echo "$progname: failed program was:" >&5
9767     cat conftest.$ac_ext >&5
9768   fi
9769   rm -f conftest* conftst*
9770
9771   # Do not use the global_symbol_pipe unless it works.
9772   if test "$pipe_works" = yes; then
9773     break
9774   else
9775     lt_cv_sys_global_symbol_pipe=
9776   fi
9777 done
9778
9779 fi
9780
9781 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9782   lt_cv_sys_global_symbol_to_cdecl=
9783 fi
9784 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9785   { echo "$as_me:$LINENO: result: failed" >&5
9786 echo "${ECHO_T}failed" >&6; }
9787 else
9788   { echo "$as_me:$LINENO: result: ok" >&5
9789 echo "${ECHO_T}ok" >&6; }
9790 fi
9791
9792
9793 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9794 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9795 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9796   echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9799     libltdl_cv_preloaded_symbols=yes
9800   else
9801     libltdl_cv_preloaded_symbols=no
9802   fi
9803
9804 fi
9805 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9806 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9807 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9808
9809 cat >>confdefs.h <<\_ACEOF
9810 #define HAVE_PRELOADED_SYMBOLS 1
9811 _ACEOF
9812
9813 fi
9814
9815 LIBADD_DL=
9816
9817 ac_ext=c
9818 ac_cpp='$CPP $CPPFLAGS'
9819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9822
9823
9824 { echo "$as_me:$LINENO: checking for shl_load" >&5
9825 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9826 if test "${ac_cv_func_shl_load+set}" = set; then
9827   echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829   cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h.  */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h.  */
9835 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9836    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9837 #define shl_load innocuous_shl_load
9838
9839 /* System header to define __stub macros and hopefully few prototypes,
9840     which can conflict with char shl_load (); below.
9841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9842     <limits.h> exists even on freestanding compilers.  */
9843
9844 #ifdef __STDC__
9845 # include <limits.h>
9846 #else
9847 # include <assert.h>
9848 #endif
9849
9850 #undef shl_load
9851
9852 /* Override any GCC internal prototype to avoid an error.
9853    Use char because int might match the return type of a GCC
9854    builtin and then its argument prototype would still apply.  */
9855 #ifdef __cplusplus
9856 extern "C"
9857 #endif
9858 char shl_load ();
9859 /* The GNU C library defines this for functions which it implements
9860     to always fail with ENOSYS.  Some functions are actually named
9861     something starting with __ and the normal name is an alias.  */
9862 #if defined __stub_shl_load || defined __stub___shl_load
9863 choke me
9864 #endif
9865
9866 int
9867 main ()
9868 {
9869 return shl_load ();
9870   ;
9871   return 0;
9872 }
9873 _ACEOF
9874 rm -f conftest.$ac_objext conftest$ac_exeext
9875 if { (ac_try="$ac_link"
9876 case "(($ac_try" in
9877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878   *) ac_try_echo=$ac_try;;
9879 esac
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881   (eval "$ac_link") 2>conftest.er1
9882   ac_status=$?
9883   grep -v '^ *+' conftest.er1 >conftest.err
9884   rm -f conftest.er1
9885   cat conftest.err >&5
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); } &&
9888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9889   { (case "(($ac_try" in
9890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891   *) ac_try_echo=$ac_try;;
9892 esac
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894   (eval "$ac_try") 2>&5
9895   ac_status=$?
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); }; } &&
9898          { ac_try='test -s conftest$ac_exeext'
9899   { (case "(($ac_try" in
9900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901   *) ac_try_echo=$ac_try;;
9902 esac
9903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904   (eval "$ac_try") 2>&5
9905   ac_status=$?
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   (exit $ac_status); }; }; then
9908   ac_cv_func_shl_load=yes
9909 else
9910   echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9912
9913         ac_cv_func_shl_load=no
9914 fi
9915
9916 rm -f core conftest.err conftest.$ac_objext \
9917       conftest$ac_exeext conftest.$ac_ext
9918 fi
9919 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9920 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9921 if test $ac_cv_func_shl_load = yes; then
9922
9923 cat >>confdefs.h <<\_ACEOF
9924 #define HAVE_SHL_LOAD 1
9925 _ACEOF
9926
9927 else
9928   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9929 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9930 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9931   echo $ECHO_N "(cached) $ECHO_C" >&6
9932 else
9933   ac_check_lib_save_LIBS=$LIBS
9934 LIBS="-ldld  $LIBS"
9935 cat >conftest.$ac_ext <<_ACEOF
9936 /* confdefs.h.  */
9937 _ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h.  */
9941
9942 /* Override any GCC internal prototype to avoid an error.
9943    Use char because int might match the return type of a GCC
9944    builtin and then its argument prototype would still apply.  */
9945 #ifdef __cplusplus
9946 extern "C"
9947 #endif
9948 char shl_load ();
9949 int
9950 main ()
9951 {
9952 return shl_load ();
9953   ;
9954   return 0;
9955 }
9956 _ACEOF
9957 rm -f conftest.$ac_objext conftest$ac_exeext
9958 if { (ac_try="$ac_link"
9959 case "(($ac_try" in
9960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961   *) ac_try_echo=$ac_try;;
9962 esac
9963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964   (eval "$ac_link") 2>conftest.er1
9965   ac_status=$?
9966   grep -v '^ *+' conftest.er1 >conftest.err
9967   rm -f conftest.er1
9968   cat conftest.err >&5
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); } &&
9971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9972   { (case "(($ac_try" in
9973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974   *) ac_try_echo=$ac_try;;
9975 esac
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977   (eval "$ac_try") 2>&5
9978   ac_status=$?
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); }; } &&
9981          { ac_try='test -s conftest$ac_exeext'
9982   { (case "(($ac_try" in
9983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984   *) ac_try_echo=$ac_try;;
9985 esac
9986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987   (eval "$ac_try") 2>&5
9988   ac_status=$?
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); }; }; then
9991   ac_cv_lib_dld_shl_load=yes
9992 else
9993   echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9995
9996         ac_cv_lib_dld_shl_load=no
9997 fi
9998
9999 rm -f core conftest.err conftest.$ac_objext \
10000       conftest$ac_exeext conftest.$ac_ext
10001 LIBS=$ac_check_lib_save_LIBS
10002 fi
10003 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10004 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10005 if test $ac_cv_lib_dld_shl_load = yes; then
10006
10007 cat >>confdefs.h <<\_ACEOF
10008 #define HAVE_SHL_LOAD 1
10009 _ACEOF
10010
10011         LIBADD_DL="$LIBADD_DL -ldld"
10012 else
10013   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10014 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10015 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10016   echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018   ac_check_lib_save_LIBS=$LIBS
10019 LIBS="-ldl  $LIBS"
10020 cat >conftest.$ac_ext <<_ACEOF
10021 /* confdefs.h.  */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h.  */
10026
10027 /* Override any GCC internal prototype to avoid an error.
10028    Use char because int might match the return type of a GCC
10029    builtin and then its argument prototype would still apply.  */
10030 #ifdef __cplusplus
10031 extern "C"
10032 #endif
10033 char dlopen ();
10034 int
10035 main ()
10036 {
10037 return dlopen ();
10038   ;
10039   return 0;
10040 }
10041 _ACEOF
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046   *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049   (eval "$ac_link") 2>conftest.er1
10050   ac_status=$?
10051   grep -v '^ *+' conftest.er1 >conftest.err
10052   rm -f conftest.er1
10053   cat conftest.err >&5
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); } &&
10056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10057   { (case "(($ac_try" in
10058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059   *) ac_try_echo=$ac_try;;
10060 esac
10061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062   (eval "$ac_try") 2>&5
10063   ac_status=$?
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); }; } &&
10066          { ac_try='test -s conftest$ac_exeext'
10067   { (case "(($ac_try" in
10068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069   *) ac_try_echo=$ac_try;;
10070 esac
10071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072   (eval "$ac_try") 2>&5
10073   ac_status=$?
10074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075   (exit $ac_status); }; }; then
10076   ac_cv_lib_dl_dlopen=yes
10077 else
10078   echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10080
10081         ac_cv_lib_dl_dlopen=no
10082 fi
10083
10084 rm -f core conftest.err conftest.$ac_objext \
10085       conftest$ac_exeext conftest.$ac_ext
10086 LIBS=$ac_check_lib_save_LIBS
10087 fi
10088 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10089 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10090 if test $ac_cv_lib_dl_dlopen = yes; then
10091
10092 cat >>confdefs.h <<\_ACEOF
10093 #define HAVE_LIBDL 1
10094 _ACEOF
10095
10096                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10097 else
10098   cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h.  */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h.  */
10104 #if HAVE_DLFCN_H
10105 #  include <dlfcn.h>
10106 #endif
10107
10108 int
10109 main ()
10110 {
10111 dlopen(0, 0);
10112   ;
10113   return 0;
10114 }
10115 _ACEOF
10116 rm -f conftest.$ac_objext conftest$ac_exeext
10117 if { (ac_try="$ac_link"
10118 case "(($ac_try" in
10119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120   *) ac_try_echo=$ac_try;;
10121 esac
10122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10123   (eval "$ac_link") 2>conftest.er1
10124   ac_status=$?
10125   grep -v '^ *+' conftest.er1 >conftest.err
10126   rm -f conftest.er1
10127   cat conftest.err >&5
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   (exit $ac_status); } &&
10130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10131   { (case "(($ac_try" in
10132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133   *) ac_try_echo=$ac_try;;
10134 esac
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136   (eval "$ac_try") 2>&5
10137   ac_status=$?
10138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139   (exit $ac_status); }; } &&
10140          { ac_try='test -s conftest$ac_exeext'
10141   { (case "(($ac_try" in
10142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143   *) ac_try_echo=$ac_try;;
10144 esac
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146   (eval "$ac_try") 2>&5
10147   ac_status=$?
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); }; }; then
10150
10151 cat >>confdefs.h <<\_ACEOF
10152 #define HAVE_LIBDL 1
10153 _ACEOF
10154  libltdl_cv_func_dlopen="yes"
10155 else
10156   echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10160 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10161 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10162   echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164   ac_check_lib_save_LIBS=$LIBS
10165 LIBS="-lsvld  $LIBS"
10166 cat >conftest.$ac_ext <<_ACEOF
10167 /* confdefs.h.  */
10168 _ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h.  */
10172
10173 /* Override any GCC internal prototype to avoid an error.
10174    Use char because int might match the return type of a GCC
10175    builtin and then its argument prototype would still apply.  */
10176 #ifdef __cplusplus
10177 extern "C"
10178 #endif
10179 char dlopen ();
10180 int
10181 main ()
10182 {
10183 return dlopen ();
10184   ;
10185   return 0;
10186 }
10187 _ACEOF
10188 rm -f conftest.$ac_objext conftest$ac_exeext
10189 if { (ac_try="$ac_link"
10190 case "(($ac_try" in
10191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10192   *) ac_try_echo=$ac_try;;
10193 esac
10194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10195   (eval "$ac_link") 2>conftest.er1
10196   ac_status=$?
10197   grep -v '^ *+' conftest.er1 >conftest.err
10198   rm -f conftest.er1
10199   cat conftest.err >&5
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); } &&
10202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10203   { (case "(($ac_try" in
10204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205   *) ac_try_echo=$ac_try;;
10206 esac
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208   (eval "$ac_try") 2>&5
10209   ac_status=$?
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); }; } &&
10212          { ac_try='test -s conftest$ac_exeext'
10213   { (case "(($ac_try" in
10214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215   *) ac_try_echo=$ac_try;;
10216 esac
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218   (eval "$ac_try") 2>&5
10219   ac_status=$?
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); }; }; then
10222   ac_cv_lib_svld_dlopen=yes
10223 else
10224   echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10226
10227         ac_cv_lib_svld_dlopen=no
10228 fi
10229
10230 rm -f core conftest.err conftest.$ac_objext \
10231       conftest$ac_exeext conftest.$ac_ext
10232 LIBS=$ac_check_lib_save_LIBS
10233 fi
10234 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10235 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10236 if test $ac_cv_lib_svld_dlopen = yes; then
10237
10238 cat >>confdefs.h <<\_ACEOF
10239 #define HAVE_LIBDL 1
10240 _ACEOF
10241
10242                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10243 else
10244   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10245 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10246 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10247   echo $ECHO_N "(cached) $ECHO_C" >&6
10248 else
10249   ac_check_lib_save_LIBS=$LIBS
10250 LIBS="-ldld  $LIBS"
10251 cat >conftest.$ac_ext <<_ACEOF
10252 /* confdefs.h.  */
10253 _ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h.  */
10257
10258 /* Override any GCC internal prototype to avoid an error.
10259    Use char because int might match the return type of a GCC
10260    builtin and then its argument prototype would still apply.  */
10261 #ifdef __cplusplus
10262 extern "C"
10263 #endif
10264 char dld_link ();
10265 int
10266 main ()
10267 {
10268 return dld_link ();
10269   ;
10270   return 0;
10271 }
10272 _ACEOF
10273 rm -f conftest.$ac_objext conftest$ac_exeext
10274 if { (ac_try="$ac_link"
10275 case "(($ac_try" in
10276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277   *) ac_try_echo=$ac_try;;
10278 esac
10279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10280   (eval "$ac_link") 2>conftest.er1
10281   ac_status=$?
10282   grep -v '^ *+' conftest.er1 >conftest.err
10283   rm -f conftest.er1
10284   cat conftest.err >&5
10285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286   (exit $ac_status); } &&
10287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10288   { (case "(($ac_try" in
10289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290   *) ac_try_echo=$ac_try;;
10291 esac
10292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10293   (eval "$ac_try") 2>&5
10294   ac_status=$?
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); }; } &&
10297          { ac_try='test -s conftest$ac_exeext'
10298   { (case "(($ac_try" in
10299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300   *) ac_try_echo=$ac_try;;
10301 esac
10302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10303   (eval "$ac_try") 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); }; }; then
10307   ac_cv_lib_dld_dld_link=yes
10308 else
10309   echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10311
10312         ac_cv_lib_dld_dld_link=no
10313 fi
10314
10315 rm -f core conftest.err conftest.$ac_objext \
10316       conftest$ac_exeext conftest.$ac_ext
10317 LIBS=$ac_check_lib_save_LIBS
10318 fi
10319 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10320 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10321 if test $ac_cv_lib_dld_dld_link = yes; then
10322
10323 cat >>confdefs.h <<\_ACEOF
10324 #define HAVE_DLD 1
10325 _ACEOF
10326
10327                 LIBADD_DL="$LIBADD_DL -ldld"
10328 else
10329   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10330 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10331 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10332   echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334   cat >conftest.$ac_ext <<_ACEOF
10335 /* confdefs.h.  */
10336 _ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h.  */
10340 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10342 #define _dyld_func_lookup innocuous__dyld_func_lookup
10343
10344 /* System header to define __stub macros and hopefully few prototypes,
10345     which can conflict with char _dyld_func_lookup (); below.
10346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10347     <limits.h> exists even on freestanding compilers.  */
10348
10349 #ifdef __STDC__
10350 # include <limits.h>
10351 #else
10352 # include <assert.h>
10353 #endif
10354
10355 #undef _dyld_func_lookup
10356
10357 /* Override any GCC internal prototype to avoid an error.
10358    Use char because int might match the return type of a GCC
10359    builtin and then its argument prototype would still apply.  */
10360 #ifdef __cplusplus
10361 extern "C"
10362 #endif
10363 char _dyld_func_lookup ();
10364 /* The GNU C library defines this for functions which it implements
10365     to always fail with ENOSYS.  Some functions are actually named
10366     something starting with __ and the normal name is an alias.  */
10367 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10368 choke me
10369 #endif
10370
10371 int
10372 main ()
10373 {
10374 return _dyld_func_lookup ();
10375   ;
10376   return 0;
10377 }
10378 _ACEOF
10379 rm -f conftest.$ac_objext conftest$ac_exeext
10380 if { (ac_try="$ac_link"
10381 case "(($ac_try" in
10382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10383   *) ac_try_echo=$ac_try;;
10384 esac
10385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10386   (eval "$ac_link") 2>conftest.er1
10387   ac_status=$?
10388   grep -v '^ *+' conftest.er1 >conftest.err
10389   rm -f conftest.er1
10390   cat conftest.err >&5
10391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); } &&
10393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10394   { (case "(($ac_try" in
10395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396   *) ac_try_echo=$ac_try;;
10397 esac
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399   (eval "$ac_try") 2>&5
10400   ac_status=$?
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); }; } &&
10403          { ac_try='test -s conftest$ac_exeext'
10404   { (case "(($ac_try" in
10405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406   *) ac_try_echo=$ac_try;;
10407 esac
10408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409   (eval "$ac_try") 2>&5
10410   ac_status=$?
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); }; }; then
10413   ac_cv_func__dyld_func_lookup=yes
10414 else
10415   echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10417
10418         ac_cv_func__dyld_func_lookup=no
10419 fi
10420
10421 rm -f core conftest.err conftest.$ac_objext \
10422       conftest$ac_exeext conftest.$ac_ext
10423 fi
10424 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10425 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10426 if test $ac_cv_func__dyld_func_lookup = yes; then
10427
10428 cat >>confdefs.h <<\_ACEOF
10429 #define HAVE_DYLD 1
10430 _ACEOF
10431
10432 fi
10433
10434
10435 fi
10436
10437
10438 fi
10439
10440
10441 fi
10442
10443 rm -f core conftest.err conftest.$ac_objext \
10444       conftest$ac_exeext conftest.$ac_ext
10445
10446 fi
10447
10448
10449 fi
10450
10451
10452 fi
10453
10454
10455 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10456 then
10457   lt_save_LIBS="$LIBS"
10458   LIBS="$LIBS $LIBADD_DL"
10459
10460 for ac_func in dlerror
10461 do
10462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10466   echo $ECHO_N "(cached) $ECHO_C" >&6
10467 else
10468   cat >conftest.$ac_ext <<_ACEOF
10469 /* confdefs.h.  */
10470 _ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h.  */
10474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10476 #define $ac_func innocuous_$ac_func
10477
10478 /* System header to define __stub macros and hopefully few prototypes,
10479     which can conflict with char $ac_func (); below.
10480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10481     <limits.h> exists even on freestanding compilers.  */
10482
10483 #ifdef __STDC__
10484 # include <limits.h>
10485 #else
10486 # include <assert.h>
10487 #endif
10488
10489 #undef $ac_func
10490
10491 /* Override any GCC internal prototype to avoid an error.
10492    Use char because int might match the return type of a GCC
10493    builtin and then its argument prototype would still apply.  */
10494 #ifdef __cplusplus
10495 extern "C"
10496 #endif
10497 char $ac_func ();
10498 /* The GNU C library defines this for functions which it implements
10499     to always fail with ENOSYS.  Some functions are actually named
10500     something starting with __ and the normal name is an alias.  */
10501 #if defined __stub_$ac_func || defined __stub___$ac_func
10502 choke me
10503 #endif
10504
10505 int
10506 main ()
10507 {
10508 return $ac_func ();
10509   ;
10510   return 0;
10511 }
10512 _ACEOF
10513 rm -f conftest.$ac_objext conftest$ac_exeext
10514 if { (ac_try="$ac_link"
10515 case "(($ac_try" in
10516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517   *) ac_try_echo=$ac_try;;
10518 esac
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520   (eval "$ac_link") 2>conftest.er1
10521   ac_status=$?
10522   grep -v '^ *+' conftest.er1 >conftest.err
10523   rm -f conftest.er1
10524   cat conftest.err >&5
10525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526   (exit $ac_status); } &&
10527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10528   { (case "(($ac_try" in
10529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530   *) ac_try_echo=$ac_try;;
10531 esac
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533   (eval "$ac_try") 2>&5
10534   ac_status=$?
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); }; } &&
10537          { ac_try='test -s conftest$ac_exeext'
10538   { (case "(($ac_try" in
10539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540   *) ac_try_echo=$ac_try;;
10541 esac
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543   (eval "$ac_try") 2>&5
10544   ac_status=$?
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); }; }; then
10547   eval "$as_ac_var=yes"
10548 else
10549   echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10551
10552         eval "$as_ac_var=no"
10553 fi
10554
10555 rm -f core conftest.err conftest.$ac_objext \
10556       conftest$ac_exeext conftest.$ac_ext
10557 fi
10558 ac_res=`eval echo '${'$as_ac_var'}'`
10559                { echo "$as_me:$LINENO: result: $ac_res" >&5
10560 echo "${ECHO_T}$ac_res" >&6; }
10561 if test `eval echo '${'$as_ac_var'}'` = yes; then
10562   cat >>confdefs.h <<_ACEOF
10563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10564 _ACEOF
10565
10566 fi
10567 done
10568
10569   LIBS="$lt_save_LIBS"
10570 fi
10571 ac_ext=c
10572 ac_cpp='$CPP $CPPFLAGS'
10573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10576
10577
10578
10579 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10580 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10581 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10582   echo $ECHO_N "(cached) $ECHO_C" >&6
10583 else
10584   ac_cv_sys_symbol_underscore=no
10585   cat > conftest.$ac_ext <<EOF
10586 void nm_test_func(){}
10587 int main(){nm_test_func;return 0;}
10588 EOF
10589   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10590   (eval $ac_compile) 2>&5
10591   ac_status=$?
10592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593   (exit $ac_status); }; then
10594     # Now try to grab the symbols.
10595     ac_nlist=conftest.nm
10596     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10597   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10598   ac_status=$?
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); } && test -s "$ac_nlist"; then
10601       # See whether the symbols have a leading underscore.
10602       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10603         ac_cv_sys_symbol_underscore=yes
10604       else
10605         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10606           :
10607         else
10608           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10609         fi
10610       fi
10611     else
10612       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10613     fi
10614   else
10615     echo "configure: failed program was:" >&5
10616     cat conftest.c >&5
10617   fi
10618   rm -rf conftest*
10619
10620 fi
10621 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10622 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10623
10624
10625 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10626   if test x"$libltdl_cv_func_dlopen" = xyes ||
10627      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10628         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10629 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10630 if test "${libltdl_cv_need_uscore+set}" = set; then
10631   echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633   libltdl_cv_need_uscore=unknown
10634           save_LIBS="$LIBS"
10635           LIBS="$LIBS $LIBADD_DL"
10636           if test "$cross_compiling" = yes; then :
10637   libltdl_cv_need_uscore=cross
10638 else
10639   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10640   lt_status=$lt_dlunknown
10641   cat > conftest.$ac_ext <<EOF
10642 #line 10639 "configure"
10643 #include "confdefs.h"
10644
10645 #if HAVE_DLFCN_H
10646 #include <dlfcn.h>
10647 #endif
10648
10649 #include <stdio.h>
10650
10651 #ifdef RTLD_GLOBAL
10652 #  define LT_DLGLOBAL           RTLD_GLOBAL
10653 #else
10654 #  ifdef DL_GLOBAL
10655 #    define LT_DLGLOBAL         DL_GLOBAL
10656 #  else
10657 #    define LT_DLGLOBAL         0
10658 #  endif
10659 #endif
10660
10661 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10662    find out it does not work in some platform. */
10663 #ifndef LT_DLLAZY_OR_NOW
10664 #  ifdef RTLD_LAZY
10665 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10666 #  else
10667 #    ifdef DL_LAZY
10668 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10669 #    else
10670 #      ifdef RTLD_NOW
10671 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10672 #      else
10673 #        ifdef DL_NOW
10674 #          define LT_DLLAZY_OR_NOW      DL_NOW
10675 #        else
10676 #          define LT_DLLAZY_OR_NOW      0
10677 #        endif
10678 #      endif
10679 #    endif
10680 #  endif
10681 #endif
10682
10683 #ifdef __cplusplus
10684 extern "C" void exit (int);
10685 #endif
10686
10687 void fnord() { int i=42;}
10688 int main ()
10689 {
10690   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10691   int status = $lt_dlunknown;
10692
10693   if (self)
10694     {
10695       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10696       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10697       /* dlclose (self); */
10698     }
10699   else
10700     puts (dlerror ());
10701
10702     exit (status);
10703 }
10704 EOF
10705   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10706   (eval $ac_link) 2>&5
10707   ac_status=$?
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10710     (./conftest; exit; ) >&5 2>/dev/null
10711     lt_status=$?
10712     case x$lt_status in
10713       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10714       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10715       x$lt_dlunknown|x*)  ;;
10716     esac
10717   else :
10718     # compilation failed
10719
10720   fi
10721 fi
10722 rm -fr conftest*
10723
10724           LIBS="$save_LIBS"
10725
10726 fi
10727 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10728 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10729   fi
10730 fi
10731
10732 if test x"$libltdl_cv_need_uscore" = xyes; then
10733
10734 cat >>confdefs.h <<\_ACEOF
10735 #define NEED_USCORE 1
10736 _ACEOF
10737
10738 fi
10739
10740
10741 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10742 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10743 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10744   echo $ECHO_N "(cached) $ECHO_C" >&6
10745 else
10746   # PORTME does your system automatically load deplibs for dlopen?
10747   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10748   # For now, we just catch OSes we know something about -- in the
10749   # future, we'll try test this programmatically.
10750   libltdl_cv_sys_dlopen_deplibs=unknown
10751   case "$host_os" in
10752   aix3*|aix4.1.*|aix4.2.*)
10753     # Unknown whether this is true for these versions of AIX, but
10754     # we want this `case' here to explicitly catch those versions.
10755     libltdl_cv_sys_dlopen_deplibs=unknown
10756     ;;
10757   aix[45]*)
10758     libltdl_cv_sys_dlopen_deplibs=yes
10759     ;;
10760   darwin*)
10761     # Assuming the user has installed a libdl from somewhere, this is true
10762     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10763     libltdl_cv_sys_dlopen_deplibs=yes
10764     ;;
10765   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10766     # GNU and its variants, using gnu ld.so (Glibc)
10767     libltdl_cv_sys_dlopen_deplibs=yes
10768     ;;
10769   hpux10*|hpux11*)
10770     libltdl_cv_sys_dlopen_deplibs=yes
10771     ;;
10772   interix*)
10773     libltdl_cv_sys_dlopen_deplibs=yes
10774     ;;
10775   irix[12345]*|irix6.[01]*)
10776     # Catch all versions of IRIX before 6.2, and indicate that we don't
10777     # know how it worked for any of those versions.
10778     libltdl_cv_sys_dlopen_deplibs=unknown
10779     ;;
10780   irix*)
10781     # The case above catches anything before 6.2, and it's known that
10782     # at 6.2 and later dlopen does load deplibs.
10783     libltdl_cv_sys_dlopen_deplibs=yes
10784     ;;
10785   netbsd*)
10786     libltdl_cv_sys_dlopen_deplibs=yes
10787     ;;
10788   openbsd*)
10789     libltdl_cv_sys_dlopen_deplibs=yes
10790     ;;
10791   osf[1234]*)
10792     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10793     # it did *not* use an RPATH in a shared library to find objects the
10794     # library depends on, so we explictly say `no'.
10795     libltdl_cv_sys_dlopen_deplibs=no
10796     ;;
10797   osf5.0|osf5.0a|osf5.1)
10798     # dlopen *does* load deplibs and with the right loader patch applied
10799     # it even uses RPATH in a shared library to search for shared objects
10800     # that the library depends on, but there's no easy way to know if that
10801     # patch is installed.  Since this is the case, all we can really
10802     # say is unknown -- it depends on the patch being installed.  If
10803     # it is, this changes to `yes'.  Without it, it would be `no'.
10804     libltdl_cv_sys_dlopen_deplibs=unknown
10805     ;;
10806   osf*)
10807     # the two cases above should catch all versions of osf <= 5.1.  Read
10808     # the comments above for what we know about them.
10809     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10810     # is used to find them so we can finally say `yes'.
10811     libltdl_cv_sys_dlopen_deplibs=yes
10812     ;;
10813   solaris*)
10814     libltdl_cv_sys_dlopen_deplibs=yes
10815     ;;
10816   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10817     libltdl_cv_sys_dlopen_deplibs=yes
10818     ;;
10819   esac
10820
10821 fi
10822 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10823 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10824 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10825
10826 cat >>confdefs.h <<\_ACEOF
10827 #define LTDL_DLOPEN_DEPLIBS 1
10828 _ACEOF
10829
10830 fi
10831
10832
10833 for ac_header in argz.h
10834 do
10835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10837   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10840   echo $ECHO_N "(cached) $ECHO_C" >&6
10841 fi
10842 ac_res=`eval echo '${'$as_ac_Header'}'`
10843                { echo "$as_me:$LINENO: result: $ac_res" >&5
10844 echo "${ECHO_T}$ac_res" >&6; }
10845 else
10846   # Is the header compilable?
10847 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10849 cat >conftest.$ac_ext <<_ACEOF
10850 /* confdefs.h.  */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h.  */
10855 $ac_includes_default
10856 #include <$ac_header>
10857 _ACEOF
10858 rm -f conftest.$ac_objext
10859 if { (ac_try="$ac_compile"
10860 case "(($ac_try" in
10861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862   *) ac_try_echo=$ac_try;;
10863 esac
10864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10865   (eval "$ac_compile") 2>conftest.er1
10866   ac_status=$?
10867   grep -v '^ *+' conftest.er1 >conftest.err
10868   rm -f conftest.er1
10869   cat conftest.err >&5
10870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871   (exit $ac_status); } &&
10872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10873   { (case "(($ac_try" in
10874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875   *) ac_try_echo=$ac_try;;
10876 esac
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878   (eval "$ac_try") 2>&5
10879   ac_status=$?
10880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881   (exit $ac_status); }; } &&
10882          { ac_try='test -s conftest.$ac_objext'
10883   { (case "(($ac_try" in
10884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885   *) ac_try_echo=$ac_try;;
10886 esac
10887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888   (eval "$ac_try") 2>&5
10889   ac_status=$?
10890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891   (exit $ac_status); }; }; then
10892   ac_header_compiler=yes
10893 else
10894   echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10896
10897         ac_header_compiler=no
10898 fi
10899
10900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10902 echo "${ECHO_T}$ac_header_compiler" >&6; }
10903
10904 # Is the header present?
10905 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10907 cat >conftest.$ac_ext <<_ACEOF
10908 /* confdefs.h.  */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h.  */
10913 #include <$ac_header>
10914 _ACEOF
10915 if { (ac_try="$ac_cpp conftest.$ac_ext"
10916 case "(($ac_try" in
10917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918   *) ac_try_echo=$ac_try;;
10919 esac
10920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10922   ac_status=$?
10923   grep -v '^ *+' conftest.er1 >conftest.err
10924   rm -f conftest.er1
10925   cat conftest.err >&5
10926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927   (exit $ac_status); } >/dev/null; then
10928   if test -s conftest.err; then
10929     ac_cpp_err=$ac_c_preproc_warn_flag
10930     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10931   else
10932     ac_cpp_err=
10933   fi
10934 else
10935   ac_cpp_err=yes
10936 fi
10937 if test -z "$ac_cpp_err"; then
10938   ac_header_preproc=yes
10939 else
10940   echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10942
10943   ac_header_preproc=no
10944 fi
10945
10946 rm -f conftest.err conftest.$ac_ext
10947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10948 echo "${ECHO_T}$ac_header_preproc" >&6; }
10949
10950 # So?  What about this header?
10951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10952   yes:no: )
10953     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10957     ac_header_preproc=yes
10958     ;;
10959   no:yes:* )
10960     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10962     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10963 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10964     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10966     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10967 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10968     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10970     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10972     ( cat <<\_ASBOX
10973 ## ----------------------------------- ##
10974 ## Report this to llvmbugs@cs.uiuc.edu ##
10975 ## ----------------------------------- ##
10976 _ASBOX
10977      ) | sed "s/^/$as_me: WARNING:     /" >&2
10978     ;;
10979 esac
10980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10983   echo $ECHO_N "(cached) $ECHO_C" >&6
10984 else
10985   eval "$as_ac_Header=\$ac_header_preproc"
10986 fi
10987 ac_res=`eval echo '${'$as_ac_Header'}'`
10988                { echo "$as_me:$LINENO: result: $ac_res" >&5
10989 echo "${ECHO_T}$ac_res" >&6; }
10990
10991 fi
10992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10993   cat >>confdefs.h <<_ACEOF
10994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10995 _ACEOF
10996
10997 fi
10998
10999 done
11000
11001
11002 { echo "$as_me:$LINENO: checking for error_t" >&5
11003 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11004 if test "${ac_cv_type_error_t+set}" = set; then
11005   echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007   cat >conftest.$ac_ext <<_ACEOF
11008 /* confdefs.h.  */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h.  */
11013 #if HAVE_ARGZ_H
11014 #  include <argz.h>
11015 #endif
11016
11017 typedef error_t ac__type_new_;
11018 int
11019 main ()
11020 {
11021 if ((ac__type_new_ *) 0)
11022   return 0;
11023 if (sizeof (ac__type_new_))
11024   return 0;
11025   ;
11026   return 0;
11027 }
11028 _ACEOF
11029 rm -f conftest.$ac_objext
11030 if { (ac_try="$ac_compile"
11031 case "(($ac_try" in
11032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033   *) ac_try_echo=$ac_try;;
11034 esac
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036   (eval "$ac_compile") 2>conftest.er1
11037   ac_status=$?
11038   grep -v '^ *+' conftest.er1 >conftest.err
11039   rm -f conftest.er1
11040   cat conftest.err >&5
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); } &&
11043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11044   { (case "(($ac_try" in
11045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046   *) ac_try_echo=$ac_try;;
11047 esac
11048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049   (eval "$ac_try") 2>&5
11050   ac_status=$?
11051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052   (exit $ac_status); }; } &&
11053          { ac_try='test -s conftest.$ac_objext'
11054   { (case "(($ac_try" in
11055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056   *) ac_try_echo=$ac_try;;
11057 esac
11058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059   (eval "$ac_try") 2>&5
11060   ac_status=$?
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); }; }; then
11063   ac_cv_type_error_t=yes
11064 else
11065   echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11067
11068         ac_cv_type_error_t=no
11069 fi
11070
11071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11072 fi
11073 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11074 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11075 if test $ac_cv_type_error_t = yes; then
11076
11077 cat >>confdefs.h <<_ACEOF
11078 #define HAVE_ERROR_T 1
11079 _ACEOF
11080
11081
11082 else
11083
11084 cat >>confdefs.h <<\_ACEOF
11085 #define error_t int
11086 _ACEOF
11087
11088 fi
11089
11090
11091
11092
11093
11094
11095
11096 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11097 do
11098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11102   echo $ECHO_N "(cached) $ECHO_C" >&6
11103 else
11104   cat >conftest.$ac_ext <<_ACEOF
11105 /* confdefs.h.  */
11106 _ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h.  */
11110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11111    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11112 #define $ac_func innocuous_$ac_func
11113
11114 /* System header to define __stub macros and hopefully few prototypes,
11115     which can conflict with char $ac_func (); below.
11116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11117     <limits.h> exists even on freestanding compilers.  */
11118
11119 #ifdef __STDC__
11120 # include <limits.h>
11121 #else
11122 # include <assert.h>
11123 #endif
11124
11125 #undef $ac_func
11126
11127 /* Override any GCC internal prototype to avoid an error.
11128    Use char because int might match the return type of a GCC
11129    builtin and then its argument prototype would still apply.  */
11130 #ifdef __cplusplus
11131 extern "C"
11132 #endif
11133 char $ac_func ();
11134 /* The GNU C library defines this for functions which it implements
11135     to always fail with ENOSYS.  Some functions are actually named
11136     something starting with __ and the normal name is an alias.  */
11137 #if defined __stub_$ac_func || defined __stub___$ac_func
11138 choke me
11139 #endif
11140
11141 int
11142 main ()
11143 {
11144 return $ac_func ();
11145   ;
11146   return 0;
11147 }
11148 _ACEOF
11149 rm -f conftest.$ac_objext conftest$ac_exeext
11150 if { (ac_try="$ac_link"
11151 case "(($ac_try" in
11152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153   *) ac_try_echo=$ac_try;;
11154 esac
11155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156   (eval "$ac_link") 2>conftest.er1
11157   ac_status=$?
11158   grep -v '^ *+' conftest.er1 >conftest.err
11159   rm -f conftest.er1
11160   cat conftest.err >&5
11161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162   (exit $ac_status); } &&
11163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11164   { (case "(($ac_try" in
11165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166   *) ac_try_echo=$ac_try;;
11167 esac
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169   (eval "$ac_try") 2>&5
11170   ac_status=$?
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); }; } &&
11173          { ac_try='test -s conftest$ac_exeext'
11174   { (case "(($ac_try" in
11175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176   *) ac_try_echo=$ac_try;;
11177 esac
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179   (eval "$ac_try") 2>&5
11180   ac_status=$?
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); }; }; then
11183   eval "$as_ac_var=yes"
11184 else
11185   echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11187
11188         eval "$as_ac_var=no"
11189 fi
11190
11191 rm -f core conftest.err conftest.$ac_objext \
11192       conftest$ac_exeext conftest.$ac_ext
11193 fi
11194 ac_res=`eval echo '${'$as_ac_var'}'`
11195                { echo "$as_me:$LINENO: result: $ac_res" >&5
11196 echo "${ECHO_T}$ac_res" >&6; }
11197 if test `eval echo '${'$as_ac_var'}'` = yes; then
11198   cat >>confdefs.h <<_ACEOF
11199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11200 _ACEOF
11201
11202 fi
11203 done
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11233                   stdio.h unistd.h
11234 do
11235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11240   echo $ECHO_N "(cached) $ECHO_C" >&6
11241 fi
11242 ac_res=`eval echo '${'$as_ac_Header'}'`
11243                { echo "$as_me:$LINENO: result: $ac_res" >&5
11244 echo "${ECHO_T}$ac_res" >&6; }
11245 else
11246   # Is the header compilable?
11247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11249 cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h.  */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h.  */
11255 $ac_includes_default
11256 #include <$ac_header>
11257 _ACEOF
11258 rm -f conftest.$ac_objext
11259 if { (ac_try="$ac_compile"
11260 case "(($ac_try" in
11261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262   *) ac_try_echo=$ac_try;;
11263 esac
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265   (eval "$ac_compile") 2>conftest.er1
11266   ac_status=$?
11267   grep -v '^ *+' conftest.er1 >conftest.err
11268   rm -f conftest.er1
11269   cat conftest.err >&5
11270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271   (exit $ac_status); } &&
11272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11273   { (case "(($ac_try" in
11274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275   *) ac_try_echo=$ac_try;;
11276 esac
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278   (eval "$ac_try") 2>&5
11279   ac_status=$?
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); }; } &&
11282          { ac_try='test -s conftest.$ac_objext'
11283   { (case "(($ac_try" in
11284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285   *) ac_try_echo=$ac_try;;
11286 esac
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288   (eval "$ac_try") 2>&5
11289   ac_status=$?
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); }; }; then
11292   ac_header_compiler=yes
11293 else
11294   echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11296
11297         ac_header_compiler=no
11298 fi
11299
11300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11302 echo "${ECHO_T}$ac_header_compiler" >&6; }
11303
11304 # Is the header present?
11305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11307 cat >conftest.$ac_ext <<_ACEOF
11308 /* confdefs.h.  */
11309 _ACEOF
11310 cat confdefs.h >>conftest.$ac_ext
11311 cat >>conftest.$ac_ext <<_ACEOF
11312 /* end confdefs.h.  */
11313 #include <$ac_header>
11314 _ACEOF
11315 if { (ac_try="$ac_cpp conftest.$ac_ext"
11316 case "(($ac_try" in
11317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318   *) ac_try_echo=$ac_try;;
11319 esac
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11322   ac_status=$?
11323   grep -v '^ *+' conftest.er1 >conftest.err
11324   rm -f conftest.er1
11325   cat conftest.err >&5
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); } >/dev/null; then
11328   if test -s conftest.err; then
11329     ac_cpp_err=$ac_c_preproc_warn_flag
11330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11331   else
11332     ac_cpp_err=
11333   fi
11334 else
11335   ac_cpp_err=yes
11336 fi
11337 if test -z "$ac_cpp_err"; then
11338   ac_header_preproc=yes
11339 else
11340   echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11342
11343   ac_header_preproc=no
11344 fi
11345
11346 rm -f conftest.err conftest.$ac_ext
11347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11348 echo "${ECHO_T}$ac_header_preproc" >&6; }
11349
11350 # So?  What about this header?
11351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11352   yes:no: )
11353     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11357     ac_header_preproc=yes
11358     ;;
11359   no:yes:* )
11360     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11362     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11363 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11364     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11366     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11367 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11370     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11372     ( cat <<\_ASBOX
11373 ## ----------------------------------- ##
11374 ## Report this to llvmbugs@cs.uiuc.edu ##
11375 ## ----------------------------------- ##
11376 _ASBOX
11377      ) | sed "s/^/$as_me: WARNING:     /" >&2
11378     ;;
11379 esac
11380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11383   echo $ECHO_N "(cached) $ECHO_C" >&6
11384 else
11385   eval "$as_ac_Header=\$ac_header_preproc"
11386 fi
11387 ac_res=`eval echo '${'$as_ac_Header'}'`
11388                { echo "$as_me:$LINENO: result: $ac_res" >&5
11389 echo "${ECHO_T}$ac_res" >&6; }
11390
11391 fi
11392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11393   cat >>confdefs.h <<_ACEOF
11394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11395 _ACEOF
11396
11397 fi
11398
11399 done
11400
11401
11402
11403
11404
11405 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11406 do
11407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11409   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11412   echo $ECHO_N "(cached) $ECHO_C" >&6
11413 fi
11414 ac_res=`eval echo '${'$as_ac_Header'}'`
11415                { echo "$as_me:$LINENO: result: $ac_res" >&5
11416 echo "${ECHO_T}$ac_res" >&6; }
11417 else
11418   # Is the header compilable?
11419 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11421 cat >conftest.$ac_ext <<_ACEOF
11422 /* confdefs.h.  */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h.  */
11427 $ac_includes_default
11428 #include <$ac_header>
11429 _ACEOF
11430 rm -f conftest.$ac_objext
11431 if { (ac_try="$ac_compile"
11432 case "(($ac_try" in
11433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434   *) ac_try_echo=$ac_try;;
11435 esac
11436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437   (eval "$ac_compile") 2>conftest.er1
11438   ac_status=$?
11439   grep -v '^ *+' conftest.er1 >conftest.err
11440   rm -f conftest.er1
11441   cat conftest.err >&5
11442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443   (exit $ac_status); } &&
11444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11445   { (case "(($ac_try" in
11446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447   *) ac_try_echo=$ac_try;;
11448 esac
11449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450   (eval "$ac_try") 2>&5
11451   ac_status=$?
11452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453   (exit $ac_status); }; } &&
11454          { ac_try='test -s conftest.$ac_objext'
11455   { (case "(($ac_try" in
11456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11457   *) ac_try_echo=$ac_try;;
11458 esac
11459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11460   (eval "$ac_try") 2>&5
11461   ac_status=$?
11462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463   (exit $ac_status); }; }; then
11464   ac_header_compiler=yes
11465 else
11466   echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11468
11469         ac_header_compiler=no
11470 fi
11471
11472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11474 echo "${ECHO_T}$ac_header_compiler" >&6; }
11475
11476 # Is the header present?
11477 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11479 cat >conftest.$ac_ext <<_ACEOF
11480 /* confdefs.h.  */
11481 _ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h.  */
11485 #include <$ac_header>
11486 _ACEOF
11487 if { (ac_try="$ac_cpp conftest.$ac_ext"
11488 case "(($ac_try" in
11489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490   *) ac_try_echo=$ac_try;;
11491 esac
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11494   ac_status=$?
11495   grep -v '^ *+' conftest.er1 >conftest.err
11496   rm -f conftest.er1
11497   cat conftest.err >&5
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); } >/dev/null; then
11500   if test -s conftest.err; then
11501     ac_cpp_err=$ac_c_preproc_warn_flag
11502     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11503   else
11504     ac_cpp_err=
11505   fi
11506 else
11507   ac_cpp_err=yes
11508 fi
11509 if test -z "$ac_cpp_err"; then
11510   ac_header_preproc=yes
11511 else
11512   echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515   ac_header_preproc=no
11516 fi
11517
11518 rm -f conftest.err conftest.$ac_ext
11519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11520 echo "${ECHO_T}$ac_header_preproc" >&6; }
11521
11522 # So?  What about this header?
11523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11524   yes:no: )
11525     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11529     ac_header_preproc=yes
11530     ;;
11531   no:yes:* )
11532     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11534     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11535 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11536     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11538     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11539 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11542     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11544     ( cat <<\_ASBOX
11545 ## ----------------------------------- ##
11546 ## Report this to llvmbugs@cs.uiuc.edu ##
11547 ## ----------------------------------- ##
11548 _ASBOX
11549      ) | sed "s/^/$as_me: WARNING:     /" >&2
11550     ;;
11551 esac
11552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11555   echo $ECHO_N "(cached) $ECHO_C" >&6
11556 else
11557   eval "$as_ac_Header=\$ac_header_preproc"
11558 fi
11559 ac_res=`eval echo '${'$as_ac_Header'}'`
11560                { echo "$as_me:$LINENO: result: $ac_res" >&5
11561 echo "${ECHO_T}$ac_res" >&6; }
11562
11563 fi
11564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11565   cat >>confdefs.h <<_ACEOF
11566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11567 _ACEOF
11568
11569 fi
11570
11571 done
11572
11573
11574
11575 for ac_header in string.h strings.h
11576 do
11577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11579   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11582   echo $ECHO_N "(cached) $ECHO_C" >&6
11583 fi
11584 ac_res=`eval echo '${'$as_ac_Header'}'`
11585                { echo "$as_me:$LINENO: result: $ac_res" >&5
11586 echo "${ECHO_T}$ac_res" >&6; }
11587 else
11588   # Is the header compilable?
11589 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11591 cat >conftest.$ac_ext <<_ACEOF
11592 /* confdefs.h.  */
11593 _ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h.  */
11597 $ac_includes_default
11598 #include <$ac_header>
11599 _ACEOF
11600 rm -f conftest.$ac_objext
11601 if { (ac_try="$ac_compile"
11602 case "(($ac_try" in
11603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604   *) ac_try_echo=$ac_try;;
11605 esac
11606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11607   (eval "$ac_compile") 2>conftest.er1
11608   ac_status=$?
11609   grep -v '^ *+' conftest.er1 >conftest.err
11610   rm -f conftest.er1
11611   cat conftest.err >&5
11612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613   (exit $ac_status); } &&
11614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11615   { (case "(($ac_try" in
11616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617   *) ac_try_echo=$ac_try;;
11618 esac
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620   (eval "$ac_try") 2>&5
11621   ac_status=$?
11622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623   (exit $ac_status); }; } &&
11624          { ac_try='test -s conftest.$ac_objext'
11625   { (case "(($ac_try" in
11626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627   *) ac_try_echo=$ac_try;;
11628 esac
11629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11630   (eval "$ac_try") 2>&5
11631   ac_status=$?
11632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633   (exit $ac_status); }; }; then
11634   ac_header_compiler=yes
11635 else
11636   echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.$ac_ext >&5
11638
11639         ac_header_compiler=no
11640 fi
11641
11642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11644 echo "${ECHO_T}$ac_header_compiler" >&6; }
11645
11646 # Is the header present?
11647 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11649 cat >conftest.$ac_ext <<_ACEOF
11650 /* confdefs.h.  */
11651 _ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h.  */
11655 #include <$ac_header>
11656 _ACEOF
11657 if { (ac_try="$ac_cpp conftest.$ac_ext"
11658 case "(($ac_try" in
11659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660   *) ac_try_echo=$ac_try;;
11661 esac
11662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11663   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11664   ac_status=$?
11665   grep -v '^ *+' conftest.er1 >conftest.err
11666   rm -f conftest.er1
11667   cat conftest.err >&5
11668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669   (exit $ac_status); } >/dev/null; then
11670   if test -s conftest.err; then
11671     ac_cpp_err=$ac_c_preproc_warn_flag
11672     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11673   else
11674     ac_cpp_err=
11675   fi
11676 else
11677   ac_cpp_err=yes
11678 fi
11679 if test -z "$ac_cpp_err"; then
11680   ac_header_preproc=yes
11681 else
11682   echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11684
11685   ac_header_preproc=no
11686 fi
11687
11688 rm -f conftest.err conftest.$ac_ext
11689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11690 echo "${ECHO_T}$ac_header_preproc" >&6; }
11691
11692 # So?  What about this header?
11693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11694   yes:no: )
11695     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11697     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11699     ac_header_preproc=yes
11700     ;;
11701   no:yes:* )
11702     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11704     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11705 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11706     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11708     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11709 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11710     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11712     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11714     ( cat <<\_ASBOX
11715 ## ----------------------------------- ##
11716 ## Report this to llvmbugs@cs.uiuc.edu ##
11717 ## ----------------------------------- ##
11718 _ASBOX
11719      ) | sed "s/^/$as_me: WARNING:     /" >&2
11720     ;;
11721 esac
11722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11725   echo $ECHO_N "(cached) $ECHO_C" >&6
11726 else
11727   eval "$as_ac_Header=\$ac_header_preproc"
11728 fi
11729 ac_res=`eval echo '${'$as_ac_Header'}'`
11730                { echo "$as_me:$LINENO: result: $ac_res" >&5
11731 echo "${ECHO_T}$ac_res" >&6; }
11732
11733 fi
11734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11735   cat >>confdefs.h <<_ACEOF
11736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11737 _ACEOF
11738  break
11739 fi
11740
11741 done
11742
11743
11744
11745
11746 for ac_func in strchr index
11747 do
11748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11752   echo $ECHO_N "(cached) $ECHO_C" >&6
11753 else
11754   cat >conftest.$ac_ext <<_ACEOF
11755 /* confdefs.h.  */
11756 _ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h.  */
11760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11762 #define $ac_func innocuous_$ac_func
11763
11764 /* System header to define __stub macros and hopefully few prototypes,
11765     which can conflict with char $ac_func (); below.
11766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11767     <limits.h> exists even on freestanding compilers.  */
11768
11769 #ifdef __STDC__
11770 # include <limits.h>
11771 #else
11772 # include <assert.h>
11773 #endif
11774
11775 #undef $ac_func
11776
11777 /* Override any GCC internal prototype to avoid an error.
11778    Use char because int might match the return type of a GCC
11779    builtin and then its argument prototype would still apply.  */
11780 #ifdef __cplusplus
11781 extern "C"
11782 #endif
11783 char $ac_func ();
11784 /* The GNU C library defines this for functions which it implements
11785     to always fail with ENOSYS.  Some functions are actually named
11786     something starting with __ and the normal name is an alias.  */
11787 #if defined __stub_$ac_func || defined __stub___$ac_func
11788 choke me
11789 #endif
11790
11791 int
11792 main ()
11793 {
11794 return $ac_func ();
11795   ;
11796   return 0;
11797 }
11798 _ACEOF
11799 rm -f conftest.$ac_objext conftest$ac_exeext
11800 if { (ac_try="$ac_link"
11801 case "(($ac_try" in
11802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803   *) ac_try_echo=$ac_try;;
11804 esac
11805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806   (eval "$ac_link") 2>conftest.er1
11807   ac_status=$?
11808   grep -v '^ *+' conftest.er1 >conftest.err
11809   rm -f conftest.er1
11810   cat conftest.err >&5
11811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812   (exit $ac_status); } &&
11813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11814   { (case "(($ac_try" in
11815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816   *) ac_try_echo=$ac_try;;
11817 esac
11818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819   (eval "$ac_try") 2>&5
11820   ac_status=$?
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); }; } &&
11823          { ac_try='test -s conftest$ac_exeext'
11824   { (case "(($ac_try" in
11825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826   *) ac_try_echo=$ac_try;;
11827 esac
11828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829   (eval "$ac_try") 2>&5
11830   ac_status=$?
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); }; }; then
11833   eval "$as_ac_var=yes"
11834 else
11835   echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11837
11838         eval "$as_ac_var=no"
11839 fi
11840
11841 rm -f core conftest.err conftest.$ac_objext \
11842       conftest$ac_exeext conftest.$ac_ext
11843 fi
11844 ac_res=`eval echo '${'$as_ac_var'}'`
11845                { echo "$as_me:$LINENO: result: $ac_res" >&5
11846 echo "${ECHO_T}$ac_res" >&6; }
11847 if test `eval echo '${'$as_ac_var'}'` = yes; then
11848   cat >>confdefs.h <<_ACEOF
11849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11850 _ACEOF
11851  break
11852 fi
11853 done
11854
11855
11856
11857 for ac_func in strrchr rindex
11858 do
11859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11860 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11863   echo $ECHO_N "(cached) $ECHO_C" >&6
11864 else
11865   cat >conftest.$ac_ext <<_ACEOF
11866 /* confdefs.h.  */
11867 _ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h.  */
11871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11873 #define $ac_func innocuous_$ac_func
11874
11875 /* System header to define __stub macros and hopefully few prototypes,
11876     which can conflict with char $ac_func (); below.
11877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11878     <limits.h> exists even on freestanding compilers.  */
11879
11880 #ifdef __STDC__
11881 # include <limits.h>
11882 #else
11883 # include <assert.h>
11884 #endif
11885
11886 #undef $ac_func
11887
11888 /* Override any GCC internal prototype to avoid an error.
11889    Use char because int might match the return type of a GCC
11890    builtin and then its argument prototype would still apply.  */
11891 #ifdef __cplusplus
11892 extern "C"
11893 #endif
11894 char $ac_func ();
11895 /* The GNU C library defines this for functions which it implements
11896     to always fail with ENOSYS.  Some functions are actually named
11897     something starting with __ and the normal name is an alias.  */
11898 #if defined __stub_$ac_func || defined __stub___$ac_func
11899 choke me
11900 #endif
11901
11902 int
11903 main ()
11904 {
11905 return $ac_func ();
11906   ;
11907   return 0;
11908 }
11909 _ACEOF
11910 rm -f conftest.$ac_objext conftest$ac_exeext
11911 if { (ac_try="$ac_link"
11912 case "(($ac_try" in
11913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914   *) ac_try_echo=$ac_try;;
11915 esac
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917   (eval "$ac_link") 2>conftest.er1
11918   ac_status=$?
11919   grep -v '^ *+' conftest.er1 >conftest.err
11920   rm -f conftest.er1
11921   cat conftest.err >&5
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); } &&
11924          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11925   { (case "(($ac_try" in
11926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927   *) ac_try_echo=$ac_try;;
11928 esac
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930   (eval "$ac_try") 2>&5
11931   ac_status=$?
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); }; } &&
11934          { ac_try='test -s conftest$ac_exeext'
11935   { (case "(($ac_try" in
11936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937   *) ac_try_echo=$ac_try;;
11938 esac
11939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940   (eval "$ac_try") 2>&5
11941   ac_status=$?
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); }; }; then
11944   eval "$as_ac_var=yes"
11945 else
11946   echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11948
11949         eval "$as_ac_var=no"
11950 fi
11951
11952 rm -f core conftest.err conftest.$ac_objext \
11953       conftest$ac_exeext conftest.$ac_ext
11954 fi
11955 ac_res=`eval echo '${'$as_ac_var'}'`
11956                { echo "$as_me:$LINENO: result: $ac_res" >&5
11957 echo "${ECHO_T}$ac_res" >&6; }
11958 if test `eval echo '${'$as_ac_var'}'` = yes; then
11959   cat >>confdefs.h <<_ACEOF
11960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11961 _ACEOF
11962  break
11963 fi
11964 done
11965
11966
11967
11968 for ac_func in memcpy bcopy
11969 do
11970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11974   echo $ECHO_N "(cached) $ECHO_C" >&6
11975 else
11976   cat >conftest.$ac_ext <<_ACEOF
11977 /* confdefs.h.  */
11978 _ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h.  */
11982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11984 #define $ac_func innocuous_$ac_func
11985
11986 /* System header to define __stub macros and hopefully few prototypes,
11987     which can conflict with char $ac_func (); below.
11988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11989     <limits.h> exists even on freestanding compilers.  */
11990
11991 #ifdef __STDC__
11992 # include <limits.h>
11993 #else
11994 # include <assert.h>
11995 #endif
11996
11997 #undef $ac_func
11998
11999 /* Override any GCC internal prototype to avoid an error.
12000    Use char because int might match the return type of a GCC
12001    builtin and then its argument prototype would still apply.  */
12002 #ifdef __cplusplus
12003 extern "C"
12004 #endif
12005 char $ac_func ();
12006 /* The GNU C library defines this for functions which it implements
12007     to always fail with ENOSYS.  Some functions are actually named
12008     something starting with __ and the normal name is an alias.  */
12009 #if defined __stub_$ac_func || defined __stub___$ac_func
12010 choke me
12011 #endif
12012
12013 int
12014 main ()
12015 {
12016 return $ac_func ();
12017   ;
12018   return 0;
12019 }
12020 _ACEOF
12021 rm -f conftest.$ac_objext conftest$ac_exeext
12022 if { (ac_try="$ac_link"
12023 case "(($ac_try" in
12024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025   *) ac_try_echo=$ac_try;;
12026 esac
12027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028   (eval "$ac_link") 2>conftest.er1
12029   ac_status=$?
12030   grep -v '^ *+' conftest.er1 >conftest.err
12031   rm -f conftest.er1
12032   cat conftest.err >&5
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); } &&
12035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12036   { (case "(($ac_try" in
12037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038   *) ac_try_echo=$ac_try;;
12039 esac
12040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041   (eval "$ac_try") 2>&5
12042   ac_status=$?
12043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); }; } &&
12045          { ac_try='test -s conftest$ac_exeext'
12046   { (case "(($ac_try" in
12047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048   *) ac_try_echo=$ac_try;;
12049 esac
12050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051   (eval "$ac_try") 2>&5
12052   ac_status=$?
12053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054   (exit $ac_status); }; }; then
12055   eval "$as_ac_var=yes"
12056 else
12057   echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12059
12060         eval "$as_ac_var=no"
12061 fi
12062
12063 rm -f core conftest.err conftest.$ac_objext \
12064       conftest$ac_exeext conftest.$ac_ext
12065 fi
12066 ac_res=`eval echo '${'$as_ac_var'}'`
12067                { echo "$as_me:$LINENO: result: $ac_res" >&5
12068 echo "${ECHO_T}$ac_res" >&6; }
12069 if test `eval echo '${'$as_ac_var'}'` = yes; then
12070   cat >>confdefs.h <<_ACEOF
12071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12072 _ACEOF
12073  break
12074 fi
12075 done
12076
12077
12078
12079 for ac_func in memmove strcmp
12080 do
12081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12085   echo $ECHO_N "(cached) $ECHO_C" >&6
12086 else
12087   cat >conftest.$ac_ext <<_ACEOF
12088 /* confdefs.h.  */
12089 _ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h.  */
12093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12095 #define $ac_func innocuous_$ac_func
12096
12097 /* System header to define __stub macros and hopefully few prototypes,
12098     which can conflict with char $ac_func (); below.
12099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12100     <limits.h> exists even on freestanding compilers.  */
12101
12102 #ifdef __STDC__
12103 # include <limits.h>
12104 #else
12105 # include <assert.h>
12106 #endif
12107
12108 #undef $ac_func
12109
12110 /* Override any GCC internal prototype to avoid an error.
12111    Use char because int might match the return type of a GCC
12112    builtin and then its argument prototype would still apply.  */
12113 #ifdef __cplusplus
12114 extern "C"
12115 #endif
12116 char $ac_func ();
12117 /* The GNU C library defines this for functions which it implements
12118     to always fail with ENOSYS.  Some functions are actually named
12119     something starting with __ and the normal name is an alias.  */
12120 #if defined __stub_$ac_func || defined __stub___$ac_func
12121 choke me
12122 #endif
12123
12124 int
12125 main ()
12126 {
12127 return $ac_func ();
12128   ;
12129   return 0;
12130 }
12131 _ACEOF
12132 rm -f conftest.$ac_objext conftest$ac_exeext
12133 if { (ac_try="$ac_link"
12134 case "(($ac_try" in
12135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136   *) ac_try_echo=$ac_try;;
12137 esac
12138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139   (eval "$ac_link") 2>conftest.er1
12140   ac_status=$?
12141   grep -v '^ *+' conftest.er1 >conftest.err
12142   rm -f conftest.er1
12143   cat conftest.err >&5
12144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145   (exit $ac_status); } &&
12146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12147   { (case "(($ac_try" in
12148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149   *) ac_try_echo=$ac_try;;
12150 esac
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152   (eval "$ac_try") 2>&5
12153   ac_status=$?
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); }; } &&
12156          { ac_try='test -s conftest$ac_exeext'
12157   { (case "(($ac_try" in
12158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159   *) ac_try_echo=$ac_try;;
12160 esac
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162   (eval "$ac_try") 2>&5
12163   ac_status=$?
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); }; }; then
12166   eval "$as_ac_var=yes"
12167 else
12168   echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12170
12171         eval "$as_ac_var=no"
12172 fi
12173
12174 rm -f core conftest.err conftest.$ac_objext \
12175       conftest$ac_exeext conftest.$ac_ext
12176 fi
12177 ac_res=`eval echo '${'$as_ac_var'}'`
12178                { echo "$as_me:$LINENO: result: $ac_res" >&5
12179 echo "${ECHO_T}$ac_res" >&6; }
12180 if test `eval echo '${'$as_ac_var'}'` = yes; then
12181   cat >>confdefs.h <<_ACEOF
12182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12183 _ACEOF
12184
12185 fi
12186 done
12187
12188
12189
12190
12191 for ac_func in closedir opendir readdir
12192 do
12193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12194 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12197   echo $ECHO_N "(cached) $ECHO_C" >&6
12198 else
12199   cat >conftest.$ac_ext <<_ACEOF
12200 /* confdefs.h.  */
12201 _ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h.  */
12205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12207 #define $ac_func innocuous_$ac_func
12208
12209 /* System header to define __stub macros and hopefully few prototypes,
12210     which can conflict with char $ac_func (); below.
12211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12212     <limits.h> exists even on freestanding compilers.  */
12213
12214 #ifdef __STDC__
12215 # include <limits.h>
12216 #else
12217 # include <assert.h>
12218 #endif
12219
12220 #undef $ac_func
12221
12222 /* Override any GCC internal prototype to avoid an error.
12223    Use char because int might match the return type of a GCC
12224    builtin and then its argument prototype would still apply.  */
12225 #ifdef __cplusplus
12226 extern "C"
12227 #endif
12228 char $ac_func ();
12229 /* The GNU C library defines this for functions which it implements
12230     to always fail with ENOSYS.  Some functions are actually named
12231     something starting with __ and the normal name is an alias.  */
12232 #if defined __stub_$ac_func || defined __stub___$ac_func
12233 choke me
12234 #endif
12235
12236 int
12237 main ()
12238 {
12239 return $ac_func ();
12240   ;
12241   return 0;
12242 }
12243 _ACEOF
12244 rm -f conftest.$ac_objext conftest$ac_exeext
12245 if { (ac_try="$ac_link"
12246 case "(($ac_try" in
12247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248   *) ac_try_echo=$ac_try;;
12249 esac
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251   (eval "$ac_link") 2>conftest.er1
12252   ac_status=$?
12253   grep -v '^ *+' conftest.er1 >conftest.err
12254   rm -f conftest.er1
12255   cat conftest.err >&5
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); } &&
12258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12259   { (case "(($ac_try" in
12260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261   *) ac_try_echo=$ac_try;;
12262 esac
12263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264   (eval "$ac_try") 2>&5
12265   ac_status=$?
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); }; } &&
12268          { ac_try='test -s conftest$ac_exeext'
12269   { (case "(($ac_try" in
12270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271   *) ac_try_echo=$ac_try;;
12272 esac
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274   (eval "$ac_try") 2>&5
12275   ac_status=$?
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); }; }; then
12278   eval "$as_ac_var=yes"
12279 else
12280   echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12282
12283         eval "$as_ac_var=no"
12284 fi
12285
12286 rm -f core conftest.err conftest.$ac_objext \
12287       conftest$ac_exeext conftest.$ac_ext
12288 fi
12289 ac_res=`eval echo '${'$as_ac_var'}'`
12290                { echo "$as_me:$LINENO: result: $ac_res" >&5
12291 echo "${ECHO_T}$ac_res" >&6; }
12292 if test `eval echo '${'$as_ac_var'}'` = yes; then
12293   cat >>confdefs.h <<_ACEOF
12294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12295 _ACEOF
12296
12297 fi
12298 done
12299
12300
12301 # Check whether --enable-shared was given.
12302 if test "${enable_shared+set}" = set; then
12303   enableval=$enable_shared; p=${PACKAGE-default}
12304     case $enableval in
12305     yes) enable_shared=yes ;;
12306     no) enable_shared=no ;;
12307     *)
12308       enable_shared=no
12309       # Look at the argument we got.  We use all the common list separators.
12310       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12311       for pkg in $enableval; do
12312         IFS="$lt_save_ifs"
12313         if test "X$pkg" = "X$p"; then
12314           enable_shared=yes
12315         fi
12316       done
12317       IFS="$lt_save_ifs"
12318       ;;
12319     esac
12320 else
12321   enable_shared=yes
12322 fi
12323
12324
12325 # Check whether --enable-static was given.
12326 if test "${enable_static+set}" = set; then
12327   enableval=$enable_static; p=${PACKAGE-default}
12328     case $enableval in
12329     yes) enable_static=yes ;;
12330     no) enable_static=no ;;
12331     *)
12332      enable_static=no
12333       # Look at the argument we got.  We use all the common list separators.
12334       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12335       for pkg in $enableval; do
12336         IFS="$lt_save_ifs"
12337         if test "X$pkg" = "X$p"; then
12338           enable_static=yes
12339         fi
12340       done
12341       IFS="$lt_save_ifs"
12342       ;;
12343     esac
12344 else
12345   enable_static=yes
12346 fi
12347
12348
12349 # Check whether --enable-fast-install was given.
12350 if test "${enable_fast_install+set}" = set; then
12351   enableval=$enable_fast_install; p=${PACKAGE-default}
12352     case $enableval in
12353     yes) enable_fast_install=yes ;;
12354     no) enable_fast_install=no ;;
12355     *)
12356       enable_fast_install=no
12357       # Look at the argument we got.  We use all the common list separators.
12358       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12359       for pkg in $enableval; do
12360         IFS="$lt_save_ifs"
12361         if test "X$pkg" = "X$p"; then
12362           enable_fast_install=yes
12363         fi
12364       done
12365       IFS="$lt_save_ifs"
12366       ;;
12367     esac
12368 else
12369   enable_fast_install=yes
12370 fi
12371
12372
12373 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12374 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12375 if test "${lt_cv_path_SED+set}" = set; then
12376   echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12378   # Loop through the user's path and test for sed and gsed.
12379 # Then use that list of sed's as ones to test for truncation.
12380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381 for as_dir in $PATH
12382 do
12383   IFS=$as_save_IFS
12384   test -z "$as_dir" && as_dir=.
12385   for lt_ac_prog in sed gsed; do
12386     for ac_exec_ext in '' $ac_executable_extensions; do
12387       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12388         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12389       fi
12390     done
12391   done
12392 done
12393 lt_ac_max=0
12394 lt_ac_count=0
12395 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12396 # along with /bin/sed that truncates output.
12397 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12398   test ! -f $lt_ac_sed && continue
12399   cat /dev/null > conftest.in
12400   lt_ac_count=0
12401   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12402   # Check for GNU sed and select it if it is found.
12403   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12404     lt_cv_path_SED=$lt_ac_sed
12405     break
12406   fi
12407   while true; do
12408     cat conftest.in conftest.in >conftest.tmp
12409     mv conftest.tmp conftest.in
12410     cp conftest.in conftest.nl
12411     echo >>conftest.nl
12412     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12413     cmp -s conftest.out conftest.nl || break
12414     # 10000 chars as input seems more than enough
12415     test $lt_ac_count -gt 10 && break
12416     lt_ac_count=`expr $lt_ac_count + 1`
12417     if test $lt_ac_count -gt $lt_ac_max; then
12418       lt_ac_max=$lt_ac_count
12419       lt_cv_path_SED=$lt_ac_sed
12420     fi
12421   done
12422 done
12423
12424 fi
12425
12426 SED=$lt_cv_path_SED
12427 { echo "$as_me:$LINENO: result: $SED" >&5
12428 echo "${ECHO_T}$SED" >&6; }
12429
12430
12431 # Check whether --with-gnu-ld was given.
12432 if test "${with_gnu_ld+set}" = set; then
12433   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12434 else
12435   with_gnu_ld=no
12436 fi
12437
12438 ac_prog=ld
12439 if test "$GCC" = yes; then
12440   # Check if gcc -print-prog-name=ld gives a path.
12441   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12442 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12443   case $host in
12444   *-*-mingw*)
12445     # gcc leaves a trailing carriage return which upsets mingw
12446     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12447   *)
12448     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12449   esac
12450   case $ac_prog in
12451     # Accept absolute paths.
12452     [\\/]* | ?:[\\/]*)
12453       re_direlt='/[^/][^/]*/\.\./'
12454       # Canonicalize the pathname of ld
12455       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12456       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12457         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12458       done
12459       test -z "$LD" && LD="$ac_prog"
12460       ;;
12461   "")
12462     # If it fails, then pretend we aren't using GCC.
12463     ac_prog=ld
12464     ;;
12465   *)
12466     # If it is relative, then search for the first ld in PATH.
12467     with_gnu_ld=unknown
12468     ;;
12469   esac
12470 elif test "$with_gnu_ld" = yes; then
12471   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12472 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12473 else
12474   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12475 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12476 fi
12477 if test "${lt_cv_path_LD+set}" = set; then
12478   echo $ECHO_N "(cached) $ECHO_C" >&6
12479 else
12480   if test -z "$LD"; then
12481   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12482   for ac_dir in $PATH; do
12483     IFS="$lt_save_ifs"
12484     test -z "$ac_dir" && ac_dir=.
12485     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12486       lt_cv_path_LD="$ac_dir/$ac_prog"
12487       # Check to see if the program is GNU ld.  I'd rather use --version,
12488       # but apparently some variants of GNU ld only accept -v.
12489       # Break only if it was the GNU/non-GNU ld that we prefer.
12490       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12491       *GNU* | *'with BFD'*)
12492         test "$with_gnu_ld" != no && break
12493         ;;
12494       *)
12495         test "$with_gnu_ld" != yes && break
12496         ;;
12497       esac
12498     fi
12499   done
12500   IFS="$lt_save_ifs"
12501 else
12502   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12503 fi
12504 fi
12505
12506 LD="$lt_cv_path_LD"
12507 if test -n "$LD"; then
12508   { echo "$as_me:$LINENO: result: $LD" >&5
12509 echo "${ECHO_T}$LD" >&6; }
12510 else
12511   { echo "$as_me:$LINENO: result: no" >&5
12512 echo "${ECHO_T}no" >&6; }
12513 fi
12514 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12515 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12516    { (exit 1); exit 1; }; }
12517 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12518 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12519 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12520   echo $ECHO_N "(cached) $ECHO_C" >&6
12521 else
12522   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12523 case `$LD -v 2>&1 </dev/null` in
12524 *GNU* | *'with BFD'*)
12525   lt_cv_prog_gnu_ld=yes
12526   ;;
12527 *)
12528   lt_cv_prog_gnu_ld=no
12529   ;;
12530 esac
12531 fi
12532 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12533 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12534 with_gnu_ld=$lt_cv_prog_gnu_ld
12535
12536
12537 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12538 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12539 if test "${lt_cv_ld_reload_flag+set}" = set; then
12540   echo $ECHO_N "(cached) $ECHO_C" >&6
12541 else
12542   lt_cv_ld_reload_flag='-r'
12543 fi
12544 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12545 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12546 reload_flag=$lt_cv_ld_reload_flag
12547 case $reload_flag in
12548 "" | " "*) ;;
12549 *) reload_flag=" $reload_flag" ;;
12550 esac
12551 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12552 case $host_os in
12553   darwin*)
12554     if test "$GCC" = yes; then
12555       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12556     else
12557       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12558     fi
12559     ;;
12560 esac
12561
12562 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12563 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12564 if test "${lt_cv_deplibs_check_method+set}" = set; then
12565   echo $ECHO_N "(cached) $ECHO_C" >&6
12566 else
12567   lt_cv_file_magic_cmd='$MAGIC_CMD'
12568 lt_cv_file_magic_test_file=
12569 lt_cv_deplibs_check_method='unknown'
12570 # Need to set the preceding variable on all platforms that support
12571 # interlibrary dependencies.
12572 # 'none' -- dependencies not supported.
12573 # `unknown' -- same as none, but documents that we really don't know.
12574 # 'pass_all' -- all dependencies passed with no checks.
12575 # 'test_compile' -- check by making test program.
12576 # 'file_magic [[regex]]' -- check by looking for files in library path
12577 # which responds to the $file_magic_cmd with a given extended regex.
12578 # If you have `file' or equivalent on your system and you're not sure
12579 # whether `pass_all' will *always* work, you probably want this one.
12580
12581 case $host_os in
12582 aix4* | aix5*)
12583   lt_cv_deplibs_check_method=pass_all
12584   ;;
12585
12586 beos*)
12587   lt_cv_deplibs_check_method=pass_all
12588   ;;
12589
12590 bsdi[45]*)
12591   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12592   lt_cv_file_magic_cmd='/usr/bin/file -L'
12593   lt_cv_file_magic_test_file=/shlib/libc.so
12594   ;;
12595
12596 cygwin*)
12597   # func_win32_libid is a shell function defined in ltmain.sh
12598   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12599   lt_cv_file_magic_cmd='func_win32_libid'
12600   ;;
12601
12602 mingw* | pw32*)
12603   # Base MSYS/MinGW do not provide the 'file' command needed by
12604   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12605   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12606   lt_cv_file_magic_cmd='$OBJDUMP -f'
12607   ;;
12608
12609 darwin* | rhapsody*)
12610   lt_cv_deplibs_check_method=pass_all
12611   ;;
12612
12613 freebsd* | kfreebsd*-gnu | dragonfly*)
12614   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12615     case $host_cpu in
12616     i*86 )
12617       # Not sure whether the presence of OpenBSD here was a mistake.
12618       # Let's accept both of them until this is cleared up.
12619       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12620       lt_cv_file_magic_cmd=/usr/bin/file
12621       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12622       ;;
12623     esac
12624   else
12625     lt_cv_deplibs_check_method=pass_all
12626   fi
12627   ;;
12628
12629 gnu*)
12630   lt_cv_deplibs_check_method=pass_all
12631   ;;
12632
12633 hpux10.20* | hpux11*)
12634   lt_cv_file_magic_cmd=/usr/bin/file
12635   case $host_cpu in
12636   ia64*)
12637     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12638     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12639     ;;
12640   hppa*64*)
12641     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]'
12642     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12643     ;;
12644   *)
12645     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12646     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12647     ;;
12648   esac
12649   ;;
12650
12651 interix3*)
12652   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12653   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12654   ;;
12655
12656 irix5* | irix6* | nonstopux*)
12657   case $LD in
12658   *-32|*"-32 ") libmagic=32-bit;;
12659   *-n32|*"-n32 ") libmagic=N32;;
12660   *-64|*"-64 ") libmagic=64-bit;;
12661   *) libmagic=never-match;;
12662   esac
12663   lt_cv_deplibs_check_method=pass_all
12664   ;;
12665
12666 # This must be Linux ELF.
12667 linux*)
12668   lt_cv_deplibs_check_method=pass_all
12669   ;;
12670
12671 netbsd*)
12672   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12673     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12674   else
12675     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12676   fi
12677   ;;
12678
12679 newos6*)
12680   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12681   lt_cv_file_magic_cmd=/usr/bin/file
12682   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12683   ;;
12684
12685 nto-qnx*)
12686   lt_cv_deplibs_check_method=unknown
12687   ;;
12688
12689 openbsd*)
12690   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12691     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12692   else
12693     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12694   fi
12695   ;;
12696
12697 osf3* | osf4* | osf5*)
12698   lt_cv_deplibs_check_method=pass_all
12699   ;;
12700
12701 solaris*)
12702   lt_cv_deplibs_check_method=pass_all
12703   ;;
12704
12705 sysv4 | sysv4.3*)
12706   case $host_vendor in
12707   motorola)
12708     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]'
12709     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12710     ;;
12711   ncr)
12712     lt_cv_deplibs_check_method=pass_all
12713     ;;
12714   sequent)
12715     lt_cv_file_magic_cmd='/bin/file'
12716     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12717     ;;
12718   sni)
12719     lt_cv_file_magic_cmd='/bin/file'
12720     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12721     lt_cv_file_magic_test_file=/lib/libc.so
12722     ;;
12723   siemens)
12724     lt_cv_deplibs_check_method=pass_all
12725     ;;
12726   pc)
12727     lt_cv_deplibs_check_method=pass_all
12728     ;;
12729   esac
12730   ;;
12731
12732 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12733   lt_cv_deplibs_check_method=pass_all
12734   ;;
12735 esac
12736
12737 fi
12738 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12739 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12740 file_magic_cmd=$lt_cv_file_magic_cmd
12741 deplibs_check_method=$lt_cv_deplibs_check_method
12742 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12743
12744
12745
12746 # If no C compiler was specified, use CC.
12747 LTCC=${LTCC-"$CC"}
12748
12749 # If no C compiler flags were specified, use CFLAGS.
12750 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12751
12752 # Allow CC to be a program name with arguments.
12753 compiler=$CC
12754
12755 # Check whether --enable-libtool-lock was given.
12756 if test "${enable_libtool_lock+set}" = set; then
12757   enableval=$enable_libtool_lock;
12758 fi
12759
12760 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12761
12762 # Some flags need to be propagated to the compiler or linker for good
12763 # libtool support.
12764 case $host in
12765 ia64-*-hpux*)
12766   # Find out which ABI we are using.
12767   echo 'int i;' > conftest.$ac_ext
12768   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12769   (eval $ac_compile) 2>&5
12770   ac_status=$?
12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772   (exit $ac_status); }; then
12773     case `/usr/bin/file conftest.$ac_objext` in
12774     *ELF-32*)
12775       HPUX_IA64_MODE="32"
12776       ;;
12777     *ELF-64*)
12778       HPUX_IA64_MODE="64"
12779       ;;
12780     esac
12781   fi
12782   rm -rf conftest*
12783   ;;
12784 *-*-irix6*)
12785   # Find out which ABI we are using.
12786   echo '#line 12783 "configure"' > conftest.$ac_ext
12787   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12788   (eval $ac_compile) 2>&5
12789   ac_status=$?
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); }; then
12792    if test "$lt_cv_prog_gnu_ld" = yes; then
12793     case `/usr/bin/file conftest.$ac_objext` in
12794     *32-bit*)
12795       LD="${LD-ld} -melf32bsmip"
12796       ;;
12797     *N32*)
12798       LD="${LD-ld} -melf32bmipn32"
12799       ;;
12800     *64-bit*)
12801       LD="${LD-ld} -melf64bmip"
12802       ;;
12803     esac
12804    else
12805     case `/usr/bin/file conftest.$ac_objext` in
12806     *32-bit*)
12807       LD="${LD-ld} -32"
12808       ;;
12809     *N32*)
12810       LD="${LD-ld} -n32"
12811       ;;
12812     *64-bit*)
12813       LD="${LD-ld} -64"
12814       ;;
12815     esac
12816    fi
12817   fi
12818   rm -rf conftest*
12819   ;;
12820
12821 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12822   # Find out which ABI we are using.
12823   echo 'int i;' > conftest.$ac_ext
12824   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12825   (eval $ac_compile) 2>&5
12826   ac_status=$?
12827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828   (exit $ac_status); }; then
12829     case `/usr/bin/file conftest.o` in
12830     *32-bit*)
12831       case $host in
12832         x86_64-*linux*)
12833           LD="${LD-ld} -m elf_i386"
12834           ;;
12835         ppc64-*linux*|powerpc64-*linux*)
12836           LD="${LD-ld} -m elf32ppclinux"
12837           ;;
12838         s390x-*linux*)
12839           LD="${LD-ld} -m elf_s390"
12840           ;;
12841         sparc64-*linux*)
12842           LD="${LD-ld} -m elf32_sparc"
12843           ;;
12844       esac
12845       ;;
12846     *64-bit*)
12847       case $host in
12848         x86_64-*linux*)
12849           LD="${LD-ld} -m elf_x86_64"
12850           ;;
12851         ppc*-*linux*|powerpc*-*linux*)
12852           LD="${LD-ld} -m elf64ppc"
12853           ;;
12854         s390*-*linux*)
12855           LD="${LD-ld} -m elf64_s390"
12856           ;;
12857         sparc*-*linux*)
12858           LD="${LD-ld} -m elf64_sparc"
12859           ;;
12860       esac
12861       ;;
12862     esac
12863   fi
12864   rm -rf conftest*
12865   ;;
12866
12867 *-*-sco3.2v5*)
12868   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12869   SAVE_CFLAGS="$CFLAGS"
12870   CFLAGS="$CFLAGS -belf"
12871   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12872 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12873 if test "${lt_cv_cc_needs_belf+set}" = set; then
12874   echo $ECHO_N "(cached) $ECHO_C" >&6
12875 else
12876   ac_ext=c
12877 ac_cpp='$CPP $CPPFLAGS'
12878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12881
12882      cat >conftest.$ac_ext <<_ACEOF
12883 /* confdefs.h.  */
12884 _ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h.  */
12888
12889 int
12890 main ()
12891 {
12892
12893   ;
12894   return 0;
12895 }
12896 _ACEOF
12897 rm -f conftest.$ac_objext conftest$ac_exeext
12898 if { (ac_try="$ac_link"
12899 case "(($ac_try" in
12900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901   *) ac_try_echo=$ac_try;;
12902 esac
12903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904   (eval "$ac_link") 2>conftest.er1
12905   ac_status=$?
12906   grep -v '^ *+' conftest.er1 >conftest.err
12907   rm -f conftest.er1
12908   cat conftest.err >&5
12909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910   (exit $ac_status); } &&
12911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12912   { (case "(($ac_try" in
12913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914   *) ac_try_echo=$ac_try;;
12915 esac
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917   (eval "$ac_try") 2>&5
12918   ac_status=$?
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); }; } &&
12921          { ac_try='test -s conftest$ac_exeext'
12922   { (case "(($ac_try" in
12923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924   *) ac_try_echo=$ac_try;;
12925 esac
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927   (eval "$ac_try") 2>&5
12928   ac_status=$?
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); }; }; then
12931   lt_cv_cc_needs_belf=yes
12932 else
12933   echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12935
12936         lt_cv_cc_needs_belf=no
12937 fi
12938
12939 rm -f core conftest.err conftest.$ac_objext \
12940       conftest$ac_exeext conftest.$ac_ext
12941      ac_ext=c
12942 ac_cpp='$CPP $CPPFLAGS'
12943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12946
12947 fi
12948 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12949 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12950   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12951     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12952     CFLAGS="$SAVE_CFLAGS"
12953   fi
12954   ;;
12955 sparc*-*solaris*)
12956   # Find out which ABI we are using.
12957   echo 'int i;' > conftest.$ac_ext
12958   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12959   (eval $ac_compile) 2>&5
12960   ac_status=$?
12961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962   (exit $ac_status); }; then
12963     case `/usr/bin/file conftest.o` in
12964     *64-bit*)
12965       case $lt_cv_prog_gnu_ld in
12966       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12967       *)    LD="${LD-ld} -64" ;;
12968       esac
12969       ;;
12970     esac
12971   fi
12972   rm -rf conftest*
12973   ;;
12974
12975
12976 esac
12977
12978 need_locks="$enable_libtool_lock"
12979
12980
12981
12982
12983 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12984     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12985     (test "X$CXX" != "Xg++"))) ; then
12986   ac_ext=cpp
12987 ac_cpp='$CXXCPP $CPPFLAGS'
12988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12991 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12992 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12993 if test -z "$CXXCPP"; then
12994   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12995   echo $ECHO_N "(cached) $ECHO_C" >&6
12996 else
12997       # Double quotes because CXXCPP needs to be expanded
12998     for CXXCPP in "$CXX -E" "/lib/cpp"
12999     do
13000       ac_preproc_ok=false
13001 for ac_cxx_preproc_warn_flag in '' yes
13002 do
13003   # Use a header file that comes with gcc, so configuring glibc
13004   # with a fresh cross-compiler works.
13005   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13006   # <limits.h> exists even on freestanding compilers.
13007   # On the NeXT, cc -E runs the code through the compiler's parser,
13008   # not just through cpp. "Syntax error" is here to catch this case.
13009   cat >conftest.$ac_ext <<_ACEOF
13010 /* confdefs.h.  */
13011 _ACEOF
13012 cat confdefs.h >>conftest.$ac_ext
13013 cat >>conftest.$ac_ext <<_ACEOF
13014 /* end confdefs.h.  */
13015 #ifdef __STDC__
13016 # include <limits.h>
13017 #else
13018 # include <assert.h>
13019 #endif
13020                      Syntax error
13021 _ACEOF
13022 if { (ac_try="$ac_cpp conftest.$ac_ext"
13023 case "(($ac_try" in
13024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025   *) ac_try_echo=$ac_try;;
13026 esac
13027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13029   ac_status=$?
13030   grep -v '^ *+' conftest.er1 >conftest.err
13031   rm -f conftest.er1
13032   cat conftest.err >&5
13033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034   (exit $ac_status); } >/dev/null; then
13035   if test -s conftest.err; then
13036     ac_cpp_err=$ac_cxx_preproc_warn_flag
13037     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13038   else
13039     ac_cpp_err=
13040   fi
13041 else
13042   ac_cpp_err=yes
13043 fi
13044 if test -z "$ac_cpp_err"; then
13045   :
13046 else
13047   echo "$as_me: failed program was:" >&5
13048 sed 's/^/| /' conftest.$ac_ext >&5
13049
13050   # Broken: fails on valid input.
13051 continue
13052 fi
13053
13054 rm -f conftest.err conftest.$ac_ext
13055
13056   # OK, works on sane cases.  Now check whether nonexistent headers
13057   # can be detected and how.
13058   cat >conftest.$ac_ext <<_ACEOF
13059 /* confdefs.h.  */
13060 _ACEOF
13061 cat confdefs.h >>conftest.$ac_ext
13062 cat >>conftest.$ac_ext <<_ACEOF
13063 /* end confdefs.h.  */
13064 #include <ac_nonexistent.h>
13065 _ACEOF
13066 if { (ac_try="$ac_cpp conftest.$ac_ext"
13067 case "(($ac_try" in
13068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069   *) ac_try_echo=$ac_try;;
13070 esac
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13073   ac_status=$?
13074   grep -v '^ *+' conftest.er1 >conftest.err
13075   rm -f conftest.er1
13076   cat conftest.err >&5
13077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078   (exit $ac_status); } >/dev/null; then
13079   if test -s conftest.err; then
13080     ac_cpp_err=$ac_cxx_preproc_warn_flag
13081     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13082   else
13083     ac_cpp_err=
13084   fi
13085 else
13086   ac_cpp_err=yes
13087 fi
13088 if test -z "$ac_cpp_err"; then
13089   # Broken: success on invalid input.
13090 continue
13091 else
13092   echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13094
13095   # Passes both tests.
13096 ac_preproc_ok=:
13097 break
13098 fi
13099
13100 rm -f conftest.err conftest.$ac_ext
13101
13102 done
13103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13104 rm -f conftest.err conftest.$ac_ext
13105 if $ac_preproc_ok; then
13106   break
13107 fi
13108
13109     done
13110     ac_cv_prog_CXXCPP=$CXXCPP
13111
13112 fi
13113   CXXCPP=$ac_cv_prog_CXXCPP
13114 else
13115   ac_cv_prog_CXXCPP=$CXXCPP
13116 fi
13117 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13118 echo "${ECHO_T}$CXXCPP" >&6; }
13119 ac_preproc_ok=false
13120 for ac_cxx_preproc_warn_flag in '' yes
13121 do
13122   # Use a header file that comes with gcc, so configuring glibc
13123   # with a fresh cross-compiler works.
13124   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13125   # <limits.h> exists even on freestanding compilers.
13126   # On the NeXT, cc -E runs the code through the compiler's parser,
13127   # not just through cpp. "Syntax error" is here to catch this case.
13128   cat >conftest.$ac_ext <<_ACEOF
13129 /* confdefs.h.  */
13130 _ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h.  */
13134 #ifdef __STDC__
13135 # include <limits.h>
13136 #else
13137 # include <assert.h>
13138 #endif
13139                      Syntax error
13140 _ACEOF
13141 if { (ac_try="$ac_cpp conftest.$ac_ext"
13142 case "(($ac_try" in
13143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144   *) ac_try_echo=$ac_try;;
13145 esac
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13148   ac_status=$?
13149   grep -v '^ *+' conftest.er1 >conftest.err
13150   rm -f conftest.er1
13151   cat conftest.err >&5
13152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); } >/dev/null; then
13154   if test -s conftest.err; then
13155     ac_cpp_err=$ac_cxx_preproc_warn_flag
13156     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13157   else
13158     ac_cpp_err=
13159   fi
13160 else
13161   ac_cpp_err=yes
13162 fi
13163 if test -z "$ac_cpp_err"; then
13164   :
13165 else
13166   echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13168
13169   # Broken: fails on valid input.
13170 continue
13171 fi
13172
13173 rm -f conftest.err conftest.$ac_ext
13174
13175   # OK, works on sane cases.  Now check whether nonexistent headers
13176   # can be detected and how.
13177   cat >conftest.$ac_ext <<_ACEOF
13178 /* confdefs.h.  */
13179 _ACEOF
13180 cat confdefs.h >>conftest.$ac_ext
13181 cat >>conftest.$ac_ext <<_ACEOF
13182 /* end confdefs.h.  */
13183 #include <ac_nonexistent.h>
13184 _ACEOF
13185 if { (ac_try="$ac_cpp conftest.$ac_ext"
13186 case "(($ac_try" in
13187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188   *) ac_try_echo=$ac_try;;
13189 esac
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13192   ac_status=$?
13193   grep -v '^ *+' conftest.er1 >conftest.err
13194   rm -f conftest.er1
13195   cat conftest.err >&5
13196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197   (exit $ac_status); } >/dev/null; then
13198   if test -s conftest.err; then
13199     ac_cpp_err=$ac_cxx_preproc_warn_flag
13200     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13201   else
13202     ac_cpp_err=
13203   fi
13204 else
13205   ac_cpp_err=yes
13206 fi
13207 if test -z "$ac_cpp_err"; then
13208   # Broken: success on invalid input.
13209 continue
13210 else
13211   echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13213
13214   # Passes both tests.
13215 ac_preproc_ok=:
13216 break
13217 fi
13218
13219 rm -f conftest.err conftest.$ac_ext
13220
13221 done
13222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13223 rm -f conftest.err conftest.$ac_ext
13224 if $ac_preproc_ok; then
13225   :
13226 else
13227   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13228 See \`config.log' for more details." >&5
13229 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13230 See \`config.log' for more details." >&2;}
13231    { (exit 1); exit 1; }; }
13232 fi
13233
13234 ac_ext=cpp
13235 ac_cpp='$CXXCPP $CPPFLAGS'
13236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13239
13240 fi
13241
13242
13243 ac_ext=f
13244 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13245 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13246 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13247 if test -n "$ac_tool_prefix"; then
13248   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
13249   do
13250     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13254 if test "${ac_cv_prog_F77+set}" = set; then
13255   echo $ECHO_N "(cached) $ECHO_C" >&6
13256 else
13257   if test -n "$F77"; then
13258   ac_cv_prog_F77="$F77" # Let the user override the test.
13259 else
13260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261 for as_dir in $PATH
13262 do
13263   IFS=$as_save_IFS
13264   test -z "$as_dir" && as_dir=.
13265   for ac_exec_ext in '' $ac_executable_extensions; do
13266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13267     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13269     break 2
13270   fi
13271 done
13272 done
13273 IFS=$as_save_IFS
13274
13275 fi
13276 fi
13277 F77=$ac_cv_prog_F77
13278 if test -n "$F77"; then
13279   { echo "$as_me:$LINENO: result: $F77" >&5
13280 echo "${ECHO_T}$F77" >&6; }
13281 else
13282   { echo "$as_me:$LINENO: result: no" >&5
13283 echo "${ECHO_T}no" >&6; }
13284 fi
13285
13286
13287     test -n "$F77" && break
13288   done
13289 fi
13290 if test -z "$F77"; then
13291   ac_ct_F77=$F77
13292   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
13293 do
13294   # Extract the first word of "$ac_prog", so it can be a program name with args.
13295 set dummy $ac_prog; ac_word=$2
13296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13298 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13299   echo $ECHO_N "(cached) $ECHO_C" >&6
13300 else
13301   if test -n "$ac_ct_F77"; then
13302   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13303 else
13304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13305 for as_dir in $PATH
13306 do
13307   IFS=$as_save_IFS
13308   test -z "$as_dir" && as_dir=.
13309   for ac_exec_ext in '' $ac_executable_extensions; do
13310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13311     ac_cv_prog_ac_ct_F77="$ac_prog"
13312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13313     break 2
13314   fi
13315 done
13316 done
13317 IFS=$as_save_IFS
13318
13319 fi
13320 fi
13321 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13322 if test -n "$ac_ct_F77"; then
13323   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13324 echo "${ECHO_T}$ac_ct_F77" >&6; }
13325 else
13326   { echo "$as_me:$LINENO: result: no" >&5
13327 echo "${ECHO_T}no" >&6; }
13328 fi
13329
13330
13331   test -n "$ac_ct_F77" && break
13332 done
13333
13334   if test "x$ac_ct_F77" = x; then
13335     F77=""
13336   else
13337     case $cross_compiling:$ac_tool_warned in
13338 yes:)
13339 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13340 whose name does not start with the host triplet.  If you think this
13341 configuration is useful to you, please write to autoconf@gnu.org." >&5
13342 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13343 whose name does not start with the host triplet.  If you think this
13344 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13345 ac_tool_warned=yes ;;
13346 esac
13347     F77=$ac_ct_F77
13348   fi
13349 fi
13350
13351
13352 # Provide some information about the compiler.
13353 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13354 ac_compiler=`set X $ac_compile; echo $2`
13355 { (ac_try="$ac_compiler --version >&5"
13356 case "(($ac_try" in
13357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358   *) ac_try_echo=$ac_try;;
13359 esac
13360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361   (eval "$ac_compiler --version >&5") 2>&5
13362   ac_status=$?
13363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364   (exit $ac_status); }
13365 { (ac_try="$ac_compiler -v >&5"
13366 case "(($ac_try" in
13367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368   *) ac_try_echo=$ac_try;;
13369 esac
13370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371   (eval "$ac_compiler -v >&5") 2>&5
13372   ac_status=$?
13373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); }
13375 { (ac_try="$ac_compiler -V >&5"
13376 case "(($ac_try" in
13377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378   *) ac_try_echo=$ac_try;;
13379 esac
13380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381   (eval "$ac_compiler -V >&5") 2>&5
13382   ac_status=$?
13383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384   (exit $ac_status); }
13385 rm -f a.out
13386
13387 # If we don't use `.F' as extension, the preprocessor is not run on the
13388 # input file.  (Note that this only needs to work for GNU compilers.)
13389 ac_save_ext=$ac_ext
13390 ac_ext=F
13391 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13392 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13393 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13394   echo $ECHO_N "(cached) $ECHO_C" >&6
13395 else
13396   cat >conftest.$ac_ext <<_ACEOF
13397       program main
13398 #ifndef __GNUC__
13399        choke me
13400 #endif
13401
13402       end
13403 _ACEOF
13404 rm -f conftest.$ac_objext
13405 if { (ac_try="$ac_compile"
13406 case "(($ac_try" in
13407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408   *) ac_try_echo=$ac_try;;
13409 esac
13410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411   (eval "$ac_compile") 2>conftest.er1
13412   ac_status=$?
13413   grep -v '^ *+' conftest.er1 >conftest.err
13414   rm -f conftest.er1
13415   cat conftest.err >&5
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); } &&
13418          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13419   { (case "(($ac_try" in
13420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421   *) ac_try_echo=$ac_try;;
13422 esac
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424   (eval "$ac_try") 2>&5
13425   ac_status=$?
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); }; } &&
13428          { ac_try='test -s conftest.$ac_objext'
13429   { (case "(($ac_try" in
13430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431   *) ac_try_echo=$ac_try;;
13432 esac
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434   (eval "$ac_try") 2>&5
13435   ac_status=$?
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); }; }; then
13438   ac_compiler_gnu=yes
13439 else
13440   echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13442
13443         ac_compiler_gnu=no
13444 fi
13445
13446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13448
13449 fi
13450 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13451 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13452 ac_ext=$ac_save_ext
13453 ac_test_FFLAGS=${FFLAGS+set}
13454 ac_save_FFLAGS=$FFLAGS
13455 FFLAGS=
13456 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13457 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13458 if test "${ac_cv_prog_f77_g+set}" = set; then
13459   echo $ECHO_N "(cached) $ECHO_C" >&6
13460 else
13461   FFLAGS=-g
13462 cat >conftest.$ac_ext <<_ACEOF
13463       program main
13464
13465       end
13466 _ACEOF
13467 rm -f conftest.$ac_objext
13468 if { (ac_try="$ac_compile"
13469 case "(($ac_try" in
13470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471   *) ac_try_echo=$ac_try;;
13472 esac
13473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13474   (eval "$ac_compile") 2>conftest.er1
13475   ac_status=$?
13476   grep -v '^ *+' conftest.er1 >conftest.err
13477   rm -f conftest.er1
13478   cat conftest.err >&5
13479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480   (exit $ac_status); } &&
13481          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13482   { (case "(($ac_try" in
13483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484   *) ac_try_echo=$ac_try;;
13485 esac
13486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487   (eval "$ac_try") 2>&5
13488   ac_status=$?
13489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490   (exit $ac_status); }; } &&
13491          { ac_try='test -s conftest.$ac_objext'
13492   { (case "(($ac_try" in
13493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494   *) ac_try_echo=$ac_try;;
13495 esac
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497   (eval "$ac_try") 2>&5
13498   ac_status=$?
13499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500   (exit $ac_status); }; }; then
13501   ac_cv_prog_f77_g=yes
13502 else
13503   echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13505
13506         ac_cv_prog_f77_g=no
13507 fi
13508
13509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13510
13511 fi
13512 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13513 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13514 if test "$ac_test_FFLAGS" = set; then
13515   FFLAGS=$ac_save_FFLAGS
13516 elif test $ac_cv_prog_f77_g = yes; then
13517   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13518     FFLAGS="-g -O2"
13519   else
13520     FFLAGS="-g"
13521   fi
13522 else
13523   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13524     FFLAGS="-O2"
13525   else
13526     FFLAGS=
13527   fi
13528 fi
13529
13530 G77=`test $ac_compiler_gnu = yes && echo yes`
13531 ac_ext=c
13532 ac_cpp='$CPP $CPPFLAGS'
13533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13536
13537
13538
13539 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13540
13541 # find the maximum length of command line arguments
13542 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13543 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13544 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13545   echo $ECHO_N "(cached) $ECHO_C" >&6
13546 else
13547     i=0
13548   teststring="ABCD"
13549
13550   case $build_os in
13551   msdosdjgpp*)
13552     # On DJGPP, this test can blow up pretty badly due to problems in libc
13553     # (any single argument exceeding 2000 bytes causes a buffer overrun
13554     # during glob expansion).  Even if it were fixed, the result of this
13555     # check would be larger than it should be.
13556     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13557     ;;
13558
13559   gnu*)
13560     # Under GNU Hurd, this test is not required because there is
13561     # no limit to the length of command line arguments.
13562     # Libtool will interpret -1 as no limit whatsoever
13563     lt_cv_sys_max_cmd_len=-1;
13564     ;;
13565
13566   cygwin* | mingw*)
13567     # On Win9x/ME, this test blows up -- it succeeds, but takes
13568     # about 5 minutes as the teststring grows exponentially.
13569     # Worse, since 9x/ME are not pre-emptively multitasking,
13570     # you end up with a "frozen" computer, even though with patience
13571     # the test eventually succeeds (with a max line length of 256k).
13572     # Instead, let's just punt: use the minimum linelength reported by
13573     # all of the supported platforms: 8192 (on NT/2K/XP).
13574     lt_cv_sys_max_cmd_len=8192;
13575     ;;
13576
13577   amigaos*)
13578     # On AmigaOS with pdksh, this test takes hours, literally.
13579     # So we just punt and use a minimum line length of 8192.
13580     lt_cv_sys_max_cmd_len=8192;
13581     ;;
13582
13583   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13584     # This has been around since 386BSD, at least.  Likely further.
13585     if test -x /sbin/sysctl; then
13586       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13587     elif test -x /usr/sbin/sysctl; then
13588       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13589     else
13590       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13591     fi
13592     # And add a safety zone
13593     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13594     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13595     ;;
13596
13597   interix*)
13598     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13599     lt_cv_sys_max_cmd_len=196608
13600     ;;
13601
13602   osf*)
13603     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13604     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13605     # nice to cause kernel panics so lets avoid the loop below.
13606     # First set a reasonable default.
13607     lt_cv_sys_max_cmd_len=16384
13608     #
13609     if test -x /sbin/sysconfig; then
13610       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13611         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13612       esac
13613     fi
13614     ;;
13615   sco3.2v5*)
13616     lt_cv_sys_max_cmd_len=102400
13617     ;;
13618   sysv5* | sco5v6* | sysv4.2uw2*)
13619     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13620     if test -n "$kargmax"; then
13621       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13622     else
13623       lt_cv_sys_max_cmd_len=32768
13624     fi
13625     ;;
13626   *)
13627     # If test is not a shell built-in, we'll probably end up computing a
13628     # maximum length that is only half of the actual maximum length, but
13629     # we can't tell.
13630     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13631     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13632                = "XX$teststring") >/dev/null 2>&1 &&
13633             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13634             lt_cv_sys_max_cmd_len=$new_result &&
13635             test $i != 17 # 1/2 MB should be enough
13636     do
13637       i=`expr $i + 1`
13638       teststring=$teststring$teststring
13639     done
13640     teststring=
13641     # Add a significant safety factor because C++ compilers can tack on massive
13642     # amounts of additional arguments before passing them to the linker.
13643     # It appears as though 1/2 is a usable value.
13644     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13645     ;;
13646   esac
13647
13648 fi
13649
13650 if test -n $lt_cv_sys_max_cmd_len ; then
13651   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13652 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13653 else
13654   { echo "$as_me:$LINENO: result: none" >&5
13655 echo "${ECHO_T}none" >&6; }
13656 fi
13657
13658
13659
13660
13661 # Check for command to grab the raw symbol name followed by C symbol from nm.
13662 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13663 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13664 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13665   echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667
13668 # These are sane defaults that work on at least a few old systems.
13669 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13670
13671 # Character class describing NM global symbol codes.
13672 symcode='[BCDEGRST]'
13673
13674 # Regexp to match symbols that can be accessed directly from C.
13675 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13676
13677 # Transform an extracted symbol line into a proper C declaration
13678 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13679
13680 # Transform an extracted symbol line into symbol name and symbol address
13681 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'"
13682
13683 # Define system-specific variables.
13684 case $host_os in
13685 aix*)
13686   symcode='[BCDT]'
13687   ;;
13688 cygwin* | mingw* | pw32*)
13689   symcode='[ABCDGISTW]'
13690   ;;
13691 hpux*) # Its linker distinguishes data from code symbols
13692   if test "$host_cpu" = ia64; then
13693     symcode='[ABCDEGRST]'
13694   fi
13695   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13696   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'"
13697   ;;
13698 linux*)
13699   if test "$host_cpu" = ia64; then
13700     symcode='[ABCDGIRSTW]'
13701     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13702     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'"
13703   fi
13704   ;;
13705 irix* | nonstopux*)
13706   symcode='[BCDEGRST]'
13707   ;;
13708 osf*)
13709   symcode='[BCDEGQRST]'
13710   ;;
13711 solaris*)
13712   symcode='[BDRT]'
13713   ;;
13714 sco3.2v5*)
13715   symcode='[DT]'
13716   ;;
13717 sysv4.2uw2*)
13718   symcode='[DT]'
13719   ;;
13720 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13721   symcode='[ABDT]'
13722   ;;
13723 sysv4)
13724   symcode='[DFNSTU]'
13725   ;;
13726 esac
13727
13728 # Handle CRLF in mingw tool chain
13729 opt_cr=
13730 case $build_os in
13731 mingw*)
13732   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13733   ;;
13734 esac
13735
13736 # If we're using GNU nm, then use its standard symbol codes.
13737 case `$NM -V 2>&1` in
13738 *GNU* | *'with BFD'*)
13739   symcode='[ABCDGIRSTW]' ;;
13740 esac
13741
13742 # Try without a prefix undercore, then with it.
13743 for ac_symprfx in "" "_"; do
13744
13745   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13746   symxfrm="\\1 $ac_symprfx\\2 \\2"
13747
13748   # Write the raw and C identifiers.
13749   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13750
13751   # Check to see that the pipe works correctly.
13752   pipe_works=no
13753
13754   rm -f conftest*
13755   cat > conftest.$ac_ext <<EOF
13756 #ifdef __cplusplus
13757 extern "C" {
13758 #endif
13759 char nm_test_var;
13760 void nm_test_func(){}
13761 #ifdef __cplusplus
13762 }
13763 #endif
13764 int main(){nm_test_var='a';nm_test_func();return(0);}
13765 EOF
13766
13767   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13768   (eval $ac_compile) 2>&5
13769   ac_status=$?
13770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771   (exit $ac_status); }; then
13772     # Now try to grab the symbols.
13773     nlist=conftest.nm
13774     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13775   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13776   ac_status=$?
13777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778   (exit $ac_status); } && test -s "$nlist"; then
13779       # Try sorting and uniquifying the output.
13780       if sort "$nlist" | uniq > "$nlist"T; then
13781         mv -f "$nlist"T "$nlist"
13782       else
13783         rm -f "$nlist"T
13784       fi
13785
13786       # Make sure that we snagged all the symbols we need.
13787       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13788         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13789           cat <<EOF > conftest.$ac_ext
13790 #ifdef __cplusplus
13791 extern "C" {
13792 #endif
13793
13794 EOF
13795           # Now generate the symbol file.
13796           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13797
13798           cat <<EOF >> conftest.$ac_ext
13799 #if defined (__STDC__) && __STDC__
13800 # define lt_ptr_t void *
13801 #else
13802 # define lt_ptr_t char *
13803 # define const
13804 #endif
13805
13806 /* The mapping between symbol names and symbols. */
13807 const struct {
13808   const char *name;
13809   lt_ptr_t address;
13810 }
13811 lt_preloaded_symbols[] =
13812 {
13813 EOF
13814           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13815           cat <<\EOF >> conftest.$ac_ext
13816   {0, (lt_ptr_t) 0}
13817 };
13818
13819 #ifdef __cplusplus
13820 }
13821 #endif
13822 EOF
13823           # Now try linking the two files.
13824           mv conftest.$ac_objext conftstm.$ac_objext
13825           lt_save_LIBS="$LIBS"
13826           lt_save_CFLAGS="$CFLAGS"
13827           LIBS="conftstm.$ac_objext"
13828           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13829           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13830   (eval $ac_link) 2>&5
13831   ac_status=$?
13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13834             pipe_works=yes
13835           fi
13836           LIBS="$lt_save_LIBS"
13837           CFLAGS="$lt_save_CFLAGS"
13838         else
13839           echo "cannot find nm_test_func in $nlist" >&5
13840         fi
13841       else
13842         echo "cannot find nm_test_var in $nlist" >&5
13843       fi
13844     else
13845       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13846     fi
13847   else
13848     echo "$progname: failed program was:" >&5
13849     cat conftest.$ac_ext >&5
13850   fi
13851   rm -f conftest* conftst*
13852
13853   # Do not use the global_symbol_pipe unless it works.
13854   if test "$pipe_works" = yes; then
13855     break
13856   else
13857     lt_cv_sys_global_symbol_pipe=
13858   fi
13859 done
13860
13861 fi
13862
13863 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13864   lt_cv_sys_global_symbol_to_cdecl=
13865 fi
13866 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13867   { echo "$as_me:$LINENO: result: failed" >&5
13868 echo "${ECHO_T}failed" >&6; }
13869 else
13870   { echo "$as_me:$LINENO: result: ok" >&5
13871 echo "${ECHO_T}ok" >&6; }
13872 fi
13873
13874 { echo "$as_me:$LINENO: checking for objdir" >&5
13875 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13876 if test "${lt_cv_objdir+set}" = set; then
13877   echo $ECHO_N "(cached) $ECHO_C" >&6
13878 else
13879   rm -f .libs 2>/dev/null
13880 mkdir .libs 2>/dev/null
13881 if test -d .libs; then
13882   lt_cv_objdir=.libs
13883 else
13884   # MS-DOS does not allow filenames that begin with a dot.
13885   lt_cv_objdir=_libs
13886 fi
13887 rmdir .libs 2>/dev/null
13888 fi
13889 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13890 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13891 objdir=$lt_cv_objdir
13892
13893
13894
13895
13896
13897 case $host_os in
13898 aix3*)
13899   # AIX sometimes has problems with the GCC collect2 program.  For some
13900   # reason, if we set the COLLECT_NAMES environment variable, the problems
13901   # vanish in a puff of smoke.
13902   if test "X${COLLECT_NAMES+set}" != Xset; then
13903     COLLECT_NAMES=
13904     export COLLECT_NAMES
13905   fi
13906   ;;
13907 esac
13908
13909 # Sed substitution that helps us do robust quoting.  It backslashifies
13910 # metacharacters that are still active within double-quoted strings.
13911 Xsed='sed -e 1s/^X//'
13912 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13913
13914 # Same as above, but do not quote variable references.
13915 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13916
13917 # Sed substitution to delay expansion of an escaped shell variable in a
13918 # double_quote_subst'ed string.
13919 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13920
13921 # Sed substitution to avoid accidental globbing in evaled expressions
13922 no_glob_subst='s/\*/\\\*/g'
13923
13924 # Constants:
13925 rm="rm -f"
13926
13927 # Global variables:
13928 default_ofile=mklib
13929 can_build_shared=yes
13930
13931 # All known linkers require a `.a' archive for static linking (except MSVC,
13932 # which needs '.lib').
13933 libext=a
13934 ltmain="$ac_aux_dir/ltmain.sh"
13935 ofile="$default_ofile"
13936 with_gnu_ld="$lt_cv_prog_gnu_ld"
13937
13938 if test -n "$ac_tool_prefix"; then
13939   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13940 set dummy ${ac_tool_prefix}ar; ac_word=$2
13941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13943 if test "${ac_cv_prog_AR+set}" = set; then
13944   echo $ECHO_N "(cached) $ECHO_C" >&6
13945 else
13946   if test -n "$AR"; then
13947   ac_cv_prog_AR="$AR" # Let the user override the test.
13948 else
13949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13950 for as_dir in $PATH
13951 do
13952   IFS=$as_save_IFS
13953   test -z "$as_dir" && as_dir=.
13954   for ac_exec_ext in '' $ac_executable_extensions; do
13955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13956     ac_cv_prog_AR="${ac_tool_prefix}ar"
13957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13958     break 2
13959   fi
13960 done
13961 done
13962 IFS=$as_save_IFS
13963
13964 fi
13965 fi
13966 AR=$ac_cv_prog_AR
13967 if test -n "$AR"; then
13968   { echo "$as_me:$LINENO: result: $AR" >&5
13969 echo "${ECHO_T}$AR" >&6; }
13970 else
13971   { echo "$as_me:$LINENO: result: no" >&5
13972 echo "${ECHO_T}no" >&6; }
13973 fi
13974
13975
13976 fi
13977 if test -z "$ac_cv_prog_AR"; then
13978   ac_ct_AR=$AR
13979   # Extract the first word of "ar", so it can be a program name with args.
13980 set dummy ar; ac_word=$2
13981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13983 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13984   echo $ECHO_N "(cached) $ECHO_C" >&6
13985 else
13986   if test -n "$ac_ct_AR"; then
13987   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13988 else
13989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13990 for as_dir in $PATH
13991 do
13992   IFS=$as_save_IFS
13993   test -z "$as_dir" && as_dir=.
13994   for ac_exec_ext in '' $ac_executable_extensions; do
13995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13996     ac_cv_prog_ac_ct_AR="ar"
13997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13998     break 2
13999   fi
14000 done
14001 done
14002 IFS=$as_save_IFS
14003
14004 fi
14005 fi
14006 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14007 if test -n "$ac_ct_AR"; then
14008   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14009 echo "${ECHO_T}$ac_ct_AR" >&6; }
14010 else
14011   { echo "$as_me:$LINENO: result: no" >&5
14012 echo "${ECHO_T}no" >&6; }
14013 fi
14014
14015   if test "x$ac_ct_AR" = x; then
14016     AR="false"
14017   else
14018     case $cross_compiling:$ac_tool_warned in
14019 yes:)
14020 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14021 whose name does not start with the host triplet.  If you think this
14022 configuration is useful to you, please write to autoconf@gnu.org." >&5
14023 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14024 whose name does not start with the host triplet.  If you think this
14025 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14026 ac_tool_warned=yes ;;
14027 esac
14028     AR=$ac_ct_AR
14029   fi
14030 else
14031   AR="$ac_cv_prog_AR"
14032 fi
14033
14034 if test -n "$ac_tool_prefix"; then
14035   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14036 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14039 if test "${ac_cv_prog_RANLIB+set}" = set; then
14040   echo $ECHO_N "(cached) $ECHO_C" >&6
14041 else
14042   if test -n "$RANLIB"; then
14043   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14044 else
14045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14046 for as_dir in $PATH
14047 do
14048   IFS=$as_save_IFS
14049   test -z "$as_dir" && as_dir=.
14050   for ac_exec_ext in '' $ac_executable_extensions; do
14051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14052     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14054     break 2
14055   fi
14056 done
14057 done
14058 IFS=$as_save_IFS
14059
14060 fi
14061 fi
14062 RANLIB=$ac_cv_prog_RANLIB
14063 if test -n "$RANLIB"; then
14064   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14065 echo "${ECHO_T}$RANLIB" >&6; }
14066 else
14067   { echo "$as_me:$LINENO: result: no" >&5
14068 echo "${ECHO_T}no" >&6; }
14069 fi
14070
14071
14072 fi
14073 if test -z "$ac_cv_prog_RANLIB"; then
14074   ac_ct_RANLIB=$RANLIB
14075   # Extract the first word of "ranlib", so it can be a program name with args.
14076 set dummy ranlib; ac_word=$2
14077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14079 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14080   echo $ECHO_N "(cached) $ECHO_C" >&6
14081 else
14082   if test -n "$ac_ct_RANLIB"; then
14083   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14084 else
14085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14086 for as_dir in $PATH
14087 do
14088   IFS=$as_save_IFS
14089   test -z "$as_dir" && as_dir=.
14090   for ac_exec_ext in '' $ac_executable_extensions; do
14091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14092     ac_cv_prog_ac_ct_RANLIB="ranlib"
14093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14094     break 2
14095   fi
14096 done
14097 done
14098 IFS=$as_save_IFS
14099
14100 fi
14101 fi
14102 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14103 if test -n "$ac_ct_RANLIB"; then
14104   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14105 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14106 else
14107   { echo "$as_me:$LINENO: result: no" >&5
14108 echo "${ECHO_T}no" >&6; }
14109 fi
14110
14111   if test "x$ac_ct_RANLIB" = x; then
14112     RANLIB=":"
14113   else
14114     case $cross_compiling:$ac_tool_warned in
14115 yes:)
14116 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14117 whose name does not start with the host triplet.  If you think this
14118 configuration is useful to you, please write to autoconf@gnu.org." >&5
14119 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14120 whose name does not start with the host triplet.  If you think this
14121 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14122 ac_tool_warned=yes ;;
14123 esac
14124     RANLIB=$ac_ct_RANLIB
14125   fi
14126 else
14127   RANLIB="$ac_cv_prog_RANLIB"
14128 fi
14129
14130 if test -n "$ac_tool_prefix"; then
14131   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14132 set dummy ${ac_tool_prefix}strip; ac_word=$2
14133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14135 if test "${ac_cv_prog_STRIP+set}" = set; then
14136   echo $ECHO_N "(cached) $ECHO_C" >&6
14137 else
14138   if test -n "$STRIP"; then
14139   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14140 else
14141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14142 for as_dir in $PATH
14143 do
14144   IFS=$as_save_IFS
14145   test -z "$as_dir" && as_dir=.
14146   for ac_exec_ext in '' $ac_executable_extensions; do
14147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14148     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14150     break 2
14151   fi
14152 done
14153 done
14154 IFS=$as_save_IFS
14155
14156 fi
14157 fi
14158 STRIP=$ac_cv_prog_STRIP
14159 if test -n "$STRIP"; then
14160   { echo "$as_me:$LINENO: result: $STRIP" >&5
14161 echo "${ECHO_T}$STRIP" >&6; }
14162 else
14163   { echo "$as_me:$LINENO: result: no" >&5
14164 echo "${ECHO_T}no" >&6; }
14165 fi
14166
14167
14168 fi
14169 if test -z "$ac_cv_prog_STRIP"; then
14170   ac_ct_STRIP=$STRIP
14171   # Extract the first word of "strip", so it can be a program name with args.
14172 set dummy strip; ac_word=$2
14173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14175 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14176   echo $ECHO_N "(cached) $ECHO_C" >&6
14177 else
14178   if test -n "$ac_ct_STRIP"; then
14179   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14180 else
14181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14182 for as_dir in $PATH
14183 do
14184   IFS=$as_save_IFS
14185   test -z "$as_dir" && as_dir=.
14186   for ac_exec_ext in '' $ac_executable_extensions; do
14187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14188     ac_cv_prog_ac_ct_STRIP="strip"
14189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14190     break 2
14191   fi
14192 done
14193 done
14194 IFS=$as_save_IFS
14195
14196 fi
14197 fi
14198 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14199 if test -n "$ac_ct_STRIP"; then
14200   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14201 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14202 else
14203   { echo "$as_me:$LINENO: result: no" >&5
14204 echo "${ECHO_T}no" >&6; }
14205 fi
14206
14207   if test "x$ac_ct_STRIP" = x; then
14208     STRIP=":"
14209   else
14210     case $cross_compiling:$ac_tool_warned in
14211 yes:)
14212 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14213 whose name does not start with the host triplet.  If you think this
14214 configuration is useful to you, please write to autoconf@gnu.org." >&5
14215 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14216 whose name does not start with the host triplet.  If you think this
14217 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14218 ac_tool_warned=yes ;;
14219 esac
14220     STRIP=$ac_ct_STRIP
14221   fi
14222 else
14223   STRIP="$ac_cv_prog_STRIP"
14224 fi
14225
14226
14227 old_CC="$CC"
14228 old_CFLAGS="$CFLAGS"
14229
14230 # Set sane defaults for various variables
14231 test -z "$AR" && AR=ar
14232 test -z "$AR_FLAGS" && AR_FLAGS=cru
14233 test -z "$AS" && AS=as
14234 test -z "$CC" && CC=cc
14235 test -z "$LTCC" && LTCC=$CC
14236 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14237 test -z "$DLLTOOL" && DLLTOOL=dlltool
14238 test -z "$LD" && LD=ld
14239 test -z "$LN_S" && LN_S="ln -s"
14240 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14241 test -z "$NM" && NM=nm
14242 test -z "$SED" && SED=sed
14243 test -z "$OBJDUMP" && OBJDUMP=objdump
14244 test -z "$RANLIB" && RANLIB=:
14245 test -z "$STRIP" && STRIP=:
14246 test -z "$ac_objext" && ac_objext=o
14247
14248 # Determine commands to create old-style static archives.
14249 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14250 old_postinstall_cmds='chmod 644 $oldlib'
14251 old_postuninstall_cmds=
14252
14253 if test -n "$RANLIB"; then
14254   case $host_os in
14255   openbsd*)
14256     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14257     ;;
14258   *)
14259     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14260     ;;
14261   esac
14262   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14263 fi
14264
14265 for cc_temp in $compiler""; do
14266   case $cc_temp in
14267     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14268     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14269     \-*) ;;
14270     *) break;;
14271   esac
14272 done
14273 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14274
14275
14276 # Only perform the check for file, if the check method requires it
14277 case $deplibs_check_method in
14278 file_magic*)
14279   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14280     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14281 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14282 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14283   echo $ECHO_N "(cached) $ECHO_C" >&6
14284 else
14285   case $MAGIC_CMD in
14286 [\\/*] |  ?:[\\/]*)
14287   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14288   ;;
14289 *)
14290   lt_save_MAGIC_CMD="$MAGIC_CMD"
14291   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14292   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14293   for ac_dir in $ac_dummy; do
14294     IFS="$lt_save_ifs"
14295     test -z "$ac_dir" && ac_dir=.
14296     if test -f $ac_dir/${ac_tool_prefix}file; then
14297       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14298       if test -n "$file_magic_test_file"; then
14299         case $deplibs_check_method in
14300         "file_magic "*)
14301           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14302           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14303           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14304             $EGREP "$file_magic_regex" > /dev/null; then
14305             :
14306           else
14307             cat <<EOF 1>&2
14308
14309 *** Warning: the command libtool uses to detect shared libraries,
14310 *** $file_magic_cmd, produces output that libtool cannot recognize.
14311 *** The result is that libtool may fail to recognize shared libraries
14312 *** as such.  This will affect the creation of libtool libraries that
14313 *** depend on shared libraries, but programs linked with such libtool
14314 *** libraries will work regardless of this problem.  Nevertheless, you
14315 *** may want to report the problem to your system manager and/or to
14316 *** bug-libtool@gnu.org
14317
14318 EOF
14319           fi ;;
14320         esac
14321       fi
14322       break
14323     fi
14324   done
14325   IFS="$lt_save_ifs"
14326   MAGIC_CMD="$lt_save_MAGIC_CMD"
14327   ;;
14328 esac
14329 fi
14330
14331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14332 if test -n "$MAGIC_CMD"; then
14333   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14334 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14335 else
14336   { echo "$as_me:$LINENO: result: no" >&5
14337 echo "${ECHO_T}no" >&6; }
14338 fi
14339
14340 if test -z "$lt_cv_path_MAGIC_CMD"; then
14341   if test -n "$ac_tool_prefix"; then
14342     { echo "$as_me:$LINENO: checking for file" >&5
14343 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14344 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14345   echo $ECHO_N "(cached) $ECHO_C" >&6
14346 else
14347   case $MAGIC_CMD in
14348 [\\/*] |  ?:[\\/]*)
14349   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14350   ;;
14351 *)
14352   lt_save_MAGIC_CMD="$MAGIC_CMD"
14353   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14354   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14355   for ac_dir in $ac_dummy; do
14356     IFS="$lt_save_ifs"
14357     test -z "$ac_dir" && ac_dir=.
14358     if test -f $ac_dir/file; then
14359       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14360       if test -n "$file_magic_test_file"; then
14361         case $deplibs_check_method in
14362         "file_magic "*)
14363           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14364           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14365           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14366             $EGREP "$file_magic_regex" > /dev/null; then
14367             :
14368           else
14369             cat <<EOF 1>&2
14370
14371 *** Warning: the command libtool uses to detect shared libraries,
14372 *** $file_magic_cmd, produces output that libtool cannot recognize.
14373 *** The result is that libtool may fail to recognize shared libraries
14374 *** as such.  This will affect the creation of libtool libraries that
14375 *** depend on shared libraries, but programs linked with such libtool
14376 *** libraries will work regardless of this problem.  Nevertheless, you
14377 *** may want to report the problem to your system manager and/or to
14378 *** bug-libtool@gnu.org
14379
14380 EOF
14381           fi ;;
14382         esac
14383       fi
14384       break
14385     fi
14386   done
14387   IFS="$lt_save_ifs"
14388   MAGIC_CMD="$lt_save_MAGIC_CMD"
14389   ;;
14390 esac
14391 fi
14392
14393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14394 if test -n "$MAGIC_CMD"; then
14395   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14396 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14397 else
14398   { echo "$as_me:$LINENO: result: no" >&5
14399 echo "${ECHO_T}no" >&6; }
14400 fi
14401
14402   else
14403     MAGIC_CMD=:
14404   fi
14405 fi
14406
14407   fi
14408   ;;
14409 esac
14410
14411 enable_dlopen=yes
14412 enable_win32_dll=no
14413
14414 # Check whether --enable-libtool-lock was given.
14415 if test "${enable_libtool_lock+set}" = set; then
14416   enableval=$enable_libtool_lock;
14417 fi
14418
14419 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14420
14421
14422 # Check whether --with-pic was given.
14423 if test "${with_pic+set}" = set; then
14424   withval=$with_pic; pic_mode="$withval"
14425 else
14426   pic_mode=default
14427 fi
14428
14429 test -z "$pic_mode" && pic_mode=default
14430
14431 # Use C for the default configuration in the libtool script
14432 tagname=
14433 lt_save_CC="$CC"
14434 ac_ext=c
14435 ac_cpp='$CPP $CPPFLAGS'
14436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14439
14440
14441 # Source file extension for C test sources.
14442 ac_ext=c
14443
14444 # Object file extension for compiled C test sources.
14445 objext=o
14446 objext=$objext
14447
14448 # Code to be used in simple compile tests
14449 lt_simple_compile_test_code="int some_variable = 0;\n"
14450
14451 # Code to be used in simple link tests
14452 lt_simple_link_test_code='int main(){return(0);}\n'
14453
14454
14455 # If no C compiler was specified, use CC.
14456 LTCC=${LTCC-"$CC"}
14457
14458 # If no C compiler flags were specified, use CFLAGS.
14459 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14460
14461 # Allow CC to be a program name with arguments.
14462 compiler=$CC
14463
14464
14465 # save warnings/boilerplate of simple test code
14466 ac_outfile=conftest.$ac_objext
14467 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14468 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14469 _lt_compiler_boilerplate=`cat conftest.err`
14470 $rm conftest*
14471
14472 ac_outfile=conftest.$ac_objext
14473 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14474 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14475 _lt_linker_boilerplate=`cat conftest.err`
14476 $rm conftest*
14477
14478
14479
14480 lt_prog_compiler_no_builtin_flag=
14481
14482 if test "$GCC" = yes; then
14483   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14484
14485
14486 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14487 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14488 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14489   echo $ECHO_N "(cached) $ECHO_C" >&6
14490 else
14491   lt_cv_prog_compiler_rtti_exceptions=no
14492   ac_outfile=conftest.$ac_objext
14493    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14494    lt_compiler_flag="-fno-rtti -fno-exceptions"
14495    # Insert the option either (1) after the last *FLAGS variable, or
14496    # (2) before a word containing "conftest.", or (3) at the end.
14497    # Note that $ac_compile itself does not contain backslashes and begins
14498    # with a dollar sign (not a hyphen), so the echo should work correctly.
14499    # The option is referenced via a variable to avoid confusing sed.
14500    lt_compile=`echo "$ac_compile" | $SED \
14501    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14502    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14503    -e 's:$: $lt_compiler_flag:'`
14504    (eval echo "\"\$as_me:14501: $lt_compile\"" >&5)
14505    (eval "$lt_compile" 2>conftest.err)
14506    ac_status=$?
14507    cat conftest.err >&5
14508    echo "$as_me:14505: \$? = $ac_status" >&5
14509    if (exit $ac_status) && test -s "$ac_outfile"; then
14510      # The compiler can only warn and ignore the option if not recognized
14511      # So say no if there are warnings other than the usual output.
14512      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14513      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14514      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14515        lt_cv_prog_compiler_rtti_exceptions=yes
14516      fi
14517    fi
14518    $rm conftest*
14519
14520 fi
14521 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14522 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14523
14524 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14525     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14526 else
14527     :
14528 fi
14529
14530 fi
14531
14532 lt_prog_compiler_wl=
14533 lt_prog_compiler_pic=
14534 lt_prog_compiler_static=
14535
14536 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14537 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14538
14539   if test "$GCC" = yes; then
14540     lt_prog_compiler_wl='-Wl,'
14541     lt_prog_compiler_static='-static'
14542
14543     case $host_os in
14544       aix*)
14545       # All AIX code is PIC.
14546       if test "$host_cpu" = ia64; then
14547         # AIX 5 now supports IA64 processor
14548         lt_prog_compiler_static='-Bstatic'
14549       fi
14550       ;;
14551
14552     amigaos*)
14553       # FIXME: we need at least 68020 code to build shared libraries, but
14554       # adding the `-m68020' flag to GCC prevents building anything better,
14555       # like `-m68040'.
14556       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14557       ;;
14558
14559     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14560       # PIC is the default for these OSes.
14561       ;;
14562
14563     mingw* | pw32* | os2*)
14564       # This hack is so that the source file can tell whether it is being
14565       # built for inclusion in a dll (and should export symbols for example).
14566       lt_prog_compiler_pic='-DDLL_EXPORT'
14567       ;;
14568
14569     darwin* | rhapsody*)
14570       # PIC is the default on this platform
14571       # Common symbols not allowed in MH_DYLIB files
14572       lt_prog_compiler_pic='-fno-common'
14573       ;;
14574
14575     interix3*)
14576       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14577       # Instead, we relocate shared libraries at runtime.
14578       ;;
14579
14580     msdosdjgpp*)
14581       # Just because we use GCC doesn't mean we suddenly get shared libraries
14582       # on systems that don't support them.
14583       lt_prog_compiler_can_build_shared=no
14584       enable_shared=no
14585       ;;
14586
14587     sysv4*MP*)
14588       if test -d /usr/nec; then
14589         lt_prog_compiler_pic=-Kconform_pic
14590       fi
14591       ;;
14592
14593     hpux*)
14594       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14595       # not for PA HP-UX.
14596       case $host_cpu in
14597       hppa*64*|ia64*)
14598         # +Z the default
14599         ;;
14600       *)
14601         lt_prog_compiler_pic='-fPIC'
14602         ;;
14603       esac
14604       ;;
14605
14606     *)
14607       lt_prog_compiler_pic='-fPIC'
14608       ;;
14609     esac
14610   else
14611     # PORTME Check for flag to pass linker flags through the system compiler.
14612     case $host_os in
14613     aix*)
14614       lt_prog_compiler_wl='-Wl,'
14615       if test "$host_cpu" = ia64; then
14616         # AIX 5 now supports IA64 processor
14617         lt_prog_compiler_static='-Bstatic'
14618       else
14619         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14620       fi
14621       ;;
14622       darwin*)
14623         # PIC is the default on this platform
14624         # Common symbols not allowed in MH_DYLIB files
14625        case $cc_basename in
14626          xlc*)
14627          lt_prog_compiler_pic='-qnocommon'
14628          lt_prog_compiler_wl='-Wl,'
14629          ;;
14630        esac
14631        ;;
14632
14633     mingw* | pw32* | os2*)
14634       # This hack is so that the source file can tell whether it is being
14635       # built for inclusion in a dll (and should export symbols for example).
14636       lt_prog_compiler_pic='-DDLL_EXPORT'
14637       ;;
14638
14639     hpux9* | hpux10* | hpux11*)
14640       lt_prog_compiler_wl='-Wl,'
14641       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14642       # not for PA HP-UX.
14643       case $host_cpu in
14644       hppa*64*|ia64*)
14645         # +Z the default
14646         ;;
14647       *)
14648         lt_prog_compiler_pic='+Z'
14649         ;;
14650       esac
14651       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14652       lt_prog_compiler_static='${wl}-a ${wl}archive'
14653       ;;
14654
14655     irix5* | irix6* | nonstopux*)
14656       lt_prog_compiler_wl='-Wl,'
14657       # PIC (with -KPIC) is the default.
14658       lt_prog_compiler_static='-non_shared'
14659       ;;
14660
14661     newsos6)
14662       lt_prog_compiler_pic='-KPIC'
14663       lt_prog_compiler_static='-Bstatic'
14664       ;;
14665
14666     linux*)
14667       case $cc_basename in
14668       icc* | ecc*)
14669         lt_prog_compiler_wl='-Wl,'
14670         lt_prog_compiler_pic='-KPIC'
14671         lt_prog_compiler_static='-static'
14672         ;;
14673       pgcc* | pgf77* | pgf90* | pgf95*)
14674         # Portland Group compilers (*not* the Pentium gcc compiler,
14675         # which looks to be a dead project)
14676         lt_prog_compiler_wl='-Wl,'
14677         lt_prog_compiler_pic='-fpic'
14678         lt_prog_compiler_static='-Bstatic'
14679         ;;
14680       ccc*)
14681         lt_prog_compiler_wl='-Wl,'
14682         # All Alpha code is PIC.
14683         lt_prog_compiler_static='-non_shared'
14684         ;;
14685       esac
14686       ;;
14687
14688     osf3* | osf4* | osf5*)
14689       lt_prog_compiler_wl='-Wl,'
14690       # All OSF/1 code is PIC.
14691       lt_prog_compiler_static='-non_shared'
14692       ;;
14693
14694     solaris*)
14695       lt_prog_compiler_pic='-KPIC'
14696       lt_prog_compiler_static='-Bstatic'
14697       case $cc_basename in
14698       f77* | f90* | f95*)
14699         lt_prog_compiler_wl='-Qoption ld ';;
14700       *)
14701         lt_prog_compiler_wl='-Wl,';;
14702       esac
14703       ;;
14704
14705     sunos4*)
14706       lt_prog_compiler_wl='-Qoption ld '
14707       lt_prog_compiler_pic='-PIC'
14708       lt_prog_compiler_static='-Bstatic'
14709       ;;
14710
14711     sysv4 | sysv4.2uw2* | sysv4.3*)
14712       lt_prog_compiler_wl='-Wl,'
14713       lt_prog_compiler_pic='-KPIC'
14714       lt_prog_compiler_static='-Bstatic'
14715       ;;
14716
14717     sysv4*MP*)
14718       if test -d /usr/nec ;then
14719         lt_prog_compiler_pic='-Kconform_pic'
14720         lt_prog_compiler_static='-Bstatic'
14721       fi
14722       ;;
14723
14724     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14725       lt_prog_compiler_wl='-Wl,'
14726       lt_prog_compiler_pic='-KPIC'
14727       lt_prog_compiler_static='-Bstatic'
14728       ;;
14729
14730     unicos*)
14731       lt_prog_compiler_wl='-Wl,'
14732       lt_prog_compiler_can_build_shared=no
14733       ;;
14734
14735     uts4*)
14736       lt_prog_compiler_pic='-pic'
14737       lt_prog_compiler_static='-Bstatic'
14738       ;;
14739
14740     *)
14741       lt_prog_compiler_can_build_shared=no
14742       ;;
14743     esac
14744   fi
14745
14746 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14747 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14748
14749 #
14750 # Check to make sure the PIC flag actually works.
14751 #
14752 if test -n "$lt_prog_compiler_pic"; then
14753
14754 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14755 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14756 if test "${lt_prog_compiler_pic_works+set}" = set; then
14757   echo $ECHO_N "(cached) $ECHO_C" >&6
14758 else
14759   lt_prog_compiler_pic_works=no
14760   ac_outfile=conftest.$ac_objext
14761    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14762    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14763    # Insert the option either (1) after the last *FLAGS variable, or
14764    # (2) before a word containing "conftest.", or (3) at the end.
14765    # Note that $ac_compile itself does not contain backslashes and begins
14766    # with a dollar sign (not a hyphen), so the echo should work correctly.
14767    # The option is referenced via a variable to avoid confusing sed.
14768    lt_compile=`echo "$ac_compile" | $SED \
14769    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14770    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14771    -e 's:$: $lt_compiler_flag:'`
14772    (eval echo "\"\$as_me:14769: $lt_compile\"" >&5)
14773    (eval "$lt_compile" 2>conftest.err)
14774    ac_status=$?
14775    cat conftest.err >&5
14776    echo "$as_me:14773: \$? = $ac_status" >&5
14777    if (exit $ac_status) && test -s "$ac_outfile"; then
14778      # The compiler can only warn and ignore the option if not recognized
14779      # So say no if there are warnings other than the usual output.
14780      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14781      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14782      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14783        lt_prog_compiler_pic_works=yes
14784      fi
14785    fi
14786    $rm conftest*
14787
14788 fi
14789 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14790 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14791
14792 if test x"$lt_prog_compiler_pic_works" = xyes; then
14793     case $lt_prog_compiler_pic in
14794      "" | " "*) ;;
14795      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14796      esac
14797 else
14798     lt_prog_compiler_pic=
14799      lt_prog_compiler_can_build_shared=no
14800 fi
14801
14802 fi
14803 case $host_os in
14804   # For platforms which do not support PIC, -DPIC is meaningless:
14805   *djgpp*)
14806     lt_prog_compiler_pic=
14807     ;;
14808   *)
14809     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14810     ;;
14811 esac
14812
14813 #
14814 # Check to make sure the static flag actually works.
14815 #
14816 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14817 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14818 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14819 if test "${lt_prog_compiler_static_works+set}" = set; then
14820   echo $ECHO_N "(cached) $ECHO_C" >&6
14821 else
14822   lt_prog_compiler_static_works=no
14823    save_LDFLAGS="$LDFLAGS"
14824    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14825    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14826    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14827      # The linker can only warn and ignore the option if not recognized
14828      # So say no if there are warnings
14829      if test -s conftest.err; then
14830        # Append any errors to the config.log.
14831        cat conftest.err 1>&5
14832        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14833        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14834        if diff conftest.exp conftest.er2 >/dev/null; then
14835          lt_prog_compiler_static_works=yes
14836        fi
14837      else
14838        lt_prog_compiler_static_works=yes
14839      fi
14840    fi
14841    $rm conftest*
14842    LDFLAGS="$save_LDFLAGS"
14843
14844 fi
14845 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14846 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14847
14848 if test x"$lt_prog_compiler_static_works" = xyes; then
14849     :
14850 else
14851     lt_prog_compiler_static=
14852 fi
14853
14854
14855 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14856 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14857 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14858   echo $ECHO_N "(cached) $ECHO_C" >&6
14859 else
14860   lt_cv_prog_compiler_c_o=no
14861    $rm -r conftest 2>/dev/null
14862    mkdir conftest
14863    cd conftest
14864    mkdir out
14865    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14866
14867    lt_compiler_flag="-o out/conftest2.$ac_objext"
14868    # Insert the option either (1) after the last *FLAGS variable, or
14869    # (2) before a word containing "conftest.", or (3) at the end.
14870    # Note that $ac_compile itself does not contain backslashes and begins
14871    # with a dollar sign (not a hyphen), so the echo should work correctly.
14872    lt_compile=`echo "$ac_compile" | $SED \
14873    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14874    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14875    -e 's:$: $lt_compiler_flag:'`
14876    (eval echo "\"\$as_me:14873: $lt_compile\"" >&5)
14877    (eval "$lt_compile" 2>out/conftest.err)
14878    ac_status=$?
14879    cat out/conftest.err >&5
14880    echo "$as_me:14877: \$? = $ac_status" >&5
14881    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14882    then
14883      # The compiler can only warn and ignore the option if not recognized
14884      # So say no if there are warnings
14885      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14886      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14887      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14888        lt_cv_prog_compiler_c_o=yes
14889      fi
14890    fi
14891    chmod u+w . 2>&5
14892    $rm conftest*
14893    # SGI C++ compiler will create directory out/ii_files/ for
14894    # template instantiation
14895    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14896    $rm out/* && rmdir out
14897    cd ..
14898    rmdir conftest
14899    $rm conftest*
14900
14901 fi
14902 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14903 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14904
14905
14906 hard_links="nottested"
14907 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14908   # do not overwrite the value of need_locks provided by the user
14909   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14910 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14911   hard_links=yes
14912   $rm conftest*
14913   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14914   touch conftest.a
14915   ln conftest.a conftest.b 2>&5 || hard_links=no
14916   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14917   { echo "$as_me:$LINENO: result: $hard_links" >&5
14918 echo "${ECHO_T}$hard_links" >&6; }
14919   if test "$hard_links" = no; then
14920     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14921 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14922     need_locks=warn
14923   fi
14924 else
14925   need_locks=no
14926 fi
14927
14928 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14929 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14930
14931   runpath_var=
14932   allow_undefined_flag=
14933   enable_shared_with_static_runtimes=no
14934   archive_cmds=
14935   archive_expsym_cmds=
14936   old_archive_From_new_cmds=
14937   old_archive_from_expsyms_cmds=
14938   export_dynamic_flag_spec=
14939   whole_archive_flag_spec=
14940   thread_safe_flag_spec=
14941   hardcode_libdir_flag_spec=
14942   hardcode_libdir_flag_spec_ld=
14943   hardcode_libdir_separator=
14944   hardcode_direct=no
14945   hardcode_minus_L=no
14946   hardcode_shlibpath_var=unsupported
14947   link_all_deplibs=unknown
14948   hardcode_automatic=no
14949   module_cmds=
14950   module_expsym_cmds=
14951   always_export_symbols=no
14952   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14953   # include_expsyms should be a list of space-separated symbols to be *always*
14954   # included in the symbol list
14955   include_expsyms=
14956   # exclude_expsyms can be an extended regexp of symbols to exclude
14957   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14958   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14959   # as well as any symbol that contains `d'.
14960   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14961   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14962   # platforms (ab)use it in PIC code, but their linkers get confused if
14963   # the symbol is explicitly referenced.  Since portable code cannot
14964   # rely on this symbol name, it's probably fine to never include it in
14965   # preloaded symbol tables.
14966   extract_expsyms_cmds=
14967   # Just being paranoid about ensuring that cc_basename is set.
14968   for cc_temp in $compiler""; do
14969   case $cc_temp in
14970     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14971     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14972     \-*) ;;
14973     *) break;;
14974   esac
14975 done
14976 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14977
14978   case $host_os in
14979   cygwin* | mingw* | pw32*)
14980     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14981     # When not using gcc, we currently assume that we are using
14982     # Microsoft Visual C++.
14983     if test "$GCC" != yes; then
14984       with_gnu_ld=no
14985     fi
14986     ;;
14987   interix*)
14988     # we just hope/assume this is gcc and not c89 (= MSVC++)
14989     with_gnu_ld=yes
14990     ;;
14991   openbsd*)
14992     with_gnu_ld=no
14993     ;;
14994   esac
14995
14996   ld_shlibs=yes
14997   if test "$with_gnu_ld" = yes; then
14998     # If archive_cmds runs LD, not CC, wlarc should be empty
14999     wlarc='${wl}'
15000
15001     # Set some defaults for GNU ld with shared library support. These
15002     # are reset later if shared libraries are not supported. Putting them
15003     # here allows them to be overridden if necessary.
15004     runpath_var=LD_RUN_PATH
15005     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15006     export_dynamic_flag_spec='${wl}--export-dynamic'
15007     # ancient GNU ld didn't support --whole-archive et. al.
15008     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15009         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15010       else
15011         whole_archive_flag_spec=
15012     fi
15013     supports_anon_versioning=no
15014     case `$LD -v 2>/dev/null` in
15015       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15016       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15017       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15018       *\ 2.11.*) ;; # other 2.11 versions
15019       *) supports_anon_versioning=yes ;;
15020     esac
15021
15022     # See if GNU ld supports shared libraries.
15023     case $host_os in
15024     aix3* | aix4* | aix5*)
15025       # On AIX/PPC, the GNU linker is very broken
15026       if test "$host_cpu" != ia64; then
15027         ld_shlibs=no
15028         cat <<EOF 1>&2
15029
15030 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15031 *** to be unable to reliably create shared libraries on AIX.
15032 *** Therefore, libtool is disabling shared libraries support.  If you
15033 *** really care for shared libraries, you may want to modify your PATH
15034 *** so that a non-GNU linker is found, and then restart.
15035
15036 EOF
15037       fi
15038       ;;
15039
15040     amigaos*)
15041       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)'
15042       hardcode_libdir_flag_spec='-L$libdir'
15043       hardcode_minus_L=yes
15044
15045       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15046       # that the semantics of dynamic libraries on AmigaOS, at least up
15047       # to version 4, is to share data among multiple programs linked
15048       # with the same dynamic library.  Since this doesn't match the
15049       # behavior of shared libraries on other platforms, we can't use
15050       # them.
15051       ld_shlibs=no
15052       ;;
15053
15054     beos*)
15055       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15056         allow_undefined_flag=unsupported
15057         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15058         # support --undefined.  This deserves some investigation.  FIXME
15059         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15060       else
15061         ld_shlibs=no
15062       fi
15063       ;;
15064
15065     cygwin* | mingw* | pw32*)
15066       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15067       # as there is no search path for DLLs.
15068       hardcode_libdir_flag_spec='-L$libdir'
15069       allow_undefined_flag=unsupported
15070       always_export_symbols=no
15071       enable_shared_with_static_runtimes=yes
15072       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15073
15074       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15075         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15076         # If the export-symbols file already is a .def file (1st line
15077         # is EXPORTS), use it as is; otherwise, prepend...
15078         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15079           cp $export_symbols $output_objdir/$soname.def;
15080         else
15081           echo EXPORTS > $output_objdir/$soname.def;
15082           cat $export_symbols >> $output_objdir/$soname.def;
15083         fi~
15084         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15085       else
15086         ld_shlibs=no
15087       fi
15088       ;;
15089
15090     interix3*)
15091       hardcode_direct=no
15092       hardcode_shlibpath_var=no
15093       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15094       export_dynamic_flag_spec='${wl}-E'
15095       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15096       # Instead, shared libraries are loaded at an image base (0x10000000 by
15097       # default) and relocated if they conflict, which is a slow very memory
15098       # consuming and fragmenting process.  To avoid this, we pick a random,
15099       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15100       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15101       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15102       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'
15103       ;;
15104
15105     linux*)
15106       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15107         tmp_addflag=
15108         case $cc_basename,$host_cpu in
15109         pgcc*)                          # Portland Group C compiler
15110           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'
15111           tmp_addflag=' $pic_flag'
15112           ;;
15113         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15114           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'
15115           tmp_addflag=' $pic_flag -Mnomain' ;;
15116         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15117           tmp_addflag=' -i_dynamic' ;;
15118         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15119           tmp_addflag=' -i_dynamic -nofor_main' ;;
15120         ifc* | ifort*)                  # Intel Fortran compiler
15121           tmp_addflag=' -nofor_main' ;;
15122         esac
15123         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15124
15125         if test $supports_anon_versioning = yes; then
15126           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15127   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15128   $echo "local: *; };" >> $output_objdir/$libname.ver~
15129           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15130         fi
15131       else
15132         ld_shlibs=no
15133       fi
15134       ;;
15135
15136     netbsd*)
15137       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15138         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15139         wlarc=
15140       else
15141         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15142         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15143       fi
15144       ;;
15145
15146     solaris*)
15147       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15148         ld_shlibs=no
15149         cat <<EOF 1>&2
15150
15151 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15152 *** create shared libraries on Solaris systems.  Therefore, libtool
15153 *** is disabling shared libraries support.  We urge you to upgrade GNU
15154 *** binutils to release 2.9.1 or newer.  Another option is to modify
15155 *** your PATH or compiler configuration so that the native linker is
15156 *** used, and then restart.
15157
15158 EOF
15159       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15160         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15161         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15162       else
15163         ld_shlibs=no
15164       fi
15165       ;;
15166
15167     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15168       case `$LD -v 2>&1` in
15169         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15170         ld_shlibs=no
15171         cat <<_LT_EOF 1>&2
15172
15173 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15174 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15175 *** is disabling shared libraries support.  We urge you to upgrade GNU
15176 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15177 *** your PATH or compiler configuration so that the native linker is
15178 *** used, and then restart.
15179
15180 _LT_EOF
15181         ;;
15182         *)
15183           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15184             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15185             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15186             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15187           else
15188             ld_shlibs=no
15189           fi
15190         ;;
15191       esac
15192       ;;
15193
15194     sunos4*)
15195       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15196       wlarc=
15197       hardcode_direct=yes
15198       hardcode_shlibpath_var=no
15199       ;;
15200
15201     *)
15202       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15203         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15204         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15205       else
15206         ld_shlibs=no
15207       fi
15208       ;;
15209     esac
15210
15211     if test "$ld_shlibs" = no; then
15212       runpath_var=
15213       hardcode_libdir_flag_spec=
15214       export_dynamic_flag_spec=
15215       whole_archive_flag_spec=
15216     fi
15217   else
15218     # PORTME fill in a description of your system's linker (not GNU ld)
15219     case $host_os in
15220     aix3*)
15221       allow_undefined_flag=unsupported
15222       always_export_symbols=yes
15223       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'
15224       # Note: this linker hardcodes the directories in LIBPATH if there
15225       # are no directories specified by -L.
15226       hardcode_minus_L=yes
15227       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15228         # Neither direct hardcoding nor static linking is supported with a
15229         # broken collect2.
15230         hardcode_direct=unsupported
15231       fi
15232       ;;
15233
15234     aix4* | aix5*)
15235       if test "$host_cpu" = ia64; then
15236         # On IA64, the linker does run time linking by default, so we don't
15237         # have to do anything special.
15238         aix_use_runtimelinking=no
15239         exp_sym_flag='-Bexport'
15240         no_entry_flag=""
15241       else
15242         # If we're using GNU nm, then we don't want the "-C" option.
15243         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15244         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15245           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'
15246         else
15247           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'
15248         fi
15249         aix_use_runtimelinking=no
15250
15251         # Test if we are trying to use run time linking or normal
15252         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15253         # need to do runtime linking.
15254         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15255           for ld_flag in $LDFLAGS; do
15256           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15257             aix_use_runtimelinking=yes
15258             break
15259           fi
15260           done
15261           ;;
15262         esac
15263
15264         exp_sym_flag='-bexport'
15265         no_entry_flag='-bnoentry'
15266       fi
15267
15268       # When large executables or shared objects are built, AIX ld can
15269       # have problems creating the table of contents.  If linking a library
15270       # or program results in "error TOC overflow" add -mminimal-toc to
15271       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15272       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15273
15274       archive_cmds=''
15275       hardcode_direct=yes
15276       hardcode_libdir_separator=':'
15277       link_all_deplibs=yes
15278
15279       if test "$GCC" = yes; then
15280         case $host_os in aix4.[012]|aix4.[012].*)
15281         # We only want to do this on AIX 4.2 and lower, the check
15282         # below for broken collect2 doesn't work under 4.3+
15283           collect2name=`${CC} -print-prog-name=collect2`
15284           if test -f "$collect2name" && \
15285            strings "$collect2name" | grep resolve_lib_name >/dev/null
15286           then
15287           # We have reworked collect2
15288           hardcode_direct=yes
15289           else
15290           # We have old collect2
15291           hardcode_direct=unsupported
15292           # It fails to find uninstalled libraries when the uninstalled
15293           # path is not listed in the libpath.  Setting hardcode_minus_L
15294           # to unsupported forces relinking
15295           hardcode_minus_L=yes
15296           hardcode_libdir_flag_spec='-L$libdir'
15297           hardcode_libdir_separator=
15298           fi
15299           ;;
15300         esac
15301         shared_flag='-shared'
15302         if test "$aix_use_runtimelinking" = yes; then
15303           shared_flag="$shared_flag "'${wl}-G'
15304         fi
15305       else
15306         # not using gcc
15307         if test "$host_cpu" = ia64; then
15308         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15309         # chokes on -Wl,-G. The following line is correct:
15310           shared_flag='-G'
15311         else
15312           if test "$aix_use_runtimelinking" = yes; then
15313             shared_flag='${wl}-G'
15314           else
15315             shared_flag='${wl}-bM:SRE'
15316           fi
15317         fi
15318       fi
15319
15320       # It seems that -bexpall does not export symbols beginning with
15321       # underscore (_), so it is better to generate a list of symbols to export.
15322       always_export_symbols=yes
15323       if test "$aix_use_runtimelinking" = yes; then
15324         # Warning - without using the other runtime loading flags (-brtl),
15325         # -berok will link without error, but may produce a broken library.
15326         allow_undefined_flag='-berok'
15327        # Determine the default libpath from the value encoded in an empty executable.
15328        cat >conftest.$ac_ext <<_ACEOF
15329 /* confdefs.h.  */
15330 _ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h.  */
15334
15335 int
15336 main ()
15337 {
15338
15339   ;
15340   return 0;
15341 }
15342 _ACEOF
15343 rm -f conftest.$ac_objext conftest$ac_exeext
15344 if { (ac_try="$ac_link"
15345 case "(($ac_try" in
15346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347   *) ac_try_echo=$ac_try;;
15348 esac
15349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350   (eval "$ac_link") 2>conftest.er1
15351   ac_status=$?
15352   grep -v '^ *+' conftest.er1 >conftest.err
15353   rm -f conftest.er1
15354   cat conftest.err >&5
15355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356   (exit $ac_status); } &&
15357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15358   { (case "(($ac_try" in
15359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360   *) ac_try_echo=$ac_try;;
15361 esac
15362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15363   (eval "$ac_try") 2>&5
15364   ac_status=$?
15365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366   (exit $ac_status); }; } &&
15367          { ac_try='test -s conftest$ac_exeext'
15368   { (case "(($ac_try" in
15369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370   *) ac_try_echo=$ac_try;;
15371 esac
15372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15373   (eval "$ac_try") 2>&5
15374   ac_status=$?
15375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376   (exit $ac_status); }; }; then
15377
15378 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15379 }'`
15380 # Check for a 64-bit object if we didn't find anything.
15381 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; }
15382 }'`; fi
15383 else
15384   echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15386
15387
15388 fi
15389
15390 rm -f core conftest.err conftest.$ac_objext \
15391       conftest$ac_exeext conftest.$ac_ext
15392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15393
15394        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15395         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"
15396        else
15397         if test "$host_cpu" = ia64; then
15398           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15399           allow_undefined_flag="-z nodefs"
15400           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"
15401         else
15402          # Determine the default libpath from the value encoded in an empty executable.
15403          cat >conftest.$ac_ext <<_ACEOF
15404 /* confdefs.h.  */
15405 _ACEOF
15406 cat confdefs.h >>conftest.$ac_ext
15407 cat >>conftest.$ac_ext <<_ACEOF
15408 /* end confdefs.h.  */
15409
15410 int
15411 main ()
15412 {
15413
15414   ;
15415   return 0;
15416 }
15417 _ACEOF
15418 rm -f conftest.$ac_objext conftest$ac_exeext
15419 if { (ac_try="$ac_link"
15420 case "(($ac_try" in
15421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15422   *) ac_try_echo=$ac_try;;
15423 esac
15424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15425   (eval "$ac_link") 2>conftest.er1
15426   ac_status=$?
15427   grep -v '^ *+' conftest.er1 >conftest.err
15428   rm -f conftest.er1
15429   cat conftest.err >&5
15430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431   (exit $ac_status); } &&
15432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15433   { (case "(($ac_try" in
15434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435   *) ac_try_echo=$ac_try;;
15436 esac
15437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15438   (eval "$ac_try") 2>&5
15439   ac_status=$?
15440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441   (exit $ac_status); }; } &&
15442          { ac_try='test -s conftest$ac_exeext'
15443   { (case "(($ac_try" in
15444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445   *) ac_try_echo=$ac_try;;
15446 esac
15447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15448   (eval "$ac_try") 2>&5
15449   ac_status=$?
15450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451   (exit $ac_status); }; }; then
15452
15453 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15454 }'`
15455 # Check for a 64-bit object if we didn't find anything.
15456 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; }
15457 }'`; fi
15458 else
15459   echo "$as_me: failed program was:" >&5
15460 sed 's/^/| /' conftest.$ac_ext >&5
15461
15462
15463 fi
15464
15465 rm -f core conftest.err conftest.$ac_objext \
15466       conftest$ac_exeext conftest.$ac_ext
15467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15468
15469          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15470           # Warning - without using the other run time loading flags,
15471           # -berok will link without error, but may produce a broken library.
15472           no_undefined_flag=' ${wl}-bernotok'
15473           allow_undefined_flag=' ${wl}-berok'
15474           # Exported symbols can be pulled into shared objects from archives
15475           whole_archive_flag_spec='$convenience'
15476           archive_cmds_need_lc=yes
15477           # This is similar to how AIX traditionally builds its shared libraries.
15478           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'
15479         fi
15480       fi
15481       ;;
15482
15483     amigaos*)
15484       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)'
15485       hardcode_libdir_flag_spec='-L$libdir'
15486       hardcode_minus_L=yes
15487       # see comment about different semantics on the GNU ld section
15488       ld_shlibs=no
15489       ;;
15490
15491     bsdi[45]*)
15492       export_dynamic_flag_spec=-rdynamic
15493       ;;
15494
15495     cygwin* | mingw* | pw32*)
15496       # When not using gcc, we currently assume that we are using
15497       # Microsoft Visual C++.
15498       # hardcode_libdir_flag_spec is actually meaningless, as there is
15499       # no search path for DLLs.
15500       hardcode_libdir_flag_spec=' '
15501       allow_undefined_flag=unsupported
15502       # Tell ltmain to make .lib files, not .a files.
15503       libext=lib
15504       # Tell ltmain to make .dll files, not .so files.
15505       shrext_cmds=".dll"
15506       # FIXME: Setting linknames here is a bad hack.
15507       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15508       # The linker will automatically build a .lib file if we build a DLL.
15509       old_archive_From_new_cmds='true'
15510       # FIXME: Should let the user specify the lib program.
15511       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15512       fix_srcfile_path='`cygpath -w "$srcfile"`'
15513       enable_shared_with_static_runtimes=yes
15514       ;;
15515
15516     darwin* | rhapsody*)
15517       case $host_os in
15518         rhapsody* | darwin1.[012])
15519          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15520          ;;
15521        *) # Darwin 1.3 on
15522          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15523            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15524          else
15525            case ${MACOSX_DEPLOYMENT_TARGET} in
15526              10.[012])
15527                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15528                ;;
15529              10.*)
15530                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15531                ;;
15532            esac
15533          fi
15534          ;;
15535       esac
15536       archive_cmds_need_lc=no
15537       hardcode_direct=no
15538       hardcode_automatic=yes
15539       hardcode_shlibpath_var=unsupported
15540       whole_archive_flag_spec=''
15541       link_all_deplibs=yes
15542     if test "$GCC" = yes ; then
15543         output_verbose_link_cmd='echo'
15544         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15545       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15546       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15547       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}'
15548       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}'
15549     else
15550       case $cc_basename in
15551         xlc*)
15552          output_verbose_link_cmd='echo'
15553          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15554          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15555           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15556          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}'
15557           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}'
15558           ;;
15559        *)
15560          ld_shlibs=no
15561           ;;
15562       esac
15563     fi
15564       ;;
15565
15566     dgux*)
15567       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15568       hardcode_libdir_flag_spec='-L$libdir'
15569       hardcode_shlibpath_var=no
15570       ;;
15571
15572     freebsd1*)
15573       ld_shlibs=no
15574       ;;
15575
15576     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15577     # support.  Future versions do this automatically, but an explicit c++rt0.o
15578     # does not break anything, and helps significantly (at the cost of a little
15579     # extra space).
15580     freebsd2.2*)
15581       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15582       hardcode_libdir_flag_spec='-R$libdir'
15583       hardcode_direct=yes
15584       hardcode_shlibpath_var=no
15585       ;;
15586
15587     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15588     freebsd2*)
15589       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15590       hardcode_direct=yes
15591       hardcode_minus_L=yes
15592       hardcode_shlibpath_var=no
15593       ;;
15594
15595     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15596     freebsd* | kfreebsd*-gnu | dragonfly*)
15597       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15598       hardcode_libdir_flag_spec='-R$libdir'
15599       hardcode_direct=yes
15600       hardcode_shlibpath_var=no
15601       ;;
15602
15603     hpux9*)
15604       if test "$GCC" = yes; then
15605         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'
15606       else
15607         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'
15608       fi
15609       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15610       hardcode_libdir_separator=:
15611       hardcode_direct=yes
15612
15613       # hardcode_minus_L: Not really in the search PATH,
15614       # but as the default location of the library.
15615       hardcode_minus_L=yes
15616       export_dynamic_flag_spec='${wl}-E'
15617       ;;
15618
15619     hpux10*)
15620       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15621         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15622       else
15623         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15624       fi
15625       if test "$with_gnu_ld" = no; then
15626         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15627         hardcode_libdir_separator=:
15628
15629         hardcode_direct=yes
15630         export_dynamic_flag_spec='${wl}-E'
15631
15632         # hardcode_minus_L: Not really in the search PATH,
15633         # but as the default location of the library.
15634         hardcode_minus_L=yes
15635       fi
15636       ;;
15637
15638     hpux11*)
15639       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15640         case $host_cpu in
15641         hppa*64*)
15642           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15643           ;;
15644         ia64*)
15645           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15646           ;;
15647         *)
15648           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15649           ;;
15650         esac
15651       else
15652         case $host_cpu in
15653         hppa*64*)
15654           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15655           ;;
15656         ia64*)
15657           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15658           ;;
15659         *)
15660           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15661           ;;
15662         esac
15663       fi
15664       if test "$with_gnu_ld" = no; then
15665         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15666         hardcode_libdir_separator=:
15667
15668         case $host_cpu in
15669         hppa*64*|ia64*)
15670           hardcode_libdir_flag_spec_ld='+b $libdir'
15671           hardcode_direct=no
15672           hardcode_shlibpath_var=no
15673           ;;
15674         *)
15675           hardcode_direct=yes
15676           export_dynamic_flag_spec='${wl}-E'
15677
15678           # hardcode_minus_L: Not really in the search PATH,
15679           # but as the default location of the library.
15680           hardcode_minus_L=yes
15681           ;;
15682         esac
15683       fi
15684       ;;
15685
15686     irix5* | irix6* | nonstopux*)
15687       if test "$GCC" = yes; then
15688         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'
15689       else
15690         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'
15691         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15692       fi
15693       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15694       hardcode_libdir_separator=:
15695       link_all_deplibs=yes
15696       ;;
15697
15698     netbsd*)
15699       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15700         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15701       else
15702         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15703       fi
15704       hardcode_libdir_flag_spec='-R$libdir'
15705       hardcode_direct=yes
15706       hardcode_shlibpath_var=no
15707       ;;
15708
15709     newsos6)
15710       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15711       hardcode_direct=yes
15712       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15713       hardcode_libdir_separator=:
15714       hardcode_shlibpath_var=no
15715       ;;
15716
15717     openbsd*)
15718       hardcode_direct=yes
15719       hardcode_shlibpath_var=no
15720       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15721         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15722         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15723         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15724         export_dynamic_flag_spec='${wl}-E'
15725       else
15726        case $host_os in
15727          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15728            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15729            hardcode_libdir_flag_spec='-R$libdir'
15730            ;;
15731          *)
15732            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15733            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15734            ;;
15735        esac
15736       fi
15737       ;;
15738
15739     os2*)
15740       hardcode_libdir_flag_spec='-L$libdir'
15741       hardcode_minus_L=yes
15742       allow_undefined_flag=unsupported
15743       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'
15744       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15745       ;;
15746
15747     osf3*)
15748       if test "$GCC" = yes; then
15749         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15750         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'
15751       else
15752         allow_undefined_flag=' -expect_unresolved \*'
15753         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'
15754       fi
15755       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15756       hardcode_libdir_separator=:
15757       ;;
15758
15759     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15760       if test "$GCC" = yes; then
15761         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15762         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'
15763         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15764       else
15765         allow_undefined_flag=' -expect_unresolved \*'
15766         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'
15767         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15768         $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'
15769
15770         # Both c and cxx compiler support -rpath directly
15771         hardcode_libdir_flag_spec='-rpath $libdir'
15772       fi
15773       hardcode_libdir_separator=:
15774       ;;
15775
15776     solaris*)
15777       no_undefined_flag=' -z text'
15778       if test "$GCC" = yes; then
15779         wlarc='${wl}'
15780         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15781         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15782           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15783       else
15784         wlarc=''
15785         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15786         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15787         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15788       fi
15789       hardcode_libdir_flag_spec='-R$libdir'
15790       hardcode_shlibpath_var=no
15791       case $host_os in
15792       solaris2.[0-5] | solaris2.[0-5].*) ;;
15793       *)
15794         # The compiler driver will combine linker options so we
15795         # cannot just pass the convience library names through
15796         # without $wl, iff we do not link with $LD.
15797         # Luckily, gcc supports the same syntax we need for Sun Studio.
15798         # Supported since Solaris 2.6 (maybe 2.5.1?)
15799         case $wlarc in
15800         '')
15801           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15802         *)
15803           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' ;;
15804         esac ;;
15805       esac
15806       link_all_deplibs=yes
15807       ;;
15808
15809     sunos4*)
15810       if test "x$host_vendor" = xsequent; then
15811         # Use $CC to link under sequent, because it throws in some extra .o
15812         # files that make .init and .fini sections work.
15813         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15814       else
15815         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15816       fi
15817       hardcode_libdir_flag_spec='-L$libdir'
15818       hardcode_direct=yes
15819       hardcode_minus_L=yes
15820       hardcode_shlibpath_var=no
15821       ;;
15822
15823     sysv4)
15824       case $host_vendor in
15825         sni)
15826           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15827           hardcode_direct=yes # is this really true???
15828         ;;
15829         siemens)
15830           ## LD is ld it makes a PLAMLIB
15831           ## CC just makes a GrossModule.
15832           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15833           reload_cmds='$CC -r -o $output$reload_objs'
15834           hardcode_direct=no
15835         ;;
15836         motorola)
15837           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15838           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15839         ;;
15840       esac
15841       runpath_var='LD_RUN_PATH'
15842       hardcode_shlibpath_var=no
15843       ;;
15844
15845     sysv4.3*)
15846       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15847       hardcode_shlibpath_var=no
15848       export_dynamic_flag_spec='-Bexport'
15849       ;;
15850
15851     sysv4*MP*)
15852       if test -d /usr/nec; then
15853         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15854         hardcode_shlibpath_var=no
15855         runpath_var=LD_RUN_PATH
15856         hardcode_runpath_var=yes
15857         ld_shlibs=yes
15858       fi
15859       ;;
15860
15861     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15862       no_undefined_flag='${wl}-z,text'
15863       archive_cmds_need_lc=no
15864       hardcode_shlibpath_var=no
15865       runpath_var='LD_RUN_PATH'
15866
15867       if test "$GCC" = yes; then
15868         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15869         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15870       else
15871         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15872         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15873       fi
15874       ;;
15875
15876     sysv5* | sco3.2v5* | sco5v6*)
15877       # Note: We can NOT use -z defs as we might desire, because we do not
15878       # link with -lc, and that would cause any symbols used from libc to
15879       # always be unresolved, which means just about no library would
15880       # ever link correctly.  If we're not using GNU ld we use -z text
15881       # though, which does catch some bad symbols but isn't as heavy-handed
15882       # as -z defs.
15883       no_undefined_flag='${wl}-z,text'
15884       allow_undefined_flag='${wl}-z,nodefs'
15885       archive_cmds_need_lc=no
15886       hardcode_shlibpath_var=no
15887       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15888       hardcode_libdir_separator=':'
15889       link_all_deplibs=yes
15890       export_dynamic_flag_spec='${wl}-Bexport'
15891       runpath_var='LD_RUN_PATH'
15892
15893       if test "$GCC" = yes; then
15894         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15895         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15896       else
15897         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15898         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15899       fi
15900       ;;
15901
15902     uts4*)
15903       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15904       hardcode_libdir_flag_spec='-L$libdir'
15905       hardcode_shlibpath_var=no
15906       ;;
15907
15908     *)
15909       ld_shlibs=no
15910       ;;
15911     esac
15912   fi
15913
15914 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15915 echo "${ECHO_T}$ld_shlibs" >&6; }
15916 test "$ld_shlibs" = no && can_build_shared=no
15917
15918 #
15919 # Do we need to explicitly link libc?
15920 #
15921 case "x$archive_cmds_need_lc" in
15922 x|xyes)
15923   # Assume -lc should be added
15924   archive_cmds_need_lc=yes
15925
15926   if test "$enable_shared" = yes && test "$GCC" = yes; then
15927     case $archive_cmds in
15928     *'~'*)
15929       # FIXME: we may have to deal with multi-command sequences.
15930       ;;
15931     '$CC '*)
15932       # Test whether the compiler implicitly links with -lc since on some
15933       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15934       # to ld, don't add -lc before -lgcc.
15935       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15936 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15937       $rm conftest*
15938       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15939
15940       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15941   (eval $ac_compile) 2>&5
15942   ac_status=$?
15943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944   (exit $ac_status); } 2>conftest.err; then
15945         soname=conftest
15946         lib=conftest
15947         libobjs=conftest.$ac_objext
15948         deplibs=
15949         wl=$lt_prog_compiler_wl
15950         pic_flag=$lt_prog_compiler_pic
15951         compiler_flags=-v
15952         linker_flags=-v
15953         verstring=
15954         output_objdir=.
15955         libname=conftest
15956         lt_save_allow_undefined_flag=$allow_undefined_flag
15957         allow_undefined_flag=
15958         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15959   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15960   ac_status=$?
15961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962   (exit $ac_status); }
15963         then
15964           archive_cmds_need_lc=no
15965         else
15966           archive_cmds_need_lc=yes
15967         fi
15968         allow_undefined_flag=$lt_save_allow_undefined_flag
15969       else
15970         cat conftest.err 1>&5
15971       fi
15972       $rm conftest*
15973       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15974 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15975       ;;
15976     esac
15977   fi
15978   ;;
15979 esac
15980
15981 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15982 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15983 library_names_spec=
15984 libname_spec='lib$name'
15985 soname_spec=
15986 shrext_cmds=".so"
15987 postinstall_cmds=
15988 postuninstall_cmds=
15989 finish_cmds=
15990 finish_eval=
15991 shlibpath_var=
15992 shlibpath_overrides_runpath=unknown
15993 version_type=none
15994 dynamic_linker="$host_os ld.so"
15995 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15996 if test "$GCC" = yes; then
15997   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15998   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15999     # if the path contains ";" then we assume it to be the separator
16000     # otherwise default to the standard path separator (i.e. ":") - it is
16001     # assumed that no part of a normal pathname contains ";" but that should
16002     # okay in the real world where ";" in dirpaths is itself problematic.
16003     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16004   else
16005     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16006   fi
16007 else
16008   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16009 fi
16010 need_lib_prefix=unknown
16011 hardcode_into_libs=no
16012
16013 # when you set need_version to no, make sure it does not cause -set_version
16014 # flags to be left without arguments
16015 need_version=unknown
16016
16017 case $host_os in
16018 aix3*)
16019   version_type=linux
16020   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16021   shlibpath_var=LIBPATH
16022
16023   # AIX 3 has no versioning support, so we append a major version to the name.
16024   soname_spec='${libname}${release}${shared_ext}$major'
16025   ;;
16026
16027 aix4* | aix5*)
16028   version_type=linux
16029   need_lib_prefix=no
16030   need_version=no
16031   hardcode_into_libs=yes
16032   if test "$host_cpu" = ia64; then
16033     # AIX 5 supports IA64
16034     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16035     shlibpath_var=LD_LIBRARY_PATH
16036   else
16037     # With GCC up to 2.95.x, collect2 would create an import file
16038     # for dependence libraries.  The import file would start with
16039     # the line `#! .'.  This would cause the generated library to
16040     # depend on `.', always an invalid library.  This was fixed in
16041     # development snapshots of GCC prior to 3.0.
16042     case $host_os in
16043       aix4 | aix4.[01] | aix4.[01].*)
16044       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16045            echo ' yes '
16046            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16047         :
16048       else
16049         can_build_shared=no
16050       fi
16051       ;;
16052     esac
16053     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16054     # soname into executable. Probably we can add versioning support to
16055     # collect2, so additional links can be useful in future.
16056     if test "$aix_use_runtimelinking" = yes; then
16057       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16058       # instead of lib<name>.a to let people know that these are not
16059       # typical AIX shared libraries.
16060       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061     else
16062       # We preserve .a as extension for shared libraries through AIX4.2
16063       # and later when we are not doing run time linking.
16064       library_names_spec='${libname}${release}.a $libname.a'
16065       soname_spec='${libname}${release}${shared_ext}$major'
16066     fi
16067     shlibpath_var=LIBPATH
16068   fi
16069   ;;
16070
16071 amigaos*)
16072   library_names_spec='$libname.ixlibrary $libname.a'
16073   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16074   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'
16075   ;;
16076
16077 beos*)
16078   library_names_spec='${libname}${shared_ext}'
16079   dynamic_linker="$host_os ld.so"
16080   shlibpath_var=LIBRARY_PATH
16081   ;;
16082
16083 bsdi[45]*)
16084   version_type=linux
16085   need_version=no
16086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087   soname_spec='${libname}${release}${shared_ext}$major'
16088   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16089   shlibpath_var=LD_LIBRARY_PATH
16090   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16091   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16092   # the default ld.so.conf also contains /usr/contrib/lib and
16093   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16094   # libtool to hard-code these into programs
16095   ;;
16096
16097 cygwin* | mingw* | pw32*)
16098   version_type=windows
16099   shrext_cmds=".dll"
16100   need_version=no
16101   need_lib_prefix=no
16102
16103   case $GCC,$host_os in
16104   yes,cygwin* | yes,mingw* | yes,pw32*)
16105     library_names_spec='$libname.dll.a'
16106     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16107     postinstall_cmds='base_file=`basename \${file}`~
16108       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16109       dldir=$destdir/`dirname \$dlpath`~
16110       test -d \$dldir || mkdir -p \$dldir~
16111       $install_prog $dir/$dlname \$dldir/$dlname~
16112       chmod a+x \$dldir/$dlname'
16113     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16114       dlpath=$dir/\$dldll~
16115        $rm \$dlpath'
16116     shlibpath_overrides_runpath=yes
16117
16118     case $host_os in
16119     cygwin*)
16120       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16121       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16122       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16123       ;;
16124     mingw*)
16125       # MinGW DLLs use traditional 'lib' prefix
16126       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16127       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16128       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16129         # It is most probably a Windows format PATH printed by
16130         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16131         # path with ; separators, and with drive letters. We can handle the
16132         # drive letters (cygwin fileutils understands them), so leave them,
16133         # especially as we might pass files found there to a mingw objdump,
16134         # which wouldn't understand a cygwinified path. Ahh.
16135         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16136       else
16137         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16138       fi
16139       ;;
16140     pw32*)
16141       # pw32 DLLs use 'pw' prefix rather than 'lib'
16142       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16143       ;;
16144     esac
16145     ;;
16146
16147   *)
16148     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16149     ;;
16150   esac
16151   dynamic_linker='Win32 ld.exe'
16152   # FIXME: first we should search . and the directory the executable is in
16153   shlibpath_var=PATH
16154   ;;
16155
16156 darwin* | rhapsody*)
16157   dynamic_linker="$host_os dyld"
16158   version_type=darwin
16159   need_lib_prefix=no
16160   need_version=no
16161   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16162   soname_spec='${libname}${release}${major}$shared_ext'
16163   shlibpath_overrides_runpath=yes
16164   shlibpath_var=DYLD_LIBRARY_PATH
16165   shrext_cmds='.dylib'
16166   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16167   if test "$GCC" = yes; then
16168     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"`
16169   else
16170     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16171   fi
16172   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16173   ;;
16174
16175 dgux*)
16176   version_type=linux
16177   need_lib_prefix=no
16178   need_version=no
16179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16180   soname_spec='${libname}${release}${shared_ext}$major'
16181   shlibpath_var=LD_LIBRARY_PATH
16182   ;;
16183
16184 freebsd1*)
16185   dynamic_linker=no
16186   ;;
16187
16188 kfreebsd*-gnu)
16189   version_type=linux
16190   need_lib_prefix=no
16191   need_version=no
16192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16193   soname_spec='${libname}${release}${shared_ext}$major'
16194   shlibpath_var=LD_LIBRARY_PATH
16195   shlibpath_overrides_runpath=no
16196   hardcode_into_libs=yes
16197   dynamic_linker='GNU ld.so'
16198   ;;
16199
16200 freebsd* | dragonfly*)
16201   # DragonFly does not have aout.  When/if they implement a new
16202   # versioning mechanism, adjust this.
16203   if test -x /usr/bin/objformat; then
16204     objformat=`/usr/bin/objformat`
16205   else
16206     case $host_os in
16207     freebsd[123]*) objformat=aout ;;
16208     *) objformat=elf ;;
16209     esac
16210   fi
16211   version_type=freebsd-$objformat
16212   case $version_type in
16213     freebsd-elf*)
16214       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16215       need_version=no
16216       need_lib_prefix=no
16217       ;;
16218     freebsd-*)
16219       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16220       need_version=yes
16221       ;;
16222   esac
16223   shlibpath_var=LD_LIBRARY_PATH
16224   case $host_os in
16225   freebsd2*)
16226     shlibpath_overrides_runpath=yes
16227     ;;
16228   freebsd3.[01]* | freebsdelf3.[01]*)
16229     shlibpath_overrides_runpath=yes
16230     hardcode_into_libs=yes
16231     ;;
16232   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16233   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16234     shlibpath_overrides_runpath=no
16235     hardcode_into_libs=yes
16236     ;;
16237   freebsd*) # from 4.6 on
16238     shlibpath_overrides_runpath=yes
16239     hardcode_into_libs=yes
16240     ;;
16241   esac
16242   ;;
16243
16244 gnu*)
16245   version_type=linux
16246   need_lib_prefix=no
16247   need_version=no
16248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16249   soname_spec='${libname}${release}${shared_ext}$major'
16250   shlibpath_var=LD_LIBRARY_PATH
16251   hardcode_into_libs=yes
16252   ;;
16253
16254 hpux9* | hpux10* | hpux11*)
16255   # Give a soname corresponding to the major version so that dld.sl refuses to
16256   # link against other versions.
16257   version_type=sunos
16258   need_lib_prefix=no
16259   need_version=no
16260   case $host_cpu in
16261   ia64*)
16262     shrext_cmds='.so'
16263     hardcode_into_libs=yes
16264     dynamic_linker="$host_os dld.so"
16265     shlibpath_var=LD_LIBRARY_PATH
16266     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16267     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16268     soname_spec='${libname}${release}${shared_ext}$major'
16269     if test "X$HPUX_IA64_MODE" = X32; then
16270       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16271     else
16272       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16273     fi
16274     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16275     ;;
16276    hppa*64*)
16277      shrext_cmds='.sl'
16278      hardcode_into_libs=yes
16279      dynamic_linker="$host_os dld.sl"
16280      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16281      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16282      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16283      soname_spec='${libname}${release}${shared_ext}$major'
16284      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16285      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16286      ;;
16287    *)
16288     shrext_cmds='.sl'
16289     dynamic_linker="$host_os dld.sl"
16290     shlibpath_var=SHLIB_PATH
16291     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16292     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16293     soname_spec='${libname}${release}${shared_ext}$major'
16294     ;;
16295   esac
16296   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16297   postinstall_cmds='chmod 555 $lib'
16298   ;;
16299
16300 interix3*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16307   shlibpath_var=LD_LIBRARY_PATH
16308   shlibpath_overrides_runpath=no
16309   hardcode_into_libs=yes
16310   ;;
16311
16312 irix5* | irix6* | nonstopux*)
16313   case $host_os in
16314     nonstopux*) version_type=nonstopux ;;
16315     *)
16316         if test "$lt_cv_prog_gnu_ld" = yes; then
16317                 version_type=linux
16318         else
16319                 version_type=irix
16320         fi ;;
16321   esac
16322   need_lib_prefix=no
16323   need_version=no
16324   soname_spec='${libname}${release}${shared_ext}$major'
16325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16326   case $host_os in
16327   irix5* | nonstopux*)
16328     libsuff= shlibsuff=
16329     ;;
16330   *)
16331     case $LD in # libtool.m4 will add one of these switches to LD
16332     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16333       libsuff= shlibsuff= libmagic=32-bit;;
16334     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16335       libsuff=32 shlibsuff=N32 libmagic=N32;;
16336     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16337       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16338     *) libsuff= shlibsuff= libmagic=never-match;;
16339     esac
16340     ;;
16341   esac
16342   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16343   shlibpath_overrides_runpath=no
16344   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16345   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16346   hardcode_into_libs=yes
16347   ;;
16348
16349 # No shared lib support for Linux oldld, aout, or coff.
16350 linux*oldld* | linux*aout* | linux*coff*)
16351   dynamic_linker=no
16352   ;;
16353
16354 # This must be Linux ELF.
16355 linux*)
16356   version_type=linux
16357   need_lib_prefix=no
16358   need_version=no
16359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16360   soname_spec='${libname}${release}${shared_ext}$major'
16361   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16362   shlibpath_var=LD_LIBRARY_PATH
16363   shlibpath_overrides_runpath=no
16364   # This implies no fast_install, which is unacceptable.
16365   # Some rework will be needed to allow for fast_install
16366   # before this can be enabled.
16367   hardcode_into_libs=yes
16368
16369   # Append ld.so.conf contents to the search path
16370   if test -f /etc/ld.so.conf; then
16371     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' ' '`
16372     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16373   fi
16374
16375   # We used to test for /lib/ld.so.1 and disable shared libraries on
16376   # powerpc, because MkLinux only supported shared libraries with the
16377   # GNU dynamic linker.  Since this was broken with cross compilers,
16378   # most powerpc-linux boxes support dynamic linking these days and
16379   # people can always --disable-shared, the test was removed, and we
16380   # assume the GNU/Linux dynamic linker is in use.
16381   dynamic_linker='GNU/Linux ld.so'
16382   ;;
16383
16384 knetbsd*-gnu)
16385   version_type=linux
16386   need_lib_prefix=no
16387   need_version=no
16388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16389   soname_spec='${libname}${release}${shared_ext}$major'
16390   shlibpath_var=LD_LIBRARY_PATH
16391   shlibpath_overrides_runpath=no
16392   hardcode_into_libs=yes
16393   dynamic_linker='GNU ld.so'
16394   ;;
16395
16396 netbsd*)
16397   version_type=sunos
16398   need_lib_prefix=no
16399   need_version=no
16400   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16401     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16402     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16403     dynamic_linker='NetBSD (a.out) ld.so'
16404   else
16405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16406     soname_spec='${libname}${release}${shared_ext}$major'
16407     dynamic_linker='NetBSD ld.elf_so'
16408   fi
16409   shlibpath_var=LD_LIBRARY_PATH
16410   shlibpath_overrides_runpath=yes
16411   hardcode_into_libs=yes
16412   ;;
16413
16414 newsos6)
16415   version_type=linux
16416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417   shlibpath_var=LD_LIBRARY_PATH
16418   shlibpath_overrides_runpath=yes
16419   ;;
16420
16421 nto-qnx*)
16422   version_type=linux
16423   need_lib_prefix=no
16424   need_version=no
16425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426   soname_spec='${libname}${release}${shared_ext}$major'
16427   shlibpath_var=LD_LIBRARY_PATH
16428   shlibpath_overrides_runpath=yes
16429   ;;
16430
16431 openbsd*)
16432   version_type=sunos
16433   sys_lib_dlsearch_path_spec="/usr/lib"
16434   need_lib_prefix=no
16435   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16436   case $host_os in
16437     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16438     *)                         need_version=no  ;;
16439   esac
16440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16441   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16442   shlibpath_var=LD_LIBRARY_PATH
16443   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16444     case $host_os in
16445       openbsd2.[89] | openbsd2.[89].*)
16446         shlibpath_overrides_runpath=no
16447         ;;
16448       *)
16449         shlibpath_overrides_runpath=yes
16450         ;;
16451       esac
16452   else
16453     shlibpath_overrides_runpath=yes
16454   fi
16455   ;;
16456
16457 os2*)
16458   libname_spec='$name'
16459   shrext_cmds=".dll"
16460   need_lib_prefix=no
16461   library_names_spec='$libname${shared_ext} $libname.a'
16462   dynamic_linker='OS/2 ld.exe'
16463   shlibpath_var=LIBPATH
16464   ;;
16465
16466 osf3* | osf4* | osf5*)
16467   version_type=osf
16468   need_lib_prefix=no
16469   need_version=no
16470   soname_spec='${libname}${release}${shared_ext}$major'
16471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16472   shlibpath_var=LD_LIBRARY_PATH
16473   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16474   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16475   ;;
16476
16477 solaris*)
16478   version_type=linux
16479   need_lib_prefix=no
16480   need_version=no
16481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16482   soname_spec='${libname}${release}${shared_ext}$major'
16483   shlibpath_var=LD_LIBRARY_PATH
16484   shlibpath_overrides_runpath=yes
16485   hardcode_into_libs=yes
16486   # ldd complains unless libraries are executable
16487   postinstall_cmds='chmod +x $lib'
16488   ;;
16489
16490 sunos4*)
16491   version_type=sunos
16492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16493   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16494   shlibpath_var=LD_LIBRARY_PATH
16495   shlibpath_overrides_runpath=yes
16496   if test "$with_gnu_ld" = yes; then
16497     need_lib_prefix=no
16498   fi
16499   need_version=yes
16500   ;;
16501
16502 sysv4 | sysv4.3*)
16503   version_type=linux
16504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16505   soname_spec='${libname}${release}${shared_ext}$major'
16506   shlibpath_var=LD_LIBRARY_PATH
16507   case $host_vendor in
16508     sni)
16509       shlibpath_overrides_runpath=no
16510       need_lib_prefix=no
16511       export_dynamic_flag_spec='${wl}-Blargedynsym'
16512       runpath_var=LD_RUN_PATH
16513       ;;
16514     siemens)
16515       need_lib_prefix=no
16516       ;;
16517     motorola)
16518       need_lib_prefix=no
16519       need_version=no
16520       shlibpath_overrides_runpath=no
16521       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16522       ;;
16523   esac
16524   ;;
16525
16526 sysv4*MP*)
16527   if test -d /usr/nec ;then
16528     version_type=linux
16529     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16530     soname_spec='$libname${shared_ext}.$major'
16531     shlibpath_var=LD_LIBRARY_PATH
16532   fi
16533   ;;
16534
16535 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16536   version_type=freebsd-elf
16537   need_lib_prefix=no
16538   need_version=no
16539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16540   soname_spec='${libname}${release}${shared_ext}$major'
16541   shlibpath_var=LD_LIBRARY_PATH
16542   hardcode_into_libs=yes
16543   if test "$with_gnu_ld" = yes; then
16544     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16545     shlibpath_overrides_runpath=no
16546   else
16547     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16548     shlibpath_overrides_runpath=yes
16549     case $host_os in
16550       sco3.2v5*)
16551         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16552         ;;
16553     esac
16554   fi
16555   sys_lib_dlsearch_path_spec='/usr/lib'
16556   ;;
16557
16558 uts4*)
16559   version_type=linux
16560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16561   soname_spec='${libname}${release}${shared_ext}$major'
16562   shlibpath_var=LD_LIBRARY_PATH
16563   ;;
16564
16565 *)
16566   dynamic_linker=no
16567   ;;
16568 esac
16569 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16570 echo "${ECHO_T}$dynamic_linker" >&6; }
16571 test "$dynamic_linker" = no && can_build_shared=no
16572
16573 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16574 if test "$GCC" = yes; then
16575   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16576 fi
16577
16578 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16579 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16580 hardcode_action=
16581 if test -n "$hardcode_libdir_flag_spec" || \
16582    test -n "$runpath_var" || \
16583    test "X$hardcode_automatic" = "Xyes" ; then
16584
16585   # We can hardcode non-existant directories.
16586   if test "$hardcode_direct" != no &&
16587      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16588      # have to relink, otherwise we might link with an installed library
16589      # when we should be linking with a yet-to-be-installed one
16590      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16591      test "$hardcode_minus_L" != no; then
16592     # Linking always hardcodes the temporary library directory.
16593     hardcode_action=relink
16594   else
16595     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16596     hardcode_action=immediate
16597   fi
16598 else
16599   # We cannot hardcode anything, or else we can only hardcode existing
16600   # directories.
16601   hardcode_action=unsupported
16602 fi
16603 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16604 echo "${ECHO_T}$hardcode_action" >&6; }
16605
16606 if test "$hardcode_action" = relink; then
16607   # Fast installation is not supported
16608   enable_fast_install=no
16609 elif test "$shlibpath_overrides_runpath" = yes ||
16610      test "$enable_shared" = no; then
16611   # Fast installation is not necessary
16612   enable_fast_install=needless
16613 fi
16614
16615 striplib=
16616 old_striplib=
16617 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16618 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16619 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16620   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16621   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16622   { echo "$as_me:$LINENO: result: yes" >&5
16623 echo "${ECHO_T}yes" >&6; }
16624 else
16625 # FIXME - insert some real tests, host_os isn't really good enough
16626   case $host_os in
16627    darwin*)
16628        if test -n "$STRIP" ; then
16629          striplib="$STRIP -x"
16630          { echo "$as_me:$LINENO: result: yes" >&5
16631 echo "${ECHO_T}yes" >&6; }
16632        else
16633   { echo "$as_me:$LINENO: result: no" >&5
16634 echo "${ECHO_T}no" >&6; }
16635 fi
16636        ;;
16637    *)
16638   { echo "$as_me:$LINENO: result: no" >&5
16639 echo "${ECHO_T}no" >&6; }
16640     ;;
16641   esac
16642 fi
16643
16644 if test "x$enable_dlopen" != xyes; then
16645   enable_dlopen=unknown
16646   enable_dlopen_self=unknown
16647   enable_dlopen_self_static=unknown
16648 else
16649   lt_cv_dlopen=no
16650   lt_cv_dlopen_libs=
16651
16652   case $host_os in
16653   beos*)
16654     lt_cv_dlopen="load_add_on"
16655     lt_cv_dlopen_libs=
16656     lt_cv_dlopen_self=yes
16657     ;;
16658
16659   mingw* | pw32*)
16660     lt_cv_dlopen="LoadLibrary"
16661     lt_cv_dlopen_libs=
16662    ;;
16663
16664   cygwin*)
16665     lt_cv_dlopen="dlopen"
16666     lt_cv_dlopen_libs=
16667    ;;
16668
16669   darwin*)
16670   # if libdl is installed we need to link against it
16671     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16672 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16673 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16674   echo $ECHO_N "(cached) $ECHO_C" >&6
16675 else
16676   ac_check_lib_save_LIBS=$LIBS
16677 LIBS="-ldl  $LIBS"
16678 cat >conftest.$ac_ext <<_ACEOF
16679 /* confdefs.h.  */
16680 _ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h.  */
16684
16685 /* Override any GCC internal prototype to avoid an error.
16686    Use char because int might match the return type of a GCC
16687    builtin and then its argument prototype would still apply.  */
16688 #ifdef __cplusplus
16689 extern "C"
16690 #endif
16691 char dlopen ();
16692 int
16693 main ()
16694 {
16695 return dlopen ();
16696   ;
16697   return 0;
16698 }
16699 _ACEOF
16700 rm -f conftest.$ac_objext conftest$ac_exeext
16701 if { (ac_try="$ac_link"
16702 case "(($ac_try" in
16703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704   *) ac_try_echo=$ac_try;;
16705 esac
16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707   (eval "$ac_link") 2>conftest.er1
16708   ac_status=$?
16709   grep -v '^ *+' conftest.er1 >conftest.err
16710   rm -f conftest.er1
16711   cat conftest.err >&5
16712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); } &&
16714          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16715   { (case "(($ac_try" in
16716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717   *) ac_try_echo=$ac_try;;
16718 esac
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720   (eval "$ac_try") 2>&5
16721   ac_status=$?
16722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723   (exit $ac_status); }; } &&
16724          { ac_try='test -s conftest$ac_exeext'
16725   { (case "(($ac_try" in
16726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727   *) ac_try_echo=$ac_try;;
16728 esac
16729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730   (eval "$ac_try") 2>&5
16731   ac_status=$?
16732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733   (exit $ac_status); }; }; then
16734   ac_cv_lib_dl_dlopen=yes
16735 else
16736   echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.$ac_ext >&5
16738
16739         ac_cv_lib_dl_dlopen=no
16740 fi
16741
16742 rm -f core conftest.err conftest.$ac_objext \
16743       conftest$ac_exeext conftest.$ac_ext
16744 LIBS=$ac_check_lib_save_LIBS
16745 fi
16746 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16747 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16748 if test $ac_cv_lib_dl_dlopen = yes; then
16749   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16750 else
16751
16752     lt_cv_dlopen="dyld"
16753     lt_cv_dlopen_libs=
16754     lt_cv_dlopen_self=yes
16755
16756 fi
16757
16758    ;;
16759
16760   *)
16761     { echo "$as_me:$LINENO: checking for shl_load" >&5
16762 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16763 if test "${ac_cv_func_shl_load+set}" = set; then
16764   echo $ECHO_N "(cached) $ECHO_C" >&6
16765 else
16766   cat >conftest.$ac_ext <<_ACEOF
16767 /* confdefs.h.  */
16768 _ACEOF
16769 cat confdefs.h >>conftest.$ac_ext
16770 cat >>conftest.$ac_ext <<_ACEOF
16771 /* end confdefs.h.  */
16772 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16773    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16774 #define shl_load innocuous_shl_load
16775
16776 /* System header to define __stub macros and hopefully few prototypes,
16777     which can conflict with char shl_load (); below.
16778     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16779     <limits.h> exists even on freestanding compilers.  */
16780
16781 #ifdef __STDC__
16782 # include <limits.h>
16783 #else
16784 # include <assert.h>
16785 #endif
16786
16787 #undef shl_load
16788
16789 /* Override any GCC internal prototype to avoid an error.
16790    Use char because int might match the return type of a GCC
16791    builtin and then its argument prototype would still apply.  */
16792 #ifdef __cplusplus
16793 extern "C"
16794 #endif
16795 char shl_load ();
16796 /* The GNU C library defines this for functions which it implements
16797     to always fail with ENOSYS.  Some functions are actually named
16798     something starting with __ and the normal name is an alias.  */
16799 #if defined __stub_shl_load || defined __stub___shl_load
16800 choke me
16801 #endif
16802
16803 int
16804 main ()
16805 {
16806 return shl_load ();
16807   ;
16808   return 0;
16809 }
16810 _ACEOF
16811 rm -f conftest.$ac_objext conftest$ac_exeext
16812 if { (ac_try="$ac_link"
16813 case "(($ac_try" in
16814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815   *) ac_try_echo=$ac_try;;
16816 esac
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818   (eval "$ac_link") 2>conftest.er1
16819   ac_status=$?
16820   grep -v '^ *+' conftest.er1 >conftest.err
16821   rm -f conftest.er1
16822   cat conftest.err >&5
16823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824   (exit $ac_status); } &&
16825          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16826   { (case "(($ac_try" in
16827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828   *) ac_try_echo=$ac_try;;
16829 esac
16830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831   (eval "$ac_try") 2>&5
16832   ac_status=$?
16833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834   (exit $ac_status); }; } &&
16835          { ac_try='test -s conftest$ac_exeext'
16836   { (case "(($ac_try" in
16837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838   *) ac_try_echo=$ac_try;;
16839 esac
16840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841   (eval "$ac_try") 2>&5
16842   ac_status=$?
16843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844   (exit $ac_status); }; }; then
16845   ac_cv_func_shl_load=yes
16846 else
16847   echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.$ac_ext >&5
16849
16850         ac_cv_func_shl_load=no
16851 fi
16852
16853 rm -f core conftest.err conftest.$ac_objext \
16854       conftest$ac_exeext conftest.$ac_ext
16855 fi
16856 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16857 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16858 if test $ac_cv_func_shl_load = yes; then
16859   lt_cv_dlopen="shl_load"
16860 else
16861   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16862 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16863 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16864   echo $ECHO_N "(cached) $ECHO_C" >&6
16865 else
16866   ac_check_lib_save_LIBS=$LIBS
16867 LIBS="-ldld  $LIBS"
16868 cat >conftest.$ac_ext <<_ACEOF
16869 /* confdefs.h.  */
16870 _ACEOF
16871 cat confdefs.h >>conftest.$ac_ext
16872 cat >>conftest.$ac_ext <<_ACEOF
16873 /* end confdefs.h.  */
16874
16875 /* Override any GCC internal prototype to avoid an error.
16876    Use char because int might match the return type of a GCC
16877    builtin and then its argument prototype would still apply.  */
16878 #ifdef __cplusplus
16879 extern "C"
16880 #endif
16881 char shl_load ();
16882 int
16883 main ()
16884 {
16885 return shl_load ();
16886   ;
16887   return 0;
16888 }
16889 _ACEOF
16890 rm -f conftest.$ac_objext conftest$ac_exeext
16891 if { (ac_try="$ac_link"
16892 case "(($ac_try" in
16893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894   *) ac_try_echo=$ac_try;;
16895 esac
16896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897   (eval "$ac_link") 2>conftest.er1
16898   ac_status=$?
16899   grep -v '^ *+' conftest.er1 >conftest.err
16900   rm -f conftest.er1
16901   cat conftest.err >&5
16902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903   (exit $ac_status); } &&
16904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16905   { (case "(($ac_try" in
16906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907   *) ac_try_echo=$ac_try;;
16908 esac
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910   (eval "$ac_try") 2>&5
16911   ac_status=$?
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); }; } &&
16914          { ac_try='test -s conftest$ac_exeext'
16915   { (case "(($ac_try" in
16916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917   *) ac_try_echo=$ac_try;;
16918 esac
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920   (eval "$ac_try") 2>&5
16921   ac_status=$?
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); }; }; then
16924   ac_cv_lib_dld_shl_load=yes
16925 else
16926   echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16928
16929         ac_cv_lib_dld_shl_load=no
16930 fi
16931
16932 rm -f core conftest.err conftest.$ac_objext \
16933       conftest$ac_exeext conftest.$ac_ext
16934 LIBS=$ac_check_lib_save_LIBS
16935 fi
16936 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16937 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16938 if test $ac_cv_lib_dld_shl_load = yes; then
16939   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16940 else
16941   { echo "$as_me:$LINENO: checking for dlopen" >&5
16942 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16943 if test "${ac_cv_func_dlopen+set}" = set; then
16944   echo $ECHO_N "(cached) $ECHO_C" >&6
16945 else
16946   cat >conftest.$ac_ext <<_ACEOF
16947 /* confdefs.h.  */
16948 _ACEOF
16949 cat confdefs.h >>conftest.$ac_ext
16950 cat >>conftest.$ac_ext <<_ACEOF
16951 /* end confdefs.h.  */
16952 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16954 #define dlopen innocuous_dlopen
16955
16956 /* System header to define __stub macros and hopefully few prototypes,
16957     which can conflict with char dlopen (); below.
16958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16959     <limits.h> exists even on freestanding compilers.  */
16960
16961 #ifdef __STDC__
16962 # include <limits.h>
16963 #else
16964 # include <assert.h>
16965 #endif
16966
16967 #undef dlopen
16968
16969 /* Override any GCC internal prototype to avoid an error.
16970    Use char because int might match the return type of a GCC
16971    builtin and then its argument prototype would still apply.  */
16972 #ifdef __cplusplus
16973 extern "C"
16974 #endif
16975 char dlopen ();
16976 /* The GNU C library defines this for functions which it implements
16977     to always fail with ENOSYS.  Some functions are actually named
16978     something starting with __ and the normal name is an alias.  */
16979 #if defined __stub_dlopen || defined __stub___dlopen
16980 choke me
16981 #endif
16982
16983 int
16984 main ()
16985 {
16986 return dlopen ();
16987   ;
16988   return 0;
16989 }
16990 _ACEOF
16991 rm -f conftest.$ac_objext conftest$ac_exeext
16992 if { (ac_try="$ac_link"
16993 case "(($ac_try" in
16994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995   *) ac_try_echo=$ac_try;;
16996 esac
16997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998   (eval "$ac_link") 2>conftest.er1
16999   ac_status=$?
17000   grep -v '^ *+' conftest.er1 >conftest.err
17001   rm -f conftest.er1
17002   cat conftest.err >&5
17003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004   (exit $ac_status); } &&
17005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17006   { (case "(($ac_try" in
17007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008   *) ac_try_echo=$ac_try;;
17009 esac
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011   (eval "$ac_try") 2>&5
17012   ac_status=$?
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); }; } &&
17015          { ac_try='test -s conftest$ac_exeext'
17016   { (case "(($ac_try" in
17017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018   *) ac_try_echo=$ac_try;;
17019 esac
17020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021   (eval "$ac_try") 2>&5
17022   ac_status=$?
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); }; }; then
17025   ac_cv_func_dlopen=yes
17026 else
17027   echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17029
17030         ac_cv_func_dlopen=no
17031 fi
17032
17033 rm -f core conftest.err conftest.$ac_objext \
17034       conftest$ac_exeext conftest.$ac_ext
17035 fi
17036 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17037 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17038 if test $ac_cv_func_dlopen = yes; then
17039   lt_cv_dlopen="dlopen"
17040 else
17041   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17042 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17043 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17044   echo $ECHO_N "(cached) $ECHO_C" >&6
17045 else
17046   ac_check_lib_save_LIBS=$LIBS
17047 LIBS="-ldl  $LIBS"
17048 cat >conftest.$ac_ext <<_ACEOF
17049 /* confdefs.h.  */
17050 _ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h.  */
17054
17055 /* Override any GCC internal prototype to avoid an error.
17056    Use char because int might match the return type of a GCC
17057    builtin and then its argument prototype would still apply.  */
17058 #ifdef __cplusplus
17059 extern "C"
17060 #endif
17061 char dlopen ();
17062 int
17063 main ()
17064 {
17065 return dlopen ();
17066   ;
17067   return 0;
17068 }
17069 _ACEOF
17070 rm -f conftest.$ac_objext conftest$ac_exeext
17071 if { (ac_try="$ac_link"
17072 case "(($ac_try" in
17073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074   *) ac_try_echo=$ac_try;;
17075 esac
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077   (eval "$ac_link") 2>conftest.er1
17078   ac_status=$?
17079   grep -v '^ *+' conftest.er1 >conftest.err
17080   rm -f conftest.er1
17081   cat conftest.err >&5
17082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083   (exit $ac_status); } &&
17084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17085   { (case "(($ac_try" in
17086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087   *) ac_try_echo=$ac_try;;
17088 esac
17089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090   (eval "$ac_try") 2>&5
17091   ac_status=$?
17092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093   (exit $ac_status); }; } &&
17094          { ac_try='test -s conftest$ac_exeext'
17095   { (case "(($ac_try" in
17096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097   *) ac_try_echo=$ac_try;;
17098 esac
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100   (eval "$ac_try") 2>&5
17101   ac_status=$?
17102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103   (exit $ac_status); }; }; then
17104   ac_cv_lib_dl_dlopen=yes
17105 else
17106   echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17108
17109         ac_cv_lib_dl_dlopen=no
17110 fi
17111
17112 rm -f core conftest.err conftest.$ac_objext \
17113       conftest$ac_exeext conftest.$ac_ext
17114 LIBS=$ac_check_lib_save_LIBS
17115 fi
17116 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17117 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17118 if test $ac_cv_lib_dl_dlopen = yes; then
17119   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17120 else
17121   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17122 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17123 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17124   echo $ECHO_N "(cached) $ECHO_C" >&6
17125 else
17126   ac_check_lib_save_LIBS=$LIBS
17127 LIBS="-lsvld  $LIBS"
17128 cat >conftest.$ac_ext <<_ACEOF
17129 /* confdefs.h.  */
17130 _ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h.  */
17134
17135 /* Override any GCC internal prototype to avoid an error.
17136    Use char because int might match the return type of a GCC
17137    builtin and then its argument prototype would still apply.  */
17138 #ifdef __cplusplus
17139 extern "C"
17140 #endif
17141 char dlopen ();
17142 int
17143 main ()
17144 {
17145 return dlopen ();
17146   ;
17147   return 0;
17148 }
17149 _ACEOF
17150 rm -f conftest.$ac_objext conftest$ac_exeext
17151 if { (ac_try="$ac_link"
17152 case "(($ac_try" in
17153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154   *) ac_try_echo=$ac_try;;
17155 esac
17156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157   (eval "$ac_link") 2>conftest.er1
17158   ac_status=$?
17159   grep -v '^ *+' conftest.er1 >conftest.err
17160   rm -f conftest.er1
17161   cat conftest.err >&5
17162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163   (exit $ac_status); } &&
17164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17165   { (case "(($ac_try" in
17166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167   *) ac_try_echo=$ac_try;;
17168 esac
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170   (eval "$ac_try") 2>&5
17171   ac_status=$?
17172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173   (exit $ac_status); }; } &&
17174          { ac_try='test -s conftest$ac_exeext'
17175   { (case "(($ac_try" in
17176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177   *) ac_try_echo=$ac_try;;
17178 esac
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180   (eval "$ac_try") 2>&5
17181   ac_status=$?
17182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183   (exit $ac_status); }; }; then
17184   ac_cv_lib_svld_dlopen=yes
17185 else
17186   echo "$as_me: failed program was:" >&5
17187 sed 's/^/| /' conftest.$ac_ext >&5
17188
17189         ac_cv_lib_svld_dlopen=no
17190 fi
17191
17192 rm -f core conftest.err conftest.$ac_objext \
17193       conftest$ac_exeext conftest.$ac_ext
17194 LIBS=$ac_check_lib_save_LIBS
17195 fi
17196 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17197 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17198 if test $ac_cv_lib_svld_dlopen = yes; then
17199   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17200 else
17201   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17202 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17203 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17204   echo $ECHO_N "(cached) $ECHO_C" >&6
17205 else
17206   ac_check_lib_save_LIBS=$LIBS
17207 LIBS="-ldld  $LIBS"
17208 cat >conftest.$ac_ext <<_ACEOF
17209 /* confdefs.h.  */
17210 _ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h.  */
17214
17215 /* Override any GCC internal prototype to avoid an error.
17216    Use char because int might match the return type of a GCC
17217    builtin and then its argument prototype would still apply.  */
17218 #ifdef __cplusplus
17219 extern "C"
17220 #endif
17221 char dld_link ();
17222 int
17223 main ()
17224 {
17225 return dld_link ();
17226   ;
17227   return 0;
17228 }
17229 _ACEOF
17230 rm -f conftest.$ac_objext conftest$ac_exeext
17231 if { (ac_try="$ac_link"
17232 case "(($ac_try" in
17233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234   *) ac_try_echo=$ac_try;;
17235 esac
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237   (eval "$ac_link") 2>conftest.er1
17238   ac_status=$?
17239   grep -v '^ *+' conftest.er1 >conftest.err
17240   rm -f conftest.er1
17241   cat conftest.err >&5
17242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243   (exit $ac_status); } &&
17244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17245   { (case "(($ac_try" in
17246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17247   *) ac_try_echo=$ac_try;;
17248 esac
17249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17250   (eval "$ac_try") 2>&5
17251   ac_status=$?
17252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253   (exit $ac_status); }; } &&
17254          { ac_try='test -s conftest$ac_exeext'
17255   { (case "(($ac_try" in
17256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17257   *) ac_try_echo=$ac_try;;
17258 esac
17259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17260   (eval "$ac_try") 2>&5
17261   ac_status=$?
17262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263   (exit $ac_status); }; }; then
17264   ac_cv_lib_dld_dld_link=yes
17265 else
17266   echo "$as_me: failed program was:" >&5
17267 sed 's/^/| /' conftest.$ac_ext >&5
17268
17269         ac_cv_lib_dld_dld_link=no
17270 fi
17271
17272 rm -f core conftest.err conftest.$ac_objext \
17273       conftest$ac_exeext conftest.$ac_ext
17274 LIBS=$ac_check_lib_save_LIBS
17275 fi
17276 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17277 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17278 if test $ac_cv_lib_dld_dld_link = yes; then
17279   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17280 fi
17281
17282
17283 fi
17284
17285
17286 fi
17287
17288
17289 fi
17290
17291
17292 fi
17293
17294
17295 fi
17296
17297     ;;
17298   esac
17299
17300   if test "x$lt_cv_dlopen" != xno; then
17301     enable_dlopen=yes
17302   else
17303     enable_dlopen=no
17304   fi
17305
17306   case $lt_cv_dlopen in
17307   dlopen)
17308     save_CPPFLAGS="$CPPFLAGS"
17309     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17310
17311     save_LDFLAGS="$LDFLAGS"
17312     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17313
17314     save_LIBS="$LIBS"
17315     LIBS="$lt_cv_dlopen_libs $LIBS"
17316
17317     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17318 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17319 if test "${lt_cv_dlopen_self+set}" = set; then
17320   echo $ECHO_N "(cached) $ECHO_C" >&6
17321 else
17322           if test "$cross_compiling" = yes; then :
17323   lt_cv_dlopen_self=cross
17324 else
17325   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17326   lt_status=$lt_dlunknown
17327   cat > conftest.$ac_ext <<EOF
17328 #line 17325 "configure"
17329 #include "confdefs.h"
17330
17331 #if HAVE_DLFCN_H
17332 #include <dlfcn.h>
17333 #endif
17334
17335 #include <stdio.h>
17336
17337 #ifdef RTLD_GLOBAL
17338 #  define LT_DLGLOBAL           RTLD_GLOBAL
17339 #else
17340 #  ifdef DL_GLOBAL
17341 #    define LT_DLGLOBAL         DL_GLOBAL
17342 #  else
17343 #    define LT_DLGLOBAL         0
17344 #  endif
17345 #endif
17346
17347 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17348    find out it does not work in some platform. */
17349 #ifndef LT_DLLAZY_OR_NOW
17350 #  ifdef RTLD_LAZY
17351 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17352 #  else
17353 #    ifdef DL_LAZY
17354 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17355 #    else
17356 #      ifdef RTLD_NOW
17357 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17358 #      else
17359 #        ifdef DL_NOW
17360 #          define LT_DLLAZY_OR_NOW      DL_NOW
17361 #        else
17362 #          define LT_DLLAZY_OR_NOW      0
17363 #        endif
17364 #      endif
17365 #    endif
17366 #  endif
17367 #endif
17368
17369 #ifdef __cplusplus
17370 extern "C" void exit (int);
17371 #endif
17372
17373 void fnord() { int i=42;}
17374 int main ()
17375 {
17376   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17377   int status = $lt_dlunknown;
17378
17379   if (self)
17380     {
17381       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17382       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17383       /* dlclose (self); */
17384     }
17385   else
17386     puts (dlerror ());
17387
17388     exit (status);
17389 }
17390 EOF
17391   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17392   (eval $ac_link) 2>&5
17393   ac_status=$?
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17396     (./conftest; exit; ) >&5 2>/dev/null
17397     lt_status=$?
17398     case x$lt_status in
17399       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17400       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17401       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17402     esac
17403   else :
17404     # compilation failed
17405     lt_cv_dlopen_self=no
17406   fi
17407 fi
17408 rm -fr conftest*
17409
17410
17411 fi
17412 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17413 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17414
17415     if test "x$lt_cv_dlopen_self" = xyes; then
17416       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17417       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17418 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17419 if test "${lt_cv_dlopen_self_static+set}" = set; then
17420   echo $ECHO_N "(cached) $ECHO_C" >&6
17421 else
17422           if test "$cross_compiling" = yes; then :
17423   lt_cv_dlopen_self_static=cross
17424 else
17425   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17426   lt_status=$lt_dlunknown
17427   cat > conftest.$ac_ext <<EOF
17428 #line 17425 "configure"
17429 #include "confdefs.h"
17430
17431 #if HAVE_DLFCN_H
17432 #include <dlfcn.h>
17433 #endif
17434
17435 #include <stdio.h>
17436
17437 #ifdef RTLD_GLOBAL
17438 #  define LT_DLGLOBAL           RTLD_GLOBAL
17439 #else
17440 #  ifdef DL_GLOBAL
17441 #    define LT_DLGLOBAL         DL_GLOBAL
17442 #  else
17443 #    define LT_DLGLOBAL         0
17444 #  endif
17445 #endif
17446
17447 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17448    find out it does not work in some platform. */
17449 #ifndef LT_DLLAZY_OR_NOW
17450 #  ifdef RTLD_LAZY
17451 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17452 #  else
17453 #    ifdef DL_LAZY
17454 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17455 #    else
17456 #      ifdef RTLD_NOW
17457 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17458 #      else
17459 #        ifdef DL_NOW
17460 #          define LT_DLLAZY_OR_NOW      DL_NOW
17461 #        else
17462 #          define LT_DLLAZY_OR_NOW      0
17463 #        endif
17464 #      endif
17465 #    endif
17466 #  endif
17467 #endif
17468
17469 #ifdef __cplusplus
17470 extern "C" void exit (int);
17471 #endif
17472
17473 void fnord() { int i=42;}
17474 int main ()
17475 {
17476   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17477   int status = $lt_dlunknown;
17478
17479   if (self)
17480     {
17481       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17482       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17483       /* dlclose (self); */
17484     }
17485   else
17486     puts (dlerror ());
17487
17488     exit (status);
17489 }
17490 EOF
17491   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17492   (eval $ac_link) 2>&5
17493   ac_status=$?
17494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17496     (./conftest; exit; ) >&5 2>/dev/null
17497     lt_status=$?
17498     case x$lt_status in
17499       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17500       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17501       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17502     esac
17503   else :
17504     # compilation failed
17505     lt_cv_dlopen_self_static=no
17506   fi
17507 fi
17508 rm -fr conftest*
17509
17510
17511 fi
17512 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17513 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17514     fi
17515
17516     CPPFLAGS="$save_CPPFLAGS"
17517     LDFLAGS="$save_LDFLAGS"
17518     LIBS="$save_LIBS"
17519     ;;
17520   esac
17521
17522   case $lt_cv_dlopen_self in
17523   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17524   *) enable_dlopen_self=unknown ;;
17525   esac
17526
17527   case $lt_cv_dlopen_self_static in
17528   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17529   *) enable_dlopen_self_static=unknown ;;
17530   esac
17531 fi
17532
17533
17534 # Report which library types will actually be built
17535 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17536 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17537 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17538 echo "${ECHO_T}$can_build_shared" >&6; }
17539
17540 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17541 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17542 test "$can_build_shared" = "no" && enable_shared=no
17543
17544 # On AIX, shared libraries and static libraries use the same namespace, and
17545 # are all built from PIC.
17546 case $host_os in
17547 aix3*)
17548   test "$enable_shared" = yes && enable_static=no
17549   if test -n "$RANLIB"; then
17550     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17551     postinstall_cmds='$RANLIB $lib'
17552   fi
17553   ;;
17554
17555 aix4* | aix5*)
17556   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17557     test "$enable_shared" = yes && enable_static=no
17558   fi
17559     ;;
17560 esac
17561 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17562 echo "${ECHO_T}$enable_shared" >&6; }
17563
17564 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17565 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17566 # Make sure either enable_shared or enable_static is yes.
17567 test "$enable_shared" = yes || enable_static=yes
17568 { echo "$as_me:$LINENO: result: $enable_static" >&5
17569 echo "${ECHO_T}$enable_static" >&6; }
17570
17571 # The else clause should only fire when bootstrapping the
17572 # libtool distribution, otherwise you forgot to ship ltmain.sh
17573 # with your package, and you will get complaints that there are
17574 # no rules to generate ltmain.sh.
17575 if test -f "$ltmain"; then
17576   # See if we are running on zsh, and set the options which allow our commands through
17577   # without removal of \ escapes.
17578   if test -n "${ZSH_VERSION+set}" ; then
17579     setopt NO_GLOB_SUBST
17580   fi
17581   # Now quote all the things that may contain metacharacters while being
17582   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17583   # variables and quote the copies for generation of the libtool script.
17584   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17585     SED SHELL STRIP \
17586     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17587     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17588     deplibs_check_method reload_flag reload_cmds need_locks \
17589     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17590     lt_cv_sys_global_symbol_to_c_name_address \
17591     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17592     old_postinstall_cmds old_postuninstall_cmds \
17593     compiler \
17594     CC \
17595     LD \
17596     lt_prog_compiler_wl \
17597     lt_prog_compiler_pic \
17598     lt_prog_compiler_static \
17599     lt_prog_compiler_no_builtin_flag \
17600     export_dynamic_flag_spec \
17601     thread_safe_flag_spec \
17602     whole_archive_flag_spec \
17603     enable_shared_with_static_runtimes \
17604     old_archive_cmds \
17605     old_archive_from_new_cmds \
17606     predep_objects \
17607     postdep_objects \
17608     predeps \
17609     postdeps \
17610     compiler_lib_search_path \
17611     archive_cmds \
17612     archive_expsym_cmds \
17613     postinstall_cmds \
17614     postuninstall_cmds \
17615     old_archive_from_expsyms_cmds \
17616     allow_undefined_flag \
17617     no_undefined_flag \
17618     export_symbols_cmds \
17619     hardcode_libdir_flag_spec \
17620     hardcode_libdir_flag_spec_ld \
17621     hardcode_libdir_separator \
17622     hardcode_automatic \
17623     module_cmds \
17624     module_expsym_cmds \
17625     lt_cv_prog_compiler_c_o \
17626     exclude_expsyms \
17627     include_expsyms; do
17628
17629     case $var in
17630     old_archive_cmds | \
17631     old_archive_from_new_cmds | \
17632     archive_cmds | \
17633     archive_expsym_cmds | \
17634     module_cmds | \
17635     module_expsym_cmds | \
17636     old_archive_from_expsyms_cmds | \
17637     export_symbols_cmds | \
17638     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17639     postinstall_cmds | postuninstall_cmds | \
17640     old_postinstall_cmds | old_postuninstall_cmds | \
17641     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17642       # Double-quote double-evaled strings.
17643       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17644       ;;
17645     *)
17646       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17647       ;;
17648     esac
17649   done
17650
17651   case $lt_echo in
17652   *'\$0 --fallback-echo"')
17653     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17654     ;;
17655   esac
17656
17657 cfgfile="${ofile}T"
17658   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17659   $rm -f "$cfgfile"
17660   { echo "$as_me:$LINENO: creating $ofile" >&5
17661 echo "$as_me: creating $ofile" >&6;}
17662
17663   cat <<__EOF__ >> "$cfgfile"
17664 #! $SHELL
17665
17666 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17667 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17668 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17669 #
17670 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17671 # Free Software Foundation, Inc.
17672 #
17673 # This file is part of GNU Libtool:
17674 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17675 #
17676 # This program is free software; you can redistribute it and/or modify
17677 # it under the terms of the GNU General Public License as published by
17678 # the Free Software Foundation; either version 2 of the License, or
17679 # (at your option) any later version.
17680 #
17681 # This program is distributed in the hope that it will be useful, but
17682 # WITHOUT ANY WARRANTY; without even the implied warranty of
17683 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17684 # General Public License for more details.
17685 #
17686 # You should have received a copy of the GNU General Public License
17687 # along with this program; if not, write to the Free Software
17688 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17689 #
17690 # As a special exception to the GNU General Public License, if you
17691 # distribute this file as part of a program that contains a
17692 # configuration script generated by Autoconf, you may include it under
17693 # the same distribution terms that you use for the rest of that program.
17694
17695 # A sed program that does not truncate output.
17696 SED=$lt_SED
17697
17698 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17699 Xsed="$SED -e 1s/^X//"
17700
17701 # The HP-UX ksh and POSIX shell print the target directory to stdout
17702 # if CDPATH is set.
17703 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17704
17705 # The names of the tagged configurations supported by this script.
17706 available_tags=
17707
17708 # ### BEGIN LIBTOOL CONFIG
17709
17710 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17711
17712 # Shell to use when invoking shell scripts.
17713 SHELL=$lt_SHELL
17714
17715 # Whether or not to build shared libraries.
17716 build_libtool_libs=$enable_shared
17717
17718 # Whether or not to build static libraries.
17719 build_old_libs=$enable_static
17720
17721 # Whether or not to add -lc for building shared libraries.
17722 build_libtool_need_lc=$archive_cmds_need_lc
17723
17724 # Whether or not to disallow shared libs when runtime libs are static
17725 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17726
17727 # Whether or not to optimize for fast installation.
17728 fast_install=$enable_fast_install
17729
17730 # The host system.
17731 host_alias=$host_alias
17732 host=$host
17733 host_os=$host_os
17734
17735 # The build system.
17736 build_alias=$build_alias
17737 build=$build
17738 build_os=$build_os
17739
17740 # An echo program that does not interpret backslashes.
17741 echo=$lt_echo
17742
17743 # The archiver.
17744 AR=$lt_AR
17745 AR_FLAGS=$lt_AR_FLAGS
17746
17747 # A C compiler.
17748 LTCC=$lt_LTCC
17749
17750 # LTCC compiler flags.
17751 LTCFLAGS=$lt_LTCFLAGS
17752
17753 # A language-specific compiler.
17754 CC=$lt_compiler
17755
17756 # Is the compiler the GNU C compiler?
17757 with_gcc=$GCC
17758
17759 # An ERE matcher.
17760 EGREP=$lt_EGREP
17761
17762 # The linker used to build libraries.
17763 LD=$lt_LD
17764
17765 # Whether we need hard or soft links.
17766 LN_S=$lt_LN_S
17767
17768 # A BSD-compatible nm program.
17769 NM=$lt_NM
17770
17771 # A symbol stripping program
17772 STRIP=$lt_STRIP
17773
17774 # Used to examine libraries when file_magic_cmd begins "file"
17775 MAGIC_CMD=$MAGIC_CMD
17776
17777 # Used on cygwin: DLL creation program.
17778 DLLTOOL="$DLLTOOL"
17779
17780 # Used on cygwin: object dumper.
17781 OBJDUMP="$OBJDUMP"
17782
17783 # Used on cygwin: assembler.
17784 AS="$AS"
17785
17786 # The name of the directory that contains temporary libtool files.
17787 objdir=$objdir
17788
17789 # How to create reloadable object files.
17790 reload_flag=$lt_reload_flag
17791 reload_cmds=$lt_reload_cmds
17792
17793 # How to pass a linker flag through the compiler.
17794 wl=$lt_lt_prog_compiler_wl
17795
17796 # Object file suffix (normally "o").
17797 objext="$ac_objext"
17798
17799 # Old archive suffix (normally "a").
17800 libext="$libext"
17801
17802 # Shared library suffix (normally ".so").
17803 shrext_cmds='$shrext_cmds'
17804
17805 # Executable file suffix (normally "").
17806 exeext="$exeext"
17807
17808 # Additional compiler flags for building library objects.
17809 pic_flag=$lt_lt_prog_compiler_pic
17810 pic_mode=$pic_mode
17811
17812 # What is the maximum length of a command?
17813 max_cmd_len=$lt_cv_sys_max_cmd_len
17814
17815 # Does compiler simultaneously support -c and -o options?
17816 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17817
17818 # Must we lock files when doing compilation?
17819 need_locks=$lt_need_locks
17820
17821 # Do we need the lib prefix for modules?
17822 need_lib_prefix=$need_lib_prefix
17823
17824 # Do we need a version for libraries?
17825 need_version=$need_version
17826
17827 # Whether dlopen is supported.
17828 dlopen_support=$enable_dlopen
17829
17830 # Whether dlopen of programs is supported.
17831 dlopen_self=$enable_dlopen_self
17832
17833 # Whether dlopen of statically linked programs is supported.
17834 dlopen_self_static=$enable_dlopen_self_static
17835
17836 # Compiler flag to prevent dynamic linking.
17837 link_static_flag=$lt_lt_prog_compiler_static
17838
17839 # Compiler flag to turn off builtin functions.
17840 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17841
17842 # Compiler flag to allow reflexive dlopens.
17843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17844
17845 # Compiler flag to generate shared objects directly from archives.
17846 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17847
17848 # Compiler flag to generate thread-safe objects.
17849 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17850
17851 # Library versioning type.
17852 version_type=$version_type
17853
17854 # Format of library name prefix.
17855 libname_spec=$lt_libname_spec
17856
17857 # List of archive names.  First name is the real one, the rest are links.
17858 # The last name is the one that the linker finds with -lNAME.
17859 library_names_spec=$lt_library_names_spec
17860
17861 # The coded name of the library, if different from the real name.
17862 soname_spec=$lt_soname_spec
17863
17864 # Commands used to build and install an old-style archive.
17865 RANLIB=$lt_RANLIB
17866 old_archive_cmds=$lt_old_archive_cmds
17867 old_postinstall_cmds=$lt_old_postinstall_cmds
17868 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17869
17870 # Create an old-style archive from a shared archive.
17871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17872
17873 # Create a temporary old-style archive to link instead of a shared archive.
17874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17875
17876 # Commands used to build and install a shared archive.
17877 archive_cmds=$lt_archive_cmds
17878 archive_expsym_cmds=$lt_archive_expsym_cmds
17879 postinstall_cmds=$lt_postinstall_cmds
17880 postuninstall_cmds=$lt_postuninstall_cmds
17881
17882 # Commands used to build a loadable module (assumed same as above if empty)
17883 module_cmds=$lt_module_cmds
17884 module_expsym_cmds=$lt_module_expsym_cmds
17885
17886 # Commands to strip libraries.
17887 old_striplib=$lt_old_striplib
17888 striplib=$lt_striplib
17889
17890 # Dependencies to place before the objects being linked to create a
17891 # shared library.
17892 predep_objects=$lt_predep_objects
17893
17894 # Dependencies to place after the objects being linked to create a
17895 # shared library.
17896 postdep_objects=$lt_postdep_objects
17897
17898 # Dependencies to place before the objects being linked to create a
17899 # shared library.
17900 predeps=$lt_predeps
17901
17902 # Dependencies to place after the objects being linked to create a
17903 # shared library.
17904 postdeps=$lt_postdeps
17905
17906 # The library search path used internally by the compiler when linking
17907 # a shared library.
17908 compiler_lib_search_path=$lt_compiler_lib_search_path
17909
17910 # Method to check whether dependent libraries are shared objects.
17911 deplibs_check_method=$lt_deplibs_check_method
17912
17913 # Command to use when deplibs_check_method == file_magic.
17914 file_magic_cmd=$lt_file_magic_cmd
17915
17916 # Flag that allows shared libraries with undefined symbols to be built.
17917 allow_undefined_flag=$lt_allow_undefined_flag
17918
17919 # Flag that forces no undefined symbols.
17920 no_undefined_flag=$lt_no_undefined_flag
17921
17922 # Commands used to finish a libtool library installation in a directory.
17923 finish_cmds=$lt_finish_cmds
17924
17925 # Same as above, but a single script fragment to be evaled but not shown.
17926 finish_eval=$lt_finish_eval
17927
17928 # Take the output of nm and produce a listing of raw symbols and C names.
17929 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17930
17931 # Transform the output of nm in a proper C declaration
17932 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17933
17934 # Transform the output of nm in a C name address pair
17935 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17936
17937 # This is the shared library runtime path variable.
17938 runpath_var=$runpath_var
17939
17940 # This is the shared library path variable.
17941 shlibpath_var=$shlibpath_var
17942
17943 # Is shlibpath searched before the hard-coded library search path?
17944 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17945
17946 # How to hardcode a shared library path into an executable.
17947 hardcode_action=$hardcode_action
17948
17949 # Whether we should hardcode library paths into libraries.
17950 hardcode_into_libs=$hardcode_into_libs
17951
17952 # Flag to hardcode \$libdir into a binary during linking.
17953 # This must work even if \$libdir does not exist.
17954 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17955
17956 # If ld is used when linking, flag to hardcode \$libdir into
17957 # a binary during linking. This must work even if \$libdir does
17958 # not exist.
17959 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17960
17961 # Whether we need a single -rpath flag with a separated argument.
17962 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17963
17964 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17965 # resulting binary.
17966 hardcode_direct=$hardcode_direct
17967
17968 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17969 # resulting binary.
17970 hardcode_minus_L=$hardcode_minus_L
17971
17972 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17973 # the resulting binary.
17974 hardcode_shlibpath_var=$hardcode_shlibpath_var
17975
17976 # Set to yes if building a shared library automatically hardcodes DIR into the library
17977 # and all subsequent libraries and executables linked against it.
17978 hardcode_automatic=$hardcode_automatic
17979
17980 # Variables whose values should be saved in libtool wrapper scripts and
17981 # restored at relink time.
17982 variables_saved_for_relink="$variables_saved_for_relink"
17983
17984 # Whether libtool must link a program against all its dependency libraries.
17985 link_all_deplibs=$link_all_deplibs
17986
17987 # Compile-time system search path for libraries
17988 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17989
17990 # Run-time system search path for libraries
17991 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17992
17993 # Fix the shell variable \$srcfile for the compiler.
17994 fix_srcfile_path="$fix_srcfile_path"
17995
17996 # Set to yes if exported symbols are required.
17997 always_export_symbols=$always_export_symbols
17998
17999 # The commands to list exported symbols.
18000 export_symbols_cmds=$lt_export_symbols_cmds
18001
18002 # The commands to extract the exported symbol list from a shared archive.
18003 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18004
18005 # Symbols that should not be listed in the preloaded symbols.
18006 exclude_expsyms=$lt_exclude_expsyms
18007
18008 # Symbols that must always be exported.
18009 include_expsyms=$lt_include_expsyms
18010
18011 # ### END LIBTOOL CONFIG
18012
18013 __EOF__
18014
18015
18016   case $host_os in
18017   aix3*)
18018     cat <<\EOF >> "$cfgfile"
18019
18020 # AIX sometimes has problems with the GCC collect2 program.  For some
18021 # reason, if we set the COLLECT_NAMES environment variable, the problems
18022 # vanish in a puff of smoke.
18023 if test "X${COLLECT_NAMES+set}" != Xset; then
18024   COLLECT_NAMES=
18025   export COLLECT_NAMES
18026 fi
18027 EOF
18028     ;;
18029   esac
18030
18031   # We use sed instead of cat because bash on DJGPP gets confused if
18032   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18033   # text mode, it properly converts lines to CR/LF.  This bash problem
18034   # is reportedly fixed, but why not run on old versions too?
18035   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18036
18037   mv -f "$cfgfile" "$ofile" || \
18038     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18039   chmod +x "$ofile"
18040
18041 else
18042   # If there is no Makefile yet, we rely on a make rule to execute
18043   # `config.status --recheck' to rerun these tests and create the
18044   # libtool script then.
18045   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18046   if test -f "$ltmain_in"; then
18047     test -f Makefile && make "$ltmain"
18048   fi
18049 fi
18050
18051
18052 ac_ext=c
18053 ac_cpp='$CPP $CPPFLAGS'
18054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18057
18058 CC="$lt_save_CC"
18059
18060
18061 # Check whether --with-tags was given.
18062 if test "${with_tags+set}" = set; then
18063   withval=$with_tags; tagnames="$withval"
18064 fi
18065
18066
18067 if test -f "$ltmain" && test -n "$tagnames"; then
18068   if test ! -f "${ofile}"; then
18069     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18070 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18071   fi
18072
18073   if test -z "$LTCC"; then
18074     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18075     if test -z "$LTCC"; then
18076       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18077 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18078     else
18079       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18080 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18081     fi
18082   fi
18083   if test -z "$LTCFLAGS"; then
18084     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18085   fi
18086
18087   # Extract list of available tagged configurations in $ofile.
18088   # Note that this assumes the entire list is on one line.
18089   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18090
18091   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18092   for tagname in $tagnames; do
18093     IFS="$lt_save_ifs"
18094     # Check whether tagname contains only valid characters
18095     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18096     "") ;;
18097     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18098 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18099    { (exit 1); exit 1; }; }
18100         ;;
18101     esac
18102
18103     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18104     then
18105       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18106 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18107    { (exit 1); exit 1; }; }
18108     fi
18109
18110     # Update the list of available tags.
18111     if test -n "$tagname"; then
18112       echo appending configuration tag \"$tagname\" to $ofile
18113
18114       case $tagname in
18115       CXX)
18116         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18117             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18118             (test "X$CXX" != "Xg++"))) ; then
18119           ac_ext=cpp
18120 ac_cpp='$CXXCPP $CPPFLAGS'
18121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18124
18125
18126
18127
18128 archive_cmds_need_lc_CXX=no
18129 allow_undefined_flag_CXX=
18130 always_export_symbols_CXX=no
18131 archive_expsym_cmds_CXX=
18132 export_dynamic_flag_spec_CXX=
18133 hardcode_direct_CXX=no
18134 hardcode_libdir_flag_spec_CXX=
18135 hardcode_libdir_flag_spec_ld_CXX=
18136 hardcode_libdir_separator_CXX=
18137 hardcode_minus_L_CXX=no
18138 hardcode_shlibpath_var_CXX=unsupported
18139 hardcode_automatic_CXX=no
18140 module_cmds_CXX=
18141 module_expsym_cmds_CXX=
18142 link_all_deplibs_CXX=unknown
18143 old_archive_cmds_CXX=$old_archive_cmds
18144 no_undefined_flag_CXX=
18145 whole_archive_flag_spec_CXX=
18146 enable_shared_with_static_runtimes_CXX=no
18147
18148 # Dependencies to place before and after the object being linked:
18149 predep_objects_CXX=
18150 postdep_objects_CXX=
18151 predeps_CXX=
18152 postdeps_CXX=
18153 compiler_lib_search_path_CXX=
18154
18155 # Source file extension for C++ test sources.
18156 ac_ext=cpp
18157
18158 # Object file extension for compiled C++ test sources.
18159 objext=o
18160 objext_CXX=$objext
18161
18162 # Code to be used in simple compile tests
18163 lt_simple_compile_test_code="int some_variable = 0;\n"
18164
18165 # Code to be used in simple link tests
18166 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18167
18168 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18169
18170 # If no C compiler was specified, use CC.
18171 LTCC=${LTCC-"$CC"}
18172
18173 # If no C compiler flags were specified, use CFLAGS.
18174 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18175
18176 # Allow CC to be a program name with arguments.
18177 compiler=$CC
18178
18179
18180 # save warnings/boilerplate of simple test code
18181 ac_outfile=conftest.$ac_objext
18182 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18183 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18184 _lt_compiler_boilerplate=`cat conftest.err`
18185 $rm conftest*
18186
18187 ac_outfile=conftest.$ac_objext
18188 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18189 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18190 _lt_linker_boilerplate=`cat conftest.err`
18191 $rm conftest*
18192
18193
18194 # Allow CC to be a program name with arguments.
18195 lt_save_CC=$CC
18196 lt_save_LD=$LD
18197 lt_save_GCC=$GCC
18198 GCC=$GXX
18199 lt_save_with_gnu_ld=$with_gnu_ld
18200 lt_save_path_LD=$lt_cv_path_LD
18201 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18202   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18203 else
18204   $as_unset lt_cv_prog_gnu_ld
18205 fi
18206 if test -n "${lt_cv_path_LDCXX+set}"; then
18207   lt_cv_path_LD=$lt_cv_path_LDCXX
18208 else
18209   $as_unset lt_cv_path_LD
18210 fi
18211 test -z "${LDCXX+set}" || LD=$LDCXX
18212 CC=${CXX-"c++"}
18213 compiler=$CC
18214 compiler_CXX=$CC
18215 for cc_temp in $compiler""; do
18216   case $cc_temp in
18217     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18218     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18219     \-*) ;;
18220     *) break;;
18221   esac
18222 done
18223 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18224
18225
18226 # We don't want -fno-exception wen compiling C++ code, so set the
18227 # no_builtin_flag separately
18228 if test "$GXX" = yes; then
18229   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18230 else
18231   lt_prog_compiler_no_builtin_flag_CXX=
18232 fi
18233
18234 if test "$GXX" = yes; then
18235   # Set up default GNU C++ configuration
18236
18237
18238 # Check whether --with-gnu-ld was given.
18239 if test "${with_gnu_ld+set}" = set; then
18240   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18241 else
18242   with_gnu_ld=no
18243 fi
18244
18245 ac_prog=ld
18246 if test "$GCC" = yes; then
18247   # Check if gcc -print-prog-name=ld gives a path.
18248   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18249 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18250   case $host in
18251   *-*-mingw*)
18252     # gcc leaves a trailing carriage return which upsets mingw
18253     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18254   *)
18255     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18256   esac
18257   case $ac_prog in
18258     # Accept absolute paths.
18259     [\\/]* | ?:[\\/]*)
18260       re_direlt='/[^/][^/]*/\.\./'
18261       # Canonicalize the pathname of ld
18262       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18263       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18264         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18265       done
18266       test -z "$LD" && LD="$ac_prog"
18267       ;;
18268   "")
18269     # If it fails, then pretend we aren't using GCC.
18270     ac_prog=ld
18271     ;;
18272   *)
18273     # If it is relative, then search for the first ld in PATH.
18274     with_gnu_ld=unknown
18275     ;;
18276   esac
18277 elif test "$with_gnu_ld" = yes; then
18278   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18279 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18280 else
18281   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18282 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18283 fi
18284 if test "${lt_cv_path_LD+set}" = set; then
18285   echo $ECHO_N "(cached) $ECHO_C" >&6
18286 else
18287   if test -z "$LD"; then
18288   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18289   for ac_dir in $PATH; do
18290     IFS="$lt_save_ifs"
18291     test -z "$ac_dir" && ac_dir=.
18292     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18293       lt_cv_path_LD="$ac_dir/$ac_prog"
18294       # Check to see if the program is GNU ld.  I'd rather use --version,
18295       # but apparently some variants of GNU ld only accept -v.
18296       # Break only if it was the GNU/non-GNU ld that we prefer.
18297       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18298       *GNU* | *'with BFD'*)
18299         test "$with_gnu_ld" != no && break
18300         ;;
18301       *)
18302         test "$with_gnu_ld" != yes && break
18303         ;;
18304       esac
18305     fi
18306   done
18307   IFS="$lt_save_ifs"
18308 else
18309   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18310 fi
18311 fi
18312
18313 LD="$lt_cv_path_LD"
18314 if test -n "$LD"; then
18315   { echo "$as_me:$LINENO: result: $LD" >&5
18316 echo "${ECHO_T}$LD" >&6; }
18317 else
18318   { echo "$as_me:$LINENO: result: no" >&5
18319 echo "${ECHO_T}no" >&6; }
18320 fi
18321 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18322 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18323    { (exit 1); exit 1; }; }
18324 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18325 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18326 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18327   echo $ECHO_N "(cached) $ECHO_C" >&6
18328 else
18329   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18330 case `$LD -v 2>&1 </dev/null` in
18331 *GNU* | *'with BFD'*)
18332   lt_cv_prog_gnu_ld=yes
18333   ;;
18334 *)
18335   lt_cv_prog_gnu_ld=no
18336   ;;
18337 esac
18338 fi
18339 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18340 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18341 with_gnu_ld=$lt_cv_prog_gnu_ld
18342
18343
18344
18345   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18346   # archiving commands below assume that GNU ld is being used.
18347   if test "$with_gnu_ld" = yes; then
18348     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18349     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'
18350
18351     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18352     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18353
18354     # If archive_cmds runs LD, not CC, wlarc should be empty
18355     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18356     #     investigate it a little bit more. (MM)
18357     wlarc='${wl}'
18358
18359     # ancient GNU ld didn't support --whole-archive et. al.
18360     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18361         grep 'no-whole-archive' > /dev/null; then
18362       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18363     else
18364       whole_archive_flag_spec_CXX=
18365     fi
18366   else
18367     with_gnu_ld=no
18368     wlarc=
18369
18370     # A generic and very simple default shared library creation
18371     # command for GNU C++ for the case where it uses the native
18372     # linker, instead of GNU ld.  If possible, this setting should
18373     # overridden to take advantage of the native linker features on
18374     # the platform it is being used on.
18375     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18376   fi
18377
18378   # Commands to make compiler produce verbose output that lists
18379   # what "hidden" libraries, object files and flags are used when
18380   # linking a shared library.
18381   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18382
18383 else
18384   GXX=no
18385   with_gnu_ld=no
18386   wlarc=
18387 fi
18388
18389 # PORTME: fill in a description of your system's C++ link characteristics
18390 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18391 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18392 ld_shlibs_CXX=yes
18393 case $host_os in
18394   aix3*)
18395     # FIXME: insert proper C++ library support
18396     ld_shlibs_CXX=no
18397     ;;
18398   aix4* | aix5*)
18399     if test "$host_cpu" = ia64; then
18400       # On IA64, the linker does run time linking by default, so we don't
18401       # have to do anything special.
18402       aix_use_runtimelinking=no
18403       exp_sym_flag='-Bexport'
18404       no_entry_flag=""
18405     else
18406       aix_use_runtimelinking=no
18407
18408       # Test if we are trying to use run time linking or normal
18409       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18410       # need to do runtime linking.
18411       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18412         for ld_flag in $LDFLAGS; do
18413           case $ld_flag in
18414           *-brtl*)
18415             aix_use_runtimelinking=yes
18416             break
18417             ;;
18418           esac
18419         done
18420         ;;
18421       esac
18422
18423       exp_sym_flag='-bexport'
18424       no_entry_flag='-bnoentry'
18425     fi
18426
18427     # When large executables or shared objects are built, AIX ld can
18428     # have problems creating the table of contents.  If linking a library
18429     # or program results in "error TOC overflow" add -mminimal-toc to
18430     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18431     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18432
18433     archive_cmds_CXX=''
18434     hardcode_direct_CXX=yes
18435     hardcode_libdir_separator_CXX=':'
18436     link_all_deplibs_CXX=yes
18437
18438     if test "$GXX" = yes; then
18439       case $host_os in aix4.[012]|aix4.[012].*)
18440       # We only want to do this on AIX 4.2 and lower, the check
18441       # below for broken collect2 doesn't work under 4.3+
18442         collect2name=`${CC} -print-prog-name=collect2`
18443         if test -f "$collect2name" && \
18444            strings "$collect2name" | grep resolve_lib_name >/dev/null
18445         then
18446           # We have reworked collect2
18447           hardcode_direct_CXX=yes
18448         else
18449           # We have old collect2
18450           hardcode_direct_CXX=unsupported
18451           # It fails to find uninstalled libraries when the uninstalled
18452           # path is not listed in the libpath.  Setting hardcode_minus_L
18453           # to unsupported forces relinking
18454           hardcode_minus_L_CXX=yes
18455           hardcode_libdir_flag_spec_CXX='-L$libdir'
18456           hardcode_libdir_separator_CXX=
18457         fi
18458         ;;
18459       esac
18460       shared_flag='-shared'
18461       if test "$aix_use_runtimelinking" = yes; then
18462         shared_flag="$shared_flag "'${wl}-G'
18463       fi
18464     else
18465       # not using gcc
18466       if test "$host_cpu" = ia64; then
18467         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18468         # chokes on -Wl,-G. The following line is correct:
18469         shared_flag='-G'
18470       else
18471         if test "$aix_use_runtimelinking" = yes; then
18472           shared_flag='${wl}-G'
18473         else
18474           shared_flag='${wl}-bM:SRE'
18475         fi
18476       fi
18477     fi
18478
18479     # It seems that -bexpall does not export symbols beginning with
18480     # underscore (_), so it is better to generate a list of symbols to export.
18481     always_export_symbols_CXX=yes
18482     if test "$aix_use_runtimelinking" = yes; then
18483       # Warning - without using the other runtime loading flags (-brtl),
18484       # -berok will link without error, but may produce a broken library.
18485       allow_undefined_flag_CXX='-berok'
18486       # Determine the default libpath from the value encoded in an empty executable.
18487       cat >conftest.$ac_ext <<_ACEOF
18488 /* confdefs.h.  */
18489 _ACEOF
18490 cat confdefs.h >>conftest.$ac_ext
18491 cat >>conftest.$ac_ext <<_ACEOF
18492 /* end confdefs.h.  */
18493
18494 int
18495 main ()
18496 {
18497
18498   ;
18499   return 0;
18500 }
18501 _ACEOF
18502 rm -f conftest.$ac_objext conftest$ac_exeext
18503 if { (ac_try="$ac_link"
18504 case "(($ac_try" in
18505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506   *) ac_try_echo=$ac_try;;
18507 esac
18508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509   (eval "$ac_link") 2>conftest.er1
18510   ac_status=$?
18511   grep -v '^ *+' conftest.er1 >conftest.err
18512   rm -f conftest.er1
18513   cat conftest.err >&5
18514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515   (exit $ac_status); } &&
18516          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18517   { (case "(($ac_try" in
18518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18519   *) ac_try_echo=$ac_try;;
18520 esac
18521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18522   (eval "$ac_try") 2>&5
18523   ac_status=$?
18524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525   (exit $ac_status); }; } &&
18526          { ac_try='test -s conftest$ac_exeext'
18527   { (case "(($ac_try" in
18528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529   *) ac_try_echo=$ac_try;;
18530 esac
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532   (eval "$ac_try") 2>&5
18533   ac_status=$?
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); }; }; then
18536
18537 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18538 }'`
18539 # Check for a 64-bit object if we didn't find anything.
18540 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; }
18541 }'`; fi
18542 else
18543   echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18545
18546
18547 fi
18548
18549 rm -f core conftest.err conftest.$ac_objext \
18550       conftest$ac_exeext conftest.$ac_ext
18551 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18552
18553       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18554
18555       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"
18556      else
18557       if test "$host_cpu" = ia64; then
18558         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18559         allow_undefined_flag_CXX="-z nodefs"
18560         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"
18561       else
18562         # Determine the default libpath from the value encoded in an empty executable.
18563         cat >conftest.$ac_ext <<_ACEOF
18564 /* confdefs.h.  */
18565 _ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h.  */
18569
18570 int
18571 main ()
18572 {
18573
18574   ;
18575   return 0;
18576 }
18577 _ACEOF
18578 rm -f conftest.$ac_objext conftest$ac_exeext
18579 if { (ac_try="$ac_link"
18580 case "(($ac_try" in
18581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582   *) ac_try_echo=$ac_try;;
18583 esac
18584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585   (eval "$ac_link") 2>conftest.er1
18586   ac_status=$?
18587   grep -v '^ *+' conftest.er1 >conftest.err
18588   rm -f conftest.er1
18589   cat conftest.err >&5
18590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591   (exit $ac_status); } &&
18592          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18593   { (case "(($ac_try" in
18594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595   *) ac_try_echo=$ac_try;;
18596 esac
18597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18598   (eval "$ac_try") 2>&5
18599   ac_status=$?
18600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601   (exit $ac_status); }; } &&
18602          { ac_try='test -s conftest$ac_exeext'
18603   { (case "(($ac_try" in
18604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18605   *) ac_try_echo=$ac_try;;
18606 esac
18607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18608   (eval "$ac_try") 2>&5
18609   ac_status=$?
18610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611   (exit $ac_status); }; }; then
18612
18613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18614 }'`
18615 # Check for a 64-bit object if we didn't find anything.
18616 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; }
18617 }'`; fi
18618 else
18619   echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18621
18622
18623 fi
18624
18625 rm -f core conftest.err conftest.$ac_objext \
18626       conftest$ac_exeext conftest.$ac_ext
18627 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18628
18629         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18630         # Warning - without using the other run time loading flags,
18631         # -berok will link without error, but may produce a broken library.
18632         no_undefined_flag_CXX=' ${wl}-bernotok'
18633         allow_undefined_flag_CXX=' ${wl}-berok'
18634         # Exported symbols can be pulled into shared objects from archives
18635         whole_archive_flag_spec_CXX='$convenience'
18636         archive_cmds_need_lc_CXX=yes
18637         # This is similar to how AIX traditionally builds its shared libraries.
18638         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'
18639       fi
18640     fi
18641     ;;
18642
18643   beos*)
18644     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18645       allow_undefined_flag_CXX=unsupported
18646       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18647       # support --undefined.  This deserves some investigation.  FIXME
18648       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18649     else
18650       ld_shlibs_CXX=no
18651     fi
18652     ;;
18653
18654   chorus*)
18655     case $cc_basename in
18656       *)
18657         # FIXME: insert proper C++ library support
18658         ld_shlibs_CXX=no
18659         ;;
18660     esac
18661     ;;
18662
18663   cygwin* | mingw* | pw32*)
18664     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18665     # as there is no search path for DLLs.
18666     hardcode_libdir_flag_spec_CXX='-L$libdir'
18667     allow_undefined_flag_CXX=unsupported
18668     always_export_symbols_CXX=no
18669     enable_shared_with_static_runtimes_CXX=yes
18670
18671     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18672       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'
18673       # If the export-symbols file already is a .def file (1st line
18674       # is EXPORTS), use it as is; otherwise, prepend...
18675       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18676         cp $export_symbols $output_objdir/$soname.def;
18677       else
18678         echo EXPORTS > $output_objdir/$soname.def;
18679         cat $export_symbols >> $output_objdir/$soname.def;
18680       fi~
18681       $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'
18682     else
18683       ld_shlibs_CXX=no
18684     fi
18685   ;;
18686       darwin* | rhapsody*)
18687         case $host_os in
18688         rhapsody* | darwin1.[012])
18689          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18690          ;;
18691        *) # Darwin 1.3 on
18692          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18693            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18694          else
18695            case ${MACOSX_DEPLOYMENT_TARGET} in
18696              10.[012])
18697                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18698                ;;
18699              10.*)
18700                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18701                ;;
18702            esac
18703          fi
18704          ;;
18705         esac
18706       archive_cmds_need_lc_CXX=no
18707       hardcode_direct_CXX=no
18708       hardcode_automatic_CXX=yes
18709       hardcode_shlibpath_var_CXX=unsupported
18710       whole_archive_flag_spec_CXX=''
18711       link_all_deplibs_CXX=yes
18712
18713     if test "$GXX" = yes ; then
18714       lt_int_apple_cc_single_mod=no
18715       output_verbose_link_cmd='echo'
18716       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18717        lt_int_apple_cc_single_mod=yes
18718       fi
18719       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18720        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18721       else
18722           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'
18723         fi
18724         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18725         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18726           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18727             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}'
18728           else
18729             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}'
18730           fi
18731             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}'
18732       else
18733       case $cc_basename in
18734         xlc*)
18735          output_verbose_link_cmd='echo'
18736           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'
18737           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18738           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18739           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}'
18740           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}'
18741           ;;
18742        *)
18743          ld_shlibs_CXX=no
18744           ;;
18745       esac
18746       fi
18747         ;;
18748
18749   dgux*)
18750     case $cc_basename in
18751       ec++*)
18752         # FIXME: insert proper C++ library support
18753         ld_shlibs_CXX=no
18754         ;;
18755       ghcx*)
18756         # Green Hills C++ Compiler
18757         # FIXME: insert proper C++ library support
18758         ld_shlibs_CXX=no
18759         ;;
18760       *)
18761         # FIXME: insert proper C++ library support
18762         ld_shlibs_CXX=no
18763         ;;
18764     esac
18765     ;;
18766   freebsd[12]*)
18767     # C++ shared libraries reported to be fairly broken before switch to ELF
18768     ld_shlibs_CXX=no
18769     ;;
18770   freebsd-elf*)
18771     archive_cmds_need_lc_CXX=no
18772     ;;
18773   freebsd* | kfreebsd*-gnu | dragonfly*)
18774     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18775     # conventions
18776     ld_shlibs_CXX=yes
18777     ;;
18778   gnu*)
18779     ;;
18780   hpux9*)
18781     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18782     hardcode_libdir_separator_CXX=:
18783     export_dynamic_flag_spec_CXX='${wl}-E'
18784     hardcode_direct_CXX=yes
18785     hardcode_minus_L_CXX=yes # Not in the search PATH,
18786                                 # but as the default
18787                                 # location of the library.
18788
18789     case $cc_basename in
18790     CC*)
18791       # FIXME: insert proper C++ library support
18792       ld_shlibs_CXX=no
18793       ;;
18794     aCC*)
18795       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'
18796       # Commands to make compiler produce verbose output that lists
18797       # what "hidden" libraries, object files and flags are used when
18798       # linking a shared library.
18799       #
18800       # There doesn't appear to be a way to prevent this compiler from
18801       # explicitly linking system object files so we need to strip them
18802       # from the output so that they don't get included in the library
18803       # dependencies.
18804       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'
18805       ;;
18806     *)
18807       if test "$GXX" = yes; then
18808         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'
18809       else
18810         # FIXME: insert proper C++ library support
18811         ld_shlibs_CXX=no
18812       fi
18813       ;;
18814     esac
18815     ;;
18816   hpux10*|hpux11*)
18817     if test $with_gnu_ld = no; then
18818       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18819       hardcode_libdir_separator_CXX=:
18820
18821       case $host_cpu in
18822       hppa*64*|ia64*)
18823         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18824         ;;
18825       *)
18826         export_dynamic_flag_spec_CXX='${wl}-E'
18827         ;;
18828       esac
18829     fi
18830     case $host_cpu in
18831     hppa*64*|ia64*)
18832       hardcode_direct_CXX=no
18833       hardcode_shlibpath_var_CXX=no
18834       ;;
18835     *)
18836       hardcode_direct_CXX=yes
18837       hardcode_minus_L_CXX=yes # Not in the search PATH,
18838                                               # but as the default
18839                                               # location of the library.
18840       ;;
18841     esac
18842
18843     case $cc_basename in
18844       CC*)
18845         # FIXME: insert proper C++ library support
18846         ld_shlibs_CXX=no
18847         ;;
18848       aCC*)
18849         case $host_cpu in
18850         hppa*64*)
18851           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18852           ;;
18853         ia64*)
18854           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18855           ;;
18856         *)
18857           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18858           ;;
18859         esac
18860         # Commands to make compiler produce verbose output that lists
18861         # what "hidden" libraries, object files and flags are used when
18862         # linking a shared library.
18863         #
18864         # There doesn't appear to be a way to prevent this compiler from
18865         # explicitly linking system object files so we need to strip them
18866         # from the output so that they don't get included in the library
18867         # dependencies.
18868         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'
18869         ;;
18870       *)
18871         if test "$GXX" = yes; then
18872           if test $with_gnu_ld = no; then
18873             case $host_cpu in
18874             hppa*64*)
18875               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18876               ;;
18877             ia64*)
18878               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18879               ;;
18880             *)
18881               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'
18882               ;;
18883             esac
18884           fi
18885         else
18886           # FIXME: insert proper C++ library support
18887           ld_shlibs_CXX=no
18888         fi
18889         ;;
18890     esac
18891     ;;
18892   interix3*)
18893     hardcode_direct_CXX=no
18894     hardcode_shlibpath_var_CXX=no
18895     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18896     export_dynamic_flag_spec_CXX='${wl}-E'
18897     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18898     # Instead, shared libraries are loaded at an image base (0x10000000 by
18899     # default) and relocated if they conflict, which is a slow very memory
18900     # consuming and fragmenting process.  To avoid this, we pick a random,
18901     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18902     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18903     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'
18904     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'
18905     ;;
18906   irix5* | irix6*)
18907     case $cc_basename in
18908       CC*)
18909         # SGI C++
18910         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'
18911
18912         # Archives containing C++ object files must be created using
18913         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18914         # necessary to make sure instantiated templates are included
18915         # in the archive.
18916         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18917         ;;
18918       *)
18919         if test "$GXX" = yes; then
18920           if test "$with_gnu_ld" = no; then
18921             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'
18922           else
18923             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'
18924           fi
18925         fi
18926         link_all_deplibs_CXX=yes
18927         ;;
18928     esac
18929     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18930     hardcode_libdir_separator_CXX=:
18931     ;;
18932   linux*)
18933     case $cc_basename in
18934       KCC*)
18935         # Kuck and Associates, Inc. (KAI) C++ Compiler
18936
18937         # KCC will only create a shared library if the output file
18938         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18939         # to its proper name (with version) after linking.
18940         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'
18941         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'
18942         # Commands to make compiler produce verbose output that lists
18943         # what "hidden" libraries, object files and flags are used when
18944         # linking a shared library.
18945         #
18946         # There doesn't appear to be a way to prevent this compiler from
18947         # explicitly linking system object files so we need to strip them
18948         # from the output so that they don't get included in the library
18949         # dependencies.
18950         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'
18951
18952         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18953         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18954
18955         # Archives containing C++ object files must be created using
18956         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18957         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18958         ;;
18959       icpc*)
18960         # Intel C++
18961         with_gnu_ld=yes
18962         # version 8.0 and above of icpc choke on multiply defined symbols
18963         # if we add $predep_objects and $postdep_objects, however 7.1 and
18964         # earlier do not add the objects themselves.
18965         case `$CC -V 2>&1` in
18966         *"Version 7."*)
18967           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18968           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'
18969           ;;
18970         *)  # Version 8.0 or newer
18971           tmp_idyn=
18972           case $host_cpu in
18973             ia64*) tmp_idyn=' -i_dynamic';;
18974           esac
18975           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18976           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'
18977           ;;
18978         esac
18979         archive_cmds_need_lc_CXX=no
18980         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18981         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18982         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18983         ;;
18984       pgCC*)
18985         # Portland Group C++ compiler
18986         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18987         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'
18988
18989         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18990         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18991         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'
18992         ;;
18993       cxx*)
18994         # Compaq C++
18995         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18996         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'
18997
18998         runpath_var=LD_RUN_PATH
18999         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19000         hardcode_libdir_separator_CXX=:
19001
19002         # Commands to make compiler produce verbose output that lists
19003         # what "hidden" libraries, object files and flags are used when
19004         # linking a shared library.
19005         #
19006         # There doesn't appear to be a way to prevent this compiler from
19007         # explicitly linking system object files so we need to strip them
19008         # from the output so that they don't get included in the library
19009         # dependencies.
19010         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'
19011         ;;
19012     esac
19013     ;;
19014   lynxos*)
19015     # FIXME: insert proper C++ library support
19016     ld_shlibs_CXX=no
19017     ;;
19018   m88k*)
19019     # FIXME: insert proper C++ library support
19020     ld_shlibs_CXX=no
19021     ;;
19022   mvs*)
19023     case $cc_basename in
19024       cxx*)
19025         # FIXME: insert proper C++ library support
19026         ld_shlibs_CXX=no
19027         ;;
19028       *)
19029         # FIXME: insert proper C++ library support
19030         ld_shlibs_CXX=no
19031         ;;
19032     esac
19033     ;;
19034   netbsd*)
19035     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19036       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19037       wlarc=
19038       hardcode_libdir_flag_spec_CXX='-R$libdir'
19039       hardcode_direct_CXX=yes
19040       hardcode_shlibpath_var_CXX=no
19041     fi
19042     # Workaround some broken pre-1.5 toolchains
19043     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19044     ;;
19045   openbsd2*)
19046     # C++ shared libraries are fairly broken
19047     ld_shlibs_CXX=no
19048     ;;
19049   openbsd*)
19050     hardcode_direct_CXX=yes
19051     hardcode_shlibpath_var_CXX=no
19052     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19053     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19054     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19055       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19056       export_dynamic_flag_spec_CXX='${wl}-E'
19057       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19058     fi
19059     output_verbose_link_cmd='echo'
19060     ;;
19061   osf3*)
19062     case $cc_basename in
19063       KCC*)
19064         # Kuck and Associates, Inc. (KAI) C++ Compiler
19065
19066         # KCC will only create a shared library if the output file
19067         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19068         # to its proper name (with version) after linking.
19069         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'
19070
19071         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19072         hardcode_libdir_separator_CXX=:
19073
19074         # Archives containing C++ object files must be created using
19075         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19076         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19077
19078         ;;
19079       RCC*)
19080         # Rational C++ 2.4.1
19081         # FIXME: insert proper C++ library support
19082         ld_shlibs_CXX=no
19083         ;;
19084       cxx*)
19085         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19086         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'
19087
19088         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19089         hardcode_libdir_separator_CXX=:
19090
19091         # Commands to make compiler produce verbose output that lists
19092         # what "hidden" libraries, object files and flags are used when
19093         # linking a shared library.
19094         #
19095         # There doesn't appear to be a way to prevent this compiler from
19096         # explicitly linking system object files so we need to strip them
19097         # from the output so that they don't get included in the library
19098         # dependencies.
19099         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'
19100         ;;
19101       *)
19102         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19103           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19104           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'
19105
19106           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19107           hardcode_libdir_separator_CXX=:
19108
19109           # Commands to make compiler produce verbose output that lists
19110           # what "hidden" libraries, object files and flags are used when
19111           # linking a shared library.
19112           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19113
19114         else
19115           # FIXME: insert proper C++ library support
19116           ld_shlibs_CXX=no
19117         fi
19118         ;;
19119     esac
19120     ;;
19121   osf4* | osf5*)
19122     case $cc_basename in
19123       KCC*)
19124         # Kuck and Associates, Inc. (KAI) C++ Compiler
19125
19126         # KCC will only create a shared library if the output file
19127         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19128         # to its proper name (with version) after linking.
19129         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'
19130
19131         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19132         hardcode_libdir_separator_CXX=:
19133
19134         # Archives containing C++ object files must be created using
19135         # the KAI C++ compiler.
19136         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19137         ;;
19138       RCC*)
19139         # Rational C++ 2.4.1
19140         # FIXME: insert proper C++ library support
19141         ld_shlibs_CXX=no
19142         ;;
19143       cxx*)
19144         allow_undefined_flag_CXX=' -expect_unresolved \*'
19145         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'
19146         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19147           echo "-hidden">> $lib.exp~
19148           $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~
19149           $rm $lib.exp'
19150
19151         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19152         hardcode_libdir_separator_CXX=:
19153
19154         # Commands to make compiler produce verbose output that lists
19155         # what "hidden" libraries, object files and flags are used when
19156         # linking a shared library.
19157         #
19158         # There doesn't appear to be a way to prevent this compiler from
19159         # explicitly linking system object files so we need to strip them
19160         # from the output so that they don't get included in the library
19161         # dependencies.
19162         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'
19163         ;;
19164       *)
19165         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19166           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19167          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'
19168
19169           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19170           hardcode_libdir_separator_CXX=:
19171
19172           # Commands to make compiler produce verbose output that lists
19173           # what "hidden" libraries, object files and flags are used when
19174           # linking a shared library.
19175           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19176
19177         else
19178           # FIXME: insert proper C++ library support
19179           ld_shlibs_CXX=no
19180         fi
19181         ;;
19182     esac
19183     ;;
19184   psos*)
19185     # FIXME: insert proper C++ library support
19186     ld_shlibs_CXX=no
19187     ;;
19188   sunos4*)
19189     case $cc_basename in
19190       CC*)
19191         # Sun C++ 4.x
19192         # FIXME: insert proper C++ library support
19193         ld_shlibs_CXX=no
19194         ;;
19195       lcc*)
19196         # Lucid
19197         # FIXME: insert proper C++ library support
19198         ld_shlibs_CXX=no
19199         ;;
19200       *)
19201         # FIXME: insert proper C++ library support
19202         ld_shlibs_CXX=no
19203         ;;
19204     esac
19205     ;;
19206   solaris*)
19207     case $cc_basename in
19208       CC*)
19209         # Sun C++ 4.2, 5.x and Centerline C++
19210         archive_cmds_need_lc_CXX=yes
19211         no_undefined_flag_CXX=' -zdefs'
19212         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19213         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19214         $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'
19215
19216         hardcode_libdir_flag_spec_CXX='-R$libdir'
19217         hardcode_shlibpath_var_CXX=no
19218         case $host_os in
19219           solaris2.[0-5] | solaris2.[0-5].*) ;;
19220           *)
19221             # The C++ compiler is used as linker so we must use $wl
19222             # flag to pass the commands to the underlying system
19223             # linker. We must also pass each convience library through
19224             # to the system linker between allextract/defaultextract.
19225             # The C++ compiler will combine linker options so we
19226             # cannot just pass the convience library names through
19227             # without $wl.
19228             # Supported since Solaris 2.6 (maybe 2.5.1?)
19229             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'
19230             ;;
19231         esac
19232         link_all_deplibs_CXX=yes
19233
19234         output_verbose_link_cmd='echo'
19235
19236         # Archives containing C++ object files must be created using
19237         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19238         # necessary to make sure instantiated templates are included
19239         # in the archive.
19240         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19241         ;;
19242       gcx*)
19243         # Green Hills C++ Compiler
19244         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19245
19246         # The C++ compiler must be used to create the archive.
19247         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19248         ;;
19249       *)
19250         # GNU C++ compiler with Solaris linker
19251         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19252           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19253           if $CC --version | grep -v '^2\.7' > /dev/null; then
19254             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19255             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19256                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19257
19258             # Commands to make compiler produce verbose output that lists
19259             # what "hidden" libraries, object files and flags are used when
19260             # linking a shared library.
19261             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19262           else
19263             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19264             # platform.
19265             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19266             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19267                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19268
19269             # Commands to make compiler produce verbose output that lists
19270             # what "hidden" libraries, object files and flags are used when
19271             # linking a shared library.
19272             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19273           fi
19274
19275           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19276         fi
19277         ;;
19278     esac
19279     ;;
19280   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19281     no_undefined_flag_CXX='${wl}-z,text'
19282     archive_cmds_need_lc_CXX=no
19283     hardcode_shlibpath_var_CXX=no
19284     runpath_var='LD_RUN_PATH'
19285
19286     case $cc_basename in
19287       CC*)
19288         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19289         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19290         ;;
19291       *)
19292         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19293         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19294         ;;
19295     esac
19296     ;;
19297   sysv5* | sco3.2v5* | sco5v6*)
19298     # Note: We can NOT use -z defs as we might desire, because we do not
19299     # link with -lc, and that would cause any symbols used from libc to
19300     # always be unresolved, which means just about no library would
19301     # ever link correctly.  If we're not using GNU ld we use -z text
19302     # though, which does catch some bad symbols but isn't as heavy-handed
19303     # as -z defs.
19304     # For security reasons, it is highly recommended that you always
19305     # use absolute paths for naming shared libraries, and exclude the
19306     # DT_RUNPATH tag from executables and libraries.  But doing so
19307     # requires that you compile everything twice, which is a pain.
19308     # So that behaviour is only enabled if SCOABSPATH is set to a
19309     # non-empty value in the environment.  Most likely only useful for
19310     # creating official distributions of packages.
19311     # This is a hack until libtool officially supports absolute path
19312     # names for shared libraries.
19313     no_undefined_flag_CXX='${wl}-z,text'
19314     allow_undefined_flag_CXX='${wl}-z,nodefs'
19315     archive_cmds_need_lc_CXX=no
19316     hardcode_shlibpath_var_CXX=no
19317     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19318     hardcode_libdir_separator_CXX=':'
19319     link_all_deplibs_CXX=yes
19320     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19321     runpath_var='LD_RUN_PATH'
19322
19323     case $cc_basename in
19324       CC*)
19325         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19326         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19327         ;;
19328       *)
19329         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19330         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19331         ;;
19332     esac
19333     ;;
19334   tandem*)
19335     case $cc_basename in
19336       NCC*)
19337         # NonStop-UX NCC 3.20
19338         # FIXME: insert proper C++ library support
19339         ld_shlibs_CXX=no
19340         ;;
19341       *)
19342         # FIXME: insert proper C++ library support
19343         ld_shlibs_CXX=no
19344         ;;
19345     esac
19346     ;;
19347   vxworks*)
19348     # FIXME: insert proper C++ library support
19349     ld_shlibs_CXX=no
19350     ;;
19351   *)
19352     # FIXME: insert proper C++ library support
19353     ld_shlibs_CXX=no
19354     ;;
19355 esac
19356 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19357 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19358 test "$ld_shlibs_CXX" = no && can_build_shared=no
19359
19360 GCC_CXX="$GXX"
19361 LD_CXX="$LD"
19362
19363
19364 cat > conftest.$ac_ext <<EOF
19365 class Foo
19366 {
19367 public:
19368   Foo (void) { a = 0; }
19369 private:
19370   int a;
19371 };
19372 EOF
19373
19374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19375   (eval $ac_compile) 2>&5
19376   ac_status=$?
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); }; then
19379   # Parse the compiler output and extract the necessary
19380   # objects, libraries and library flags.
19381
19382   # Sentinel used to keep track of whether or not we are before
19383   # the conftest object file.
19384   pre_test_object_deps_done=no
19385
19386   # The `*' in the case matches for architectures that use `case' in
19387   # $output_verbose_cmd can trigger glob expansion during the loop
19388   # eval without this substitution.
19389   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19390
19391   for p in `eval $output_verbose_link_cmd`; do
19392     case $p in
19393
19394     -L* | -R* | -l*)
19395        # Some compilers place space between "-{L,R}" and the path.
19396        # Remove the space.
19397        if test $p = "-L" \
19398           || test $p = "-R"; then
19399          prev=$p
19400          continue
19401        else
19402          prev=
19403        fi
19404
19405        if test "$pre_test_object_deps_done" = no; then
19406          case $p in
19407          -L* | -R*)
19408            # Internal compiler library paths should come after those
19409            # provided the user.  The postdeps already come after the
19410            # user supplied libs so there is no need to process them.
19411            if test -z "$compiler_lib_search_path_CXX"; then
19412              compiler_lib_search_path_CXX="${prev}${p}"
19413            else
19414              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19415            fi
19416            ;;
19417          # The "-l" case would never come before the object being
19418          # linked, so don't bother handling this case.
19419          esac
19420        else
19421          if test -z "$postdeps_CXX"; then
19422            postdeps_CXX="${prev}${p}"
19423          else
19424            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19425          fi
19426        fi
19427        ;;
19428
19429     *.$objext)
19430        # This assumes that the test object file only shows up
19431        # once in the compiler output.
19432        if test "$p" = "conftest.$objext"; then
19433          pre_test_object_deps_done=yes
19434          continue
19435        fi
19436
19437        if test "$pre_test_object_deps_done" = no; then
19438          if test -z "$predep_objects_CXX"; then
19439            predep_objects_CXX="$p"
19440          else
19441            predep_objects_CXX="$predep_objects_CXX $p"
19442          fi
19443        else
19444          if test -z "$postdep_objects_CXX"; then
19445            postdep_objects_CXX="$p"
19446          else
19447            postdep_objects_CXX="$postdep_objects_CXX $p"
19448          fi
19449        fi
19450        ;;
19451
19452     *) ;; # Ignore the rest.
19453
19454     esac
19455   done
19456
19457   # Clean up.
19458   rm -f a.out a.exe
19459 else
19460   echo "libtool.m4: error: problem compiling CXX test program"
19461 fi
19462
19463 $rm -f confest.$objext
19464
19465 # PORTME: override above test on systems where it is broken
19466 case $host_os in
19467 interix3*)
19468   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19469   # hack all around it, let's just trust "g++" to DTRT.
19470   predep_objects_CXX=
19471   postdep_objects_CXX=
19472   postdeps_CXX=
19473   ;;
19474
19475 solaris*)
19476   case $cc_basename in
19477   CC*)
19478     # Adding this requires a known-good setup of shared libraries for
19479     # Sun compiler versions before 5.6, else PIC objects from an old
19480     # archive will be linked into the output, leading to subtle bugs.
19481     postdeps_CXX='-lCstd -lCrun'
19482     ;;
19483   esac
19484   ;;
19485 esac
19486
19487
19488 case " $postdeps_CXX " in
19489 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19490 esac
19491
19492 lt_prog_compiler_wl_CXX=
19493 lt_prog_compiler_pic_CXX=
19494 lt_prog_compiler_static_CXX=
19495
19496 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19497 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19498
19499   # C++ specific cases for pic, static, wl, etc.
19500   if test "$GXX" = yes; then
19501     lt_prog_compiler_wl_CXX='-Wl,'
19502     lt_prog_compiler_static_CXX='-static'
19503
19504     case $host_os in
19505     aix*)
19506       # All AIX code is PIC.
19507       if test "$host_cpu" = ia64; then
19508         # AIX 5 now supports IA64 processor
19509         lt_prog_compiler_static_CXX='-Bstatic'
19510       fi
19511       ;;
19512     amigaos*)
19513       # FIXME: we need at least 68020 code to build shared libraries, but
19514       # adding the `-m68020' flag to GCC prevents building anything better,
19515       # like `-m68040'.
19516       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19517       ;;
19518     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19519       # PIC is the default for these OSes.
19520       ;;
19521     mingw* | os2* | pw32*)
19522       # This hack is so that the source file can tell whether it is being
19523       # built for inclusion in a dll (and should export symbols for example).
19524       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19525       ;;
19526     darwin* | rhapsody*)
19527       # PIC is the default on this platform
19528       # Common symbols not allowed in MH_DYLIB files
19529       lt_prog_compiler_pic_CXX='-fno-common'
19530       ;;
19531     *djgpp*)
19532       # DJGPP does not support shared libraries at all
19533       lt_prog_compiler_pic_CXX=
19534       ;;
19535     interix3*)
19536       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19537       # Instead, we relocate shared libraries at runtime.
19538       ;;
19539     sysv4*MP*)
19540       if test -d /usr/nec; then
19541         lt_prog_compiler_pic_CXX=-Kconform_pic
19542       fi
19543       ;;
19544     hpux*)
19545       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19546       # not for PA HP-UX.
19547       case $host_cpu in
19548       hppa*64*|ia64*)
19549         ;;
19550       *)
19551         lt_prog_compiler_pic_CXX='-fPIC'
19552         ;;
19553       esac
19554       ;;
19555     *)
19556       lt_prog_compiler_pic_CXX='-fPIC'
19557       ;;
19558     esac
19559   else
19560     case $host_os in
19561       aix4* | aix5*)
19562         # All AIX code is PIC.
19563         if test "$host_cpu" = ia64; then
19564           # AIX 5 now supports IA64 processor
19565           lt_prog_compiler_static_CXX='-Bstatic'
19566         else
19567           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19568         fi
19569         ;;
19570       chorus*)
19571         case $cc_basename in
19572         cxch68*)
19573           # Green Hills C++ Compiler
19574           # _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"
19575           ;;
19576         esac
19577         ;;
19578        darwin*)
19579          # PIC is the default on this platform
19580          # Common symbols not allowed in MH_DYLIB files
19581          case $cc_basename in
19582            xlc*)
19583            lt_prog_compiler_pic_CXX='-qnocommon'
19584            lt_prog_compiler_wl_CXX='-Wl,'
19585            ;;
19586          esac
19587        ;;
19588       dgux*)
19589         case $cc_basename in
19590           ec++*)
19591             lt_prog_compiler_pic_CXX='-KPIC'
19592             ;;
19593           ghcx*)
19594             # Green Hills C++ Compiler
19595             lt_prog_compiler_pic_CXX='-pic'
19596             ;;
19597           *)
19598             ;;
19599         esac
19600         ;;
19601       freebsd* | kfreebsd*-gnu | dragonfly*)
19602         # FreeBSD uses GNU C++
19603         ;;
19604       hpux9* | hpux10* | hpux11*)
19605         case $cc_basename in
19606           CC*)
19607             lt_prog_compiler_wl_CXX='-Wl,'
19608             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19609             if test "$host_cpu" != ia64; then
19610               lt_prog_compiler_pic_CXX='+Z'
19611             fi
19612             ;;
19613           aCC*)
19614             lt_prog_compiler_wl_CXX='-Wl,'
19615             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19616             case $host_cpu in
19617             hppa*64*|ia64*)
19618               # +Z the default
19619               ;;
19620             *)
19621               lt_prog_compiler_pic_CXX='+Z'
19622               ;;
19623             esac
19624             ;;
19625           *)
19626             ;;
19627         esac
19628         ;;
19629       interix*)
19630         # This is c89, which is MS Visual C++ (no shared libs)
19631         # Anyone wants to do a port?
19632         ;;
19633       irix5* | irix6* | nonstopux*)
19634         case $cc_basename in
19635           CC*)
19636             lt_prog_compiler_wl_CXX='-Wl,'
19637             lt_prog_compiler_static_CXX='-non_shared'
19638             # CC pic flag -KPIC is the default.
19639             ;;
19640           *)
19641             ;;
19642         esac
19643         ;;
19644       linux*)
19645         case $cc_basename in
19646           KCC*)
19647             # KAI C++ Compiler
19648             lt_prog_compiler_wl_CXX='--backend -Wl,'
19649             lt_prog_compiler_pic_CXX='-fPIC'
19650             ;;
19651           icpc* | ecpc*)
19652             # Intel C++
19653             lt_prog_compiler_wl_CXX='-Wl,'
19654             lt_prog_compiler_pic_CXX='-KPIC'
19655             lt_prog_compiler_static_CXX='-static'
19656             ;;
19657           pgCC*)
19658             # Portland Group C++ compiler.
19659             lt_prog_compiler_wl_CXX='-Wl,'
19660             lt_prog_compiler_pic_CXX='-fpic'
19661             lt_prog_compiler_static_CXX='-Bstatic'
19662             ;;
19663           cxx*)
19664             # Compaq C++
19665             # Make sure the PIC flag is empty.  It appears that all Alpha
19666             # Linux and Compaq Tru64 Unix objects are PIC.
19667             lt_prog_compiler_pic_CXX=
19668             lt_prog_compiler_static_CXX='-non_shared'
19669             ;;
19670           *)
19671             ;;
19672         esac
19673         ;;
19674       lynxos*)
19675         ;;
19676       m88k*)
19677         ;;
19678       mvs*)
19679         case $cc_basename in
19680           cxx*)
19681             lt_prog_compiler_pic_CXX='-W c,exportall'
19682             ;;
19683           *)
19684             ;;
19685         esac
19686         ;;
19687       netbsd*)
19688         ;;
19689       osf3* | osf4* | osf5*)
19690         case $cc_basename in
19691           KCC*)
19692             lt_prog_compiler_wl_CXX='--backend -Wl,'
19693             ;;
19694           RCC*)
19695             # Rational C++ 2.4.1
19696             lt_prog_compiler_pic_CXX='-pic'
19697             ;;
19698           cxx*)
19699             # Digital/Compaq C++
19700             lt_prog_compiler_wl_CXX='-Wl,'
19701             # Make sure the PIC flag is empty.  It appears that all Alpha
19702             # Linux and Compaq Tru64 Unix objects are PIC.
19703             lt_prog_compiler_pic_CXX=
19704             lt_prog_compiler_static_CXX='-non_shared'
19705             ;;
19706           *)
19707             ;;
19708         esac
19709         ;;
19710       psos*)
19711         ;;
19712       solaris*)
19713         case $cc_basename in
19714           CC*)
19715             # Sun C++ 4.2, 5.x and Centerline C++
19716             lt_prog_compiler_pic_CXX='-KPIC'
19717             lt_prog_compiler_static_CXX='-Bstatic'
19718             lt_prog_compiler_wl_CXX='-Qoption ld '
19719             ;;
19720           gcx*)
19721             # Green Hills C++ Compiler
19722             lt_prog_compiler_pic_CXX='-PIC'
19723             ;;
19724           *)
19725             ;;
19726         esac
19727         ;;
19728       sunos4*)
19729         case $cc_basename in
19730           CC*)
19731             # Sun C++ 4.x
19732             lt_prog_compiler_pic_CXX='-pic'
19733             lt_prog_compiler_static_CXX='-Bstatic'
19734             ;;
19735           lcc*)
19736             # Lucid
19737             lt_prog_compiler_pic_CXX='-pic'
19738             ;;
19739           *)
19740             ;;
19741         esac
19742         ;;
19743       tandem*)
19744         case $cc_basename in
19745           NCC*)
19746             # NonStop-UX NCC 3.20
19747             lt_prog_compiler_pic_CXX='-KPIC'
19748             ;;
19749           *)
19750             ;;
19751         esac
19752         ;;
19753       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19754         case $cc_basename in
19755           CC*)
19756             lt_prog_compiler_wl_CXX='-Wl,'
19757             lt_prog_compiler_pic_CXX='-KPIC'
19758             lt_prog_compiler_static_CXX='-Bstatic'
19759             ;;
19760         esac
19761         ;;
19762       vxworks*)
19763         ;;
19764       *)
19765         lt_prog_compiler_can_build_shared_CXX=no
19766         ;;
19767     esac
19768   fi
19769
19770 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19771 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19772
19773 #
19774 # Check to make sure the PIC flag actually works.
19775 #
19776 if test -n "$lt_prog_compiler_pic_CXX"; then
19777
19778 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19779 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19780 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19781   echo $ECHO_N "(cached) $ECHO_C" >&6
19782 else
19783   lt_prog_compiler_pic_works_CXX=no
19784   ac_outfile=conftest.$ac_objext
19785    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19786    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19787    # Insert the option either (1) after the last *FLAGS variable, or
19788    # (2) before a word containing "conftest.", or (3) at the end.
19789    # Note that $ac_compile itself does not contain backslashes and begins
19790    # with a dollar sign (not a hyphen), so the echo should work correctly.
19791    # The option is referenced via a variable to avoid confusing sed.
19792    lt_compile=`echo "$ac_compile" | $SED \
19793    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19795    -e 's:$: $lt_compiler_flag:'`
19796    (eval echo "\"\$as_me:19793: $lt_compile\"" >&5)
19797    (eval "$lt_compile" 2>conftest.err)
19798    ac_status=$?
19799    cat conftest.err >&5
19800    echo "$as_me:19797: \$? = $ac_status" >&5
19801    if (exit $ac_status) && test -s "$ac_outfile"; then
19802      # The compiler can only warn and ignore the option if not recognized
19803      # So say no if there are warnings other than the usual output.
19804      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19805      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19806      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19807        lt_prog_compiler_pic_works_CXX=yes
19808      fi
19809    fi
19810    $rm conftest*
19811
19812 fi
19813 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19814 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19815
19816 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19817     case $lt_prog_compiler_pic_CXX in
19818      "" | " "*) ;;
19819      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19820      esac
19821 else
19822     lt_prog_compiler_pic_CXX=
19823      lt_prog_compiler_can_build_shared_CXX=no
19824 fi
19825
19826 fi
19827 case $host_os in
19828   # For platforms which do not support PIC, -DPIC is meaningless:
19829   *djgpp*)
19830     lt_prog_compiler_pic_CXX=
19831     ;;
19832   *)
19833     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19834     ;;
19835 esac
19836
19837 #
19838 # Check to make sure the static flag actually works.
19839 #
19840 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19841 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19842 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19843 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19844   echo $ECHO_N "(cached) $ECHO_C" >&6
19845 else
19846   lt_prog_compiler_static_works_CXX=no
19847    save_LDFLAGS="$LDFLAGS"
19848    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19849    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19850    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19851      # The linker can only warn and ignore the option if not recognized
19852      # So say no if there are warnings
19853      if test -s conftest.err; then
19854        # Append any errors to the config.log.
19855        cat conftest.err 1>&5
19856        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19857        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19858        if diff conftest.exp conftest.er2 >/dev/null; then
19859          lt_prog_compiler_static_works_CXX=yes
19860        fi
19861      else
19862        lt_prog_compiler_static_works_CXX=yes
19863      fi
19864    fi
19865    $rm conftest*
19866    LDFLAGS="$save_LDFLAGS"
19867
19868 fi
19869 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19870 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19871
19872 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19873     :
19874 else
19875     lt_prog_compiler_static_CXX=
19876 fi
19877
19878
19879 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19880 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19881 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19882   echo $ECHO_N "(cached) $ECHO_C" >&6
19883 else
19884   lt_cv_prog_compiler_c_o_CXX=no
19885    $rm -r conftest 2>/dev/null
19886    mkdir conftest
19887    cd conftest
19888    mkdir out
19889    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19890
19891    lt_compiler_flag="-o out/conftest2.$ac_objext"
19892    # Insert the option either (1) after the last *FLAGS variable, or
19893    # (2) before a word containing "conftest.", or (3) at the end.
19894    # Note that $ac_compile itself does not contain backslashes and begins
19895    # with a dollar sign (not a hyphen), so the echo should work correctly.
19896    lt_compile=`echo "$ac_compile" | $SED \
19897    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19898    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19899    -e 's:$: $lt_compiler_flag:'`
19900    (eval echo "\"\$as_me:19897: $lt_compile\"" >&5)
19901    (eval "$lt_compile" 2>out/conftest.err)
19902    ac_status=$?
19903    cat out/conftest.err >&5
19904    echo "$as_me:19901: \$? = $ac_status" >&5
19905    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19906    then
19907      # The compiler can only warn and ignore the option if not recognized
19908      # So say no if there are warnings
19909      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19910      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19911      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19912        lt_cv_prog_compiler_c_o_CXX=yes
19913      fi
19914    fi
19915    chmod u+w . 2>&5
19916    $rm conftest*
19917    # SGI C++ compiler will create directory out/ii_files/ for
19918    # template instantiation
19919    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19920    $rm out/* && rmdir out
19921    cd ..
19922    rmdir conftest
19923    $rm conftest*
19924
19925 fi
19926 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19927 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19928
19929
19930 hard_links="nottested"
19931 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19932   # do not overwrite the value of need_locks provided by the user
19933   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19934 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19935   hard_links=yes
19936   $rm conftest*
19937   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19938   touch conftest.a
19939   ln conftest.a conftest.b 2>&5 || hard_links=no
19940   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19941   { echo "$as_me:$LINENO: result: $hard_links" >&5
19942 echo "${ECHO_T}$hard_links" >&6; }
19943   if test "$hard_links" = no; then
19944     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19945 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19946     need_locks=warn
19947   fi
19948 else
19949   need_locks=no
19950 fi
19951
19952 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19953 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19954
19955   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19956   case $host_os in
19957   aix4* | aix5*)
19958     # If we're using GNU nm, then we don't want the "-C" option.
19959     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19960     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19961       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'
19962     else
19963       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'
19964     fi
19965     ;;
19966   pw32*)
19967     export_symbols_cmds_CXX="$ltdll_cmds"
19968   ;;
19969   cygwin* | mingw*)
19970     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'
19971   ;;
19972   *)
19973     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19974   ;;
19975   esac
19976
19977 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19978 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19979 test "$ld_shlibs_CXX" = no && can_build_shared=no
19980
19981 #
19982 # Do we need to explicitly link libc?
19983 #
19984 case "x$archive_cmds_need_lc_CXX" in
19985 x|xyes)
19986   # Assume -lc should be added
19987   archive_cmds_need_lc_CXX=yes
19988
19989   if test "$enable_shared" = yes && test "$GCC" = yes; then
19990     case $archive_cmds_CXX in
19991     *'~'*)
19992       # FIXME: we may have to deal with multi-command sequences.
19993       ;;
19994     '$CC '*)
19995       # Test whether the compiler implicitly links with -lc since on some
19996       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19997       # to ld, don't add -lc before -lgcc.
19998       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19999 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20000       $rm conftest*
20001       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20002
20003       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20004   (eval $ac_compile) 2>&5
20005   ac_status=$?
20006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007   (exit $ac_status); } 2>conftest.err; then
20008         soname=conftest
20009         lib=conftest
20010         libobjs=conftest.$ac_objext
20011         deplibs=
20012         wl=$lt_prog_compiler_wl_CXX
20013         pic_flag=$lt_prog_compiler_pic_CXX
20014         compiler_flags=-v
20015         linker_flags=-v
20016         verstring=
20017         output_objdir=.
20018         libname=conftest
20019         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20020         allow_undefined_flag_CXX=
20021         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20022   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20023   ac_status=$?
20024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025   (exit $ac_status); }
20026         then
20027           archive_cmds_need_lc_CXX=no
20028         else
20029           archive_cmds_need_lc_CXX=yes
20030         fi
20031         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20032       else
20033         cat conftest.err 1>&5
20034       fi
20035       $rm conftest*
20036       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20037 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20038       ;;
20039     esac
20040   fi
20041   ;;
20042 esac
20043
20044 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20045 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20046 library_names_spec=
20047 libname_spec='lib$name'
20048 soname_spec=
20049 shrext_cmds=".so"
20050 postinstall_cmds=
20051 postuninstall_cmds=
20052 finish_cmds=
20053 finish_eval=
20054 shlibpath_var=
20055 shlibpath_overrides_runpath=unknown
20056 version_type=none
20057 dynamic_linker="$host_os ld.so"
20058 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20059 if test "$GCC" = yes; then
20060   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20061   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20062     # if the path contains ";" then we assume it to be the separator
20063     # otherwise default to the standard path separator (i.e. ":") - it is
20064     # assumed that no part of a normal pathname contains ";" but that should
20065     # okay in the real world where ";" in dirpaths is itself problematic.
20066     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20067   else
20068     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20069   fi
20070 else
20071   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20072 fi
20073 need_lib_prefix=unknown
20074 hardcode_into_libs=no
20075
20076 # when you set need_version to no, make sure it does not cause -set_version
20077 # flags to be left without arguments
20078 need_version=unknown
20079
20080 case $host_os in
20081 aix3*)
20082   version_type=linux
20083   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20084   shlibpath_var=LIBPATH
20085
20086   # AIX 3 has no versioning support, so we append a major version to the name.
20087   soname_spec='${libname}${release}${shared_ext}$major'
20088   ;;
20089
20090 aix4* | aix5*)
20091   version_type=linux
20092   need_lib_prefix=no
20093   need_version=no
20094   hardcode_into_libs=yes
20095   if test "$host_cpu" = ia64; then
20096     # AIX 5 supports IA64
20097     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20098     shlibpath_var=LD_LIBRARY_PATH
20099   else
20100     # With GCC up to 2.95.x, collect2 would create an import file
20101     # for dependence libraries.  The import file would start with
20102     # the line `#! .'.  This would cause the generated library to
20103     # depend on `.', always an invalid library.  This was fixed in
20104     # development snapshots of GCC prior to 3.0.
20105     case $host_os in
20106       aix4 | aix4.[01] | aix4.[01].*)
20107       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20108            echo ' yes '
20109            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20110         :
20111       else
20112         can_build_shared=no
20113       fi
20114       ;;
20115     esac
20116     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20117     # soname into executable. Probably we can add versioning support to
20118     # collect2, so additional links can be useful in future.
20119     if test "$aix_use_runtimelinking" = yes; then
20120       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20121       # instead of lib<name>.a to let people know that these are not
20122       # typical AIX shared libraries.
20123       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20124     else
20125       # We preserve .a as extension for shared libraries through AIX4.2
20126       # and later when we are not doing run time linking.
20127       library_names_spec='${libname}${release}.a $libname.a'
20128       soname_spec='${libname}${release}${shared_ext}$major'
20129     fi
20130     shlibpath_var=LIBPATH
20131   fi
20132   ;;
20133
20134 amigaos*)
20135   library_names_spec='$libname.ixlibrary $libname.a'
20136   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20137   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'
20138   ;;
20139
20140 beos*)
20141   library_names_spec='${libname}${shared_ext}'
20142   dynamic_linker="$host_os ld.so"
20143   shlibpath_var=LIBRARY_PATH
20144   ;;
20145
20146 bsdi[45]*)
20147   version_type=linux
20148   need_version=no
20149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20150   soname_spec='${libname}${release}${shared_ext}$major'
20151   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20152   shlibpath_var=LD_LIBRARY_PATH
20153   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20154   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20155   # the default ld.so.conf also contains /usr/contrib/lib and
20156   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20157   # libtool to hard-code these into programs
20158   ;;
20159
20160 cygwin* | mingw* | pw32*)
20161   version_type=windows
20162   shrext_cmds=".dll"
20163   need_version=no
20164   need_lib_prefix=no
20165
20166   case $GCC,$host_os in
20167   yes,cygwin* | yes,mingw* | yes,pw32*)
20168     library_names_spec='$libname.dll.a'
20169     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20170     postinstall_cmds='base_file=`basename \${file}`~
20171       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20172       dldir=$destdir/`dirname \$dlpath`~
20173       test -d \$dldir || mkdir -p \$dldir~
20174       $install_prog $dir/$dlname \$dldir/$dlname~
20175       chmod a+x \$dldir/$dlname'
20176     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20177       dlpath=$dir/\$dldll~
20178        $rm \$dlpath'
20179     shlibpath_overrides_runpath=yes
20180
20181     case $host_os in
20182     cygwin*)
20183       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20184       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20185       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20186       ;;
20187     mingw*)
20188       # MinGW DLLs use traditional 'lib' prefix
20189       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20190       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20191       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20192         # It is most probably a Windows format PATH printed by
20193         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20194         # path with ; separators, and with drive letters. We can handle the
20195         # drive letters (cygwin fileutils understands them), so leave them,
20196         # especially as we might pass files found there to a mingw objdump,
20197         # which wouldn't understand a cygwinified path. Ahh.
20198         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20199       else
20200         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20201       fi
20202       ;;
20203     pw32*)
20204       # pw32 DLLs use 'pw' prefix rather than 'lib'
20205       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20206       ;;
20207     esac
20208     ;;
20209
20210   *)
20211     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20212     ;;
20213   esac
20214   dynamic_linker='Win32 ld.exe'
20215   # FIXME: first we should search . and the directory the executable is in
20216   shlibpath_var=PATH
20217   ;;
20218
20219 darwin* | rhapsody*)
20220   dynamic_linker="$host_os dyld"
20221   version_type=darwin
20222   need_lib_prefix=no
20223   need_version=no
20224   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20225   soname_spec='${libname}${release}${major}$shared_ext'
20226   shlibpath_overrides_runpath=yes
20227   shlibpath_var=DYLD_LIBRARY_PATH
20228   shrext_cmds='.dylib'
20229   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20230   if test "$GCC" = yes; then
20231     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"`
20232   else
20233     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20234   fi
20235   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20236   ;;
20237
20238 dgux*)
20239   version_type=linux
20240   need_lib_prefix=no
20241   need_version=no
20242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20243   soname_spec='${libname}${release}${shared_ext}$major'
20244   shlibpath_var=LD_LIBRARY_PATH
20245   ;;
20246
20247 freebsd1*)
20248   dynamic_linker=no
20249   ;;
20250
20251 kfreebsd*-gnu)
20252   version_type=linux
20253   need_lib_prefix=no
20254   need_version=no
20255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20256   soname_spec='${libname}${release}${shared_ext}$major'
20257   shlibpath_var=LD_LIBRARY_PATH
20258   shlibpath_overrides_runpath=no
20259   hardcode_into_libs=yes
20260   dynamic_linker='GNU ld.so'
20261   ;;
20262
20263 freebsd* | dragonfly*)
20264   # DragonFly does not have aout.  When/if they implement a new
20265   # versioning mechanism, adjust this.
20266   if test -x /usr/bin/objformat; then
20267     objformat=`/usr/bin/objformat`
20268   else
20269     case $host_os in
20270     freebsd[123]*) objformat=aout ;;
20271     *) objformat=elf ;;
20272     esac
20273   fi
20274   version_type=freebsd-$objformat
20275   case $version_type in
20276     freebsd-elf*)
20277       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20278       need_version=no
20279       need_lib_prefix=no
20280       ;;
20281     freebsd-*)
20282       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20283       need_version=yes
20284       ;;
20285   esac
20286   shlibpath_var=LD_LIBRARY_PATH
20287   case $host_os in
20288   freebsd2*)
20289     shlibpath_overrides_runpath=yes
20290     ;;
20291   freebsd3.[01]* | freebsdelf3.[01]*)
20292     shlibpath_overrides_runpath=yes
20293     hardcode_into_libs=yes
20294     ;;
20295   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20296   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20297     shlibpath_overrides_runpath=no
20298     hardcode_into_libs=yes
20299     ;;
20300   freebsd*) # from 4.6 on
20301     shlibpath_overrides_runpath=yes
20302     hardcode_into_libs=yes
20303     ;;
20304   esac
20305   ;;
20306
20307 gnu*)
20308   version_type=linux
20309   need_lib_prefix=no
20310   need_version=no
20311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20312   soname_spec='${libname}${release}${shared_ext}$major'
20313   shlibpath_var=LD_LIBRARY_PATH
20314   hardcode_into_libs=yes
20315   ;;
20316
20317 hpux9* | hpux10* | hpux11*)
20318   # Give a soname corresponding to the major version so that dld.sl refuses to
20319   # link against other versions.
20320   version_type=sunos
20321   need_lib_prefix=no
20322   need_version=no
20323   case $host_cpu in
20324   ia64*)
20325     shrext_cmds='.so'
20326     hardcode_into_libs=yes
20327     dynamic_linker="$host_os dld.so"
20328     shlibpath_var=LD_LIBRARY_PATH
20329     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20330     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20331     soname_spec='${libname}${release}${shared_ext}$major'
20332     if test "X$HPUX_IA64_MODE" = X32; then
20333       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20334     else
20335       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20336     fi
20337     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20338     ;;
20339    hppa*64*)
20340      shrext_cmds='.sl'
20341      hardcode_into_libs=yes
20342      dynamic_linker="$host_os dld.sl"
20343      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20344      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20345      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20346      soname_spec='${libname}${release}${shared_ext}$major'
20347      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20348      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20349      ;;
20350    *)
20351     shrext_cmds='.sl'
20352     dynamic_linker="$host_os dld.sl"
20353     shlibpath_var=SHLIB_PATH
20354     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20355     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20356     soname_spec='${libname}${release}${shared_ext}$major'
20357     ;;
20358   esac
20359   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20360   postinstall_cmds='chmod 555 $lib'
20361   ;;
20362
20363 interix3*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20370   shlibpath_var=LD_LIBRARY_PATH
20371   shlibpath_overrides_runpath=no
20372   hardcode_into_libs=yes
20373   ;;
20374
20375 irix5* | irix6* | nonstopux*)
20376   case $host_os in
20377     nonstopux*) version_type=nonstopux ;;
20378     *)
20379         if test "$lt_cv_prog_gnu_ld" = yes; then
20380                 version_type=linux
20381         else
20382                 version_type=irix
20383         fi ;;
20384   esac
20385   need_lib_prefix=no
20386   need_version=no
20387   soname_spec='${libname}${release}${shared_ext}$major'
20388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20389   case $host_os in
20390   irix5* | nonstopux*)
20391     libsuff= shlibsuff=
20392     ;;
20393   *)
20394     case $LD in # libtool.m4 will add one of these switches to LD
20395     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20396       libsuff= shlibsuff= libmagic=32-bit;;
20397     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20398       libsuff=32 shlibsuff=N32 libmagic=N32;;
20399     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20400       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20401     *) libsuff= shlibsuff= libmagic=never-match;;
20402     esac
20403     ;;
20404   esac
20405   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20406   shlibpath_overrides_runpath=no
20407   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20408   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20409   hardcode_into_libs=yes
20410   ;;
20411
20412 # No shared lib support for Linux oldld, aout, or coff.
20413 linux*oldld* | linux*aout* | linux*coff*)
20414   dynamic_linker=no
20415   ;;
20416
20417 # This must be Linux ELF.
20418 linux*)
20419   version_type=linux
20420   need_lib_prefix=no
20421   need_version=no
20422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20423   soname_spec='${libname}${release}${shared_ext}$major'
20424   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20425   shlibpath_var=LD_LIBRARY_PATH
20426   shlibpath_overrides_runpath=no
20427   # This implies no fast_install, which is unacceptable.
20428   # Some rework will be needed to allow for fast_install
20429   # before this can be enabled.
20430   hardcode_into_libs=yes
20431
20432   # Append ld.so.conf contents to the search path
20433   if test -f /etc/ld.so.conf; then
20434     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' ' '`
20435     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20436   fi
20437
20438   # We used to test for /lib/ld.so.1 and disable shared libraries on
20439   # powerpc, because MkLinux only supported shared libraries with the
20440   # GNU dynamic linker.  Since this was broken with cross compilers,
20441   # most powerpc-linux boxes support dynamic linking these days and
20442   # people can always --disable-shared, the test was removed, and we
20443   # assume the GNU/Linux dynamic linker is in use.
20444   dynamic_linker='GNU/Linux ld.so'
20445   ;;
20446
20447 knetbsd*-gnu)
20448   version_type=linux
20449   need_lib_prefix=no
20450   need_version=no
20451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20452   soname_spec='${libname}${release}${shared_ext}$major'
20453   shlibpath_var=LD_LIBRARY_PATH
20454   shlibpath_overrides_runpath=no
20455   hardcode_into_libs=yes
20456   dynamic_linker='GNU ld.so'
20457   ;;
20458
20459 netbsd*)
20460   version_type=sunos
20461   need_lib_prefix=no
20462   need_version=no
20463   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20464     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20465     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20466     dynamic_linker='NetBSD (a.out) ld.so'
20467   else
20468     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20469     soname_spec='${libname}${release}${shared_ext}$major'
20470     dynamic_linker='NetBSD ld.elf_so'
20471   fi
20472   shlibpath_var=LD_LIBRARY_PATH
20473   shlibpath_overrides_runpath=yes
20474   hardcode_into_libs=yes
20475   ;;
20476
20477 newsos6)
20478   version_type=linux
20479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20480   shlibpath_var=LD_LIBRARY_PATH
20481   shlibpath_overrides_runpath=yes
20482   ;;
20483
20484 nto-qnx*)
20485   version_type=linux
20486   need_lib_prefix=no
20487   need_version=no
20488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20489   soname_spec='${libname}${release}${shared_ext}$major'
20490   shlibpath_var=LD_LIBRARY_PATH
20491   shlibpath_overrides_runpath=yes
20492   ;;
20493
20494 openbsd*)
20495   version_type=sunos
20496   sys_lib_dlsearch_path_spec="/usr/lib"
20497   need_lib_prefix=no
20498   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20499   case $host_os in
20500     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20501     *)                         need_version=no  ;;
20502   esac
20503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20504   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20505   shlibpath_var=LD_LIBRARY_PATH
20506   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20507     case $host_os in
20508       openbsd2.[89] | openbsd2.[89].*)
20509         shlibpath_overrides_runpath=no
20510         ;;
20511       *)
20512         shlibpath_overrides_runpath=yes
20513         ;;
20514       esac
20515   else
20516     shlibpath_overrides_runpath=yes
20517   fi
20518   ;;
20519
20520 os2*)
20521   libname_spec='$name'
20522   shrext_cmds=".dll"
20523   need_lib_prefix=no
20524   library_names_spec='$libname${shared_ext} $libname.a'
20525   dynamic_linker='OS/2 ld.exe'
20526   shlibpath_var=LIBPATH
20527   ;;
20528
20529 osf3* | osf4* | osf5*)
20530   version_type=osf
20531   need_lib_prefix=no
20532   need_version=no
20533   soname_spec='${libname}${release}${shared_ext}$major'
20534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20535   shlibpath_var=LD_LIBRARY_PATH
20536   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20537   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20538   ;;
20539
20540 solaris*)
20541   version_type=linux
20542   need_lib_prefix=no
20543   need_version=no
20544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20545   soname_spec='${libname}${release}${shared_ext}$major'
20546   shlibpath_var=LD_LIBRARY_PATH
20547   shlibpath_overrides_runpath=yes
20548   hardcode_into_libs=yes
20549   # ldd complains unless libraries are executable
20550   postinstall_cmds='chmod +x $lib'
20551   ;;
20552
20553 sunos4*)
20554   version_type=sunos
20555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20556   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20557   shlibpath_var=LD_LIBRARY_PATH
20558   shlibpath_overrides_runpath=yes
20559   if test "$with_gnu_ld" = yes; then
20560     need_lib_prefix=no
20561   fi
20562   need_version=yes
20563   ;;
20564
20565 sysv4 | sysv4.3*)
20566   version_type=linux
20567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20568   soname_spec='${libname}${release}${shared_ext}$major'
20569   shlibpath_var=LD_LIBRARY_PATH
20570   case $host_vendor in
20571     sni)
20572       shlibpath_overrides_runpath=no
20573       need_lib_prefix=no
20574       export_dynamic_flag_spec='${wl}-Blargedynsym'
20575       runpath_var=LD_RUN_PATH
20576       ;;
20577     siemens)
20578       need_lib_prefix=no
20579       ;;
20580     motorola)
20581       need_lib_prefix=no
20582       need_version=no
20583       shlibpath_overrides_runpath=no
20584       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20585       ;;
20586   esac
20587   ;;
20588
20589 sysv4*MP*)
20590   if test -d /usr/nec ;then
20591     version_type=linux
20592     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20593     soname_spec='$libname${shared_ext}.$major'
20594     shlibpath_var=LD_LIBRARY_PATH
20595   fi
20596   ;;
20597
20598 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20599   version_type=freebsd-elf
20600   need_lib_prefix=no
20601   need_version=no
20602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20603   soname_spec='${libname}${release}${shared_ext}$major'
20604   shlibpath_var=LD_LIBRARY_PATH
20605   hardcode_into_libs=yes
20606   if test "$with_gnu_ld" = yes; then
20607     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20608     shlibpath_overrides_runpath=no
20609   else
20610     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20611     shlibpath_overrides_runpath=yes
20612     case $host_os in
20613       sco3.2v5*)
20614         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20615         ;;
20616     esac
20617   fi
20618   sys_lib_dlsearch_path_spec='/usr/lib'
20619   ;;
20620
20621 uts4*)
20622   version_type=linux
20623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20624   soname_spec='${libname}${release}${shared_ext}$major'
20625   shlibpath_var=LD_LIBRARY_PATH
20626   ;;
20627
20628 *)
20629   dynamic_linker=no
20630   ;;
20631 esac
20632 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20633 echo "${ECHO_T}$dynamic_linker" >&6; }
20634 test "$dynamic_linker" = no && can_build_shared=no
20635
20636 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20637 if test "$GCC" = yes; then
20638   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20639 fi
20640
20641 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20642 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20643 hardcode_action_CXX=
20644 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20645    test -n "$runpath_var_CXX" || \
20646    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20647
20648   # We can hardcode non-existant directories.
20649   if test "$hardcode_direct_CXX" != no &&
20650      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20651      # have to relink, otherwise we might link with an installed library
20652      # when we should be linking with a yet-to-be-installed one
20653      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20654      test "$hardcode_minus_L_CXX" != no; then
20655     # Linking always hardcodes the temporary library directory.
20656     hardcode_action_CXX=relink
20657   else
20658     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20659     hardcode_action_CXX=immediate
20660   fi
20661 else
20662   # We cannot hardcode anything, or else we can only hardcode existing
20663   # directories.
20664   hardcode_action_CXX=unsupported
20665 fi
20666 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20667 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20668
20669 if test "$hardcode_action_CXX" = relink; then
20670   # Fast installation is not supported
20671   enable_fast_install=no
20672 elif test "$shlibpath_overrides_runpath" = yes ||
20673      test "$enable_shared" = no; then
20674   # Fast installation is not necessary
20675   enable_fast_install=needless
20676 fi
20677
20678
20679 # The else clause should only fire when bootstrapping the
20680 # libtool distribution, otherwise you forgot to ship ltmain.sh
20681 # with your package, and you will get complaints that there are
20682 # no rules to generate ltmain.sh.
20683 if test -f "$ltmain"; then
20684   # See if we are running on zsh, and set the options which allow our commands through
20685   # without removal of \ escapes.
20686   if test -n "${ZSH_VERSION+set}" ; then
20687     setopt NO_GLOB_SUBST
20688   fi
20689   # Now quote all the things that may contain metacharacters while being
20690   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20691   # variables and quote the copies for generation of the libtool script.
20692   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20693     SED SHELL STRIP \
20694     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20695     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20696     deplibs_check_method reload_flag reload_cmds need_locks \
20697     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20698     lt_cv_sys_global_symbol_to_c_name_address \
20699     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20700     old_postinstall_cmds old_postuninstall_cmds \
20701     compiler_CXX \
20702     CC_CXX \
20703     LD_CXX \
20704     lt_prog_compiler_wl_CXX \
20705     lt_prog_compiler_pic_CXX \
20706     lt_prog_compiler_static_CXX \
20707     lt_prog_compiler_no_builtin_flag_CXX \
20708     export_dynamic_flag_spec_CXX \
20709     thread_safe_flag_spec_CXX \
20710     whole_archive_flag_spec_CXX \
20711     enable_shared_with_static_runtimes_CXX \
20712     old_archive_cmds_CXX \
20713     old_archive_from_new_cmds_CXX \
20714     predep_objects_CXX \
20715     postdep_objects_CXX \
20716     predeps_CXX \
20717     postdeps_CXX \
20718     compiler_lib_search_path_CXX \
20719     archive_cmds_CXX \
20720     archive_expsym_cmds_CXX \
20721     postinstall_cmds_CXX \
20722     postuninstall_cmds_CXX \
20723     old_archive_from_expsyms_cmds_CXX \
20724     allow_undefined_flag_CXX \
20725     no_undefined_flag_CXX \
20726     export_symbols_cmds_CXX \
20727     hardcode_libdir_flag_spec_CXX \
20728     hardcode_libdir_flag_spec_ld_CXX \
20729     hardcode_libdir_separator_CXX \
20730     hardcode_automatic_CXX \
20731     module_cmds_CXX \
20732     module_expsym_cmds_CXX \
20733     lt_cv_prog_compiler_c_o_CXX \
20734     exclude_expsyms_CXX \
20735     include_expsyms_CXX; do
20736
20737     case $var in
20738     old_archive_cmds_CXX | \
20739     old_archive_from_new_cmds_CXX | \
20740     archive_cmds_CXX | \
20741     archive_expsym_cmds_CXX | \
20742     module_cmds_CXX | \
20743     module_expsym_cmds_CXX | \
20744     old_archive_from_expsyms_cmds_CXX | \
20745     export_symbols_cmds_CXX | \
20746     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20747     postinstall_cmds | postuninstall_cmds | \
20748     old_postinstall_cmds | old_postuninstall_cmds | \
20749     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20750       # Double-quote double-evaled strings.
20751       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20752       ;;
20753     *)
20754       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20755       ;;
20756     esac
20757   done
20758
20759   case $lt_echo in
20760   *'\$0 --fallback-echo"')
20761     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20762     ;;
20763   esac
20764
20765 cfgfile="$ofile"
20766
20767   cat <<__EOF__ >> "$cfgfile"
20768 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20769
20770 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20771
20772 # Shell to use when invoking shell scripts.
20773 SHELL=$lt_SHELL
20774
20775 # Whether or not to build shared libraries.
20776 build_libtool_libs=$enable_shared
20777
20778 # Whether or not to build static libraries.
20779 build_old_libs=$enable_static
20780
20781 # Whether or not to add -lc for building shared libraries.
20782 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20783
20784 # Whether or not to disallow shared libs when runtime libs are static
20785 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20786
20787 # Whether or not to optimize for fast installation.
20788 fast_install=$enable_fast_install
20789
20790 # The host system.
20791 host_alias=$host_alias
20792 host=$host
20793 host_os=$host_os
20794
20795 # The build system.
20796 build_alias=$build_alias
20797 build=$build
20798 build_os=$build_os
20799
20800 # An echo program that does not interpret backslashes.
20801 echo=$lt_echo
20802
20803 # The archiver.
20804 AR=$lt_AR
20805 AR_FLAGS=$lt_AR_FLAGS
20806
20807 # A C compiler.
20808 LTCC=$lt_LTCC
20809
20810 # LTCC compiler flags.
20811 LTCFLAGS=$lt_LTCFLAGS
20812
20813 # A language-specific compiler.
20814 CC=$lt_compiler_CXX
20815
20816 # Is the compiler the GNU C compiler?
20817 with_gcc=$GCC_CXX
20818
20819 # An ERE matcher.
20820 EGREP=$lt_EGREP
20821
20822 # The linker used to build libraries.
20823 LD=$lt_LD_CXX
20824
20825 # Whether we need hard or soft links.
20826 LN_S=$lt_LN_S
20827
20828 # A BSD-compatible nm program.
20829 NM=$lt_NM
20830
20831 # A symbol stripping program
20832 STRIP=$lt_STRIP
20833
20834 # Used to examine libraries when file_magic_cmd begins "file"
20835 MAGIC_CMD=$MAGIC_CMD
20836
20837 # Used on cygwin: DLL creation program.
20838 DLLTOOL="$DLLTOOL"
20839
20840 # Used on cygwin: object dumper.
20841 OBJDUMP="$OBJDUMP"
20842
20843 # Used on cygwin: assembler.
20844 AS="$AS"
20845
20846 # The name of the directory that contains temporary libtool files.
20847 objdir=$objdir
20848
20849 # How to create reloadable object files.
20850 reload_flag=$lt_reload_flag
20851 reload_cmds=$lt_reload_cmds
20852
20853 # How to pass a linker flag through the compiler.
20854 wl=$lt_lt_prog_compiler_wl_CXX
20855
20856 # Object file suffix (normally "o").
20857 objext="$ac_objext"
20858
20859 # Old archive suffix (normally "a").
20860 libext="$libext"
20861
20862 # Shared library suffix (normally ".so").
20863 shrext_cmds='$shrext_cmds'
20864
20865 # Executable file suffix (normally "").
20866 exeext="$exeext"
20867
20868 # Additional compiler flags for building library objects.
20869 pic_flag=$lt_lt_prog_compiler_pic_CXX
20870 pic_mode=$pic_mode
20871
20872 # What is the maximum length of a command?
20873 max_cmd_len=$lt_cv_sys_max_cmd_len
20874
20875 # Does compiler simultaneously support -c and -o options?
20876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20877
20878 # Must we lock files when doing compilation?
20879 need_locks=$lt_need_locks
20880
20881 # Do we need the lib prefix for modules?
20882 need_lib_prefix=$need_lib_prefix
20883
20884 # Do we need a version for libraries?
20885 need_version=$need_version
20886
20887 # Whether dlopen is supported.
20888 dlopen_support=$enable_dlopen
20889
20890 # Whether dlopen of programs is supported.
20891 dlopen_self=$enable_dlopen_self
20892
20893 # Whether dlopen of statically linked programs is supported.
20894 dlopen_self_static=$enable_dlopen_self_static
20895
20896 # Compiler flag to prevent dynamic linking.
20897 link_static_flag=$lt_lt_prog_compiler_static_CXX
20898
20899 # Compiler flag to turn off builtin functions.
20900 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20901
20902 # Compiler flag to allow reflexive dlopens.
20903 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20904
20905 # Compiler flag to generate shared objects directly from archives.
20906 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20907
20908 # Compiler flag to generate thread-safe objects.
20909 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20910
20911 # Library versioning type.
20912 version_type=$version_type
20913
20914 # Format of library name prefix.
20915 libname_spec=$lt_libname_spec
20916
20917 # List of archive names.  First name is the real one, the rest are links.
20918 # The last name is the one that the linker finds with -lNAME.
20919 library_names_spec=$lt_library_names_spec
20920
20921 # The coded name of the library, if different from the real name.
20922 soname_spec=$lt_soname_spec
20923
20924 # Commands used to build and install an old-style archive.
20925 RANLIB=$lt_RANLIB
20926 old_archive_cmds=$lt_old_archive_cmds_CXX
20927 old_postinstall_cmds=$lt_old_postinstall_cmds
20928 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20929
20930 # Create an old-style archive from a shared archive.
20931 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20932
20933 # Create a temporary old-style archive to link instead of a shared archive.
20934 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20935
20936 # Commands used to build and install a shared archive.
20937 archive_cmds=$lt_archive_cmds_CXX
20938 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20939 postinstall_cmds=$lt_postinstall_cmds
20940 postuninstall_cmds=$lt_postuninstall_cmds
20941
20942 # Commands used to build a loadable module (assumed same as above if empty)
20943 module_cmds=$lt_module_cmds_CXX
20944 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20945
20946 # Commands to strip libraries.
20947 old_striplib=$lt_old_striplib
20948 striplib=$lt_striplib
20949
20950 # Dependencies to place before the objects being linked to create a
20951 # shared library.
20952 predep_objects=$lt_predep_objects_CXX
20953
20954 # Dependencies to place after the objects being linked to create a
20955 # shared library.
20956 postdep_objects=$lt_postdep_objects_CXX
20957
20958 # Dependencies to place before the objects being linked to create a
20959 # shared library.
20960 predeps=$lt_predeps_CXX
20961
20962 # Dependencies to place after the objects being linked to create a
20963 # shared library.
20964 postdeps=$lt_postdeps_CXX
20965
20966 # The library search path used internally by the compiler when linking
20967 # a shared library.
20968 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20969
20970 # Method to check whether dependent libraries are shared objects.
20971 deplibs_check_method=$lt_deplibs_check_method
20972
20973 # Command to use when deplibs_check_method == file_magic.
20974 file_magic_cmd=$lt_file_magic_cmd
20975
20976 # Flag that allows shared libraries with undefined symbols to be built.
20977 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20978
20979 # Flag that forces no undefined symbols.
20980 no_undefined_flag=$lt_no_undefined_flag_CXX
20981
20982 # Commands used to finish a libtool library installation in a directory.
20983 finish_cmds=$lt_finish_cmds
20984
20985 # Same as above, but a single script fragment to be evaled but not shown.
20986 finish_eval=$lt_finish_eval
20987
20988 # Take the output of nm and produce a listing of raw symbols and C names.
20989 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20990
20991 # Transform the output of nm in a proper C declaration
20992 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20993
20994 # Transform the output of nm in a C name address pair
20995 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20996
20997 # This is the shared library runtime path variable.
20998 runpath_var=$runpath_var
20999
21000 # This is the shared library path variable.
21001 shlibpath_var=$shlibpath_var
21002
21003 # Is shlibpath searched before the hard-coded library search path?
21004 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21005
21006 # How to hardcode a shared library path into an executable.
21007 hardcode_action=$hardcode_action_CXX
21008
21009 # Whether we should hardcode library paths into libraries.
21010 hardcode_into_libs=$hardcode_into_libs
21011
21012 # Flag to hardcode \$libdir into a binary during linking.
21013 # This must work even if \$libdir does not exist.
21014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21015
21016 # If ld is used when linking, flag to hardcode \$libdir into
21017 # a binary during linking. This must work even if \$libdir does
21018 # not exist.
21019 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21020
21021 # Whether we need a single -rpath flag with a separated argument.
21022 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21023
21024 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21025 # resulting binary.
21026 hardcode_direct=$hardcode_direct_CXX
21027
21028 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21029 # resulting binary.
21030 hardcode_minus_L=$hardcode_minus_L_CXX
21031
21032 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21033 # the resulting binary.
21034 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21035
21036 # Set to yes if building a shared library automatically hardcodes DIR into the library
21037 # and all subsequent libraries and executables linked against it.
21038 hardcode_automatic=$hardcode_automatic_CXX
21039
21040 # Variables whose values should be saved in libtool wrapper scripts and
21041 # restored at relink time.
21042 variables_saved_for_relink="$variables_saved_for_relink"
21043
21044 # Whether libtool must link a program against all its dependency libraries.
21045 link_all_deplibs=$link_all_deplibs_CXX
21046
21047 # Compile-time system search path for libraries
21048 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21049
21050 # Run-time system search path for libraries
21051 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21052
21053 # Fix the shell variable \$srcfile for the compiler.
21054 fix_srcfile_path="$fix_srcfile_path_CXX"
21055
21056 # Set to yes if exported symbols are required.
21057 always_export_symbols=$always_export_symbols_CXX
21058
21059 # The commands to list exported symbols.
21060 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21061
21062 # The commands to extract the exported symbol list from a shared archive.
21063 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21064
21065 # Symbols that should not be listed in the preloaded symbols.
21066 exclude_expsyms=$lt_exclude_expsyms_CXX
21067
21068 # Symbols that must always be exported.
21069 include_expsyms=$lt_include_expsyms_CXX
21070
21071 # ### END LIBTOOL TAG CONFIG: $tagname
21072
21073 __EOF__
21074
21075
21076 else
21077   # If there is no Makefile yet, we rely on a make rule to execute
21078   # `config.status --recheck' to rerun these tests and create the
21079   # libtool script then.
21080   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21081   if test -f "$ltmain_in"; then
21082     test -f Makefile && make "$ltmain"
21083   fi
21084 fi
21085
21086
21087 ac_ext=c
21088 ac_cpp='$CPP $CPPFLAGS'
21089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21092
21093 CC=$lt_save_CC
21094 LDCXX=$LD
21095 LD=$lt_save_LD
21096 GCC=$lt_save_GCC
21097 with_gnu_ldcxx=$with_gnu_ld
21098 with_gnu_ld=$lt_save_with_gnu_ld
21099 lt_cv_path_LDCXX=$lt_cv_path_LD
21100 lt_cv_path_LD=$lt_save_path_LD
21101 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21102 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21103
21104         else
21105           tagname=""
21106         fi
21107         ;;
21108
21109       F77)
21110         if test -n "$F77" && test "X$F77" != "Xno"; then
21111
21112 ac_ext=f
21113 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21114 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21115 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21116
21117
21118 archive_cmds_need_lc_F77=no
21119 allow_undefined_flag_F77=
21120 always_export_symbols_F77=no
21121 archive_expsym_cmds_F77=
21122 export_dynamic_flag_spec_F77=
21123 hardcode_direct_F77=no
21124 hardcode_libdir_flag_spec_F77=
21125 hardcode_libdir_flag_spec_ld_F77=
21126 hardcode_libdir_separator_F77=
21127 hardcode_minus_L_F77=no
21128 hardcode_automatic_F77=no
21129 module_cmds_F77=
21130 module_expsym_cmds_F77=
21131 link_all_deplibs_F77=unknown
21132 old_archive_cmds_F77=$old_archive_cmds
21133 no_undefined_flag_F77=
21134 whole_archive_flag_spec_F77=
21135 enable_shared_with_static_runtimes_F77=no
21136
21137 # Source file extension for f77 test sources.
21138 ac_ext=f
21139
21140 # Object file extension for compiled f77 test sources.
21141 objext=o
21142 objext_F77=$objext
21143
21144 # Code to be used in simple compile tests
21145 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21146
21147 # Code to be used in simple link tests
21148 lt_simple_link_test_code="      program t\n      end\n"
21149
21150 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21151
21152 # If no C compiler was specified, use CC.
21153 LTCC=${LTCC-"$CC"}
21154
21155 # If no C compiler flags were specified, use CFLAGS.
21156 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21157
21158 # Allow CC to be a program name with arguments.
21159 compiler=$CC
21160
21161
21162 # save warnings/boilerplate of simple test code
21163 ac_outfile=conftest.$ac_objext
21164 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21165 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21166 _lt_compiler_boilerplate=`cat conftest.err`
21167 $rm conftest*
21168
21169 ac_outfile=conftest.$ac_objext
21170 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21171 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21172 _lt_linker_boilerplate=`cat conftest.err`
21173 $rm conftest*
21174
21175
21176 # Allow CC to be a program name with arguments.
21177 lt_save_CC="$CC"
21178 CC=${F77-"f77"}
21179 compiler=$CC
21180 compiler_F77=$CC
21181 for cc_temp in $compiler""; do
21182   case $cc_temp in
21183     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21184     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21185     \-*) ;;
21186     *) break;;
21187   esac
21188 done
21189 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21190
21191
21192 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21193 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21194 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21195 echo "${ECHO_T}$can_build_shared" >&6; }
21196
21197 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21198 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21199 test "$can_build_shared" = "no" && enable_shared=no
21200
21201 # On AIX, shared libraries and static libraries use the same namespace, and
21202 # are all built from PIC.
21203 case $host_os in
21204 aix3*)
21205   test "$enable_shared" = yes && enable_static=no
21206   if test -n "$RANLIB"; then
21207     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21208     postinstall_cmds='$RANLIB $lib'
21209   fi
21210   ;;
21211 aix4* | aix5*)
21212   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21213     test "$enable_shared" = yes && enable_static=no
21214   fi
21215   ;;
21216 esac
21217 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21218 echo "${ECHO_T}$enable_shared" >&6; }
21219
21220 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21221 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21222 # Make sure either enable_shared or enable_static is yes.
21223 test "$enable_shared" = yes || enable_static=yes
21224 { echo "$as_me:$LINENO: result: $enable_static" >&5
21225 echo "${ECHO_T}$enable_static" >&6; }
21226
21227 GCC_F77="$G77"
21228 LD_F77="$LD"
21229
21230 lt_prog_compiler_wl_F77=
21231 lt_prog_compiler_pic_F77=
21232 lt_prog_compiler_static_F77=
21233
21234 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21235 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21236
21237   if test "$GCC" = yes; then
21238     lt_prog_compiler_wl_F77='-Wl,'
21239     lt_prog_compiler_static_F77='-static'
21240
21241     case $host_os in
21242       aix*)
21243       # All AIX code is PIC.
21244       if test "$host_cpu" = ia64; then
21245         # AIX 5 now supports IA64 processor
21246         lt_prog_compiler_static_F77='-Bstatic'
21247       fi
21248       ;;
21249
21250     amigaos*)
21251       # FIXME: we need at least 68020 code to build shared libraries, but
21252       # adding the `-m68020' flag to GCC prevents building anything better,
21253       # like `-m68040'.
21254       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21255       ;;
21256
21257     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21258       # PIC is the default for these OSes.
21259       ;;
21260
21261     mingw* | pw32* | os2*)
21262       # This hack is so that the source file can tell whether it is being
21263       # built for inclusion in a dll (and should export symbols for example).
21264       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21265       ;;
21266
21267     darwin* | rhapsody*)
21268       # PIC is the default on this platform
21269       # Common symbols not allowed in MH_DYLIB files
21270       lt_prog_compiler_pic_F77='-fno-common'
21271       ;;
21272
21273     interix3*)
21274       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21275       # Instead, we relocate shared libraries at runtime.
21276       ;;
21277
21278     msdosdjgpp*)
21279       # Just because we use GCC doesn't mean we suddenly get shared libraries
21280       # on systems that don't support them.
21281       lt_prog_compiler_can_build_shared_F77=no
21282       enable_shared=no
21283       ;;
21284
21285     sysv4*MP*)
21286       if test -d /usr/nec; then
21287         lt_prog_compiler_pic_F77=-Kconform_pic
21288       fi
21289       ;;
21290
21291     hpux*)
21292       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21293       # not for PA HP-UX.
21294       case $host_cpu in
21295       hppa*64*|ia64*)
21296         # +Z the default
21297         ;;
21298       *)
21299         lt_prog_compiler_pic_F77='-fPIC'
21300         ;;
21301       esac
21302       ;;
21303
21304     *)
21305       lt_prog_compiler_pic_F77='-fPIC'
21306       ;;
21307     esac
21308   else
21309     # PORTME Check for flag to pass linker flags through the system compiler.
21310     case $host_os in
21311     aix*)
21312       lt_prog_compiler_wl_F77='-Wl,'
21313       if test "$host_cpu" = ia64; then
21314         # AIX 5 now supports IA64 processor
21315         lt_prog_compiler_static_F77='-Bstatic'
21316       else
21317         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21318       fi
21319       ;;
21320       darwin*)
21321         # PIC is the default on this platform
21322         # Common symbols not allowed in MH_DYLIB files
21323        case $cc_basename in
21324          xlc*)
21325          lt_prog_compiler_pic_F77='-qnocommon'
21326          lt_prog_compiler_wl_F77='-Wl,'
21327          ;;
21328        esac
21329        ;;
21330
21331     mingw* | pw32* | os2*)
21332       # This hack is so that the source file can tell whether it is being
21333       # built for inclusion in a dll (and should export symbols for example).
21334       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21335       ;;
21336
21337     hpux9* | hpux10* | hpux11*)
21338       lt_prog_compiler_wl_F77='-Wl,'
21339       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21340       # not for PA HP-UX.
21341       case $host_cpu in
21342       hppa*64*|ia64*)
21343         # +Z the default
21344         ;;
21345       *)
21346         lt_prog_compiler_pic_F77='+Z'
21347         ;;
21348       esac
21349       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21350       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21351       ;;
21352
21353     irix5* | irix6* | nonstopux*)
21354       lt_prog_compiler_wl_F77='-Wl,'
21355       # PIC (with -KPIC) is the default.
21356       lt_prog_compiler_static_F77='-non_shared'
21357       ;;
21358
21359     newsos6)
21360       lt_prog_compiler_pic_F77='-KPIC'
21361       lt_prog_compiler_static_F77='-Bstatic'
21362       ;;
21363
21364     linux*)
21365       case $cc_basename in
21366       icc* | ecc*)
21367         lt_prog_compiler_wl_F77='-Wl,'
21368         lt_prog_compiler_pic_F77='-KPIC'
21369         lt_prog_compiler_static_F77='-static'
21370         ;;
21371       pgcc* | pgf77* | pgf90* | pgf95*)
21372         # Portland Group compilers (*not* the Pentium gcc compiler,
21373         # which looks to be a dead project)
21374         lt_prog_compiler_wl_F77='-Wl,'
21375         lt_prog_compiler_pic_F77='-fpic'
21376         lt_prog_compiler_static_F77='-Bstatic'
21377         ;;
21378       ccc*)
21379         lt_prog_compiler_wl_F77='-Wl,'
21380         # All Alpha code is PIC.
21381         lt_prog_compiler_static_F77='-non_shared'
21382         ;;
21383       esac
21384       ;;
21385
21386     osf3* | osf4* | osf5*)
21387       lt_prog_compiler_wl_F77='-Wl,'
21388       # All OSF/1 code is PIC.
21389       lt_prog_compiler_static_F77='-non_shared'
21390       ;;
21391
21392     solaris*)
21393       lt_prog_compiler_pic_F77='-KPIC'
21394       lt_prog_compiler_static_F77='-Bstatic'
21395       case $cc_basename in
21396       f77* | f90* | f95*)
21397         lt_prog_compiler_wl_F77='-Qoption ld ';;
21398       *)
21399         lt_prog_compiler_wl_F77='-Wl,';;
21400       esac
21401       ;;
21402
21403     sunos4*)
21404       lt_prog_compiler_wl_F77='-Qoption ld '
21405       lt_prog_compiler_pic_F77='-PIC'
21406       lt_prog_compiler_static_F77='-Bstatic'
21407       ;;
21408
21409     sysv4 | sysv4.2uw2* | sysv4.3*)
21410       lt_prog_compiler_wl_F77='-Wl,'
21411       lt_prog_compiler_pic_F77='-KPIC'
21412       lt_prog_compiler_static_F77='-Bstatic'
21413       ;;
21414
21415     sysv4*MP*)
21416       if test -d /usr/nec ;then
21417         lt_prog_compiler_pic_F77='-Kconform_pic'
21418         lt_prog_compiler_static_F77='-Bstatic'
21419       fi
21420       ;;
21421
21422     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21423       lt_prog_compiler_wl_F77='-Wl,'
21424       lt_prog_compiler_pic_F77='-KPIC'
21425       lt_prog_compiler_static_F77='-Bstatic'
21426       ;;
21427
21428     unicos*)
21429       lt_prog_compiler_wl_F77='-Wl,'
21430       lt_prog_compiler_can_build_shared_F77=no
21431       ;;
21432
21433     uts4*)
21434       lt_prog_compiler_pic_F77='-pic'
21435       lt_prog_compiler_static_F77='-Bstatic'
21436       ;;
21437
21438     *)
21439       lt_prog_compiler_can_build_shared_F77=no
21440       ;;
21441     esac
21442   fi
21443
21444 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21445 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21446
21447 #
21448 # Check to make sure the PIC flag actually works.
21449 #
21450 if test -n "$lt_prog_compiler_pic_F77"; then
21451
21452 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21453 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21454 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21455   echo $ECHO_N "(cached) $ECHO_C" >&6
21456 else
21457   lt_prog_compiler_pic_works_F77=no
21458   ac_outfile=conftest.$ac_objext
21459    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21460    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21461    # Insert the option either (1) after the last *FLAGS variable, or
21462    # (2) before a word containing "conftest.", or (3) at the end.
21463    # Note that $ac_compile itself does not contain backslashes and begins
21464    # with a dollar sign (not a hyphen), so the echo should work correctly.
21465    # The option is referenced via a variable to avoid confusing sed.
21466    lt_compile=`echo "$ac_compile" | $SED \
21467    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21468    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21469    -e 's:$: $lt_compiler_flag:'`
21470    (eval echo "\"\$as_me:21467: $lt_compile\"" >&5)
21471    (eval "$lt_compile" 2>conftest.err)
21472    ac_status=$?
21473    cat conftest.err >&5
21474    echo "$as_me:21471: \$? = $ac_status" >&5
21475    if (exit $ac_status) && test -s "$ac_outfile"; then
21476      # The compiler can only warn and ignore the option if not recognized
21477      # So say no if there are warnings other than the usual output.
21478      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21479      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21480      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21481        lt_prog_compiler_pic_works_F77=yes
21482      fi
21483    fi
21484    $rm conftest*
21485
21486 fi
21487 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21488 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21489
21490 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21491     case $lt_prog_compiler_pic_F77 in
21492      "" | " "*) ;;
21493      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21494      esac
21495 else
21496     lt_prog_compiler_pic_F77=
21497      lt_prog_compiler_can_build_shared_F77=no
21498 fi
21499
21500 fi
21501 case $host_os in
21502   # For platforms which do not support PIC, -DPIC is meaningless:
21503   *djgpp*)
21504     lt_prog_compiler_pic_F77=
21505     ;;
21506   *)
21507     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21508     ;;
21509 esac
21510
21511 #
21512 # Check to make sure the static flag actually works.
21513 #
21514 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21515 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21516 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21517 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21518   echo $ECHO_N "(cached) $ECHO_C" >&6
21519 else
21520   lt_prog_compiler_static_works_F77=no
21521    save_LDFLAGS="$LDFLAGS"
21522    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21523    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21524    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21525      # The linker can only warn and ignore the option if not recognized
21526      # So say no if there are warnings
21527      if test -s conftest.err; then
21528        # Append any errors to the config.log.
21529        cat conftest.err 1>&5
21530        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21531        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21532        if diff conftest.exp conftest.er2 >/dev/null; then
21533          lt_prog_compiler_static_works_F77=yes
21534        fi
21535      else
21536        lt_prog_compiler_static_works_F77=yes
21537      fi
21538    fi
21539    $rm conftest*
21540    LDFLAGS="$save_LDFLAGS"
21541
21542 fi
21543 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21544 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21545
21546 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21547     :
21548 else
21549     lt_prog_compiler_static_F77=
21550 fi
21551
21552
21553 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21554 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21555 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21556   echo $ECHO_N "(cached) $ECHO_C" >&6
21557 else
21558   lt_cv_prog_compiler_c_o_F77=no
21559    $rm -r conftest 2>/dev/null
21560    mkdir conftest
21561    cd conftest
21562    mkdir out
21563    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21564
21565    lt_compiler_flag="-o out/conftest2.$ac_objext"
21566    # Insert the option either (1) after the last *FLAGS variable, or
21567    # (2) before a word containing "conftest.", or (3) at the end.
21568    # Note that $ac_compile itself does not contain backslashes and begins
21569    # with a dollar sign (not a hyphen), so the echo should work correctly.
21570    lt_compile=`echo "$ac_compile" | $SED \
21571    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21572    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21573    -e 's:$: $lt_compiler_flag:'`
21574    (eval echo "\"\$as_me:21571: $lt_compile\"" >&5)
21575    (eval "$lt_compile" 2>out/conftest.err)
21576    ac_status=$?
21577    cat out/conftest.err >&5
21578    echo "$as_me:21575: \$? = $ac_status" >&5
21579    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21580    then
21581      # The compiler can only warn and ignore the option if not recognized
21582      # So say no if there are warnings
21583      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21584      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21585      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21586        lt_cv_prog_compiler_c_o_F77=yes
21587      fi
21588    fi
21589    chmod u+w . 2>&5
21590    $rm conftest*
21591    # SGI C++ compiler will create directory out/ii_files/ for
21592    # template instantiation
21593    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21594    $rm out/* && rmdir out
21595    cd ..
21596    rmdir conftest
21597    $rm conftest*
21598
21599 fi
21600 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21601 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21602
21603
21604 hard_links="nottested"
21605 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21606   # do not overwrite the value of need_locks provided by the user
21607   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21608 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21609   hard_links=yes
21610   $rm conftest*
21611   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21612   touch conftest.a
21613   ln conftest.a conftest.b 2>&5 || hard_links=no
21614   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21615   { echo "$as_me:$LINENO: result: $hard_links" >&5
21616 echo "${ECHO_T}$hard_links" >&6; }
21617   if test "$hard_links" = no; then
21618     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21619 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21620     need_locks=warn
21621   fi
21622 else
21623   need_locks=no
21624 fi
21625
21626 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21627 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21628
21629   runpath_var=
21630   allow_undefined_flag_F77=
21631   enable_shared_with_static_runtimes_F77=no
21632   archive_cmds_F77=
21633   archive_expsym_cmds_F77=
21634   old_archive_From_new_cmds_F77=
21635   old_archive_from_expsyms_cmds_F77=
21636   export_dynamic_flag_spec_F77=
21637   whole_archive_flag_spec_F77=
21638   thread_safe_flag_spec_F77=
21639   hardcode_libdir_flag_spec_F77=
21640   hardcode_libdir_flag_spec_ld_F77=
21641   hardcode_libdir_separator_F77=
21642   hardcode_direct_F77=no
21643   hardcode_minus_L_F77=no
21644   hardcode_shlibpath_var_F77=unsupported
21645   link_all_deplibs_F77=unknown
21646   hardcode_automatic_F77=no
21647   module_cmds_F77=
21648   module_expsym_cmds_F77=
21649   always_export_symbols_F77=no
21650   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21651   # include_expsyms should be a list of space-separated symbols to be *always*
21652   # included in the symbol list
21653   include_expsyms_F77=
21654   # exclude_expsyms can be an extended regexp of symbols to exclude
21655   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21656   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21657   # as well as any symbol that contains `d'.
21658   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21659   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21660   # platforms (ab)use it in PIC code, but their linkers get confused if
21661   # the symbol is explicitly referenced.  Since portable code cannot
21662   # rely on this symbol name, it's probably fine to never include it in
21663   # preloaded symbol tables.
21664   extract_expsyms_cmds=
21665   # Just being paranoid about ensuring that cc_basename is set.
21666   for cc_temp in $compiler""; do
21667   case $cc_temp in
21668     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21669     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21670     \-*) ;;
21671     *) break;;
21672   esac
21673 done
21674 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21675
21676   case $host_os in
21677   cygwin* | mingw* | pw32*)
21678     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21679     # When not using gcc, we currently assume that we are using
21680     # Microsoft Visual C++.
21681     if test "$GCC" != yes; then
21682       with_gnu_ld=no
21683     fi
21684     ;;
21685   interix*)
21686     # we just hope/assume this is gcc and not c89 (= MSVC++)
21687     with_gnu_ld=yes
21688     ;;
21689   openbsd*)
21690     with_gnu_ld=no
21691     ;;
21692   esac
21693
21694   ld_shlibs_F77=yes
21695   if test "$with_gnu_ld" = yes; then
21696     # If archive_cmds runs LD, not CC, wlarc should be empty
21697     wlarc='${wl}'
21698
21699     # Set some defaults for GNU ld with shared library support. These
21700     # are reset later if shared libraries are not supported. Putting them
21701     # here allows them to be overridden if necessary.
21702     runpath_var=LD_RUN_PATH
21703     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21704     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21705     # ancient GNU ld didn't support --whole-archive et. al.
21706     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21707         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21708       else
21709         whole_archive_flag_spec_F77=
21710     fi
21711     supports_anon_versioning=no
21712     case `$LD -v 2>/dev/null` in
21713       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21714       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21715       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21716       *\ 2.11.*) ;; # other 2.11 versions
21717       *) supports_anon_versioning=yes ;;
21718     esac
21719
21720     # See if GNU ld supports shared libraries.
21721     case $host_os in
21722     aix3* | aix4* | aix5*)
21723       # On AIX/PPC, the GNU linker is very broken
21724       if test "$host_cpu" != ia64; then
21725         ld_shlibs_F77=no
21726         cat <<EOF 1>&2
21727
21728 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21729 *** to be unable to reliably create shared libraries on AIX.
21730 *** Therefore, libtool is disabling shared libraries support.  If you
21731 *** really care for shared libraries, you may want to modify your PATH
21732 *** so that a non-GNU linker is found, and then restart.
21733
21734 EOF
21735       fi
21736       ;;
21737
21738     amigaos*)
21739       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)'
21740       hardcode_libdir_flag_spec_F77='-L$libdir'
21741       hardcode_minus_L_F77=yes
21742
21743       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21744       # that the semantics of dynamic libraries on AmigaOS, at least up
21745       # to version 4, is to share data among multiple programs linked
21746       # with the same dynamic library.  Since this doesn't match the
21747       # behavior of shared libraries on other platforms, we can't use
21748       # them.
21749       ld_shlibs_F77=no
21750       ;;
21751
21752     beos*)
21753       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21754         allow_undefined_flag_F77=unsupported
21755         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21756         # support --undefined.  This deserves some investigation.  FIXME
21757         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21758       else
21759         ld_shlibs_F77=no
21760       fi
21761       ;;
21762
21763     cygwin* | mingw* | pw32*)
21764       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21765       # as there is no search path for DLLs.
21766       hardcode_libdir_flag_spec_F77='-L$libdir'
21767       allow_undefined_flag_F77=unsupported
21768       always_export_symbols_F77=no
21769       enable_shared_with_static_runtimes_F77=yes
21770       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21771
21772       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21773         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21774         # If the export-symbols file already is a .def file (1st line
21775         # is EXPORTS), use it as is; otherwise, prepend...
21776         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21777           cp $export_symbols $output_objdir/$soname.def;
21778         else
21779           echo EXPORTS > $output_objdir/$soname.def;
21780           cat $export_symbols >> $output_objdir/$soname.def;
21781         fi~
21782         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21783       else
21784         ld_shlibs_F77=no
21785       fi
21786       ;;
21787
21788     interix3*)
21789       hardcode_direct_F77=no
21790       hardcode_shlibpath_var_F77=no
21791       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21792       export_dynamic_flag_spec_F77='${wl}-E'
21793       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21794       # Instead, shared libraries are loaded at an image base (0x10000000 by
21795       # default) and relocated if they conflict, which is a slow very memory
21796       # consuming and fragmenting process.  To avoid this, we pick a random,
21797       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21798       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21799       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'
21800       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'
21801       ;;
21802
21803     linux*)
21804       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21805         tmp_addflag=
21806         case $cc_basename,$host_cpu in
21807         pgcc*)                          # Portland Group C compiler
21808           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'
21809           tmp_addflag=' $pic_flag'
21810           ;;
21811         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21812           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'
21813           tmp_addflag=' $pic_flag -Mnomain' ;;
21814         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21815           tmp_addflag=' -i_dynamic' ;;
21816         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21817           tmp_addflag=' -i_dynamic -nofor_main' ;;
21818         ifc* | ifort*)                  # Intel Fortran compiler
21819           tmp_addflag=' -nofor_main' ;;
21820         esac
21821         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21822
21823         if test $supports_anon_versioning = yes; then
21824           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21825   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21826   $echo "local: *; };" >> $output_objdir/$libname.ver~
21827           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21828         fi
21829       else
21830         ld_shlibs_F77=no
21831       fi
21832       ;;
21833
21834     netbsd*)
21835       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21836         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21837         wlarc=
21838       else
21839         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21840         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21841       fi
21842       ;;
21843
21844     solaris*)
21845       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21846         ld_shlibs_F77=no
21847         cat <<EOF 1>&2
21848
21849 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21850 *** create shared libraries on Solaris systems.  Therefore, libtool
21851 *** is disabling shared libraries support.  We urge you to upgrade GNU
21852 *** binutils to release 2.9.1 or newer.  Another option is to modify
21853 *** your PATH or compiler configuration so that the native linker is
21854 *** used, and then restart.
21855
21856 EOF
21857       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21858         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21859         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21860       else
21861         ld_shlibs_F77=no
21862       fi
21863       ;;
21864
21865     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21866       case `$LD -v 2>&1` in
21867         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21868         ld_shlibs_F77=no
21869         cat <<_LT_EOF 1>&2
21870
21871 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21872 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21873 *** is disabling shared libraries support.  We urge you to upgrade GNU
21874 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21875 *** your PATH or compiler configuration so that the native linker is
21876 *** used, and then restart.
21877
21878 _LT_EOF
21879         ;;
21880         *)
21881           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21882             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21883             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21884             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21885           else
21886             ld_shlibs_F77=no
21887           fi
21888         ;;
21889       esac
21890       ;;
21891
21892     sunos4*)
21893       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21894       wlarc=
21895       hardcode_direct_F77=yes
21896       hardcode_shlibpath_var_F77=no
21897       ;;
21898
21899     *)
21900       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21901         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21902         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21903       else
21904         ld_shlibs_F77=no
21905       fi
21906       ;;
21907     esac
21908
21909     if test "$ld_shlibs_F77" = no; then
21910       runpath_var=
21911       hardcode_libdir_flag_spec_F77=
21912       export_dynamic_flag_spec_F77=
21913       whole_archive_flag_spec_F77=
21914     fi
21915   else
21916     # PORTME fill in a description of your system's linker (not GNU ld)
21917     case $host_os in
21918     aix3*)
21919       allow_undefined_flag_F77=unsupported
21920       always_export_symbols_F77=yes
21921       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'
21922       # Note: this linker hardcodes the directories in LIBPATH if there
21923       # are no directories specified by -L.
21924       hardcode_minus_L_F77=yes
21925       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21926         # Neither direct hardcoding nor static linking is supported with a
21927         # broken collect2.
21928         hardcode_direct_F77=unsupported
21929       fi
21930       ;;
21931
21932     aix4* | aix5*)
21933       if test "$host_cpu" = ia64; then
21934         # On IA64, the linker does run time linking by default, so we don't
21935         # have to do anything special.
21936         aix_use_runtimelinking=no
21937         exp_sym_flag='-Bexport'
21938         no_entry_flag=""
21939       else
21940         # If we're using GNU nm, then we don't want the "-C" option.
21941         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21942         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21943           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'
21944         else
21945           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'
21946         fi
21947         aix_use_runtimelinking=no
21948
21949         # Test if we are trying to use run time linking or normal
21950         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21951         # need to do runtime linking.
21952         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21953           for ld_flag in $LDFLAGS; do
21954           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21955             aix_use_runtimelinking=yes
21956             break
21957           fi
21958           done
21959           ;;
21960         esac
21961
21962         exp_sym_flag='-bexport'
21963         no_entry_flag='-bnoentry'
21964       fi
21965
21966       # When large executables or shared objects are built, AIX ld can
21967       # have problems creating the table of contents.  If linking a library
21968       # or program results in "error TOC overflow" add -mminimal-toc to
21969       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21970       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21971
21972       archive_cmds_F77=''
21973       hardcode_direct_F77=yes
21974       hardcode_libdir_separator_F77=':'
21975       link_all_deplibs_F77=yes
21976
21977       if test "$GCC" = yes; then
21978         case $host_os in aix4.[012]|aix4.[012].*)
21979         # We only want to do this on AIX 4.2 and lower, the check
21980         # below for broken collect2 doesn't work under 4.3+
21981           collect2name=`${CC} -print-prog-name=collect2`
21982           if test -f "$collect2name" && \
21983            strings "$collect2name" | grep resolve_lib_name >/dev/null
21984           then
21985           # We have reworked collect2
21986           hardcode_direct_F77=yes
21987           else
21988           # We have old collect2
21989           hardcode_direct_F77=unsupported
21990           # It fails to find uninstalled libraries when the uninstalled
21991           # path is not listed in the libpath.  Setting hardcode_minus_L
21992           # to unsupported forces relinking
21993           hardcode_minus_L_F77=yes
21994           hardcode_libdir_flag_spec_F77='-L$libdir'
21995           hardcode_libdir_separator_F77=
21996           fi
21997           ;;
21998         esac
21999         shared_flag='-shared'
22000         if test "$aix_use_runtimelinking" = yes; then
22001           shared_flag="$shared_flag "'${wl}-G'
22002         fi
22003       else
22004         # not using gcc
22005         if test "$host_cpu" = ia64; then
22006         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22007         # chokes on -Wl,-G. The following line is correct:
22008           shared_flag='-G'
22009         else
22010           if test "$aix_use_runtimelinking" = yes; then
22011             shared_flag='${wl}-G'
22012           else
22013             shared_flag='${wl}-bM:SRE'
22014           fi
22015         fi
22016       fi
22017
22018       # It seems that -bexpall does not export symbols beginning with
22019       # underscore (_), so it is better to generate a list of symbols to export.
22020       always_export_symbols_F77=yes
22021       if test "$aix_use_runtimelinking" = yes; then
22022         # Warning - without using the other runtime loading flags (-brtl),
22023         # -berok will link without error, but may produce a broken library.
22024         allow_undefined_flag_F77='-berok'
22025        # Determine the default libpath from the value encoded in an empty executable.
22026        cat >conftest.$ac_ext <<_ACEOF
22027       program main
22028
22029       end
22030 _ACEOF
22031 rm -f conftest.$ac_objext conftest$ac_exeext
22032 if { (ac_try="$ac_link"
22033 case "(($ac_try" in
22034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035   *) ac_try_echo=$ac_try;;
22036 esac
22037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038   (eval "$ac_link") 2>conftest.er1
22039   ac_status=$?
22040   grep -v '^ *+' conftest.er1 >conftest.err
22041   rm -f conftest.er1
22042   cat conftest.err >&5
22043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044   (exit $ac_status); } &&
22045          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22046   { (case "(($ac_try" in
22047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048   *) ac_try_echo=$ac_try;;
22049 esac
22050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051   (eval "$ac_try") 2>&5
22052   ac_status=$?
22053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054   (exit $ac_status); }; } &&
22055          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
22065
22066 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22067 }'`
22068 # Check for a 64-bit object if we didn't find anything.
22069 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; }
22070 }'`; fi
22071 else
22072   echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22074
22075
22076 fi
22077
22078 rm -f core conftest.err conftest.$ac_objext \
22079       conftest$ac_exeext conftest.$ac_ext
22080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22081
22082        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22083         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"
22084        else
22085         if test "$host_cpu" = ia64; then
22086           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22087           allow_undefined_flag_F77="-z nodefs"
22088           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"
22089         else
22090          # Determine the default libpath from the value encoded in an empty executable.
22091          cat >conftest.$ac_ext <<_ACEOF
22092       program main
22093
22094       end
22095 _ACEOF
22096 rm -f conftest.$ac_objext conftest$ac_exeext
22097 if { (ac_try="$ac_link"
22098 case "(($ac_try" in
22099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100   *) ac_try_echo=$ac_try;;
22101 esac
22102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103   (eval "$ac_link") 2>conftest.er1
22104   ac_status=$?
22105   grep -v '^ *+' conftest.er1 >conftest.err
22106   rm -f conftest.er1
22107   cat conftest.err >&5
22108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109   (exit $ac_status); } &&
22110          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22111   { (case "(($ac_try" in
22112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22113   *) ac_try_echo=$ac_try;;
22114 esac
22115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22116   (eval "$ac_try") 2>&5
22117   ac_status=$?
22118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119   (exit $ac_status); }; } &&
22120          { ac_try='test -s conftest$ac_exeext'
22121   { (case "(($ac_try" in
22122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22123   *) ac_try_echo=$ac_try;;
22124 esac
22125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22126   (eval "$ac_try") 2>&5
22127   ac_status=$?
22128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129   (exit $ac_status); }; }; then
22130
22131 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22132 }'`
22133 # Check for a 64-bit object if we didn't find anything.
22134 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; }
22135 }'`; fi
22136 else
22137   echo "$as_me: failed program was:" >&5
22138 sed 's/^/| /' conftest.$ac_ext >&5
22139
22140
22141 fi
22142
22143 rm -f core conftest.err conftest.$ac_objext \
22144       conftest$ac_exeext conftest.$ac_ext
22145 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22146
22147          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22148           # Warning - without using the other run time loading flags,
22149           # -berok will link without error, but may produce a broken library.
22150           no_undefined_flag_F77=' ${wl}-bernotok'
22151           allow_undefined_flag_F77=' ${wl}-berok'
22152           # Exported symbols can be pulled into shared objects from archives
22153           whole_archive_flag_spec_F77='$convenience'
22154           archive_cmds_need_lc_F77=yes
22155           # This is similar to how AIX traditionally builds its shared libraries.
22156           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'
22157         fi
22158       fi
22159       ;;
22160
22161     amigaos*)
22162       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)'
22163       hardcode_libdir_flag_spec_F77='-L$libdir'
22164       hardcode_minus_L_F77=yes
22165       # see comment about different semantics on the GNU ld section
22166       ld_shlibs_F77=no
22167       ;;
22168
22169     bsdi[45]*)
22170       export_dynamic_flag_spec_F77=-rdynamic
22171       ;;
22172
22173     cygwin* | mingw* | pw32*)
22174       # When not using gcc, we currently assume that we are using
22175       # Microsoft Visual C++.
22176       # hardcode_libdir_flag_spec is actually meaningless, as there is
22177       # no search path for DLLs.
22178       hardcode_libdir_flag_spec_F77=' '
22179       allow_undefined_flag_F77=unsupported
22180       # Tell ltmain to make .lib files, not .a files.
22181       libext=lib
22182       # Tell ltmain to make .dll files, not .so files.
22183       shrext_cmds=".dll"
22184       # FIXME: Setting linknames here is a bad hack.
22185       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22186       # The linker will automatically build a .lib file if we build a DLL.
22187       old_archive_From_new_cmds_F77='true'
22188       # FIXME: Should let the user specify the lib program.
22189       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22190       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22191       enable_shared_with_static_runtimes_F77=yes
22192       ;;
22193
22194     darwin* | rhapsody*)
22195       case $host_os in
22196         rhapsody* | darwin1.[012])
22197          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22198          ;;
22199        *) # Darwin 1.3 on
22200          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22201            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22202          else
22203            case ${MACOSX_DEPLOYMENT_TARGET} in
22204              10.[012])
22205                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22206                ;;
22207              10.*)
22208                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22209                ;;
22210            esac
22211          fi
22212          ;;
22213       esac
22214       archive_cmds_need_lc_F77=no
22215       hardcode_direct_F77=no
22216       hardcode_automatic_F77=yes
22217       hardcode_shlibpath_var_F77=unsupported
22218       whole_archive_flag_spec_F77=''
22219       link_all_deplibs_F77=yes
22220     if test "$GCC" = yes ; then
22221         output_verbose_link_cmd='echo'
22222         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22223       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22224       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22225       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}'
22226       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}'
22227     else
22228       case $cc_basename in
22229         xlc*)
22230          output_verbose_link_cmd='echo'
22231          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22232          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22233           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22234          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}'
22235           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}'
22236           ;;
22237        *)
22238          ld_shlibs_F77=no
22239           ;;
22240       esac
22241     fi
22242       ;;
22243
22244     dgux*)
22245       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22246       hardcode_libdir_flag_spec_F77='-L$libdir'
22247       hardcode_shlibpath_var_F77=no
22248       ;;
22249
22250     freebsd1*)
22251       ld_shlibs_F77=no
22252       ;;
22253
22254     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22255     # support.  Future versions do this automatically, but an explicit c++rt0.o
22256     # does not break anything, and helps significantly (at the cost of a little
22257     # extra space).
22258     freebsd2.2*)
22259       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22260       hardcode_libdir_flag_spec_F77='-R$libdir'
22261       hardcode_direct_F77=yes
22262       hardcode_shlibpath_var_F77=no
22263       ;;
22264
22265     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22266     freebsd2*)
22267       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22268       hardcode_direct_F77=yes
22269       hardcode_minus_L_F77=yes
22270       hardcode_shlibpath_var_F77=no
22271       ;;
22272
22273     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22274     freebsd* | kfreebsd*-gnu | dragonfly*)
22275       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22276       hardcode_libdir_flag_spec_F77='-R$libdir'
22277       hardcode_direct_F77=yes
22278       hardcode_shlibpath_var_F77=no
22279       ;;
22280
22281     hpux9*)
22282       if test "$GCC" = yes; then
22283         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'
22284       else
22285         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'
22286       fi
22287       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22288       hardcode_libdir_separator_F77=:
22289       hardcode_direct_F77=yes
22290
22291       # hardcode_minus_L: Not really in the search PATH,
22292       # but as the default location of the library.
22293       hardcode_minus_L_F77=yes
22294       export_dynamic_flag_spec_F77='${wl}-E'
22295       ;;
22296
22297     hpux10*)
22298       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22299         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22300       else
22301         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22302       fi
22303       if test "$with_gnu_ld" = no; then
22304         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22305         hardcode_libdir_separator_F77=:
22306
22307         hardcode_direct_F77=yes
22308         export_dynamic_flag_spec_F77='${wl}-E'
22309
22310         # hardcode_minus_L: Not really in the search PATH,
22311         # but as the default location of the library.
22312         hardcode_minus_L_F77=yes
22313       fi
22314       ;;
22315
22316     hpux11*)
22317       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22318         case $host_cpu in
22319         hppa*64*)
22320           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22321           ;;
22322         ia64*)
22323           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22324           ;;
22325         *)
22326           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22327           ;;
22328         esac
22329       else
22330         case $host_cpu in
22331         hppa*64*)
22332           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22333           ;;
22334         ia64*)
22335           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22336           ;;
22337         *)
22338           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22339           ;;
22340         esac
22341       fi
22342       if test "$with_gnu_ld" = no; then
22343         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22344         hardcode_libdir_separator_F77=:
22345
22346         case $host_cpu in
22347         hppa*64*|ia64*)
22348           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22349           hardcode_direct_F77=no
22350           hardcode_shlibpath_var_F77=no
22351           ;;
22352         *)
22353           hardcode_direct_F77=yes
22354           export_dynamic_flag_spec_F77='${wl}-E'
22355
22356           # hardcode_minus_L: Not really in the search PATH,
22357           # but as the default location of the library.
22358           hardcode_minus_L_F77=yes
22359           ;;
22360         esac
22361       fi
22362       ;;
22363
22364     irix5* | irix6* | nonstopux*)
22365       if test "$GCC" = yes; then
22366         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'
22367       else
22368         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'
22369         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22370       fi
22371       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22372       hardcode_libdir_separator_F77=:
22373       link_all_deplibs_F77=yes
22374       ;;
22375
22376     netbsd*)
22377       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22378         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22379       else
22380         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22381       fi
22382       hardcode_libdir_flag_spec_F77='-R$libdir'
22383       hardcode_direct_F77=yes
22384       hardcode_shlibpath_var_F77=no
22385       ;;
22386
22387     newsos6)
22388       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22389       hardcode_direct_F77=yes
22390       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22391       hardcode_libdir_separator_F77=:
22392       hardcode_shlibpath_var_F77=no
22393       ;;
22394
22395     openbsd*)
22396       hardcode_direct_F77=yes
22397       hardcode_shlibpath_var_F77=no
22398       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22399         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22400         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22401         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22402         export_dynamic_flag_spec_F77='${wl}-E'
22403       else
22404        case $host_os in
22405          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22406            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22407            hardcode_libdir_flag_spec_F77='-R$libdir'
22408            ;;
22409          *)
22410            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22411            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22412            ;;
22413        esac
22414       fi
22415       ;;
22416
22417     os2*)
22418       hardcode_libdir_flag_spec_F77='-L$libdir'
22419       hardcode_minus_L_F77=yes
22420       allow_undefined_flag_F77=unsupported
22421       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'
22422       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22423       ;;
22424
22425     osf3*)
22426       if test "$GCC" = yes; then
22427         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22428         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'
22429       else
22430         allow_undefined_flag_F77=' -expect_unresolved \*'
22431         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'
22432       fi
22433       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22434       hardcode_libdir_separator_F77=:
22435       ;;
22436
22437     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22438       if test "$GCC" = yes; then
22439         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22440         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'
22441         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22442       else
22443         allow_undefined_flag_F77=' -expect_unresolved \*'
22444         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'
22445         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~
22446         $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'
22447
22448         # Both c and cxx compiler support -rpath directly
22449         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22450       fi
22451       hardcode_libdir_separator_F77=:
22452       ;;
22453
22454     solaris*)
22455       no_undefined_flag_F77=' -z text'
22456       if test "$GCC" = yes; then
22457         wlarc='${wl}'
22458         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22459         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22460           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22461       else
22462         wlarc=''
22463         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22464         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22465         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22466       fi
22467       hardcode_libdir_flag_spec_F77='-R$libdir'
22468       hardcode_shlibpath_var_F77=no
22469       case $host_os in
22470       solaris2.[0-5] | solaris2.[0-5].*) ;;
22471       *)
22472         # The compiler driver will combine linker options so we
22473         # cannot just pass the convience library names through
22474         # without $wl, iff we do not link with $LD.
22475         # Luckily, gcc supports the same syntax we need for Sun Studio.
22476         # Supported since Solaris 2.6 (maybe 2.5.1?)
22477         case $wlarc in
22478         '')
22479           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22480         *)
22481           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' ;;
22482         esac ;;
22483       esac
22484       link_all_deplibs_F77=yes
22485       ;;
22486
22487     sunos4*)
22488       if test "x$host_vendor" = xsequent; then
22489         # Use $CC to link under sequent, because it throws in some extra .o
22490         # files that make .init and .fini sections work.
22491         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22492       else
22493         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22494       fi
22495       hardcode_libdir_flag_spec_F77='-L$libdir'
22496       hardcode_direct_F77=yes
22497       hardcode_minus_L_F77=yes
22498       hardcode_shlibpath_var_F77=no
22499       ;;
22500
22501     sysv4)
22502       case $host_vendor in
22503         sni)
22504           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22505           hardcode_direct_F77=yes # is this really true???
22506         ;;
22507         siemens)
22508           ## LD is ld it makes a PLAMLIB
22509           ## CC just makes a GrossModule.
22510           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22511           reload_cmds_F77='$CC -r -o $output$reload_objs'
22512           hardcode_direct_F77=no
22513         ;;
22514         motorola)
22515           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22516           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22517         ;;
22518       esac
22519       runpath_var='LD_RUN_PATH'
22520       hardcode_shlibpath_var_F77=no
22521       ;;
22522
22523     sysv4.3*)
22524       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22525       hardcode_shlibpath_var_F77=no
22526       export_dynamic_flag_spec_F77='-Bexport'
22527       ;;
22528
22529     sysv4*MP*)
22530       if test -d /usr/nec; then
22531         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22532         hardcode_shlibpath_var_F77=no
22533         runpath_var=LD_RUN_PATH
22534         hardcode_runpath_var=yes
22535         ld_shlibs_F77=yes
22536       fi
22537       ;;
22538
22539     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22540       no_undefined_flag_F77='${wl}-z,text'
22541       archive_cmds_need_lc_F77=no
22542       hardcode_shlibpath_var_F77=no
22543       runpath_var='LD_RUN_PATH'
22544
22545       if test "$GCC" = yes; then
22546         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22547         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22548       else
22549         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22550         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22551       fi
22552       ;;
22553
22554     sysv5* | sco3.2v5* | sco5v6*)
22555       # Note: We can NOT use -z defs as we might desire, because we do not
22556       # link with -lc, and that would cause any symbols used from libc to
22557       # always be unresolved, which means just about no library would
22558       # ever link correctly.  If we're not using GNU ld we use -z text
22559       # though, which does catch some bad symbols but isn't as heavy-handed
22560       # as -z defs.
22561       no_undefined_flag_F77='${wl}-z,text'
22562       allow_undefined_flag_F77='${wl}-z,nodefs'
22563       archive_cmds_need_lc_F77=no
22564       hardcode_shlibpath_var_F77=no
22565       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22566       hardcode_libdir_separator_F77=':'
22567       link_all_deplibs_F77=yes
22568       export_dynamic_flag_spec_F77='${wl}-Bexport'
22569       runpath_var='LD_RUN_PATH'
22570
22571       if test "$GCC" = yes; then
22572         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22573         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22574       else
22575         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22576         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22577       fi
22578       ;;
22579
22580     uts4*)
22581       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22582       hardcode_libdir_flag_spec_F77='-L$libdir'
22583       hardcode_shlibpath_var_F77=no
22584       ;;
22585
22586     *)
22587       ld_shlibs_F77=no
22588       ;;
22589     esac
22590   fi
22591
22592 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22593 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22594 test "$ld_shlibs_F77" = no && can_build_shared=no
22595
22596 #
22597 # Do we need to explicitly link libc?
22598 #
22599 case "x$archive_cmds_need_lc_F77" in
22600 x|xyes)
22601   # Assume -lc should be added
22602   archive_cmds_need_lc_F77=yes
22603
22604   if test "$enable_shared" = yes && test "$GCC" = yes; then
22605     case $archive_cmds_F77 in
22606     *'~'*)
22607       # FIXME: we may have to deal with multi-command sequences.
22608       ;;
22609     '$CC '*)
22610       # Test whether the compiler implicitly links with -lc since on some
22611       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22612       # to ld, don't add -lc before -lgcc.
22613       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22614 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22615       $rm conftest*
22616       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22617
22618       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22619   (eval $ac_compile) 2>&5
22620   ac_status=$?
22621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622   (exit $ac_status); } 2>conftest.err; then
22623         soname=conftest
22624         lib=conftest
22625         libobjs=conftest.$ac_objext
22626         deplibs=
22627         wl=$lt_prog_compiler_wl_F77
22628         pic_flag=$lt_prog_compiler_pic_F77
22629         compiler_flags=-v
22630         linker_flags=-v
22631         verstring=
22632         output_objdir=.
22633         libname=conftest
22634         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22635         allow_undefined_flag_F77=
22636         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22637   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22638   ac_status=$?
22639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640   (exit $ac_status); }
22641         then
22642           archive_cmds_need_lc_F77=no
22643         else
22644           archive_cmds_need_lc_F77=yes
22645         fi
22646         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22647       else
22648         cat conftest.err 1>&5
22649       fi
22650       $rm conftest*
22651       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22652 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22653       ;;
22654     esac
22655   fi
22656   ;;
22657 esac
22658
22659 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22660 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22661 library_names_spec=
22662 libname_spec='lib$name'
22663 soname_spec=
22664 shrext_cmds=".so"
22665 postinstall_cmds=
22666 postuninstall_cmds=
22667 finish_cmds=
22668 finish_eval=
22669 shlibpath_var=
22670 shlibpath_overrides_runpath=unknown
22671 version_type=none
22672 dynamic_linker="$host_os ld.so"
22673 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22674 if test "$GCC" = yes; then
22675   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22676   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22677     # if the path contains ";" then we assume it to be the separator
22678     # otherwise default to the standard path separator (i.e. ":") - it is
22679     # assumed that no part of a normal pathname contains ";" but that should
22680     # okay in the real world where ";" in dirpaths is itself problematic.
22681     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22682   else
22683     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22684   fi
22685 else
22686   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22687 fi
22688 need_lib_prefix=unknown
22689 hardcode_into_libs=no
22690
22691 # when you set need_version to no, make sure it does not cause -set_version
22692 # flags to be left without arguments
22693 need_version=unknown
22694
22695 case $host_os in
22696 aix3*)
22697   version_type=linux
22698   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22699   shlibpath_var=LIBPATH
22700
22701   # AIX 3 has no versioning support, so we append a major version to the name.
22702   soname_spec='${libname}${release}${shared_ext}$major'
22703   ;;
22704
22705 aix4* | aix5*)
22706   version_type=linux
22707   need_lib_prefix=no
22708   need_version=no
22709   hardcode_into_libs=yes
22710   if test "$host_cpu" = ia64; then
22711     # AIX 5 supports IA64
22712     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22713     shlibpath_var=LD_LIBRARY_PATH
22714   else
22715     # With GCC up to 2.95.x, collect2 would create an import file
22716     # for dependence libraries.  The import file would start with
22717     # the line `#! .'.  This would cause the generated library to
22718     # depend on `.', always an invalid library.  This was fixed in
22719     # development snapshots of GCC prior to 3.0.
22720     case $host_os in
22721       aix4 | aix4.[01] | aix4.[01].*)
22722       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22723            echo ' yes '
22724            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22725         :
22726       else
22727         can_build_shared=no
22728       fi
22729       ;;
22730     esac
22731     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22732     # soname into executable. Probably we can add versioning support to
22733     # collect2, so additional links can be useful in future.
22734     if test "$aix_use_runtimelinking" = yes; then
22735       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22736       # instead of lib<name>.a to let people know that these are not
22737       # typical AIX shared libraries.
22738       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22739     else
22740       # We preserve .a as extension for shared libraries through AIX4.2
22741       # and later when we are not doing run time linking.
22742       library_names_spec='${libname}${release}.a $libname.a'
22743       soname_spec='${libname}${release}${shared_ext}$major'
22744     fi
22745     shlibpath_var=LIBPATH
22746   fi
22747   ;;
22748
22749 amigaos*)
22750   library_names_spec='$libname.ixlibrary $libname.a'
22751   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22752   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'
22753   ;;
22754
22755 beos*)
22756   library_names_spec='${libname}${shared_ext}'
22757   dynamic_linker="$host_os ld.so"
22758   shlibpath_var=LIBRARY_PATH
22759   ;;
22760
22761 bsdi[45]*)
22762   version_type=linux
22763   need_version=no
22764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22765   soname_spec='${libname}${release}${shared_ext}$major'
22766   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22767   shlibpath_var=LD_LIBRARY_PATH
22768   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22769   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22770   # the default ld.so.conf also contains /usr/contrib/lib and
22771   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22772   # libtool to hard-code these into programs
22773   ;;
22774
22775 cygwin* | mingw* | pw32*)
22776   version_type=windows
22777   shrext_cmds=".dll"
22778   need_version=no
22779   need_lib_prefix=no
22780
22781   case $GCC,$host_os in
22782   yes,cygwin* | yes,mingw* | yes,pw32*)
22783     library_names_spec='$libname.dll.a'
22784     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22785     postinstall_cmds='base_file=`basename \${file}`~
22786       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22787       dldir=$destdir/`dirname \$dlpath`~
22788       test -d \$dldir || mkdir -p \$dldir~
22789       $install_prog $dir/$dlname \$dldir/$dlname~
22790       chmod a+x \$dldir/$dlname'
22791     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22792       dlpath=$dir/\$dldll~
22793        $rm \$dlpath'
22794     shlibpath_overrides_runpath=yes
22795
22796     case $host_os in
22797     cygwin*)
22798       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22799       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22800       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22801       ;;
22802     mingw*)
22803       # MinGW DLLs use traditional 'lib' prefix
22804       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22805       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22806       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22807         # It is most probably a Windows format PATH printed by
22808         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22809         # path with ; separators, and with drive letters. We can handle the
22810         # drive letters (cygwin fileutils understands them), so leave them,
22811         # especially as we might pass files found there to a mingw objdump,
22812         # which wouldn't understand a cygwinified path. Ahh.
22813         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22814       else
22815         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22816       fi
22817       ;;
22818     pw32*)
22819       # pw32 DLLs use 'pw' prefix rather than 'lib'
22820       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22821       ;;
22822     esac
22823     ;;
22824
22825   *)
22826     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22827     ;;
22828   esac
22829   dynamic_linker='Win32 ld.exe'
22830   # FIXME: first we should search . and the directory the executable is in
22831   shlibpath_var=PATH
22832   ;;
22833
22834 darwin* | rhapsody*)
22835   dynamic_linker="$host_os dyld"
22836   version_type=darwin
22837   need_lib_prefix=no
22838   need_version=no
22839   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22840   soname_spec='${libname}${release}${major}$shared_ext'
22841   shlibpath_overrides_runpath=yes
22842   shlibpath_var=DYLD_LIBRARY_PATH
22843   shrext_cmds='.dylib'
22844   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22845   if test "$GCC" = yes; then
22846     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"`
22847   else
22848     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22849   fi
22850   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22851   ;;
22852
22853 dgux*)
22854   version_type=linux
22855   need_lib_prefix=no
22856   need_version=no
22857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22858   soname_spec='${libname}${release}${shared_ext}$major'
22859   shlibpath_var=LD_LIBRARY_PATH
22860   ;;
22861
22862 freebsd1*)
22863   dynamic_linker=no
22864   ;;
22865
22866 kfreebsd*-gnu)
22867   version_type=linux
22868   need_lib_prefix=no
22869   need_version=no
22870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22871   soname_spec='${libname}${release}${shared_ext}$major'
22872   shlibpath_var=LD_LIBRARY_PATH
22873   shlibpath_overrides_runpath=no
22874   hardcode_into_libs=yes
22875   dynamic_linker='GNU ld.so'
22876   ;;
22877
22878 freebsd* | dragonfly*)
22879   # DragonFly does not have aout.  When/if they implement a new
22880   # versioning mechanism, adjust this.
22881   if test -x /usr/bin/objformat; then
22882     objformat=`/usr/bin/objformat`
22883   else
22884     case $host_os in
22885     freebsd[123]*) objformat=aout ;;
22886     *) objformat=elf ;;
22887     esac
22888   fi
22889   version_type=freebsd-$objformat
22890   case $version_type in
22891     freebsd-elf*)
22892       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22893       need_version=no
22894       need_lib_prefix=no
22895       ;;
22896     freebsd-*)
22897       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22898       need_version=yes
22899       ;;
22900   esac
22901   shlibpath_var=LD_LIBRARY_PATH
22902   case $host_os in
22903   freebsd2*)
22904     shlibpath_overrides_runpath=yes
22905     ;;
22906   freebsd3.[01]* | freebsdelf3.[01]*)
22907     shlibpath_overrides_runpath=yes
22908     hardcode_into_libs=yes
22909     ;;
22910   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22911   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22912     shlibpath_overrides_runpath=no
22913     hardcode_into_libs=yes
22914     ;;
22915   freebsd*) # from 4.6 on
22916     shlibpath_overrides_runpath=yes
22917     hardcode_into_libs=yes
22918     ;;
22919   esac
22920   ;;
22921
22922 gnu*)
22923   version_type=linux
22924   need_lib_prefix=no
22925   need_version=no
22926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22927   soname_spec='${libname}${release}${shared_ext}$major'
22928   shlibpath_var=LD_LIBRARY_PATH
22929   hardcode_into_libs=yes
22930   ;;
22931
22932 hpux9* | hpux10* | hpux11*)
22933   # Give a soname corresponding to the major version so that dld.sl refuses to
22934   # link against other versions.
22935   version_type=sunos
22936   need_lib_prefix=no
22937   need_version=no
22938   case $host_cpu in
22939   ia64*)
22940     shrext_cmds='.so'
22941     hardcode_into_libs=yes
22942     dynamic_linker="$host_os dld.so"
22943     shlibpath_var=LD_LIBRARY_PATH
22944     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22945     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22946     soname_spec='${libname}${release}${shared_ext}$major'
22947     if test "X$HPUX_IA64_MODE" = X32; then
22948       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22949     else
22950       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22951     fi
22952     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22953     ;;
22954    hppa*64*)
22955      shrext_cmds='.sl'
22956      hardcode_into_libs=yes
22957      dynamic_linker="$host_os dld.sl"
22958      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22959      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22960      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22961      soname_spec='${libname}${release}${shared_ext}$major'
22962      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22963      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22964      ;;
22965    *)
22966     shrext_cmds='.sl'
22967     dynamic_linker="$host_os dld.sl"
22968     shlibpath_var=SHLIB_PATH
22969     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22970     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22971     soname_spec='${libname}${release}${shared_ext}$major'
22972     ;;
22973   esac
22974   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22975   postinstall_cmds='chmod 555 $lib'
22976   ;;
22977
22978 interix3*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22985   shlibpath_var=LD_LIBRARY_PATH
22986   shlibpath_overrides_runpath=no
22987   hardcode_into_libs=yes
22988   ;;
22989
22990 irix5* | irix6* | nonstopux*)
22991   case $host_os in
22992     nonstopux*) version_type=nonstopux ;;
22993     *)
22994         if test "$lt_cv_prog_gnu_ld" = yes; then
22995                 version_type=linux
22996         else
22997                 version_type=irix
22998         fi ;;
22999   esac
23000   need_lib_prefix=no
23001   need_version=no
23002   soname_spec='${libname}${release}${shared_ext}$major'
23003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23004   case $host_os in
23005   irix5* | nonstopux*)
23006     libsuff= shlibsuff=
23007     ;;
23008   *)
23009     case $LD in # libtool.m4 will add one of these switches to LD
23010     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23011       libsuff= shlibsuff= libmagic=32-bit;;
23012     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23013       libsuff=32 shlibsuff=N32 libmagic=N32;;
23014     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23015       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23016     *) libsuff= shlibsuff= libmagic=never-match;;
23017     esac
23018     ;;
23019   esac
23020   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23021   shlibpath_overrides_runpath=no
23022   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23023   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23024   hardcode_into_libs=yes
23025   ;;
23026
23027 # No shared lib support for Linux oldld, aout, or coff.
23028 linux*oldld* | linux*aout* | linux*coff*)
23029   dynamic_linker=no
23030   ;;
23031
23032 # This must be Linux ELF.
23033 linux*)
23034   version_type=linux
23035   need_lib_prefix=no
23036   need_version=no
23037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23038   soname_spec='${libname}${release}${shared_ext}$major'
23039   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23040   shlibpath_var=LD_LIBRARY_PATH
23041   shlibpath_overrides_runpath=no
23042   # This implies no fast_install, which is unacceptable.
23043   # Some rework will be needed to allow for fast_install
23044   # before this can be enabled.
23045   hardcode_into_libs=yes
23046
23047   # Append ld.so.conf contents to the search path
23048   if test -f /etc/ld.so.conf; then
23049     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' ' '`
23050     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23051   fi
23052
23053   # We used to test for /lib/ld.so.1 and disable shared libraries on
23054   # powerpc, because MkLinux only supported shared libraries with the
23055   # GNU dynamic linker.  Since this was broken with cross compilers,
23056   # most powerpc-linux boxes support dynamic linking these days and
23057   # people can always --disable-shared, the test was removed, and we
23058   # assume the GNU/Linux dynamic linker is in use.
23059   dynamic_linker='GNU/Linux ld.so'
23060   ;;
23061
23062 knetbsd*-gnu)
23063   version_type=linux
23064   need_lib_prefix=no
23065   need_version=no
23066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23067   soname_spec='${libname}${release}${shared_ext}$major'
23068   shlibpath_var=LD_LIBRARY_PATH
23069   shlibpath_overrides_runpath=no
23070   hardcode_into_libs=yes
23071   dynamic_linker='GNU ld.so'
23072   ;;
23073
23074 netbsd*)
23075   version_type=sunos
23076   need_lib_prefix=no
23077   need_version=no
23078   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23079     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23080     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23081     dynamic_linker='NetBSD (a.out) ld.so'
23082   else
23083     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23084     soname_spec='${libname}${release}${shared_ext}$major'
23085     dynamic_linker='NetBSD ld.elf_so'
23086   fi
23087   shlibpath_var=LD_LIBRARY_PATH
23088   shlibpath_overrides_runpath=yes
23089   hardcode_into_libs=yes
23090   ;;
23091
23092 newsos6)
23093   version_type=linux
23094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23095   shlibpath_var=LD_LIBRARY_PATH
23096   shlibpath_overrides_runpath=yes
23097   ;;
23098
23099 nto-qnx*)
23100   version_type=linux
23101   need_lib_prefix=no
23102   need_version=no
23103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23104   soname_spec='${libname}${release}${shared_ext}$major'
23105   shlibpath_var=LD_LIBRARY_PATH
23106   shlibpath_overrides_runpath=yes
23107   ;;
23108
23109 openbsd*)
23110   version_type=sunos
23111   sys_lib_dlsearch_path_spec="/usr/lib"
23112   need_lib_prefix=no
23113   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23114   case $host_os in
23115     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23116     *)                         need_version=no  ;;
23117   esac
23118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23119   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23120   shlibpath_var=LD_LIBRARY_PATH
23121   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23122     case $host_os in
23123       openbsd2.[89] | openbsd2.[89].*)
23124         shlibpath_overrides_runpath=no
23125         ;;
23126       *)
23127         shlibpath_overrides_runpath=yes
23128         ;;
23129       esac
23130   else
23131     shlibpath_overrides_runpath=yes
23132   fi
23133   ;;
23134
23135 os2*)
23136   libname_spec='$name'
23137   shrext_cmds=".dll"
23138   need_lib_prefix=no
23139   library_names_spec='$libname${shared_ext} $libname.a'
23140   dynamic_linker='OS/2 ld.exe'
23141   shlibpath_var=LIBPATH
23142   ;;
23143
23144 osf3* | osf4* | osf5*)
23145   version_type=osf
23146   need_lib_prefix=no
23147   need_version=no
23148   soname_spec='${libname}${release}${shared_ext}$major'
23149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23150   shlibpath_var=LD_LIBRARY_PATH
23151   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23152   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23153   ;;
23154
23155 solaris*)
23156   version_type=linux
23157   need_lib_prefix=no
23158   need_version=no
23159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23160   soname_spec='${libname}${release}${shared_ext}$major'
23161   shlibpath_var=LD_LIBRARY_PATH
23162   shlibpath_overrides_runpath=yes
23163   hardcode_into_libs=yes
23164   # ldd complains unless libraries are executable
23165   postinstall_cmds='chmod +x $lib'
23166   ;;
23167
23168 sunos4*)
23169   version_type=sunos
23170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23171   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23172   shlibpath_var=LD_LIBRARY_PATH
23173   shlibpath_overrides_runpath=yes
23174   if test "$with_gnu_ld" = yes; then
23175     need_lib_prefix=no
23176   fi
23177   need_version=yes
23178   ;;
23179
23180 sysv4 | sysv4.3*)
23181   version_type=linux
23182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23183   soname_spec='${libname}${release}${shared_ext}$major'
23184   shlibpath_var=LD_LIBRARY_PATH
23185   case $host_vendor in
23186     sni)
23187       shlibpath_overrides_runpath=no
23188       need_lib_prefix=no
23189       export_dynamic_flag_spec='${wl}-Blargedynsym'
23190       runpath_var=LD_RUN_PATH
23191       ;;
23192     siemens)
23193       need_lib_prefix=no
23194       ;;
23195     motorola)
23196       need_lib_prefix=no
23197       need_version=no
23198       shlibpath_overrides_runpath=no
23199       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23200       ;;
23201   esac
23202   ;;
23203
23204 sysv4*MP*)
23205   if test -d /usr/nec ;then
23206     version_type=linux
23207     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23208     soname_spec='$libname${shared_ext}.$major'
23209     shlibpath_var=LD_LIBRARY_PATH
23210   fi
23211   ;;
23212
23213 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23214   version_type=freebsd-elf
23215   need_lib_prefix=no
23216   need_version=no
23217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23218   soname_spec='${libname}${release}${shared_ext}$major'
23219   shlibpath_var=LD_LIBRARY_PATH
23220   hardcode_into_libs=yes
23221   if test "$with_gnu_ld" = yes; then
23222     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23223     shlibpath_overrides_runpath=no
23224   else
23225     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23226     shlibpath_overrides_runpath=yes
23227     case $host_os in
23228       sco3.2v5*)
23229         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23230         ;;
23231     esac
23232   fi
23233   sys_lib_dlsearch_path_spec='/usr/lib'
23234   ;;
23235
23236 uts4*)
23237   version_type=linux
23238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23239   soname_spec='${libname}${release}${shared_ext}$major'
23240   shlibpath_var=LD_LIBRARY_PATH
23241   ;;
23242
23243 *)
23244   dynamic_linker=no
23245   ;;
23246 esac
23247 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23248 echo "${ECHO_T}$dynamic_linker" >&6; }
23249 test "$dynamic_linker" = no && can_build_shared=no
23250
23251 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23252 if test "$GCC" = yes; then
23253   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23254 fi
23255
23256 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23257 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23258 hardcode_action_F77=
23259 if test -n "$hardcode_libdir_flag_spec_F77" || \
23260    test -n "$runpath_var_F77" || \
23261    test "X$hardcode_automatic_F77" = "Xyes" ; then
23262
23263   # We can hardcode non-existant directories.
23264   if test "$hardcode_direct_F77" != no &&
23265      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23266      # have to relink, otherwise we might link with an installed library
23267      # when we should be linking with a yet-to-be-installed one
23268      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23269      test "$hardcode_minus_L_F77" != no; then
23270     # Linking always hardcodes the temporary library directory.
23271     hardcode_action_F77=relink
23272   else
23273     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23274     hardcode_action_F77=immediate
23275   fi
23276 else
23277   # We cannot hardcode anything, or else we can only hardcode existing
23278   # directories.
23279   hardcode_action_F77=unsupported
23280 fi
23281 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23282 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23283
23284 if test "$hardcode_action_F77" = relink; then
23285   # Fast installation is not supported
23286   enable_fast_install=no
23287 elif test "$shlibpath_overrides_runpath" = yes ||
23288      test "$enable_shared" = no; then
23289   # Fast installation is not necessary
23290   enable_fast_install=needless
23291 fi
23292
23293
23294 # The else clause should only fire when bootstrapping the
23295 # libtool distribution, otherwise you forgot to ship ltmain.sh
23296 # with your package, and you will get complaints that there are
23297 # no rules to generate ltmain.sh.
23298 if test -f "$ltmain"; then
23299   # See if we are running on zsh, and set the options which allow our commands through
23300   # without removal of \ escapes.
23301   if test -n "${ZSH_VERSION+set}" ; then
23302     setopt NO_GLOB_SUBST
23303   fi
23304   # Now quote all the things that may contain metacharacters while being
23305   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23306   # variables and quote the copies for generation of the libtool script.
23307   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23308     SED SHELL STRIP \
23309     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23310     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23311     deplibs_check_method reload_flag reload_cmds need_locks \
23312     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23313     lt_cv_sys_global_symbol_to_c_name_address \
23314     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23315     old_postinstall_cmds old_postuninstall_cmds \
23316     compiler_F77 \
23317     CC_F77 \
23318     LD_F77 \
23319     lt_prog_compiler_wl_F77 \
23320     lt_prog_compiler_pic_F77 \
23321     lt_prog_compiler_static_F77 \
23322     lt_prog_compiler_no_builtin_flag_F77 \
23323     export_dynamic_flag_spec_F77 \
23324     thread_safe_flag_spec_F77 \
23325     whole_archive_flag_spec_F77 \
23326     enable_shared_with_static_runtimes_F77 \
23327     old_archive_cmds_F77 \
23328     old_archive_from_new_cmds_F77 \
23329     predep_objects_F77 \
23330     postdep_objects_F77 \
23331     predeps_F77 \
23332     postdeps_F77 \
23333     compiler_lib_search_path_F77 \
23334     archive_cmds_F77 \
23335     archive_expsym_cmds_F77 \
23336     postinstall_cmds_F77 \
23337     postuninstall_cmds_F77 \
23338     old_archive_from_expsyms_cmds_F77 \
23339     allow_undefined_flag_F77 \
23340     no_undefined_flag_F77 \
23341     export_symbols_cmds_F77 \
23342     hardcode_libdir_flag_spec_F77 \
23343     hardcode_libdir_flag_spec_ld_F77 \
23344     hardcode_libdir_separator_F77 \
23345     hardcode_automatic_F77 \
23346     module_cmds_F77 \
23347     module_expsym_cmds_F77 \
23348     lt_cv_prog_compiler_c_o_F77 \
23349     exclude_expsyms_F77 \
23350     include_expsyms_F77; do
23351
23352     case $var in
23353     old_archive_cmds_F77 | \
23354     old_archive_from_new_cmds_F77 | \
23355     archive_cmds_F77 | \
23356     archive_expsym_cmds_F77 | \
23357     module_cmds_F77 | \
23358     module_expsym_cmds_F77 | \
23359     old_archive_from_expsyms_cmds_F77 | \
23360     export_symbols_cmds_F77 | \
23361     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23362     postinstall_cmds | postuninstall_cmds | \
23363     old_postinstall_cmds | old_postuninstall_cmds | \
23364     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23365       # Double-quote double-evaled strings.
23366       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23367       ;;
23368     *)
23369       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23370       ;;
23371     esac
23372   done
23373
23374   case $lt_echo in
23375   *'\$0 --fallback-echo"')
23376     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23377     ;;
23378   esac
23379
23380 cfgfile="$ofile"
23381
23382   cat <<__EOF__ >> "$cfgfile"
23383 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23384
23385 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23386
23387 # Shell to use when invoking shell scripts.
23388 SHELL=$lt_SHELL
23389
23390 # Whether or not to build shared libraries.
23391 build_libtool_libs=$enable_shared
23392
23393 # Whether or not to build static libraries.
23394 build_old_libs=$enable_static
23395
23396 # Whether or not to add -lc for building shared libraries.
23397 build_libtool_need_lc=$archive_cmds_need_lc_F77
23398
23399 # Whether or not to disallow shared libs when runtime libs are static
23400 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23401
23402 # Whether or not to optimize for fast installation.
23403 fast_install=$enable_fast_install
23404
23405 # The host system.
23406 host_alias=$host_alias
23407 host=$host
23408 host_os=$host_os
23409
23410 # The build system.
23411 build_alias=$build_alias
23412 build=$build
23413 build_os=$build_os
23414
23415 # An echo program that does not interpret backslashes.
23416 echo=$lt_echo
23417
23418 # The archiver.
23419 AR=$lt_AR
23420 AR_FLAGS=$lt_AR_FLAGS
23421
23422 # A C compiler.
23423 LTCC=$lt_LTCC
23424
23425 # LTCC compiler flags.
23426 LTCFLAGS=$lt_LTCFLAGS
23427
23428 # A language-specific compiler.
23429 CC=$lt_compiler_F77
23430
23431 # Is the compiler the GNU C compiler?
23432 with_gcc=$GCC_F77
23433
23434 # An ERE matcher.
23435 EGREP=$lt_EGREP
23436
23437 # The linker used to build libraries.
23438 LD=$lt_LD_F77
23439
23440 # Whether we need hard or soft links.
23441 LN_S=$lt_LN_S
23442
23443 # A BSD-compatible nm program.
23444 NM=$lt_NM
23445
23446 # A symbol stripping program
23447 STRIP=$lt_STRIP
23448
23449 # Used to examine libraries when file_magic_cmd begins "file"
23450 MAGIC_CMD=$MAGIC_CMD
23451
23452 # Used on cygwin: DLL creation program.
23453 DLLTOOL="$DLLTOOL"
23454
23455 # Used on cygwin: object dumper.
23456 OBJDUMP="$OBJDUMP"
23457
23458 # Used on cygwin: assembler.
23459 AS="$AS"
23460
23461 # The name of the directory that contains temporary libtool files.
23462 objdir=$objdir
23463
23464 # How to create reloadable object files.
23465 reload_flag=$lt_reload_flag
23466 reload_cmds=$lt_reload_cmds
23467
23468 # How to pass a linker flag through the compiler.
23469 wl=$lt_lt_prog_compiler_wl_F77
23470
23471 # Object file suffix (normally "o").
23472 objext="$ac_objext"
23473
23474 # Old archive suffix (normally "a").
23475 libext="$libext"
23476
23477 # Shared library suffix (normally ".so").
23478 shrext_cmds='$shrext_cmds'
23479
23480 # Executable file suffix (normally "").
23481 exeext="$exeext"
23482
23483 # Additional compiler flags for building library objects.
23484 pic_flag=$lt_lt_prog_compiler_pic_F77
23485 pic_mode=$pic_mode
23486
23487 # What is the maximum length of a command?
23488 max_cmd_len=$lt_cv_sys_max_cmd_len
23489
23490 # Does compiler simultaneously support -c and -o options?
23491 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23492
23493 # Must we lock files when doing compilation?
23494 need_locks=$lt_need_locks
23495
23496 # Do we need the lib prefix for modules?
23497 need_lib_prefix=$need_lib_prefix
23498
23499 # Do we need a version for libraries?
23500 need_version=$need_version
23501
23502 # Whether dlopen is supported.
23503 dlopen_support=$enable_dlopen
23504
23505 # Whether dlopen of programs is supported.
23506 dlopen_self=$enable_dlopen_self
23507
23508 # Whether dlopen of statically linked programs is supported.
23509 dlopen_self_static=$enable_dlopen_self_static
23510
23511 # Compiler flag to prevent dynamic linking.
23512 link_static_flag=$lt_lt_prog_compiler_static_F77
23513
23514 # Compiler flag to turn off builtin functions.
23515 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23516
23517 # Compiler flag to allow reflexive dlopens.
23518 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23519
23520 # Compiler flag to generate shared objects directly from archives.
23521 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23522
23523 # Compiler flag to generate thread-safe objects.
23524 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23525
23526 # Library versioning type.
23527 version_type=$version_type
23528
23529 # Format of library name prefix.
23530 libname_spec=$lt_libname_spec
23531
23532 # List of archive names.  First name is the real one, the rest are links.
23533 # The last name is the one that the linker finds with -lNAME.
23534 library_names_spec=$lt_library_names_spec
23535
23536 # The coded name of the library, if different from the real name.
23537 soname_spec=$lt_soname_spec
23538
23539 # Commands used to build and install an old-style archive.
23540 RANLIB=$lt_RANLIB
23541 old_archive_cmds=$lt_old_archive_cmds_F77
23542 old_postinstall_cmds=$lt_old_postinstall_cmds
23543 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23544
23545 # Create an old-style archive from a shared archive.
23546 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23547
23548 # Create a temporary old-style archive to link instead of a shared archive.
23549 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23550
23551 # Commands used to build and install a shared archive.
23552 archive_cmds=$lt_archive_cmds_F77
23553 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23554 postinstall_cmds=$lt_postinstall_cmds
23555 postuninstall_cmds=$lt_postuninstall_cmds
23556
23557 # Commands used to build a loadable module (assumed same as above if empty)
23558 module_cmds=$lt_module_cmds_F77
23559 module_expsym_cmds=$lt_module_expsym_cmds_F77
23560
23561 # Commands to strip libraries.
23562 old_striplib=$lt_old_striplib
23563 striplib=$lt_striplib
23564
23565 # Dependencies to place before the objects being linked to create a
23566 # shared library.
23567 predep_objects=$lt_predep_objects_F77
23568
23569 # Dependencies to place after the objects being linked to create a
23570 # shared library.
23571 postdep_objects=$lt_postdep_objects_F77
23572
23573 # Dependencies to place before the objects being linked to create a
23574 # shared library.
23575 predeps=$lt_predeps_F77
23576
23577 # Dependencies to place after the objects being linked to create a
23578 # shared library.
23579 postdeps=$lt_postdeps_F77
23580
23581 # The library search path used internally by the compiler when linking
23582 # a shared library.
23583 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23584
23585 # Method to check whether dependent libraries are shared objects.
23586 deplibs_check_method=$lt_deplibs_check_method
23587
23588 # Command to use when deplibs_check_method == file_magic.
23589 file_magic_cmd=$lt_file_magic_cmd
23590
23591 # Flag that allows shared libraries with undefined symbols to be built.
23592 allow_undefined_flag=$lt_allow_undefined_flag_F77
23593
23594 # Flag that forces no undefined symbols.
23595 no_undefined_flag=$lt_no_undefined_flag_F77
23596
23597 # Commands used to finish a libtool library installation in a directory.
23598 finish_cmds=$lt_finish_cmds
23599
23600 # Same as above, but a single script fragment to be evaled but not shown.
23601 finish_eval=$lt_finish_eval
23602
23603 # Take the output of nm and produce a listing of raw symbols and C names.
23604 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23605
23606 # Transform the output of nm in a proper C declaration
23607 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23608
23609 # Transform the output of nm in a C name address pair
23610 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23611
23612 # This is the shared library runtime path variable.
23613 runpath_var=$runpath_var
23614
23615 # This is the shared library path variable.
23616 shlibpath_var=$shlibpath_var
23617
23618 # Is shlibpath searched before the hard-coded library search path?
23619 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23620
23621 # How to hardcode a shared library path into an executable.
23622 hardcode_action=$hardcode_action_F77
23623
23624 # Whether we should hardcode library paths into libraries.
23625 hardcode_into_libs=$hardcode_into_libs
23626
23627 # Flag to hardcode \$libdir into a binary during linking.
23628 # This must work even if \$libdir does not exist.
23629 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23630
23631 # If ld is used when linking, flag to hardcode \$libdir into
23632 # a binary during linking. This must work even if \$libdir does
23633 # not exist.
23634 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23635
23636 # Whether we need a single -rpath flag with a separated argument.
23637 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23638
23639 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23640 # resulting binary.
23641 hardcode_direct=$hardcode_direct_F77
23642
23643 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23644 # resulting binary.
23645 hardcode_minus_L=$hardcode_minus_L_F77
23646
23647 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23648 # the resulting binary.
23649 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23650
23651 # Set to yes if building a shared library automatically hardcodes DIR into the library
23652 # and all subsequent libraries and executables linked against it.
23653 hardcode_automatic=$hardcode_automatic_F77
23654
23655 # Variables whose values should be saved in libtool wrapper scripts and
23656 # restored at relink time.
23657 variables_saved_for_relink="$variables_saved_for_relink"
23658
23659 # Whether libtool must link a program against all its dependency libraries.
23660 link_all_deplibs=$link_all_deplibs_F77
23661
23662 # Compile-time system search path for libraries
23663 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23664
23665 # Run-time system search path for libraries
23666 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23667
23668 # Fix the shell variable \$srcfile for the compiler.
23669 fix_srcfile_path="$fix_srcfile_path_F77"
23670
23671 # Set to yes if exported symbols are required.
23672 always_export_symbols=$always_export_symbols_F77
23673
23674 # The commands to list exported symbols.
23675 export_symbols_cmds=$lt_export_symbols_cmds_F77
23676
23677 # The commands to extract the exported symbol list from a shared archive.
23678 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23679
23680 # Symbols that should not be listed in the preloaded symbols.
23681 exclude_expsyms=$lt_exclude_expsyms_F77
23682
23683 # Symbols that must always be exported.
23684 include_expsyms=$lt_include_expsyms_F77
23685
23686 # ### END LIBTOOL TAG CONFIG: $tagname
23687
23688 __EOF__
23689
23690
23691 else
23692   # If there is no Makefile yet, we rely on a make rule to execute
23693   # `config.status --recheck' to rerun these tests and create the
23694   # libtool script then.
23695   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23696   if test -f "$ltmain_in"; then
23697     test -f Makefile && make "$ltmain"
23698   fi
23699 fi
23700
23701
23702 ac_ext=c
23703 ac_cpp='$CPP $CPPFLAGS'
23704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23707
23708 CC="$lt_save_CC"
23709
23710         else
23711           tagname=""
23712         fi
23713         ;;
23714
23715       GCJ)
23716         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23717           ac_ext=c
23718 ac_cpp='$CPP $CPPFLAGS'
23719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23722
23723
23724 # Source file extension for Java test sources.
23725 ac_ext=java
23726
23727 # Object file extension for compiled Java test sources.
23728 objext=o
23729 objext_GCJ=$objext
23730
23731 # Code to be used in simple compile tests
23732 lt_simple_compile_test_code="class foo {}\n"
23733
23734 # Code to be used in simple link tests
23735 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23736
23737 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23738
23739 # If no C compiler was specified, use CC.
23740 LTCC=${LTCC-"$CC"}
23741
23742 # If no C compiler flags were specified, use CFLAGS.
23743 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23744
23745 # Allow CC to be a program name with arguments.
23746 compiler=$CC
23747
23748
23749 # save warnings/boilerplate of simple test code
23750 ac_outfile=conftest.$ac_objext
23751 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23752 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23753 _lt_compiler_boilerplate=`cat conftest.err`
23754 $rm conftest*
23755
23756 ac_outfile=conftest.$ac_objext
23757 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23758 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23759 _lt_linker_boilerplate=`cat conftest.err`
23760 $rm conftest*
23761
23762
23763 # Allow CC to be a program name with arguments.
23764 lt_save_CC="$CC"
23765 CC=${GCJ-"gcj"}
23766 compiler=$CC
23767 compiler_GCJ=$CC
23768 for cc_temp in $compiler""; do
23769   case $cc_temp in
23770     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23771     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23772     \-*) ;;
23773     *) break;;
23774   esac
23775 done
23776 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23777
23778
23779 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23780 archive_cmds_need_lc_GCJ=no
23781
23782 old_archive_cmds_GCJ=$old_archive_cmds
23783
23784
23785 lt_prog_compiler_no_builtin_flag_GCJ=
23786
23787 if test "$GCC" = yes; then
23788   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23789
23790
23791 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23792 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23793 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23794   echo $ECHO_N "(cached) $ECHO_C" >&6
23795 else
23796   lt_cv_prog_compiler_rtti_exceptions=no
23797   ac_outfile=conftest.$ac_objext
23798    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23799    lt_compiler_flag="-fno-rtti -fno-exceptions"
23800    # Insert the option either (1) after the last *FLAGS variable, or
23801    # (2) before a word containing "conftest.", or (3) at the end.
23802    # Note that $ac_compile itself does not contain backslashes and begins
23803    # with a dollar sign (not a hyphen), so the echo should work correctly.
23804    # The option is referenced via a variable to avoid confusing sed.
23805    lt_compile=`echo "$ac_compile" | $SED \
23806    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23807    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23808    -e 's:$: $lt_compiler_flag:'`
23809    (eval echo "\"\$as_me:23806: $lt_compile\"" >&5)
23810    (eval "$lt_compile" 2>conftest.err)
23811    ac_status=$?
23812    cat conftest.err >&5
23813    echo "$as_me:23810: \$? = $ac_status" >&5
23814    if (exit $ac_status) && test -s "$ac_outfile"; then
23815      # The compiler can only warn and ignore the option if not recognized
23816      # So say no if there are warnings other than the usual output.
23817      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23818      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23819      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23820        lt_cv_prog_compiler_rtti_exceptions=yes
23821      fi
23822    fi
23823    $rm conftest*
23824
23825 fi
23826 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23827 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23828
23829 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23830     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23831 else
23832     :
23833 fi
23834
23835 fi
23836
23837 lt_prog_compiler_wl_GCJ=
23838 lt_prog_compiler_pic_GCJ=
23839 lt_prog_compiler_static_GCJ=
23840
23841 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23842 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23843
23844   if test "$GCC" = yes; then
23845     lt_prog_compiler_wl_GCJ='-Wl,'
23846     lt_prog_compiler_static_GCJ='-static'
23847
23848     case $host_os in
23849       aix*)
23850       # All AIX code is PIC.
23851       if test "$host_cpu" = ia64; then
23852         # AIX 5 now supports IA64 processor
23853         lt_prog_compiler_static_GCJ='-Bstatic'
23854       fi
23855       ;;
23856
23857     amigaos*)
23858       # FIXME: we need at least 68020 code to build shared libraries, but
23859       # adding the `-m68020' flag to GCC prevents building anything better,
23860       # like `-m68040'.
23861       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23862       ;;
23863
23864     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23865       # PIC is the default for these OSes.
23866       ;;
23867
23868     mingw* | pw32* | os2*)
23869       # This hack is so that the source file can tell whether it is being
23870       # built for inclusion in a dll (and should export symbols for example).
23871       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23872       ;;
23873
23874     darwin* | rhapsody*)
23875       # PIC is the default on this platform
23876       # Common symbols not allowed in MH_DYLIB files
23877       lt_prog_compiler_pic_GCJ='-fno-common'
23878       ;;
23879
23880     interix3*)
23881       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23882       # Instead, we relocate shared libraries at runtime.
23883       ;;
23884
23885     msdosdjgpp*)
23886       # Just because we use GCC doesn't mean we suddenly get shared libraries
23887       # on systems that don't support them.
23888       lt_prog_compiler_can_build_shared_GCJ=no
23889       enable_shared=no
23890       ;;
23891
23892     sysv4*MP*)
23893       if test -d /usr/nec; then
23894         lt_prog_compiler_pic_GCJ=-Kconform_pic
23895       fi
23896       ;;
23897
23898     hpux*)
23899       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23900       # not for PA HP-UX.
23901       case $host_cpu in
23902       hppa*64*|ia64*)
23903         # +Z the default
23904         ;;
23905       *)
23906         lt_prog_compiler_pic_GCJ='-fPIC'
23907         ;;
23908       esac
23909       ;;
23910
23911     *)
23912       lt_prog_compiler_pic_GCJ='-fPIC'
23913       ;;
23914     esac
23915   else
23916     # PORTME Check for flag to pass linker flags through the system compiler.
23917     case $host_os in
23918     aix*)
23919       lt_prog_compiler_wl_GCJ='-Wl,'
23920       if test "$host_cpu" = ia64; then
23921         # AIX 5 now supports IA64 processor
23922         lt_prog_compiler_static_GCJ='-Bstatic'
23923       else
23924         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23925       fi
23926       ;;
23927       darwin*)
23928         # PIC is the default on this platform
23929         # Common symbols not allowed in MH_DYLIB files
23930        case $cc_basename in
23931          xlc*)
23932          lt_prog_compiler_pic_GCJ='-qnocommon'
23933          lt_prog_compiler_wl_GCJ='-Wl,'
23934          ;;
23935        esac
23936        ;;
23937
23938     mingw* | pw32* | os2*)
23939       # This hack is so that the source file can tell whether it is being
23940       # built for inclusion in a dll (and should export symbols for example).
23941       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23942       ;;
23943
23944     hpux9* | hpux10* | hpux11*)
23945       lt_prog_compiler_wl_GCJ='-Wl,'
23946       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23947       # not for PA HP-UX.
23948       case $host_cpu in
23949       hppa*64*|ia64*)
23950         # +Z the default
23951         ;;
23952       *)
23953         lt_prog_compiler_pic_GCJ='+Z'
23954         ;;
23955       esac
23956       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23957       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23958       ;;
23959
23960     irix5* | irix6* | nonstopux*)
23961       lt_prog_compiler_wl_GCJ='-Wl,'
23962       # PIC (with -KPIC) is the default.
23963       lt_prog_compiler_static_GCJ='-non_shared'
23964       ;;
23965
23966     newsos6)
23967       lt_prog_compiler_pic_GCJ='-KPIC'
23968       lt_prog_compiler_static_GCJ='-Bstatic'
23969       ;;
23970
23971     linux*)
23972       case $cc_basename in
23973       icc* | ecc*)
23974         lt_prog_compiler_wl_GCJ='-Wl,'
23975         lt_prog_compiler_pic_GCJ='-KPIC'
23976         lt_prog_compiler_static_GCJ='-static'
23977         ;;
23978       pgcc* | pgf77* | pgf90* | pgf95*)
23979         # Portland Group compilers (*not* the Pentium gcc compiler,
23980         # which looks to be a dead project)
23981         lt_prog_compiler_wl_GCJ='-Wl,'
23982         lt_prog_compiler_pic_GCJ='-fpic'
23983         lt_prog_compiler_static_GCJ='-Bstatic'
23984         ;;
23985       ccc*)
23986         lt_prog_compiler_wl_GCJ='-Wl,'
23987         # All Alpha code is PIC.
23988         lt_prog_compiler_static_GCJ='-non_shared'
23989         ;;
23990       esac
23991       ;;
23992
23993     osf3* | osf4* | osf5*)
23994       lt_prog_compiler_wl_GCJ='-Wl,'
23995       # All OSF/1 code is PIC.
23996       lt_prog_compiler_static_GCJ='-non_shared'
23997       ;;
23998
23999     solaris*)
24000       lt_prog_compiler_pic_GCJ='-KPIC'
24001       lt_prog_compiler_static_GCJ='-Bstatic'
24002       case $cc_basename in
24003       f77* | f90* | f95*)
24004         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24005       *)
24006         lt_prog_compiler_wl_GCJ='-Wl,';;
24007       esac
24008       ;;
24009
24010     sunos4*)
24011       lt_prog_compiler_wl_GCJ='-Qoption ld '
24012       lt_prog_compiler_pic_GCJ='-PIC'
24013       lt_prog_compiler_static_GCJ='-Bstatic'
24014       ;;
24015
24016     sysv4 | sysv4.2uw2* | sysv4.3*)
24017       lt_prog_compiler_wl_GCJ='-Wl,'
24018       lt_prog_compiler_pic_GCJ='-KPIC'
24019       lt_prog_compiler_static_GCJ='-Bstatic'
24020       ;;
24021
24022     sysv4*MP*)
24023       if test -d /usr/nec ;then
24024         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24025         lt_prog_compiler_static_GCJ='-Bstatic'
24026       fi
24027       ;;
24028
24029     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24030       lt_prog_compiler_wl_GCJ='-Wl,'
24031       lt_prog_compiler_pic_GCJ='-KPIC'
24032       lt_prog_compiler_static_GCJ='-Bstatic'
24033       ;;
24034
24035     unicos*)
24036       lt_prog_compiler_wl_GCJ='-Wl,'
24037       lt_prog_compiler_can_build_shared_GCJ=no
24038       ;;
24039
24040     uts4*)
24041       lt_prog_compiler_pic_GCJ='-pic'
24042       lt_prog_compiler_static_GCJ='-Bstatic'
24043       ;;
24044
24045     *)
24046       lt_prog_compiler_can_build_shared_GCJ=no
24047       ;;
24048     esac
24049   fi
24050
24051 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24052 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24053
24054 #
24055 # Check to make sure the PIC flag actually works.
24056 #
24057 if test -n "$lt_prog_compiler_pic_GCJ"; then
24058
24059 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24060 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24061 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24062   echo $ECHO_N "(cached) $ECHO_C" >&6
24063 else
24064   lt_prog_compiler_pic_works_GCJ=no
24065   ac_outfile=conftest.$ac_objext
24066    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24067    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24068    # Insert the option either (1) after the last *FLAGS variable, or
24069    # (2) before a word containing "conftest.", or (3) at the end.
24070    # Note that $ac_compile itself does not contain backslashes and begins
24071    # with a dollar sign (not a hyphen), so the echo should work correctly.
24072    # The option is referenced via a variable to avoid confusing sed.
24073    lt_compile=`echo "$ac_compile" | $SED \
24074    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24075    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24076    -e 's:$: $lt_compiler_flag:'`
24077    (eval echo "\"\$as_me:24074: $lt_compile\"" >&5)
24078    (eval "$lt_compile" 2>conftest.err)
24079    ac_status=$?
24080    cat conftest.err >&5
24081    echo "$as_me:24078: \$? = $ac_status" >&5
24082    if (exit $ac_status) && test -s "$ac_outfile"; then
24083      # The compiler can only warn and ignore the option if not recognized
24084      # So say no if there are warnings other than the usual output.
24085      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24086      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24087      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24088        lt_prog_compiler_pic_works_GCJ=yes
24089      fi
24090    fi
24091    $rm conftest*
24092
24093 fi
24094 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24095 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24096
24097 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24098     case $lt_prog_compiler_pic_GCJ in
24099      "" | " "*) ;;
24100      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24101      esac
24102 else
24103     lt_prog_compiler_pic_GCJ=
24104      lt_prog_compiler_can_build_shared_GCJ=no
24105 fi
24106
24107 fi
24108 case $host_os in
24109   # For platforms which do not support PIC, -DPIC is meaningless:
24110   *djgpp*)
24111     lt_prog_compiler_pic_GCJ=
24112     ;;
24113   *)
24114     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24115     ;;
24116 esac
24117
24118 #
24119 # Check to make sure the static flag actually works.
24120 #
24121 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24122 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24123 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24124 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24125   echo $ECHO_N "(cached) $ECHO_C" >&6
24126 else
24127   lt_prog_compiler_static_works_GCJ=no
24128    save_LDFLAGS="$LDFLAGS"
24129    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24130    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24131    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24132      # The linker can only warn and ignore the option if not recognized
24133      # So say no if there are warnings
24134      if test -s conftest.err; then
24135        # Append any errors to the config.log.
24136        cat conftest.err 1>&5
24137        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24138        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24139        if diff conftest.exp conftest.er2 >/dev/null; then
24140          lt_prog_compiler_static_works_GCJ=yes
24141        fi
24142      else
24143        lt_prog_compiler_static_works_GCJ=yes
24144      fi
24145    fi
24146    $rm conftest*
24147    LDFLAGS="$save_LDFLAGS"
24148
24149 fi
24150 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24151 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24152
24153 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24154     :
24155 else
24156     lt_prog_compiler_static_GCJ=
24157 fi
24158
24159
24160 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24161 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24162 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24163   echo $ECHO_N "(cached) $ECHO_C" >&6
24164 else
24165   lt_cv_prog_compiler_c_o_GCJ=no
24166    $rm -r conftest 2>/dev/null
24167    mkdir conftest
24168    cd conftest
24169    mkdir out
24170    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24171
24172    lt_compiler_flag="-o out/conftest2.$ac_objext"
24173    # Insert the option either (1) after the last *FLAGS variable, or
24174    # (2) before a word containing "conftest.", or (3) at the end.
24175    # Note that $ac_compile itself does not contain backslashes and begins
24176    # with a dollar sign (not a hyphen), so the echo should work correctly.
24177    lt_compile=`echo "$ac_compile" | $SED \
24178    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24179    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24180    -e 's:$: $lt_compiler_flag:'`
24181    (eval echo "\"\$as_me:24178: $lt_compile\"" >&5)
24182    (eval "$lt_compile" 2>out/conftest.err)
24183    ac_status=$?
24184    cat out/conftest.err >&5
24185    echo "$as_me:24182: \$? = $ac_status" >&5
24186    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24187    then
24188      # The compiler can only warn and ignore the option if not recognized
24189      # So say no if there are warnings
24190      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24191      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24192      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24193        lt_cv_prog_compiler_c_o_GCJ=yes
24194      fi
24195    fi
24196    chmod u+w . 2>&5
24197    $rm conftest*
24198    # SGI C++ compiler will create directory out/ii_files/ for
24199    # template instantiation
24200    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24201    $rm out/* && rmdir out
24202    cd ..
24203    rmdir conftest
24204    $rm conftest*
24205
24206 fi
24207 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24208 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24209
24210
24211 hard_links="nottested"
24212 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24213   # do not overwrite the value of need_locks provided by the user
24214   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24215 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24216   hard_links=yes
24217   $rm conftest*
24218   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24219   touch conftest.a
24220   ln conftest.a conftest.b 2>&5 || hard_links=no
24221   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24222   { echo "$as_me:$LINENO: result: $hard_links" >&5
24223 echo "${ECHO_T}$hard_links" >&6; }
24224   if test "$hard_links" = no; then
24225     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24226 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24227     need_locks=warn
24228   fi
24229 else
24230   need_locks=no
24231 fi
24232
24233 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24234 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24235
24236   runpath_var=
24237   allow_undefined_flag_GCJ=
24238   enable_shared_with_static_runtimes_GCJ=no
24239   archive_cmds_GCJ=
24240   archive_expsym_cmds_GCJ=
24241   old_archive_From_new_cmds_GCJ=
24242   old_archive_from_expsyms_cmds_GCJ=
24243   export_dynamic_flag_spec_GCJ=
24244   whole_archive_flag_spec_GCJ=
24245   thread_safe_flag_spec_GCJ=
24246   hardcode_libdir_flag_spec_GCJ=
24247   hardcode_libdir_flag_spec_ld_GCJ=
24248   hardcode_libdir_separator_GCJ=
24249   hardcode_direct_GCJ=no
24250   hardcode_minus_L_GCJ=no
24251   hardcode_shlibpath_var_GCJ=unsupported
24252   link_all_deplibs_GCJ=unknown
24253   hardcode_automatic_GCJ=no
24254   module_cmds_GCJ=
24255   module_expsym_cmds_GCJ=
24256   always_export_symbols_GCJ=no
24257   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24258   # include_expsyms should be a list of space-separated symbols to be *always*
24259   # included in the symbol list
24260   include_expsyms_GCJ=
24261   # exclude_expsyms can be an extended regexp of symbols to exclude
24262   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24263   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24264   # as well as any symbol that contains `d'.
24265   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24266   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24267   # platforms (ab)use it in PIC code, but their linkers get confused if
24268   # the symbol is explicitly referenced.  Since portable code cannot
24269   # rely on this symbol name, it's probably fine to never include it in
24270   # preloaded symbol tables.
24271   extract_expsyms_cmds=
24272   # Just being paranoid about ensuring that cc_basename is set.
24273   for cc_temp in $compiler""; do
24274   case $cc_temp in
24275     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24276     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24277     \-*) ;;
24278     *) break;;
24279   esac
24280 done
24281 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24282
24283   case $host_os in
24284   cygwin* | mingw* | pw32*)
24285     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24286     # When not using gcc, we currently assume that we are using
24287     # Microsoft Visual C++.
24288     if test "$GCC" != yes; then
24289       with_gnu_ld=no
24290     fi
24291     ;;
24292   interix*)
24293     # we just hope/assume this is gcc and not c89 (= MSVC++)
24294     with_gnu_ld=yes
24295     ;;
24296   openbsd*)
24297     with_gnu_ld=no
24298     ;;
24299   esac
24300
24301   ld_shlibs_GCJ=yes
24302   if test "$with_gnu_ld" = yes; then
24303     # If archive_cmds runs LD, not CC, wlarc should be empty
24304     wlarc='${wl}'
24305
24306     # Set some defaults for GNU ld with shared library support. These
24307     # are reset later if shared libraries are not supported. Putting them
24308     # here allows them to be overridden if necessary.
24309     runpath_var=LD_RUN_PATH
24310     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24311     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24312     # ancient GNU ld didn't support --whole-archive et. al.
24313     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24314         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24315       else
24316         whole_archive_flag_spec_GCJ=
24317     fi
24318     supports_anon_versioning=no
24319     case `$LD -v 2>/dev/null` in
24320       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24321       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24322       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24323       *\ 2.11.*) ;; # other 2.11 versions
24324       *) supports_anon_versioning=yes ;;
24325     esac
24326
24327     # See if GNU ld supports shared libraries.
24328     case $host_os in
24329     aix3* | aix4* | aix5*)
24330       # On AIX/PPC, the GNU linker is very broken
24331       if test "$host_cpu" != ia64; then
24332         ld_shlibs_GCJ=no
24333         cat <<EOF 1>&2
24334
24335 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24336 *** to be unable to reliably create shared libraries on AIX.
24337 *** Therefore, libtool is disabling shared libraries support.  If you
24338 *** really care for shared libraries, you may want to modify your PATH
24339 *** so that a non-GNU linker is found, and then restart.
24340
24341 EOF
24342       fi
24343       ;;
24344
24345     amigaos*)
24346       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)'
24347       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24348       hardcode_minus_L_GCJ=yes
24349
24350       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24351       # that the semantics of dynamic libraries on AmigaOS, at least up
24352       # to version 4, is to share data among multiple programs linked
24353       # with the same dynamic library.  Since this doesn't match the
24354       # behavior of shared libraries on other platforms, we can't use
24355       # them.
24356       ld_shlibs_GCJ=no
24357       ;;
24358
24359     beos*)
24360       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24361         allow_undefined_flag_GCJ=unsupported
24362         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24363         # support --undefined.  This deserves some investigation.  FIXME
24364         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24365       else
24366         ld_shlibs_GCJ=no
24367       fi
24368       ;;
24369
24370     cygwin* | mingw* | pw32*)
24371       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24372       # as there is no search path for DLLs.
24373       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24374       allow_undefined_flag_GCJ=unsupported
24375       always_export_symbols_GCJ=no
24376       enable_shared_with_static_runtimes_GCJ=yes
24377       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24378
24379       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24380         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24381         # If the export-symbols file already is a .def file (1st line
24382         # is EXPORTS), use it as is; otherwise, prepend...
24383         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24384           cp $export_symbols $output_objdir/$soname.def;
24385         else
24386           echo EXPORTS > $output_objdir/$soname.def;
24387           cat $export_symbols >> $output_objdir/$soname.def;
24388         fi~
24389         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24390       else
24391         ld_shlibs_GCJ=no
24392       fi
24393       ;;
24394
24395     interix3*)
24396       hardcode_direct_GCJ=no
24397       hardcode_shlibpath_var_GCJ=no
24398       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24399       export_dynamic_flag_spec_GCJ='${wl}-E'
24400       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24401       # Instead, shared libraries are loaded at an image base (0x10000000 by
24402       # default) and relocated if they conflict, which is a slow very memory
24403       # consuming and fragmenting process.  To avoid this, we pick a random,
24404       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24405       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24406       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'
24407       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'
24408       ;;
24409
24410     linux*)
24411       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24412         tmp_addflag=
24413         case $cc_basename,$host_cpu in
24414         pgcc*)                          # Portland Group C compiler
24415           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'
24416           tmp_addflag=' $pic_flag'
24417           ;;
24418         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24419           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'
24420           tmp_addflag=' $pic_flag -Mnomain' ;;
24421         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24422           tmp_addflag=' -i_dynamic' ;;
24423         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24424           tmp_addflag=' -i_dynamic -nofor_main' ;;
24425         ifc* | ifort*)                  # Intel Fortran compiler
24426           tmp_addflag=' -nofor_main' ;;
24427         esac
24428         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24429
24430         if test $supports_anon_versioning = yes; then
24431           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24432   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24433   $echo "local: *; };" >> $output_objdir/$libname.ver~
24434           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24435         fi
24436       else
24437         ld_shlibs_GCJ=no
24438       fi
24439       ;;
24440
24441     netbsd*)
24442       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24443         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24444         wlarc=
24445       else
24446         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24447         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24448       fi
24449       ;;
24450
24451     solaris*)
24452       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24453         ld_shlibs_GCJ=no
24454         cat <<EOF 1>&2
24455
24456 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24457 *** create shared libraries on Solaris systems.  Therefore, libtool
24458 *** is disabling shared libraries support.  We urge you to upgrade GNU
24459 *** binutils to release 2.9.1 or newer.  Another option is to modify
24460 *** your PATH or compiler configuration so that the native linker is
24461 *** used, and then restart.
24462
24463 EOF
24464       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24465         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24466         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24467       else
24468         ld_shlibs_GCJ=no
24469       fi
24470       ;;
24471
24472     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24473       case `$LD -v 2>&1` in
24474         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24475         ld_shlibs_GCJ=no
24476         cat <<_LT_EOF 1>&2
24477
24478 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24479 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24480 *** is disabling shared libraries support.  We urge you to upgrade GNU
24481 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24482 *** your PATH or compiler configuration so that the native linker is
24483 *** used, and then restart.
24484
24485 _LT_EOF
24486         ;;
24487         *)
24488           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24489             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24490             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24491             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24492           else
24493             ld_shlibs_GCJ=no
24494           fi
24495         ;;
24496       esac
24497       ;;
24498
24499     sunos4*)
24500       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24501       wlarc=
24502       hardcode_direct_GCJ=yes
24503       hardcode_shlibpath_var_GCJ=no
24504       ;;
24505
24506     *)
24507       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24508         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24509         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24510       else
24511         ld_shlibs_GCJ=no
24512       fi
24513       ;;
24514     esac
24515
24516     if test "$ld_shlibs_GCJ" = no; then
24517       runpath_var=
24518       hardcode_libdir_flag_spec_GCJ=
24519       export_dynamic_flag_spec_GCJ=
24520       whole_archive_flag_spec_GCJ=
24521     fi
24522   else
24523     # PORTME fill in a description of your system's linker (not GNU ld)
24524     case $host_os in
24525     aix3*)
24526       allow_undefined_flag_GCJ=unsupported
24527       always_export_symbols_GCJ=yes
24528       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'
24529       # Note: this linker hardcodes the directories in LIBPATH if there
24530       # are no directories specified by -L.
24531       hardcode_minus_L_GCJ=yes
24532       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24533         # Neither direct hardcoding nor static linking is supported with a
24534         # broken collect2.
24535         hardcode_direct_GCJ=unsupported
24536       fi
24537       ;;
24538
24539     aix4* | aix5*)
24540       if test "$host_cpu" = ia64; then
24541         # On IA64, the linker does run time linking by default, so we don't
24542         # have to do anything special.
24543         aix_use_runtimelinking=no
24544         exp_sym_flag='-Bexport'
24545         no_entry_flag=""
24546       else
24547         # If we're using GNU nm, then we don't want the "-C" option.
24548         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24549         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24550           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'
24551         else
24552           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'
24553         fi
24554         aix_use_runtimelinking=no
24555
24556         # Test if we are trying to use run time linking or normal
24557         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24558         # need to do runtime linking.
24559         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24560           for ld_flag in $LDFLAGS; do
24561           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24562             aix_use_runtimelinking=yes
24563             break
24564           fi
24565           done
24566           ;;
24567         esac
24568
24569         exp_sym_flag='-bexport'
24570         no_entry_flag='-bnoentry'
24571       fi
24572
24573       # When large executables or shared objects are built, AIX ld can
24574       # have problems creating the table of contents.  If linking a library
24575       # or program results in "error TOC overflow" add -mminimal-toc to
24576       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24577       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24578
24579       archive_cmds_GCJ=''
24580       hardcode_direct_GCJ=yes
24581       hardcode_libdir_separator_GCJ=':'
24582       link_all_deplibs_GCJ=yes
24583
24584       if test "$GCC" = yes; then
24585         case $host_os in aix4.[012]|aix4.[012].*)
24586         # We only want to do this on AIX 4.2 and lower, the check
24587         # below for broken collect2 doesn't work under 4.3+
24588           collect2name=`${CC} -print-prog-name=collect2`
24589           if test -f "$collect2name" && \
24590            strings "$collect2name" | grep resolve_lib_name >/dev/null
24591           then
24592           # We have reworked collect2
24593           hardcode_direct_GCJ=yes
24594           else
24595           # We have old collect2
24596           hardcode_direct_GCJ=unsupported
24597           # It fails to find uninstalled libraries when the uninstalled
24598           # path is not listed in the libpath.  Setting hardcode_minus_L
24599           # to unsupported forces relinking
24600           hardcode_minus_L_GCJ=yes
24601           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24602           hardcode_libdir_separator_GCJ=
24603           fi
24604           ;;
24605         esac
24606         shared_flag='-shared'
24607         if test "$aix_use_runtimelinking" = yes; then
24608           shared_flag="$shared_flag "'${wl}-G'
24609         fi
24610       else
24611         # not using gcc
24612         if test "$host_cpu" = ia64; then
24613         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24614         # chokes on -Wl,-G. The following line is correct:
24615           shared_flag='-G'
24616         else
24617           if test "$aix_use_runtimelinking" = yes; then
24618             shared_flag='${wl}-G'
24619           else
24620             shared_flag='${wl}-bM:SRE'
24621           fi
24622         fi
24623       fi
24624
24625       # It seems that -bexpall does not export symbols beginning with
24626       # underscore (_), so it is better to generate a list of symbols to export.
24627       always_export_symbols_GCJ=yes
24628       if test "$aix_use_runtimelinking" = yes; then
24629         # Warning - without using the other runtime loading flags (-brtl),
24630         # -berok will link without error, but may produce a broken library.
24631         allow_undefined_flag_GCJ='-berok'
24632        # Determine the default libpath from the value encoded in an empty executable.
24633        cat >conftest.$ac_ext <<_ACEOF
24634 /* confdefs.h.  */
24635 _ACEOF
24636 cat confdefs.h >>conftest.$ac_ext
24637 cat >>conftest.$ac_ext <<_ACEOF
24638 /* end confdefs.h.  */
24639
24640 int
24641 main ()
24642 {
24643
24644   ;
24645   return 0;
24646 }
24647 _ACEOF
24648 rm -f conftest.$ac_objext conftest$ac_exeext
24649 if { (ac_try="$ac_link"
24650 case "(($ac_try" in
24651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24652   *) ac_try_echo=$ac_try;;
24653 esac
24654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24655   (eval "$ac_link") 2>conftest.er1
24656   ac_status=$?
24657   grep -v '^ *+' conftest.er1 >conftest.err
24658   rm -f conftest.er1
24659   cat conftest.err >&5
24660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661   (exit $ac_status); } &&
24662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24663   { (case "(($ac_try" in
24664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24665   *) ac_try_echo=$ac_try;;
24666 esac
24667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24668   (eval "$ac_try") 2>&5
24669   ac_status=$?
24670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671   (exit $ac_status); }; } &&
24672          { ac_try='test -s conftest$ac_exeext'
24673   { (case "(($ac_try" in
24674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675   *) ac_try_echo=$ac_try;;
24676 esac
24677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678   (eval "$ac_try") 2>&5
24679   ac_status=$?
24680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681   (exit $ac_status); }; }; then
24682
24683 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24684 }'`
24685 # Check for a 64-bit object if we didn't find anything.
24686 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; }
24687 }'`; fi
24688 else
24689   echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24691
24692
24693 fi
24694
24695 rm -f core conftest.err conftest.$ac_objext \
24696       conftest$ac_exeext conftest.$ac_ext
24697 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24698
24699        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24700         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"
24701        else
24702         if test "$host_cpu" = ia64; then
24703           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24704           allow_undefined_flag_GCJ="-z nodefs"
24705           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"
24706         else
24707          # Determine the default libpath from the value encoded in an empty executable.
24708          cat >conftest.$ac_ext <<_ACEOF
24709 /* confdefs.h.  */
24710 _ACEOF
24711 cat confdefs.h >>conftest.$ac_ext
24712 cat >>conftest.$ac_ext <<_ACEOF
24713 /* end confdefs.h.  */
24714
24715 int
24716 main ()
24717 {
24718
24719   ;
24720   return 0;
24721 }
24722 _ACEOF
24723 rm -f conftest.$ac_objext conftest$ac_exeext
24724 if { (ac_try="$ac_link"
24725 case "(($ac_try" in
24726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727   *) ac_try_echo=$ac_try;;
24728 esac
24729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24730   (eval "$ac_link") 2>conftest.er1
24731   ac_status=$?
24732   grep -v '^ *+' conftest.er1 >conftest.err
24733   rm -f conftest.er1
24734   cat conftest.err >&5
24735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736   (exit $ac_status); } &&
24737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24738   { (case "(($ac_try" in
24739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24740   *) ac_try_echo=$ac_try;;
24741 esac
24742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24743   (eval "$ac_try") 2>&5
24744   ac_status=$?
24745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746   (exit $ac_status); }; } &&
24747          { ac_try='test -s conftest$ac_exeext'
24748   { (case "(($ac_try" in
24749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24750   *) ac_try_echo=$ac_try;;
24751 esac
24752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24753   (eval "$ac_try") 2>&5
24754   ac_status=$?
24755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756   (exit $ac_status); }; }; then
24757
24758 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24759 }'`
24760 # Check for a 64-bit object if we didn't find anything.
24761 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; }
24762 }'`; fi
24763 else
24764   echo "$as_me: failed program was:" >&5
24765 sed 's/^/| /' conftest.$ac_ext >&5
24766
24767
24768 fi
24769
24770 rm -f core conftest.err conftest.$ac_objext \
24771       conftest$ac_exeext conftest.$ac_ext
24772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24773
24774          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24775           # Warning - without using the other run time loading flags,
24776           # -berok will link without error, but may produce a broken library.
24777           no_undefined_flag_GCJ=' ${wl}-bernotok'
24778           allow_undefined_flag_GCJ=' ${wl}-berok'
24779           # Exported symbols can be pulled into shared objects from archives
24780           whole_archive_flag_spec_GCJ='$convenience'
24781           archive_cmds_need_lc_GCJ=yes
24782           # This is similar to how AIX traditionally builds its shared libraries.
24783           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'
24784         fi
24785       fi
24786       ;;
24787
24788     amigaos*)
24789       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)'
24790       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24791       hardcode_minus_L_GCJ=yes
24792       # see comment about different semantics on the GNU ld section
24793       ld_shlibs_GCJ=no
24794       ;;
24795
24796     bsdi[45]*)
24797       export_dynamic_flag_spec_GCJ=-rdynamic
24798       ;;
24799
24800     cygwin* | mingw* | pw32*)
24801       # When not using gcc, we currently assume that we are using
24802       # Microsoft Visual C++.
24803       # hardcode_libdir_flag_spec is actually meaningless, as there is
24804       # no search path for DLLs.
24805       hardcode_libdir_flag_spec_GCJ=' '
24806       allow_undefined_flag_GCJ=unsupported
24807       # Tell ltmain to make .lib files, not .a files.
24808       libext=lib
24809       # Tell ltmain to make .dll files, not .so files.
24810       shrext_cmds=".dll"
24811       # FIXME: Setting linknames here is a bad hack.
24812       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24813       # The linker will automatically build a .lib file if we build a DLL.
24814       old_archive_From_new_cmds_GCJ='true'
24815       # FIXME: Should let the user specify the lib program.
24816       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24817       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24818       enable_shared_with_static_runtimes_GCJ=yes
24819       ;;
24820
24821     darwin* | rhapsody*)
24822       case $host_os in
24823         rhapsody* | darwin1.[012])
24824          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24825          ;;
24826        *) # Darwin 1.3 on
24827          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24828            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24829          else
24830            case ${MACOSX_DEPLOYMENT_TARGET} in
24831              10.[012])
24832                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24833                ;;
24834              10.*)
24835                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24836                ;;
24837            esac
24838          fi
24839          ;;
24840       esac
24841       archive_cmds_need_lc_GCJ=no
24842       hardcode_direct_GCJ=no
24843       hardcode_automatic_GCJ=yes
24844       hardcode_shlibpath_var_GCJ=unsupported
24845       whole_archive_flag_spec_GCJ=''
24846       link_all_deplibs_GCJ=yes
24847     if test "$GCC" = yes ; then
24848         output_verbose_link_cmd='echo'
24849         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24850       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24851       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24852       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}'
24853       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}'
24854     else
24855       case $cc_basename in
24856         xlc*)
24857          output_verbose_link_cmd='echo'
24858          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24859          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24860           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24861          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}'
24862           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}'
24863           ;;
24864        *)
24865          ld_shlibs_GCJ=no
24866           ;;
24867       esac
24868     fi
24869       ;;
24870
24871     dgux*)
24872       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24873       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24874       hardcode_shlibpath_var_GCJ=no
24875       ;;
24876
24877     freebsd1*)
24878       ld_shlibs_GCJ=no
24879       ;;
24880
24881     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24882     # support.  Future versions do this automatically, but an explicit c++rt0.o
24883     # does not break anything, and helps significantly (at the cost of a little
24884     # extra space).
24885     freebsd2.2*)
24886       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24887       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24888       hardcode_direct_GCJ=yes
24889       hardcode_shlibpath_var_GCJ=no
24890       ;;
24891
24892     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24893     freebsd2*)
24894       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24895       hardcode_direct_GCJ=yes
24896       hardcode_minus_L_GCJ=yes
24897       hardcode_shlibpath_var_GCJ=no
24898       ;;
24899
24900     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24901     freebsd* | kfreebsd*-gnu | dragonfly*)
24902       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24903       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24904       hardcode_direct_GCJ=yes
24905       hardcode_shlibpath_var_GCJ=no
24906       ;;
24907
24908     hpux9*)
24909       if test "$GCC" = yes; then
24910         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'
24911       else
24912         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'
24913       fi
24914       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24915       hardcode_libdir_separator_GCJ=:
24916       hardcode_direct_GCJ=yes
24917
24918       # hardcode_minus_L: Not really in the search PATH,
24919       # but as the default location of the library.
24920       hardcode_minus_L_GCJ=yes
24921       export_dynamic_flag_spec_GCJ='${wl}-E'
24922       ;;
24923
24924     hpux10*)
24925       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24926         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24927       else
24928         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24929       fi
24930       if test "$with_gnu_ld" = no; then
24931         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24932         hardcode_libdir_separator_GCJ=:
24933
24934         hardcode_direct_GCJ=yes
24935         export_dynamic_flag_spec_GCJ='${wl}-E'
24936
24937         # hardcode_minus_L: Not really in the search PATH,
24938         # but as the default location of the library.
24939         hardcode_minus_L_GCJ=yes
24940       fi
24941       ;;
24942
24943     hpux11*)
24944       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24945         case $host_cpu in
24946         hppa*64*)
24947           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24948           ;;
24949         ia64*)
24950           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24951           ;;
24952         *)
24953           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24954           ;;
24955         esac
24956       else
24957         case $host_cpu in
24958         hppa*64*)
24959           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24960           ;;
24961         ia64*)
24962           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24963           ;;
24964         *)
24965           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24966           ;;
24967         esac
24968       fi
24969       if test "$with_gnu_ld" = no; then
24970         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24971         hardcode_libdir_separator_GCJ=:
24972
24973         case $host_cpu in
24974         hppa*64*|ia64*)
24975           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24976           hardcode_direct_GCJ=no
24977           hardcode_shlibpath_var_GCJ=no
24978           ;;
24979         *)
24980           hardcode_direct_GCJ=yes
24981           export_dynamic_flag_spec_GCJ='${wl}-E'
24982
24983           # hardcode_minus_L: Not really in the search PATH,
24984           # but as the default location of the library.
24985           hardcode_minus_L_GCJ=yes
24986           ;;
24987         esac
24988       fi
24989       ;;
24990
24991     irix5* | irix6* | nonstopux*)
24992       if test "$GCC" = yes; then
24993         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'
24994       else
24995         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'
24996         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24997       fi
24998       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24999       hardcode_libdir_separator_GCJ=:
25000       link_all_deplibs_GCJ=yes
25001       ;;
25002
25003     netbsd*)
25004       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25005         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25006       else
25007         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25008       fi
25009       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25010       hardcode_direct_GCJ=yes
25011       hardcode_shlibpath_var_GCJ=no
25012       ;;
25013
25014     newsos6)
25015       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25016       hardcode_direct_GCJ=yes
25017       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25018       hardcode_libdir_separator_GCJ=:
25019       hardcode_shlibpath_var_GCJ=no
25020       ;;
25021
25022     openbsd*)
25023       hardcode_direct_GCJ=yes
25024       hardcode_shlibpath_var_GCJ=no
25025       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25026         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25027         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25028         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25029         export_dynamic_flag_spec_GCJ='${wl}-E'
25030       else
25031        case $host_os in
25032          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25033            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25034            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25035            ;;
25036          *)
25037            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25038            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25039            ;;
25040        esac
25041       fi
25042       ;;
25043
25044     os2*)
25045       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25046       hardcode_minus_L_GCJ=yes
25047       allow_undefined_flag_GCJ=unsupported
25048       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'
25049       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25050       ;;
25051
25052     osf3*)
25053       if test "$GCC" = yes; then
25054         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25055         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'
25056       else
25057         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25058         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'
25059       fi
25060       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25061       hardcode_libdir_separator_GCJ=:
25062       ;;
25063
25064     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25065       if test "$GCC" = yes; then
25066         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25067         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'
25068         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25069       else
25070         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25071         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'
25072         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~
25073         $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'
25074
25075         # Both c and cxx compiler support -rpath directly
25076         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25077       fi
25078       hardcode_libdir_separator_GCJ=:
25079       ;;
25080
25081     solaris*)
25082       no_undefined_flag_GCJ=' -z text'
25083       if test "$GCC" = yes; then
25084         wlarc='${wl}'
25085         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25086         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25087           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25088       else
25089         wlarc=''
25090         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25091         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25092         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25093       fi
25094       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25095       hardcode_shlibpath_var_GCJ=no
25096       case $host_os in
25097       solaris2.[0-5] | solaris2.[0-5].*) ;;
25098       *)
25099         # The compiler driver will combine linker options so we
25100         # cannot just pass the convience library names through
25101         # without $wl, iff we do not link with $LD.
25102         # Luckily, gcc supports the same syntax we need for Sun Studio.
25103         # Supported since Solaris 2.6 (maybe 2.5.1?)
25104         case $wlarc in
25105         '')
25106           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25107         *)
25108           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' ;;
25109         esac ;;
25110       esac
25111       link_all_deplibs_GCJ=yes
25112       ;;
25113
25114     sunos4*)
25115       if test "x$host_vendor" = xsequent; then
25116         # Use $CC to link under sequent, because it throws in some extra .o
25117         # files that make .init and .fini sections work.
25118         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25119       else
25120         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25121       fi
25122       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25123       hardcode_direct_GCJ=yes
25124       hardcode_minus_L_GCJ=yes
25125       hardcode_shlibpath_var_GCJ=no
25126       ;;
25127
25128     sysv4)
25129       case $host_vendor in
25130         sni)
25131           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25132           hardcode_direct_GCJ=yes # is this really true???
25133         ;;
25134         siemens)
25135           ## LD is ld it makes a PLAMLIB
25136           ## CC just makes a GrossModule.
25137           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25138           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25139           hardcode_direct_GCJ=no
25140         ;;
25141         motorola)
25142           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25143           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25144         ;;
25145       esac
25146       runpath_var='LD_RUN_PATH'
25147       hardcode_shlibpath_var_GCJ=no
25148       ;;
25149
25150     sysv4.3*)
25151       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25152       hardcode_shlibpath_var_GCJ=no
25153       export_dynamic_flag_spec_GCJ='-Bexport'
25154       ;;
25155
25156     sysv4*MP*)
25157       if test -d /usr/nec; then
25158         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25159         hardcode_shlibpath_var_GCJ=no
25160         runpath_var=LD_RUN_PATH
25161         hardcode_runpath_var=yes
25162         ld_shlibs_GCJ=yes
25163       fi
25164       ;;
25165
25166     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25167       no_undefined_flag_GCJ='${wl}-z,text'
25168       archive_cmds_need_lc_GCJ=no
25169       hardcode_shlibpath_var_GCJ=no
25170       runpath_var='LD_RUN_PATH'
25171
25172       if test "$GCC" = yes; then
25173         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25174         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25175       else
25176         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25177         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25178       fi
25179       ;;
25180
25181     sysv5* | sco3.2v5* | sco5v6*)
25182       # Note: We can NOT use -z defs as we might desire, because we do not
25183       # link with -lc, and that would cause any symbols used from libc to
25184       # always be unresolved, which means just about no library would
25185       # ever link correctly.  If we're not using GNU ld we use -z text
25186       # though, which does catch some bad symbols but isn't as heavy-handed
25187       # as -z defs.
25188       no_undefined_flag_GCJ='${wl}-z,text'
25189       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25190       archive_cmds_need_lc_GCJ=no
25191       hardcode_shlibpath_var_GCJ=no
25192       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25193       hardcode_libdir_separator_GCJ=':'
25194       link_all_deplibs_GCJ=yes
25195       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25196       runpath_var='LD_RUN_PATH'
25197
25198       if test "$GCC" = yes; then
25199         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25200         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25201       else
25202         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25203         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25204       fi
25205       ;;
25206
25207     uts4*)
25208       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25209       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25210       hardcode_shlibpath_var_GCJ=no
25211       ;;
25212
25213     *)
25214       ld_shlibs_GCJ=no
25215       ;;
25216     esac
25217   fi
25218
25219 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25220 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25221 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25222
25223 #
25224 # Do we need to explicitly link libc?
25225 #
25226 case "x$archive_cmds_need_lc_GCJ" in
25227 x|xyes)
25228   # Assume -lc should be added
25229   archive_cmds_need_lc_GCJ=yes
25230
25231   if test "$enable_shared" = yes && test "$GCC" = yes; then
25232     case $archive_cmds_GCJ in
25233     *'~'*)
25234       # FIXME: we may have to deal with multi-command sequences.
25235       ;;
25236     '$CC '*)
25237       # Test whether the compiler implicitly links with -lc since on some
25238       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25239       # to ld, don't add -lc before -lgcc.
25240       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25241 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25242       $rm conftest*
25243       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25244
25245       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25246   (eval $ac_compile) 2>&5
25247   ac_status=$?
25248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249   (exit $ac_status); } 2>conftest.err; then
25250         soname=conftest
25251         lib=conftest
25252         libobjs=conftest.$ac_objext
25253         deplibs=
25254         wl=$lt_prog_compiler_wl_GCJ
25255         pic_flag=$lt_prog_compiler_pic_GCJ
25256         compiler_flags=-v
25257         linker_flags=-v
25258         verstring=
25259         output_objdir=.
25260         libname=conftest
25261         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25262         allow_undefined_flag_GCJ=
25263         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25264   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25265   ac_status=$?
25266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25267   (exit $ac_status); }
25268         then
25269           archive_cmds_need_lc_GCJ=no
25270         else
25271           archive_cmds_need_lc_GCJ=yes
25272         fi
25273         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25274       else
25275         cat conftest.err 1>&5
25276       fi
25277       $rm conftest*
25278       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25279 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25280       ;;
25281     esac
25282   fi
25283   ;;
25284 esac
25285
25286 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25287 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25288 library_names_spec=
25289 libname_spec='lib$name'
25290 soname_spec=
25291 shrext_cmds=".so"
25292 postinstall_cmds=
25293 postuninstall_cmds=
25294 finish_cmds=
25295 finish_eval=
25296 shlibpath_var=
25297 shlibpath_overrides_runpath=unknown
25298 version_type=none
25299 dynamic_linker="$host_os ld.so"
25300 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25301 if test "$GCC" = yes; then
25302   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25303   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25304     # if the path contains ";" then we assume it to be the separator
25305     # otherwise default to the standard path separator (i.e. ":") - it is
25306     # assumed that no part of a normal pathname contains ";" but that should
25307     # okay in the real world where ";" in dirpaths is itself problematic.
25308     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25309   else
25310     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25311   fi
25312 else
25313   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25314 fi
25315 need_lib_prefix=unknown
25316 hardcode_into_libs=no
25317
25318 # when you set need_version to no, make sure it does not cause -set_version
25319 # flags to be left without arguments
25320 need_version=unknown
25321
25322 case $host_os in
25323 aix3*)
25324   version_type=linux
25325   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25326   shlibpath_var=LIBPATH
25327
25328   # AIX 3 has no versioning support, so we append a major version to the name.
25329   soname_spec='${libname}${release}${shared_ext}$major'
25330   ;;
25331
25332 aix4* | aix5*)
25333   version_type=linux
25334   need_lib_prefix=no
25335   need_version=no
25336   hardcode_into_libs=yes
25337   if test "$host_cpu" = ia64; then
25338     # AIX 5 supports IA64
25339     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25340     shlibpath_var=LD_LIBRARY_PATH
25341   else
25342     # With GCC up to 2.95.x, collect2 would create an import file
25343     # for dependence libraries.  The import file would start with
25344     # the line `#! .'.  This would cause the generated library to
25345     # depend on `.', always an invalid library.  This was fixed in
25346     # development snapshots of GCC prior to 3.0.
25347     case $host_os in
25348       aix4 | aix4.[01] | aix4.[01].*)
25349       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25350            echo ' yes '
25351            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25352         :
25353       else
25354         can_build_shared=no
25355       fi
25356       ;;
25357     esac
25358     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25359     # soname into executable. Probably we can add versioning support to
25360     # collect2, so additional links can be useful in future.
25361     if test "$aix_use_runtimelinking" = yes; then
25362       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25363       # instead of lib<name>.a to let people know that these are not
25364       # typical AIX shared libraries.
25365       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25366     else
25367       # We preserve .a as extension for shared libraries through AIX4.2
25368       # and later when we are not doing run time linking.
25369       library_names_spec='${libname}${release}.a $libname.a'
25370       soname_spec='${libname}${release}${shared_ext}$major'
25371     fi
25372     shlibpath_var=LIBPATH
25373   fi
25374   ;;
25375
25376 amigaos*)
25377   library_names_spec='$libname.ixlibrary $libname.a'
25378   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25379   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'
25380   ;;
25381
25382 beos*)
25383   library_names_spec='${libname}${shared_ext}'
25384   dynamic_linker="$host_os ld.so"
25385   shlibpath_var=LIBRARY_PATH
25386   ;;
25387
25388 bsdi[45]*)
25389   version_type=linux
25390   need_version=no
25391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25392   soname_spec='${libname}${release}${shared_ext}$major'
25393   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25394   shlibpath_var=LD_LIBRARY_PATH
25395   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25396   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25397   # the default ld.so.conf also contains /usr/contrib/lib and
25398   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25399   # libtool to hard-code these into programs
25400   ;;
25401
25402 cygwin* | mingw* | pw32*)
25403   version_type=windows
25404   shrext_cmds=".dll"
25405   need_version=no
25406   need_lib_prefix=no
25407
25408   case $GCC,$host_os in
25409   yes,cygwin* | yes,mingw* | yes,pw32*)
25410     library_names_spec='$libname.dll.a'
25411     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25412     postinstall_cmds='base_file=`basename \${file}`~
25413       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25414       dldir=$destdir/`dirname \$dlpath`~
25415       test -d \$dldir || mkdir -p \$dldir~
25416       $install_prog $dir/$dlname \$dldir/$dlname~
25417       chmod a+x \$dldir/$dlname'
25418     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25419       dlpath=$dir/\$dldll~
25420        $rm \$dlpath'
25421     shlibpath_overrides_runpath=yes
25422
25423     case $host_os in
25424     cygwin*)
25425       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25426       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25427       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25428       ;;
25429     mingw*)
25430       # MinGW DLLs use traditional 'lib' prefix
25431       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25432       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25433       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25434         # It is most probably a Windows format PATH printed by
25435         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25436         # path with ; separators, and with drive letters. We can handle the
25437         # drive letters (cygwin fileutils understands them), so leave them,
25438         # especially as we might pass files found there to a mingw objdump,
25439         # which wouldn't understand a cygwinified path. Ahh.
25440         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25441       else
25442         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25443       fi
25444       ;;
25445     pw32*)
25446       # pw32 DLLs use 'pw' prefix rather than 'lib'
25447       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25448       ;;
25449     esac
25450     ;;
25451
25452   *)
25453     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25454     ;;
25455   esac
25456   dynamic_linker='Win32 ld.exe'
25457   # FIXME: first we should search . and the directory the executable is in
25458   shlibpath_var=PATH
25459   ;;
25460
25461 darwin* | rhapsody*)
25462   dynamic_linker="$host_os dyld"
25463   version_type=darwin
25464   need_lib_prefix=no
25465   need_version=no
25466   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25467   soname_spec='${libname}${release}${major}$shared_ext'
25468   shlibpath_overrides_runpath=yes
25469   shlibpath_var=DYLD_LIBRARY_PATH
25470   shrext_cmds='.dylib'
25471   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25472   if test "$GCC" = yes; then
25473     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"`
25474   else
25475     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25476   fi
25477   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25478   ;;
25479
25480 dgux*)
25481   version_type=linux
25482   need_lib_prefix=no
25483   need_version=no
25484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25485   soname_spec='${libname}${release}${shared_ext}$major'
25486   shlibpath_var=LD_LIBRARY_PATH
25487   ;;
25488
25489 freebsd1*)
25490   dynamic_linker=no
25491   ;;
25492
25493 kfreebsd*-gnu)
25494   version_type=linux
25495   need_lib_prefix=no
25496   need_version=no
25497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25498   soname_spec='${libname}${release}${shared_ext}$major'
25499   shlibpath_var=LD_LIBRARY_PATH
25500   shlibpath_overrides_runpath=no
25501   hardcode_into_libs=yes
25502   dynamic_linker='GNU ld.so'
25503   ;;
25504
25505 freebsd* | dragonfly*)
25506   # DragonFly does not have aout.  When/if they implement a new
25507   # versioning mechanism, adjust this.
25508   if test -x /usr/bin/objformat; then
25509     objformat=`/usr/bin/objformat`
25510   else
25511     case $host_os in
25512     freebsd[123]*) objformat=aout ;;
25513     *) objformat=elf ;;
25514     esac
25515   fi
25516   version_type=freebsd-$objformat
25517   case $version_type in
25518     freebsd-elf*)
25519       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25520       need_version=no
25521       need_lib_prefix=no
25522       ;;
25523     freebsd-*)
25524       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25525       need_version=yes
25526       ;;
25527   esac
25528   shlibpath_var=LD_LIBRARY_PATH
25529   case $host_os in
25530   freebsd2*)
25531     shlibpath_overrides_runpath=yes
25532     ;;
25533   freebsd3.[01]* | freebsdelf3.[01]*)
25534     shlibpath_overrides_runpath=yes
25535     hardcode_into_libs=yes
25536     ;;
25537   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25538   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25539     shlibpath_overrides_runpath=no
25540     hardcode_into_libs=yes
25541     ;;
25542   freebsd*) # from 4.6 on
25543     shlibpath_overrides_runpath=yes
25544     hardcode_into_libs=yes
25545     ;;
25546   esac
25547   ;;
25548
25549 gnu*)
25550   version_type=linux
25551   need_lib_prefix=no
25552   need_version=no
25553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25554   soname_spec='${libname}${release}${shared_ext}$major'
25555   shlibpath_var=LD_LIBRARY_PATH
25556   hardcode_into_libs=yes
25557   ;;
25558
25559 hpux9* | hpux10* | hpux11*)
25560   # Give a soname corresponding to the major version so that dld.sl refuses to
25561   # link against other versions.
25562   version_type=sunos
25563   need_lib_prefix=no
25564   need_version=no
25565   case $host_cpu in
25566   ia64*)
25567     shrext_cmds='.so'
25568     hardcode_into_libs=yes
25569     dynamic_linker="$host_os dld.so"
25570     shlibpath_var=LD_LIBRARY_PATH
25571     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25573     soname_spec='${libname}${release}${shared_ext}$major'
25574     if test "X$HPUX_IA64_MODE" = X32; then
25575       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25576     else
25577       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25578     fi
25579     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25580     ;;
25581    hppa*64*)
25582      shrext_cmds='.sl'
25583      hardcode_into_libs=yes
25584      dynamic_linker="$host_os dld.sl"
25585      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25586      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25587      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25588      soname_spec='${libname}${release}${shared_ext}$major'
25589      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25590      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25591      ;;
25592    *)
25593     shrext_cmds='.sl'
25594     dynamic_linker="$host_os dld.sl"
25595     shlibpath_var=SHLIB_PATH
25596     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25597     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25598     soname_spec='${libname}${release}${shared_ext}$major'
25599     ;;
25600   esac
25601   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25602   postinstall_cmds='chmod 555 $lib'
25603   ;;
25604
25605 interix3*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25612   shlibpath_var=LD_LIBRARY_PATH
25613   shlibpath_overrides_runpath=no
25614   hardcode_into_libs=yes
25615   ;;
25616
25617 irix5* | irix6* | nonstopux*)
25618   case $host_os in
25619     nonstopux*) version_type=nonstopux ;;
25620     *)
25621         if test "$lt_cv_prog_gnu_ld" = yes; then
25622                 version_type=linux
25623         else
25624                 version_type=irix
25625         fi ;;
25626   esac
25627   need_lib_prefix=no
25628   need_version=no
25629   soname_spec='${libname}${release}${shared_ext}$major'
25630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25631   case $host_os in
25632   irix5* | nonstopux*)
25633     libsuff= shlibsuff=
25634     ;;
25635   *)
25636     case $LD in # libtool.m4 will add one of these switches to LD
25637     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25638       libsuff= shlibsuff= libmagic=32-bit;;
25639     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25640       libsuff=32 shlibsuff=N32 libmagic=N32;;
25641     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25642       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25643     *) libsuff= shlibsuff= libmagic=never-match;;
25644     esac
25645     ;;
25646   esac
25647   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25648   shlibpath_overrides_runpath=no
25649   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25650   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25651   hardcode_into_libs=yes
25652   ;;
25653
25654 # No shared lib support for Linux oldld, aout, or coff.
25655 linux*oldld* | linux*aout* | linux*coff*)
25656   dynamic_linker=no
25657   ;;
25658
25659 # This must be Linux ELF.
25660 linux*)
25661   version_type=linux
25662   need_lib_prefix=no
25663   need_version=no
25664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25665   soname_spec='${libname}${release}${shared_ext}$major'
25666   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25667   shlibpath_var=LD_LIBRARY_PATH
25668   shlibpath_overrides_runpath=no
25669   # This implies no fast_install, which is unacceptable.
25670   # Some rework will be needed to allow for fast_install
25671   # before this can be enabled.
25672   hardcode_into_libs=yes
25673
25674   # Append ld.so.conf contents to the search path
25675   if test -f /etc/ld.so.conf; then
25676     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' ' '`
25677     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25678   fi
25679
25680   # We used to test for /lib/ld.so.1 and disable shared libraries on
25681   # powerpc, because MkLinux only supported shared libraries with the
25682   # GNU dynamic linker.  Since this was broken with cross compilers,
25683   # most powerpc-linux boxes support dynamic linking these days and
25684   # people can always --disable-shared, the test was removed, and we
25685   # assume the GNU/Linux dynamic linker is in use.
25686   dynamic_linker='GNU/Linux ld.so'
25687   ;;
25688
25689 knetbsd*-gnu)
25690   version_type=linux
25691   need_lib_prefix=no
25692   need_version=no
25693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25694   soname_spec='${libname}${release}${shared_ext}$major'
25695   shlibpath_var=LD_LIBRARY_PATH
25696   shlibpath_overrides_runpath=no
25697   hardcode_into_libs=yes
25698   dynamic_linker='GNU ld.so'
25699   ;;
25700
25701 netbsd*)
25702   version_type=sunos
25703   need_lib_prefix=no
25704   need_version=no
25705   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25707     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25708     dynamic_linker='NetBSD (a.out) ld.so'
25709   else
25710     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25711     soname_spec='${libname}${release}${shared_ext}$major'
25712     dynamic_linker='NetBSD ld.elf_so'
25713   fi
25714   shlibpath_var=LD_LIBRARY_PATH
25715   shlibpath_overrides_runpath=yes
25716   hardcode_into_libs=yes
25717   ;;
25718
25719 newsos6)
25720   version_type=linux
25721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25722   shlibpath_var=LD_LIBRARY_PATH
25723   shlibpath_overrides_runpath=yes
25724   ;;
25725
25726 nto-qnx*)
25727   version_type=linux
25728   need_lib_prefix=no
25729   need_version=no
25730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25731   soname_spec='${libname}${release}${shared_ext}$major'
25732   shlibpath_var=LD_LIBRARY_PATH
25733   shlibpath_overrides_runpath=yes
25734   ;;
25735
25736 openbsd*)
25737   version_type=sunos
25738   sys_lib_dlsearch_path_spec="/usr/lib"
25739   need_lib_prefix=no
25740   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25741   case $host_os in
25742     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25743     *)                         need_version=no  ;;
25744   esac
25745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25746   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25747   shlibpath_var=LD_LIBRARY_PATH
25748   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25749     case $host_os in
25750       openbsd2.[89] | openbsd2.[89].*)
25751         shlibpath_overrides_runpath=no
25752         ;;
25753       *)
25754         shlibpath_overrides_runpath=yes
25755         ;;
25756       esac
25757   else
25758     shlibpath_overrides_runpath=yes
25759   fi
25760   ;;
25761
25762 os2*)
25763   libname_spec='$name'
25764   shrext_cmds=".dll"
25765   need_lib_prefix=no
25766   library_names_spec='$libname${shared_ext} $libname.a'
25767   dynamic_linker='OS/2 ld.exe'
25768   shlibpath_var=LIBPATH
25769   ;;
25770
25771 osf3* | osf4* | osf5*)
25772   version_type=osf
25773   need_lib_prefix=no
25774   need_version=no
25775   soname_spec='${libname}${release}${shared_ext}$major'
25776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25777   shlibpath_var=LD_LIBRARY_PATH
25778   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25779   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25780   ;;
25781
25782 solaris*)
25783   version_type=linux
25784   need_lib_prefix=no
25785   need_version=no
25786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25787   soname_spec='${libname}${release}${shared_ext}$major'
25788   shlibpath_var=LD_LIBRARY_PATH
25789   shlibpath_overrides_runpath=yes
25790   hardcode_into_libs=yes
25791   # ldd complains unless libraries are executable
25792   postinstall_cmds='chmod +x $lib'
25793   ;;
25794
25795 sunos4*)
25796   version_type=sunos
25797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25798   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25799   shlibpath_var=LD_LIBRARY_PATH
25800   shlibpath_overrides_runpath=yes
25801   if test "$with_gnu_ld" = yes; then
25802     need_lib_prefix=no
25803   fi
25804   need_version=yes
25805   ;;
25806
25807 sysv4 | sysv4.3*)
25808   version_type=linux
25809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25810   soname_spec='${libname}${release}${shared_ext}$major'
25811   shlibpath_var=LD_LIBRARY_PATH
25812   case $host_vendor in
25813     sni)
25814       shlibpath_overrides_runpath=no
25815       need_lib_prefix=no
25816       export_dynamic_flag_spec='${wl}-Blargedynsym'
25817       runpath_var=LD_RUN_PATH
25818       ;;
25819     siemens)
25820       need_lib_prefix=no
25821       ;;
25822     motorola)
25823       need_lib_prefix=no
25824       need_version=no
25825       shlibpath_overrides_runpath=no
25826       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25827       ;;
25828   esac
25829   ;;
25830
25831 sysv4*MP*)
25832   if test -d /usr/nec ;then
25833     version_type=linux
25834     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25835     soname_spec='$libname${shared_ext}.$major'
25836     shlibpath_var=LD_LIBRARY_PATH
25837   fi
25838   ;;
25839
25840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25841   version_type=freebsd-elf
25842   need_lib_prefix=no
25843   need_version=no
25844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25845   soname_spec='${libname}${release}${shared_ext}$major'
25846   shlibpath_var=LD_LIBRARY_PATH
25847   hardcode_into_libs=yes
25848   if test "$with_gnu_ld" = yes; then
25849     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25850     shlibpath_overrides_runpath=no
25851   else
25852     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25853     shlibpath_overrides_runpath=yes
25854     case $host_os in
25855       sco3.2v5*)
25856         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25857         ;;
25858     esac
25859   fi
25860   sys_lib_dlsearch_path_spec='/usr/lib'
25861   ;;
25862
25863 uts4*)
25864   version_type=linux
25865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25866   soname_spec='${libname}${release}${shared_ext}$major'
25867   shlibpath_var=LD_LIBRARY_PATH
25868   ;;
25869
25870 *)
25871   dynamic_linker=no
25872   ;;
25873 esac
25874 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25875 echo "${ECHO_T}$dynamic_linker" >&6; }
25876 test "$dynamic_linker" = no && can_build_shared=no
25877
25878 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25879 if test "$GCC" = yes; then
25880   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25881 fi
25882
25883 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25884 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25885 hardcode_action_GCJ=
25886 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25887    test -n "$runpath_var_GCJ" || \
25888    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25889
25890   # We can hardcode non-existant directories.
25891   if test "$hardcode_direct_GCJ" != no &&
25892      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25893      # have to relink, otherwise we might link with an installed library
25894      # when we should be linking with a yet-to-be-installed one
25895      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25896      test "$hardcode_minus_L_GCJ" != no; then
25897     # Linking always hardcodes the temporary library directory.
25898     hardcode_action_GCJ=relink
25899   else
25900     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25901     hardcode_action_GCJ=immediate
25902   fi
25903 else
25904   # We cannot hardcode anything, or else we can only hardcode existing
25905   # directories.
25906   hardcode_action_GCJ=unsupported
25907 fi
25908 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25909 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25910
25911 if test "$hardcode_action_GCJ" = relink; then
25912   # Fast installation is not supported
25913   enable_fast_install=no
25914 elif test "$shlibpath_overrides_runpath" = yes ||
25915      test "$enable_shared" = no; then
25916   # Fast installation is not necessary
25917   enable_fast_install=needless
25918 fi
25919
25920
25921 # The else clause should only fire when bootstrapping the
25922 # libtool distribution, otherwise you forgot to ship ltmain.sh
25923 # with your package, and you will get complaints that there are
25924 # no rules to generate ltmain.sh.
25925 if test -f "$ltmain"; then
25926   # See if we are running on zsh, and set the options which allow our commands through
25927   # without removal of \ escapes.
25928   if test -n "${ZSH_VERSION+set}" ; then
25929     setopt NO_GLOB_SUBST
25930   fi
25931   # Now quote all the things that may contain metacharacters while being
25932   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25933   # variables and quote the copies for generation of the libtool script.
25934   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25935     SED SHELL STRIP \
25936     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25937     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25938     deplibs_check_method reload_flag reload_cmds need_locks \
25939     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25940     lt_cv_sys_global_symbol_to_c_name_address \
25941     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25942     old_postinstall_cmds old_postuninstall_cmds \
25943     compiler_GCJ \
25944     CC_GCJ \
25945     LD_GCJ \
25946     lt_prog_compiler_wl_GCJ \
25947     lt_prog_compiler_pic_GCJ \
25948     lt_prog_compiler_static_GCJ \
25949     lt_prog_compiler_no_builtin_flag_GCJ \
25950     export_dynamic_flag_spec_GCJ \
25951     thread_safe_flag_spec_GCJ \
25952     whole_archive_flag_spec_GCJ \
25953     enable_shared_with_static_runtimes_GCJ \
25954     old_archive_cmds_GCJ \
25955     old_archive_from_new_cmds_GCJ \
25956     predep_objects_GCJ \
25957     postdep_objects_GCJ \
25958     predeps_GCJ \
25959     postdeps_GCJ \
25960     compiler_lib_search_path_GCJ \
25961     archive_cmds_GCJ \
25962     archive_expsym_cmds_GCJ \
25963     postinstall_cmds_GCJ \
25964     postuninstall_cmds_GCJ \
25965     old_archive_from_expsyms_cmds_GCJ \
25966     allow_undefined_flag_GCJ \
25967     no_undefined_flag_GCJ \
25968     export_symbols_cmds_GCJ \
25969     hardcode_libdir_flag_spec_GCJ \
25970     hardcode_libdir_flag_spec_ld_GCJ \
25971     hardcode_libdir_separator_GCJ \
25972     hardcode_automatic_GCJ \
25973     module_cmds_GCJ \
25974     module_expsym_cmds_GCJ \
25975     lt_cv_prog_compiler_c_o_GCJ \
25976     exclude_expsyms_GCJ \
25977     include_expsyms_GCJ; do
25978
25979     case $var in
25980     old_archive_cmds_GCJ | \
25981     old_archive_from_new_cmds_GCJ | \
25982     archive_cmds_GCJ | \
25983     archive_expsym_cmds_GCJ | \
25984     module_cmds_GCJ | \
25985     module_expsym_cmds_GCJ | \
25986     old_archive_from_expsyms_cmds_GCJ | \
25987     export_symbols_cmds_GCJ | \
25988     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25989     postinstall_cmds | postuninstall_cmds | \
25990     old_postinstall_cmds | old_postuninstall_cmds | \
25991     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25992       # Double-quote double-evaled strings.
25993       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25994       ;;
25995     *)
25996       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25997       ;;
25998     esac
25999   done
26000
26001   case $lt_echo in
26002   *'\$0 --fallback-echo"')
26003     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26004     ;;
26005   esac
26006
26007 cfgfile="$ofile"
26008
26009   cat <<__EOF__ >> "$cfgfile"
26010 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26011
26012 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26013
26014 # Shell to use when invoking shell scripts.
26015 SHELL=$lt_SHELL
26016
26017 # Whether or not to build shared libraries.
26018 build_libtool_libs=$enable_shared
26019
26020 # Whether or not to build static libraries.
26021 build_old_libs=$enable_static
26022
26023 # Whether or not to add -lc for building shared libraries.
26024 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26025
26026 # Whether or not to disallow shared libs when runtime libs are static
26027 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26028
26029 # Whether or not to optimize for fast installation.
26030 fast_install=$enable_fast_install
26031
26032 # The host system.
26033 host_alias=$host_alias
26034 host=$host
26035 host_os=$host_os
26036
26037 # The build system.
26038 build_alias=$build_alias
26039 build=$build
26040 build_os=$build_os
26041
26042 # An echo program that does not interpret backslashes.
26043 echo=$lt_echo
26044
26045 # The archiver.
26046 AR=$lt_AR
26047 AR_FLAGS=$lt_AR_FLAGS
26048
26049 # A C compiler.
26050 LTCC=$lt_LTCC
26051
26052 # LTCC compiler flags.
26053 LTCFLAGS=$lt_LTCFLAGS
26054
26055 # A language-specific compiler.
26056 CC=$lt_compiler_GCJ
26057
26058 # Is the compiler the GNU C compiler?
26059 with_gcc=$GCC_GCJ
26060
26061 # An ERE matcher.
26062 EGREP=$lt_EGREP
26063
26064 # The linker used to build libraries.
26065 LD=$lt_LD_GCJ
26066
26067 # Whether we need hard or soft links.
26068 LN_S=$lt_LN_S
26069
26070 # A BSD-compatible nm program.
26071 NM=$lt_NM
26072
26073 # A symbol stripping program
26074 STRIP=$lt_STRIP
26075
26076 # Used to examine libraries when file_magic_cmd begins "file"
26077 MAGIC_CMD=$MAGIC_CMD
26078
26079 # Used on cygwin: DLL creation program.
26080 DLLTOOL="$DLLTOOL"
26081
26082 # Used on cygwin: object dumper.
26083 OBJDUMP="$OBJDUMP"
26084
26085 # Used on cygwin: assembler.
26086 AS="$AS"
26087
26088 # The name of the directory that contains temporary libtool files.
26089 objdir=$objdir
26090
26091 # How to create reloadable object files.
26092 reload_flag=$lt_reload_flag
26093 reload_cmds=$lt_reload_cmds
26094
26095 # How to pass a linker flag through the compiler.
26096 wl=$lt_lt_prog_compiler_wl_GCJ
26097
26098 # Object file suffix (normally "o").
26099 objext="$ac_objext"
26100
26101 # Old archive suffix (normally "a").
26102 libext="$libext"
26103
26104 # Shared library suffix (normally ".so").
26105 shrext_cmds='$shrext_cmds'
26106
26107 # Executable file suffix (normally "").
26108 exeext="$exeext"
26109
26110 # Additional compiler flags for building library objects.
26111 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26112 pic_mode=$pic_mode
26113
26114 # What is the maximum length of a command?
26115 max_cmd_len=$lt_cv_sys_max_cmd_len
26116
26117 # Does compiler simultaneously support -c and -o options?
26118 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26119
26120 # Must we lock files when doing compilation?
26121 need_locks=$lt_need_locks
26122
26123 # Do we need the lib prefix for modules?
26124 need_lib_prefix=$need_lib_prefix
26125
26126 # Do we need a version for libraries?
26127 need_version=$need_version
26128
26129 # Whether dlopen is supported.
26130 dlopen_support=$enable_dlopen
26131
26132 # Whether dlopen of programs is supported.
26133 dlopen_self=$enable_dlopen_self
26134
26135 # Whether dlopen of statically linked programs is supported.
26136 dlopen_self_static=$enable_dlopen_self_static
26137
26138 # Compiler flag to prevent dynamic linking.
26139 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26140
26141 # Compiler flag to turn off builtin functions.
26142 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26143
26144 # Compiler flag to allow reflexive dlopens.
26145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26146
26147 # Compiler flag to generate shared objects directly from archives.
26148 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26149
26150 # Compiler flag to generate thread-safe objects.
26151 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26152
26153 # Library versioning type.
26154 version_type=$version_type
26155
26156 # Format of library name prefix.
26157 libname_spec=$lt_libname_spec
26158
26159 # List of archive names.  First name is the real one, the rest are links.
26160 # The last name is the one that the linker finds with -lNAME.
26161 library_names_spec=$lt_library_names_spec
26162
26163 # The coded name of the library, if different from the real name.
26164 soname_spec=$lt_soname_spec
26165
26166 # Commands used to build and install an old-style archive.
26167 RANLIB=$lt_RANLIB
26168 old_archive_cmds=$lt_old_archive_cmds_GCJ
26169 old_postinstall_cmds=$lt_old_postinstall_cmds
26170 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26171
26172 # Create an old-style archive from a shared archive.
26173 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26174
26175 # Create a temporary old-style archive to link instead of a shared archive.
26176 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26177
26178 # Commands used to build and install a shared archive.
26179 archive_cmds=$lt_archive_cmds_GCJ
26180 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26181 postinstall_cmds=$lt_postinstall_cmds
26182 postuninstall_cmds=$lt_postuninstall_cmds
26183
26184 # Commands used to build a loadable module (assumed same as above if empty)
26185 module_cmds=$lt_module_cmds_GCJ
26186 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26187
26188 # Commands to strip libraries.
26189 old_striplib=$lt_old_striplib
26190 striplib=$lt_striplib
26191
26192 # Dependencies to place before the objects being linked to create a
26193 # shared library.
26194 predep_objects=$lt_predep_objects_GCJ
26195
26196 # Dependencies to place after the objects being linked to create a
26197 # shared library.
26198 postdep_objects=$lt_postdep_objects_GCJ
26199
26200 # Dependencies to place before the objects being linked to create a
26201 # shared library.
26202 predeps=$lt_predeps_GCJ
26203
26204 # Dependencies to place after the objects being linked to create a
26205 # shared library.
26206 postdeps=$lt_postdeps_GCJ
26207
26208 # The library search path used internally by the compiler when linking
26209 # a shared library.
26210 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26211
26212 # Method to check whether dependent libraries are shared objects.
26213 deplibs_check_method=$lt_deplibs_check_method
26214
26215 # Command to use when deplibs_check_method == file_magic.
26216 file_magic_cmd=$lt_file_magic_cmd
26217
26218 # Flag that allows shared libraries with undefined symbols to be built.
26219 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26220
26221 # Flag that forces no undefined symbols.
26222 no_undefined_flag=$lt_no_undefined_flag_GCJ
26223
26224 # Commands used to finish a libtool library installation in a directory.
26225 finish_cmds=$lt_finish_cmds
26226
26227 # Same as above, but a single script fragment to be evaled but not shown.
26228 finish_eval=$lt_finish_eval
26229
26230 # Take the output of nm and produce a listing of raw symbols and C names.
26231 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26232
26233 # Transform the output of nm in a proper C declaration
26234 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26235
26236 # Transform the output of nm in a C name address pair
26237 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26238
26239 # This is the shared library runtime path variable.
26240 runpath_var=$runpath_var
26241
26242 # This is the shared library path variable.
26243 shlibpath_var=$shlibpath_var
26244
26245 # Is shlibpath searched before the hard-coded library search path?
26246 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26247
26248 # How to hardcode a shared library path into an executable.
26249 hardcode_action=$hardcode_action_GCJ
26250
26251 # Whether we should hardcode library paths into libraries.
26252 hardcode_into_libs=$hardcode_into_libs
26253
26254 # Flag to hardcode \$libdir into a binary during linking.
26255 # This must work even if \$libdir does not exist.
26256 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26257
26258 # If ld is used when linking, flag to hardcode \$libdir into
26259 # a binary during linking. This must work even if \$libdir does
26260 # not exist.
26261 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26262
26263 # Whether we need a single -rpath flag with a separated argument.
26264 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26265
26266 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26267 # resulting binary.
26268 hardcode_direct=$hardcode_direct_GCJ
26269
26270 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26271 # resulting binary.
26272 hardcode_minus_L=$hardcode_minus_L_GCJ
26273
26274 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26275 # the resulting binary.
26276 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26277
26278 # Set to yes if building a shared library automatically hardcodes DIR into the library
26279 # and all subsequent libraries and executables linked against it.
26280 hardcode_automatic=$hardcode_automatic_GCJ
26281
26282 # Variables whose values should be saved in libtool wrapper scripts and
26283 # restored at relink time.
26284 variables_saved_for_relink="$variables_saved_for_relink"
26285
26286 # Whether libtool must link a program against all its dependency libraries.
26287 link_all_deplibs=$link_all_deplibs_GCJ
26288
26289 # Compile-time system search path for libraries
26290 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26291
26292 # Run-time system search path for libraries
26293 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26294
26295 # Fix the shell variable \$srcfile for the compiler.
26296 fix_srcfile_path="$fix_srcfile_path_GCJ"
26297
26298 # Set to yes if exported symbols are required.
26299 always_export_symbols=$always_export_symbols_GCJ
26300
26301 # The commands to list exported symbols.
26302 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26303
26304 # The commands to extract the exported symbol list from a shared archive.
26305 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26306
26307 # Symbols that should not be listed in the preloaded symbols.
26308 exclude_expsyms=$lt_exclude_expsyms_GCJ
26309
26310 # Symbols that must always be exported.
26311 include_expsyms=$lt_include_expsyms_GCJ
26312
26313 # ### END LIBTOOL TAG CONFIG: $tagname
26314
26315 __EOF__
26316
26317
26318 else
26319   # If there is no Makefile yet, we rely on a make rule to execute
26320   # `config.status --recheck' to rerun these tests and create the
26321   # libtool script then.
26322   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26323   if test -f "$ltmain_in"; then
26324     test -f Makefile && make "$ltmain"
26325   fi
26326 fi
26327
26328
26329 ac_ext=c
26330 ac_cpp='$CPP $CPPFLAGS'
26331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26334
26335 CC="$lt_save_CC"
26336
26337         else
26338           tagname=""
26339         fi
26340         ;;
26341
26342       RC)
26343         ac_ext=c
26344 ac_cpp='$CPP $CPPFLAGS'
26345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26348
26349
26350 # Source file extension for RC test sources.
26351 ac_ext=rc
26352
26353 # Object file extension for compiled RC test sources.
26354 objext=o
26355 objext_RC=$objext
26356
26357 # Code to be used in simple compile tests
26358 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26359
26360 # Code to be used in simple link tests
26361 lt_simple_link_test_code="$lt_simple_compile_test_code"
26362
26363 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26364
26365 # If no C compiler was specified, use CC.
26366 LTCC=${LTCC-"$CC"}
26367
26368 # If no C compiler flags were specified, use CFLAGS.
26369 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26370
26371 # Allow CC to be a program name with arguments.
26372 compiler=$CC
26373
26374
26375 # save warnings/boilerplate of simple test code
26376 ac_outfile=conftest.$ac_objext
26377 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26378 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26379 _lt_compiler_boilerplate=`cat conftest.err`
26380 $rm conftest*
26381
26382 ac_outfile=conftest.$ac_objext
26383 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26384 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26385 _lt_linker_boilerplate=`cat conftest.err`
26386 $rm conftest*
26387
26388
26389 # Allow CC to be a program name with arguments.
26390 lt_save_CC="$CC"
26391 CC=${RC-"windres"}
26392 compiler=$CC
26393 compiler_RC=$CC
26394 for cc_temp in $compiler""; do
26395   case $cc_temp in
26396     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26397     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26398     \-*) ;;
26399     *) break;;
26400   esac
26401 done
26402 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26403
26404 lt_cv_prog_compiler_c_o_RC=yes
26405
26406 # The else clause should only fire when bootstrapping the
26407 # libtool distribution, otherwise you forgot to ship ltmain.sh
26408 # with your package, and you will get complaints that there are
26409 # no rules to generate ltmain.sh.
26410 if test -f "$ltmain"; then
26411   # See if we are running on zsh, and set the options which allow our commands through
26412   # without removal of \ escapes.
26413   if test -n "${ZSH_VERSION+set}" ; then
26414     setopt NO_GLOB_SUBST
26415   fi
26416   # Now quote all the things that may contain metacharacters while being
26417   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26418   # variables and quote the copies for generation of the libtool script.
26419   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26420     SED SHELL STRIP \
26421     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26422     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26423     deplibs_check_method reload_flag reload_cmds need_locks \
26424     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26425     lt_cv_sys_global_symbol_to_c_name_address \
26426     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26427     old_postinstall_cmds old_postuninstall_cmds \
26428     compiler_RC \
26429     CC_RC \
26430     LD_RC \
26431     lt_prog_compiler_wl_RC \
26432     lt_prog_compiler_pic_RC \
26433     lt_prog_compiler_static_RC \
26434     lt_prog_compiler_no_builtin_flag_RC \
26435     export_dynamic_flag_spec_RC \
26436     thread_safe_flag_spec_RC \
26437     whole_archive_flag_spec_RC \
26438     enable_shared_with_static_runtimes_RC \
26439     old_archive_cmds_RC \
26440     old_archive_from_new_cmds_RC \
26441     predep_objects_RC \
26442     postdep_objects_RC \
26443     predeps_RC \
26444     postdeps_RC \
26445     compiler_lib_search_path_RC \
26446     archive_cmds_RC \
26447     archive_expsym_cmds_RC \
26448     postinstall_cmds_RC \
26449     postuninstall_cmds_RC \
26450     old_archive_from_expsyms_cmds_RC \
26451     allow_undefined_flag_RC \
26452     no_undefined_flag_RC \
26453     export_symbols_cmds_RC \
26454     hardcode_libdir_flag_spec_RC \
26455     hardcode_libdir_flag_spec_ld_RC \
26456     hardcode_libdir_separator_RC \
26457     hardcode_automatic_RC \
26458     module_cmds_RC \
26459     module_expsym_cmds_RC \
26460     lt_cv_prog_compiler_c_o_RC \
26461     exclude_expsyms_RC \
26462     include_expsyms_RC; do
26463
26464     case $var in
26465     old_archive_cmds_RC | \
26466     old_archive_from_new_cmds_RC | \
26467     archive_cmds_RC | \
26468     archive_expsym_cmds_RC | \
26469     module_cmds_RC | \
26470     module_expsym_cmds_RC | \
26471     old_archive_from_expsyms_cmds_RC | \
26472     export_symbols_cmds_RC | \
26473     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26474     postinstall_cmds | postuninstall_cmds | \
26475     old_postinstall_cmds | old_postuninstall_cmds | \
26476     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26477       # Double-quote double-evaled strings.
26478       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26479       ;;
26480     *)
26481       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26482       ;;
26483     esac
26484   done
26485
26486   case $lt_echo in
26487   *'\$0 --fallback-echo"')
26488     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26489     ;;
26490   esac
26491
26492 cfgfile="$ofile"
26493
26494   cat <<__EOF__ >> "$cfgfile"
26495 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26496
26497 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26498
26499 # Shell to use when invoking shell scripts.
26500 SHELL=$lt_SHELL
26501
26502 # Whether or not to build shared libraries.
26503 build_libtool_libs=$enable_shared
26504
26505 # Whether or not to build static libraries.
26506 build_old_libs=$enable_static
26507
26508 # Whether or not to add -lc for building shared libraries.
26509 build_libtool_need_lc=$archive_cmds_need_lc_RC
26510
26511 # Whether or not to disallow shared libs when runtime libs are static
26512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26513
26514 # Whether or not to optimize for fast installation.
26515 fast_install=$enable_fast_install
26516
26517 # The host system.
26518 host_alias=$host_alias
26519 host=$host
26520 host_os=$host_os
26521
26522 # The build system.
26523 build_alias=$build_alias
26524 build=$build
26525 build_os=$build_os
26526
26527 # An echo program that does not interpret backslashes.
26528 echo=$lt_echo
26529
26530 # The archiver.
26531 AR=$lt_AR
26532 AR_FLAGS=$lt_AR_FLAGS
26533
26534 # A C compiler.
26535 LTCC=$lt_LTCC
26536
26537 # LTCC compiler flags.
26538 LTCFLAGS=$lt_LTCFLAGS
26539
26540 # A language-specific compiler.
26541 CC=$lt_compiler_RC
26542
26543 # Is the compiler the GNU C compiler?
26544 with_gcc=$GCC_RC
26545
26546 # An ERE matcher.
26547 EGREP=$lt_EGREP
26548
26549 # The linker used to build libraries.
26550 LD=$lt_LD_RC
26551
26552 # Whether we need hard or soft links.
26553 LN_S=$lt_LN_S
26554
26555 # A BSD-compatible nm program.
26556 NM=$lt_NM
26557
26558 # A symbol stripping program
26559 STRIP=$lt_STRIP
26560
26561 # Used to examine libraries when file_magic_cmd begins "file"
26562 MAGIC_CMD=$MAGIC_CMD
26563
26564 # Used on cygwin: DLL creation program.
26565 DLLTOOL="$DLLTOOL"
26566
26567 # Used on cygwin: object dumper.
26568 OBJDUMP="$OBJDUMP"
26569
26570 # Used on cygwin: assembler.
26571 AS="$AS"
26572
26573 # The name of the directory that contains temporary libtool files.
26574 objdir=$objdir
26575
26576 # How to create reloadable object files.
26577 reload_flag=$lt_reload_flag
26578 reload_cmds=$lt_reload_cmds
26579
26580 # How to pass a linker flag through the compiler.
26581 wl=$lt_lt_prog_compiler_wl_RC
26582
26583 # Object file suffix (normally "o").
26584 objext="$ac_objext"
26585
26586 # Old archive suffix (normally "a").
26587 libext="$libext"
26588
26589 # Shared library suffix (normally ".so").
26590 shrext_cmds='$shrext_cmds'
26591
26592 # Executable file suffix (normally "").
26593 exeext="$exeext"
26594
26595 # Additional compiler flags for building library objects.
26596 pic_flag=$lt_lt_prog_compiler_pic_RC
26597 pic_mode=$pic_mode
26598
26599 # What is the maximum length of a command?
26600 max_cmd_len=$lt_cv_sys_max_cmd_len
26601
26602 # Does compiler simultaneously support -c and -o options?
26603 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26604
26605 # Must we lock files when doing compilation?
26606 need_locks=$lt_need_locks
26607
26608 # Do we need the lib prefix for modules?
26609 need_lib_prefix=$need_lib_prefix
26610
26611 # Do we need a version for libraries?
26612 need_version=$need_version
26613
26614 # Whether dlopen is supported.
26615 dlopen_support=$enable_dlopen
26616
26617 # Whether dlopen of programs is supported.
26618 dlopen_self=$enable_dlopen_self
26619
26620 # Whether dlopen of statically linked programs is supported.
26621 dlopen_self_static=$enable_dlopen_self_static
26622
26623 # Compiler flag to prevent dynamic linking.
26624 link_static_flag=$lt_lt_prog_compiler_static_RC
26625
26626 # Compiler flag to turn off builtin functions.
26627 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26628
26629 # Compiler flag to allow reflexive dlopens.
26630 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26631
26632 # Compiler flag to generate shared objects directly from archives.
26633 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26634
26635 # Compiler flag to generate thread-safe objects.
26636 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26637
26638 # Library versioning type.
26639 version_type=$version_type
26640
26641 # Format of library name prefix.
26642 libname_spec=$lt_libname_spec
26643
26644 # List of archive names.  First name is the real one, the rest are links.
26645 # The last name is the one that the linker finds with -lNAME.
26646 library_names_spec=$lt_library_names_spec
26647
26648 # The coded name of the library, if different from the real name.
26649 soname_spec=$lt_soname_spec
26650
26651 # Commands used to build and install an old-style archive.
26652 RANLIB=$lt_RANLIB
26653 old_archive_cmds=$lt_old_archive_cmds_RC
26654 old_postinstall_cmds=$lt_old_postinstall_cmds
26655 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26656
26657 # Create an old-style archive from a shared archive.
26658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26659
26660 # Create a temporary old-style archive to link instead of a shared archive.
26661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26662
26663 # Commands used to build and install a shared archive.
26664 archive_cmds=$lt_archive_cmds_RC
26665 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26666 postinstall_cmds=$lt_postinstall_cmds
26667 postuninstall_cmds=$lt_postuninstall_cmds
26668
26669 # Commands used to build a loadable module (assumed same as above if empty)
26670 module_cmds=$lt_module_cmds_RC
26671 module_expsym_cmds=$lt_module_expsym_cmds_RC
26672
26673 # Commands to strip libraries.
26674 old_striplib=$lt_old_striplib
26675 striplib=$lt_striplib
26676
26677 # Dependencies to place before the objects being linked to create a
26678 # shared library.
26679 predep_objects=$lt_predep_objects_RC
26680
26681 # Dependencies to place after the objects being linked to create a
26682 # shared library.
26683 postdep_objects=$lt_postdep_objects_RC
26684
26685 # Dependencies to place before the objects being linked to create a
26686 # shared library.
26687 predeps=$lt_predeps_RC
26688
26689 # Dependencies to place after the objects being linked to create a
26690 # shared library.
26691 postdeps=$lt_postdeps_RC
26692
26693 # The library search path used internally by the compiler when linking
26694 # a shared library.
26695 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26696
26697 # Method to check whether dependent libraries are shared objects.
26698 deplibs_check_method=$lt_deplibs_check_method
26699
26700 # Command to use when deplibs_check_method == file_magic.
26701 file_magic_cmd=$lt_file_magic_cmd
26702
26703 # Flag that allows shared libraries with undefined symbols to be built.
26704 allow_undefined_flag=$lt_allow_undefined_flag_RC
26705
26706 # Flag that forces no undefined symbols.
26707 no_undefined_flag=$lt_no_undefined_flag_RC
26708
26709 # Commands used to finish a libtool library installation in a directory.
26710 finish_cmds=$lt_finish_cmds
26711
26712 # Same as above, but a single script fragment to be evaled but not shown.
26713 finish_eval=$lt_finish_eval
26714
26715 # Take the output of nm and produce a listing of raw symbols and C names.
26716 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26717
26718 # Transform the output of nm in a proper C declaration
26719 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26720
26721 # Transform the output of nm in a C name address pair
26722 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26723
26724 # This is the shared library runtime path variable.
26725 runpath_var=$runpath_var
26726
26727 # This is the shared library path variable.
26728 shlibpath_var=$shlibpath_var
26729
26730 # Is shlibpath searched before the hard-coded library search path?
26731 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26732
26733 # How to hardcode a shared library path into an executable.
26734 hardcode_action=$hardcode_action_RC
26735
26736 # Whether we should hardcode library paths into libraries.
26737 hardcode_into_libs=$hardcode_into_libs
26738
26739 # Flag to hardcode \$libdir into a binary during linking.
26740 # This must work even if \$libdir does not exist.
26741 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26742
26743 # If ld is used when linking, flag to hardcode \$libdir into
26744 # a binary during linking. This must work even if \$libdir does
26745 # not exist.
26746 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26747
26748 # Whether we need a single -rpath flag with a separated argument.
26749 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26750
26751 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26752 # resulting binary.
26753 hardcode_direct=$hardcode_direct_RC
26754
26755 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26756 # resulting binary.
26757 hardcode_minus_L=$hardcode_minus_L_RC
26758
26759 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26760 # the resulting binary.
26761 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26762
26763 # Set to yes if building a shared library automatically hardcodes DIR into the library
26764 # and all subsequent libraries and executables linked against it.
26765 hardcode_automatic=$hardcode_automatic_RC
26766
26767 # Variables whose values should be saved in libtool wrapper scripts and
26768 # restored at relink time.
26769 variables_saved_for_relink="$variables_saved_for_relink"
26770
26771 # Whether libtool must link a program against all its dependency libraries.
26772 link_all_deplibs=$link_all_deplibs_RC
26773
26774 # Compile-time system search path for libraries
26775 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26776
26777 # Run-time system search path for libraries
26778 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26779
26780 # Fix the shell variable \$srcfile for the compiler.
26781 fix_srcfile_path="$fix_srcfile_path_RC"
26782
26783 # Set to yes if exported symbols are required.
26784 always_export_symbols=$always_export_symbols_RC
26785
26786 # The commands to list exported symbols.
26787 export_symbols_cmds=$lt_export_symbols_cmds_RC
26788
26789 # The commands to extract the exported symbol list from a shared archive.
26790 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26791
26792 # Symbols that should not be listed in the preloaded symbols.
26793 exclude_expsyms=$lt_exclude_expsyms_RC
26794
26795 # Symbols that must always be exported.
26796 include_expsyms=$lt_include_expsyms_RC
26797
26798 # ### END LIBTOOL TAG CONFIG: $tagname
26799
26800 __EOF__
26801
26802
26803 else
26804   # If there is no Makefile yet, we rely on a make rule to execute
26805   # `config.status --recheck' to rerun these tests and create the
26806   # libtool script then.
26807   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26808   if test -f "$ltmain_in"; then
26809     test -f Makefile && make "$ltmain"
26810   fi
26811 fi
26812
26813
26814 ac_ext=c
26815 ac_cpp='$CPP $CPPFLAGS'
26816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26819
26820 CC="$lt_save_CC"
26821
26822         ;;
26823
26824       *)
26825         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26826 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26827    { (exit 1); exit 1; }; }
26828         ;;
26829       esac
26830
26831       # Append the new tag name to the list of available tags.
26832       if test -n "$tagname" ; then
26833       available_tags="$available_tags $tagname"
26834     fi
26835     fi
26836   done
26837   IFS="$lt_save_ifs"
26838
26839   # Now substitute the updated list of available tags.
26840   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26841     mv "${ofile}T" "$ofile"
26842     chmod +x "$ofile"
26843   else
26844     rm -f "${ofile}T"
26845     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26846 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26847    { (exit 1); exit 1; }; }
26848   fi
26849 fi
26850
26851
26852
26853 # This can be used to rebuild libtool when needed
26854 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26855
26856 # Always use our own libtool.
26857 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26858
26859 # Prevent multiple expansion
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881 if test "$lt_cv_dlopen_self" = "yes" ; then
26882
26883 cat >>confdefs.h <<\_ACEOF
26884 #define CAN_DLOPEN_SELF 1
26885 _ACEOF
26886
26887 fi
26888
26889 if test "$WITH_LLVMGCCDIR" = "default" ; then
26890   LLVMGCC="llvm-gcc${EXEEXT}"
26891   LLVMGXX="llvm-g++${EXEEXT}"
26892   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26893 set dummy $LLVMGCC; ac_word=$2
26894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26896 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26897   echo $ECHO_N "(cached) $ECHO_C" >&6
26898 else
26899   case $LLVMGCC in
26900   [\\/]* | ?:[\\/]*)
26901   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26902   ;;
26903   *)
26904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26905 for as_dir in $PATH
26906 do
26907   IFS=$as_save_IFS
26908   test -z "$as_dir" && as_dir=.
26909   for ac_exec_ext in '' $ac_executable_extensions; do
26910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26911     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26913     break 2
26914   fi
26915 done
26916 done
26917 IFS=$as_save_IFS
26918
26919   ;;
26920 esac
26921 fi
26922 LLVMGCC=$ac_cv_path_LLVMGCC
26923 if test -n "$LLVMGCC"; then
26924   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26925 echo "${ECHO_T}$LLVMGCC" >&6; }
26926 else
26927   { echo "$as_me:$LINENO: result: no" >&5
26928 echo "${ECHO_T}no" >&6; }
26929 fi
26930
26931
26932   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26933 set dummy $LLVMGXX; ac_word=$2
26934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26936 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26937   echo $ECHO_N "(cached) $ECHO_C" >&6
26938 else
26939   case $LLVMGXX in
26940   [\\/]* | ?:[\\/]*)
26941   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26942   ;;
26943   *)
26944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26945 for as_dir in $PATH
26946 do
26947   IFS=$as_save_IFS
26948   test -z "$as_dir" && as_dir=.
26949   for ac_exec_ext in '' $ac_executable_extensions; do
26950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26951     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26953     break 2
26954   fi
26955 done
26956 done
26957 IFS=$as_save_IFS
26958
26959   ;;
26960 esac
26961 fi
26962 LLVMGXX=$ac_cv_path_LLVMGXX
26963 if test -n "$LLVMGXX"; then
26964   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26965 echo "${ECHO_T}$LLVMGXX" >&6; }
26966 else
26967   { echo "$as_me:$LINENO: result: no" >&5
26968 echo "${ECHO_T}no" >&6; }
26969 fi
26970
26971
26972 else
26973   if test -z "$LLVMGCC"; then
26974     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26975   fi
26976   if test -z "$LLVMGXX"; then
26977     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26978   fi
26979   LLVMGCC=$LLVMGCC
26980
26981   LLVMGXX=$LLVMGXX
26982
26983 fi
26984
26985 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26986 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26987
26988 ICC=no
26989 IXX=no
26990 case $CC in
26991   icc*|icpc*)
26992     ICC=yes
26993     IXX=yes
26994     ;;
26995    *)
26996     ;;
26997 esac
26998
26999 if test "$GCC" != "yes" && test "$ICC" != "yes"
27000 then
27001   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27002 echo "$as_me: error: gcc|icc required but not found" >&2;}
27003    { (exit 1); exit 1; }; }
27004 fi
27005
27006 if test "$GXX" != "yes" && test "$IXX" != "yes"
27007 then
27008   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27009 echo "$as_me: error: g++|icc required but not found" >&2;}
27010    { (exit 1); exit 1; }; }
27011 fi
27012
27013 if test "$GCC" = "yes"
27014 then
27015   cat >conftest.$ac_ext <<_ACEOF
27016 #if !defined(__GNUC__) || __GNUC__ < 3
27017 #error Unsupported GCC version
27018 #endif
27019
27020 _ACEOF
27021 rm -f conftest.$ac_objext
27022 if { (ac_try="$ac_compile"
27023 case "(($ac_try" in
27024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025   *) ac_try_echo=$ac_try;;
27026 esac
27027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028   (eval "$ac_compile") 2>conftest.er1
27029   ac_status=$?
27030   grep -v '^ *+' conftest.er1 >conftest.err
27031   rm -f conftest.er1
27032   cat conftest.err >&5
27033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034   (exit $ac_status); } &&
27035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27036   { (case "(($ac_try" in
27037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27038   *) ac_try_echo=$ac_try;;
27039 esac
27040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27041   (eval "$ac_try") 2>&5
27042   ac_status=$?
27043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044   (exit $ac_status); }; } &&
27045          { ac_try='test -s conftest.$ac_objext'
27046   { (case "(($ac_try" in
27047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27048   *) ac_try_echo=$ac_try;;
27049 esac
27050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27051   (eval "$ac_try") 2>&5
27052   ac_status=$?
27053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054   (exit $ac_status); }; }; then
27055   :
27056 else
27057   echo "$as_me: failed program was:" >&5
27058 sed 's/^/| /' conftest.$ac_ext >&5
27059
27060         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27061 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27062    { (exit 1); exit 1; }; }
27063 fi
27064
27065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27066 fi
27067
27068 if test -z "$llvm_cv_gnu_make_command"
27069 then
27070   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27071 echo "$as_me: error: GNU Make required but not found" >&2;}
27072    { (exit 1); exit 1; }; }
27073 fi
27074
27075 { echo "$as_me:$LINENO: result: ok" >&5
27076 echo "${ECHO_T}ok" >&6; }
27077
27078
27079
27080 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27081 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27082 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27083   echo $ECHO_N "(cached) $ECHO_C" >&6
27084 else
27085   ac_check_lib_save_LIBS=$LIBS
27086 LIBS="-lelf  $LIBS"
27087 cat >conftest.$ac_ext <<_ACEOF
27088 /* confdefs.h.  */
27089 _ACEOF
27090 cat confdefs.h >>conftest.$ac_ext
27091 cat >>conftest.$ac_ext <<_ACEOF
27092 /* end confdefs.h.  */
27093
27094 /* Override any GCC internal prototype to avoid an error.
27095    Use char because int might match the return type of a GCC
27096    builtin and then its argument prototype would still apply.  */
27097 #ifdef __cplusplus
27098 extern "C"
27099 #endif
27100 char elf_begin ();
27101 int
27102 main ()
27103 {
27104 return elf_begin ();
27105   ;
27106   return 0;
27107 }
27108 _ACEOF
27109 rm -f conftest.$ac_objext conftest$ac_exeext
27110 if { (ac_try="$ac_link"
27111 case "(($ac_try" in
27112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27113   *) ac_try_echo=$ac_try;;
27114 esac
27115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27116   (eval "$ac_link") 2>conftest.er1
27117   ac_status=$?
27118   grep -v '^ *+' conftest.er1 >conftest.err
27119   rm -f conftest.er1
27120   cat conftest.err >&5
27121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122   (exit $ac_status); } &&
27123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27124   { (case "(($ac_try" in
27125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27126   *) ac_try_echo=$ac_try;;
27127 esac
27128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27129   (eval "$ac_try") 2>&5
27130   ac_status=$?
27131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132   (exit $ac_status); }; } &&
27133          { ac_try='test -s conftest$ac_exeext'
27134   { (case "(($ac_try" in
27135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27136   *) ac_try_echo=$ac_try;;
27137 esac
27138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27139   (eval "$ac_try") 2>&5
27140   ac_status=$?
27141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27142   (exit $ac_status); }; }; then
27143   ac_cv_lib_elf_elf_begin=yes
27144 else
27145   echo "$as_me: failed program was:" >&5
27146 sed 's/^/| /' conftest.$ac_ext >&5
27147
27148         ac_cv_lib_elf_elf_begin=no
27149 fi
27150
27151 rm -f core conftest.err conftest.$ac_objext \
27152       conftest$ac_exeext conftest.$ac_ext
27153 LIBS=$ac_check_lib_save_LIBS
27154 fi
27155 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27156 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27157 if test $ac_cv_lib_elf_elf_begin = yes; then
27158   cat >>confdefs.h <<_ACEOF
27159 #define HAVE_LIBELF 1
27160 _ACEOF
27161
27162   LIBS="-lelf $LIBS"
27163
27164 fi
27165
27166
27167 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27168 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27169 if test "${ac_cv_lib_m_sin+set}" = set; then
27170   echo $ECHO_N "(cached) $ECHO_C" >&6
27171 else
27172   ac_check_lib_save_LIBS=$LIBS
27173 LIBS="-lm  $LIBS"
27174 cat >conftest.$ac_ext <<_ACEOF
27175 /* confdefs.h.  */
27176 _ACEOF
27177 cat confdefs.h >>conftest.$ac_ext
27178 cat >>conftest.$ac_ext <<_ACEOF
27179 /* end confdefs.h.  */
27180
27181 /* Override any GCC internal prototype to avoid an error.
27182    Use char because int might match the return type of a GCC
27183    builtin and then its argument prototype would still apply.  */
27184 #ifdef __cplusplus
27185 extern "C"
27186 #endif
27187 char sin ();
27188 int
27189 main ()
27190 {
27191 return sin ();
27192   ;
27193   return 0;
27194 }
27195 _ACEOF
27196 rm -f conftest.$ac_objext conftest$ac_exeext
27197 if { (ac_try="$ac_link"
27198 case "(($ac_try" in
27199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27200   *) ac_try_echo=$ac_try;;
27201 esac
27202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27203   (eval "$ac_link") 2>conftest.er1
27204   ac_status=$?
27205   grep -v '^ *+' conftest.er1 >conftest.err
27206   rm -f conftest.er1
27207   cat conftest.err >&5
27208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209   (exit $ac_status); } &&
27210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27211   { (case "(($ac_try" in
27212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27213   *) ac_try_echo=$ac_try;;
27214 esac
27215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27216   (eval "$ac_try") 2>&5
27217   ac_status=$?
27218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219   (exit $ac_status); }; } &&
27220          { ac_try='test -s conftest$ac_exeext'
27221   { (case "(($ac_try" in
27222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27223   *) ac_try_echo=$ac_try;;
27224 esac
27225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27226   (eval "$ac_try") 2>&5
27227   ac_status=$?
27228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229   (exit $ac_status); }; }; then
27230   ac_cv_lib_m_sin=yes
27231 else
27232   echo "$as_me: failed program was:" >&5
27233 sed 's/^/| /' conftest.$ac_ext >&5
27234
27235         ac_cv_lib_m_sin=no
27236 fi
27237
27238 rm -f core conftest.err conftest.$ac_objext \
27239       conftest$ac_exeext conftest.$ac_ext
27240 LIBS=$ac_check_lib_save_LIBS
27241 fi
27242 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27243 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27244 if test $ac_cv_lib_m_sin = yes; then
27245   cat >>confdefs.h <<_ACEOF
27246 #define HAVE_LIBM 1
27247 _ACEOF
27248
27249   LIBS="-lm $LIBS"
27250
27251 fi
27252
27253 if test "$llvm_cv_os_type" = "MingW" ; then
27254
27255 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27256 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27257 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27258   echo $ECHO_N "(cached) $ECHO_C" >&6
27259 else
27260   ac_check_lib_save_LIBS=$LIBS
27261 LIBS="-limagehlp  $LIBS"
27262 cat >conftest.$ac_ext <<_ACEOF
27263 /* confdefs.h.  */
27264 _ACEOF
27265 cat confdefs.h >>conftest.$ac_ext
27266 cat >>conftest.$ac_ext <<_ACEOF
27267 /* end confdefs.h.  */
27268
27269
27270 int
27271 main ()
27272 {
27273 return main ();
27274   ;
27275   return 0;
27276 }
27277 _ACEOF
27278 rm -f conftest.$ac_objext conftest$ac_exeext
27279 if { (ac_try="$ac_link"
27280 case "(($ac_try" in
27281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27282   *) ac_try_echo=$ac_try;;
27283 esac
27284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27285   (eval "$ac_link") 2>conftest.er1
27286   ac_status=$?
27287   grep -v '^ *+' conftest.er1 >conftest.err
27288   rm -f conftest.er1
27289   cat conftest.err >&5
27290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291   (exit $ac_status); } &&
27292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27293   { (case "(($ac_try" in
27294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27295   *) ac_try_echo=$ac_try;;
27296 esac
27297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27298   (eval "$ac_try") 2>&5
27299   ac_status=$?
27300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301   (exit $ac_status); }; } &&
27302          { ac_try='test -s conftest$ac_exeext'
27303   { (case "(($ac_try" in
27304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27305   *) ac_try_echo=$ac_try;;
27306 esac
27307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27308   (eval "$ac_try") 2>&5
27309   ac_status=$?
27310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311   (exit $ac_status); }; }; then
27312   ac_cv_lib_imagehlp_main=yes
27313 else
27314   echo "$as_me: failed program was:" >&5
27315 sed 's/^/| /' conftest.$ac_ext >&5
27316
27317         ac_cv_lib_imagehlp_main=no
27318 fi
27319
27320 rm -f core conftest.err conftest.$ac_objext \
27321       conftest$ac_exeext conftest.$ac_ext
27322 LIBS=$ac_check_lib_save_LIBS
27323 fi
27324 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27325 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27326 if test $ac_cv_lib_imagehlp_main = yes; then
27327   cat >>confdefs.h <<_ACEOF
27328 #define HAVE_LIBIMAGEHLP 1
27329 _ACEOF
27330
27331   LIBS="-limagehlp $LIBS"
27332
27333 fi
27334
27335
27336 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27337 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27338 if test "${ac_cv_lib_psapi_main+set}" = set; then
27339   echo $ECHO_N "(cached) $ECHO_C" >&6
27340 else
27341   ac_check_lib_save_LIBS=$LIBS
27342 LIBS="-lpsapi  $LIBS"
27343 cat >conftest.$ac_ext <<_ACEOF
27344 /* confdefs.h.  */
27345 _ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h.  */
27349
27350
27351 int
27352 main ()
27353 {
27354 return main ();
27355   ;
27356   return 0;
27357 }
27358 _ACEOF
27359 rm -f conftest.$ac_objext conftest$ac_exeext
27360 if { (ac_try="$ac_link"
27361 case "(($ac_try" in
27362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27363   *) ac_try_echo=$ac_try;;
27364 esac
27365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27366   (eval "$ac_link") 2>conftest.er1
27367   ac_status=$?
27368   grep -v '^ *+' conftest.er1 >conftest.err
27369   rm -f conftest.er1
27370   cat conftest.err >&5
27371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372   (exit $ac_status); } &&
27373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27374   { (case "(($ac_try" in
27375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376   *) ac_try_echo=$ac_try;;
27377 esac
27378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379   (eval "$ac_try") 2>&5
27380   ac_status=$?
27381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382   (exit $ac_status); }; } &&
27383          { ac_try='test -s conftest$ac_exeext'
27384   { (case "(($ac_try" in
27385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27386   *) ac_try_echo=$ac_try;;
27387 esac
27388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27389   (eval "$ac_try") 2>&5
27390   ac_status=$?
27391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392   (exit $ac_status); }; }; then
27393   ac_cv_lib_psapi_main=yes
27394 else
27395   echo "$as_me: failed program was:" >&5
27396 sed 's/^/| /' conftest.$ac_ext >&5
27397
27398         ac_cv_lib_psapi_main=no
27399 fi
27400
27401 rm -f core conftest.err conftest.$ac_objext \
27402       conftest$ac_exeext conftest.$ac_ext
27403 LIBS=$ac_check_lib_save_LIBS
27404 fi
27405 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27406 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27407 if test $ac_cv_lib_psapi_main = yes; then
27408   cat >>confdefs.h <<_ACEOF
27409 #define HAVE_LIBPSAPI 1
27410 _ACEOF
27411
27412   LIBS="-lpsapi $LIBS"
27413
27414 fi
27415
27416 fi
27417
27418 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27419 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27420 if test "${ac_cv_search_dlopen+set}" = set; then
27421   echo $ECHO_N "(cached) $ECHO_C" >&6
27422 else
27423   ac_func_search_save_LIBS=$LIBS
27424 cat >conftest.$ac_ext <<_ACEOF
27425 /* confdefs.h.  */
27426 _ACEOF
27427 cat confdefs.h >>conftest.$ac_ext
27428 cat >>conftest.$ac_ext <<_ACEOF
27429 /* end confdefs.h.  */
27430
27431 /* Override any GCC internal prototype to avoid an error.
27432    Use char because int might match the return type of a GCC
27433    builtin and then its argument prototype would still apply.  */
27434 #ifdef __cplusplus
27435 extern "C"
27436 #endif
27437 char dlopen ();
27438 int
27439 main ()
27440 {
27441 return dlopen ();
27442   ;
27443   return 0;
27444 }
27445 _ACEOF
27446 for ac_lib in '' dl; do
27447   if test -z "$ac_lib"; then
27448     ac_res="none required"
27449   else
27450     ac_res=-l$ac_lib
27451     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27452   fi
27453   rm -f conftest.$ac_objext conftest$ac_exeext
27454 if { (ac_try="$ac_link"
27455 case "(($ac_try" in
27456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27457   *) ac_try_echo=$ac_try;;
27458 esac
27459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27460   (eval "$ac_link") 2>conftest.er1
27461   ac_status=$?
27462   grep -v '^ *+' conftest.er1 >conftest.err
27463   rm -f conftest.er1
27464   cat conftest.err >&5
27465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466   (exit $ac_status); } &&
27467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27468   { (case "(($ac_try" in
27469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27470   *) ac_try_echo=$ac_try;;
27471 esac
27472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27473   (eval "$ac_try") 2>&5
27474   ac_status=$?
27475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476   (exit $ac_status); }; } &&
27477          { ac_try='test -s conftest$ac_exeext'
27478   { (case "(($ac_try" in
27479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27480   *) ac_try_echo=$ac_try;;
27481 esac
27482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27483   (eval "$ac_try") 2>&5
27484   ac_status=$?
27485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486   (exit $ac_status); }; }; then
27487   ac_cv_search_dlopen=$ac_res
27488 else
27489   echo "$as_me: failed program was:" >&5
27490 sed 's/^/| /' conftest.$ac_ext >&5
27491
27492
27493 fi
27494
27495 rm -f core conftest.err conftest.$ac_objext \
27496       conftest$ac_exeext
27497   if test "${ac_cv_search_dlopen+set}" = set; then
27498   break
27499 fi
27500 done
27501 if test "${ac_cv_search_dlopen+set}" = set; then
27502   :
27503 else
27504   ac_cv_search_dlopen=no
27505 fi
27506 rm conftest.$ac_ext
27507 LIBS=$ac_func_search_save_LIBS
27508 fi
27509 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27510 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27511 ac_res=$ac_cv_search_dlopen
27512 if test "$ac_res" != no; then
27513   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27514
27515 cat >>confdefs.h <<\_ACEOF
27516 #define HAVE_DLOPEN 1
27517 _ACEOF
27518
27519 else
27520   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27521 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27522 fi
27523
27524
27525 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27526 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27527 if test "${ac_cv_search_mallinfo+set}" = set; then
27528   echo $ECHO_N "(cached) $ECHO_C" >&6
27529 else
27530   ac_func_search_save_LIBS=$LIBS
27531 cat >conftest.$ac_ext <<_ACEOF
27532 /* confdefs.h.  */
27533 _ACEOF
27534 cat confdefs.h >>conftest.$ac_ext
27535 cat >>conftest.$ac_ext <<_ACEOF
27536 /* end confdefs.h.  */
27537
27538 /* Override any GCC internal prototype to avoid an error.
27539    Use char because int might match the return type of a GCC
27540    builtin and then its argument prototype would still apply.  */
27541 #ifdef __cplusplus
27542 extern "C"
27543 #endif
27544 char mallinfo ();
27545 int
27546 main ()
27547 {
27548 return mallinfo ();
27549   ;
27550   return 0;
27551 }
27552 _ACEOF
27553 for ac_lib in '' malloc; do
27554   if test -z "$ac_lib"; then
27555     ac_res="none required"
27556   else
27557     ac_res=-l$ac_lib
27558     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27559   fi
27560   rm -f conftest.$ac_objext conftest$ac_exeext
27561 if { (ac_try="$ac_link"
27562 case "(($ac_try" in
27563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27564   *) ac_try_echo=$ac_try;;
27565 esac
27566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27567   (eval "$ac_link") 2>conftest.er1
27568   ac_status=$?
27569   grep -v '^ *+' conftest.er1 >conftest.err
27570   rm -f conftest.er1
27571   cat conftest.err >&5
27572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573   (exit $ac_status); } &&
27574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27575   { (case "(($ac_try" in
27576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27577   *) ac_try_echo=$ac_try;;
27578 esac
27579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27580   (eval "$ac_try") 2>&5
27581   ac_status=$?
27582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583   (exit $ac_status); }; } &&
27584          { ac_try='test -s conftest$ac_exeext'
27585   { (case "(($ac_try" in
27586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27587   *) ac_try_echo=$ac_try;;
27588 esac
27589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27590   (eval "$ac_try") 2>&5
27591   ac_status=$?
27592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593   (exit $ac_status); }; }; then
27594   ac_cv_search_mallinfo=$ac_res
27595 else
27596   echo "$as_me: failed program was:" >&5
27597 sed 's/^/| /' conftest.$ac_ext >&5
27598
27599
27600 fi
27601
27602 rm -f core conftest.err conftest.$ac_objext \
27603       conftest$ac_exeext
27604   if test "${ac_cv_search_mallinfo+set}" = set; then
27605   break
27606 fi
27607 done
27608 if test "${ac_cv_search_mallinfo+set}" = set; then
27609   :
27610 else
27611   ac_cv_search_mallinfo=no
27612 fi
27613 rm conftest.$ac_ext
27614 LIBS=$ac_func_search_save_LIBS
27615 fi
27616 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27617 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27618 ac_res=$ac_cv_search_mallinfo
27619 if test "$ac_res" != no; then
27620   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27621
27622 cat >>confdefs.h <<\_ACEOF
27623 #define HAVE_MALLINFO 1
27624 _ACEOF
27625
27626 fi
27627
27628
27629 if test "$ENABLE_THREADS" -eq 1 ; then
27630
27631 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27632 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27633 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27634   echo $ECHO_N "(cached) $ECHO_C" >&6
27635 else
27636   ac_check_lib_save_LIBS=$LIBS
27637 LIBS="-lpthread  $LIBS"
27638 cat >conftest.$ac_ext <<_ACEOF
27639 /* confdefs.h.  */
27640 _ACEOF
27641 cat confdefs.h >>conftest.$ac_ext
27642 cat >>conftest.$ac_ext <<_ACEOF
27643 /* end confdefs.h.  */
27644
27645 /* Override any GCC internal prototype to avoid an error.
27646    Use char because int might match the return type of a GCC
27647    builtin and then its argument prototype would still apply.  */
27648 #ifdef __cplusplus
27649 extern "C"
27650 #endif
27651 char pthread_mutex_init ();
27652 int
27653 main ()
27654 {
27655 return pthread_mutex_init ();
27656   ;
27657   return 0;
27658 }
27659 _ACEOF
27660 rm -f conftest.$ac_objext conftest$ac_exeext
27661 if { (ac_try="$ac_link"
27662 case "(($ac_try" in
27663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27664   *) ac_try_echo=$ac_try;;
27665 esac
27666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27667   (eval "$ac_link") 2>conftest.er1
27668   ac_status=$?
27669   grep -v '^ *+' conftest.er1 >conftest.err
27670   rm -f conftest.er1
27671   cat conftest.err >&5
27672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673   (exit $ac_status); } &&
27674          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27675   { (case "(($ac_try" in
27676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677   *) ac_try_echo=$ac_try;;
27678 esac
27679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680   (eval "$ac_try") 2>&5
27681   ac_status=$?
27682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683   (exit $ac_status); }; } &&
27684          { ac_try='test -s conftest$ac_exeext'
27685   { (case "(($ac_try" in
27686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27687   *) ac_try_echo=$ac_try;;
27688 esac
27689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27690   (eval "$ac_try") 2>&5
27691   ac_status=$?
27692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693   (exit $ac_status); }; }; then
27694   ac_cv_lib_pthread_pthread_mutex_init=yes
27695 else
27696   echo "$as_me: failed program was:" >&5
27697 sed 's/^/| /' conftest.$ac_ext >&5
27698
27699         ac_cv_lib_pthread_pthread_mutex_init=no
27700 fi
27701
27702 rm -f core conftest.err conftest.$ac_objext \
27703       conftest$ac_exeext conftest.$ac_ext
27704 LIBS=$ac_check_lib_save_LIBS
27705 fi
27706 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27707 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27708 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27709   cat >>confdefs.h <<_ACEOF
27710 #define HAVE_LIBPTHREAD 1
27711 _ACEOF
27712
27713   LIBS="-lpthread $LIBS"
27714
27715 fi
27716
27717   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27718 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27719 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27720   echo $ECHO_N "(cached) $ECHO_C" >&6
27721 else
27722   ac_func_search_save_LIBS=$LIBS
27723 cat >conftest.$ac_ext <<_ACEOF
27724 /* confdefs.h.  */
27725 _ACEOF
27726 cat confdefs.h >>conftest.$ac_ext
27727 cat >>conftest.$ac_ext <<_ACEOF
27728 /* end confdefs.h.  */
27729
27730 /* Override any GCC internal prototype to avoid an error.
27731    Use char because int might match the return type of a GCC
27732    builtin and then its argument prototype would still apply.  */
27733 #ifdef __cplusplus
27734 extern "C"
27735 #endif
27736 char pthread_mutex_lock ();
27737 int
27738 main ()
27739 {
27740 return pthread_mutex_lock ();
27741   ;
27742   return 0;
27743 }
27744 _ACEOF
27745 for ac_lib in '' pthread; do
27746   if test -z "$ac_lib"; then
27747     ac_res="none required"
27748   else
27749     ac_res=-l$ac_lib
27750     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27751   fi
27752   rm -f conftest.$ac_objext conftest$ac_exeext
27753 if { (ac_try="$ac_link"
27754 case "(($ac_try" in
27755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27756   *) ac_try_echo=$ac_try;;
27757 esac
27758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27759   (eval "$ac_link") 2>conftest.er1
27760   ac_status=$?
27761   grep -v '^ *+' conftest.er1 >conftest.err
27762   rm -f conftest.er1
27763   cat conftest.err >&5
27764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765   (exit $ac_status); } &&
27766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27767   { (case "(($ac_try" in
27768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769   *) ac_try_echo=$ac_try;;
27770 esac
27771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772   (eval "$ac_try") 2>&5
27773   ac_status=$?
27774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775   (exit $ac_status); }; } &&
27776          { ac_try='test -s conftest$ac_exeext'
27777   { (case "(($ac_try" in
27778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27779   *) ac_try_echo=$ac_try;;
27780 esac
27781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27782   (eval "$ac_try") 2>&5
27783   ac_status=$?
27784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785   (exit $ac_status); }; }; then
27786   ac_cv_search_pthread_mutex_lock=$ac_res
27787 else
27788   echo "$as_me: failed program was:" >&5
27789 sed 's/^/| /' conftest.$ac_ext >&5
27790
27791
27792 fi
27793
27794 rm -f core conftest.err conftest.$ac_objext \
27795       conftest$ac_exeext
27796   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27797   break
27798 fi
27799 done
27800 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27801   :
27802 else
27803   ac_cv_search_pthread_mutex_lock=no
27804 fi
27805 rm conftest.$ac_ext
27806 LIBS=$ac_func_search_save_LIBS
27807 fi
27808 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27809 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27810 ac_res=$ac_cv_search_pthread_mutex_lock
27811 if test "$ac_res" != no; then
27812   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27813
27814 cat >>confdefs.h <<\_ACEOF
27815 #define HAVE_PTHREAD_MUTEX_LOCK 1
27816 _ACEOF
27817
27818 fi
27819
27820 fi
27821
27822
27823 # Check whether --with-udis86 was given.
27824 if test "${with_udis86+set}" = set; then
27825   withval=$with_udis86;
27826       USE_UDIS86=1
27827
27828       case "$withval" in
27829         /usr/lib|yes) ;;
27830         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27831       esac
27832
27833 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27834 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27835 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27836   echo $ECHO_N "(cached) $ECHO_C" >&6
27837 else
27838   ac_check_lib_save_LIBS=$LIBS
27839 LIBS="-ludis86  $LIBS"
27840 cat >conftest.$ac_ext <<_ACEOF
27841 /* confdefs.h.  */
27842 _ACEOF
27843 cat confdefs.h >>conftest.$ac_ext
27844 cat >>conftest.$ac_ext <<_ACEOF
27845 /* end confdefs.h.  */
27846
27847 /* Override any GCC internal prototype to avoid an error.
27848    Use char because int might match the return type of a GCC
27849    builtin and then its argument prototype would still apply.  */
27850 #ifdef __cplusplus
27851 extern "C"
27852 #endif
27853 char ud_init ();
27854 int
27855 main ()
27856 {
27857 return ud_init ();
27858   ;
27859   return 0;
27860 }
27861 _ACEOF
27862 rm -f conftest.$ac_objext conftest$ac_exeext
27863 if { (ac_try="$ac_link"
27864 case "(($ac_try" in
27865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27866   *) ac_try_echo=$ac_try;;
27867 esac
27868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27869   (eval "$ac_link") 2>conftest.er1
27870   ac_status=$?
27871   grep -v '^ *+' conftest.er1 >conftest.err
27872   rm -f conftest.er1
27873   cat conftest.err >&5
27874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875   (exit $ac_status); } &&
27876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27877   { (case "(($ac_try" in
27878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27879   *) ac_try_echo=$ac_try;;
27880 esac
27881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27882   (eval "$ac_try") 2>&5
27883   ac_status=$?
27884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885   (exit $ac_status); }; } &&
27886          { ac_try='test -s conftest$ac_exeext'
27887   { (case "(($ac_try" in
27888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27889   *) ac_try_echo=$ac_try;;
27890 esac
27891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27892   (eval "$ac_try") 2>&5
27893   ac_status=$?
27894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895   (exit $ac_status); }; }; then
27896   ac_cv_lib_udis86_ud_init=yes
27897 else
27898   echo "$as_me: failed program was:" >&5
27899 sed 's/^/| /' conftest.$ac_ext >&5
27900
27901         ac_cv_lib_udis86_ud_init=no
27902 fi
27903
27904 rm -f core conftest.err conftest.$ac_objext \
27905       conftest$ac_exeext conftest.$ac_ext
27906 LIBS=$ac_check_lib_save_LIBS
27907 fi
27908 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27909 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27910 if test $ac_cv_lib_udis86_ud_init = yes; then
27911   cat >>confdefs.h <<_ACEOF
27912 #define HAVE_LIBUDIS86 1
27913 _ACEOF
27914
27915   LIBS="-ludis86 $LIBS"
27916
27917 else
27918
27919         echo "Error! You need to have libudis86 around."
27920         exit -1
27921
27922 fi
27923
27924
27925 else
27926   USE_UDIS86=0
27927
27928 fi
27929
27930
27931 cat >>confdefs.h <<_ACEOF
27932 #define USE_UDIS86 $USE_UDIS86
27933 _ACEOF
27934
27935
27936
27937
27938
27939
27940
27941
27942 ac_header_dirent=no
27943 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27944   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27945 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27946 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27948   echo $ECHO_N "(cached) $ECHO_C" >&6
27949 else
27950   cat >conftest.$ac_ext <<_ACEOF
27951 /* confdefs.h.  */
27952 _ACEOF
27953 cat confdefs.h >>conftest.$ac_ext
27954 cat >>conftest.$ac_ext <<_ACEOF
27955 /* end confdefs.h.  */
27956 #include <sys/types.h>
27957 #include <$ac_hdr>
27958
27959 int
27960 main ()
27961 {
27962 if ((DIR *) 0)
27963 return 0;
27964   ;
27965   return 0;
27966 }
27967 _ACEOF
27968 rm -f conftest.$ac_objext
27969 if { (ac_try="$ac_compile"
27970 case "(($ac_try" in
27971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27972   *) ac_try_echo=$ac_try;;
27973 esac
27974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27975   (eval "$ac_compile") 2>conftest.er1
27976   ac_status=$?
27977   grep -v '^ *+' conftest.er1 >conftest.err
27978   rm -f conftest.er1
27979   cat conftest.err >&5
27980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981   (exit $ac_status); } &&
27982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27983   { (case "(($ac_try" in
27984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985   *) ac_try_echo=$ac_try;;
27986 esac
27987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988   (eval "$ac_try") 2>&5
27989   ac_status=$?
27990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991   (exit $ac_status); }; } &&
27992          { ac_try='test -s conftest.$ac_objext'
27993   { (case "(($ac_try" in
27994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27995   *) ac_try_echo=$ac_try;;
27996 esac
27997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27998   (eval "$ac_try") 2>&5
27999   ac_status=$?
28000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001   (exit $ac_status); }; }; then
28002   eval "$as_ac_Header=yes"
28003 else
28004   echo "$as_me: failed program was:" >&5
28005 sed 's/^/| /' conftest.$ac_ext >&5
28006
28007         eval "$as_ac_Header=no"
28008 fi
28009
28010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28011 fi
28012 ac_res=`eval echo '${'$as_ac_Header'}'`
28013                { echo "$as_me:$LINENO: result: $ac_res" >&5
28014 echo "${ECHO_T}$ac_res" >&6; }
28015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28016   cat >>confdefs.h <<_ACEOF
28017 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28018 _ACEOF
28019
28020 ac_header_dirent=$ac_hdr; break
28021 fi
28022
28023 done
28024 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28025 if test $ac_header_dirent = dirent.h; then
28026   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28027 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28028 if test "${ac_cv_search_opendir+set}" = set; then
28029   echo $ECHO_N "(cached) $ECHO_C" >&6
28030 else
28031   ac_func_search_save_LIBS=$LIBS
28032 cat >conftest.$ac_ext <<_ACEOF
28033 /* confdefs.h.  */
28034 _ACEOF
28035 cat confdefs.h >>conftest.$ac_ext
28036 cat >>conftest.$ac_ext <<_ACEOF
28037 /* end confdefs.h.  */
28038
28039 /* Override any GCC internal prototype to avoid an error.
28040    Use char because int might match the return type of a GCC
28041    builtin and then its argument prototype would still apply.  */
28042 #ifdef __cplusplus
28043 extern "C"
28044 #endif
28045 char opendir ();
28046 int
28047 main ()
28048 {
28049 return opendir ();
28050   ;
28051   return 0;
28052 }
28053 _ACEOF
28054 for ac_lib in '' dir; do
28055   if test -z "$ac_lib"; then
28056     ac_res="none required"
28057   else
28058     ac_res=-l$ac_lib
28059     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28060   fi
28061   rm -f conftest.$ac_objext conftest$ac_exeext
28062 if { (ac_try="$ac_link"
28063 case "(($ac_try" in
28064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28065   *) ac_try_echo=$ac_try;;
28066 esac
28067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28068   (eval "$ac_link") 2>conftest.er1
28069   ac_status=$?
28070   grep -v '^ *+' conftest.er1 >conftest.err
28071   rm -f conftest.er1
28072   cat conftest.err >&5
28073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074   (exit $ac_status); } &&
28075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28076   { (case "(($ac_try" in
28077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28078   *) ac_try_echo=$ac_try;;
28079 esac
28080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28081   (eval "$ac_try") 2>&5
28082   ac_status=$?
28083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084   (exit $ac_status); }; } &&
28085          { ac_try='test -s conftest$ac_exeext'
28086   { (case "(($ac_try" in
28087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28088   *) ac_try_echo=$ac_try;;
28089 esac
28090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28091   (eval "$ac_try") 2>&5
28092   ac_status=$?
28093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094   (exit $ac_status); }; }; then
28095   ac_cv_search_opendir=$ac_res
28096 else
28097   echo "$as_me: failed program was:" >&5
28098 sed 's/^/| /' conftest.$ac_ext >&5
28099
28100
28101 fi
28102
28103 rm -f core conftest.err conftest.$ac_objext \
28104       conftest$ac_exeext
28105   if test "${ac_cv_search_opendir+set}" = set; then
28106   break
28107 fi
28108 done
28109 if test "${ac_cv_search_opendir+set}" = set; then
28110   :
28111 else
28112   ac_cv_search_opendir=no
28113 fi
28114 rm conftest.$ac_ext
28115 LIBS=$ac_func_search_save_LIBS
28116 fi
28117 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28118 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28119 ac_res=$ac_cv_search_opendir
28120 if test "$ac_res" != no; then
28121   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28122
28123 fi
28124
28125 else
28126   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28127 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28128 if test "${ac_cv_search_opendir+set}" = set; then
28129   echo $ECHO_N "(cached) $ECHO_C" >&6
28130 else
28131   ac_func_search_save_LIBS=$LIBS
28132 cat >conftest.$ac_ext <<_ACEOF
28133 /* confdefs.h.  */
28134 _ACEOF
28135 cat confdefs.h >>conftest.$ac_ext
28136 cat >>conftest.$ac_ext <<_ACEOF
28137 /* end confdefs.h.  */
28138
28139 /* Override any GCC internal prototype to avoid an error.
28140    Use char because int might match the return type of a GCC
28141    builtin and then its argument prototype would still apply.  */
28142 #ifdef __cplusplus
28143 extern "C"
28144 #endif
28145 char opendir ();
28146 int
28147 main ()
28148 {
28149 return opendir ();
28150   ;
28151   return 0;
28152 }
28153 _ACEOF
28154 for ac_lib in '' x; do
28155   if test -z "$ac_lib"; then
28156     ac_res="none required"
28157   else
28158     ac_res=-l$ac_lib
28159     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28160   fi
28161   rm -f conftest.$ac_objext conftest$ac_exeext
28162 if { (ac_try="$ac_link"
28163 case "(($ac_try" in
28164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28165   *) ac_try_echo=$ac_try;;
28166 esac
28167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28168   (eval "$ac_link") 2>conftest.er1
28169   ac_status=$?
28170   grep -v '^ *+' conftest.er1 >conftest.err
28171   rm -f conftest.er1
28172   cat conftest.err >&5
28173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174   (exit $ac_status); } &&
28175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28176   { (case "(($ac_try" in
28177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28178   *) ac_try_echo=$ac_try;;
28179 esac
28180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28181   (eval "$ac_try") 2>&5
28182   ac_status=$?
28183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184   (exit $ac_status); }; } &&
28185          { ac_try='test -s conftest$ac_exeext'
28186   { (case "(($ac_try" in
28187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28188   *) ac_try_echo=$ac_try;;
28189 esac
28190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28191   (eval "$ac_try") 2>&5
28192   ac_status=$?
28193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194   (exit $ac_status); }; }; then
28195   ac_cv_search_opendir=$ac_res
28196 else
28197   echo "$as_me: failed program was:" >&5
28198 sed 's/^/| /' conftest.$ac_ext >&5
28199
28200
28201 fi
28202
28203 rm -f core conftest.err conftest.$ac_objext \
28204       conftest$ac_exeext
28205   if test "${ac_cv_search_opendir+set}" = set; then
28206   break
28207 fi
28208 done
28209 if test "${ac_cv_search_opendir+set}" = set; then
28210   :
28211 else
28212   ac_cv_search_opendir=no
28213 fi
28214 rm conftest.$ac_ext
28215 LIBS=$ac_func_search_save_LIBS
28216 fi
28217 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28218 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28219 ac_res=$ac_cv_search_opendir
28220 if test "$ac_res" != no; then
28221   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28222
28223 fi
28224
28225 fi
28226
28227 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28228 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28229 if test "${ac_cv_header_mmap_anon+set}" = set; then
28230   echo $ECHO_N "(cached) $ECHO_C" >&6
28231 else
28232    ac_ext=c
28233 ac_cpp='$CPP $CPPFLAGS'
28234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28237
28238   cat >conftest.$ac_ext <<_ACEOF
28239 /* confdefs.h.  */
28240 _ACEOF
28241 cat confdefs.h >>conftest.$ac_ext
28242 cat >>conftest.$ac_ext <<_ACEOF
28243 /* end confdefs.h.  */
28244 #include <sys/mman.h>
28245 #include <unistd.h>
28246 #include <fcntl.h>
28247 int
28248 main ()
28249 {
28250 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28251   ;
28252   return 0;
28253 }
28254 _ACEOF
28255 rm -f conftest.$ac_objext
28256 if { (ac_try="$ac_compile"
28257 case "(($ac_try" in
28258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28259   *) ac_try_echo=$ac_try;;
28260 esac
28261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28262   (eval "$ac_compile") 2>conftest.er1
28263   ac_status=$?
28264   grep -v '^ *+' conftest.er1 >conftest.err
28265   rm -f conftest.er1
28266   cat conftest.err >&5
28267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268   (exit $ac_status); } &&
28269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28270   { (case "(($ac_try" in
28271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28272   *) ac_try_echo=$ac_try;;
28273 esac
28274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28275   (eval "$ac_try") 2>&5
28276   ac_status=$?
28277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278   (exit $ac_status); }; } &&
28279          { ac_try='test -s conftest.$ac_objext'
28280   { (case "(($ac_try" in
28281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28282   *) ac_try_echo=$ac_try;;
28283 esac
28284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28285   (eval "$ac_try") 2>&5
28286   ac_status=$?
28287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288   (exit $ac_status); }; }; then
28289   ac_cv_header_mmap_anon=yes
28290 else
28291   echo "$as_me: failed program was:" >&5
28292 sed 's/^/| /' conftest.$ac_ext >&5
28293
28294         ac_cv_header_mmap_anon=no
28295 fi
28296
28297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28298   ac_ext=c
28299 ac_cpp='$CPP $CPPFLAGS'
28300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28303
28304
28305 fi
28306 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28307 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28308 if test "$ac_cv_header_mmap_anon" = yes; then
28309
28310 cat >>confdefs.h <<\_ACEOF
28311 #define HAVE_MMAP_ANONYMOUS 1
28312 _ACEOF
28313
28314 fi
28315
28316 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28317 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28318 if test "${ac_cv_header_stat_broken+set}" = set; then
28319   echo $ECHO_N "(cached) $ECHO_C" >&6
28320 else
28321   cat >conftest.$ac_ext <<_ACEOF
28322 /* confdefs.h.  */
28323 _ACEOF
28324 cat confdefs.h >>conftest.$ac_ext
28325 cat >>conftest.$ac_ext <<_ACEOF
28326 /* end confdefs.h.  */
28327 #include <sys/types.h>
28328 #include <sys/stat.h>
28329
28330 #if defined S_ISBLK && defined S_IFDIR
28331 # if S_ISBLK (S_IFDIR)
28332 You lose.
28333 # endif
28334 #endif
28335
28336 #if defined S_ISBLK && defined S_IFCHR
28337 # if S_ISBLK (S_IFCHR)
28338 You lose.
28339 # endif
28340 #endif
28341
28342 #if defined S_ISLNK && defined S_IFREG
28343 # if S_ISLNK (S_IFREG)
28344 You lose.
28345 # endif
28346 #endif
28347
28348 #if defined S_ISSOCK && defined S_IFREG
28349 # if S_ISSOCK (S_IFREG)
28350 You lose.
28351 # endif
28352 #endif
28353
28354 _ACEOF
28355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28356   $EGREP "You lose" >/dev/null 2>&1; then
28357   ac_cv_header_stat_broken=yes
28358 else
28359   ac_cv_header_stat_broken=no
28360 fi
28361 rm -f conftest*
28362
28363 fi
28364 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28365 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28366 if test $ac_cv_header_stat_broken = yes; then
28367
28368 cat >>confdefs.h <<\_ACEOF
28369 #define STAT_MACROS_BROKEN 1
28370 _ACEOF
28371
28372 fi
28373
28374 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28375 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28376 if test "${ac_cv_header_stdc+set}" = set; then
28377   echo $ECHO_N "(cached) $ECHO_C" >&6
28378 else
28379   cat >conftest.$ac_ext <<_ACEOF
28380 /* confdefs.h.  */
28381 _ACEOF
28382 cat confdefs.h >>conftest.$ac_ext
28383 cat >>conftest.$ac_ext <<_ACEOF
28384 /* end confdefs.h.  */
28385 #include <stdlib.h>
28386 #include <stdarg.h>
28387 #include <string.h>
28388 #include <float.h>
28389
28390 int
28391 main ()
28392 {
28393
28394   ;
28395   return 0;
28396 }
28397 _ACEOF
28398 rm -f conftest.$ac_objext
28399 if { (ac_try="$ac_compile"
28400 case "(($ac_try" in
28401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28402   *) ac_try_echo=$ac_try;;
28403 esac
28404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28405   (eval "$ac_compile") 2>conftest.er1
28406   ac_status=$?
28407   grep -v '^ *+' conftest.er1 >conftest.err
28408   rm -f conftest.er1
28409   cat conftest.err >&5
28410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411   (exit $ac_status); } &&
28412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28413   { (case "(($ac_try" in
28414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28415   *) ac_try_echo=$ac_try;;
28416 esac
28417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28418   (eval "$ac_try") 2>&5
28419   ac_status=$?
28420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421   (exit $ac_status); }; } &&
28422          { ac_try='test -s conftest.$ac_objext'
28423   { (case "(($ac_try" in
28424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28425   *) ac_try_echo=$ac_try;;
28426 esac
28427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28428   (eval "$ac_try") 2>&5
28429   ac_status=$?
28430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431   (exit $ac_status); }; }; then
28432   ac_cv_header_stdc=yes
28433 else
28434   echo "$as_me: failed program was:" >&5
28435 sed 's/^/| /' conftest.$ac_ext >&5
28436
28437         ac_cv_header_stdc=no
28438 fi
28439
28440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28441
28442 if test $ac_cv_header_stdc = yes; then
28443   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28444   cat >conftest.$ac_ext <<_ACEOF
28445 /* confdefs.h.  */
28446 _ACEOF
28447 cat confdefs.h >>conftest.$ac_ext
28448 cat >>conftest.$ac_ext <<_ACEOF
28449 /* end confdefs.h.  */
28450 #include <string.h>
28451
28452 _ACEOF
28453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28454   $EGREP "memchr" >/dev/null 2>&1; then
28455   :
28456 else
28457   ac_cv_header_stdc=no
28458 fi
28459 rm -f conftest*
28460
28461 fi
28462
28463 if test $ac_cv_header_stdc = yes; then
28464   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28465   cat >conftest.$ac_ext <<_ACEOF
28466 /* confdefs.h.  */
28467 _ACEOF
28468 cat confdefs.h >>conftest.$ac_ext
28469 cat >>conftest.$ac_ext <<_ACEOF
28470 /* end confdefs.h.  */
28471 #include <stdlib.h>
28472
28473 _ACEOF
28474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28475   $EGREP "free" >/dev/null 2>&1; then
28476   :
28477 else
28478   ac_cv_header_stdc=no
28479 fi
28480 rm -f conftest*
28481
28482 fi
28483
28484 if test $ac_cv_header_stdc = yes; then
28485   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28486   if test "$cross_compiling" = yes; then
28487   :
28488 else
28489   cat >conftest.$ac_ext <<_ACEOF
28490 /* confdefs.h.  */
28491 _ACEOF
28492 cat confdefs.h >>conftest.$ac_ext
28493 cat >>conftest.$ac_ext <<_ACEOF
28494 /* end confdefs.h.  */
28495 #include <ctype.h>
28496 #include <stdlib.h>
28497 #if ((' ' & 0x0FF) == 0x020)
28498 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28499 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28500 #else
28501 # define ISLOWER(c) \
28502                    (('a' <= (c) && (c) <= 'i') \
28503                      || ('j' <= (c) && (c) <= 'r') \
28504                      || ('s' <= (c) && (c) <= 'z'))
28505 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28506 #endif
28507
28508 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28509 int
28510 main ()
28511 {
28512   int i;
28513   for (i = 0; i < 256; i++)
28514     if (XOR (islower (i), ISLOWER (i))
28515         || toupper (i) != TOUPPER (i))
28516       return 2;
28517   return 0;
28518 }
28519 _ACEOF
28520 rm -f conftest$ac_exeext
28521 if { (ac_try="$ac_link"
28522 case "(($ac_try" in
28523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28524   *) ac_try_echo=$ac_try;;
28525 esac
28526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28527   (eval "$ac_link") 2>&5
28528   ac_status=$?
28529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28531   { (case "(($ac_try" in
28532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28533   *) ac_try_echo=$ac_try;;
28534 esac
28535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28536   (eval "$ac_try") 2>&5
28537   ac_status=$?
28538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539   (exit $ac_status); }; }; then
28540   :
28541 else
28542   echo "$as_me: program exited with status $ac_status" >&5
28543 echo "$as_me: failed program was:" >&5
28544 sed 's/^/| /' conftest.$ac_ext >&5
28545
28546 ( exit $ac_status )
28547 ac_cv_header_stdc=no
28548 fi
28549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28550 fi
28551
28552
28553 fi
28554 fi
28555 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28556 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28557 if test $ac_cv_header_stdc = yes; then
28558
28559 cat >>confdefs.h <<\_ACEOF
28560 #define STDC_HEADERS 1
28561 _ACEOF
28562
28563 fi
28564
28565 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28566 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28567 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28568   echo $ECHO_N "(cached) $ECHO_C" >&6
28569 else
28570   cat >conftest.$ac_ext <<_ACEOF
28571 /* confdefs.h.  */
28572 _ACEOF
28573 cat confdefs.h >>conftest.$ac_ext
28574 cat >>conftest.$ac_ext <<_ACEOF
28575 /* end confdefs.h.  */
28576 #include <sys/types.h>
28577 #include <sys/wait.h>
28578 #ifndef WEXITSTATUS
28579 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28580 #endif
28581 #ifndef WIFEXITED
28582 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28583 #endif
28584
28585 int
28586 main ()
28587 {
28588   int s;
28589   wait (&s);
28590   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28591   ;
28592   return 0;
28593 }
28594 _ACEOF
28595 rm -f conftest.$ac_objext
28596 if { (ac_try="$ac_compile"
28597 case "(($ac_try" in
28598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599   *) ac_try_echo=$ac_try;;
28600 esac
28601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602   (eval "$ac_compile") 2>conftest.er1
28603   ac_status=$?
28604   grep -v '^ *+' conftest.er1 >conftest.err
28605   rm -f conftest.er1
28606   cat conftest.err >&5
28607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608   (exit $ac_status); } &&
28609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28610   { (case "(($ac_try" in
28611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612   *) ac_try_echo=$ac_try;;
28613 esac
28614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615   (eval "$ac_try") 2>&5
28616   ac_status=$?
28617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618   (exit $ac_status); }; } &&
28619          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28626   ac_status=$?
28627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628   (exit $ac_status); }; }; then
28629   ac_cv_header_sys_wait_h=yes
28630 else
28631   echo "$as_me: failed program was:" >&5
28632 sed 's/^/| /' conftest.$ac_ext >&5
28633
28634         ac_cv_header_sys_wait_h=no
28635 fi
28636
28637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28638 fi
28639 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28640 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28641 if test $ac_cv_header_sys_wait_h = yes; then
28642
28643 cat >>confdefs.h <<\_ACEOF
28644 #define HAVE_SYS_WAIT_H 1
28645 _ACEOF
28646
28647 fi
28648
28649 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28650 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28651 if test "${ac_cv_header_time+set}" = set; then
28652   echo $ECHO_N "(cached) $ECHO_C" >&6
28653 else
28654   cat >conftest.$ac_ext <<_ACEOF
28655 /* confdefs.h.  */
28656 _ACEOF
28657 cat confdefs.h >>conftest.$ac_ext
28658 cat >>conftest.$ac_ext <<_ACEOF
28659 /* end confdefs.h.  */
28660 #include <sys/types.h>
28661 #include <sys/time.h>
28662 #include <time.h>
28663
28664 int
28665 main ()
28666 {
28667 if ((struct tm *) 0)
28668 return 0;
28669   ;
28670   return 0;
28671 }
28672 _ACEOF
28673 rm -f conftest.$ac_objext
28674 if { (ac_try="$ac_compile"
28675 case "(($ac_try" in
28676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28677   *) ac_try_echo=$ac_try;;
28678 esac
28679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28680   (eval "$ac_compile") 2>conftest.er1
28681   ac_status=$?
28682   grep -v '^ *+' conftest.er1 >conftest.err
28683   rm -f conftest.er1
28684   cat conftest.err >&5
28685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686   (exit $ac_status); } &&
28687          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28688   { (case "(($ac_try" in
28689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28690   *) ac_try_echo=$ac_try;;
28691 esac
28692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28693   (eval "$ac_try") 2>&5
28694   ac_status=$?
28695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696   (exit $ac_status); }; } &&
28697          { ac_try='test -s conftest.$ac_objext'
28698   { (case "(($ac_try" in
28699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28700   *) ac_try_echo=$ac_try;;
28701 esac
28702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28703   (eval "$ac_try") 2>&5
28704   ac_status=$?
28705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28706   (exit $ac_status); }; }; then
28707   ac_cv_header_time=yes
28708 else
28709   echo "$as_me: failed program was:" >&5
28710 sed 's/^/| /' conftest.$ac_ext >&5
28711
28712         ac_cv_header_time=no
28713 fi
28714
28715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28716 fi
28717 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28718 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28719 if test $ac_cv_header_time = yes; then
28720
28721 cat >>confdefs.h <<\_ACEOF
28722 #define TIME_WITH_SYS_TIME 1
28723 _ACEOF
28724
28725 fi
28726
28727
28728
28729
28730
28731
28732
28733
28734 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28735 do
28736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28738   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28741   echo $ECHO_N "(cached) $ECHO_C" >&6
28742 fi
28743 ac_res=`eval echo '${'$as_ac_Header'}'`
28744                { echo "$as_me:$LINENO: result: $ac_res" >&5
28745 echo "${ECHO_T}$ac_res" >&6; }
28746 else
28747   # Is the header compilable?
28748 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28750 cat >conftest.$ac_ext <<_ACEOF
28751 /* confdefs.h.  */
28752 _ACEOF
28753 cat confdefs.h >>conftest.$ac_ext
28754 cat >>conftest.$ac_ext <<_ACEOF
28755 /* end confdefs.h.  */
28756 $ac_includes_default
28757 #include <$ac_header>
28758 _ACEOF
28759 rm -f conftest.$ac_objext
28760 if { (ac_try="$ac_compile"
28761 case "(($ac_try" in
28762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28763   *) ac_try_echo=$ac_try;;
28764 esac
28765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28766   (eval "$ac_compile") 2>conftest.er1
28767   ac_status=$?
28768   grep -v '^ *+' conftest.er1 >conftest.err
28769   rm -f conftest.er1
28770   cat conftest.err >&5
28771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772   (exit $ac_status); } &&
28773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28774   { (case "(($ac_try" in
28775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28776   *) ac_try_echo=$ac_try;;
28777 esac
28778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28779   (eval "$ac_try") 2>&5
28780   ac_status=$?
28781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782   (exit $ac_status); }; } &&
28783          { ac_try='test -s conftest.$ac_objext'
28784   { (case "(($ac_try" in
28785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28786   *) ac_try_echo=$ac_try;;
28787 esac
28788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28789   (eval "$ac_try") 2>&5
28790   ac_status=$?
28791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792   (exit $ac_status); }; }; then
28793   ac_header_compiler=yes
28794 else
28795   echo "$as_me: failed program was:" >&5
28796 sed 's/^/| /' conftest.$ac_ext >&5
28797
28798         ac_header_compiler=no
28799 fi
28800
28801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28803 echo "${ECHO_T}$ac_header_compiler" >&6; }
28804
28805 # Is the header present?
28806 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28808 cat >conftest.$ac_ext <<_ACEOF
28809 /* confdefs.h.  */
28810 _ACEOF
28811 cat confdefs.h >>conftest.$ac_ext
28812 cat >>conftest.$ac_ext <<_ACEOF
28813 /* end confdefs.h.  */
28814 #include <$ac_header>
28815 _ACEOF
28816 if { (ac_try="$ac_cpp conftest.$ac_ext"
28817 case "(($ac_try" in
28818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28819   *) ac_try_echo=$ac_try;;
28820 esac
28821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28822   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28823   ac_status=$?
28824   grep -v '^ *+' conftest.er1 >conftest.err
28825   rm -f conftest.er1
28826   cat conftest.err >&5
28827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828   (exit $ac_status); } >/dev/null; then
28829   if test -s conftest.err; then
28830     ac_cpp_err=$ac_c_preproc_warn_flag
28831     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28832   else
28833     ac_cpp_err=
28834   fi
28835 else
28836   ac_cpp_err=yes
28837 fi
28838 if test -z "$ac_cpp_err"; then
28839   ac_header_preproc=yes
28840 else
28841   echo "$as_me: failed program was:" >&5
28842 sed 's/^/| /' conftest.$ac_ext >&5
28843
28844   ac_header_preproc=no
28845 fi
28846
28847 rm -f conftest.err conftest.$ac_ext
28848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28849 echo "${ECHO_T}$ac_header_preproc" >&6; }
28850
28851 # So?  What about this header?
28852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28853   yes:no: )
28854     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28858     ac_header_preproc=yes
28859     ;;
28860   no:yes:* )
28861     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28863     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28864 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28865     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28867     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28868 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28871     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28873     ( cat <<\_ASBOX
28874 ## ----------------------------------- ##
28875 ## Report this to llvmbugs@cs.uiuc.edu ##
28876 ## ----------------------------------- ##
28877 _ASBOX
28878      ) | sed "s/^/$as_me: WARNING:     /" >&2
28879     ;;
28880 esac
28881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28884   echo $ECHO_N "(cached) $ECHO_C" >&6
28885 else
28886   eval "$as_ac_Header=\$ac_header_preproc"
28887 fi
28888 ac_res=`eval echo '${'$as_ac_Header'}'`
28889                { echo "$as_me:$LINENO: result: $ac_res" >&5
28890 echo "${ECHO_T}$ac_res" >&6; }
28891
28892 fi
28893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28894   cat >>confdefs.h <<_ACEOF
28895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28896 _ACEOF
28897
28898 fi
28899
28900 done
28901
28902
28903
28904
28905
28906
28907
28908 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28909 do
28910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28912   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28915   echo $ECHO_N "(cached) $ECHO_C" >&6
28916 fi
28917 ac_res=`eval echo '${'$as_ac_Header'}'`
28918                { echo "$as_me:$LINENO: result: $ac_res" >&5
28919 echo "${ECHO_T}$ac_res" >&6; }
28920 else
28921   # Is the header compilable?
28922 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28924 cat >conftest.$ac_ext <<_ACEOF
28925 /* confdefs.h.  */
28926 _ACEOF
28927 cat confdefs.h >>conftest.$ac_ext
28928 cat >>conftest.$ac_ext <<_ACEOF
28929 /* end confdefs.h.  */
28930 $ac_includes_default
28931 #include <$ac_header>
28932 _ACEOF
28933 rm -f conftest.$ac_objext
28934 if { (ac_try="$ac_compile"
28935 case "(($ac_try" in
28936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28937   *) ac_try_echo=$ac_try;;
28938 esac
28939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28940   (eval "$ac_compile") 2>conftest.er1
28941   ac_status=$?
28942   grep -v '^ *+' conftest.er1 >conftest.err
28943   rm -f conftest.er1
28944   cat conftest.err >&5
28945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946   (exit $ac_status); } &&
28947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28948   { (case "(($ac_try" in
28949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28950   *) ac_try_echo=$ac_try;;
28951 esac
28952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28953   (eval "$ac_try") 2>&5
28954   ac_status=$?
28955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956   (exit $ac_status); }; } &&
28957          { ac_try='test -s conftest.$ac_objext'
28958   { (case "(($ac_try" in
28959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960   *) ac_try_echo=$ac_try;;
28961 esac
28962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28963   (eval "$ac_try") 2>&5
28964   ac_status=$?
28965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966   (exit $ac_status); }; }; then
28967   ac_header_compiler=yes
28968 else
28969   echo "$as_me: failed program was:" >&5
28970 sed 's/^/| /' conftest.$ac_ext >&5
28971
28972         ac_header_compiler=no
28973 fi
28974
28975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28977 echo "${ECHO_T}$ac_header_compiler" >&6; }
28978
28979 # Is the header present?
28980 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28982 cat >conftest.$ac_ext <<_ACEOF
28983 /* confdefs.h.  */
28984 _ACEOF
28985 cat confdefs.h >>conftest.$ac_ext
28986 cat >>conftest.$ac_ext <<_ACEOF
28987 /* end confdefs.h.  */
28988 #include <$ac_header>
28989 _ACEOF
28990 if { (ac_try="$ac_cpp conftest.$ac_ext"
28991 case "(($ac_try" in
28992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28993   *) ac_try_echo=$ac_try;;
28994 esac
28995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28996   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28997   ac_status=$?
28998   grep -v '^ *+' conftest.er1 >conftest.err
28999   rm -f conftest.er1
29000   cat conftest.err >&5
29001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002   (exit $ac_status); } >/dev/null; then
29003   if test -s conftest.err; then
29004     ac_cpp_err=$ac_c_preproc_warn_flag
29005     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29006   else
29007     ac_cpp_err=
29008   fi
29009 else
29010   ac_cpp_err=yes
29011 fi
29012 if test -z "$ac_cpp_err"; then
29013   ac_header_preproc=yes
29014 else
29015   echo "$as_me: failed program was:" >&5
29016 sed 's/^/| /' conftest.$ac_ext >&5
29017
29018   ac_header_preproc=no
29019 fi
29020
29021 rm -f conftest.err conftest.$ac_ext
29022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29023 echo "${ECHO_T}$ac_header_preproc" >&6; }
29024
29025 # So?  What about this header?
29026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29027   yes:no: )
29028     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29032     ac_header_preproc=yes
29033     ;;
29034   no:yes:* )
29035     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29037     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29038 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29039     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29041     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29042 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29045     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29047     ( cat <<\_ASBOX
29048 ## ----------------------------------- ##
29049 ## Report this to llvmbugs@cs.uiuc.edu ##
29050 ## ----------------------------------- ##
29051 _ASBOX
29052      ) | sed "s/^/$as_me: WARNING:     /" >&2
29053     ;;
29054 esac
29055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29058   echo $ECHO_N "(cached) $ECHO_C" >&6
29059 else
29060   eval "$as_ac_Header=\$ac_header_preproc"
29061 fi
29062 ac_res=`eval echo '${'$as_ac_Header'}'`
29063                { echo "$as_me:$LINENO: result: $ac_res" >&5
29064 echo "${ECHO_T}$ac_res" >&6; }
29065
29066 fi
29067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29068   cat >>confdefs.h <<_ACEOF
29069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29070 _ACEOF
29071
29072 fi
29073
29074 done
29075
29076
29077 for ac_header in windows.h
29078 do
29079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29081   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29084   echo $ECHO_N "(cached) $ECHO_C" >&6
29085 fi
29086 ac_res=`eval echo '${'$as_ac_Header'}'`
29087                { echo "$as_me:$LINENO: result: $ac_res" >&5
29088 echo "${ECHO_T}$ac_res" >&6; }
29089 else
29090   # Is the header compilable?
29091 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29093 cat >conftest.$ac_ext <<_ACEOF
29094 /* confdefs.h.  */
29095 _ACEOF
29096 cat confdefs.h >>conftest.$ac_ext
29097 cat >>conftest.$ac_ext <<_ACEOF
29098 /* end confdefs.h.  */
29099 $ac_includes_default
29100 #include <$ac_header>
29101 _ACEOF
29102 rm -f conftest.$ac_objext
29103 if { (ac_try="$ac_compile"
29104 case "(($ac_try" in
29105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29106   *) ac_try_echo=$ac_try;;
29107 esac
29108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29109   (eval "$ac_compile") 2>conftest.er1
29110   ac_status=$?
29111   grep -v '^ *+' conftest.er1 >conftest.err
29112   rm -f conftest.er1
29113   cat conftest.err >&5
29114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115   (exit $ac_status); } &&
29116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29117   { (case "(($ac_try" in
29118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29119   *) ac_try_echo=$ac_try;;
29120 esac
29121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29122   (eval "$ac_try") 2>&5
29123   ac_status=$?
29124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125   (exit $ac_status); }; } &&
29126          { ac_try='test -s conftest.$ac_objext'
29127   { (case "(($ac_try" in
29128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29129   *) ac_try_echo=$ac_try;;
29130 esac
29131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29132   (eval "$ac_try") 2>&5
29133   ac_status=$?
29134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29135   (exit $ac_status); }; }; then
29136   ac_header_compiler=yes
29137 else
29138   echo "$as_me: failed program was:" >&5
29139 sed 's/^/| /' conftest.$ac_ext >&5
29140
29141         ac_header_compiler=no
29142 fi
29143
29144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29146 echo "${ECHO_T}$ac_header_compiler" >&6; }
29147
29148 # Is the header present?
29149 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29151 cat >conftest.$ac_ext <<_ACEOF
29152 /* confdefs.h.  */
29153 _ACEOF
29154 cat confdefs.h >>conftest.$ac_ext
29155 cat >>conftest.$ac_ext <<_ACEOF
29156 /* end confdefs.h.  */
29157 #include <$ac_header>
29158 _ACEOF
29159 if { (ac_try="$ac_cpp conftest.$ac_ext"
29160 case "(($ac_try" in
29161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29162   *) ac_try_echo=$ac_try;;
29163 esac
29164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29165   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29166   ac_status=$?
29167   grep -v '^ *+' conftest.er1 >conftest.err
29168   rm -f conftest.er1
29169   cat conftest.err >&5
29170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171   (exit $ac_status); } >/dev/null; then
29172   if test -s conftest.err; then
29173     ac_cpp_err=$ac_c_preproc_warn_flag
29174     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29175   else
29176     ac_cpp_err=
29177   fi
29178 else
29179   ac_cpp_err=yes
29180 fi
29181 if test -z "$ac_cpp_err"; then
29182   ac_header_preproc=yes
29183 else
29184   echo "$as_me: failed program was:" >&5
29185 sed 's/^/| /' conftest.$ac_ext >&5
29186
29187   ac_header_preproc=no
29188 fi
29189
29190 rm -f conftest.err conftest.$ac_ext
29191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29192 echo "${ECHO_T}$ac_header_preproc" >&6; }
29193
29194 # So?  What about this header?
29195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29196   yes:no: )
29197     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29199     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29201     ac_header_preproc=yes
29202     ;;
29203   no:yes:* )
29204     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29206     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29207 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29208     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29210     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29211 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29212     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29214     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29216     ( cat <<\_ASBOX
29217 ## ----------------------------------- ##
29218 ## Report this to llvmbugs@cs.uiuc.edu ##
29219 ## ----------------------------------- ##
29220 _ASBOX
29221      ) | sed "s/^/$as_me: WARNING:     /" >&2
29222     ;;
29223 esac
29224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29227   echo $ECHO_N "(cached) $ECHO_C" >&6
29228 else
29229   eval "$as_ac_Header=\$ac_header_preproc"
29230 fi
29231 ac_res=`eval echo '${'$as_ac_Header'}'`
29232                { echo "$as_me:$LINENO: result: $ac_res" >&5
29233 echo "${ECHO_T}$ac_res" >&6; }
29234
29235 fi
29236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29237   cat >>confdefs.h <<_ACEOF
29238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29239 _ACEOF
29240
29241 fi
29242
29243 done
29244
29245
29246
29247
29248
29249 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29250 do
29251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29253   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29256   echo $ECHO_N "(cached) $ECHO_C" >&6
29257 fi
29258 ac_res=`eval echo '${'$as_ac_Header'}'`
29259                { echo "$as_me:$LINENO: result: $ac_res" >&5
29260 echo "${ECHO_T}$ac_res" >&6; }
29261 else
29262   # Is the header compilable?
29263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29265 cat >conftest.$ac_ext <<_ACEOF
29266 /* confdefs.h.  */
29267 _ACEOF
29268 cat confdefs.h >>conftest.$ac_ext
29269 cat >>conftest.$ac_ext <<_ACEOF
29270 /* end confdefs.h.  */
29271 $ac_includes_default
29272 #include <$ac_header>
29273 _ACEOF
29274 rm -f conftest.$ac_objext
29275 if { (ac_try="$ac_compile"
29276 case "(($ac_try" in
29277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29278   *) ac_try_echo=$ac_try;;
29279 esac
29280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29281   (eval "$ac_compile") 2>conftest.er1
29282   ac_status=$?
29283   grep -v '^ *+' conftest.er1 >conftest.err
29284   rm -f conftest.er1
29285   cat conftest.err >&5
29286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287   (exit $ac_status); } &&
29288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29289   { (case "(($ac_try" in
29290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291   *) ac_try_echo=$ac_try;;
29292 esac
29293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294   (eval "$ac_try") 2>&5
29295   ac_status=$?
29296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297   (exit $ac_status); }; } &&
29298          { ac_try='test -s conftest.$ac_objext'
29299   { (case "(($ac_try" in
29300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301   *) ac_try_echo=$ac_try;;
29302 esac
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304   (eval "$ac_try") 2>&5
29305   ac_status=$?
29306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307   (exit $ac_status); }; }; then
29308   ac_header_compiler=yes
29309 else
29310   echo "$as_me: failed program was:" >&5
29311 sed 's/^/| /' conftest.$ac_ext >&5
29312
29313         ac_header_compiler=no
29314 fi
29315
29316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29318 echo "${ECHO_T}$ac_header_compiler" >&6; }
29319
29320 # Is the header present?
29321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29323 cat >conftest.$ac_ext <<_ACEOF
29324 /* confdefs.h.  */
29325 _ACEOF
29326 cat confdefs.h >>conftest.$ac_ext
29327 cat >>conftest.$ac_ext <<_ACEOF
29328 /* end confdefs.h.  */
29329 #include <$ac_header>
29330 _ACEOF
29331 if { (ac_try="$ac_cpp conftest.$ac_ext"
29332 case "(($ac_try" in
29333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29334   *) ac_try_echo=$ac_try;;
29335 esac
29336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29337   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29338   ac_status=$?
29339   grep -v '^ *+' conftest.er1 >conftest.err
29340   rm -f conftest.er1
29341   cat conftest.err >&5
29342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343   (exit $ac_status); } >/dev/null; then
29344   if test -s conftest.err; then
29345     ac_cpp_err=$ac_c_preproc_warn_flag
29346     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29347   else
29348     ac_cpp_err=
29349   fi
29350 else
29351   ac_cpp_err=yes
29352 fi
29353 if test -z "$ac_cpp_err"; then
29354   ac_header_preproc=yes
29355 else
29356   echo "$as_me: failed program was:" >&5
29357 sed 's/^/| /' conftest.$ac_ext >&5
29358
29359   ac_header_preproc=no
29360 fi
29361
29362 rm -f conftest.err conftest.$ac_ext
29363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29364 echo "${ECHO_T}$ac_header_preproc" >&6; }
29365
29366 # So?  What about this header?
29367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29368   yes:no: )
29369     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29373     ac_header_preproc=yes
29374     ;;
29375   no:yes:* )
29376     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29378     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29379 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29380     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29382     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29383 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29386     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29388     ( cat <<\_ASBOX
29389 ## ----------------------------------- ##
29390 ## Report this to llvmbugs@cs.uiuc.edu ##
29391 ## ----------------------------------- ##
29392 _ASBOX
29393      ) | sed "s/^/$as_me: WARNING:     /" >&2
29394     ;;
29395 esac
29396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29399   echo $ECHO_N "(cached) $ECHO_C" >&6
29400 else
29401   eval "$as_ac_Header=\$ac_header_preproc"
29402 fi
29403 ac_res=`eval echo '${'$as_ac_Header'}'`
29404                { echo "$as_me:$LINENO: result: $ac_res" >&5
29405 echo "${ECHO_T}$ac_res" >&6; }
29406
29407 fi
29408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29409   cat >>confdefs.h <<_ACEOF
29410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29411 _ACEOF
29412
29413 fi
29414
29415 done
29416
29417
29418
29419
29420 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29421 do
29422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29424   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29427   echo $ECHO_N "(cached) $ECHO_C" >&6
29428 fi
29429 ac_res=`eval echo '${'$as_ac_Header'}'`
29430                { echo "$as_me:$LINENO: result: $ac_res" >&5
29431 echo "${ECHO_T}$ac_res" >&6; }
29432 else
29433   # Is the header compilable?
29434 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29436 cat >conftest.$ac_ext <<_ACEOF
29437 /* confdefs.h.  */
29438 _ACEOF
29439 cat confdefs.h >>conftest.$ac_ext
29440 cat >>conftest.$ac_ext <<_ACEOF
29441 /* end confdefs.h.  */
29442 $ac_includes_default
29443 #include <$ac_header>
29444 _ACEOF
29445 rm -f conftest.$ac_objext
29446 if { (ac_try="$ac_compile"
29447 case "(($ac_try" in
29448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29449   *) ac_try_echo=$ac_try;;
29450 esac
29451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29452   (eval "$ac_compile") 2>conftest.er1
29453   ac_status=$?
29454   grep -v '^ *+' conftest.er1 >conftest.err
29455   rm -f conftest.er1
29456   cat conftest.err >&5
29457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458   (exit $ac_status); } &&
29459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29460   { (case "(($ac_try" in
29461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29462   *) ac_try_echo=$ac_try;;
29463 esac
29464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29465   (eval "$ac_try") 2>&5
29466   ac_status=$?
29467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468   (exit $ac_status); }; } &&
29469          { ac_try='test -s conftest.$ac_objext'
29470   { (case "(($ac_try" in
29471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29472   *) ac_try_echo=$ac_try;;
29473 esac
29474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29475   (eval "$ac_try") 2>&5
29476   ac_status=$?
29477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478   (exit $ac_status); }; }; then
29479   ac_header_compiler=yes
29480 else
29481   echo "$as_me: failed program was:" >&5
29482 sed 's/^/| /' conftest.$ac_ext >&5
29483
29484         ac_header_compiler=no
29485 fi
29486
29487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29488 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29489 echo "${ECHO_T}$ac_header_compiler" >&6; }
29490
29491 # Is the header present?
29492 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29494 cat >conftest.$ac_ext <<_ACEOF
29495 /* confdefs.h.  */
29496 _ACEOF
29497 cat confdefs.h >>conftest.$ac_ext
29498 cat >>conftest.$ac_ext <<_ACEOF
29499 /* end confdefs.h.  */
29500 #include <$ac_header>
29501 _ACEOF
29502 if { (ac_try="$ac_cpp conftest.$ac_ext"
29503 case "(($ac_try" in
29504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29505   *) ac_try_echo=$ac_try;;
29506 esac
29507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29508   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29509   ac_status=$?
29510   grep -v '^ *+' conftest.er1 >conftest.err
29511   rm -f conftest.er1
29512   cat conftest.err >&5
29513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514   (exit $ac_status); } >/dev/null; then
29515   if test -s conftest.err; then
29516     ac_cpp_err=$ac_c_preproc_warn_flag
29517     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29518   else
29519     ac_cpp_err=
29520   fi
29521 else
29522   ac_cpp_err=yes
29523 fi
29524 if test -z "$ac_cpp_err"; then
29525   ac_header_preproc=yes
29526 else
29527   echo "$as_me: failed program was:" >&5
29528 sed 's/^/| /' conftest.$ac_ext >&5
29529
29530   ac_header_preproc=no
29531 fi
29532
29533 rm -f conftest.err conftest.$ac_ext
29534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29535 echo "${ECHO_T}$ac_header_preproc" >&6; }
29536
29537 # So?  What about this header?
29538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29539   yes:no: )
29540     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29544     ac_header_preproc=yes
29545     ;;
29546   no:yes:* )
29547     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29549     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29550 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29551     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29553     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29554 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29555     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29557     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29559     ( cat <<\_ASBOX
29560 ## ----------------------------------- ##
29561 ## Report this to llvmbugs@cs.uiuc.edu ##
29562 ## ----------------------------------- ##
29563 _ASBOX
29564      ) | sed "s/^/$as_me: WARNING:     /" >&2
29565     ;;
29566 esac
29567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29570   echo $ECHO_N "(cached) $ECHO_C" >&6
29571 else
29572   eval "$as_ac_Header=\$ac_header_preproc"
29573 fi
29574 ac_res=`eval echo '${'$as_ac_Header'}'`
29575                { echo "$as_me:$LINENO: result: $ac_res" >&5
29576 echo "${ECHO_T}$ac_res" >&6; }
29577
29578 fi
29579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29580   cat >>confdefs.h <<_ACEOF
29581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29582 _ACEOF
29583
29584 fi
29585
29586 done
29587
29588 if test "$ENABLE_THREADS" -eq 1 ; then
29589
29590 for ac_header in pthread.h
29591 do
29592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29594   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29597   echo $ECHO_N "(cached) $ECHO_C" >&6
29598 fi
29599 ac_res=`eval echo '${'$as_ac_Header'}'`
29600                { echo "$as_me:$LINENO: result: $ac_res" >&5
29601 echo "${ECHO_T}$ac_res" >&6; }
29602 else
29603   # Is the header compilable?
29604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29606 cat >conftest.$ac_ext <<_ACEOF
29607 /* confdefs.h.  */
29608 _ACEOF
29609 cat confdefs.h >>conftest.$ac_ext
29610 cat >>conftest.$ac_ext <<_ACEOF
29611 /* end confdefs.h.  */
29612 $ac_includes_default
29613 #include <$ac_header>
29614 _ACEOF
29615 rm -f conftest.$ac_objext
29616 if { (ac_try="$ac_compile"
29617 case "(($ac_try" in
29618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29619   *) ac_try_echo=$ac_try;;
29620 esac
29621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29622   (eval "$ac_compile") 2>conftest.er1
29623   ac_status=$?
29624   grep -v '^ *+' conftest.er1 >conftest.err
29625   rm -f conftest.er1
29626   cat conftest.err >&5
29627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628   (exit $ac_status); } &&
29629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29630   { (case "(($ac_try" in
29631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29632   *) ac_try_echo=$ac_try;;
29633 esac
29634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29635   (eval "$ac_try") 2>&5
29636   ac_status=$?
29637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638   (exit $ac_status); }; } &&
29639          { ac_try='test -s conftest.$ac_objext'
29640   { (case "(($ac_try" in
29641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642   *) ac_try_echo=$ac_try;;
29643 esac
29644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645   (eval "$ac_try") 2>&5
29646   ac_status=$?
29647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29648   (exit $ac_status); }; }; then
29649   ac_header_compiler=yes
29650 else
29651   echo "$as_me: failed program was:" >&5
29652 sed 's/^/| /' conftest.$ac_ext >&5
29653
29654         ac_header_compiler=no
29655 fi
29656
29657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29659 echo "${ECHO_T}$ac_header_compiler" >&6; }
29660
29661 # Is the header present?
29662 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29664 cat >conftest.$ac_ext <<_ACEOF
29665 /* confdefs.h.  */
29666 _ACEOF
29667 cat confdefs.h >>conftest.$ac_ext
29668 cat >>conftest.$ac_ext <<_ACEOF
29669 /* end confdefs.h.  */
29670 #include <$ac_header>
29671 _ACEOF
29672 if { (ac_try="$ac_cpp conftest.$ac_ext"
29673 case "(($ac_try" in
29674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29675   *) ac_try_echo=$ac_try;;
29676 esac
29677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29678   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29679   ac_status=$?
29680   grep -v '^ *+' conftest.er1 >conftest.err
29681   rm -f conftest.er1
29682   cat conftest.err >&5
29683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29684   (exit $ac_status); } >/dev/null; then
29685   if test -s conftest.err; then
29686     ac_cpp_err=$ac_c_preproc_warn_flag
29687     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29688   else
29689     ac_cpp_err=
29690   fi
29691 else
29692   ac_cpp_err=yes
29693 fi
29694 if test -z "$ac_cpp_err"; then
29695   ac_header_preproc=yes
29696 else
29697   echo "$as_me: failed program was:" >&5
29698 sed 's/^/| /' conftest.$ac_ext >&5
29699
29700   ac_header_preproc=no
29701 fi
29702
29703 rm -f conftest.err conftest.$ac_ext
29704 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29705 echo "${ECHO_T}$ac_header_preproc" >&6; }
29706
29707 # So?  What about this header?
29708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29709   yes:no: )
29710     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29714     ac_header_preproc=yes
29715     ;;
29716   no:yes:* )
29717     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29719     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29720 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29721     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29723     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29724 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29727     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29729     ( cat <<\_ASBOX
29730 ## ----------------------------------- ##
29731 ## Report this to llvmbugs@cs.uiuc.edu ##
29732 ## ----------------------------------- ##
29733 _ASBOX
29734      ) | sed "s/^/$as_me: WARNING:     /" >&2
29735     ;;
29736 esac
29737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29740   echo $ECHO_N "(cached) $ECHO_C" >&6
29741 else
29742   eval "$as_ac_Header=\$ac_header_preproc"
29743 fi
29744 ac_res=`eval echo '${'$as_ac_Header'}'`
29745                { echo "$as_me:$LINENO: result: $ac_res" >&5
29746 echo "${ECHO_T}$ac_res" >&6; }
29747
29748 fi
29749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29750   cat >>confdefs.h <<_ACEOF
29751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29752 _ACEOF
29753  HAVE_PTHREAD=1
29754
29755 else
29756   HAVE_PTHREAD=0
29757
29758 fi
29759
29760 done
29761
29762 else
29763   HAVE_PTHREAD=0
29764
29765 fi
29766
29767
29768
29769   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29770 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29771 if test "${ac_cv_huge_val_sanity+set}" = set; then
29772   echo $ECHO_N "(cached) $ECHO_C" >&6
29773 else
29774
29775     ac_ext=cpp
29776 ac_cpp='$CXXCPP $CPPFLAGS'
29777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29780
29781     CXXFLAGS=-pedantic
29782     if test "$cross_compiling" = yes; then
29783   ac_cv_huge_val_sanity=yes
29784 else
29785   cat >conftest.$ac_ext <<_ACEOF
29786 /* confdefs.h.  */
29787 _ACEOF
29788 cat confdefs.h >>conftest.$ac_ext
29789 cat >>conftest.$ac_ext <<_ACEOF
29790 /* end confdefs.h.  */
29791 #include <math.h>
29792 int
29793 main ()
29794 {
29795 double x = HUGE_VAL; return x != x;
29796   ;
29797   return 0;
29798 }
29799 _ACEOF
29800 rm -f conftest$ac_exeext
29801 if { (ac_try="$ac_link"
29802 case "(($ac_try" in
29803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29804   *) ac_try_echo=$ac_try;;
29805 esac
29806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29807   (eval "$ac_link") 2>&5
29808   ac_status=$?
29809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29811   { (case "(($ac_try" in
29812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29813   *) ac_try_echo=$ac_try;;
29814 esac
29815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29816   (eval "$ac_try") 2>&5
29817   ac_status=$?
29818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819   (exit $ac_status); }; }; then
29820   ac_cv_huge_val_sanity=yes
29821 else
29822   echo "$as_me: program exited with status $ac_status" >&5
29823 echo "$as_me: failed program was:" >&5
29824 sed 's/^/| /' conftest.$ac_ext >&5
29825
29826 ( exit $ac_status )
29827 ac_cv_huge_val_sanity=no
29828 fi
29829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29830 fi
29831
29832
29833     ac_ext=c
29834 ac_cpp='$CPP $CPPFLAGS'
29835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29838
29839
29840 fi
29841 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29842 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29843   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29844
29845
29846 { echo "$as_me:$LINENO: checking for pid_t" >&5
29847 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29848 if test "${ac_cv_type_pid_t+set}" = set; then
29849   echo $ECHO_N "(cached) $ECHO_C" >&6
29850 else
29851   cat >conftest.$ac_ext <<_ACEOF
29852 /* confdefs.h.  */
29853 _ACEOF
29854 cat confdefs.h >>conftest.$ac_ext
29855 cat >>conftest.$ac_ext <<_ACEOF
29856 /* end confdefs.h.  */
29857 $ac_includes_default
29858 typedef pid_t ac__type_new_;
29859 int
29860 main ()
29861 {
29862 if ((ac__type_new_ *) 0)
29863   return 0;
29864 if (sizeof (ac__type_new_))
29865   return 0;
29866   ;
29867   return 0;
29868 }
29869 _ACEOF
29870 rm -f conftest.$ac_objext
29871 if { (ac_try="$ac_compile"
29872 case "(($ac_try" in
29873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29874   *) ac_try_echo=$ac_try;;
29875 esac
29876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29877   (eval "$ac_compile") 2>conftest.er1
29878   ac_status=$?
29879   grep -v '^ *+' conftest.er1 >conftest.err
29880   rm -f conftest.er1
29881   cat conftest.err >&5
29882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883   (exit $ac_status); } &&
29884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29885   { (case "(($ac_try" in
29886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29887   *) ac_try_echo=$ac_try;;
29888 esac
29889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29890   (eval "$ac_try") 2>&5
29891   ac_status=$?
29892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893   (exit $ac_status); }; } &&
29894          { ac_try='test -s conftest.$ac_objext'
29895   { (case "(($ac_try" in
29896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29897   *) ac_try_echo=$ac_try;;
29898 esac
29899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29900   (eval "$ac_try") 2>&5
29901   ac_status=$?
29902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903   (exit $ac_status); }; }; then
29904   ac_cv_type_pid_t=yes
29905 else
29906   echo "$as_me: failed program was:" >&5
29907 sed 's/^/| /' conftest.$ac_ext >&5
29908
29909         ac_cv_type_pid_t=no
29910 fi
29911
29912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29913 fi
29914 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29915 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29916 if test $ac_cv_type_pid_t = yes; then
29917   :
29918 else
29919
29920 cat >>confdefs.h <<_ACEOF
29921 #define pid_t int
29922 _ACEOF
29923
29924 fi
29925
29926 { echo "$as_me:$LINENO: checking for size_t" >&5
29927 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29928 if test "${ac_cv_type_size_t+set}" = set; then
29929   echo $ECHO_N "(cached) $ECHO_C" >&6
29930 else
29931   cat >conftest.$ac_ext <<_ACEOF
29932 /* confdefs.h.  */
29933 _ACEOF
29934 cat confdefs.h >>conftest.$ac_ext
29935 cat >>conftest.$ac_ext <<_ACEOF
29936 /* end confdefs.h.  */
29937 $ac_includes_default
29938 typedef size_t ac__type_new_;
29939 int
29940 main ()
29941 {
29942 if ((ac__type_new_ *) 0)
29943   return 0;
29944 if (sizeof (ac__type_new_))
29945   return 0;
29946   ;
29947   return 0;
29948 }
29949 _ACEOF
29950 rm -f conftest.$ac_objext
29951 if { (ac_try="$ac_compile"
29952 case "(($ac_try" in
29953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29954   *) ac_try_echo=$ac_try;;
29955 esac
29956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29957   (eval "$ac_compile") 2>conftest.er1
29958   ac_status=$?
29959   grep -v '^ *+' conftest.er1 >conftest.err
29960   rm -f conftest.er1
29961   cat conftest.err >&5
29962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963   (exit $ac_status); } &&
29964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29965   { (case "(($ac_try" in
29966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29967   *) ac_try_echo=$ac_try;;
29968 esac
29969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29970   (eval "$ac_try") 2>&5
29971   ac_status=$?
29972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973   (exit $ac_status); }; } &&
29974          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29981   ac_status=$?
29982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983   (exit $ac_status); }; }; then
29984   ac_cv_type_size_t=yes
29985 else
29986   echo "$as_me: failed program was:" >&5
29987 sed 's/^/| /' conftest.$ac_ext >&5
29988
29989         ac_cv_type_size_t=no
29990 fi
29991
29992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29993 fi
29994 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29995 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29996 if test $ac_cv_type_size_t = yes; then
29997   :
29998 else
29999
30000 cat >>confdefs.h <<_ACEOF
30001 #define size_t unsigned int
30002 _ACEOF
30003
30004 fi
30005
30006 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30007 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30008 if test "${ac_cv_type_signal+set}" = set; then
30009   echo $ECHO_N "(cached) $ECHO_C" >&6
30010 else
30011   cat >conftest.$ac_ext <<_ACEOF
30012 /* confdefs.h.  */
30013 _ACEOF
30014 cat confdefs.h >>conftest.$ac_ext
30015 cat >>conftest.$ac_ext <<_ACEOF
30016 /* end confdefs.h.  */
30017 #include <sys/types.h>
30018 #include <signal.h>
30019
30020 int
30021 main ()
30022 {
30023 return *(signal (0, 0)) (0) == 1;
30024   ;
30025   return 0;
30026 }
30027 _ACEOF
30028 rm -f conftest.$ac_objext
30029 if { (ac_try="$ac_compile"
30030 case "(($ac_try" in
30031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30032   *) ac_try_echo=$ac_try;;
30033 esac
30034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30035   (eval "$ac_compile") 2>conftest.er1
30036   ac_status=$?
30037   grep -v '^ *+' conftest.er1 >conftest.err
30038   rm -f conftest.er1
30039   cat conftest.err >&5
30040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041   (exit $ac_status); } &&
30042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30043   { (case "(($ac_try" in
30044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30045   *) ac_try_echo=$ac_try;;
30046 esac
30047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30048   (eval "$ac_try") 2>&5
30049   ac_status=$?
30050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051   (exit $ac_status); }; } &&
30052          { ac_try='test -s conftest.$ac_objext'
30053   { (case "(($ac_try" in
30054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30055   *) ac_try_echo=$ac_try;;
30056 esac
30057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30058   (eval "$ac_try") 2>&5
30059   ac_status=$?
30060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061   (exit $ac_status); }; }; then
30062   ac_cv_type_signal=int
30063 else
30064   echo "$as_me: failed program was:" >&5
30065 sed 's/^/| /' conftest.$ac_ext >&5
30066
30067         ac_cv_type_signal=void
30068 fi
30069
30070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30071 fi
30072 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30073 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30074
30075 cat >>confdefs.h <<_ACEOF
30076 #define RETSIGTYPE $ac_cv_type_signal
30077 _ACEOF
30078
30079
30080 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30081 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30082 if test "${ac_cv_struct_tm+set}" = set; then
30083   echo $ECHO_N "(cached) $ECHO_C" >&6
30084 else
30085   cat >conftest.$ac_ext <<_ACEOF
30086 /* confdefs.h.  */
30087 _ACEOF
30088 cat confdefs.h >>conftest.$ac_ext
30089 cat >>conftest.$ac_ext <<_ACEOF
30090 /* end confdefs.h.  */
30091 #include <sys/types.h>
30092 #include <time.h>
30093
30094 int
30095 main ()
30096 {
30097 struct tm *tp; tp->tm_sec;
30098   ;
30099   return 0;
30100 }
30101 _ACEOF
30102 rm -f conftest.$ac_objext
30103 if { (ac_try="$ac_compile"
30104 case "(($ac_try" in
30105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30106   *) ac_try_echo=$ac_try;;
30107 esac
30108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30109   (eval "$ac_compile") 2>conftest.er1
30110   ac_status=$?
30111   grep -v '^ *+' conftest.er1 >conftest.err
30112   rm -f conftest.er1
30113   cat conftest.err >&5
30114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115   (exit $ac_status); } &&
30116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30117   { (case "(($ac_try" in
30118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30119   *) ac_try_echo=$ac_try;;
30120 esac
30121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30122   (eval "$ac_try") 2>&5
30123   ac_status=$?
30124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125   (exit $ac_status); }; } &&
30126          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
30133   ac_status=$?
30134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135   (exit $ac_status); }; }; then
30136   ac_cv_struct_tm=time.h
30137 else
30138   echo "$as_me: failed program was:" >&5
30139 sed 's/^/| /' conftest.$ac_ext >&5
30140
30141         ac_cv_struct_tm=sys/time.h
30142 fi
30143
30144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30145 fi
30146 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30147 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30148 if test $ac_cv_struct_tm = sys/time.h; then
30149
30150 cat >>confdefs.h <<\_ACEOF
30151 #define TM_IN_SYS_TIME 1
30152 _ACEOF
30153
30154 fi
30155
30156 { echo "$as_me:$LINENO: checking for int64_t" >&5
30157 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30158 if test "${ac_cv_type_int64_t+set}" = set; then
30159   echo $ECHO_N "(cached) $ECHO_C" >&6
30160 else
30161   cat >conftest.$ac_ext <<_ACEOF
30162 /* confdefs.h.  */
30163 _ACEOF
30164 cat confdefs.h >>conftest.$ac_ext
30165 cat >>conftest.$ac_ext <<_ACEOF
30166 /* end confdefs.h.  */
30167 $ac_includes_default
30168 typedef int64_t ac__type_new_;
30169 int
30170 main ()
30171 {
30172 if ((ac__type_new_ *) 0)
30173   return 0;
30174 if (sizeof (ac__type_new_))
30175   return 0;
30176   ;
30177   return 0;
30178 }
30179 _ACEOF
30180 rm -f conftest.$ac_objext
30181 if { (ac_try="$ac_compile"
30182 case "(($ac_try" in
30183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30184   *) ac_try_echo=$ac_try;;
30185 esac
30186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30187   (eval "$ac_compile") 2>conftest.er1
30188   ac_status=$?
30189   grep -v '^ *+' conftest.er1 >conftest.err
30190   rm -f conftest.er1
30191   cat conftest.err >&5
30192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193   (exit $ac_status); } &&
30194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30195   { (case "(($ac_try" in
30196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30197   *) ac_try_echo=$ac_try;;
30198 esac
30199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30200   (eval "$ac_try") 2>&5
30201   ac_status=$?
30202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203   (exit $ac_status); }; } &&
30204          { ac_try='test -s conftest.$ac_objext'
30205   { (case "(($ac_try" in
30206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30207   *) ac_try_echo=$ac_try;;
30208 esac
30209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30210   (eval "$ac_try") 2>&5
30211   ac_status=$?
30212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213   (exit $ac_status); }; }; then
30214   ac_cv_type_int64_t=yes
30215 else
30216   echo "$as_me: failed program was:" >&5
30217 sed 's/^/| /' conftest.$ac_ext >&5
30218
30219         ac_cv_type_int64_t=no
30220 fi
30221
30222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30223 fi
30224 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30225 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30226 if test $ac_cv_type_int64_t = yes; then
30227
30228 cat >>confdefs.h <<_ACEOF
30229 #define HAVE_INT64_T 1
30230 _ACEOF
30231
30232
30233 else
30234   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30235 echo "$as_me: error: Type int64_t required but not found" >&2;}
30236    { (exit 1); exit 1; }; }
30237 fi
30238
30239 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30240 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30241 if test "${ac_cv_type_uint64_t+set}" = set; then
30242   echo $ECHO_N "(cached) $ECHO_C" >&6
30243 else
30244   cat >conftest.$ac_ext <<_ACEOF
30245 /* confdefs.h.  */
30246 _ACEOF
30247 cat confdefs.h >>conftest.$ac_ext
30248 cat >>conftest.$ac_ext <<_ACEOF
30249 /* end confdefs.h.  */
30250 $ac_includes_default
30251 typedef uint64_t ac__type_new_;
30252 int
30253 main ()
30254 {
30255 if ((ac__type_new_ *) 0)
30256   return 0;
30257 if (sizeof (ac__type_new_))
30258   return 0;
30259   ;
30260   return 0;
30261 }
30262 _ACEOF
30263 rm -f conftest.$ac_objext
30264 if { (ac_try="$ac_compile"
30265 case "(($ac_try" in
30266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30267   *) ac_try_echo=$ac_try;;
30268 esac
30269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30270   (eval "$ac_compile") 2>conftest.er1
30271   ac_status=$?
30272   grep -v '^ *+' conftest.er1 >conftest.err
30273   rm -f conftest.er1
30274   cat conftest.err >&5
30275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30276   (exit $ac_status); } &&
30277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30278   { (case "(($ac_try" in
30279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30280   *) ac_try_echo=$ac_try;;
30281 esac
30282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30283   (eval "$ac_try") 2>&5
30284   ac_status=$?
30285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30286   (exit $ac_status); }; } &&
30287          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
30294   ac_status=$?
30295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296   (exit $ac_status); }; }; then
30297   ac_cv_type_uint64_t=yes
30298 else
30299   echo "$as_me: failed program was:" >&5
30300 sed 's/^/| /' conftest.$ac_ext >&5
30301
30302         ac_cv_type_uint64_t=no
30303 fi
30304
30305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30306 fi
30307 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30308 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30309 if test $ac_cv_type_uint64_t = yes; then
30310
30311 cat >>confdefs.h <<_ACEOF
30312 #define HAVE_UINT64_T 1
30313 _ACEOF
30314
30315
30316 else
30317   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30318 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30319 if test "${ac_cv_type_u_int64_t+set}" = set; then
30320   echo $ECHO_N "(cached) $ECHO_C" >&6
30321 else
30322   cat >conftest.$ac_ext <<_ACEOF
30323 /* confdefs.h.  */
30324 _ACEOF
30325 cat confdefs.h >>conftest.$ac_ext
30326 cat >>conftest.$ac_ext <<_ACEOF
30327 /* end confdefs.h.  */
30328 $ac_includes_default
30329 typedef u_int64_t ac__type_new_;
30330 int
30331 main ()
30332 {
30333 if ((ac__type_new_ *) 0)
30334   return 0;
30335 if (sizeof (ac__type_new_))
30336   return 0;
30337   ;
30338   return 0;
30339 }
30340 _ACEOF
30341 rm -f conftest.$ac_objext
30342 if { (ac_try="$ac_compile"
30343 case "(($ac_try" in
30344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30345   *) ac_try_echo=$ac_try;;
30346 esac
30347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30348   (eval "$ac_compile") 2>conftest.er1
30349   ac_status=$?
30350   grep -v '^ *+' conftest.er1 >conftest.err
30351   rm -f conftest.er1
30352   cat conftest.err >&5
30353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354   (exit $ac_status); } &&
30355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30356   { (case "(($ac_try" in
30357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30358   *) ac_try_echo=$ac_try;;
30359 esac
30360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30361   (eval "$ac_try") 2>&5
30362   ac_status=$?
30363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364   (exit $ac_status); }; } &&
30365          { ac_try='test -s conftest.$ac_objext'
30366   { (case "(($ac_try" in
30367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30368   *) ac_try_echo=$ac_try;;
30369 esac
30370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30371   (eval "$ac_try") 2>&5
30372   ac_status=$?
30373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374   (exit $ac_status); }; }; then
30375   ac_cv_type_u_int64_t=yes
30376 else
30377   echo "$as_me: failed program was:" >&5
30378 sed 's/^/| /' conftest.$ac_ext >&5
30379
30380         ac_cv_type_u_int64_t=no
30381 fi
30382
30383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30384 fi
30385 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30386 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30387 if test $ac_cv_type_u_int64_t = yes; then
30388
30389 cat >>confdefs.h <<_ACEOF
30390 #define HAVE_U_INT64_T 1
30391 _ACEOF
30392
30393
30394 else
30395   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30396 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30397    { (exit 1); exit 1; }; }
30398 fi
30399
30400 fi
30401
30402
30403
30404
30405
30406
30407
30408
30409
30410
30411 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30412 do
30413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30414 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30417   echo $ECHO_N "(cached) $ECHO_C" >&6
30418 else
30419   cat >conftest.$ac_ext <<_ACEOF
30420 /* confdefs.h.  */
30421 _ACEOF
30422 cat confdefs.h >>conftest.$ac_ext
30423 cat >>conftest.$ac_ext <<_ACEOF
30424 /* end confdefs.h.  */
30425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30427 #define $ac_func innocuous_$ac_func
30428
30429 /* System header to define __stub macros and hopefully few prototypes,
30430     which can conflict with char $ac_func (); below.
30431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30432     <limits.h> exists even on freestanding compilers.  */
30433
30434 #ifdef __STDC__
30435 # include <limits.h>
30436 #else
30437 # include <assert.h>
30438 #endif
30439
30440 #undef $ac_func
30441
30442 /* Override any GCC internal prototype to avoid an error.
30443    Use char because int might match the return type of a GCC
30444    builtin and then its argument prototype would still apply.  */
30445 #ifdef __cplusplus
30446 extern "C"
30447 #endif
30448 char $ac_func ();
30449 /* The GNU C library defines this for functions which it implements
30450     to always fail with ENOSYS.  Some functions are actually named
30451     something starting with __ and the normal name is an alias.  */
30452 #if defined __stub_$ac_func || defined __stub___$ac_func
30453 choke me
30454 #endif
30455
30456 int
30457 main ()
30458 {
30459 return $ac_func ();
30460   ;
30461   return 0;
30462 }
30463 _ACEOF
30464 rm -f conftest.$ac_objext conftest$ac_exeext
30465 if { (ac_try="$ac_link"
30466 case "(($ac_try" in
30467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30468   *) ac_try_echo=$ac_try;;
30469 esac
30470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30471   (eval "$ac_link") 2>conftest.er1
30472   ac_status=$?
30473   grep -v '^ *+' conftest.er1 >conftest.err
30474   rm -f conftest.er1
30475   cat conftest.err >&5
30476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477   (exit $ac_status); } &&
30478          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30479   { (case "(($ac_try" in
30480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30481   *) ac_try_echo=$ac_try;;
30482 esac
30483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30484   (eval "$ac_try") 2>&5
30485   ac_status=$?
30486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487   (exit $ac_status); }; } &&
30488          { ac_try='test -s conftest$ac_exeext'
30489   { (case "(($ac_try" in
30490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491   *) ac_try_echo=$ac_try;;
30492 esac
30493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494   (eval "$ac_try") 2>&5
30495   ac_status=$?
30496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497   (exit $ac_status); }; }; then
30498   eval "$as_ac_var=yes"
30499 else
30500   echo "$as_me: failed program was:" >&5
30501 sed 's/^/| /' conftest.$ac_ext >&5
30502
30503         eval "$as_ac_var=no"
30504 fi
30505
30506 rm -f core conftest.err conftest.$ac_objext \
30507       conftest$ac_exeext conftest.$ac_ext
30508 fi
30509 ac_res=`eval echo '${'$as_ac_var'}'`
30510                { echo "$as_me:$LINENO: result: $ac_res" >&5
30511 echo "${ECHO_T}$ac_res" >&6; }
30512 if test `eval echo '${'$as_ac_var'}'` = yes; then
30513   cat >>confdefs.h <<_ACEOF
30514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30515 _ACEOF
30516
30517 fi
30518 done
30519
30520
30521
30522
30523
30524 for ac_func in powf fmodf strtof round
30525 do
30526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30530   echo $ECHO_N "(cached) $ECHO_C" >&6
30531 else
30532   cat >conftest.$ac_ext <<_ACEOF
30533 /* confdefs.h.  */
30534 _ACEOF
30535 cat confdefs.h >>conftest.$ac_ext
30536 cat >>conftest.$ac_ext <<_ACEOF
30537 /* end confdefs.h.  */
30538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30540 #define $ac_func innocuous_$ac_func
30541
30542 /* System header to define __stub macros and hopefully few prototypes,
30543     which can conflict with char $ac_func (); below.
30544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30545     <limits.h> exists even on freestanding compilers.  */
30546
30547 #ifdef __STDC__
30548 # include <limits.h>
30549 #else
30550 # include <assert.h>
30551 #endif
30552
30553 #undef $ac_func
30554
30555 /* Override any GCC internal prototype to avoid an error.
30556    Use char because int might match the return type of a GCC
30557    builtin and then its argument prototype would still apply.  */
30558 #ifdef __cplusplus
30559 extern "C"
30560 #endif
30561 char $ac_func ();
30562 /* The GNU C library defines this for functions which it implements
30563     to always fail with ENOSYS.  Some functions are actually named
30564     something starting with __ and the normal name is an alias.  */
30565 #if defined __stub_$ac_func || defined __stub___$ac_func
30566 choke me
30567 #endif
30568
30569 int
30570 main ()
30571 {
30572 return $ac_func ();
30573   ;
30574   return 0;
30575 }
30576 _ACEOF
30577 rm -f conftest.$ac_objext conftest$ac_exeext
30578 if { (ac_try="$ac_link"
30579 case "(($ac_try" in
30580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30581   *) ac_try_echo=$ac_try;;
30582 esac
30583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30584   (eval "$ac_link") 2>conftest.er1
30585   ac_status=$?
30586   grep -v '^ *+' conftest.er1 >conftest.err
30587   rm -f conftest.er1
30588   cat conftest.err >&5
30589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30590   (exit $ac_status); } &&
30591          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30592   { (case "(($ac_try" in
30593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30594   *) ac_try_echo=$ac_try;;
30595 esac
30596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30597   (eval "$ac_try") 2>&5
30598   ac_status=$?
30599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600   (exit $ac_status); }; } &&
30601          { ac_try='test -s conftest$ac_exeext'
30602   { (case "(($ac_try" in
30603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30604   *) ac_try_echo=$ac_try;;
30605 esac
30606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30607   (eval "$ac_try") 2>&5
30608   ac_status=$?
30609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30610   (exit $ac_status); }; }; then
30611   eval "$as_ac_var=yes"
30612 else
30613   echo "$as_me: failed program was:" >&5
30614 sed 's/^/| /' conftest.$ac_ext >&5
30615
30616         eval "$as_ac_var=no"
30617 fi
30618
30619 rm -f core conftest.err conftest.$ac_objext \
30620       conftest$ac_exeext conftest.$ac_ext
30621 fi
30622 ac_res=`eval echo '${'$as_ac_var'}'`
30623                { echo "$as_me:$LINENO: result: $ac_res" >&5
30624 echo "${ECHO_T}$ac_res" >&6; }
30625 if test `eval echo '${'$as_ac_var'}'` = yes; then
30626   cat >>confdefs.h <<_ACEOF
30627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30628 _ACEOF
30629
30630 fi
30631 done
30632
30633
30634
30635
30636
30637
30638 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30639 do
30640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30644   echo $ECHO_N "(cached) $ECHO_C" >&6
30645 else
30646   cat >conftest.$ac_ext <<_ACEOF
30647 /* confdefs.h.  */
30648 _ACEOF
30649 cat confdefs.h >>conftest.$ac_ext
30650 cat >>conftest.$ac_ext <<_ACEOF
30651 /* end confdefs.h.  */
30652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30654 #define $ac_func innocuous_$ac_func
30655
30656 /* System header to define __stub macros and hopefully few prototypes,
30657     which can conflict with char $ac_func (); below.
30658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30659     <limits.h> exists even on freestanding compilers.  */
30660
30661 #ifdef __STDC__
30662 # include <limits.h>
30663 #else
30664 # include <assert.h>
30665 #endif
30666
30667 #undef $ac_func
30668
30669 /* Override any GCC internal prototype to avoid an error.
30670    Use char because int might match the return type of a GCC
30671    builtin and then its argument prototype would still apply.  */
30672 #ifdef __cplusplus
30673 extern "C"
30674 #endif
30675 char $ac_func ();
30676 /* The GNU C library defines this for functions which it implements
30677     to always fail with ENOSYS.  Some functions are actually named
30678     something starting with __ and the normal name is an alias.  */
30679 #if defined __stub_$ac_func || defined __stub___$ac_func
30680 choke me
30681 #endif
30682
30683 int
30684 main ()
30685 {
30686 return $ac_func ();
30687   ;
30688   return 0;
30689 }
30690 _ACEOF
30691 rm -f conftest.$ac_objext conftest$ac_exeext
30692 if { (ac_try="$ac_link"
30693 case "(($ac_try" in
30694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30695   *) ac_try_echo=$ac_try;;
30696 esac
30697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30698   (eval "$ac_link") 2>conftest.er1
30699   ac_status=$?
30700   grep -v '^ *+' conftest.er1 >conftest.err
30701   rm -f conftest.er1
30702   cat conftest.err >&5
30703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30704   (exit $ac_status); } &&
30705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30706   { (case "(($ac_try" in
30707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30708   *) ac_try_echo=$ac_try;;
30709 esac
30710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30711   (eval "$ac_try") 2>&5
30712   ac_status=$?
30713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30714   (exit $ac_status); }; } &&
30715          { ac_try='test -s conftest$ac_exeext'
30716   { (case "(($ac_try" in
30717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30718   *) ac_try_echo=$ac_try;;
30719 esac
30720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30721   (eval "$ac_try") 2>&5
30722   ac_status=$?
30723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724   (exit $ac_status); }; }; then
30725   eval "$as_ac_var=yes"
30726 else
30727   echo "$as_me: failed program was:" >&5
30728 sed 's/^/| /' conftest.$ac_ext >&5
30729
30730         eval "$as_ac_var=no"
30731 fi
30732
30733 rm -f core conftest.err conftest.$ac_objext \
30734       conftest$ac_exeext conftest.$ac_ext
30735 fi
30736 ac_res=`eval echo '${'$as_ac_var'}'`
30737                { echo "$as_me:$LINENO: result: $ac_res" >&5
30738 echo "${ECHO_T}$ac_res" >&6; }
30739 if test `eval echo '${'$as_ac_var'}'` = yes; then
30740   cat >>confdefs.h <<_ACEOF
30741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30742 _ACEOF
30743
30744 fi
30745 done
30746
30747
30748
30749
30750 for ac_func in isatty mkdtemp mkstemp
30751 do
30752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30756   echo $ECHO_N "(cached) $ECHO_C" >&6
30757 else
30758   cat >conftest.$ac_ext <<_ACEOF
30759 /* confdefs.h.  */
30760 _ACEOF
30761 cat confdefs.h >>conftest.$ac_ext
30762 cat >>conftest.$ac_ext <<_ACEOF
30763 /* end confdefs.h.  */
30764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30766 #define $ac_func innocuous_$ac_func
30767
30768 /* System header to define __stub macros and hopefully few prototypes,
30769     which can conflict with char $ac_func (); below.
30770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30771     <limits.h> exists even on freestanding compilers.  */
30772
30773 #ifdef __STDC__
30774 # include <limits.h>
30775 #else
30776 # include <assert.h>
30777 #endif
30778
30779 #undef $ac_func
30780
30781 /* Override any GCC internal prototype to avoid an error.
30782    Use char because int might match the return type of a GCC
30783    builtin and then its argument prototype would still apply.  */
30784 #ifdef __cplusplus
30785 extern "C"
30786 #endif
30787 char $ac_func ();
30788 /* The GNU C library defines this for functions which it implements
30789     to always fail with ENOSYS.  Some functions are actually named
30790     something starting with __ and the normal name is an alias.  */
30791 #if defined __stub_$ac_func || defined __stub___$ac_func
30792 choke me
30793 #endif
30794
30795 int
30796 main ()
30797 {
30798 return $ac_func ();
30799   ;
30800   return 0;
30801 }
30802 _ACEOF
30803 rm -f conftest.$ac_objext conftest$ac_exeext
30804 if { (ac_try="$ac_link"
30805 case "(($ac_try" in
30806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30807   *) ac_try_echo=$ac_try;;
30808 esac
30809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30810   (eval "$ac_link") 2>conftest.er1
30811   ac_status=$?
30812   grep -v '^ *+' conftest.er1 >conftest.err
30813   rm -f conftest.er1
30814   cat conftest.err >&5
30815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816   (exit $ac_status); } &&
30817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30818   { (case "(($ac_try" in
30819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820   *) ac_try_echo=$ac_try;;
30821 esac
30822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823   (eval "$ac_try") 2>&5
30824   ac_status=$?
30825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826   (exit $ac_status); }; } &&
30827          { ac_try='test -s conftest$ac_exeext'
30828   { (case "(($ac_try" in
30829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30830   *) ac_try_echo=$ac_try;;
30831 esac
30832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30833   (eval "$ac_try") 2>&5
30834   ac_status=$?
30835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836   (exit $ac_status); }; }; then
30837   eval "$as_ac_var=yes"
30838 else
30839   echo "$as_me: failed program was:" >&5
30840 sed 's/^/| /' conftest.$ac_ext >&5
30841
30842         eval "$as_ac_var=no"
30843 fi
30844
30845 rm -f core conftest.err conftest.$ac_objext \
30846       conftest$ac_exeext conftest.$ac_ext
30847 fi
30848 ac_res=`eval echo '${'$as_ac_var'}'`
30849                { echo "$as_me:$LINENO: result: $ac_res" >&5
30850 echo "${ECHO_T}$ac_res" >&6; }
30851 if test `eval echo '${'$as_ac_var'}'` = yes; then
30852   cat >>confdefs.h <<_ACEOF
30853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30854 _ACEOF
30855
30856 fi
30857 done
30858
30859
30860
30861
30862
30863
30864
30865
30866 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30867 do
30868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30872   echo $ECHO_N "(cached) $ECHO_C" >&6
30873 else
30874   cat >conftest.$ac_ext <<_ACEOF
30875 /* confdefs.h.  */
30876 _ACEOF
30877 cat confdefs.h >>conftest.$ac_ext
30878 cat >>conftest.$ac_ext <<_ACEOF
30879 /* end confdefs.h.  */
30880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30881    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30882 #define $ac_func innocuous_$ac_func
30883
30884 /* System header to define __stub macros and hopefully few prototypes,
30885     which can conflict with char $ac_func (); below.
30886     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30887     <limits.h> exists even on freestanding compilers.  */
30888
30889 #ifdef __STDC__
30890 # include <limits.h>
30891 #else
30892 # include <assert.h>
30893 #endif
30894
30895 #undef $ac_func
30896
30897 /* Override any GCC internal prototype to avoid an error.
30898    Use char because int might match the return type of a GCC
30899    builtin and then its argument prototype would still apply.  */
30900 #ifdef __cplusplus
30901 extern "C"
30902 #endif
30903 char $ac_func ();
30904 /* The GNU C library defines this for functions which it implements
30905     to always fail with ENOSYS.  Some functions are actually named
30906     something starting with __ and the normal name is an alias.  */
30907 #if defined __stub_$ac_func || defined __stub___$ac_func
30908 choke me
30909 #endif
30910
30911 int
30912 main ()
30913 {
30914 return $ac_func ();
30915   ;
30916   return 0;
30917 }
30918 _ACEOF
30919 rm -f conftest.$ac_objext conftest$ac_exeext
30920 if { (ac_try="$ac_link"
30921 case "(($ac_try" in
30922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30923   *) ac_try_echo=$ac_try;;
30924 esac
30925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30926   (eval "$ac_link") 2>conftest.er1
30927   ac_status=$?
30928   grep -v '^ *+' conftest.er1 >conftest.err
30929   rm -f conftest.er1
30930   cat conftest.err >&5
30931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30932   (exit $ac_status); } &&
30933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30934   { (case "(($ac_try" in
30935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30936   *) ac_try_echo=$ac_try;;
30937 esac
30938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30939   (eval "$ac_try") 2>&5
30940   ac_status=$?
30941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30942   (exit $ac_status); }; } &&
30943          { ac_try='test -s conftest$ac_exeext'
30944   { (case "(($ac_try" in
30945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30946   *) ac_try_echo=$ac_try;;
30947 esac
30948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30949   (eval "$ac_try") 2>&5
30950   ac_status=$?
30951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952   (exit $ac_status); }; }; then
30953   eval "$as_ac_var=yes"
30954 else
30955   echo "$as_me: failed program was:" >&5
30956 sed 's/^/| /' conftest.$ac_ext >&5
30957
30958         eval "$as_ac_var=no"
30959 fi
30960
30961 rm -f core conftest.err conftest.$ac_objext \
30962       conftest$ac_exeext conftest.$ac_ext
30963 fi
30964 ac_res=`eval echo '${'$as_ac_var'}'`
30965                { echo "$as_me:$LINENO: result: $ac_res" >&5
30966 echo "${ECHO_T}$ac_res" >&6; }
30967 if test `eval echo '${'$as_ac_var'}'` = yes; then
30968   cat >>confdefs.h <<_ACEOF
30969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30970 _ACEOF
30971
30972 fi
30973 done
30974
30975
30976
30977
30978
30979 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30980 do
30981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30985   echo $ECHO_N "(cached) $ECHO_C" >&6
30986 else
30987   cat >conftest.$ac_ext <<_ACEOF
30988 /* confdefs.h.  */
30989 _ACEOF
30990 cat confdefs.h >>conftest.$ac_ext
30991 cat >>conftest.$ac_ext <<_ACEOF
30992 /* end confdefs.h.  */
30993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30995 #define $ac_func innocuous_$ac_func
30996
30997 /* System header to define __stub macros and hopefully few prototypes,
30998     which can conflict with char $ac_func (); below.
30999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31000     <limits.h> exists even on freestanding compilers.  */
31001
31002 #ifdef __STDC__
31003 # include <limits.h>
31004 #else
31005 # include <assert.h>
31006 #endif
31007
31008 #undef $ac_func
31009
31010 /* Override any GCC internal prototype to avoid an error.
31011    Use char because int might match the return type of a GCC
31012    builtin and then its argument prototype would still apply.  */
31013 #ifdef __cplusplus
31014 extern "C"
31015 #endif
31016 char $ac_func ();
31017 /* The GNU C library defines this for functions which it implements
31018     to always fail with ENOSYS.  Some functions are actually named
31019     something starting with __ and the normal name is an alias.  */
31020 #if defined __stub_$ac_func || defined __stub___$ac_func
31021 choke me
31022 #endif
31023
31024 int
31025 main ()
31026 {
31027 return $ac_func ();
31028   ;
31029   return 0;
31030 }
31031 _ACEOF
31032 rm -f conftest.$ac_objext conftest$ac_exeext
31033 if { (ac_try="$ac_link"
31034 case "(($ac_try" in
31035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31036   *) ac_try_echo=$ac_try;;
31037 esac
31038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31039   (eval "$ac_link") 2>conftest.er1
31040   ac_status=$?
31041   grep -v '^ *+' conftest.er1 >conftest.err
31042   rm -f conftest.er1
31043   cat conftest.err >&5
31044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045   (exit $ac_status); } &&
31046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31047   { (case "(($ac_try" in
31048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31049   *) ac_try_echo=$ac_try;;
31050 esac
31051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31052   (eval "$ac_try") 2>&5
31053   ac_status=$?
31054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31055   (exit $ac_status); }; } &&
31056          { ac_try='test -s conftest$ac_exeext'
31057   { (case "(($ac_try" in
31058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31059   *) ac_try_echo=$ac_try;;
31060 esac
31061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31062   (eval "$ac_try") 2>&5
31063   ac_status=$?
31064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065   (exit $ac_status); }; }; then
31066   eval "$as_ac_var=yes"
31067 else
31068   echo "$as_me: failed program was:" >&5
31069 sed 's/^/| /' conftest.$ac_ext >&5
31070
31071         eval "$as_ac_var=no"
31072 fi
31073
31074 rm -f core conftest.err conftest.$ac_objext \
31075       conftest$ac_exeext conftest.$ac_ext
31076 fi
31077 ac_res=`eval echo '${'$as_ac_var'}'`
31078                { echo "$as_me:$LINENO: result: $ac_res" >&5
31079 echo "${ECHO_T}$ac_res" >&6; }
31080 if test `eval echo '${'$as_ac_var'}'` = yes; then
31081   cat >>confdefs.h <<_ACEOF
31082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31083 _ACEOF
31084
31085 fi
31086 done
31087
31088
31089
31090
31091
31092 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31093 do
31094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31095 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31098   echo $ECHO_N "(cached) $ECHO_C" >&6
31099 else
31100   cat >conftest.$ac_ext <<_ACEOF
31101 /* confdefs.h.  */
31102 _ACEOF
31103 cat confdefs.h >>conftest.$ac_ext
31104 cat >>conftest.$ac_ext <<_ACEOF
31105 /* end confdefs.h.  */
31106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31108 #define $ac_func innocuous_$ac_func
31109
31110 /* System header to define __stub macros and hopefully few prototypes,
31111     which can conflict with char $ac_func (); below.
31112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31113     <limits.h> exists even on freestanding compilers.  */
31114
31115 #ifdef __STDC__
31116 # include <limits.h>
31117 #else
31118 # include <assert.h>
31119 #endif
31120
31121 #undef $ac_func
31122
31123 /* Override any GCC internal prototype to avoid an error.
31124    Use char because int might match the return type of a GCC
31125    builtin and then its argument prototype would still apply.  */
31126 #ifdef __cplusplus
31127 extern "C"
31128 #endif
31129 char $ac_func ();
31130 /* The GNU C library defines this for functions which it implements
31131     to always fail with ENOSYS.  Some functions are actually named
31132     something starting with __ and the normal name is an alias.  */
31133 #if defined __stub_$ac_func || defined __stub___$ac_func
31134 choke me
31135 #endif
31136
31137 int
31138 main ()
31139 {
31140 return $ac_func ();
31141   ;
31142   return 0;
31143 }
31144 _ACEOF
31145 rm -f conftest.$ac_objext conftest$ac_exeext
31146 if { (ac_try="$ac_link"
31147 case "(($ac_try" in
31148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31149   *) ac_try_echo=$ac_try;;
31150 esac
31151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31152   (eval "$ac_link") 2>conftest.er1
31153   ac_status=$?
31154   grep -v '^ *+' conftest.er1 >conftest.err
31155   rm -f conftest.er1
31156   cat conftest.err >&5
31157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158   (exit $ac_status); } &&
31159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31160   { (case "(($ac_try" in
31161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31162   *) ac_try_echo=$ac_try;;
31163 esac
31164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31165   (eval "$ac_try") 2>&5
31166   ac_status=$?
31167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168   (exit $ac_status); }; } &&
31169          { ac_try='test -s conftest$ac_exeext'
31170   { (case "(($ac_try" in
31171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31172   *) ac_try_echo=$ac_try;;
31173 esac
31174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31175   (eval "$ac_try") 2>&5
31176   ac_status=$?
31177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178   (exit $ac_status); }; }; then
31179   eval "$as_ac_var=yes"
31180 else
31181   echo "$as_me: failed program was:" >&5
31182 sed 's/^/| /' conftest.$ac_ext >&5
31183
31184         eval "$as_ac_var=no"
31185 fi
31186
31187 rm -f core conftest.err conftest.$ac_objext \
31188       conftest$ac_exeext conftest.$ac_ext
31189 fi
31190 ac_res=`eval echo '${'$as_ac_var'}'`
31191                { echo "$as_me:$LINENO: result: $ac_res" >&5
31192 echo "${ECHO_T}$ac_res" >&6; }
31193 if test `eval echo '${'$as_ac_var'}'` = yes; then
31194   cat >>confdefs.h <<_ACEOF
31195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31196 _ACEOF
31197
31198 fi
31199 done
31200
31201 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31202 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31203 if test "${llvm_cv_c_printf_a+set}" = set; then
31204   echo $ECHO_N "(cached) $ECHO_C" >&6
31205 else
31206   ac_ext=c
31207 ac_cpp='$CPP $CPPFLAGS'
31208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31211
31212  if test "$cross_compiling" = yes; then
31213   llvmac_cv_c_printf_a=no
31214 else
31215   cat >conftest.$ac_ext <<_ACEOF
31216
31217   /* confdefs.h.  */
31218 _ACEOF
31219 cat confdefs.h >>conftest.$ac_ext
31220 cat >>conftest.$ac_ext <<_ACEOF
31221 /* end confdefs.h.  */
31222
31223 #include <stdio.h>
31224 #include <stdlib.h>
31225
31226 int
31227 main ()
31228 {
31229
31230 volatile double A, B;
31231 char Buffer[100];
31232 A = 1;
31233 A /= 10.0;
31234 sprintf(Buffer, "%a", A);
31235 B = atof(Buffer);
31236 if (A != B)
31237   return (1);
31238 if (A != 0x1.999999999999ap-4)
31239   return (1);
31240 return (0);
31241   ;
31242   return 0;
31243 }
31244 _ACEOF
31245 rm -f conftest$ac_exeext
31246 if { (ac_try="$ac_link"
31247 case "(($ac_try" in
31248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31249   *) ac_try_echo=$ac_try;;
31250 esac
31251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31252   (eval "$ac_link") 2>&5
31253   ac_status=$?
31254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31255   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31256   { (case "(($ac_try" in
31257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31258   *) ac_try_echo=$ac_try;;
31259 esac
31260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31261   (eval "$ac_try") 2>&5
31262   ac_status=$?
31263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31264   (exit $ac_status); }; }; then
31265   llvm_cv_c_printf_a=yes
31266 else
31267   echo "$as_me: program exited with status $ac_status" >&5
31268 echo "$as_me: failed program was:" >&5
31269 sed 's/^/| /' conftest.$ac_ext >&5
31270
31271 ( exit $ac_status )
31272 llvmac_cv_c_printf_a=no
31273 fi
31274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31275 fi
31276
31277
31278  ac_ext=c
31279 ac_cpp='$CPP $CPPFLAGS'
31280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31283
31284 fi
31285 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31286 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31287  if test "$llvm_cv_c_printf_a" = "yes"; then
31288
31289 cat >>confdefs.h <<\_ACEOF
31290 #define HAVE_PRINTF_A 1
31291 _ACEOF
31292
31293  fi
31294
31295 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31296 # for constant arguments.  Useless!
31297 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31298 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31299 if test "${ac_cv_working_alloca_h+set}" = set; then
31300   echo $ECHO_N "(cached) $ECHO_C" >&6
31301 else
31302   cat >conftest.$ac_ext <<_ACEOF
31303 /* confdefs.h.  */
31304 _ACEOF
31305 cat confdefs.h >>conftest.$ac_ext
31306 cat >>conftest.$ac_ext <<_ACEOF
31307 /* end confdefs.h.  */
31308 #include <alloca.h>
31309 int
31310 main ()
31311 {
31312 char *p = (char *) alloca (2 * sizeof (int));
31313                           if (p) return 0;
31314   ;
31315   return 0;
31316 }
31317 _ACEOF
31318 rm -f conftest.$ac_objext conftest$ac_exeext
31319 if { (ac_try="$ac_link"
31320 case "(($ac_try" in
31321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31322   *) ac_try_echo=$ac_try;;
31323 esac
31324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31325   (eval "$ac_link") 2>conftest.er1
31326   ac_status=$?
31327   grep -v '^ *+' conftest.er1 >conftest.err
31328   rm -f conftest.er1
31329   cat conftest.err >&5
31330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331   (exit $ac_status); } &&
31332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31333   { (case "(($ac_try" in
31334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31335   *) ac_try_echo=$ac_try;;
31336 esac
31337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31338   (eval "$ac_try") 2>&5
31339   ac_status=$?
31340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31341   (exit $ac_status); }; } &&
31342          { ac_try='test -s conftest$ac_exeext'
31343   { (case "(($ac_try" in
31344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31345   *) ac_try_echo=$ac_try;;
31346 esac
31347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31348   (eval "$ac_try") 2>&5
31349   ac_status=$?
31350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351   (exit $ac_status); }; }; then
31352   ac_cv_working_alloca_h=yes
31353 else
31354   echo "$as_me: failed program was:" >&5
31355 sed 's/^/| /' conftest.$ac_ext >&5
31356
31357         ac_cv_working_alloca_h=no
31358 fi
31359
31360 rm -f core conftest.err conftest.$ac_objext \
31361       conftest$ac_exeext conftest.$ac_ext
31362 fi
31363 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31364 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31365 if test $ac_cv_working_alloca_h = yes; then
31366
31367 cat >>confdefs.h <<\_ACEOF
31368 #define HAVE_ALLOCA_H 1
31369 _ACEOF
31370
31371 fi
31372
31373 { echo "$as_me:$LINENO: checking for alloca" >&5
31374 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31375 if test "${ac_cv_func_alloca_works+set}" = set; then
31376   echo $ECHO_N "(cached) $ECHO_C" >&6
31377 else
31378   cat >conftest.$ac_ext <<_ACEOF
31379 /* confdefs.h.  */
31380 _ACEOF
31381 cat confdefs.h >>conftest.$ac_ext
31382 cat >>conftest.$ac_ext <<_ACEOF
31383 /* end confdefs.h.  */
31384 #ifdef __GNUC__
31385 # define alloca __builtin_alloca
31386 #else
31387 # ifdef _MSC_VER
31388 #  include <malloc.h>
31389 #  define alloca _alloca
31390 # else
31391 #  if HAVE_ALLOCA_H
31392 #   include <alloca.h>
31393 #  else
31394 #   ifdef _AIX
31395  #pragma alloca
31396 #   else
31397 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31398 char *alloca ();
31399 #    endif
31400 #   endif
31401 #  endif
31402 # endif
31403 #endif
31404
31405 int
31406 main ()
31407 {
31408 char *p = (char *) alloca (1);
31409                                     if (p) return 0;
31410   ;
31411   return 0;
31412 }
31413 _ACEOF
31414 rm -f conftest.$ac_objext conftest$ac_exeext
31415 if { (ac_try="$ac_link"
31416 case "(($ac_try" in
31417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418   *) ac_try_echo=$ac_try;;
31419 esac
31420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421   (eval "$ac_link") 2>conftest.er1
31422   ac_status=$?
31423   grep -v '^ *+' conftest.er1 >conftest.err
31424   rm -f conftest.er1
31425   cat conftest.err >&5
31426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427   (exit $ac_status); } &&
31428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31429   { (case "(($ac_try" in
31430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431   *) ac_try_echo=$ac_try;;
31432 esac
31433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434   (eval "$ac_try") 2>&5
31435   ac_status=$?
31436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437   (exit $ac_status); }; } &&
31438          { ac_try='test -s conftest$ac_exeext'
31439   { (case "(($ac_try" in
31440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31441   *) ac_try_echo=$ac_try;;
31442 esac
31443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31444   (eval "$ac_try") 2>&5
31445   ac_status=$?
31446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447   (exit $ac_status); }; }; then
31448   ac_cv_func_alloca_works=yes
31449 else
31450   echo "$as_me: failed program was:" >&5
31451 sed 's/^/| /' conftest.$ac_ext >&5
31452
31453         ac_cv_func_alloca_works=no
31454 fi
31455
31456 rm -f core conftest.err conftest.$ac_objext \
31457       conftest$ac_exeext conftest.$ac_ext
31458 fi
31459 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31460 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31461
31462 if test $ac_cv_func_alloca_works = yes; then
31463
31464 cat >>confdefs.h <<\_ACEOF
31465 #define HAVE_ALLOCA 1
31466 _ACEOF
31467
31468 else
31469   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31470 # that cause trouble.  Some versions do not even contain alloca or
31471 # contain a buggy version.  If you still want to use their alloca,
31472 # use ar to extract alloca.o from them instead of compiling alloca.c.
31473
31474 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31475
31476 cat >>confdefs.h <<\_ACEOF
31477 #define C_ALLOCA 1
31478 _ACEOF
31479
31480
31481 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31482 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31483 if test "${ac_cv_os_cray+set}" = set; then
31484   echo $ECHO_N "(cached) $ECHO_C" >&6
31485 else
31486   cat >conftest.$ac_ext <<_ACEOF
31487 /* confdefs.h.  */
31488 _ACEOF
31489 cat confdefs.h >>conftest.$ac_ext
31490 cat >>conftest.$ac_ext <<_ACEOF
31491 /* end confdefs.h.  */
31492 #if defined CRAY && ! defined CRAY2
31493 webecray
31494 #else
31495 wenotbecray
31496 #endif
31497
31498 _ACEOF
31499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31500   $EGREP "webecray" >/dev/null 2>&1; then
31501   ac_cv_os_cray=yes
31502 else
31503   ac_cv_os_cray=no
31504 fi
31505 rm -f conftest*
31506
31507 fi
31508 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31509 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31510 if test $ac_cv_os_cray = yes; then
31511   for ac_func in _getb67 GETB67 getb67; do
31512     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31513 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31515 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31516   echo $ECHO_N "(cached) $ECHO_C" >&6
31517 else
31518   cat >conftest.$ac_ext <<_ACEOF
31519 /* confdefs.h.  */
31520 _ACEOF
31521 cat confdefs.h >>conftest.$ac_ext
31522 cat >>conftest.$ac_ext <<_ACEOF
31523 /* end confdefs.h.  */
31524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31525    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31526 #define $ac_func innocuous_$ac_func
31527
31528 /* System header to define __stub macros and hopefully few prototypes,
31529     which can conflict with char $ac_func (); below.
31530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31531     <limits.h> exists even on freestanding compilers.  */
31532
31533 #ifdef __STDC__
31534 # include <limits.h>
31535 #else
31536 # include <assert.h>
31537 #endif
31538
31539 #undef $ac_func
31540
31541 /* Override any GCC internal prototype to avoid an error.
31542    Use char because int might match the return type of a GCC
31543    builtin and then its argument prototype would still apply.  */
31544 #ifdef __cplusplus
31545 extern "C"
31546 #endif
31547 char $ac_func ();
31548 /* The GNU C library defines this for functions which it implements
31549     to always fail with ENOSYS.  Some functions are actually named
31550     something starting with __ and the normal name is an alias.  */
31551 #if defined __stub_$ac_func || defined __stub___$ac_func
31552 choke me
31553 #endif
31554
31555 int
31556 main ()
31557 {
31558 return $ac_func ();
31559   ;
31560   return 0;
31561 }
31562 _ACEOF
31563 rm -f conftest.$ac_objext conftest$ac_exeext
31564 if { (ac_try="$ac_link"
31565 case "(($ac_try" in
31566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31567   *) ac_try_echo=$ac_try;;
31568 esac
31569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31570   (eval "$ac_link") 2>conftest.er1
31571   ac_status=$?
31572   grep -v '^ *+' conftest.er1 >conftest.err
31573   rm -f conftest.er1
31574   cat conftest.err >&5
31575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31576   (exit $ac_status); } &&
31577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31578   { (case "(($ac_try" in
31579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31580   *) ac_try_echo=$ac_try;;
31581 esac
31582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31583   (eval "$ac_try") 2>&5
31584   ac_status=$?
31585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586   (exit $ac_status); }; } &&
31587          { ac_try='test -s conftest$ac_exeext'
31588   { (case "(($ac_try" in
31589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31590   *) ac_try_echo=$ac_try;;
31591 esac
31592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31593   (eval "$ac_try") 2>&5
31594   ac_status=$?
31595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31596   (exit $ac_status); }; }; then
31597   eval "$as_ac_var=yes"
31598 else
31599   echo "$as_me: failed program was:" >&5
31600 sed 's/^/| /' conftest.$ac_ext >&5
31601
31602         eval "$as_ac_var=no"
31603 fi
31604
31605 rm -f core conftest.err conftest.$ac_objext \
31606       conftest$ac_exeext conftest.$ac_ext
31607 fi
31608 ac_res=`eval echo '${'$as_ac_var'}'`
31609                { echo "$as_me:$LINENO: result: $ac_res" >&5
31610 echo "${ECHO_T}$ac_res" >&6; }
31611 if test `eval echo '${'$as_ac_var'}'` = yes; then
31612
31613 cat >>confdefs.h <<_ACEOF
31614 #define CRAY_STACKSEG_END $ac_func
31615 _ACEOF
31616
31617     break
31618 fi
31619
31620   done
31621 fi
31622
31623 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31624 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31625 if test "${ac_cv_c_stack_direction+set}" = set; then
31626   echo $ECHO_N "(cached) $ECHO_C" >&6
31627 else
31628   if test "$cross_compiling" = yes; then
31629   ac_cv_c_stack_direction=0
31630 else
31631   cat >conftest.$ac_ext <<_ACEOF
31632 /* confdefs.h.  */
31633 _ACEOF
31634 cat confdefs.h >>conftest.$ac_ext
31635 cat >>conftest.$ac_ext <<_ACEOF
31636 /* end confdefs.h.  */
31637 $ac_includes_default
31638 int
31639 find_stack_direction ()
31640 {
31641   static char *addr = 0;
31642   auto char dummy;
31643   if (addr == 0)
31644     {
31645       addr = &dummy;
31646       return find_stack_direction ();
31647     }
31648   else
31649     return (&dummy > addr) ? 1 : -1;
31650 }
31651
31652 int
31653 main ()
31654 {
31655   return find_stack_direction () < 0;
31656 }
31657 _ACEOF
31658 rm -f conftest$ac_exeext
31659 if { (ac_try="$ac_link"
31660 case "(($ac_try" in
31661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31662   *) ac_try_echo=$ac_try;;
31663 esac
31664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31665   (eval "$ac_link") 2>&5
31666   ac_status=$?
31667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31669   { (case "(($ac_try" in
31670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31671   *) ac_try_echo=$ac_try;;
31672 esac
31673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31674   (eval "$ac_try") 2>&5
31675   ac_status=$?
31676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31677   (exit $ac_status); }; }; then
31678   ac_cv_c_stack_direction=1
31679 else
31680   echo "$as_me: program exited with status $ac_status" >&5
31681 echo "$as_me: failed program was:" >&5
31682 sed 's/^/| /' conftest.$ac_ext >&5
31683
31684 ( exit $ac_status )
31685 ac_cv_c_stack_direction=-1
31686 fi
31687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31688 fi
31689
31690
31691 fi
31692 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31693 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31694
31695 cat >>confdefs.h <<_ACEOF
31696 #define STACK_DIRECTION $ac_cv_c_stack_direction
31697 _ACEOF
31698
31699
31700 fi
31701
31702
31703 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31704 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31705 if test "${ac_cv_func_rand48+set}" = set; then
31706   echo $ECHO_N "(cached) $ECHO_C" >&6
31707 else
31708   ac_ext=cpp
31709 ac_cpp='$CXXCPP $CPPFLAGS'
31710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31713
31714    cat >conftest.$ac_ext <<_ACEOF
31715 /* confdefs.h.  */
31716 _ACEOF
31717 cat confdefs.h >>conftest.$ac_ext
31718 cat >>conftest.$ac_ext <<_ACEOF
31719 /* end confdefs.h.  */
31720 #include <stdlib.h>
31721 int
31722 main ()
31723 {
31724 srand48(0);lrand48();drand48();
31725   ;
31726   return 0;
31727 }
31728 _ACEOF
31729 rm -f conftest.$ac_objext
31730 if { (ac_try="$ac_compile"
31731 case "(($ac_try" in
31732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31733   *) ac_try_echo=$ac_try;;
31734 esac
31735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31736   (eval "$ac_compile") 2>conftest.er1
31737   ac_status=$?
31738   grep -v '^ *+' conftest.er1 >conftest.err
31739   rm -f conftest.er1
31740   cat conftest.err >&5
31741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31742   (exit $ac_status); } &&
31743          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31744   { (case "(($ac_try" in
31745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31746   *) ac_try_echo=$ac_try;;
31747 esac
31748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31749   (eval "$ac_try") 2>&5
31750   ac_status=$?
31751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752   (exit $ac_status); }; } &&
31753          { ac_try='test -s conftest.$ac_objext'
31754   { (case "(($ac_try" in
31755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31756   *) ac_try_echo=$ac_try;;
31757 esac
31758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31759   (eval "$ac_try") 2>&5
31760   ac_status=$?
31761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762   (exit $ac_status); }; }; then
31763   ac_cv_func_rand48=yes
31764 else
31765   echo "$as_me: failed program was:" >&5
31766 sed 's/^/| /' conftest.$ac_ext >&5
31767
31768         ac_cv_func_rand48=no
31769 fi
31770
31771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31772   ac_ext=c
31773 ac_cpp='$CPP $CPPFLAGS'
31774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31777
31778 fi
31779 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31780 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31781
31782 if test "$ac_cv_func_rand48" = "yes" ; then
31783
31784 cat >>confdefs.h <<\_ACEOF
31785 #define HAVE_RAND48 1
31786 _ACEOF
31787
31788 fi
31789
31790
31791 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31792 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31793 if test "${ac_cv_cxx_namespaces+set}" = set; then
31794   echo $ECHO_N "(cached) $ECHO_C" >&6
31795 else
31796   ac_ext=cpp
31797 ac_cpp='$CXXCPP $CPPFLAGS'
31798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31801
31802  cat >conftest.$ac_ext <<_ACEOF
31803 /* confdefs.h.  */
31804 _ACEOF
31805 cat confdefs.h >>conftest.$ac_ext
31806 cat >>conftest.$ac_ext <<_ACEOF
31807 /* end confdefs.h.  */
31808 namespace Outer { namespace Inner { int i = 0; }}
31809 int
31810 main ()
31811 {
31812 using namespace Outer::Inner; return i;
31813   ;
31814   return 0;
31815 }
31816 _ACEOF
31817 rm -f conftest.$ac_objext
31818 if { (ac_try="$ac_compile"
31819 case "(($ac_try" in
31820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31821   *) ac_try_echo=$ac_try;;
31822 esac
31823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31824   (eval "$ac_compile") 2>conftest.er1
31825   ac_status=$?
31826   grep -v '^ *+' conftest.er1 >conftest.err
31827   rm -f conftest.er1
31828   cat conftest.err >&5
31829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830   (exit $ac_status); } &&
31831          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31832   { (case "(($ac_try" in
31833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31834   *) ac_try_echo=$ac_try;;
31835 esac
31836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31837   (eval "$ac_try") 2>&5
31838   ac_status=$?
31839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840   (exit $ac_status); }; } &&
31841          { ac_try='test -s conftest.$ac_objext'
31842   { (case "(($ac_try" in
31843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31844   *) ac_try_echo=$ac_try;;
31845 esac
31846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847   (eval "$ac_try") 2>&5
31848   ac_status=$?
31849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850   (exit $ac_status); }; }; then
31851   ac_cv_cxx_namespaces=yes
31852 else
31853   echo "$as_me: failed program was:" >&5
31854 sed 's/^/| /' conftest.$ac_ext >&5
31855
31856         ac_cv_cxx_namespaces=no
31857 fi
31858
31859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31860  ac_ext=c
31861 ac_cpp='$CPP $CPPFLAGS'
31862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31865
31866
31867 fi
31868 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31869 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31870 if test "$ac_cv_cxx_namespaces" = yes; then
31871
31872 cat >>confdefs.h <<\_ACEOF
31873 #define HAVE_NAMESPACES
31874 _ACEOF
31875
31876 fi
31877
31878 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31879 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31880 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31881   echo $ECHO_N "(cached) $ECHO_C" >&6
31882 else
31883
31884   ac_ext=cpp
31885 ac_cpp='$CXXCPP $CPPFLAGS'
31886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31889
31890   cat >conftest.$ac_ext <<_ACEOF
31891 /* confdefs.h.  */
31892 _ACEOF
31893 cat confdefs.h >>conftest.$ac_ext
31894 cat >>conftest.$ac_ext <<_ACEOF
31895 /* end confdefs.h.  */
31896 #include <ext/hash_map>
31897 #ifdef HAVE_NAMESPACES
31898 using namespace std;
31899 #endif
31900 int
31901 main ()
31902 {
31903 hash_map<int, int> t;
31904   ;
31905   return 0;
31906 }
31907 _ACEOF
31908 rm -f conftest.$ac_objext
31909 if { (ac_try="$ac_compile"
31910 case "(($ac_try" in
31911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31912   *) ac_try_echo=$ac_try;;
31913 esac
31914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31915   (eval "$ac_compile") 2>conftest.er1
31916   ac_status=$?
31917   grep -v '^ *+' conftest.er1 >conftest.err
31918   rm -f conftest.er1
31919   cat conftest.err >&5
31920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921   (exit $ac_status); } &&
31922          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31923   { (case "(($ac_try" in
31924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31925   *) ac_try_echo=$ac_try;;
31926 esac
31927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31928   (eval "$ac_try") 2>&5
31929   ac_status=$?
31930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931   (exit $ac_status); }; } &&
31932          { ac_try='test -s conftest.$ac_objext'
31933   { (case "(($ac_try" in
31934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31935   *) ac_try_echo=$ac_try;;
31936 esac
31937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31938   (eval "$ac_try") 2>&5
31939   ac_status=$?
31940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941   (exit $ac_status); }; }; then
31942   ac_cv_cxx_have_std_ext_hash_map=yes
31943 else
31944   echo "$as_me: failed program was:" >&5
31945 sed 's/^/| /' conftest.$ac_ext >&5
31946
31947         ac_cv_cxx_have_std_ext_hash_map=no
31948 fi
31949
31950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31951   ac_ext=c
31952 ac_cpp='$CPP $CPPFLAGS'
31953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31956
31957 fi
31958 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31959 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31960  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31961  then
31962
31963 cat >>confdefs.h <<\_ACEOF
31964 #define HAVE_STD_EXT_HASH_MAP 1
31965 _ACEOF
31966
31967  else
31968
31969 cat >>confdefs.h <<\_ACEOF
31970 #define HAVE_STD_EXT_HASH_MAP 0
31971 _ACEOF
31972
31973  fi
31974
31975  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31976 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31977 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31978   echo $ECHO_N "(cached) $ECHO_C" >&6
31979 else
31980
31981   ac_ext=cpp
31982 ac_cpp='$CXXCPP $CPPFLAGS'
31983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31986
31987   cat >conftest.$ac_ext <<_ACEOF
31988 /* confdefs.h.  */
31989 _ACEOF
31990 cat confdefs.h >>conftest.$ac_ext
31991 cat >>conftest.$ac_ext <<_ACEOF
31992 /* end confdefs.h.  */
31993 #include <ext/hash_map>
31994 #ifdef HAVE_NAMESPACES
31995 using namespace __gnu_cxx;
31996 #endif
31997 int
31998 main ()
31999 {
32000 hash_map<int,int> t;
32001   ;
32002   return 0;
32003 }
32004 _ACEOF
32005 rm -f conftest.$ac_objext
32006 if { (ac_try="$ac_compile"
32007 case "(($ac_try" in
32008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009   *) ac_try_echo=$ac_try;;
32010 esac
32011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012   (eval "$ac_compile") 2>conftest.er1
32013   ac_status=$?
32014   grep -v '^ *+' conftest.er1 >conftest.err
32015   rm -f conftest.er1
32016   cat conftest.err >&5
32017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018   (exit $ac_status); } &&
32019          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32020   { (case "(($ac_try" in
32021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32022   *) ac_try_echo=$ac_try;;
32023 esac
32024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32025   (eval "$ac_try") 2>&5
32026   ac_status=$?
32027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028   (exit $ac_status); }; } &&
32029          { ac_try='test -s conftest.$ac_objext'
32030   { (case "(($ac_try" in
32031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32032   *) ac_try_echo=$ac_try;;
32033 esac
32034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32035   (eval "$ac_try") 2>&5
32036   ac_status=$?
32037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038   (exit $ac_status); }; }; then
32039   ac_cv_cxx_have_gnu_ext_hash_map=yes
32040 else
32041   echo "$as_me: failed program was:" >&5
32042 sed 's/^/| /' conftest.$ac_ext >&5
32043
32044         ac_cv_cxx_have_gnu_ext_hash_map=no
32045 fi
32046
32047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32048   ac_ext=c
32049 ac_cpp='$CPP $CPPFLAGS'
32050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32053
32054 fi
32055 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32056 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32057  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32058  then
32059
32060 cat >>confdefs.h <<\_ACEOF
32061 #define HAVE_GNU_EXT_HASH_MAP 1
32062 _ACEOF
32063
32064  else
32065
32066 cat >>confdefs.h <<\_ACEOF
32067 #define HAVE_GNU_EXT_HASH_MAP 0
32068 _ACEOF
32069
32070  fi
32071
32072  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32073 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32074 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32075   echo $ECHO_N "(cached) $ECHO_C" >&6
32076 else
32077
32078   ac_ext=cpp
32079 ac_cpp='$CXXCPP $CPPFLAGS'
32080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32083
32084   cat >conftest.$ac_ext <<_ACEOF
32085 /* confdefs.h.  */
32086 _ACEOF
32087 cat confdefs.h >>conftest.$ac_ext
32088 cat >>conftest.$ac_ext <<_ACEOF
32089 /* end confdefs.h.  */
32090 #include <hash_map>
32091 int
32092 main ()
32093 {
32094 hash_map<int,int> t;
32095   ;
32096   return 0;
32097 }
32098 _ACEOF
32099 rm -f conftest.$ac_objext
32100 if { (ac_try="$ac_compile"
32101 case "(($ac_try" in
32102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32103   *) ac_try_echo=$ac_try;;
32104 esac
32105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32106   (eval "$ac_compile") 2>conftest.er1
32107   ac_status=$?
32108   grep -v '^ *+' conftest.er1 >conftest.err
32109   rm -f conftest.er1
32110   cat conftest.err >&5
32111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32112   (exit $ac_status); } &&
32113          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32114   { (case "(($ac_try" in
32115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32116   *) ac_try_echo=$ac_try;;
32117 esac
32118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32119   (eval "$ac_try") 2>&5
32120   ac_status=$?
32121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122   (exit $ac_status); }; } &&
32123          { ac_try='test -s conftest.$ac_objext'
32124   { (case "(($ac_try" in
32125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32126   *) ac_try_echo=$ac_try;;
32127 esac
32128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32129   (eval "$ac_try") 2>&5
32130   ac_status=$?
32131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32132   (exit $ac_status); }; }; then
32133   ac_cv_cxx_have_global_hash_map=yes
32134 else
32135   echo "$as_me: failed program was:" >&5
32136 sed 's/^/| /' conftest.$ac_ext >&5
32137
32138         ac_cv_cxx_have_global_hash_map=no
32139 fi
32140
32141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32142   ac_ext=c
32143 ac_cpp='$CPP $CPPFLAGS'
32144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32147
32148 fi
32149 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32150 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32151  if test "$ac_cv_cxx_have_global_hash_map" = yes
32152  then
32153
32154 cat >>confdefs.h <<\_ACEOF
32155 #define HAVE_GLOBAL_HASH_MAP 1
32156 _ACEOF
32157
32158  else
32159
32160 cat >>confdefs.h <<\_ACEOF
32161 #define HAVE_GLOBAL_HASH_MAP 0
32162 _ACEOF
32163
32164  fi
32165
32166 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32167 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32168 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32169   echo $ECHO_N "(cached) $ECHO_C" >&6
32170 else
32171
32172   ac_ext=cpp
32173 ac_cpp='$CXXCPP $CPPFLAGS'
32174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32177
32178   cat >conftest.$ac_ext <<_ACEOF
32179 /* confdefs.h.  */
32180 _ACEOF
32181 cat confdefs.h >>conftest.$ac_ext
32182 cat >>conftest.$ac_ext <<_ACEOF
32183 /* end confdefs.h.  */
32184 #include <ext/hash_set>
32185 #ifdef HAVE_NAMESPACES
32186 using namespace std;
32187 #endif
32188 int
32189 main ()
32190 {
32191 hash_set<int> t;
32192   ;
32193   return 0;
32194 }
32195 _ACEOF
32196 rm -f conftest.$ac_objext
32197 if { (ac_try="$ac_compile"
32198 case "(($ac_try" in
32199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32200   *) ac_try_echo=$ac_try;;
32201 esac
32202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32203   (eval "$ac_compile") 2>conftest.er1
32204   ac_status=$?
32205   grep -v '^ *+' conftest.er1 >conftest.err
32206   rm -f conftest.er1
32207   cat conftest.err >&5
32208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209   (exit $ac_status); } &&
32210          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32211   { (case "(($ac_try" in
32212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32213   *) ac_try_echo=$ac_try;;
32214 esac
32215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32216   (eval "$ac_try") 2>&5
32217   ac_status=$?
32218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219   (exit $ac_status); }; } &&
32220          { ac_try='test -s conftest.$ac_objext'
32221   { (case "(($ac_try" in
32222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32223   *) ac_try_echo=$ac_try;;
32224 esac
32225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32226   (eval "$ac_try") 2>&5
32227   ac_status=$?
32228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32229   (exit $ac_status); }; }; then
32230   ac_cv_cxx_have_std_ext_hash_set=yes
32231 else
32232   echo "$as_me: failed program was:" >&5
32233 sed 's/^/| /' conftest.$ac_ext >&5
32234
32235         ac_cv_cxx_have_std_ext_hash_set=no
32236 fi
32237
32238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32239   ac_ext=c
32240 ac_cpp='$CPP $CPPFLAGS'
32241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32244
32245 fi
32246 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32247 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32248  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32249  then
32250
32251 cat >>confdefs.h <<\_ACEOF
32252 #define HAVE_STD_EXT_HASH_SET 1
32253 _ACEOF
32254
32255  else
32256
32257 cat >>confdefs.h <<\_ACEOF
32258 #define HAVE_STD_EXT_HASH_SET 0
32259 _ACEOF
32260
32261  fi
32262
32263  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32264 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32265 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32266   echo $ECHO_N "(cached) $ECHO_C" >&6
32267 else
32268
32269   ac_ext=cpp
32270 ac_cpp='$CXXCPP $CPPFLAGS'
32271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32274
32275   cat >conftest.$ac_ext <<_ACEOF
32276 /* confdefs.h.  */
32277 _ACEOF
32278 cat confdefs.h >>conftest.$ac_ext
32279 cat >>conftest.$ac_ext <<_ACEOF
32280 /* end confdefs.h.  */
32281 #include <ext/hash_set>
32282 #ifdef HAVE_NAMESPACES
32283 using namespace __gnu_cxx;
32284 #endif
32285 int
32286 main ()
32287 {
32288 hash_set<int> t;
32289   ;
32290   return 0;
32291 }
32292 _ACEOF
32293 rm -f conftest.$ac_objext
32294 if { (ac_try="$ac_compile"
32295 case "(($ac_try" in
32296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32297   *) ac_try_echo=$ac_try;;
32298 esac
32299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32300   (eval "$ac_compile") 2>conftest.er1
32301   ac_status=$?
32302   grep -v '^ *+' conftest.er1 >conftest.err
32303   rm -f conftest.er1
32304   cat conftest.err >&5
32305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306   (exit $ac_status); } &&
32307          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32308   { (case "(($ac_try" in
32309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32310   *) ac_try_echo=$ac_try;;
32311 esac
32312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32313   (eval "$ac_try") 2>&5
32314   ac_status=$?
32315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316   (exit $ac_status); }; } &&
32317          { ac_try='test -s conftest.$ac_objext'
32318   { (case "(($ac_try" in
32319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32320   *) ac_try_echo=$ac_try;;
32321 esac
32322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32323   (eval "$ac_try") 2>&5
32324   ac_status=$?
32325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32326   (exit $ac_status); }; }; then
32327   ac_cv_cxx_have_gnu_ext_hash_set=yes
32328 else
32329   echo "$as_me: failed program was:" >&5
32330 sed 's/^/| /' conftest.$ac_ext >&5
32331
32332         ac_cv_cxx_have_gnu_ext_hash_set=no
32333 fi
32334
32335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32336   ac_ext=c
32337 ac_cpp='$CPP $CPPFLAGS'
32338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32341
32342 fi
32343 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32344 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32345  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32346  then
32347
32348 cat >>confdefs.h <<\_ACEOF
32349 #define HAVE_GNU_EXT_HASH_SET 1
32350 _ACEOF
32351
32352  else
32353
32354 cat >>confdefs.h <<\_ACEOF
32355 #define HAVE_GNU_EXT_HASH_SET 0
32356 _ACEOF
32357
32358  fi
32359
32360  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32361 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32362 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32363   echo $ECHO_N "(cached) $ECHO_C" >&6
32364 else
32365
32366   ac_ext=cpp
32367 ac_cpp='$CXXCPP $CPPFLAGS'
32368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32371
32372   cat >conftest.$ac_ext <<_ACEOF
32373 /* confdefs.h.  */
32374 _ACEOF
32375 cat confdefs.h >>conftest.$ac_ext
32376 cat >>conftest.$ac_ext <<_ACEOF
32377 /* end confdefs.h.  */
32378 #include <hash_set>
32379 int
32380 main ()
32381 {
32382 hash_set<int> t; return 0;
32383   ;
32384   return 0;
32385 }
32386 _ACEOF
32387 rm -f conftest.$ac_objext
32388 if { (ac_try="$ac_compile"
32389 case "(($ac_try" in
32390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32391   *) ac_try_echo=$ac_try;;
32392 esac
32393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32394   (eval "$ac_compile") 2>conftest.er1
32395   ac_status=$?
32396   grep -v '^ *+' conftest.er1 >conftest.err
32397   rm -f conftest.er1
32398   cat conftest.err >&5
32399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32400   (exit $ac_status); } &&
32401          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32402   { (case "(($ac_try" in
32403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32404   *) ac_try_echo=$ac_try;;
32405 esac
32406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32407   (eval "$ac_try") 2>&5
32408   ac_status=$?
32409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410   (exit $ac_status); }; } &&
32411          { ac_try='test -s conftest.$ac_objext'
32412   { (case "(($ac_try" in
32413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32414   *) ac_try_echo=$ac_try;;
32415 esac
32416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32417   (eval "$ac_try") 2>&5
32418   ac_status=$?
32419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420   (exit $ac_status); }; }; then
32421   ac_cv_cxx_have_global_hash_set=yes
32422 else
32423   echo "$as_me: failed program was:" >&5
32424 sed 's/^/| /' conftest.$ac_ext >&5
32425
32426         ac_cv_cxx_have_global_hash_set=no
32427 fi
32428
32429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32430   ac_ext=c
32431 ac_cpp='$CPP $CPPFLAGS'
32432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32435
32436 fi
32437 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32438 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32439  if test "$ac_cv_cxx_have_global_hash_set" = yes
32440  then
32441
32442 cat >>confdefs.h <<\_ACEOF
32443 #define HAVE_GLOBAL_HASH_SET 1
32444 _ACEOF
32445
32446  else
32447
32448 cat >>confdefs.h <<\_ACEOF
32449 #define HAVE_GLOBAL_HASH_SET 0
32450 _ACEOF
32451
32452  fi
32453
32454 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32455 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32456 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32457   echo $ECHO_N "(cached) $ECHO_C" >&6
32458 else
32459
32460   ac_ext=cpp
32461 ac_cpp='$CXXCPP $CPPFLAGS'
32462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32465
32466   cat >conftest.$ac_ext <<_ACEOF
32467 /* confdefs.h.  */
32468 _ACEOF
32469 cat confdefs.h >>conftest.$ac_ext
32470 cat >>conftest.$ac_ext <<_ACEOF
32471 /* end confdefs.h.  */
32472 #include <iterator>
32473 #ifdef HAVE_NAMESPACES
32474 using namespace std;
32475 #endif
32476 int
32477 main ()
32478 {
32479 iterator<int,int,int> t; return 0;
32480   ;
32481   return 0;
32482 }
32483 _ACEOF
32484 rm -f conftest.$ac_objext
32485 if { (ac_try="$ac_compile"
32486 case "(($ac_try" in
32487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32488   *) ac_try_echo=$ac_try;;
32489 esac
32490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32491   (eval "$ac_compile") 2>conftest.er1
32492   ac_status=$?
32493   grep -v '^ *+' conftest.er1 >conftest.err
32494   rm -f conftest.er1
32495   cat conftest.err >&5
32496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32497   (exit $ac_status); } &&
32498          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32499   { (case "(($ac_try" in
32500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32501   *) ac_try_echo=$ac_try;;
32502 esac
32503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32504   (eval "$ac_try") 2>&5
32505   ac_status=$?
32506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507   (exit $ac_status); }; } &&
32508          { ac_try='test -s conftest.$ac_objext'
32509   { (case "(($ac_try" in
32510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32511   *) ac_try_echo=$ac_try;;
32512 esac
32513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32514   (eval "$ac_try") 2>&5
32515   ac_status=$?
32516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517   (exit $ac_status); }; }; then
32518   ac_cv_cxx_have_std_iterator=yes
32519 else
32520   echo "$as_me: failed program was:" >&5
32521 sed 's/^/| /' conftest.$ac_ext >&5
32522
32523         ac_cv_cxx_have_std_iterator=no
32524 fi
32525
32526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32527   ac_ext=c
32528 ac_cpp='$CPP $CPPFLAGS'
32529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32532
32533
32534 fi
32535 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32536 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32537 if test "$ac_cv_cxx_have_std_iterator" = yes
32538 then
32539
32540 cat >>confdefs.h <<\_ACEOF
32541 #define HAVE_STD_ITERATOR 1
32542 _ACEOF
32543
32544 else
32545
32546 cat >>confdefs.h <<\_ACEOF
32547 #define HAVE_STD_ITERATOR 0
32548 _ACEOF
32549
32550 fi
32551
32552 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32553 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32554 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32555   echo $ECHO_N "(cached) $ECHO_C" >&6
32556 else
32557
32558   ac_ext=cpp
32559 ac_cpp='$CXXCPP $CPPFLAGS'
32560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32563
32564   cat >conftest.$ac_ext <<_ACEOF
32565 /* confdefs.h.  */
32566 _ACEOF
32567 cat confdefs.h >>conftest.$ac_ext
32568 cat >>conftest.$ac_ext <<_ACEOF
32569 /* end confdefs.h.  */
32570 #include <iterator>
32571 #ifdef HAVE_NAMESPACES
32572 using namespace std;
32573 #endif
32574 int
32575 main ()
32576 {
32577 bidirectional_iterator<int,int> t; return 0;
32578   ;
32579   return 0;
32580 }
32581 _ACEOF
32582 rm -f conftest.$ac_objext
32583 if { (ac_try="$ac_compile"
32584 case "(($ac_try" in
32585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32586   *) ac_try_echo=$ac_try;;
32587 esac
32588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32589   (eval "$ac_compile") 2>conftest.er1
32590   ac_status=$?
32591   grep -v '^ *+' conftest.er1 >conftest.err
32592   rm -f conftest.er1
32593   cat conftest.err >&5
32594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595   (exit $ac_status); } &&
32596          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32597   { (case "(($ac_try" in
32598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32599   *) ac_try_echo=$ac_try;;
32600 esac
32601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32602   (eval "$ac_try") 2>&5
32603   ac_status=$?
32604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605   (exit $ac_status); }; } &&
32606          { ac_try='test -s conftest.$ac_objext'
32607   { (case "(($ac_try" in
32608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609   *) ac_try_echo=$ac_try;;
32610 esac
32611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612   (eval "$ac_try") 2>&5
32613   ac_status=$?
32614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615   (exit $ac_status); }; }; then
32616   ac_cv_cxx_have_bi_iterator=yes
32617 else
32618   echo "$as_me: failed program was:" >&5
32619 sed 's/^/| /' conftest.$ac_ext >&5
32620
32621         ac_cv_cxx_have_bi_iterator=no
32622 fi
32623
32624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32625   ac_ext=c
32626 ac_cpp='$CPP $CPPFLAGS'
32627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32630
32631
32632 fi
32633 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32634 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32635 if test "$ac_cv_cxx_have_bi_iterator" = yes
32636 then
32637
32638 cat >>confdefs.h <<\_ACEOF
32639 #define HAVE_BI_ITERATOR 1
32640 _ACEOF
32641
32642 else
32643
32644 cat >>confdefs.h <<\_ACEOF
32645 #define HAVE_BI_ITERATOR 0
32646 _ACEOF
32647
32648 fi
32649
32650 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32651 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32652 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32653   echo $ECHO_N "(cached) $ECHO_C" >&6
32654 else
32655
32656   ac_ext=cpp
32657 ac_cpp='$CXXCPP $CPPFLAGS'
32658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32661
32662   cat >conftest.$ac_ext <<_ACEOF
32663 /* confdefs.h.  */
32664 _ACEOF
32665 cat confdefs.h >>conftest.$ac_ext
32666 cat >>conftest.$ac_ext <<_ACEOF
32667 /* end confdefs.h.  */
32668 #include <iterator>
32669 #ifdef HAVE_NAMESPACES
32670 using namespace std;
32671 #endif
32672 int
32673 main ()
32674 {
32675 forward_iterator<int,int> t; return 0;
32676   ;
32677   return 0;
32678 }
32679 _ACEOF
32680 rm -f conftest.$ac_objext
32681 if { (ac_try="$ac_compile"
32682 case "(($ac_try" in
32683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32684   *) ac_try_echo=$ac_try;;
32685 esac
32686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32687   (eval "$ac_compile") 2>conftest.er1
32688   ac_status=$?
32689   grep -v '^ *+' conftest.er1 >conftest.err
32690   rm -f conftest.er1
32691   cat conftest.err >&5
32692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693   (exit $ac_status); } &&
32694          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32695   { (case "(($ac_try" in
32696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32697   *) ac_try_echo=$ac_try;;
32698 esac
32699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32700   (eval "$ac_try") 2>&5
32701   ac_status=$?
32702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703   (exit $ac_status); }; } &&
32704          { ac_try='test -s conftest.$ac_objext'
32705   { (case "(($ac_try" in
32706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32707   *) ac_try_echo=$ac_try;;
32708 esac
32709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32710   (eval "$ac_try") 2>&5
32711   ac_status=$?
32712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713   (exit $ac_status); }; }; then
32714   ac_cv_cxx_have_fwd_iterator=yes
32715 else
32716   echo "$as_me: failed program was:" >&5
32717 sed 's/^/| /' conftest.$ac_ext >&5
32718
32719         ac_cv_cxx_have_fwd_iterator=no
32720 fi
32721
32722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32723   ac_ext=c
32724 ac_cpp='$CPP $CPPFLAGS'
32725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32728
32729
32730 fi
32731 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32732 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32733 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32734 then
32735
32736 cat >>confdefs.h <<\_ACEOF
32737 #define HAVE_FWD_ITERATOR 1
32738 _ACEOF
32739
32740 else
32741
32742 cat >>confdefs.h <<\_ACEOF
32743 #define HAVE_FWD_ITERATOR 0
32744 _ACEOF
32745
32746 fi
32747
32748
32749 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32750 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32751 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32752   echo $ECHO_N "(cached) $ECHO_C" >&6
32753 else
32754   ac_ext=cpp
32755 ac_cpp='$CXXCPP $CPPFLAGS'
32756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32759
32760    cat >conftest.$ac_ext <<_ACEOF
32761 /* confdefs.h.  */
32762 _ACEOF
32763 cat confdefs.h >>conftest.$ac_ext
32764 cat >>conftest.$ac_ext <<_ACEOF
32765 /* end confdefs.h.  */
32766 #include <math.h>
32767 int
32768 main ()
32769 {
32770 float f; isnan(f);
32771   ;
32772   return 0;
32773 }
32774 _ACEOF
32775 rm -f conftest.$ac_objext
32776 if { (ac_try="$ac_compile"
32777 case "(($ac_try" in
32778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779   *) ac_try_echo=$ac_try;;
32780 esac
32781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782   (eval "$ac_compile") 2>conftest.er1
32783   ac_status=$?
32784   grep -v '^ *+' conftest.er1 >conftest.err
32785   rm -f conftest.er1
32786   cat conftest.err >&5
32787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788   (exit $ac_status); } &&
32789          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32790   { (case "(($ac_try" in
32791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792   *) ac_try_echo=$ac_try;;
32793 esac
32794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795   (eval "$ac_try") 2>&5
32796   ac_status=$?
32797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798   (exit $ac_status); }; } &&
32799          { ac_try='test -s conftest.$ac_objext'
32800   { (case "(($ac_try" in
32801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32802   *) ac_try_echo=$ac_try;;
32803 esac
32804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32805   (eval "$ac_try") 2>&5
32806   ac_status=$?
32807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808   (exit $ac_status); }; }; then
32809   ac_cv_func_isnan_in_math_h=yes
32810 else
32811   echo "$as_me: failed program was:" >&5
32812 sed 's/^/| /' conftest.$ac_ext >&5
32813
32814         ac_cv_func_isnan_in_math_h=no
32815 fi
32816
32817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32818   ac_ext=c
32819 ac_cpp='$CPP $CPPFLAGS'
32820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32823
32824 fi
32825 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32826 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32827
32828
32829 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32830
32831 cat >>confdefs.h <<\_ACEOF
32832 #define HAVE_ISNAN_IN_MATH_H 1
32833 _ACEOF
32834
32835 fi
32836
32837 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32838 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32839 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32840   echo $ECHO_N "(cached) $ECHO_C" >&6
32841 else
32842   ac_ext=cpp
32843 ac_cpp='$CXXCPP $CPPFLAGS'
32844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32847
32848    cat >conftest.$ac_ext <<_ACEOF
32849 /* confdefs.h.  */
32850 _ACEOF
32851 cat confdefs.h >>conftest.$ac_ext
32852 cat >>conftest.$ac_ext <<_ACEOF
32853 /* end confdefs.h.  */
32854 #include <cmath>
32855 int
32856 main ()
32857 {
32858 float f; isnan(f);
32859   ;
32860   return 0;
32861 }
32862 _ACEOF
32863 rm -f conftest.$ac_objext
32864 if { (ac_try="$ac_compile"
32865 case "(($ac_try" in
32866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32867   *) ac_try_echo=$ac_try;;
32868 esac
32869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32870   (eval "$ac_compile") 2>conftest.er1
32871   ac_status=$?
32872   grep -v '^ *+' conftest.er1 >conftest.err
32873   rm -f conftest.er1
32874   cat conftest.err >&5
32875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876   (exit $ac_status); } &&
32877          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32878   { (case "(($ac_try" in
32879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32880   *) ac_try_echo=$ac_try;;
32881 esac
32882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32883   (eval "$ac_try") 2>&5
32884   ac_status=$?
32885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886   (exit $ac_status); }; } &&
32887          { ac_try='test -s conftest.$ac_objext'
32888   { (case "(($ac_try" in
32889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32890   *) ac_try_echo=$ac_try;;
32891 esac
32892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32893   (eval "$ac_try") 2>&5
32894   ac_status=$?
32895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896   (exit $ac_status); }; }; then
32897   ac_cv_func_isnan_in_cmath=yes
32898 else
32899   echo "$as_me: failed program was:" >&5
32900 sed 's/^/| /' conftest.$ac_ext >&5
32901
32902         ac_cv_func_isnan_in_cmath=no
32903 fi
32904
32905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32906   ac_ext=c
32907 ac_cpp='$CPP $CPPFLAGS'
32908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32911
32912 fi
32913 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32914 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32915
32916 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32917
32918 cat >>confdefs.h <<\_ACEOF
32919 #define HAVE_ISNAN_IN_CMATH 1
32920 _ACEOF
32921
32922 fi
32923
32924 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32925 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32926 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32927   echo $ECHO_N "(cached) $ECHO_C" >&6
32928 else
32929   ac_ext=cpp
32930 ac_cpp='$CXXCPP $CPPFLAGS'
32931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32934
32935    cat >conftest.$ac_ext <<_ACEOF
32936 /* confdefs.h.  */
32937 _ACEOF
32938 cat confdefs.h >>conftest.$ac_ext
32939 cat >>conftest.$ac_ext <<_ACEOF
32940 /* end confdefs.h.  */
32941 #include <cmath>
32942 int
32943 main ()
32944 {
32945 float f; std::isnan(f);
32946   ;
32947   return 0;
32948 }
32949 _ACEOF
32950 rm -f conftest.$ac_objext
32951 if { (ac_try="$ac_compile"
32952 case "(($ac_try" in
32953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32954   *) ac_try_echo=$ac_try;;
32955 esac
32956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32957   (eval "$ac_compile") 2>conftest.er1
32958   ac_status=$?
32959   grep -v '^ *+' conftest.er1 >conftest.err
32960   rm -f conftest.er1
32961   cat conftest.err >&5
32962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963   (exit $ac_status); } &&
32964          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32965   { (case "(($ac_try" in
32966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32967   *) ac_try_echo=$ac_try;;
32968 esac
32969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32970   (eval "$ac_try") 2>&5
32971   ac_status=$?
32972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973   (exit $ac_status); }; } &&
32974          { ac_try='test -s conftest.$ac_objext'
32975   { (case "(($ac_try" in
32976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32977   *) ac_try_echo=$ac_try;;
32978 esac
32979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32980   (eval "$ac_try") 2>&5
32981   ac_status=$?
32982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983   (exit $ac_status); }; }; then
32984   ac_cv_func_std_isnan_in_cmath=yes
32985 else
32986   echo "$as_me: failed program was:" >&5
32987 sed 's/^/| /' conftest.$ac_ext >&5
32988
32989         ac_cv_func_std_isnan_in_cmath=no
32990 fi
32991
32992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32993   ac_ext=c
32994 ac_cpp='$CPP $CPPFLAGS'
32995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32998
32999 fi
33000 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33001 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33002
33003 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33004
33005 cat >>confdefs.h <<\_ACEOF
33006 #define HAVE_STD_ISNAN_IN_CMATH 1
33007 _ACEOF
33008
33009 fi
33010
33011
33012 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33013 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33014 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33015   echo $ECHO_N "(cached) $ECHO_C" >&6
33016 else
33017   ac_ext=cpp
33018 ac_cpp='$CXXCPP $CPPFLAGS'
33019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33022
33023    cat >conftest.$ac_ext <<_ACEOF
33024 /* confdefs.h.  */
33025 _ACEOF
33026 cat confdefs.h >>conftest.$ac_ext
33027 cat >>conftest.$ac_ext <<_ACEOF
33028 /* end confdefs.h.  */
33029 #include <math.h>
33030 int
33031 main ()
33032 {
33033 float f; isinf(f);
33034   ;
33035   return 0;
33036 }
33037 _ACEOF
33038 rm -f conftest.$ac_objext
33039 if { (ac_try="$ac_compile"
33040 case "(($ac_try" in
33041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33042   *) ac_try_echo=$ac_try;;
33043 esac
33044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33045   (eval "$ac_compile") 2>conftest.er1
33046   ac_status=$?
33047   grep -v '^ *+' conftest.er1 >conftest.err
33048   rm -f conftest.er1
33049   cat conftest.err >&5
33050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051   (exit $ac_status); } &&
33052          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33053   { (case "(($ac_try" in
33054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33055   *) ac_try_echo=$ac_try;;
33056 esac
33057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33058   (eval "$ac_try") 2>&5
33059   ac_status=$?
33060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33061   (exit $ac_status); }; } &&
33062          { ac_try='test -s conftest.$ac_objext'
33063   { (case "(($ac_try" in
33064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33065   *) ac_try_echo=$ac_try;;
33066 esac
33067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33068   (eval "$ac_try") 2>&5
33069   ac_status=$?
33070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33071   (exit $ac_status); }; }; then
33072   ac_cv_func_isinf_in_math_h=yes
33073 else
33074   echo "$as_me: failed program was:" >&5
33075 sed 's/^/| /' conftest.$ac_ext >&5
33076
33077         ac_cv_func_isinf_in_math_h=no
33078 fi
33079
33080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33081   ac_ext=c
33082 ac_cpp='$CPP $CPPFLAGS'
33083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33086
33087 fi
33088 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33089 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33090
33091 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33092
33093 cat >>confdefs.h <<\_ACEOF
33094 #define HAVE_ISINF_IN_MATH_H 1
33095 _ACEOF
33096
33097 fi
33098
33099 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33100 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33101 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33102   echo $ECHO_N "(cached) $ECHO_C" >&6
33103 else
33104   ac_ext=cpp
33105 ac_cpp='$CXXCPP $CPPFLAGS'
33106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33109
33110    cat >conftest.$ac_ext <<_ACEOF
33111 /* confdefs.h.  */
33112 _ACEOF
33113 cat confdefs.h >>conftest.$ac_ext
33114 cat >>conftest.$ac_ext <<_ACEOF
33115 /* end confdefs.h.  */
33116 #include <cmath>
33117 int
33118 main ()
33119 {
33120 float f; isinf(f);
33121   ;
33122   return 0;
33123 }
33124 _ACEOF
33125 rm -f conftest.$ac_objext
33126 if { (ac_try="$ac_compile"
33127 case "(($ac_try" in
33128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33129   *) ac_try_echo=$ac_try;;
33130 esac
33131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33132   (eval "$ac_compile") 2>conftest.er1
33133   ac_status=$?
33134   grep -v '^ *+' conftest.er1 >conftest.err
33135   rm -f conftest.er1
33136   cat conftest.err >&5
33137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138   (exit $ac_status); } &&
33139          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33140   { (case "(($ac_try" in
33141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33142   *) ac_try_echo=$ac_try;;
33143 esac
33144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33145   (eval "$ac_try") 2>&5
33146   ac_status=$?
33147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148   (exit $ac_status); }; } &&
33149          { ac_try='test -s conftest.$ac_objext'
33150   { (case "(($ac_try" in
33151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33152   *) ac_try_echo=$ac_try;;
33153 esac
33154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33155   (eval "$ac_try") 2>&5
33156   ac_status=$?
33157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33158   (exit $ac_status); }; }; then
33159   ac_cv_func_isinf_in_cmath=yes
33160 else
33161   echo "$as_me: failed program was:" >&5
33162 sed 's/^/| /' conftest.$ac_ext >&5
33163
33164         ac_cv_func_isinf_in_cmath=no
33165 fi
33166
33167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33168   ac_ext=c
33169 ac_cpp='$CPP $CPPFLAGS'
33170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33173
33174 fi
33175 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33176 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33177
33178 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33179
33180 cat >>confdefs.h <<\_ACEOF
33181 #define HAVE_ISINF_IN_CMATH 1
33182 _ACEOF
33183
33184 fi
33185
33186 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33187 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33188 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33189   echo $ECHO_N "(cached) $ECHO_C" >&6
33190 else
33191   ac_ext=cpp
33192 ac_cpp='$CXXCPP $CPPFLAGS'
33193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33196
33197    cat >conftest.$ac_ext <<_ACEOF
33198 /* confdefs.h.  */
33199 _ACEOF
33200 cat confdefs.h >>conftest.$ac_ext
33201 cat >>conftest.$ac_ext <<_ACEOF
33202 /* end confdefs.h.  */
33203 #include <cmath>
33204 int
33205 main ()
33206 {
33207 float f; std::isinf(f)}
33208   ;
33209   return 0;
33210 }
33211 _ACEOF
33212 rm -f conftest.$ac_objext
33213 if { (ac_try="$ac_compile"
33214 case "(($ac_try" in
33215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33216   *) ac_try_echo=$ac_try;;
33217 esac
33218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33219   (eval "$ac_compile") 2>conftest.er1
33220   ac_status=$?
33221   grep -v '^ *+' conftest.er1 >conftest.err
33222   rm -f conftest.er1
33223   cat conftest.err >&5
33224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33225   (exit $ac_status); } &&
33226          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33227   { (case "(($ac_try" in
33228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33229   *) ac_try_echo=$ac_try;;
33230 esac
33231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33232   (eval "$ac_try") 2>&5
33233   ac_status=$?
33234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235   (exit $ac_status); }; } &&
33236          { ac_try='test -s conftest.$ac_objext'
33237   { (case "(($ac_try" in
33238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33239   *) ac_try_echo=$ac_try;;
33240 esac
33241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33242   (eval "$ac_try") 2>&5
33243   ac_status=$?
33244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245   (exit $ac_status); }; }; then
33246   ac_cv_func_std_isinf_in_cmath=yes
33247 else
33248   echo "$as_me: failed program was:" >&5
33249 sed 's/^/| /' conftest.$ac_ext >&5
33250
33251         ac_cv_func_std_isinf_in_cmath=no
33252 fi
33253
33254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33255   ac_ext=c
33256 ac_cpp='$CPP $CPPFLAGS'
33257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33260
33261 fi
33262 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33263 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33264
33265 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33266
33267 cat >>confdefs.h <<\_ACEOF
33268 #define HAVE_STD_ISINF_IN_CMATH 1
33269 _ACEOF
33270
33271 fi
33272
33273 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33274 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33275 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33276   echo $ECHO_N "(cached) $ECHO_C" >&6
33277 else
33278   ac_ext=cpp
33279 ac_cpp='$CXXCPP $CPPFLAGS'
33280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33283
33284    cat >conftest.$ac_ext <<_ACEOF
33285 /* confdefs.h.  */
33286 _ACEOF
33287 cat confdefs.h >>conftest.$ac_ext
33288 cat >>conftest.$ac_ext <<_ACEOF
33289 /* end confdefs.h.  */
33290 #include <ieeefp.h>
33291 int
33292 main ()
33293 {
33294 float f; finite(f);
33295   ;
33296   return 0;
33297 }
33298 _ACEOF
33299 rm -f conftest.$ac_objext
33300 if { (ac_try="$ac_compile"
33301 case "(($ac_try" in
33302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33303   *) ac_try_echo=$ac_try;;
33304 esac
33305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33306   (eval "$ac_compile") 2>conftest.er1
33307   ac_status=$?
33308   grep -v '^ *+' conftest.er1 >conftest.err
33309   rm -f conftest.er1
33310   cat conftest.err >&5
33311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312   (exit $ac_status); } &&
33313          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33314   { (case "(($ac_try" in
33315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33316   *) ac_try_echo=$ac_try;;
33317 esac
33318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33319   (eval "$ac_try") 2>&5
33320   ac_status=$?
33321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322   (exit $ac_status); }; } &&
33323          { ac_try='test -s conftest.$ac_objext'
33324   { (case "(($ac_try" in
33325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33326   *) ac_try_echo=$ac_try;;
33327 esac
33328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33329   (eval "$ac_try") 2>&5
33330   ac_status=$?
33331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332   (exit $ac_status); }; }; then
33333   ac_cv_func_finite_in_ieeefp_h=yes
33334 else
33335   echo "$as_me: failed program was:" >&5
33336 sed 's/^/| /' conftest.$ac_ext >&5
33337
33338         ac_cv_func_finite_in_ieeefp_h=no
33339 fi
33340
33341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33342   ac_ext=c
33343 ac_cpp='$CPP $CPPFLAGS'
33344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33347
33348 fi
33349 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33350 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33351
33352 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33353
33354 cat >>confdefs.h <<\_ACEOF
33355 #define HAVE_FINITE_IN_IEEEFP_H 1
33356 _ACEOF
33357
33358 fi
33359
33360
33361
33362 if test "$llvm_cv_platform_type" = "Unix" ; then
33363
33364
33365 for ac_header in stdlib.h unistd.h
33366 do
33367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33369   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33372   echo $ECHO_N "(cached) $ECHO_C" >&6
33373 fi
33374 ac_res=`eval echo '${'$as_ac_Header'}'`
33375                { echo "$as_me:$LINENO: result: $ac_res" >&5
33376 echo "${ECHO_T}$ac_res" >&6; }
33377 else
33378   # Is the header compilable?
33379 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33381 cat >conftest.$ac_ext <<_ACEOF
33382 /* confdefs.h.  */
33383 _ACEOF
33384 cat confdefs.h >>conftest.$ac_ext
33385 cat >>conftest.$ac_ext <<_ACEOF
33386 /* end confdefs.h.  */
33387 $ac_includes_default
33388 #include <$ac_header>
33389 _ACEOF
33390 rm -f conftest.$ac_objext
33391 if { (ac_try="$ac_compile"
33392 case "(($ac_try" in
33393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33394   *) ac_try_echo=$ac_try;;
33395 esac
33396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33397   (eval "$ac_compile") 2>conftest.er1
33398   ac_status=$?
33399   grep -v '^ *+' conftest.er1 >conftest.err
33400   rm -f conftest.er1
33401   cat conftest.err >&5
33402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403   (exit $ac_status); } &&
33404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33405   { (case "(($ac_try" in
33406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33407   *) ac_try_echo=$ac_try;;
33408 esac
33409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33410   (eval "$ac_try") 2>&5
33411   ac_status=$?
33412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33413   (exit $ac_status); }; } &&
33414          { ac_try='test -s conftest.$ac_objext'
33415   { (case "(($ac_try" in
33416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33417   *) ac_try_echo=$ac_try;;
33418 esac
33419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33420   (eval "$ac_try") 2>&5
33421   ac_status=$?
33422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33423   (exit $ac_status); }; }; then
33424   ac_header_compiler=yes
33425 else
33426   echo "$as_me: failed program was:" >&5
33427 sed 's/^/| /' conftest.$ac_ext >&5
33428
33429         ac_header_compiler=no
33430 fi
33431
33432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33434 echo "${ECHO_T}$ac_header_compiler" >&6; }
33435
33436 # Is the header present?
33437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33439 cat >conftest.$ac_ext <<_ACEOF
33440 /* confdefs.h.  */
33441 _ACEOF
33442 cat confdefs.h >>conftest.$ac_ext
33443 cat >>conftest.$ac_ext <<_ACEOF
33444 /* end confdefs.h.  */
33445 #include <$ac_header>
33446 _ACEOF
33447 if { (ac_try="$ac_cpp conftest.$ac_ext"
33448 case "(($ac_try" in
33449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33450   *) ac_try_echo=$ac_try;;
33451 esac
33452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33453   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33454   ac_status=$?
33455   grep -v '^ *+' conftest.er1 >conftest.err
33456   rm -f conftest.er1
33457   cat conftest.err >&5
33458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459   (exit $ac_status); } >/dev/null; then
33460   if test -s conftest.err; then
33461     ac_cpp_err=$ac_c_preproc_warn_flag
33462     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33463   else
33464     ac_cpp_err=
33465   fi
33466 else
33467   ac_cpp_err=yes
33468 fi
33469 if test -z "$ac_cpp_err"; then
33470   ac_header_preproc=yes
33471 else
33472   echo "$as_me: failed program was:" >&5
33473 sed 's/^/| /' conftest.$ac_ext >&5
33474
33475   ac_header_preproc=no
33476 fi
33477
33478 rm -f conftest.err conftest.$ac_ext
33479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33480 echo "${ECHO_T}$ac_header_preproc" >&6; }
33481
33482 # So?  What about this header?
33483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33484   yes:no: )
33485     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33489     ac_header_preproc=yes
33490     ;;
33491   no:yes:* )
33492     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33494     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33495 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33496     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33498     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33499 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33502     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33504     ( cat <<\_ASBOX
33505 ## ----------------------------------- ##
33506 ## Report this to llvmbugs@cs.uiuc.edu ##
33507 ## ----------------------------------- ##
33508 _ASBOX
33509      ) | sed "s/^/$as_me: WARNING:     /" >&2
33510     ;;
33511 esac
33512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33515   echo $ECHO_N "(cached) $ECHO_C" >&6
33516 else
33517   eval "$as_ac_Header=\$ac_header_preproc"
33518 fi
33519 ac_res=`eval echo '${'$as_ac_Header'}'`
33520                { echo "$as_me:$LINENO: result: $ac_res" >&5
33521 echo "${ECHO_T}$ac_res" >&6; }
33522
33523 fi
33524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33525   cat >>confdefs.h <<_ACEOF
33526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33527 _ACEOF
33528
33529 fi
33530
33531 done
33532
33533
33534 for ac_func in getpagesize
33535 do
33536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33537 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33540   echo $ECHO_N "(cached) $ECHO_C" >&6
33541 else
33542   cat >conftest.$ac_ext <<_ACEOF
33543 /* confdefs.h.  */
33544 _ACEOF
33545 cat confdefs.h >>conftest.$ac_ext
33546 cat >>conftest.$ac_ext <<_ACEOF
33547 /* end confdefs.h.  */
33548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33550 #define $ac_func innocuous_$ac_func
33551
33552 /* System header to define __stub macros and hopefully few prototypes,
33553     which can conflict with char $ac_func (); below.
33554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33555     <limits.h> exists even on freestanding compilers.  */
33556
33557 #ifdef __STDC__
33558 # include <limits.h>
33559 #else
33560 # include <assert.h>
33561 #endif
33562
33563 #undef $ac_func
33564
33565 /* Override any GCC internal prototype to avoid an error.
33566    Use char because int might match the return type of a GCC
33567    builtin and then its argument prototype would still apply.  */
33568 #ifdef __cplusplus
33569 extern "C"
33570 #endif
33571 char $ac_func ();
33572 /* The GNU C library defines this for functions which it implements
33573     to always fail with ENOSYS.  Some functions are actually named
33574     something starting with __ and the normal name is an alias.  */
33575 #if defined __stub_$ac_func || defined __stub___$ac_func
33576 choke me
33577 #endif
33578
33579 int
33580 main ()
33581 {
33582 return $ac_func ();
33583   ;
33584   return 0;
33585 }
33586 _ACEOF
33587 rm -f conftest.$ac_objext conftest$ac_exeext
33588 if { (ac_try="$ac_link"
33589 case "(($ac_try" in
33590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33591   *) ac_try_echo=$ac_try;;
33592 esac
33593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33594   (eval "$ac_link") 2>conftest.er1
33595   ac_status=$?
33596   grep -v '^ *+' conftest.er1 >conftest.err
33597   rm -f conftest.er1
33598   cat conftest.err >&5
33599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33600   (exit $ac_status); } &&
33601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33602   { (case "(($ac_try" in
33603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33604   *) ac_try_echo=$ac_try;;
33605 esac
33606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33607   (eval "$ac_try") 2>&5
33608   ac_status=$?
33609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33610   (exit $ac_status); }; } &&
33611          { ac_try='test -s conftest$ac_exeext'
33612   { (case "(($ac_try" in
33613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33614   *) ac_try_echo=$ac_try;;
33615 esac
33616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33617   (eval "$ac_try") 2>&5
33618   ac_status=$?
33619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620   (exit $ac_status); }; }; then
33621   eval "$as_ac_var=yes"
33622 else
33623   echo "$as_me: failed program was:" >&5
33624 sed 's/^/| /' conftest.$ac_ext >&5
33625
33626         eval "$as_ac_var=no"
33627 fi
33628
33629 rm -f core conftest.err conftest.$ac_objext \
33630       conftest$ac_exeext conftest.$ac_ext
33631 fi
33632 ac_res=`eval echo '${'$as_ac_var'}'`
33633                { echo "$as_me:$LINENO: result: $ac_res" >&5
33634 echo "${ECHO_T}$ac_res" >&6; }
33635 if test `eval echo '${'$as_ac_var'}'` = yes; then
33636   cat >>confdefs.h <<_ACEOF
33637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33638 _ACEOF
33639
33640 fi
33641 done
33642
33643 { echo "$as_me:$LINENO: checking for working mmap" >&5
33644 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33645 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33646   echo $ECHO_N "(cached) $ECHO_C" >&6
33647 else
33648   if test "$cross_compiling" = yes; then
33649   ac_cv_func_mmap_fixed_mapped=no
33650 else
33651   cat >conftest.$ac_ext <<_ACEOF
33652 /* confdefs.h.  */
33653 _ACEOF
33654 cat confdefs.h >>conftest.$ac_ext
33655 cat >>conftest.$ac_ext <<_ACEOF
33656 /* end confdefs.h.  */
33657 $ac_includes_default
33658 /* malloc might have been renamed as rpl_malloc. */
33659 #undef malloc
33660
33661 /* Thanks to Mike Haertel and Jim Avera for this test.
33662    Here is a matrix of mmap possibilities:
33663         mmap private not fixed
33664         mmap private fixed at somewhere currently unmapped
33665         mmap private fixed at somewhere already mapped
33666         mmap shared not fixed
33667         mmap shared fixed at somewhere currently unmapped
33668         mmap shared fixed at somewhere already mapped
33669    For private mappings, we should verify that changes cannot be read()
33670    back from the file, nor mmap's back from the file at a different
33671    address.  (There have been systems where private was not correctly
33672    implemented like the infamous i386 svr4.0, and systems where the
33673    VM page cache was not coherent with the file system buffer cache
33674    like early versions of FreeBSD and possibly contemporary NetBSD.)
33675    For shared mappings, we should conversely verify that changes get
33676    propagated back to all the places they're supposed to be.
33677
33678    Grep wants private fixed already mapped.
33679    The main things grep needs to know about mmap are:
33680    * does it exist and is it safe to write into the mmap'd area
33681    * how to use it (BSD variants)  */
33682
33683 #include <fcntl.h>
33684 #include <sys/mman.h>
33685
33686 #if !STDC_HEADERS && !HAVE_STDLIB_H
33687 char *malloc ();
33688 #endif
33689
33690 /* This mess was copied from the GNU getpagesize.h.  */
33691 #if !HAVE_GETPAGESIZE
33692 /* Assume that all systems that can run configure have sys/param.h.  */
33693 # if !HAVE_SYS_PARAM_H
33694 #  define HAVE_SYS_PARAM_H 1
33695 # endif
33696
33697 # ifdef _SC_PAGESIZE
33698 #  define getpagesize() sysconf(_SC_PAGESIZE)
33699 # else /* no _SC_PAGESIZE */
33700 #  if HAVE_SYS_PARAM_H
33701 #   include <sys/param.h>
33702 #   ifdef EXEC_PAGESIZE
33703 #    define getpagesize() EXEC_PAGESIZE
33704 #   else /* no EXEC_PAGESIZE */
33705 #    ifdef NBPG
33706 #     define getpagesize() NBPG * CLSIZE
33707 #     ifndef CLSIZE
33708 #      define CLSIZE 1
33709 #     endif /* no CLSIZE */
33710 #    else /* no NBPG */
33711 #     ifdef NBPC
33712 #      define getpagesize() NBPC
33713 #     else /* no NBPC */
33714 #      ifdef PAGESIZE
33715 #       define getpagesize() PAGESIZE
33716 #      endif /* PAGESIZE */
33717 #     endif /* no NBPC */
33718 #    endif /* no NBPG */
33719 #   endif /* no EXEC_PAGESIZE */
33720 #  else /* no HAVE_SYS_PARAM_H */
33721 #   define getpagesize() 8192   /* punt totally */
33722 #  endif /* no HAVE_SYS_PARAM_H */
33723 # endif /* no _SC_PAGESIZE */
33724
33725 #endif /* no HAVE_GETPAGESIZE */
33726
33727 int
33728 main ()
33729 {
33730   char *data, *data2, *data3;
33731   int i, pagesize;
33732   int fd;
33733
33734   pagesize = getpagesize ();
33735
33736   /* First, make a file with some known garbage in it. */
33737   data = (char *) malloc (pagesize);
33738   if (!data)
33739     return 1;
33740   for (i = 0; i < pagesize; ++i)
33741     *(data + i) = rand ();
33742   umask (0);
33743   fd = creat ("conftest.mmap", 0600);
33744   if (fd < 0)
33745     return 1;
33746   if (write (fd, data, pagesize) != pagesize)
33747     return 1;
33748   close (fd);
33749
33750   /* Next, try to mmap the file at a fixed address which already has
33751      something else allocated at it.  If we can, also make sure that
33752      we see the same garbage.  */
33753   fd = open ("conftest.mmap", O_RDWR);
33754   if (fd < 0)
33755     return 1;
33756   data2 = (char *) malloc (2 * pagesize);
33757   if (!data2)
33758     return 1;
33759   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33760   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33761                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33762     return 1;
33763   for (i = 0; i < pagesize; ++i)
33764     if (*(data + i) != *(data2 + i))
33765       return 1;
33766
33767   /* Finally, make sure that changes to the mapped area do not
33768      percolate back to the file as seen by read().  (This is a bug on
33769      some variants of i386 svr4.0.)  */
33770   for (i = 0; i < pagesize; ++i)
33771     *(data2 + i) = *(data2 + i) + 1;
33772   data3 = (char *) malloc (pagesize);
33773   if (!data3)
33774     return 1;
33775   if (read (fd, data3, pagesize) != pagesize)
33776     return 1;
33777   for (i = 0; i < pagesize; ++i)
33778     if (*(data + i) != *(data3 + i))
33779       return 1;
33780   close (fd);
33781   return 0;
33782 }
33783 _ACEOF
33784 rm -f conftest$ac_exeext
33785 if { (ac_try="$ac_link"
33786 case "(($ac_try" in
33787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33788   *) ac_try_echo=$ac_try;;
33789 esac
33790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33791   (eval "$ac_link") 2>&5
33792   ac_status=$?
33793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33795   { (case "(($ac_try" in
33796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33797   *) ac_try_echo=$ac_try;;
33798 esac
33799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33800   (eval "$ac_try") 2>&5
33801   ac_status=$?
33802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33803   (exit $ac_status); }; }; then
33804   ac_cv_func_mmap_fixed_mapped=yes
33805 else
33806   echo "$as_me: program exited with status $ac_status" >&5
33807 echo "$as_me: failed program was:" >&5
33808 sed 's/^/| /' conftest.$ac_ext >&5
33809
33810 ( exit $ac_status )
33811 ac_cv_func_mmap_fixed_mapped=no
33812 fi
33813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33814 fi
33815
33816
33817 fi
33818 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33819 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33820 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33821
33822 cat >>confdefs.h <<\_ACEOF
33823 #define HAVE_MMAP 1
33824 _ACEOF
33825
33826 fi
33827 rm -f conftest.mmap
33828
33829   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33830 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33831 if test "${ac_cv_func_mmap_file+set}" = set; then
33832   echo $ECHO_N "(cached) $ECHO_C" >&6
33833 else
33834    ac_ext=c
33835 ac_cpp='$CPP $CPPFLAGS'
33836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33839
33840   if test "$cross_compiling" = yes; then
33841   ac_cv_func_mmap_file=no
33842 else
33843   cat >conftest.$ac_ext <<_ACEOF
33844
33845     /* confdefs.h.  */
33846 _ACEOF
33847 cat confdefs.h >>conftest.$ac_ext
33848 cat >>conftest.$ac_ext <<_ACEOF
33849 /* end confdefs.h.  */
33850
33851 #include <sys/types.h>
33852 #include <sys/mman.h>
33853 #include <fcntl.h>
33854
33855 int
33856 main ()
33857 {
33858
33859   int fd;
33860   fd = creat ("foo",0777);
33861   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33862   unlink ("foo");
33863   return (fd != (int) MAP_FAILED);
33864   ;
33865   return 0;
33866 }
33867 _ACEOF
33868 rm -f conftest$ac_exeext
33869 if { (ac_try="$ac_link"
33870 case "(($ac_try" in
33871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33872   *) ac_try_echo=$ac_try;;
33873 esac
33874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33875   (eval "$ac_link") 2>&5
33876   ac_status=$?
33877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33878   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33879   { (case "(($ac_try" in
33880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33881   *) ac_try_echo=$ac_try;;
33882 esac
33883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33884   (eval "$ac_try") 2>&5
33885   ac_status=$?
33886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33887   (exit $ac_status); }; }; then
33888   ac_cv_func_mmap_file=yes
33889 else
33890   echo "$as_me: program exited with status $ac_status" >&5
33891 echo "$as_me: failed program was:" >&5
33892 sed 's/^/| /' conftest.$ac_ext >&5
33893
33894 ( exit $ac_status )
33895 ac_cv_func_mmap_file=no
33896 fi
33897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33898 fi
33899
33900
33901   ac_ext=c
33902 ac_cpp='$CPP $CPPFLAGS'
33903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33906
33907
33908 fi
33909 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33910 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33911 if test "$ac_cv_func_mmap_file" = yes; then
33912
33913 cat >>confdefs.h <<\_ACEOF
33914 #define HAVE_MMAP_FILE
33915 _ACEOF
33916
33917    MMAP_FILE=yes
33918
33919 fi
33920
33921   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33922 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33923 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33924   echo $ECHO_N "(cached) $ECHO_C" >&6
33925 else
33926   if test "$llvm_cv_os_type" = "Interix" ; then
33927    ac_cv_need_dev_zero_for_mmap=yes
33928  else
33929    ac_cv_need_dev_zero_for_mmap=no
33930  fi
33931
33932 fi
33933 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33934 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33935 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33936
33937 cat >>confdefs.h <<\_ACEOF
33938 #define NEED_DEV_ZERO_FOR_MMAP 1
33939 _ACEOF
33940
33941 fi
33942
33943   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33944   then
33945     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33946 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33947   fi
33948   if test "$ac_cv_func_mmap_file" = "no"
33949   then
33950     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33951 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33952   fi
33953 fi
33954
33955
33956
33957 for ac_func in __dso_handle
33958 do
33959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33963   echo $ECHO_N "(cached) $ECHO_C" >&6
33964 else
33965   cat >conftest.$ac_ext <<_ACEOF
33966 /* confdefs.h.  */
33967 _ACEOF
33968 cat confdefs.h >>conftest.$ac_ext
33969 cat >>conftest.$ac_ext <<_ACEOF
33970 /* end confdefs.h.  */
33971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33973 #define $ac_func innocuous_$ac_func
33974
33975 /* System header to define __stub macros and hopefully few prototypes,
33976     which can conflict with char $ac_func (); below.
33977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33978     <limits.h> exists even on freestanding compilers.  */
33979
33980 #ifdef __STDC__
33981 # include <limits.h>
33982 #else
33983 # include <assert.h>
33984 #endif
33985
33986 #undef $ac_func
33987
33988 /* Override any GCC internal prototype to avoid an error.
33989    Use char because int might match the return type of a GCC
33990    builtin and then its argument prototype would still apply.  */
33991 #ifdef __cplusplus
33992 extern "C"
33993 #endif
33994 char $ac_func ();
33995 /* The GNU C library defines this for functions which it implements
33996     to always fail with ENOSYS.  Some functions are actually named
33997     something starting with __ and the normal name is an alias.  */
33998 #if defined __stub_$ac_func || defined __stub___$ac_func
33999 choke me
34000 #endif
34001
34002 int
34003 main ()
34004 {
34005 return $ac_func ();
34006   ;
34007   return 0;
34008 }
34009 _ACEOF
34010 rm -f conftest.$ac_objext conftest$ac_exeext
34011 if { (ac_try="$ac_link"
34012 case "(($ac_try" in
34013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34014   *) ac_try_echo=$ac_try;;
34015 esac
34016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34017   (eval "$ac_link") 2>conftest.er1
34018   ac_status=$?
34019   grep -v '^ *+' conftest.er1 >conftest.err
34020   rm -f conftest.er1
34021   cat conftest.err >&5
34022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023   (exit $ac_status); } &&
34024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34025   { (case "(($ac_try" in
34026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34027   *) ac_try_echo=$ac_try;;
34028 esac
34029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34030   (eval "$ac_try") 2>&5
34031   ac_status=$?
34032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34033   (exit $ac_status); }; } &&
34034          { ac_try='test -s conftest$ac_exeext'
34035   { (case "(($ac_try" in
34036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34037   *) ac_try_echo=$ac_try;;
34038 esac
34039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34040   (eval "$ac_try") 2>&5
34041   ac_status=$?
34042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34043   (exit $ac_status); }; }; then
34044   eval "$as_ac_var=yes"
34045 else
34046   echo "$as_me: failed program was:" >&5
34047 sed 's/^/| /' conftest.$ac_ext >&5
34048
34049         eval "$as_ac_var=no"
34050 fi
34051
34052 rm -f core conftest.err conftest.$ac_objext \
34053       conftest$ac_exeext conftest.$ac_ext
34054 fi
34055 ac_res=`eval echo '${'$as_ac_var'}'`
34056                { echo "$as_me:$LINENO: result: $ac_res" >&5
34057 echo "${ECHO_T}$ac_res" >&6; }
34058 if test `eval echo '${'$as_ac_var'}'` = yes; then
34059   cat >>confdefs.h <<_ACEOF
34060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34061 _ACEOF
34062
34063 fi
34064 done
34065
34066
34067 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34068 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34069 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34070   echo $ECHO_N "(cached) $ECHO_C" >&6
34071 else
34072   llvm_cv_llvmgcc_sanity="no"
34073 if test -x "$LLVMGCC" ; then
34074   cp /dev/null conftest.c
34075   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34076       grep 'target datalayout =' > /dev/null 2>&1
34077   if test $? -eq 0 ; then
34078     llvm_cv_llvmgcc_sanity="yes"
34079   fi
34080   rm conftest.c
34081 fi
34082 fi
34083 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34084 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34085
34086 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34087   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34088 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34089   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34090   LLVMCC1=$llvmcc1path
34091
34092   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34093   LLVMCC1PLUS=$llvmcc1pluspath
34094
34095   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34096   LLVMGCCDIR=$llvmgccdir
34097
34098   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34099   LLVMGCCLIBEXEC=$llvmgcclibexec
34100
34101   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34102   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34103   LLVMGCC_VERSION=$llvmgccversion
34104
34105   LLVMGCC_MAJVERS=$llvmgccmajvers
34106
34107   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34108   LLVMGCC_LANGS=$llvmgcclangs
34109
34110   { echo "$as_me:$LINENO: result: ok" >&5
34111 echo "${ECHO_T}ok" >&6; }
34112 fi
34113
34114 SHLIBEXT=$libltdl_cv_shlibext
34115
34116
34117 # Translate the various configuration directories and other basic
34118 # information into substitutions that will end up in Makefile.config.in
34119 # that these configured values can be used by the makefiles
34120 if test "${prefix}" = "NONE" ; then
34121   prefix="/usr/local"
34122 fi
34123 eval LLVM_PREFIX="${prefix}";
34124 eval LLVM_BINDIR="${prefix}/bin";
34125 eval LLVM_LIBDIR="${prefix}/lib";
34126 eval LLVM_DATADIR="${prefix}/share/llvm";
34127 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34128 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34129 eval LLVM_INCLUDEDIR="${prefix}/include";
34130 eval LLVM_INFODIR="${prefix}/info";
34131 eval LLVM_MANDIR="${prefix}/man";
34132 LLVM_CONFIGTIME=`date`
34133
34134
34135
34136
34137
34138
34139
34140
34141
34142
34143
34144 # Place the various directores into the config.h file as #defines so that we
34145 # can know about the installation paths within LLVM.
34146
34147 cat >>confdefs.h <<_ACEOF
34148 #define LLVM_PREFIX "$LLVM_PREFIX"
34149 _ACEOF
34150
34151
34152 cat >>confdefs.h <<_ACEOF
34153 #define LLVM_BINDIR "$LLVM_BINDIR"
34154 _ACEOF
34155
34156
34157 cat >>confdefs.h <<_ACEOF
34158 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34159 _ACEOF
34160
34161
34162 cat >>confdefs.h <<_ACEOF
34163 #define LLVM_DATADIR "$LLVM_DATADIR"
34164 _ACEOF
34165
34166
34167 cat >>confdefs.h <<_ACEOF
34168 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34169 _ACEOF
34170
34171
34172 cat >>confdefs.h <<_ACEOF
34173 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34174 _ACEOF
34175
34176
34177 cat >>confdefs.h <<_ACEOF
34178 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34179 _ACEOF
34180
34181
34182 cat >>confdefs.h <<_ACEOF
34183 #define LLVM_INFODIR "$LLVM_INFODIR"
34184 _ACEOF
34185
34186
34187 cat >>confdefs.h <<_ACEOF
34188 #define LLVM_MANDIR "$LLVM_MANDIR"
34189 _ACEOF
34190
34191
34192 cat >>confdefs.h <<_ACEOF
34193 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34194 _ACEOF
34195
34196
34197 cat >>confdefs.h <<_ACEOF
34198 #define LLVM_HOSTTRIPLE "$host"
34199 _ACEOF
34200
34201
34202 # Determine which bindings to build.
34203 if test "$BINDINGS_TO_BUILD" = auto ; then
34204   BINDINGS_TO_BUILD=""
34205   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34206     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34207   fi
34208 fi
34209 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34210
34211
34212 # This isn't really configurey, but it avoids having to repeat the list in
34213 # other files.
34214 ALL_BINDINGS=ocaml
34215
34216
34217 # Do any work necessary to ensure that bindings have what they need.
34218 binding_prereqs_failed=0
34219 for a_binding in $BINDINGS_TO_BUILD ; do
34220   case "$a_binding" in
34221   ocaml)
34222     if test "x$OCAMLC" = x ; then
34223       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34224 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34225       binding_prereqs_failed=1
34226     fi
34227     if test "x$OCAMLDEP" = x ; then
34228       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34229 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34230       binding_prereqs_failed=1
34231     fi
34232     if test "x$OCAMLOPT" = x ; then
34233       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34234 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34235           fi
34236     if test "x$with_ocaml_libdir" != xauto ; then
34237       OCAML_LIBDIR=$with_ocaml_libdir
34238
34239     else
34240       ocaml_stdlib="`"$OCAMLC" -where`"
34241       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34242       then
34243         # ocaml stdlib is beneath our prefix; use stdlib
34244         OCAML_LIBDIR=$ocaml_stdlib
34245
34246       else
34247         # ocaml stdlib is outside our prefix; use libdir/ocaml
34248         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34249
34250       fi
34251     fi
34252     ;;
34253   esac
34254 done
34255 if test "$binding_prereqs_failed" = 1 ; then
34256   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34257 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34258    { (exit 1); exit 1; }; }
34259 fi
34260
34261
34262
34263 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34264
34265 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34266
34267 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34268
34269 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34270
34271 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34272
34273
34274 ac_config_files="$ac_config_files Makefile.config"
34275
34276
34277 ac_config_files="$ac_config_files llvm.spec"
34278
34279
34280 ac_config_files="$ac_config_files docs/doxygen.cfg"
34281
34282
34283 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34284
34285
34286 ac_config_commands="$ac_config_commands setup"
34287
34288 ac_config_commands="$ac_config_commands Makefile"
34289
34290
34291 ac_config_commands="$ac_config_commands Makefile.common"
34292
34293
34294 ac_config_commands="$ac_config_commands examples/Makefile"
34295
34296
34297 ac_config_commands="$ac_config_commands lib/Makefile"
34298
34299
34300 ac_config_commands="$ac_config_commands runtime/Makefile"
34301
34302
34303 ac_config_commands="$ac_config_commands test/Makefile"
34304
34305
34306 ac_config_commands="$ac_config_commands test/Makefile.tests"
34307
34308
34309 ac_config_commands="$ac_config_commands tools/Makefile"
34310
34311
34312 ac_config_commands="$ac_config_commands utils/Makefile"
34313
34314
34315 ac_config_commands="$ac_config_commands projects/Makefile"
34316
34317
34318 ac_config_commands="$ac_config_commands bindings/Makefile"
34319
34320
34321 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34322
34323
34324
34325 cat >confcache <<\_ACEOF
34326 # This file is a shell script that caches the results of configure
34327 # tests run on this system so they can be shared between configure
34328 # scripts and configure runs, see configure's option --config-cache.
34329 # It is not useful on other systems.  If it contains results you don't
34330 # want to keep, you may remove or edit it.
34331 #
34332 # config.status only pays attention to the cache file if you give it
34333 # the --recheck option to rerun configure.
34334 #
34335 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34336 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34337 # following values.
34338
34339 _ACEOF
34340
34341 # The following way of writing the cache mishandles newlines in values,
34342 # but we know of no workaround that is simple, portable, and efficient.
34343 # So, we kill variables containing newlines.
34344 # Ultrix sh set writes to stderr and can't be redirected directly,
34345 # and sets the high bit in the cache file unless we assign to the vars.
34346 (
34347   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34348     eval ac_val=\$$ac_var
34349     case $ac_val in #(
34350     *${as_nl}*)
34351       case $ac_var in #(
34352       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34353 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34354       esac
34355       case $ac_var in #(
34356       _ | IFS | as_nl) ;; #(
34357       *) $as_unset $ac_var ;;
34358       esac ;;
34359     esac
34360   done
34361
34362   (set) 2>&1 |
34363     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34364     *${as_nl}ac_space=\ *)
34365       # `set' does not quote correctly, so add quotes (double-quote
34366       # substitution turns \\\\ into \\, and sed turns \\ into \).
34367       sed -n \
34368         "s/'/'\\\\''/g;
34369           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34370       ;; #(
34371     *)
34372       # `set' quotes correctly as required by POSIX, so do not add quotes.
34373       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34374       ;;
34375     esac |
34376     sort
34377 ) |
34378   sed '
34379      /^ac_cv_env_/b end
34380      t clear
34381      :clear
34382      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34383      t end
34384      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34385      :end' >>confcache
34386 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34387   if test -w "$cache_file"; then
34388     test "x$cache_file" != "x/dev/null" &&
34389       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34390 echo "$as_me: updating cache $cache_file" >&6;}
34391     cat confcache >$cache_file
34392   else
34393     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34394 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34395   fi
34396 fi
34397 rm -f confcache
34398
34399 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34400 # Let make expand exec_prefix.
34401 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34402
34403 DEFS=-DHAVE_CONFIG_H
34404
34405 ac_libobjs=
34406 ac_ltlibobjs=
34407 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34408   # 1. Remove the extension, and $U if already installed.
34409   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34410   ac_i=`echo "$ac_i" | sed "$ac_script"`
34411   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34412   #    will be set to the directory where LIBOBJS objects are built.
34413   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34414   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34415 done
34416 LIBOBJS=$ac_libobjs
34417
34418 LTLIBOBJS=$ac_ltlibobjs
34419
34420
34421 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34422   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34423 Usually this means the macro was only invoked conditionally." >&5
34424 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34425 Usually this means the macro was only invoked conditionally." >&2;}
34426    { (exit 1); exit 1; }; }
34427 fi
34428 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34429   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34430 Usually this means the macro was only invoked conditionally." >&5
34431 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34432 Usually this means the macro was only invoked conditionally." >&2;}
34433    { (exit 1); exit 1; }; }
34434 fi
34435
34436 : ${CONFIG_STATUS=./config.status}
34437 ac_clean_files_save=$ac_clean_files
34438 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34439 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34440 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34441 cat >$CONFIG_STATUS <<_ACEOF
34442 #! $SHELL
34443 # Generated by $as_me.
34444 # Run this file to recreate the current configuration.
34445 # Compiler output produced by configure, useful for debugging
34446 # configure, is in config.log if it exists.
34447
34448 debug=false
34449 ac_cs_recheck=false
34450 ac_cs_silent=false
34451 SHELL=\${CONFIG_SHELL-$SHELL}
34452 _ACEOF
34453
34454 cat >>$CONFIG_STATUS <<\_ACEOF
34455 ## --------------------- ##
34456 ## M4sh Initialization.  ##
34457 ## --------------------- ##
34458
34459 # Be Bourne compatible
34460 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34461   emulate sh
34462   NULLCMD=:
34463   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34464   # is contrary to our usage.  Disable this feature.
34465   alias -g '${1+"$@"}'='"$@"'
34466   setopt NO_GLOB_SUBST
34467 else
34468   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34469 fi
34470 BIN_SH=xpg4; export BIN_SH # for Tru64
34471 DUALCASE=1; export DUALCASE # for MKS sh
34472
34473
34474 # PATH needs CR
34475 # Avoid depending upon Character Ranges.
34476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34479 as_cr_digits='0123456789'
34480 as_cr_alnum=$as_cr_Letters$as_cr_digits
34481
34482 # The user is always right.
34483 if test "${PATH_SEPARATOR+set}" != set; then
34484   echo "#! /bin/sh" >conf$$.sh
34485   echo  "exit 0"   >>conf$$.sh
34486   chmod +x conf$$.sh
34487   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34488     PATH_SEPARATOR=';'
34489   else
34490     PATH_SEPARATOR=:
34491   fi
34492   rm -f conf$$.sh
34493 fi
34494
34495 # Support unset when possible.
34496 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34497   as_unset=unset
34498 else
34499   as_unset=false
34500 fi
34501
34502
34503 # IFS
34504 # We need space, tab and new line, in precisely that order.  Quoting is
34505 # there to prevent editors from complaining about space-tab.
34506 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34507 # splitting by setting IFS to empty value.)
34508 as_nl='
34509 '
34510 IFS=" ""        $as_nl"
34511
34512 # Find who we are.  Look in the path if we contain no directory separator.
34513 case $0 in
34514   *[\\/]* ) as_myself=$0 ;;
34515   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34516 for as_dir in $PATH
34517 do
34518   IFS=$as_save_IFS
34519   test -z "$as_dir" && as_dir=.
34520   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34521 done
34522 IFS=$as_save_IFS
34523
34524      ;;
34525 esac
34526 # We did not find ourselves, most probably we were run as `sh COMMAND'
34527 # in which case we are not to be found in the path.
34528 if test "x$as_myself" = x; then
34529   as_myself=$0
34530 fi
34531 if test ! -f "$as_myself"; then
34532   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34533   { (exit 1); exit 1; }
34534 fi
34535
34536 # Work around bugs in pre-3.0 UWIN ksh.
34537 for as_var in ENV MAIL MAILPATH
34538 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34539 done
34540 PS1='$ '
34541 PS2='> '
34542 PS4='+ '
34543
34544 # NLS nuisances.
34545 for as_var in \
34546   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34547   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34548   LC_TELEPHONE LC_TIME
34549 do
34550   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34551     eval $as_var=C; export $as_var
34552   else
34553     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34554   fi
34555 done
34556
34557 # Required to use basename.
34558 if expr a : '\(a\)' >/dev/null 2>&1 &&
34559    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34560   as_expr=expr
34561 else
34562   as_expr=false
34563 fi
34564
34565 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34566   as_basename=basename
34567 else
34568   as_basename=false
34569 fi
34570
34571
34572 # Name of the executable.
34573 as_me=`$as_basename -- "$0" ||
34574 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34575          X"$0" : 'X\(//\)$' \| \
34576          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34577 echo X/"$0" |
34578     sed '/^.*\/\([^/][^/]*\)\/*$/{
34579             s//\1/
34580             q
34581           }
34582           /^X\/\(\/\/\)$/{
34583             s//\1/
34584             q
34585           }
34586           /^X\/\(\/\).*/{
34587             s//\1/
34588             q
34589           }
34590           s/.*/./; q'`
34591
34592 # CDPATH.
34593 $as_unset CDPATH
34594
34595
34596
34597   as_lineno_1=$LINENO
34598   as_lineno_2=$LINENO
34599   test "x$as_lineno_1" != "x$as_lineno_2" &&
34600   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34601
34602   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34603   # uniformly replaced by the line number.  The first 'sed' inserts a
34604   # line-number line after each line using $LINENO; the second 'sed'
34605   # does the real work.  The second script uses 'N' to pair each
34606   # line-number line with the line containing $LINENO, and appends
34607   # trailing '-' during substitution so that $LINENO is not a special
34608   # case at line end.
34609   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34610   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34611   # E. McMahon (1931-1989) for sed's syntax.  :-)
34612   sed -n '
34613     p
34614     /[$]LINENO/=
34615   ' <$as_myself |
34616     sed '
34617       s/[$]LINENO.*/&-/
34618       t lineno
34619       b
34620       :lineno
34621       N
34622       :loop
34623       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34624       t loop
34625       s/-\n.*//
34626     ' >$as_me.lineno &&
34627   chmod +x "$as_me.lineno" ||
34628     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34629    { (exit 1); exit 1; }; }
34630
34631   # Don't try to exec as it changes $[0], causing all sort of problems
34632   # (the dirname of $[0] is not the place where we might find the
34633   # original and so on.  Autoconf is especially sensitive to this).
34634   . "./$as_me.lineno"
34635   # Exit status is that of the last command.
34636   exit
34637 }
34638
34639
34640 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34641   as_dirname=dirname
34642 else
34643   as_dirname=false
34644 fi
34645
34646 ECHO_C= ECHO_N= ECHO_T=
34647 case `echo -n x` in
34648 -n*)
34649   case `echo 'x\c'` in
34650   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34651   *)   ECHO_C='\c';;
34652   esac;;
34653 *)
34654   ECHO_N='-n';;
34655 esac
34656
34657 if expr a : '\(a\)' >/dev/null 2>&1 &&
34658    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34659   as_expr=expr
34660 else
34661   as_expr=false
34662 fi
34663
34664 rm -f conf$$ conf$$.exe conf$$.file
34665 if test -d conf$$.dir; then
34666   rm -f conf$$.dir/conf$$.file
34667 else
34668   rm -f conf$$.dir
34669   mkdir conf$$.dir
34670 fi
34671 echo >conf$$.file
34672 if ln -s conf$$.file conf$$ 2>/dev/null; then
34673   as_ln_s='ln -s'
34674   # ... but there are two gotchas:
34675   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34676   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34677   # In both cases, we have to default to `cp -p'.
34678   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34679     as_ln_s='cp -p'
34680 elif ln conf$$.file conf$$ 2>/dev/null; then
34681   as_ln_s=ln
34682 else
34683   as_ln_s='cp -p'
34684 fi
34685 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34686 rmdir conf$$.dir 2>/dev/null
34687
34688 if mkdir -p . 2>/dev/null; then
34689   as_mkdir_p=:
34690 else
34691   test -d ./-p && rmdir ./-p
34692   as_mkdir_p=false
34693 fi
34694
34695 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34696 # systems may use methods other than mode bits to determine executability.
34697 cat >conf$$.file <<_ASEOF
34698 #! /bin/sh
34699 exit 0
34700 _ASEOF
34701 chmod +x conf$$.file
34702 if test -x conf$$.file >/dev/null 2>&1; then
34703   as_executable_p="test -x"
34704 else
34705   as_executable_p=:
34706 fi
34707 rm -f conf$$.file
34708
34709 # Sed expression to map a string onto a valid CPP name.
34710 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34711
34712 # Sed expression to map a string onto a valid variable name.
34713 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34714
34715
34716 exec 6>&1
34717
34718 # Save the log message, to keep $[0] and so on meaningful, and to
34719 # report actual input values of CONFIG_FILES etc. instead of their
34720 # values after options handling.
34721 ac_log="
34722 This file was extended by llvm $as_me 2.4svn, which was
34723 generated by GNU Autoconf 2.60.  Invocation command line was
34724
34725   CONFIG_FILES    = $CONFIG_FILES
34726   CONFIG_HEADERS  = $CONFIG_HEADERS
34727   CONFIG_LINKS    = $CONFIG_LINKS
34728   CONFIG_COMMANDS = $CONFIG_COMMANDS
34729   $ $0 $@
34730
34731 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34732 "
34733
34734 _ACEOF
34735
34736 cat >>$CONFIG_STATUS <<_ACEOF
34737 # Files that config.status was made for.
34738 config_files="$ac_config_files"
34739 config_headers="$ac_config_headers"
34740 config_commands="$ac_config_commands"
34741
34742 _ACEOF
34743
34744 cat >>$CONFIG_STATUS <<\_ACEOF
34745 ac_cs_usage="\
34746 \`$as_me' instantiates files from templates according to the
34747 current configuration.
34748
34749 Usage: $0 [OPTIONS] [FILE]...
34750
34751   -h, --help       print this help, then exit
34752   -V, --version    print version number, then exit
34753   -q, --quiet      do not print progress messages
34754   -d, --debug      don't remove temporary files
34755       --recheck    update $as_me by reconfiguring in the same conditions
34756   --file=FILE[:TEMPLATE]
34757                    instantiate the configuration file FILE
34758   --header=FILE[:TEMPLATE]
34759                    instantiate the configuration header FILE
34760
34761 Configuration files:
34762 $config_files
34763
34764 Configuration headers:
34765 $config_headers
34766
34767 Configuration commands:
34768 $config_commands
34769
34770 Report bugs to <bug-autoconf@gnu.org>."
34771
34772 _ACEOF
34773 cat >>$CONFIG_STATUS <<_ACEOF
34774 ac_cs_version="\\
34775 llvm config.status 2.4svn
34776 configured by $0, generated by GNU Autoconf 2.60,
34777   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34778
34779 Copyright (C) 2006 Free Software Foundation, Inc.
34780 This config.status script is free software; the Free Software Foundation
34781 gives unlimited permission to copy, distribute and modify it."
34782
34783 ac_pwd='$ac_pwd'
34784 srcdir='$srcdir'
34785 INSTALL='$INSTALL'
34786 _ACEOF
34787
34788 cat >>$CONFIG_STATUS <<\_ACEOF
34789 # If no file are specified by the user, then we need to provide default
34790 # value.  By we need to know if files were specified by the user.
34791 ac_need_defaults=:
34792 while test $# != 0
34793 do
34794   case $1 in
34795   --*=*)
34796     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34797     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34798     ac_shift=:
34799     ;;
34800   *)
34801     ac_option=$1
34802     ac_optarg=$2
34803     ac_shift=shift
34804     ;;
34805   esac
34806
34807   case $ac_option in
34808   # Handling of the options.
34809   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34810     ac_cs_recheck=: ;;
34811   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34812     echo "$ac_cs_version"; exit ;;
34813   --debug | --debu | --deb | --de | --d | -d )
34814     debug=: ;;
34815   --file | --fil | --fi | --f )
34816     $ac_shift
34817     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34818     ac_need_defaults=false;;
34819   --header | --heade | --head | --hea )
34820     $ac_shift
34821     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34822     ac_need_defaults=false;;
34823   --he | --h)
34824     # Conflict between --help and --header
34825     { echo "$as_me: error: ambiguous option: $1
34826 Try \`$0 --help' for more information." >&2
34827    { (exit 1); exit 1; }; };;
34828   --help | --hel | -h )
34829     echo "$ac_cs_usage"; exit ;;
34830   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34831   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34832     ac_cs_silent=: ;;
34833
34834   # This is an error.
34835   -*) { echo "$as_me: error: unrecognized option: $1
34836 Try \`$0 --help' for more information." >&2
34837    { (exit 1); exit 1; }; } ;;
34838
34839   *) ac_config_targets="$ac_config_targets $1"
34840      ac_need_defaults=false ;;
34841
34842   esac
34843   shift
34844 done
34845
34846 ac_configure_extra_args=
34847
34848 if $ac_cs_silent; then
34849   exec 6>/dev/null
34850   ac_configure_extra_args="$ac_configure_extra_args --silent"
34851 fi
34852
34853 _ACEOF
34854 cat >>$CONFIG_STATUS <<_ACEOF
34855 if \$ac_cs_recheck; then
34856   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34857   CONFIG_SHELL=$SHELL
34858   export CONFIG_SHELL
34859   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34860 fi
34861
34862 _ACEOF
34863 cat >>$CONFIG_STATUS <<\_ACEOF
34864 exec 5>>config.log
34865 {
34866   echo
34867   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34868 ## Running $as_me. ##
34869 _ASBOX
34870   echo "$ac_log"
34871 } >&5
34872
34873 _ACEOF
34874 cat >>$CONFIG_STATUS <<_ACEOF
34875 #
34876 # INIT-COMMANDS
34877 #
34878 llvm_src="${srcdir}"
34879
34880 _ACEOF
34881
34882 cat >>$CONFIG_STATUS <<\_ACEOF
34883
34884 # Handling of arguments.
34885 for ac_config_target in $ac_config_targets
34886 do
34887   case $ac_config_target in
34888     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34889     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34890     "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
34891     "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
34892     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34893     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34894     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34895     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34896     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34897     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34898     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34899     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34900     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34901     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34902     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34903     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34904     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34905     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34906     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34907     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34908     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34909     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34910
34911   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34912 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34913    { (exit 1); exit 1; }; };;
34914   esac
34915 done
34916
34917
34918 # If the user did not use the arguments to specify the items to instantiate,
34919 # then the envvar interface is used.  Set only those that are not.
34920 # We use the long form for the default assignment because of an extremely
34921 # bizarre bug on SunOS 4.1.3.
34922 if $ac_need_defaults; then
34923   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34924   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34925   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34926 fi
34927
34928 # Have a temporary directory for convenience.  Make it in the build tree
34929 # simply because there is no reason against having it here, and in addition,
34930 # creating and moving files from /tmp can sometimes cause problems.
34931 # Hook for its removal unless debugging.
34932 # Note that there is a small window in which the directory will not be cleaned:
34933 # after its creation but before its name has been assigned to `$tmp'.
34934 $debug ||
34935 {
34936   tmp=
34937   trap 'exit_status=$?
34938   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34939 ' 0
34940   trap '{ (exit 1); exit 1; }' 1 2 13 15
34941 }
34942 # Create a (secure) tmp directory for tmp files.
34943
34944 {
34945   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34946   test -n "$tmp" && test -d "$tmp"
34947 }  ||
34948 {
34949   tmp=./conf$$-$RANDOM
34950   (umask 077 && mkdir "$tmp")
34951 } ||
34952 {
34953    echo "$me: cannot create a temporary directory in ." >&2
34954    { (exit 1); exit 1; }
34955 }
34956
34957 #
34958 # Set up the sed scripts for CONFIG_FILES section.
34959 #
34960
34961 # No need to generate the scripts if there are no CONFIG_FILES.
34962 # This happens for instance when ./config.status config.h
34963 if test -n "$CONFIG_FILES"; then
34964
34965 _ACEOF
34966
34967
34968
34969 ac_delim='%!_!# '
34970 for ac_last_try in false false false false false :; do
34971   cat >conf$$subs.sed <<_ACEOF
34972 SHELL!$SHELL$ac_delim
34973 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34974 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34975 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34976 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34977 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34978 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34979 exec_prefix!$exec_prefix$ac_delim
34980 prefix!$prefix$ac_delim
34981 program_transform_name!$program_transform_name$ac_delim
34982 bindir!$bindir$ac_delim
34983 sbindir!$sbindir$ac_delim
34984 libexecdir!$libexecdir$ac_delim
34985 datarootdir!$datarootdir$ac_delim
34986 datadir!$datadir$ac_delim
34987 sysconfdir!$sysconfdir$ac_delim
34988 sharedstatedir!$sharedstatedir$ac_delim
34989 localstatedir!$localstatedir$ac_delim
34990 includedir!$includedir$ac_delim
34991 oldincludedir!$oldincludedir$ac_delim
34992 docdir!$docdir$ac_delim
34993 infodir!$infodir$ac_delim
34994 htmldir!$htmldir$ac_delim
34995 dvidir!$dvidir$ac_delim
34996 pdfdir!$pdfdir$ac_delim
34997 psdir!$psdir$ac_delim
34998 libdir!$libdir$ac_delim
34999 localedir!$localedir$ac_delim
35000 mandir!$mandir$ac_delim
35001 DEFS!$DEFS$ac_delim
35002 ECHO_C!$ECHO_C$ac_delim
35003 ECHO_N!$ECHO_N$ac_delim
35004 ECHO_T!$ECHO_T$ac_delim
35005 LIBS!$LIBS$ac_delim
35006 build_alias!$build_alias$ac_delim
35007 host_alias!$host_alias$ac_delim
35008 target_alias!$target_alias$ac_delim
35009 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35010 subdirs!$subdirs$ac_delim
35011 build!$build$ac_delim
35012 build_cpu!$build_cpu$ac_delim
35013 build_vendor!$build_vendor$ac_delim
35014 build_os!$build_os$ac_delim
35015 host!$host$ac_delim
35016 host_cpu!$host_cpu$ac_delim
35017 host_vendor!$host_vendor$ac_delim
35018 host_os!$host_os$ac_delim
35019 target!$target$ac_delim
35020 target_cpu!$target_cpu$ac_delim
35021 target_vendor!$target_vendor$ac_delim
35022 target_os!$target_os$ac_delim
35023 OS!$OS$ac_delim
35024 LINKALL!$LINKALL$ac_delim
35025 NOLINKALL!$NOLINKALL$ac_delim
35026 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35027 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35028 ARCH!$ARCH$ac_delim
35029 ENDIAN!$ENDIAN$ac_delim
35030 CC!$CC$ac_delim
35031 CFLAGS!$CFLAGS$ac_delim
35032 LDFLAGS!$LDFLAGS$ac_delim
35033 CPPFLAGS!$CPPFLAGS$ac_delim
35034 ac_ct_CC!$ac_ct_CC$ac_delim
35035 EXEEXT!$EXEEXT$ac_delim
35036 OBJEXT!$OBJEXT$ac_delim
35037 CPP!$CPP$ac_delim
35038 GREP!$GREP$ac_delim
35039 EGREP!$EGREP$ac_delim
35040 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35041 BUILD_CC!$BUILD_CC$ac_delim
35042 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35043 CVSBUILD!$CVSBUILD$ac_delim
35044 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35045 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35046 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35047 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35048 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35049 JIT!$JIT$ac_delim
35050 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35051 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35052 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35053 ENABLE_PIC!$ENABLE_PIC$ac_delim
35054 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35055 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35056 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35057 CXX!$CXX$ac_delim
35058 CXXFLAGS!$CXXFLAGS$ac_delim
35059 ac_ct_CXX!$ac_ct_CXX$ac_delim
35060 LEX!$LEX$ac_delim
35061 LEXLIB!$LEXLIB$ac_delim
35062 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35063 FLEX!$FLEX$ac_delim
35064 YACC!$YACC$ac_delim
35065 YFLAGS!$YFLAGS$ac_delim
35066 BISON!$BISON$ac_delim
35067 NM!$NM$ac_delim
35068 ifGNUmake!$ifGNUmake$ac_delim
35069 _ACEOF
35070
35071   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35072     break
35073   elif $ac_last_try; then
35074     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35075 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35076    { (exit 1); exit 1; }; }
35077   else
35078     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35079   fi
35080 done
35081
35082 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35083 if test -n "$ac_eof"; then
35084   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35085   ac_eof=`expr $ac_eof + 1`
35086 fi
35087
35088 cat >>$CONFIG_STATUS <<_ACEOF
35089 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35090 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35091 _ACEOF
35092 sed '
35093 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35094 s/^/s,@/; s/!/@,|#_!!_#|/
35095 :n
35096 t n
35097 s/'"$ac_delim"'$/,g/; t
35098 s/$/\\/; p
35099 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35100 ' >>$CONFIG_STATUS <conf$$subs.sed
35101 rm -f conf$$subs.sed
35102 cat >>$CONFIG_STATUS <<_ACEOF
35103 CEOF$ac_eof
35104 _ACEOF
35105
35106
35107 ac_delim='%!_!# '
35108 for ac_last_try in false false false false false :; do
35109   cat >conf$$subs.sed <<_ACEOF
35110 LN_S!$LN_S$ac_delim
35111 CMP!$CMP$ac_delim
35112 CP!$CP$ac_delim
35113 DATE!$DATE$ac_delim
35114 FIND!$FIND$ac_delim
35115 MKDIR!$MKDIR$ac_delim
35116 MV!$MV$ac_delim
35117 RANLIB!$RANLIB$ac_delim
35118 RM!$RM$ac_delim
35119 SED!$SED$ac_delim
35120 TAR!$TAR$ac_delim
35121 BINPWD!$BINPWD$ac_delim
35122 GRAPHVIZ!$GRAPHVIZ$ac_delim
35123 DOT!$DOT$ac_delim
35124 GV!$GV$ac_delim
35125 DOTTY!$DOTTY$ac_delim
35126 PERL!$PERL$ac_delim
35127 HAVE_PERL!$HAVE_PERL$ac_delim
35128 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35129 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35130 INSTALL_DATA!$INSTALL_DATA$ac_delim
35131 BZIP2!$BZIP2$ac_delim
35132 DOXYGEN!$DOXYGEN$ac_delim
35133 GROFF!$GROFF$ac_delim
35134 GZIP!$GZIP$ac_delim
35135 POD2HTML!$POD2HTML$ac_delim
35136 POD2MAN!$POD2MAN$ac_delim
35137 RUNTEST!$RUNTEST$ac_delim
35138 TCLSH!$TCLSH$ac_delim
35139 ZIP!$ZIP$ac_delim
35140 OCAMLC!$OCAMLC$ac_delim
35141 OCAMLOPT!$OCAMLOPT$ac_delim
35142 OCAMLDEP!$OCAMLDEP$ac_delim
35143 OCAMLDOC!$OCAMLDOC$ac_delim
35144 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35145 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35146 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35147 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35148 LIBADD_DL!$LIBADD_DL$ac_delim
35149 ECHO!$ECHO$ac_delim
35150 AR!$AR$ac_delim
35151 STRIP!$STRIP$ac_delim
35152 CXXCPP!$CXXCPP$ac_delim
35153 F77!$F77$ac_delim
35154 FFLAGS!$FFLAGS$ac_delim
35155 ac_ct_F77!$ac_ct_F77$ac_delim
35156 LIBTOOL!$LIBTOOL$ac_delim
35157 LLVMGCC!$LLVMGCC$ac_delim
35158 LLVMGXX!$LLVMGXX$ac_delim
35159 USE_UDIS86!$USE_UDIS86$ac_delim
35160 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35161 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35162 ALLOCA!$ALLOCA$ac_delim
35163 MMAP_FILE!$MMAP_FILE$ac_delim
35164 LLVMCC1!$LLVMCC1$ac_delim
35165 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35166 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35167 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35168 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35169 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35170 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35171 SHLIBEXT!$SHLIBEXT$ac_delim
35172 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35173 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35174 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35175 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35176 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35177 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35178 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35179 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35180 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35181 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35182 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35183 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35184 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35185 LIBOBJS!$LIBOBJS$ac_delim
35186 LTLIBOBJS!$LTLIBOBJS$ac_delim
35187 _ACEOF
35188
35189   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
35190     break
35191   elif $ac_last_try; then
35192     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35193 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35194    { (exit 1); exit 1; }; }
35195   else
35196     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35197   fi
35198 done
35199
35200 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35201 if test -n "$ac_eof"; then
35202   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35203   ac_eof=`expr $ac_eof + 1`
35204 fi
35205
35206 cat >>$CONFIG_STATUS <<_ACEOF
35207 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35208 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35209 _ACEOF
35210 sed '
35211 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35212 s/^/s,@/; s/!/@,|#_!!_#|/
35213 :n
35214 t n
35215 s/'"$ac_delim"'$/,g/; t
35216 s/$/\\/; p
35217 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35218 ' >>$CONFIG_STATUS <conf$$subs.sed
35219 rm -f conf$$subs.sed
35220 cat >>$CONFIG_STATUS <<_ACEOF
35221 :end
35222 s/|#_!!_#|//g
35223 CEOF$ac_eof
35224 _ACEOF
35225
35226
35227 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35228 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35229 # trailing colons and then remove the whole line if VPATH becomes empty
35230 # (actually we leave an empty line to preserve line numbers).
35231 if test "x$srcdir" = x.; then
35232   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35233 s/:*\$(srcdir):*/:/
35234 s/:*\${srcdir}:*/:/
35235 s/:*@srcdir@:*/:/
35236 s/^\([^=]*=[     ]*\):*/\1/
35237 s/:*$//
35238 s/^[^=]*=[       ]*$//
35239 }'
35240 fi
35241
35242 cat >>$CONFIG_STATUS <<\_ACEOF
35243 fi # test -n "$CONFIG_FILES"
35244
35245
35246 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35247 do
35248   case $ac_tag in
35249   :[FHLC]) ac_mode=$ac_tag; continue;;
35250   esac
35251   case $ac_mode$ac_tag in
35252   :[FHL]*:*);;
35253   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35254 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35255    { (exit 1); exit 1; }; };;
35256   :[FH]-) ac_tag=-:-;;
35257   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35258   esac
35259   ac_save_IFS=$IFS
35260   IFS=:
35261   set x $ac_tag
35262   IFS=$ac_save_IFS
35263   shift
35264   ac_file=$1
35265   shift
35266
35267   case $ac_mode in
35268   :L) ac_source=$1;;
35269   :[FH])
35270     ac_file_inputs=
35271     for ac_f
35272     do
35273       case $ac_f in
35274       -) ac_f="$tmp/stdin";;
35275       *) # Look for the file first in the build tree, then in the source tree
35276          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35277          # because $ac_f cannot contain `:'.
35278          test -f "$ac_f" ||
35279            case $ac_f in
35280            [\\/$]*) false;;
35281            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35282            esac ||
35283            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35284 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35285    { (exit 1); exit 1; }; };;
35286       esac
35287       ac_file_inputs="$ac_file_inputs $ac_f"
35288     done
35289
35290     # Let's still pretend it is `configure' which instantiates (i.e., don't
35291     # use $as_me), people would be surprised to read:
35292     #    /* config.h.  Generated by config.status.  */
35293     configure_input="Generated from "`IFS=:
35294           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35295     if test x"$ac_file" != x-; then
35296       configure_input="$ac_file.  $configure_input"
35297       { echo "$as_me:$LINENO: creating $ac_file" >&5
35298 echo "$as_me: creating $ac_file" >&6;}
35299     fi
35300
35301     case $ac_tag in
35302     *:-:* | *:-) cat >"$tmp/stdin";;
35303     esac
35304     ;;
35305   esac
35306
35307   ac_dir=`$as_dirname -- "$ac_file" ||
35308 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35309          X"$ac_file" : 'X\(//\)[^/]' \| \
35310          X"$ac_file" : 'X\(//\)$' \| \
35311          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35312 echo X"$ac_file" |
35313     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35314             s//\1/
35315             q
35316           }
35317           /^X\(\/\/\)[^/].*/{
35318             s//\1/
35319             q
35320           }
35321           /^X\(\/\/\)$/{
35322             s//\1/
35323             q
35324           }
35325           /^X\(\/\).*/{
35326             s//\1/
35327             q
35328           }
35329           s/.*/./; q'`
35330   { as_dir="$ac_dir"
35331   case $as_dir in #(
35332   -*) as_dir=./$as_dir;;
35333   esac
35334   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35335     as_dirs=
35336     while :; do
35337       case $as_dir in #(
35338       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35339       *) as_qdir=$as_dir;;
35340       esac
35341       as_dirs="'$as_qdir' $as_dirs"
35342       as_dir=`$as_dirname -- "$as_dir" ||
35343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35344          X"$as_dir" : 'X\(//\)[^/]' \| \
35345          X"$as_dir" : 'X\(//\)$' \| \
35346          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35347 echo X"$as_dir" |
35348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35349             s//\1/
35350             q
35351           }
35352           /^X\(\/\/\)[^/].*/{
35353             s//\1/
35354             q
35355           }
35356           /^X\(\/\/\)$/{
35357             s//\1/
35358             q
35359           }
35360           /^X\(\/\).*/{
35361             s//\1/
35362             q
35363           }
35364           s/.*/./; q'`
35365       test -d "$as_dir" && break
35366     done
35367     test -z "$as_dirs" || eval "mkdir $as_dirs"
35368   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35369 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35370    { (exit 1); exit 1; }; }; }
35371   ac_builddir=.
35372
35373 case "$ac_dir" in
35374 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35375 *)
35376   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35377   # A ".." for each directory in $ac_dir_suffix.
35378   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35379   case $ac_top_builddir_sub in
35380   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35381   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35382   esac ;;
35383 esac
35384 ac_abs_top_builddir=$ac_pwd
35385 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35386 # for backward compatibility:
35387 ac_top_builddir=$ac_top_build_prefix
35388
35389 case $srcdir in
35390   .)  # We are building in place.
35391     ac_srcdir=.
35392     ac_top_srcdir=$ac_top_builddir_sub
35393     ac_abs_top_srcdir=$ac_pwd ;;
35394   [\\/]* | ?:[\\/]* )  # Absolute name.
35395     ac_srcdir=$srcdir$ac_dir_suffix;
35396     ac_top_srcdir=$srcdir
35397     ac_abs_top_srcdir=$srcdir ;;
35398   *) # Relative name.
35399     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35400     ac_top_srcdir=$ac_top_build_prefix$srcdir
35401     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35402 esac
35403 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35404
35405
35406   case $ac_mode in
35407   :F)
35408   #
35409   # CONFIG_FILE
35410   #
35411
35412   case $INSTALL in
35413   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35414   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35415   esac
35416 _ACEOF
35417
35418 cat >>$CONFIG_STATUS <<\_ACEOF
35419 # If the template does not know about datarootdir, expand it.
35420 # FIXME: This hack should be removed a few years after 2.60.
35421 ac_datarootdir_hack=; ac_datarootdir_seen=
35422
35423 case `sed -n '/datarootdir/ {
35424   p
35425   q
35426 }
35427 /@datadir@/p
35428 /@docdir@/p
35429 /@infodir@/p
35430 /@localedir@/p
35431 /@mandir@/p
35432 ' $ac_file_inputs` in
35433 *datarootdir*) ac_datarootdir_seen=yes;;
35434 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35435   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35436 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35437 _ACEOF
35438 cat >>$CONFIG_STATUS <<_ACEOF
35439   ac_datarootdir_hack='
35440   s&@datadir@&$datadir&g
35441   s&@docdir@&$docdir&g
35442   s&@infodir@&$infodir&g
35443   s&@localedir@&$localedir&g
35444   s&@mandir@&$mandir&g
35445     s&\\\${datarootdir}&$datarootdir&g' ;;
35446 esac
35447 _ACEOF
35448
35449 # Neutralize VPATH when `$srcdir' = `.'.
35450 # Shell code in configure.ac might set extrasub.
35451 # FIXME: do we really want to maintain this feature?
35452 cat >>$CONFIG_STATUS <<_ACEOF
35453   sed "$ac_vpsub
35454 $extrasub
35455 _ACEOF
35456 cat >>$CONFIG_STATUS <<\_ACEOF
35457 :t
35458 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35459 s&@configure_input@&$configure_input&;t t
35460 s&@top_builddir@&$ac_top_builddir_sub&;t t
35461 s&@srcdir@&$ac_srcdir&;t t
35462 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35463 s&@top_srcdir@&$ac_top_srcdir&;t t
35464 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35465 s&@builddir@&$ac_builddir&;t t
35466 s&@abs_builddir@&$ac_abs_builddir&;t t
35467 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35468 s&@INSTALL@&$ac_INSTALL&;t t
35469 $ac_datarootdir_hack
35470 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35471
35472 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35473   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35474   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35475   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35476 which seems to be undefined.  Please make sure it is defined." >&5
35477 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35478 which seems to be undefined.  Please make sure it is defined." >&2;}
35479
35480   rm -f "$tmp/stdin"
35481   case $ac_file in
35482   -) cat "$tmp/out"; rm -f "$tmp/out";;
35483   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35484   esac
35485  ;;
35486   :H)
35487   #
35488   # CONFIG_HEADER
35489   #
35490 _ACEOF
35491
35492 # Transform confdefs.h into a sed script `conftest.defines', that
35493 # substitutes the proper values into config.h.in to produce config.h.
35494 rm -f conftest.defines conftest.tail
35495 # First, append a space to every undef/define line, to ease matching.
35496 echo 's/$/ /' >conftest.defines
35497 # Then, protect against being on the right side of a sed subst, or in
35498 # an unquoted here document, in config.status.  If some macros were
35499 # called several times there might be several #defines for the same
35500 # symbol, which is useless.  But do not sort them, since the last
35501 # AC_DEFINE must be honored.
35502 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35503 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35504 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35505 # PARAMS is the parameter list in the macro definition--in most cases, it's
35506 # just an empty string.
35507 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35508 ac_dB='\\)[      (].*,\\1define\\2'
35509 ac_dC=' '
35510 ac_dD=' ,'
35511
35512 uniq confdefs.h |
35513   sed -n '
35514         t rset
35515         :rset
35516         s/^[     ]*#[    ]*define[       ][      ]*//
35517         t ok
35518         d
35519         :ok
35520         s/[\\&,]/\\&/g
35521         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35522         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35523   ' >>conftest.defines
35524
35525 # Remove the space that was appended to ease matching.
35526 # Then replace #undef with comments.  This is necessary, for
35527 # example, in the case of _POSIX_SOURCE, which is predefined and required
35528 # on some systems where configure will not decide to define it.
35529 # (The regexp can be short, since the line contains either #define or #undef.)
35530 echo 's/ $//
35531 s,^[     #]*u.*,/* & */,' >>conftest.defines
35532
35533 # Break up conftest.defines:
35534 ac_max_sed_lines=50
35535
35536 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35537 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35538 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35539 # et cetera.
35540 ac_in='$ac_file_inputs'
35541 ac_out='"$tmp/out1"'
35542 ac_nxt='"$tmp/out2"'
35543
35544 while :
35545 do
35546   # Write a here document:
35547     cat >>$CONFIG_STATUS <<_ACEOF
35548     # First, check the format of the line:
35549     cat >"\$tmp/defines.sed" <<\\CEOF
35550 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35551 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35552 b
35553 :def
35554 _ACEOF
35555   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35556   echo 'CEOF
35557     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35558   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35559   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35560   grep . conftest.tail >/dev/null || break
35561   rm -f conftest.defines
35562   mv conftest.tail conftest.defines
35563 done
35564 rm -f conftest.defines conftest.tail
35565
35566 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35567 cat >>$CONFIG_STATUS <<\_ACEOF
35568   if test x"$ac_file" != x-; then
35569     echo "/* $configure_input  */" >"$tmp/config.h"
35570     cat "$ac_result" >>"$tmp/config.h"
35571     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35572       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35573 echo "$as_me: $ac_file is unchanged" >&6;}
35574     else
35575       rm -f $ac_file
35576       mv "$tmp/config.h" $ac_file
35577     fi
35578   else
35579     echo "/* $configure_input  */"
35580     cat "$ac_result"
35581   fi
35582   rm -f "$tmp/out12"
35583  ;;
35584
35585   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35586 echo "$as_me: executing $ac_file commands" >&6;}
35587  ;;
35588   esac
35589
35590
35591   case $ac_file$ac_mode in
35592     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35593    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35594     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35595    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35596     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35597    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35598     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35599    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35600     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35601    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35602     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35603    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35604     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35605    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35606     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35607    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35608     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35609    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35610     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35611    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35612     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35613    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35614     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35615    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35616
35617   esac
35618 done # for ac_tag
35619
35620
35621 { (exit 0); exit 0; }
35622 _ACEOF
35623 chmod +x $CONFIG_STATUS
35624 ac_clean_files=$ac_clean_files_save
35625
35626
35627 # configure is writing to config.log, and then calls config.status.
35628 # config.status does its own redirection, appending to config.log.
35629 # Unfortunately, on DOS this fails, as config.log is still kept open
35630 # by configure, so config.status won't be able to write to it; its
35631 # output is simply discarded.  So we exec the FD to /dev/null,
35632 # effectively closing config.log, so it can be properly (re)opened and
35633 # appended to by config.status.  When coming back to configure, we
35634 # need to make the FD available again.
35635 if test "$no_create" != yes; then
35636   ac_cs_success=:
35637   ac_config_status_args=
35638   test "$silent" = yes &&
35639     ac_config_status_args="$ac_config_status_args --quiet"
35640   exec 5>/dev/null
35641   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35642   exec 5>>config.log
35643   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35644   # would make configure fail if this is the last instruction.
35645   $ac_cs_success || { (exit 1); exit 1; }
35646 fi
35647
35648 #
35649 # CONFIG_SUBDIRS section.
35650 #
35651 if test "$no_recursion" != yes; then
35652
35653   # Remove --cache-file and --srcdir arguments so they do not pile up.
35654   ac_sub_configure_args=
35655   ac_prev=
35656   eval "set x $ac_configure_args"
35657   shift
35658   for ac_arg
35659   do
35660     if test -n "$ac_prev"; then
35661       ac_prev=
35662       continue
35663     fi
35664     case $ac_arg in
35665     -cache-file | --cache-file | --cache-fil | --cache-fi \
35666     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35667       ac_prev=cache_file ;;
35668     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35669     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35670     | --c=*)
35671       ;;
35672     --config-cache | -C)
35673       ;;
35674     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35675       ac_prev=srcdir ;;
35676     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35677       ;;
35678     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35679       ac_prev=prefix ;;
35680     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35681       ;;
35682     *)
35683       case $ac_arg in
35684       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35685       esac
35686       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35687     esac
35688   done
35689
35690   # Always prepend --prefix to ensure using the same prefix
35691   # in subdir configurations.
35692   ac_arg="--prefix=$prefix"
35693   case $ac_arg in
35694   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35695   esac
35696   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35697
35698   ac_popdir=`pwd`
35699   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35700
35701     # Do not complain, so a configure script can configure whichever
35702     # parts of a large source tree are present.
35703     test -d "$srcdir/$ac_dir" || continue
35704
35705     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35706     echo "$as_me:$LINENO: $ac_msg" >&5
35707     echo "$ac_msg" >&6
35708     { as_dir="$ac_dir"
35709   case $as_dir in #(
35710   -*) as_dir=./$as_dir;;
35711   esac
35712   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35713     as_dirs=
35714     while :; do
35715       case $as_dir in #(
35716       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35717       *) as_qdir=$as_dir;;
35718       esac
35719       as_dirs="'$as_qdir' $as_dirs"
35720       as_dir=`$as_dirname -- "$as_dir" ||
35721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35722          X"$as_dir" : 'X\(//\)[^/]' \| \
35723          X"$as_dir" : 'X\(//\)$' \| \
35724          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35725 echo X"$as_dir" |
35726     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35727             s//\1/
35728             q
35729           }
35730           /^X\(\/\/\)[^/].*/{
35731             s//\1/
35732             q
35733           }
35734           /^X\(\/\/\)$/{
35735             s//\1/
35736             q
35737           }
35738           /^X\(\/\).*/{
35739             s//\1/
35740             q
35741           }
35742           s/.*/./; q'`
35743       test -d "$as_dir" && break
35744     done
35745     test -z "$as_dirs" || eval "mkdir $as_dirs"
35746   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35747 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35748    { (exit 1); exit 1; }; }; }
35749     ac_builddir=.
35750
35751 case "$ac_dir" in
35752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35753 *)
35754   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35755   # A ".." for each directory in $ac_dir_suffix.
35756   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35757   case $ac_top_builddir_sub in
35758   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35759   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35760   esac ;;
35761 esac
35762 ac_abs_top_builddir=$ac_pwd
35763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35764 # for backward compatibility:
35765 ac_top_builddir=$ac_top_build_prefix
35766
35767 case $srcdir in
35768   .)  # We are building in place.
35769     ac_srcdir=.
35770     ac_top_srcdir=$ac_top_builddir_sub
35771     ac_abs_top_srcdir=$ac_pwd ;;
35772   [\\/]* | ?:[\\/]* )  # Absolute name.
35773     ac_srcdir=$srcdir$ac_dir_suffix;
35774     ac_top_srcdir=$srcdir
35775     ac_abs_top_srcdir=$srcdir ;;
35776   *) # Relative name.
35777     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35778     ac_top_srcdir=$ac_top_build_prefix$srcdir
35779     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35780 esac
35781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35782
35783
35784     cd "$ac_dir"
35785
35786     # Check for guested configure; otherwise get Cygnus style configure.
35787     if test -f "$ac_srcdir/configure.gnu"; then
35788       ac_sub_configure=$ac_srcdir/configure.gnu
35789     elif test -f "$ac_srcdir/configure"; then
35790       ac_sub_configure=$ac_srcdir/configure
35791     elif test -f "$ac_srcdir/configure.in"; then
35792       # This should be Cygnus configure.
35793       ac_sub_configure=$ac_aux_dir/configure
35794     else
35795       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35796 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35797       ac_sub_configure=
35798     fi
35799
35800     # The recursion is here.
35801     if test -n "$ac_sub_configure"; then
35802       # Make the cache file name correct relative to the subdirectory.
35803       case $cache_file in
35804       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35805       *) # Relative name.
35806         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35807       esac
35808
35809       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35810 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35811       # The eval makes quoting arguments work.
35812       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35813            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35814         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35815 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35816    { (exit 1); exit 1; }; }
35817     fi
35818
35819     cd "$ac_popdir"
35820   done
35821 fi
35822