Cleanup for unitialized types. Patch by Jean-Daniel Dupas!
[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 is the old name of the test-suite, kept here for backwards
2094       # compatibility
2095       llvm-test)    subdirs="$subdirs projects/llvm-test"
2096  ;;
2097       test-suite)   subdirs="$subdirs projects/test-suite"
2098  ;;
2099       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2100 ;;
2101       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2102   ;;
2103       llvm-java)    subdirs="$subdirs projects/llvm-java"
2104  ;;
2105       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2106    ;;
2107       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2108  ;;
2109       poolalloc)    subdirs="$subdirs projects/poolalloc"
2110  ;;
2111       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2112  ;;
2113       *)
2114         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2115 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2116         ;;
2117     esac
2118   fi
2119 done
2120
2121
2122 # Make sure we can run config.sub.
2123 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2124   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2125 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2126    { (exit 1); exit 1; }; }
2127
2128 { echo "$as_me:$LINENO: checking build system type" >&5
2129 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2130 if test "${ac_cv_build+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   ac_build_alias=$build_alias
2134 test "x$ac_build_alias" = x &&
2135   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2136 test "x$ac_build_alias" = x &&
2137   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2138 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2139    { (exit 1); exit 1; }; }
2140 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2141   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2142 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2143    { (exit 1); exit 1; }; }
2144
2145 fi
2146 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2147 echo "${ECHO_T}$ac_cv_build" >&6; }
2148 case $ac_cv_build in
2149 *-*-*) ;;
2150 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2151 echo "$as_me: error: invalid value of canonical build" >&2;}
2152    { (exit 1); exit 1; }; };;
2153 esac
2154 build=$ac_cv_build
2155 ac_save_IFS=$IFS; IFS='-'
2156 set x $ac_cv_build
2157 shift
2158 build_cpu=$1
2159 build_vendor=$2
2160 shift; shift
2161 # Remember, the first character of IFS is used to create $*,
2162 # except with old shells:
2163 build_os=$*
2164 IFS=$ac_save_IFS
2165 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2166
2167
2168 { echo "$as_me:$LINENO: checking host system type" >&5
2169 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2170 if test "${ac_cv_host+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   if test "x$host_alias" = x; then
2174   ac_cv_host=$ac_cv_build
2175 else
2176   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2177     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2178 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2179    { (exit 1); exit 1; }; }
2180 fi
2181
2182 fi
2183 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2184 echo "${ECHO_T}$ac_cv_host" >&6; }
2185 case $ac_cv_host in
2186 *-*-*) ;;
2187 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2188 echo "$as_me: error: invalid value of canonical host" >&2;}
2189    { (exit 1); exit 1; }; };;
2190 esac
2191 host=$ac_cv_host
2192 ac_save_IFS=$IFS; IFS='-'
2193 set x $ac_cv_host
2194 shift
2195 host_cpu=$1
2196 host_vendor=$2
2197 shift; shift
2198 # Remember, the first character of IFS is used to create $*,
2199 # except with old shells:
2200 host_os=$*
2201 IFS=$ac_save_IFS
2202 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2203
2204
2205 { echo "$as_me:$LINENO: checking target system type" >&5
2206 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2207 if test "${ac_cv_target+set}" = set; then
2208   echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210   if test "x$target_alias" = x; then
2211   ac_cv_target=$ac_cv_host
2212 else
2213   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2214     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2215 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2216    { (exit 1); exit 1; }; }
2217 fi
2218
2219 fi
2220 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2221 echo "${ECHO_T}$ac_cv_target" >&6; }
2222 case $ac_cv_target in
2223 *-*-*) ;;
2224 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2225 echo "$as_me: error: invalid value of canonical target" >&2;}
2226    { (exit 1); exit 1; }; };;
2227 esac
2228 target=$ac_cv_target
2229 ac_save_IFS=$IFS; IFS='-'
2230 set x $ac_cv_target
2231 shift
2232 target_cpu=$1
2233 target_vendor=$2
2234 shift; shift
2235 # Remember, the first character of IFS is used to create $*,
2236 # except with old shells:
2237 target_os=$*
2238 IFS=$ac_save_IFS
2239 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2240
2241
2242 # The aliases save the names the user supplied, while $host etc.
2243 # will get canonicalized.
2244 test -n "$target_alias" &&
2245   test "$program_prefix$program_suffix$program_transform_name" = \
2246     NONENONEs,x,x, &&
2247   program_prefix=${target_alias}-
2248
2249 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2250 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2251 if test "${llvm_cv_os_type+set}" = set; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   case $host in
2255   *-*-aix*)
2256     llvm_cv_link_all_option="-Wl,--whole-archive"
2257     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258     llvm_cv_os_type="AIX"
2259     llvm_cv_platform_type="Unix" ;;
2260   *-*-irix*)
2261     llvm_cv_link_all_option="-Wl,--whole-archive"
2262     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2263     llvm_cv_os_type="IRIX"
2264     llvm_cv_platform_type="Unix" ;;
2265   *-*-cygwin*)
2266     llvm_cv_link_all_option="-Wl,--whole-archive"
2267     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2268     llvm_cv_os_type="Cygwin"
2269     llvm_cv_platform_type="Unix" ;;
2270   *-*-darwin*)
2271     llvm_cv_link_all_option="-Wl,-all_load"
2272     llvm_cv_no_link_all_option="-Wl,-noall_load"
2273     llvm_cv_os_type="Darwin"
2274     llvm_cv_platform_type="Unix" ;;
2275   *-*-freebsd*)
2276     llvm_cv_link_all_option="-Wl,--whole-archive"
2277     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278     llvm_cv_os_type="FreeBSD"
2279     llvm_cv_platform_type="Unix" ;;
2280   *-*-openbsd*)
2281     llvm_cv_link_all_option="-Wl,--whole-archive"
2282     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283     llvm_cv_os_type="OpenBSD"
2284     llvm_cv_platform_type="Unix" ;;
2285   *-*-netbsd*)
2286     llvm_cv_link_all_option="-Wl,--whole-archive"
2287     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288     llvm_cv_os_type="NetBSD"
2289     llvm_cv_platform_type="Unix" ;;
2290   *-*-hpux*)
2291     llvm_cv_link_all_option="-Wl,--whole-archive"
2292     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2293     llvm_cv_os_type="HP-UX"
2294     llvm_cv_platform_type="Unix" ;;
2295   *-*-interix*)
2296     llvm_cv_link_all_option="-Wl,--whole-archive"
2297     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298     llvm_cv_os_type="Interix"
2299     llvm_cv_platform_type="Unix" ;;
2300   *-*-linux*)
2301     llvm_cv_link_all_option="-Wl,--whole-archive"
2302     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2303     llvm_cv_os_type="Linux"
2304     llvm_cv_platform_type="Unix" ;;
2305   *-*-solaris*)
2306     llvm_cv_link_all_option="-Wl,-z,allextract"
2307     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2308     llvm_cv_os_type="SunOS"
2309     llvm_cv_platform_type="Unix" ;;
2310   *-*-win32*)
2311     llvm_cv_link_all_option="-Wl,--whole-archive"
2312     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313     llvm_cv_os_type="Win32"
2314     llvm_cv_platform_type="Win32" ;;
2315   *-*-mingw*)
2316     llvm_cv_link_all_option="-Wl,--whole-archive"
2317     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2318     llvm_cv_os_type="MingW"
2319     llvm_cv_platform_type="Win32" ;;
2320   *)
2321     llvm_cv_link_all_option=""
2322     llvm_cv_no_link_all_option=""
2323     llvm_cv_os_type="Unknown"
2324     llvm_cv_platform_type="Unknown" ;;
2325 esac
2326 fi
2327 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2328 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2329
2330 if test "$llvm_cv_os_type" = "Unknown" ; then
2331   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2332 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2333    { (exit 1); exit 1; }; }
2334 fi
2335
2336 OS=$llvm_cv_os_type
2337
2338
2339 LINKALL=$llvm_cv_link_all_option
2340
2341 NOLINKALL=$llvm_cv_no_link_all_option
2342
2343
2344 case $llvm_cv_platform_type in
2345   Unix)
2346
2347 cat >>confdefs.h <<\_ACEOF
2348 #define LLVM_ON_UNIX 1
2349 _ACEOF
2350
2351     LLVM_ON_UNIX=1
2352
2353     LLVM_ON_WIN32=0
2354
2355     ;;
2356   Win32)
2357
2358 cat >>confdefs.h <<\_ACEOF
2359 #define LLVM_ON_WIN32 1
2360 _ACEOF
2361
2362     LLVM_ON_UNIX=0
2363
2364     LLVM_ON_WIN32=1
2365
2366     ;;
2367 esac
2368
2369 { echo "$as_me:$LINENO: checking target architecture" >&5
2370 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2371 if test "${llvm_cv_target_arch+set}" = set; then
2372   echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374   case $target in
2375   i?86-*)                 llvm_cv_target_arch="x86" ;;
2376   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2377   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2378   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2379   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2380   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2381   arm-*)                  llvm_cv_target_arch="ARM" ;;
2382   mips-*)                 llvm_cv_target_arch="Mips" ;;
2383   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2384   *)                      llvm_cv_target_arch="Unknown" ;;
2385 esac
2386 fi
2387 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2388 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2389
2390 if test "$llvm_cv_target_arch" = "Unknown" ; then
2391   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2392 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2393 fi
2394
2395 ARCH=$llvm_cv_target_arch
2396
2397
2398 ac_ext=c
2399 ac_cpp='$CPP $CPPFLAGS'
2400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2403 if test -n "$ac_tool_prefix"; then
2404   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2405 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2408 if test "${ac_cv_prog_CC+set}" = set; then
2409   echo $ECHO_N "(cached) $ECHO_C" >&6
2410 else
2411   if test -n "$CC"; then
2412   ac_cv_prog_CC="$CC" # Let the user override the test.
2413 else
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH
2416 do
2417   IFS=$as_save_IFS
2418   test -z "$as_dir" && as_dir=.
2419   for ac_exec_ext in '' $ac_executable_extensions; do
2420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2421     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423     break 2
2424   fi
2425 done
2426 done
2427 IFS=$as_save_IFS
2428
2429 fi
2430 fi
2431 CC=$ac_cv_prog_CC
2432 if test -n "$CC"; then
2433   { echo "$as_me:$LINENO: result: $CC" >&5
2434 echo "${ECHO_T}$CC" >&6; }
2435 else
2436   { echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6; }
2438 fi
2439
2440
2441 fi
2442 if test -z "$ac_cv_prog_CC"; then
2443   ac_ct_CC=$CC
2444   # Extract the first word of "gcc", so it can be a program name with args.
2445 set dummy gcc; ac_word=$2
2446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2449   echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451   if test -n "$ac_ct_CC"; then
2452   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2453 else
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2456 do
2457   IFS=$as_save_IFS
2458   test -z "$as_dir" && as_dir=.
2459   for ac_exec_ext in '' $ac_executable_extensions; do
2460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2461     ac_cv_prog_ac_ct_CC="gcc"
2462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463     break 2
2464   fi
2465 done
2466 done
2467 IFS=$as_save_IFS
2468
2469 fi
2470 fi
2471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2472 if test -n "$ac_ct_CC"; then
2473   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2474 echo "${ECHO_T}$ac_ct_CC" >&6; }
2475 else
2476   { echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6; }
2478 fi
2479
2480   if test "x$ac_ct_CC" = x; then
2481     CC=""
2482   else
2483     case $cross_compiling:$ac_tool_warned in
2484 yes:)
2485 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2486 whose name does not start with the host triplet.  If you think this
2487 configuration is useful to you, please write to autoconf@gnu.org." >&5
2488 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2489 whose name does not start with the host triplet.  If you think this
2490 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2491 ac_tool_warned=yes ;;
2492 esac
2493     CC=$ac_ct_CC
2494   fi
2495 else
2496   CC="$ac_cv_prog_CC"
2497 fi
2498
2499 if test -z "$CC"; then
2500           if test -n "$ac_tool_prefix"; then
2501     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2502 set dummy ${ac_tool_prefix}cc; ac_word=$2
2503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2505 if test "${ac_cv_prog_CC+set}" = set; then
2506   echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508   if test -n "$CC"; then
2509   ac_cv_prog_CC="$CC" # Let the user override the test.
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
2514   IFS=$as_save_IFS
2515   test -z "$as_dir" && as_dir=.
2516   for ac_exec_ext in '' $ac_executable_extensions; do
2517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2518     ac_cv_prog_CC="${ac_tool_prefix}cc"
2519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520     break 2
2521   fi
2522 done
2523 done
2524 IFS=$as_save_IFS
2525
2526 fi
2527 fi
2528 CC=$ac_cv_prog_CC
2529 if test -n "$CC"; then
2530   { echo "$as_me:$LINENO: result: $CC" >&5
2531 echo "${ECHO_T}$CC" >&6; }
2532 else
2533   { echo "$as_me:$LINENO: result: no" >&5
2534 echo "${ECHO_T}no" >&6; }
2535 fi
2536
2537
2538   fi
2539 fi
2540 if test -z "$CC"; then
2541   # Extract the first word of "cc", so it can be a program name with args.
2542 set dummy cc; ac_word=$2
2543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2545 if test "${ac_cv_prog_CC+set}" = set; then
2546   echo $ECHO_N "(cached) $ECHO_C" >&6
2547 else
2548   if test -n "$CC"; then
2549   ac_cv_prog_CC="$CC" # Let the user override the test.
2550 else
2551   ac_prog_rejected=no
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2554 do
2555   IFS=$as_save_IFS
2556   test -z "$as_dir" && as_dir=.
2557   for ac_exec_ext in '' $ac_executable_extensions; do
2558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2559     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2560        ac_prog_rejected=yes
2561        continue
2562      fi
2563     ac_cv_prog_CC="cc"
2564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565     break 2
2566   fi
2567 done
2568 done
2569 IFS=$as_save_IFS
2570
2571 if test $ac_prog_rejected = yes; then
2572   # We found a bogon in the path, so make sure we never use it.
2573   set dummy $ac_cv_prog_CC
2574   shift
2575   if test $# != 0; then
2576     # We chose a different compiler from the bogus one.
2577     # However, it has the same basename, so the bogon will be chosen
2578     # first if we set CC to just the basename; use the full file name.
2579     shift
2580     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2581   fi
2582 fi
2583 fi
2584 fi
2585 CC=$ac_cv_prog_CC
2586 if test -n "$CC"; then
2587   { echo "$as_me:$LINENO: result: $CC" >&5
2588 echo "${ECHO_T}$CC" >&6; }
2589 else
2590   { echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6; }
2592 fi
2593
2594
2595 fi
2596 if test -z "$CC"; then
2597   if test -n "$ac_tool_prefix"; then
2598   for ac_prog in cl.exe
2599   do
2600     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2601 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604 if test "${ac_cv_prog_CC+set}" = set; then
2605   echo $ECHO_N "(cached) $ECHO_C" >&6
2606 else
2607   if test -n "$CC"; then
2608   ac_cv_prog_CC="$CC" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613   IFS=$as_save_IFS
2614   test -z "$as_dir" && as_dir=.
2615   for ac_exec_ext in '' $ac_executable_extensions; do
2616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2617     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619     break 2
2620   fi
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 CC=$ac_cv_prog_CC
2628 if test -n "$CC"; then
2629   { echo "$as_me:$LINENO: result: $CC" >&5
2630 echo "${ECHO_T}$CC" >&6; }
2631 else
2632   { echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6; }
2634 fi
2635
2636
2637     test -n "$CC" && break
2638   done
2639 fi
2640 if test -z "$CC"; then
2641   ac_ct_CC=$CC
2642   for ac_prog in cl.exe
2643 do
2644   # Extract the first word of "$ac_prog", so it can be a program name with args.
2645 set dummy $ac_prog; ac_word=$2
2646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2649   echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651   if test -n "$ac_ct_CC"; then
2652   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657   IFS=$as_save_IFS
2658   test -z "$as_dir" && as_dir=.
2659   for ac_exec_ext in '' $ac_executable_extensions; do
2660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2661     ac_cv_prog_ac_ct_CC="$ac_prog"
2662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663     break 2
2664   fi
2665 done
2666 done
2667 IFS=$as_save_IFS
2668
2669 fi
2670 fi
2671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2672 if test -n "$ac_ct_CC"; then
2673   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2674 echo "${ECHO_T}$ac_ct_CC" >&6; }
2675 else
2676   { echo "$as_me:$LINENO: result: no" >&5
2677 echo "${ECHO_T}no" >&6; }
2678 fi
2679
2680
2681   test -n "$ac_ct_CC" && break
2682 done
2683
2684   if test "x$ac_ct_CC" = x; then
2685     CC=""
2686   else
2687     case $cross_compiling:$ac_tool_warned in
2688 yes:)
2689 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2690 whose name does not start with the host triplet.  If you think this
2691 configuration is useful to you, please write to autoconf@gnu.org." >&5
2692 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2693 whose name does not start with the host triplet.  If you think this
2694 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2695 ac_tool_warned=yes ;;
2696 esac
2697     CC=$ac_ct_CC
2698   fi
2699 fi
2700
2701 fi
2702
2703
2704 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2705 See \`config.log' for more details." >&5
2706 echo "$as_me: error: no acceptable C compiler found in \$PATH
2707 See \`config.log' for more details." >&2;}
2708    { (exit 1); exit 1; }; }
2709
2710 # Provide some information about the compiler.
2711 echo "$as_me:$LINENO: checking for C compiler version" >&5
2712 ac_compiler=`set X $ac_compile; echo $2`
2713 { (ac_try="$ac_compiler --version >&5"
2714 case "(($ac_try" in
2715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716   *) ac_try_echo=$ac_try;;
2717 esac
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719   (eval "$ac_compiler --version >&5") 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); }
2723 { (ac_try="$ac_compiler -v >&5"
2724 case "(($ac_try" in
2725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726   *) ac_try_echo=$ac_try;;
2727 esac
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729   (eval "$ac_compiler -v >&5") 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }
2733 { (ac_try="$ac_compiler -V >&5"
2734 case "(($ac_try" in
2735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736   *) ac_try_echo=$ac_try;;
2737 esac
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739   (eval "$ac_compiler -V >&5") 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }
2743
2744 cat >conftest.$ac_ext <<_ACEOF
2745 /* confdefs.h.  */
2746 _ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h.  */
2750
2751 int
2752 main ()
2753 {
2754
2755   ;
2756   return 0;
2757 }
2758 _ACEOF
2759 ac_clean_files_save=$ac_clean_files
2760 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2761 # Try to create an executable without -o first, disregard a.out.
2762 # It will help us diagnose broken compilers, and finding out an intuition
2763 # of exeext.
2764 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2765 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2766 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2767 #
2768 # List of possible output files, starting from the most likely.
2769 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2770 # only as a last resort.  b.out is created by i960 compilers.
2771 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2772 #
2773 # The IRIX 6 linker writes into existing files which may not be
2774 # executable, retaining their permissions.  Remove them first so a
2775 # subsequent execution test works.
2776 ac_rmfiles=
2777 for ac_file in $ac_files
2778 do
2779   case $ac_file in
2780     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2781     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2782   esac
2783 done
2784 rm -f $ac_rmfiles
2785
2786 if { (ac_try="$ac_link_default"
2787 case "(($ac_try" in
2788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789   *) ac_try_echo=$ac_try;;
2790 esac
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792   (eval "$ac_link_default") 2>&5
2793   ac_status=$?
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); }; then
2796   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2797 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2798 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2799 # so that the user can short-circuit this test for compilers unknown to
2800 # Autoconf.
2801 for ac_file in $ac_files
2802 do
2803   test -f "$ac_file" || continue
2804   case $ac_file in
2805     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2806         ;;
2807     [ab].out )
2808         # We found the default executable, but exeext='' is most
2809         # certainly right.
2810         break;;
2811     *.* )
2812         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2813         then :; else
2814            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2815         fi
2816         # We set ac_cv_exeext here because the later test for it is not
2817         # safe: cross compilers may not add the suffix if given an `-o'
2818         # argument, so we may need to know it at that point already.
2819         # Even if this section looks crufty: it has the advantage of
2820         # actually working.
2821         break;;
2822     * )
2823         break;;
2824   esac
2825 done
2826 test "$ac_cv_exeext" = no && ac_cv_exeext=
2827
2828 else
2829   echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2831
2832 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2833 See \`config.log' for more details." >&5
2834 echo "$as_me: error: C compiler cannot create executables
2835 See \`config.log' for more details." >&2;}
2836    { (exit 77); exit 77; }; }
2837 fi
2838
2839 ac_exeext=$ac_cv_exeext
2840 { echo "$as_me:$LINENO: result: $ac_file" >&5
2841 echo "${ECHO_T}$ac_file" >&6; }
2842
2843 # Check that the compiler produces executables we can run.  If not, either
2844 # the compiler is broken, or we cross compile.
2845 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2846 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2847 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2848 # If not cross compiling, check that we can run a simple program.
2849 if test "$cross_compiling" != yes; then
2850   if { ac_try='./$ac_file'
2851   { (case "(($ac_try" in
2852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853   *) ac_try_echo=$ac_try;;
2854 esac
2855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856   (eval "$ac_try") 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); }; }; then
2860     cross_compiling=no
2861   else
2862     if test "$cross_compiling" = maybe; then
2863         cross_compiling=yes
2864     else
2865         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2866 If you meant to cross compile, use \`--host'.
2867 See \`config.log' for more details." >&5
2868 echo "$as_me: error: cannot run C compiled programs.
2869 If you meant to cross compile, use \`--host'.
2870 See \`config.log' for more details." >&2;}
2871    { (exit 1); exit 1; }; }
2872     fi
2873   fi
2874 fi
2875 { echo "$as_me:$LINENO: result: yes" >&5
2876 echo "${ECHO_T}yes" >&6; }
2877
2878 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2879 ac_clean_files=$ac_clean_files_save
2880 # Check that the compiler produces executables we can run.  If not, either
2881 # the compiler is broken, or we cross compile.
2882 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2883 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2884 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2885 echo "${ECHO_T}$cross_compiling" >&6; }
2886
2887 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2888 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2889 if { (ac_try="$ac_link"
2890 case "(($ac_try" in
2891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892   *) ac_try_echo=$ac_try;;
2893 esac
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895   (eval "$ac_link") 2>&5
2896   ac_status=$?
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); }; then
2899   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2900 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2901 # work properly (i.e., refer to `conftest.exe'), while it won't with
2902 # `rm'.
2903 for ac_file in conftest.exe conftest conftest.*; do
2904   test -f "$ac_file" || continue
2905   case $ac_file in
2906     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2907     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2908           break;;
2909     * ) break;;
2910   esac
2911 done
2912 else
2913   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2914 See \`config.log' for more details." >&5
2915 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2916 See \`config.log' for more details." >&2;}
2917    { (exit 1); exit 1; }; }
2918 fi
2919
2920 rm -f conftest$ac_cv_exeext
2921 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2922 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2923
2924 rm -f conftest.$ac_ext
2925 EXEEXT=$ac_cv_exeext
2926 ac_exeext=$EXEEXT
2927 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2928 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2929 if test "${ac_cv_objext+set}" = set; then
2930   echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932   cat >conftest.$ac_ext <<_ACEOF
2933 /* confdefs.h.  */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h.  */
2938
2939 int
2940 main ()
2941 {
2942
2943   ;
2944   return 0;
2945 }
2946 _ACEOF
2947 rm -f conftest.o conftest.obj
2948 if { (ac_try="$ac_compile"
2949 case "(($ac_try" in
2950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951   *) ac_try_echo=$ac_try;;
2952 esac
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954   (eval "$ac_compile") 2>&5
2955   ac_status=$?
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); }; then
2958   for ac_file in conftest.o conftest.obj conftest.*; do
2959   test -f "$ac_file" || continue;
2960   case $ac_file in
2961     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2962     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2963        break;;
2964   esac
2965 done
2966 else
2967   echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2971 See \`config.log' for more details." >&5
2972 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2973 See \`config.log' for more details." >&2;}
2974    { (exit 1); exit 1; }; }
2975 fi
2976
2977 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2978 fi
2979 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2980 echo "${ECHO_T}$ac_cv_objext" >&6; }
2981 OBJEXT=$ac_cv_objext
2982 ac_objext=$OBJEXT
2983 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2984 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2985 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2986   echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988   cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h.  */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h.  */
2994
2995 int
2996 main ()
2997 {
2998 #ifndef __GNUC__
2999        choke me
3000 #endif
3001
3002   ;
3003   return 0;
3004 }
3005 _ACEOF
3006 rm -f conftest.$ac_objext
3007 if { (ac_try="$ac_compile"
3008 case "(($ac_try" in
3009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010   *) ac_try_echo=$ac_try;;
3011 esac
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013   (eval "$ac_compile") 2>conftest.er1
3014   ac_status=$?
3015   grep -v '^ *+' conftest.er1 >conftest.err
3016   rm -f conftest.er1
3017   cat conftest.err >&5
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); } &&
3020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3021   { (case "(($ac_try" in
3022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023   *) ac_try_echo=$ac_try;;
3024 esac
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026   (eval "$ac_try") 2>&5
3027   ac_status=$?
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); }; } &&
3030          { ac_try='test -s conftest.$ac_objext'
3031   { (case "(($ac_try" in
3032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033   *) ac_try_echo=$ac_try;;
3034 esac
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036   (eval "$ac_try") 2>&5
3037   ac_status=$?
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); }; }; then
3040   ac_compiler_gnu=yes
3041 else
3042   echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045         ac_compiler_gnu=no
3046 fi
3047
3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3050
3051 fi
3052 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3053 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3054 GCC=`test $ac_compiler_gnu = yes && echo yes`
3055 ac_test_CFLAGS=${CFLAGS+set}
3056 ac_save_CFLAGS=$CFLAGS
3057 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3058 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3059 if test "${ac_cv_prog_cc_g+set}" = set; then
3060   echo $ECHO_N "(cached) $ECHO_C" >&6
3061 else
3062   ac_save_c_werror_flag=$ac_c_werror_flag
3063    ac_c_werror_flag=yes
3064    ac_cv_prog_cc_g=no
3065    CFLAGS="-g"
3066    cat >conftest.$ac_ext <<_ACEOF
3067 /* confdefs.h.  */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h.  */
3072
3073 int
3074 main ()
3075 {
3076
3077   ;
3078   return 0;
3079 }
3080 _ACEOF
3081 rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3083 case "(($ac_try" in
3084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085   *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088   (eval "$ac_compile") 2>conftest.er1
3089   ac_status=$?
3090   grep -v '^ *+' conftest.er1 >conftest.err
3091   rm -f conftest.er1
3092   cat conftest.err >&5
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); } &&
3095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3096   { (case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101   (eval "$ac_try") 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }; } &&
3105          { ac_try='test -s conftest.$ac_objext'
3106   { (case "(($ac_try" in
3107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108   *) ac_try_echo=$ac_try;;
3109 esac
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111   (eval "$ac_try") 2>&5
3112   ac_status=$?
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); }; }; then
3115   ac_cv_prog_cc_g=yes
3116 else
3117   echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120         CFLAGS=""
3121       cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127
3128 int
3129 main ()
3130 {
3131
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3138 case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_compile") 2>conftest.er1
3144   ac_status=$?
3145   grep -v '^ *+' conftest.er1 >conftest.err
3146   rm -f conftest.er1
3147   cat conftest.err >&5
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); } &&
3150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3151   { (case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156   (eval "$ac_try") 2>&5
3157   ac_status=$?
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); }; } &&
3160          { ac_try='test -s conftest.$ac_objext'
3161   { (case "(($ac_try" in
3162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163   *) ac_try_echo=$ac_try;;
3164 esac
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166   (eval "$ac_try") 2>&5
3167   ac_status=$?
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); }; }; then
3170   :
3171 else
3172   echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175         ac_c_werror_flag=$ac_save_c_werror_flag
3176          CFLAGS="-g"
3177          cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h.  */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h.  */
3183
3184 int
3185 main ()
3186 {
3187
3188   ;
3189   return 0;
3190 }
3191 _ACEOF
3192 rm -f conftest.$ac_objext
3193 if { (ac_try="$ac_compile"
3194 case "(($ac_try" in
3195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196   *) ac_try_echo=$ac_try;;
3197 esac
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199   (eval "$ac_compile") 2>conftest.er1
3200   ac_status=$?
3201   grep -v '^ *+' conftest.er1 >conftest.err
3202   rm -f conftest.er1
3203   cat conftest.err >&5
3204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205   (exit $ac_status); } &&
3206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3207   { (case "(($ac_try" in
3208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209   *) ac_try_echo=$ac_try;;
3210 esac
3211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212   (eval "$ac_try") 2>&5
3213   ac_status=$?
3214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215   (exit $ac_status); }; } &&
3216          { ac_try='test -s conftest.$ac_objext'
3217   { (case "(($ac_try" in
3218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219   *) ac_try_echo=$ac_try;;
3220 esac
3221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222   (eval "$ac_try") 2>&5
3223   ac_status=$?
3224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225   (exit $ac_status); }; }; then
3226   ac_cv_prog_cc_g=yes
3227 else
3228   echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3230
3231
3232 fi
3233
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 fi
3236
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 fi
3239
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241    ac_c_werror_flag=$ac_save_c_werror_flag
3242 fi
3243 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3244 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3245 if test "$ac_test_CFLAGS" = set; then
3246   CFLAGS=$ac_save_CFLAGS
3247 elif test $ac_cv_prog_cc_g = yes; then
3248   if test "$GCC" = yes; then
3249     CFLAGS="-g -O2"
3250   else
3251     CFLAGS="-g"
3252   fi
3253 else
3254   if test "$GCC" = yes; then
3255     CFLAGS="-O2"
3256   else
3257     CFLAGS=
3258   fi
3259 fi
3260 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3261 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3262 if test "${ac_cv_prog_cc_c89+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   ac_cv_prog_cc_c89=no
3266 ac_save_CC=$CC
3267 cat >conftest.$ac_ext <<_ACEOF
3268 /* confdefs.h.  */
3269 _ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h.  */
3273 #include <stdarg.h>
3274 #include <stdio.h>
3275 #include <sys/types.h>
3276 #include <sys/stat.h>
3277 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3278 struct buf { int x; };
3279 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3280 static char *e (p, i)
3281      char **p;
3282      int i;
3283 {
3284   return p[i];
3285 }
3286 static char *f (char * (*g) (char **, int), char **p, ...)
3287 {
3288   char *s;
3289   va_list v;
3290   va_start (v,p);
3291   s = g (p, va_arg (v,int));
3292   va_end (v);
3293   return s;
3294 }
3295
3296 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3297    function prototypes and stuff, but not '\xHH' hex character constants.
3298    These don't provoke an error unfortunately, instead are silently treated
3299    as 'x'.  The following induces an error, until -std is added to get
3300    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3301    array size at least.  It's necessary to write '\x00'==0 to get something
3302    that's true only with -std.  */
3303 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3304
3305 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3306    inside strings and character constants.  */
3307 #define FOO(x) 'x'
3308 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3309
3310 int test (int i, double x);
3311 struct s1 {int (*f) (int a);};
3312 struct s2 {int (*f) (double a);};
3313 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3314 int argc;
3315 char **argv;
3316 int
3317 main ()
3318 {
3319 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3320   ;
3321   return 0;
3322 }
3323 _ACEOF
3324 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3325         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3326 do
3327   CC="$ac_save_CC $ac_arg"
3328   rm -f conftest.$ac_objext
3329 if { (ac_try="$ac_compile"
3330 case "(($ac_try" in
3331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332   *) ac_try_echo=$ac_try;;
3333 esac
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335   (eval "$ac_compile") 2>conftest.er1
3336   ac_status=$?
3337   grep -v '^ *+' conftest.er1 >conftest.err
3338   rm -f conftest.er1
3339   cat conftest.err >&5
3340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341   (exit $ac_status); } &&
3342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3343   { (case "(($ac_try" in
3344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345   *) ac_try_echo=$ac_try;;
3346 esac
3347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348   (eval "$ac_try") 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); }; } &&
3352          { ac_try='test -s conftest.$ac_objext'
3353   { (case "(($ac_try" in
3354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355   *) ac_try_echo=$ac_try;;
3356 esac
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358   (eval "$ac_try") 2>&5
3359   ac_status=$?
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); }; }; then
3362   ac_cv_prog_cc_c89=$ac_arg
3363 else
3364   echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367
3368 fi
3369
3370 rm -f core conftest.err conftest.$ac_objext
3371   test "x$ac_cv_prog_cc_c89" != "xno" && break
3372 done
3373 rm -f conftest.$ac_ext
3374 CC=$ac_save_CC
3375
3376 fi
3377 # AC_CACHE_VAL
3378 case "x$ac_cv_prog_cc_c89" in
3379   x)
3380     { echo "$as_me:$LINENO: result: none needed" >&5
3381 echo "${ECHO_T}none needed" >&6; } ;;
3382   xno)
3383     { echo "$as_me:$LINENO: result: unsupported" >&5
3384 echo "${ECHO_T}unsupported" >&6; } ;;
3385   *)
3386     CC="$CC $ac_cv_prog_cc_c89"
3387     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3388 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3389 esac
3390
3391
3392 ac_ext=c
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397
3398
3399 ac_ext=c
3400 ac_cpp='$CPP $CPPFLAGS'
3401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3405 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3406 # On Suns, sometimes $CPP names a directory.
3407 if test -n "$CPP" && test -d "$CPP"; then
3408   CPP=
3409 fi
3410 if test -z "$CPP"; then
3411   if test "${ac_cv_prog_CPP+set}" = set; then
3412   echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414       # Double quotes because CPP needs to be expanded
3415     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3416     do
3417       ac_preproc_ok=false
3418 for ac_c_preproc_warn_flag in '' yes
3419 do
3420   # Use a header file that comes with gcc, so configuring glibc
3421   # with a fresh cross-compiler works.
3422   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423   # <limits.h> exists even on freestanding compilers.
3424   # On the NeXT, cc -E runs the code through the compiler's parser,
3425   # not just through cpp. "Syntax error" is here to catch this case.
3426   cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432 #ifdef __STDC__
3433 # include <limits.h>
3434 #else
3435 # include <assert.h>
3436 #endif
3437                      Syntax error
3438 _ACEOF
3439 if { (ac_try="$ac_cpp conftest.$ac_ext"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } >/dev/null; then
3452   if test -s conftest.err; then
3453     ac_cpp_err=$ac_c_preproc_warn_flag
3454     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455   else
3456     ac_cpp_err=
3457   fi
3458 else
3459   ac_cpp_err=yes
3460 fi
3461 if test -z "$ac_cpp_err"; then
3462   :
3463 else
3464   echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3466
3467   # Broken: fails on valid input.
3468 continue
3469 fi
3470
3471 rm -f conftest.err conftest.$ac_ext
3472
3473   # OK, works on sane cases.  Now check whether nonexistent headers
3474   # can be detected and how.
3475   cat >conftest.$ac_ext <<_ACEOF
3476 /* confdefs.h.  */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h.  */
3481 #include <ac_nonexistent.h>
3482 _ACEOF
3483 if { (ac_try="$ac_cpp conftest.$ac_ext"
3484 case "(($ac_try" in
3485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486   *) ac_try_echo=$ac_try;;
3487 esac
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3490   ac_status=$?
3491   grep -v '^ *+' conftest.er1 >conftest.err
3492   rm -f conftest.er1
3493   cat conftest.err >&5
3494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); } >/dev/null; then
3496   if test -s conftest.err; then
3497     ac_cpp_err=$ac_c_preproc_warn_flag
3498     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3499   else
3500     ac_cpp_err=
3501   fi
3502 else
3503   ac_cpp_err=yes
3504 fi
3505 if test -z "$ac_cpp_err"; then
3506   # Broken: success on invalid input.
3507 continue
3508 else
3509   echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3511
3512   # Passes both tests.
3513 ac_preproc_ok=:
3514 break
3515 fi
3516
3517 rm -f conftest.err conftest.$ac_ext
3518
3519 done
3520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3521 rm -f conftest.err conftest.$ac_ext
3522 if $ac_preproc_ok; then
3523   break
3524 fi
3525
3526     done
3527     ac_cv_prog_CPP=$CPP
3528
3529 fi
3530   CPP=$ac_cv_prog_CPP
3531 else
3532   ac_cv_prog_CPP=$CPP
3533 fi
3534 { echo "$as_me:$LINENO: result: $CPP" >&5
3535 echo "${ECHO_T}$CPP" >&6; }
3536 ac_preproc_ok=false
3537 for ac_c_preproc_warn_flag in '' yes
3538 do
3539   # Use a header file that comes with gcc, so configuring glibc
3540   # with a fresh cross-compiler works.
3541   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3542   # <limits.h> exists even on freestanding compilers.
3543   # On the NeXT, cc -E runs the code through the compiler's parser,
3544   # not just through cpp. "Syntax error" is here to catch this case.
3545   cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h.  */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h.  */
3551 #ifdef __STDC__
3552 # include <limits.h>
3553 #else
3554 # include <assert.h>
3555 #endif
3556                      Syntax error
3557 _ACEOF
3558 if { (ac_try="$ac_cpp conftest.$ac_ext"
3559 case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3565   ac_status=$?
3566   grep -v '^ *+' conftest.er1 >conftest.err
3567   rm -f conftest.er1
3568   cat conftest.err >&5
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); } >/dev/null; then
3571   if test -s conftest.err; then
3572     ac_cpp_err=$ac_c_preproc_warn_flag
3573     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3574   else
3575     ac_cpp_err=
3576   fi
3577 else
3578   ac_cpp_err=yes
3579 fi
3580 if test -z "$ac_cpp_err"; then
3581   :
3582 else
3583   echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3585
3586   # Broken: fails on valid input.
3587 continue
3588 fi
3589
3590 rm -f conftest.err conftest.$ac_ext
3591
3592   # OK, works on sane cases.  Now check whether nonexistent headers
3593   # can be detected and how.
3594   cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h.  */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h.  */
3600 #include <ac_nonexistent.h>
3601 _ACEOF
3602 if { (ac_try="$ac_cpp conftest.$ac_ext"
3603 case "(($ac_try" in
3604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605   *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3609   ac_status=$?
3610   grep -v '^ *+' conftest.er1 >conftest.err
3611   rm -f conftest.er1
3612   cat conftest.err >&5
3613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); } >/dev/null; then
3615   if test -s conftest.err; then
3616     ac_cpp_err=$ac_c_preproc_warn_flag
3617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3618   else
3619     ac_cpp_err=
3620   fi
3621 else
3622   ac_cpp_err=yes
3623 fi
3624 if test -z "$ac_cpp_err"; then
3625   # Broken: success on invalid input.
3626 continue
3627 else
3628   echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3630
3631   # Passes both tests.
3632 ac_preproc_ok=:
3633 break
3634 fi
3635
3636 rm -f conftest.err conftest.$ac_ext
3637
3638 done
3639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3640 rm -f conftest.err conftest.$ac_ext
3641 if $ac_preproc_ok; then
3642   :
3643 else
3644   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3645 See \`config.log' for more details." >&5
3646 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3647 See \`config.log' for more details." >&2;}
3648    { (exit 1); exit 1; }; }
3649 fi
3650
3651 ac_ext=c
3652 ac_cpp='$CPP $CPPFLAGS'
3653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656
3657
3658 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3659 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3660 if test "${ac_cv_path_GREP+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   # Extract the first word of "grep ggrep" to use in msg output
3664 if test -z "$GREP"; then
3665 set dummy grep ggrep; ac_prog_name=$2
3666 if test "${ac_cv_path_GREP+set}" = set; then
3667   echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669   ac_path_GREP_found=false
3670 # Loop through the user's path and test for each of PROGNAME-LIST
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3673 do
3674   IFS=$as_save_IFS
3675   test -z "$as_dir" && as_dir=.
3676   for ac_prog in grep ggrep; do
3677   for ac_exec_ext in '' $ac_executable_extensions; do
3678     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3679     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3680     # Check for GNU ac_path_GREP and select it if it is found.
3681   # Check for GNU $ac_path_GREP
3682 case `"$ac_path_GREP" --version 2>&1` in
3683 *GNU*)
3684   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3685 *)
3686   ac_count=0
3687   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3688   while :
3689   do
3690     cat "conftest.in" "conftest.in" >"conftest.tmp"
3691     mv "conftest.tmp" "conftest.in"
3692     cp "conftest.in" "conftest.nl"
3693     echo 'GREP' >> "conftest.nl"
3694     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3695     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3696     ac_count=`expr $ac_count + 1`
3697     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3698       # Best one so far, save it but keep looking for a better one
3699       ac_cv_path_GREP="$ac_path_GREP"
3700       ac_path_GREP_max=$ac_count
3701     fi
3702     # 10*(2^10) chars as input seems more than enough
3703     test $ac_count -gt 10 && break
3704   done
3705   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3706 esac
3707
3708
3709     $ac_path_GREP_found && break 3
3710   done
3711 done
3712
3713 done
3714 IFS=$as_save_IFS
3715
3716
3717 fi
3718
3719 GREP="$ac_cv_path_GREP"
3720 if test -z "$GREP"; then
3721   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3722 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3723    { (exit 1); exit 1; }; }
3724 fi
3725
3726 else
3727   ac_cv_path_GREP=$GREP
3728 fi
3729
3730
3731 fi
3732 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3733 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3734  GREP="$ac_cv_path_GREP"
3735
3736
3737 { echo "$as_me:$LINENO: checking for egrep" >&5
3738 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3739 if test "${ac_cv_path_EGREP+set}" = set; then
3740   echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3743    then ac_cv_path_EGREP="$GREP -E"
3744    else
3745      # Extract the first word of "egrep" to use in msg output
3746 if test -z "$EGREP"; then
3747 set dummy egrep; ac_prog_name=$2
3748 if test "${ac_cv_path_EGREP+set}" = set; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   ac_path_EGREP_found=false
3752 # Loop through the user's path and test for each of PROGNAME-LIST
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3755 do
3756   IFS=$as_save_IFS
3757   test -z "$as_dir" && as_dir=.
3758   for ac_prog in egrep; do
3759   for ac_exec_ext in '' $ac_executable_extensions; do
3760     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3761     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3762     # Check for GNU ac_path_EGREP and select it if it is found.
3763   # Check for GNU $ac_path_EGREP
3764 case `"$ac_path_EGREP" --version 2>&1` in
3765 *GNU*)
3766   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3767 *)
3768   ac_count=0
3769   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3770   while :
3771   do
3772     cat "conftest.in" "conftest.in" >"conftest.tmp"
3773     mv "conftest.tmp" "conftest.in"
3774     cp "conftest.in" "conftest.nl"
3775     echo 'EGREP' >> "conftest.nl"
3776     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3777     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3778     ac_count=`expr $ac_count + 1`
3779     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3780       # Best one so far, save it but keep looking for a better one
3781       ac_cv_path_EGREP="$ac_path_EGREP"
3782       ac_path_EGREP_max=$ac_count
3783     fi
3784     # 10*(2^10) chars as input seems more than enough
3785     test $ac_count -gt 10 && break
3786   done
3787   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3788 esac
3789
3790
3791     $ac_path_EGREP_found && break 3
3792   done
3793 done
3794
3795 done
3796 IFS=$as_save_IFS
3797
3798
3799 fi
3800
3801 EGREP="$ac_cv_path_EGREP"
3802 if test -z "$EGREP"; then
3803   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3804 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3805    { (exit 1); exit 1; }; }
3806 fi
3807
3808 else
3809   ac_cv_path_EGREP=$EGREP
3810 fi
3811
3812
3813    fi
3814 fi
3815 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3816 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3817  EGREP="$ac_cv_path_EGREP"
3818
3819
3820 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3821 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3822 if test "${ac_cv_header_stdc+set}" = set; then
3823   echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825   cat >conftest.$ac_ext <<_ACEOF
3826 /* confdefs.h.  */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h.  */
3831 #include <stdlib.h>
3832 #include <stdarg.h>
3833 #include <string.h>
3834 #include <float.h>
3835
3836 int
3837 main ()
3838 {
3839
3840   ;
3841   return 0;
3842 }
3843 _ACEOF
3844 rm -f conftest.$ac_objext
3845 if { (ac_try="$ac_compile"
3846 case "(($ac_try" in
3847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848   *) ac_try_echo=$ac_try;;
3849 esac
3850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851   (eval "$ac_compile") 2>conftest.er1
3852   ac_status=$?
3853   grep -v '^ *+' conftest.er1 >conftest.err
3854   rm -f conftest.er1
3855   cat conftest.err >&5
3856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857   (exit $ac_status); } &&
3858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3859   { (case "(($ac_try" in
3860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861   *) ac_try_echo=$ac_try;;
3862 esac
3863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864   (eval "$ac_try") 2>&5
3865   ac_status=$?
3866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867   (exit $ac_status); }; } &&
3868          { ac_try='test -s conftest.$ac_objext'
3869   { (case "(($ac_try" in
3870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871   *) ac_try_echo=$ac_try;;
3872 esac
3873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874   (eval "$ac_try") 2>&5
3875   ac_status=$?
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); }; }; then
3878   ac_cv_header_stdc=yes
3879 else
3880   echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3882
3883         ac_cv_header_stdc=no
3884 fi
3885
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887
3888 if test $ac_cv_header_stdc = yes; then
3889   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3890   cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h.  */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h.  */
3896 #include <string.h>
3897
3898 _ACEOF
3899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3900   $EGREP "memchr" >/dev/null 2>&1; then
3901   :
3902 else
3903   ac_cv_header_stdc=no
3904 fi
3905 rm -f conftest*
3906
3907 fi
3908
3909 if test $ac_cv_header_stdc = yes; then
3910   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3911   cat >conftest.$ac_ext <<_ACEOF
3912 /* confdefs.h.  */
3913 _ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h.  */
3917 #include <stdlib.h>
3918
3919 _ACEOF
3920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3921   $EGREP "free" >/dev/null 2>&1; then
3922   :
3923 else
3924   ac_cv_header_stdc=no
3925 fi
3926 rm -f conftest*
3927
3928 fi
3929
3930 if test $ac_cv_header_stdc = yes; then
3931   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3932   if test "$cross_compiling" = yes; then
3933   :
3934 else
3935   cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h.  */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h.  */
3941 #include <ctype.h>
3942 #include <stdlib.h>
3943 #if ((' ' & 0x0FF) == 0x020)
3944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3946 #else
3947 # define ISLOWER(c) \
3948                    (('a' <= (c) && (c) <= 'i') \
3949                      || ('j' <= (c) && (c) <= 'r') \
3950                      || ('s' <= (c) && (c) <= 'z'))
3951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3952 #endif
3953
3954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3955 int
3956 main ()
3957 {
3958   int i;
3959   for (i = 0; i < 256; i++)
3960     if (XOR (islower (i), ISLOWER (i))
3961         || toupper (i) != TOUPPER (i))
3962       return 2;
3963   return 0;
3964 }
3965 _ACEOF
3966 rm -f conftest$ac_exeext
3967 if { (ac_try="$ac_link"
3968 case "(($ac_try" in
3969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970   *) ac_try_echo=$ac_try;;
3971 esac
3972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973   (eval "$ac_link") 2>&5
3974   ac_status=$?
3975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3977   { (case "(($ac_try" in
3978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979   *) ac_try_echo=$ac_try;;
3980 esac
3981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982   (eval "$ac_try") 2>&5
3983   ac_status=$?
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); }; }; then
3986   :
3987 else
3988   echo "$as_me: program exited with status $ac_status" >&5
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992 ( exit $ac_status )
3993 ac_cv_header_stdc=no
3994 fi
3995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3996 fi
3997
3998
3999 fi
4000 fi
4001 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4002 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4003 if test $ac_cv_header_stdc = yes; then
4004
4005 cat >>confdefs.h <<\_ACEOF
4006 #define STDC_HEADERS 1
4007 _ACEOF
4008
4009 fi
4010
4011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4022                   inttypes.h stdint.h unistd.h
4023 do
4024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4028   echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030   cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h.  */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h.  */
4036 $ac_includes_default
4037
4038 #include <$ac_header>
4039 _ACEOF
4040 rm -f conftest.$ac_objext
4041 if { (ac_try="$ac_compile"
4042 case "(($ac_try" in
4043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044   *) ac_try_echo=$ac_try;;
4045 esac
4046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047   (eval "$ac_compile") 2>conftest.er1
4048   ac_status=$?
4049   grep -v '^ *+' conftest.er1 >conftest.err
4050   rm -f conftest.er1
4051   cat conftest.err >&5
4052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053   (exit $ac_status); } &&
4054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4055   { (case "(($ac_try" in
4056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057   *) ac_try_echo=$ac_try;;
4058 esac
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060   (eval "$ac_try") 2>&5
4061   ac_status=$?
4062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063   (exit $ac_status); }; } &&
4064          { ac_try='test -s conftest.$ac_objext'
4065   { (case "(($ac_try" in
4066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067   *) ac_try_echo=$ac_try;;
4068 esac
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070   (eval "$ac_try") 2>&5
4071   ac_status=$?
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); }; }; then
4074   eval "$as_ac_Header=yes"
4075 else
4076   echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4078
4079         eval "$as_ac_Header=no"
4080 fi
4081
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083 fi
4084 ac_res=`eval echo '${'$as_ac_Header'}'`
4085                { echo "$as_me:$LINENO: result: $ac_res" >&5
4086 echo "${ECHO_T}$ac_res" >&6; }
4087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4088   cat >>confdefs.h <<_ACEOF
4089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4090 _ACEOF
4091
4092 fi
4093
4094 done
4095
4096
4097 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4098 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4099 if test "${ac_cv_c_bigendian+set}" = set; then
4100   echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102   # See if sys/param.h defines the BYTE_ORDER macro.
4103 cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h.  */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h.  */
4109 #include <sys/types.h>
4110 #include <sys/param.h>
4111
4112 int
4113 main ()
4114 {
4115 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4116  bogus endian macros
4117 #endif
4118
4119   ;
4120   return 0;
4121 }
4122 _ACEOF
4123 rm -f conftest.$ac_objext
4124 if { (ac_try="$ac_compile"
4125 case "(($ac_try" in
4126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127   *) ac_try_echo=$ac_try;;
4128 esac
4129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130   (eval "$ac_compile") 2>conftest.er1
4131   ac_status=$?
4132   grep -v '^ *+' conftest.er1 >conftest.err
4133   rm -f conftest.er1
4134   cat conftest.err >&5
4135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136   (exit $ac_status); } &&
4137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4138   { (case "(($ac_try" in
4139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140   *) ac_try_echo=$ac_try;;
4141 esac
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143   (eval "$ac_try") 2>&5
4144   ac_status=$?
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); }; } &&
4147          { ac_try='test -s conftest.$ac_objext'
4148   { (case "(($ac_try" in
4149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150   *) ac_try_echo=$ac_try;;
4151 esac
4152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153   (eval "$ac_try") 2>&5
4154   ac_status=$?
4155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156   (exit $ac_status); }; }; then
4157   # It does; now see whether it defined to BIG_ENDIAN or not.
4158 cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h.  */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h.  */
4164 #include <sys/types.h>
4165 #include <sys/param.h>
4166
4167 int
4168 main ()
4169 {
4170 #if BYTE_ORDER != BIG_ENDIAN
4171  not big endian
4172 #endif
4173
4174   ;
4175   return 0;
4176 }
4177 _ACEOF
4178 rm -f conftest.$ac_objext
4179 if { (ac_try="$ac_compile"
4180 case "(($ac_try" in
4181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182   *) ac_try_echo=$ac_try;;
4183 esac
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185   (eval "$ac_compile") 2>conftest.er1
4186   ac_status=$?
4187   grep -v '^ *+' conftest.er1 >conftest.err
4188   rm -f conftest.er1
4189   cat conftest.err >&5
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); } &&
4192          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4193   { (case "(($ac_try" in
4194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195   *) ac_try_echo=$ac_try;;
4196 esac
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198   (eval "$ac_try") 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); }; } &&
4202          { ac_try='test -s conftest.$ac_objext'
4203   { (case "(($ac_try" in
4204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205   *) ac_try_echo=$ac_try;;
4206 esac
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208   (eval "$ac_try") 2>&5
4209   ac_status=$?
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); }; }; then
4212   ac_cv_c_bigendian=yes
4213 else
4214   echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4216
4217         ac_cv_c_bigendian=no
4218 fi
4219
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221 else
4222   echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4224
4225         # It does not; compile a test program.
4226 if test "$cross_compiling" = yes; then
4227   # try to guess the endianness by grepping values into an object file
4228   ac_cv_c_bigendian=unknown
4229   cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h.  */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h.  */
4235 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4236 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4237 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4238 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4239 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4240 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4241 int
4242 main ()
4243 {
4244  _ascii (); _ebcdic ();
4245   ;
4246   return 0;
4247 }
4248 _ACEOF
4249 rm -f conftest.$ac_objext
4250 if { (ac_try="$ac_compile"
4251 case "(($ac_try" in
4252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253   *) ac_try_echo=$ac_try;;
4254 esac
4255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256   (eval "$ac_compile") 2>conftest.er1
4257   ac_status=$?
4258   grep -v '^ *+' conftest.er1 >conftest.err
4259   rm -f conftest.er1
4260   cat conftest.err >&5
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); } &&
4263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264   { (case "(($ac_try" in
4265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266   *) ac_try_echo=$ac_try;;
4267 esac
4268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269   (eval "$ac_try") 2>&5
4270   ac_status=$?
4271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272   (exit $ac_status); }; } &&
4273          { ac_try='test -s conftest.$ac_objext'
4274   { (case "(($ac_try" in
4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276   *) ac_try_echo=$ac_try;;
4277 esac
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279   (eval "$ac_try") 2>&5
4280   ac_status=$?
4281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282   (exit $ac_status); }; }; then
4283   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4284   ac_cv_c_bigendian=yes
4285 fi
4286 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4287   if test "$ac_cv_c_bigendian" = unknown; then
4288     ac_cv_c_bigendian=no
4289   else
4290     # finding both strings is unlikely to happen, but who knows?
4291     ac_cv_c_bigendian=unknown
4292   fi
4293 fi
4294 else
4295   echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298
4299 fi
4300
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 else
4303   cat >conftest.$ac_ext <<_ACEOF
4304 /* confdefs.h.  */
4305 _ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h.  */
4309 $ac_includes_default
4310 int
4311 main ()
4312 {
4313
4314   /* Are we little or big endian?  From Harbison&Steele.  */
4315   union
4316   {
4317     long int l;
4318     char c[sizeof (long int)];
4319   } u;
4320   u.l = 1;
4321   return u.c[sizeof (long int) - 1] == 1;
4322
4323   ;
4324   return 0;
4325 }
4326 _ACEOF
4327 rm -f conftest$ac_exeext
4328 if { (ac_try="$ac_link"
4329 case "(($ac_try" in
4330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331   *) ac_try_echo=$ac_try;;
4332 esac
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334   (eval "$ac_link") 2>&5
4335   ac_status=$?
4336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4338   { (case "(($ac_try" in
4339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340   *) ac_try_echo=$ac_try;;
4341 esac
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343   (eval "$ac_try") 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); }; }; then
4347   ac_cv_c_bigendian=no
4348 else
4349   echo "$as_me: program exited with status $ac_status" >&5
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353 ( exit $ac_status )
4354 ac_cv_c_bigendian=yes
4355 fi
4356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4357 fi
4358
4359
4360 fi
4361
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 fi
4364 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4365 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4366 case $ac_cv_c_bigendian in
4367   yes)
4368     ENDIAN=big
4369  ;;
4370   no)
4371     ENDIAN=little
4372  ;;
4373   *)
4374     { { echo "$as_me:$LINENO: error: unknown endianness
4375 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4376 echo "$as_me: error: unknown endianness
4377 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4378    { (exit 1); exit 1; }; } ;;
4379 esac
4380
4381
4382 if test "$cross_compiling" = yes; then
4383   LLVM_CROSS_COMPILING=1
4384
4385
4386 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4387 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4388 if test "${ac_cv_build_exeext+set}" = set; then
4389   echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4392   ac_cv_build_exeext=.exe
4393 else
4394   ac_build_prefix=${build_alias}-
4395
4396   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4397 set dummy ${ac_build_prefix}gcc; ac_word=$2
4398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4400 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403   if test -n "$BUILD_CC"; then
4404   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409   IFS=$as_save_IFS
4410   test -z "$as_dir" && as_dir=.
4411   for ac_exec_ext in '' $ac_executable_extensions; do
4412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4413     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415     break 2
4416   fi
4417 done
4418 done
4419 IFS=$as_save_IFS
4420
4421 fi
4422 fi
4423 BUILD_CC=$ac_cv_prog_BUILD_CC
4424 if test -n "$BUILD_CC"; then
4425   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4426 echo "${ECHO_T}$BUILD_CC" >&6; }
4427 else
4428   { echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6; }
4430 fi
4431
4432
4433   if test -z "$BUILD_CC"; then
4434      # Extract the first word of "gcc", so it can be a program name with args.
4435 set dummy gcc; ac_word=$2
4436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4439   echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441   if test -n "$BUILD_CC"; then
4442   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447   IFS=$as_save_IFS
4448   test -z "$as_dir" && as_dir=.
4449   for ac_exec_ext in '' $ac_executable_extensions; do
4450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4451     ac_cv_prog_BUILD_CC="gcc"
4452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453     break 2
4454   fi
4455 done
4456 done
4457 IFS=$as_save_IFS
4458
4459 fi
4460 fi
4461 BUILD_CC=$ac_cv_prog_BUILD_CC
4462 if test -n "$BUILD_CC"; then
4463   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4464 echo "${ECHO_T}$BUILD_CC" >&6; }
4465 else
4466   { echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6; }
4468 fi
4469
4470
4471      if test -z "$BUILD_CC"; then
4472        # Extract the first word of "cc", so it can be a program name with args.
4473 set dummy cc; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   if test -n "$BUILD_CC"; then
4480   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4481 else
4482   ac_prog_rejected=no
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4485 do
4486   IFS=$as_save_IFS
4487   test -z "$as_dir" && as_dir=.
4488   for ac_exec_ext in '' $ac_executable_extensions; do
4489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4490     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4491        ac_prog_rejected=yes
4492        continue
4493      fi
4494     ac_cv_prog_BUILD_CC="cc"
4495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496     break 2
4497   fi
4498 done
4499 done
4500 IFS=$as_save_IFS
4501
4502 if test $ac_prog_rejected = yes; then
4503   # We found a bogon in the path, so make sure we never use it.
4504   set dummy $ac_cv_prog_BUILD_CC
4505   shift
4506   if test $# != 0; then
4507     # We chose a different compiler from the bogus one.
4508     # However, it has the same basename, so the bogon will be chosen
4509     # first if we set BUILD_CC to just the basename; use the full file name.
4510     shift
4511     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4512   fi
4513 fi
4514 fi
4515 fi
4516 BUILD_CC=$ac_cv_prog_BUILD_CC
4517 if test -n "$BUILD_CC"; then
4518   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4519 echo "${ECHO_T}$BUILD_CC" >&6; }
4520 else
4521   { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4523 fi
4524
4525
4526      fi
4527   fi
4528   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4529 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4530    { (exit 1); exit 1; }; }
4531   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4532   rm -f conftest*
4533   echo 'int main () { return 0; }' > conftest.$ac_ext
4534   ac_cv_build_exeext=
4535   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4536   (eval $ac_build_link) 2>&5
4537   ac_status=$?
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); }; then
4540     for file in conftest.*; do
4541       case $file in
4542       *.c | *.o | *.obj) ;;
4543       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4544       esac
4545     done
4546   else
4547     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4548 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4549    { (exit 1); exit 1; }; }
4550   fi
4551   rm -f conftest*
4552   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4553 fi
4554 fi
4555
4556 BUILD_EXEEXT=""
4557 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4558 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4559 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4560 ac_build_exeext=$BUILD_EXEEXT
4561
4562 else
4563   LLVM_CROSS_COMPILING=0
4564
4565 fi
4566
4567 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4568   cvsbuild="yes"
4569   optimize="no"
4570   CVSBUILD=CVSBUILD=1
4571
4572 else
4573   cvsbuild="no"
4574   optimize="yes"
4575 fi
4576
4577
4578 # Check whether --enable-optimized was given.
4579 if test "${enable_optimized+set}" = set; then
4580   enableval=$enable_optimized;
4581 else
4582   enableval=$optimize
4583 fi
4584
4585 if test ${enableval} = "no" ; then
4586   ENABLE_OPTIMIZED=
4587
4588 else
4589   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4590
4591 fi
4592
4593 # Check whether --enable-assertions was given.
4594 if test "${enable_assertions+set}" = set; then
4595   enableval=$enable_assertions;
4596 else
4597   enableval="yes"
4598 fi
4599
4600 if test ${enableval} = "yes" ; then
4601   DISABLE_ASSERTIONS=
4602
4603 else
4604   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4605
4606 fi
4607
4608 # Check whether --enable-expensive-checks was given.
4609 if test "${enable_expensive_checks+set}" = set; then
4610   enableval=$enable_expensive_checks;
4611 else
4612   enableval="no"
4613 fi
4614
4615 if test ${enableval} = "yes" ; then
4616   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4617
4618   EXPENSIVE_CHECKS=yes
4619
4620 else
4621   ENABLE_EXPENSIVE_CHECKS=
4622
4623   EXPENSIVE_CHECKS=no
4624
4625 fi
4626
4627 # Check whether --enable-debug-runtime was given.
4628 if test "${enable_debug_runtime+set}" = set; then
4629   enableval=$enable_debug_runtime;
4630 else
4631   enableval=no
4632 fi
4633
4634 if test ${enableval} = "no" ; then
4635   DEBUG_RUNTIME=
4636
4637 else
4638   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4639
4640 fi
4641
4642 # Check whether --enable-jit was given.
4643 if test "${enable_jit+set}" = set; then
4644   enableval=$enable_jit;
4645 else
4646   enableval=default
4647 fi
4648
4649 if test ${enableval} = "no"
4650 then
4651   JIT=
4652
4653 else
4654   case "$llvm_cv_target_arch" in
4655     x86)     TARGET_HAS_JIT=1
4656  ;;
4657     Sparc)   TARGET_HAS_JIT=0
4658  ;;
4659     PowerPC) TARGET_HAS_JIT=1
4660  ;;
4661     x86_64)  TARGET_HAS_JIT=1
4662  ;;
4663     Alpha)   TARGET_HAS_JIT=1
4664  ;;
4665     IA64)    TARGET_HAS_JIT=0
4666  ;;
4667     ARM)     TARGET_HAS_JIT=0
4668  ;;
4669     Mips)    TARGET_HAS_JIT=0
4670  ;;
4671     PIC16)   TARGET_HAS_JIT=0
4672  ;;
4673     *)       TARGET_HAS_JIT=0
4674  ;;
4675   esac
4676 fi
4677
4678 # Check whether --enable-doxygen was given.
4679 if test "${enable_doxygen+set}" = set; then
4680   enableval=$enable_doxygen;
4681 else
4682   enableval=default
4683 fi
4684
4685 case "$enableval" in
4686   yes) ENABLE_DOXYGEN=1
4687  ;;
4688   no)  ENABLE_DOXYGEN=0
4689  ;;
4690   default) ENABLE_DOXYGEN=0
4691  ;;
4692   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4693 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4694    { (exit 1); exit 1; }; } ;;
4695 esac
4696
4697 # Check whether --enable-threads was given.
4698 if test "${enable_threads+set}" = set; then
4699   enableval=$enable_threads;
4700 else
4701   enableval=default
4702 fi
4703
4704 case "$enableval" in
4705   yes) ENABLE_THREADS=1
4706  ;;
4707   no)  ENABLE_THREADS=0
4708  ;;
4709   default) ENABLE_THREADS=1
4710  ;;
4711   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4712 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4713    { (exit 1); exit 1; }; } ;;
4714 esac
4715
4716 cat >>confdefs.h <<_ACEOF
4717 #define ENABLE_THREADS $ENABLE_THREADS
4718 _ACEOF
4719
4720
4721 # Check whether --enable-pic was given.
4722 if test "${enable_pic+set}" = set; then
4723   enableval=$enable_pic;
4724 else
4725   enableval=default
4726 fi
4727
4728 case "$enableval" in
4729   yes) ENABLE_PIC=1
4730  ;;
4731   no)  ENABLE_PIC=0
4732  ;;
4733   default) ENABLE_PIC=0
4734  ;;
4735   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4736 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4737    { (exit 1); exit 1; }; } ;;
4738 esac
4739
4740 cat >>confdefs.h <<_ACEOF
4741 #define ENABLE_PIC $ENABLE_PIC
4742 _ACEOF
4743
4744
4745 TARGETS_TO_BUILD=""
4746 # Check whether --enable-targets was given.
4747 if test "${enable_targets+set}" = set; then
4748   enableval=$enable_targets;
4749 else
4750   enableval=all
4751 fi
4752
4753 case "$enableval" in
4754   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
4755   host-only)
4756     case "$llvm_cv_target_arch" in
4757       x86)     TARGETS_TO_BUILD="X86" ;;
4758       x86_64)  TARGETS_TO_BUILD="X86" ;;
4759       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4760       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4761       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4762       IA64)    TARGETS_TO_BUILD="IA64" ;;
4763       ARM)     TARGETS_TO_BUILD="ARM" ;;
4764       Mips)    TARGETS_TO_BUILD="Mips" ;;
4765       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4766       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4767       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4768 echo "$as_me: error: Can not set target to build" >&2;}
4769    { (exit 1); exit 1; }; } ;;
4770     esac
4771     ;;
4772   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4773       case "$a_target" in
4774         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4775         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4776         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4777         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4778         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4779         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4780         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4781         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4782         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4783         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4784         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4785         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4786         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4787         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4788 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4789    { (exit 1); exit 1; }; } ;;
4790       esac
4791   done
4792   ;;
4793 esac
4794 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4795
4796
4797 # Check whether --enable-cbe-printf-a was given.
4798 if test "${enable_cbe_printf_a+set}" = set; then
4799   enableval=$enable_cbe_printf_a;
4800 else
4801   enableval=default
4802 fi
4803
4804 case "$enableval" in
4805   yes) ENABLE_CBE_PRINTF_A=1
4806  ;;
4807   no)  ENABLE_CBE_PRINTF_A=0
4808  ;;
4809   default)  ENABLE_CBE_PRINTF_A=1
4810  ;;
4811   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4812 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4813    { (exit 1); exit 1; }; } ;;
4814 esac
4815
4816 cat >>confdefs.h <<_ACEOF
4817 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4818 _ACEOF
4819
4820
4821
4822 # Check whether --with-llvmgccdir was given.
4823 if test "${with_llvmgccdir+set}" = set; then
4824   withval=$with_llvmgccdir;
4825 else
4826   withval=default
4827 fi
4828
4829 case "$withval" in
4830   default) WITH_LLVMGCCDIR=default ;;
4831   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4832   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4833 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4834    { (exit 1); exit 1; }; } ;;
4835 esac
4836
4837
4838 # Check whether --with-llvmgcc was given.
4839 if test "${with_llvmgcc+set}" = set; then
4840   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4841       WITH_LLVMGCCDIR=""
4842 fi
4843
4844
4845
4846 # Check whether --with-llvmgxx was given.
4847 if test "${with_llvmgxx+set}" = set; then
4848   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4849     WITH_LLVMGCCDIR=""
4850 fi
4851
4852
4853 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4854    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4855 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4856    { (exit 1); exit 1; }; };
4857 fi
4858
4859 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4860    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4861 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4862    { (exit 1); exit 1; }; };
4863 fi
4864
4865
4866 # Check whether --with-extra-options was given.
4867 if test "${with_extra_options+set}" = set; then
4868   withval=$with_extra_options;
4869 else
4870   withval=default
4871 fi
4872
4873 case "$withval" in
4874   default) EXTRA_OPTIONS= ;;
4875   *) EXTRA_OPTIONS=$withval ;;
4876 esac
4877 EXTRA_OPTIONS=$EXTRA_OPTIONS
4878
4879
4880 # Check whether --enable-bindings was given.
4881 if test "${enable_bindings+set}" = set; then
4882   enableval=$enable_bindings;
4883 else
4884   enableval=default
4885 fi
4886
4887 BINDINGS_TO_BUILD=""
4888 case "$enableval" in
4889   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4890   all ) BINDINGS_TO_BUILD="ocaml" ;;
4891   none | no) BINDINGS_TO_BUILD="" ;;
4892   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4893       case "$a_binding" in
4894         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4895         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4896 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4897    { (exit 1); exit 1; }; } ;;
4898       esac
4899   done
4900   ;;
4901 esac
4902
4903
4904 # Check whether --with-ocaml-libdir was given.
4905 if test "${with_ocaml_libdir+set}" = set; then
4906   withval=$with_ocaml_libdir;
4907 else
4908   withval=auto
4909 fi
4910
4911 case "$withval" in
4912   auto) with_ocaml_libdir="$withval" ;;
4913   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4914   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4915 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4916    { (exit 1); exit 1; }; } ;;
4917 esac
4918
4919
4920 ac_ext=c
4921 ac_cpp='$CPP $CPPFLAGS'
4922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4925 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4926 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4927 # On Suns, sometimes $CPP names a directory.
4928 if test -n "$CPP" && test -d "$CPP"; then
4929   CPP=
4930 fi
4931 if test -z "$CPP"; then
4932   if test "${ac_cv_prog_CPP+set}" = set; then
4933   echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935       # Double quotes because CPP needs to be expanded
4936     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4937     do
4938       ac_preproc_ok=false
4939 for ac_c_preproc_warn_flag in '' yes
4940 do
4941   # Use a header file that comes with gcc, so configuring glibc
4942   # with a fresh cross-compiler works.
4943   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4944   # <limits.h> exists even on freestanding compilers.
4945   # On the NeXT, cc -E runs the code through the compiler's parser,
4946   # not just through cpp. "Syntax error" is here to catch this case.
4947   cat >conftest.$ac_ext <<_ACEOF
4948 /* confdefs.h.  */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h.  */
4953 #ifdef __STDC__
4954 # include <limits.h>
4955 #else
4956 # include <assert.h>
4957 #endif
4958                      Syntax error
4959 _ACEOF
4960 if { (ac_try="$ac_cpp conftest.$ac_ext"
4961 case "(($ac_try" in
4962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963   *) ac_try_echo=$ac_try;;
4964 esac
4965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4966   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4967   ac_status=$?
4968   grep -v '^ *+' conftest.er1 >conftest.err
4969   rm -f conftest.er1
4970   cat conftest.err >&5
4971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972   (exit $ac_status); } >/dev/null; then
4973   if test -s conftest.err; then
4974     ac_cpp_err=$ac_c_preproc_warn_flag
4975     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4976   else
4977     ac_cpp_err=
4978   fi
4979 else
4980   ac_cpp_err=yes
4981 fi
4982 if test -z "$ac_cpp_err"; then
4983   :
4984 else
4985   echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988   # Broken: fails on valid input.
4989 continue
4990 fi
4991
4992 rm -f conftest.err conftest.$ac_ext
4993
4994   # OK, works on sane cases.  Now check whether nonexistent headers
4995   # can be detected and how.
4996   cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h.  */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h.  */
5002 #include <ac_nonexistent.h>
5003 _ACEOF
5004 if { (ac_try="$ac_cpp conftest.$ac_ext"
5005 case "(($ac_try" in
5006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007   *) ac_try_echo=$ac_try;;
5008 esac
5009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5011   ac_status=$?
5012   grep -v '^ *+' conftest.er1 >conftest.err
5013   rm -f conftest.er1
5014   cat conftest.err >&5
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); } >/dev/null; then
5017   if test -s conftest.err; then
5018     ac_cpp_err=$ac_c_preproc_warn_flag
5019     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5020   else
5021     ac_cpp_err=
5022   fi
5023 else
5024   ac_cpp_err=yes
5025 fi
5026 if test -z "$ac_cpp_err"; then
5027   # Broken: success on invalid input.
5028 continue
5029 else
5030   echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5032
5033   # Passes both tests.
5034 ac_preproc_ok=:
5035 break
5036 fi
5037
5038 rm -f conftest.err conftest.$ac_ext
5039
5040 done
5041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5042 rm -f conftest.err conftest.$ac_ext
5043 if $ac_preproc_ok; then
5044   break
5045 fi
5046
5047     done
5048     ac_cv_prog_CPP=$CPP
5049
5050 fi
5051   CPP=$ac_cv_prog_CPP
5052 else
5053   ac_cv_prog_CPP=$CPP
5054 fi
5055 { echo "$as_me:$LINENO: result: $CPP" >&5
5056 echo "${ECHO_T}$CPP" >&6; }
5057 ac_preproc_ok=false
5058 for ac_c_preproc_warn_flag in '' yes
5059 do
5060   # Use a header file that comes with gcc, so configuring glibc
5061   # with a fresh cross-compiler works.
5062   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5063   # <limits.h> exists even on freestanding compilers.
5064   # On the NeXT, cc -E runs the code through the compiler's parser,
5065   # not just through cpp. "Syntax error" is here to catch this case.
5066   cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h.  */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h.  */
5072 #ifdef __STDC__
5073 # include <limits.h>
5074 #else
5075 # include <assert.h>
5076 #endif
5077                      Syntax error
5078 _ACEOF
5079 if { (ac_try="$ac_cpp conftest.$ac_ext"
5080 case "(($ac_try" in
5081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082   *) ac_try_echo=$ac_try;;
5083 esac
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5086   ac_status=$?
5087   grep -v '^ *+' conftest.er1 >conftest.err
5088   rm -f conftest.er1
5089   cat conftest.err >&5
5090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091   (exit $ac_status); } >/dev/null; then
5092   if test -s conftest.err; then
5093     ac_cpp_err=$ac_c_preproc_warn_flag
5094     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5095   else
5096     ac_cpp_err=
5097   fi
5098 else
5099   ac_cpp_err=yes
5100 fi
5101 if test -z "$ac_cpp_err"; then
5102   :
5103 else
5104   echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5106
5107   # Broken: fails on valid input.
5108 continue
5109 fi
5110
5111 rm -f conftest.err conftest.$ac_ext
5112
5113   # OK, works on sane cases.  Now check whether nonexistent headers
5114   # can be detected and how.
5115   cat >conftest.$ac_ext <<_ACEOF
5116 /* confdefs.h.  */
5117 _ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h.  */
5121 #include <ac_nonexistent.h>
5122 _ACEOF
5123 if { (ac_try="$ac_cpp conftest.$ac_ext"
5124 case "(($ac_try" in
5125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126   *) ac_try_echo=$ac_try;;
5127 esac
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5130   ac_status=$?
5131   grep -v '^ *+' conftest.er1 >conftest.err
5132   rm -f conftest.er1
5133   cat conftest.err >&5
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); } >/dev/null; then
5136   if test -s conftest.err; then
5137     ac_cpp_err=$ac_c_preproc_warn_flag
5138     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5139   else
5140     ac_cpp_err=
5141   fi
5142 else
5143   ac_cpp_err=yes
5144 fi
5145 if test -z "$ac_cpp_err"; then
5146   # Broken: success on invalid input.
5147 continue
5148 else
5149   echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5151
5152   # Passes both tests.
5153 ac_preproc_ok=:
5154 break
5155 fi
5156
5157 rm -f conftest.err conftest.$ac_ext
5158
5159 done
5160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5161 rm -f conftest.err conftest.$ac_ext
5162 if $ac_preproc_ok; then
5163   :
5164 else
5165   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5166 See \`config.log' for more details." >&5
5167 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5168 See \`config.log' for more details." >&2;}
5169    { (exit 1); exit 1; }; }
5170 fi
5171
5172 ac_ext=c
5173 ac_cpp='$CPP $CPPFLAGS'
5174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5177
5178 ac_ext=c
5179 ac_cpp='$CPP $CPPFLAGS'
5180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5183 if test -n "$ac_tool_prefix"; then
5184   for ac_prog in gcc
5185   do
5186     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5187 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5190 if test "${ac_cv_prog_CC+set}" = set; then
5191   echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193   if test -n "$CC"; then
5194   ac_cv_prog_CC="$CC" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199   IFS=$as_save_IFS
5200   test -z "$as_dir" && as_dir=.
5201   for ac_exec_ext in '' $ac_executable_extensions; do
5202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5203     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205     break 2
5206   fi
5207 done
5208 done
5209 IFS=$as_save_IFS
5210
5211 fi
5212 fi
5213 CC=$ac_cv_prog_CC
5214 if test -n "$CC"; then
5215   { echo "$as_me:$LINENO: result: $CC" >&5
5216 echo "${ECHO_T}$CC" >&6; }
5217 else
5218   { echo "$as_me:$LINENO: result: no" >&5
5219 echo "${ECHO_T}no" >&6; }
5220 fi
5221
5222
5223     test -n "$CC" && break
5224   done
5225 fi
5226 if test -z "$CC"; then
5227   ac_ct_CC=$CC
5228   for ac_prog in gcc
5229 do
5230   # Extract the first word of "$ac_prog", so it can be a program name with args.
5231 set dummy $ac_prog; ac_word=$2
5232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5235   echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237   if test -n "$ac_ct_CC"; then
5238   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5239 else
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5242 do
5243   IFS=$as_save_IFS
5244   test -z "$as_dir" && as_dir=.
5245   for ac_exec_ext in '' $ac_executable_extensions; do
5246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5247     ac_cv_prog_ac_ct_CC="$ac_prog"
5248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249     break 2
5250   fi
5251 done
5252 done
5253 IFS=$as_save_IFS
5254
5255 fi
5256 fi
5257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5258 if test -n "$ac_ct_CC"; then
5259   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5260 echo "${ECHO_T}$ac_ct_CC" >&6; }
5261 else
5262   { echo "$as_me:$LINENO: result: no" >&5
5263 echo "${ECHO_T}no" >&6; }
5264 fi
5265
5266
5267   test -n "$ac_ct_CC" && break
5268 done
5269
5270   if test "x$ac_ct_CC" = x; then
5271     CC=""
5272   else
5273     case $cross_compiling:$ac_tool_warned in
5274 yes:)
5275 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5276 whose name does not start with the host triplet.  If you think this
5277 configuration is useful to you, please write to autoconf@gnu.org." >&5
5278 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5279 whose name does not start with the host triplet.  If you think this
5280 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5281 ac_tool_warned=yes ;;
5282 esac
5283     CC=$ac_ct_CC
5284   fi
5285 fi
5286
5287
5288 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5289 See \`config.log' for more details." >&5
5290 echo "$as_me: error: no acceptable C compiler found in \$PATH
5291 See \`config.log' for more details." >&2;}
5292    { (exit 1); exit 1; }; }
5293
5294 # Provide some information about the compiler.
5295 echo "$as_me:$LINENO: checking for C compiler version" >&5
5296 ac_compiler=`set X $ac_compile; echo $2`
5297 { (ac_try="$ac_compiler --version >&5"
5298 case "(($ac_try" in
5299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300   *) ac_try_echo=$ac_try;;
5301 esac
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303   (eval "$ac_compiler --version >&5") 2>&5
5304   ac_status=$?
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); }
5307 { (ac_try="$ac_compiler -v >&5"
5308 case "(($ac_try" in
5309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310   *) ac_try_echo=$ac_try;;
5311 esac
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313   (eval "$ac_compiler -v >&5") 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); }
5317 { (ac_try="$ac_compiler -V >&5"
5318 case "(($ac_try" in
5319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320   *) ac_try_echo=$ac_try;;
5321 esac
5322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5323   (eval "$ac_compiler -V >&5") 2>&5
5324   ac_status=$?
5325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326   (exit $ac_status); }
5327
5328 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5329 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5330 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5331   echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333   cat >conftest.$ac_ext <<_ACEOF
5334 /* confdefs.h.  */
5335 _ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h.  */
5339
5340 int
5341 main ()
5342 {
5343 #ifndef __GNUC__
5344        choke me
5345 #endif
5346
5347   ;
5348   return 0;
5349 }
5350 _ACEOF
5351 rm -f conftest.$ac_objext
5352 if { (ac_try="$ac_compile"
5353 case "(($ac_try" in
5354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355   *) ac_try_echo=$ac_try;;
5356 esac
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358   (eval "$ac_compile") 2>conftest.er1
5359   ac_status=$?
5360   grep -v '^ *+' conftest.er1 >conftest.err
5361   rm -f conftest.er1
5362   cat conftest.err >&5
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); } &&
5365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5366   { (case "(($ac_try" in
5367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368   *) ac_try_echo=$ac_try;;
5369 esac
5370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371   (eval "$ac_try") 2>&5
5372   ac_status=$?
5373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374   (exit $ac_status); }; } &&
5375          { ac_try='test -s conftest.$ac_objext'
5376   { (case "(($ac_try" in
5377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378   *) ac_try_echo=$ac_try;;
5379 esac
5380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381   (eval "$ac_try") 2>&5
5382   ac_status=$?
5383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384   (exit $ac_status); }; }; then
5385   ac_compiler_gnu=yes
5386 else
5387   echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5389
5390         ac_compiler_gnu=no
5391 fi
5392
5393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5395
5396 fi
5397 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5398 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5399 GCC=`test $ac_compiler_gnu = yes && echo yes`
5400 ac_test_CFLAGS=${CFLAGS+set}
5401 ac_save_CFLAGS=$CFLAGS
5402 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5403 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5404 if test "${ac_cv_prog_cc_g+set}" = set; then
5405   echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407   ac_save_c_werror_flag=$ac_c_werror_flag
5408    ac_c_werror_flag=yes
5409    ac_cv_prog_cc_g=no
5410    CFLAGS="-g"
5411    cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h.  */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h.  */
5417
5418 int
5419 main ()
5420 {
5421
5422   ;
5423   return 0;
5424 }
5425 _ACEOF
5426 rm -f conftest.$ac_objext
5427 if { (ac_try="$ac_compile"
5428 case "(($ac_try" in
5429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430   *) ac_try_echo=$ac_try;;
5431 esac
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433   (eval "$ac_compile") 2>conftest.er1
5434   ac_status=$?
5435   grep -v '^ *+' conftest.er1 >conftest.err
5436   rm -f conftest.er1
5437   cat conftest.err >&5
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); } &&
5440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5441   { (case "(($ac_try" in
5442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443   *) ac_try_echo=$ac_try;;
5444 esac
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446   (eval "$ac_try") 2>&5
5447   ac_status=$?
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); }; } &&
5450          { ac_try='test -s conftest.$ac_objext'
5451   { (case "(($ac_try" in
5452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453   *) ac_try_echo=$ac_try;;
5454 esac
5455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456   (eval "$ac_try") 2>&5
5457   ac_status=$?
5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); }; }; then
5460   ac_cv_prog_cc_g=yes
5461 else
5462   echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5464
5465         CFLAGS=""
5466       cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h.  */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h.  */
5472
5473 int
5474 main ()
5475 {
5476
5477   ;
5478   return 0;
5479 }
5480 _ACEOF
5481 rm -f conftest.$ac_objext
5482 if { (ac_try="$ac_compile"
5483 case "(($ac_try" in
5484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485   *) ac_try_echo=$ac_try;;
5486 esac
5487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488   (eval "$ac_compile") 2>conftest.er1
5489   ac_status=$?
5490   grep -v '^ *+' conftest.er1 >conftest.err
5491   rm -f conftest.er1
5492   cat conftest.err >&5
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); } &&
5495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5496   { (case "(($ac_try" in
5497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498   *) ac_try_echo=$ac_try;;
5499 esac
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501   (eval "$ac_try") 2>&5
5502   ac_status=$?
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); }; } &&
5505          { ac_try='test -s conftest.$ac_objext'
5506   { (case "(($ac_try" in
5507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508   *) ac_try_echo=$ac_try;;
5509 esac
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511   (eval "$ac_try") 2>&5
5512   ac_status=$?
5513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514   (exit $ac_status); }; }; then
5515   :
5516 else
5517   echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5519
5520         ac_c_werror_flag=$ac_save_c_werror_flag
5521          CFLAGS="-g"
5522          cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h.  */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h.  */
5528
5529 int
5530 main ()
5531 {
5532
5533   ;
5534   return 0;
5535 }
5536 _ACEOF
5537 rm -f conftest.$ac_objext
5538 if { (ac_try="$ac_compile"
5539 case "(($ac_try" in
5540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541   *) ac_try_echo=$ac_try;;
5542 esac
5543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544   (eval "$ac_compile") 2>conftest.er1
5545   ac_status=$?
5546   grep -v '^ *+' conftest.er1 >conftest.err
5547   rm -f conftest.er1
5548   cat conftest.err >&5
5549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550   (exit $ac_status); } &&
5551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5552   { (case "(($ac_try" in
5553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554   *) ac_try_echo=$ac_try;;
5555 esac
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557   (eval "$ac_try") 2>&5
5558   ac_status=$?
5559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560   (exit $ac_status); }; } &&
5561          { ac_try='test -s conftest.$ac_objext'
5562   { (case "(($ac_try" in
5563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564   *) ac_try_echo=$ac_try;;
5565 esac
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567   (eval "$ac_try") 2>&5
5568   ac_status=$?
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); }; }; then
5571   ac_cv_prog_cc_g=yes
5572 else
5573   echo "$as_me: failed program was:" >&5
5574 sed 's/^/| /' conftest.$ac_ext >&5
5575
5576
5577 fi
5578
5579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 fi
5581
5582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583 fi
5584
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586    ac_c_werror_flag=$ac_save_c_werror_flag
5587 fi
5588 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5589 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5590 if test "$ac_test_CFLAGS" = set; then
5591   CFLAGS=$ac_save_CFLAGS
5592 elif test $ac_cv_prog_cc_g = yes; then
5593   if test "$GCC" = yes; then
5594     CFLAGS="-g -O2"
5595   else
5596     CFLAGS="-g"
5597   fi
5598 else
5599   if test "$GCC" = yes; then
5600     CFLAGS="-O2"
5601   else
5602     CFLAGS=
5603   fi
5604 fi
5605 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5606 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5607 if test "${ac_cv_prog_cc_c89+set}" = set; then
5608   echo $ECHO_N "(cached) $ECHO_C" >&6
5609 else
5610   ac_cv_prog_cc_c89=no
5611 ac_save_CC=$CC
5612 cat >conftest.$ac_ext <<_ACEOF
5613 /* confdefs.h.  */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h.  */
5618 #include <stdarg.h>
5619 #include <stdio.h>
5620 #include <sys/types.h>
5621 #include <sys/stat.h>
5622 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5623 struct buf { int x; };
5624 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5625 static char *e (p, i)
5626      char **p;
5627      int i;
5628 {
5629   return p[i];
5630 }
5631 static char *f (char * (*g) (char **, int), char **p, ...)
5632 {
5633   char *s;
5634   va_list v;
5635   va_start (v,p);
5636   s = g (p, va_arg (v,int));
5637   va_end (v);
5638   return s;
5639 }
5640
5641 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5642    function prototypes and stuff, but not '\xHH' hex character constants.
5643    These don't provoke an error unfortunately, instead are silently treated
5644    as 'x'.  The following induces an error, until -std is added to get
5645    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5646    array size at least.  It's necessary to write '\x00'==0 to get something
5647    that's true only with -std.  */
5648 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5649
5650 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5651    inside strings and character constants.  */
5652 #define FOO(x) 'x'
5653 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5654
5655 int test (int i, double x);
5656 struct s1 {int (*f) (int a);};
5657 struct s2 {int (*f) (double a);};
5658 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5659 int argc;
5660 char **argv;
5661 int
5662 main ()
5663 {
5664 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5665   ;
5666   return 0;
5667 }
5668 _ACEOF
5669 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5670         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5671 do
5672   CC="$ac_save_CC $ac_arg"
5673   rm -f conftest.$ac_objext
5674 if { (ac_try="$ac_compile"
5675 case "(($ac_try" in
5676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677   *) ac_try_echo=$ac_try;;
5678 esac
5679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680   (eval "$ac_compile") 2>conftest.er1
5681   ac_status=$?
5682   grep -v '^ *+' conftest.er1 >conftest.err
5683   rm -f conftest.er1
5684   cat conftest.err >&5
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); } &&
5687          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5688   { (case "(($ac_try" in
5689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690   *) ac_try_echo=$ac_try;;
5691 esac
5692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693   (eval "$ac_try") 2>&5
5694   ac_status=$?
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); }; } &&
5697          { ac_try='test -s conftest.$ac_objext'
5698   { (case "(($ac_try" in
5699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700   *) ac_try_echo=$ac_try;;
5701 esac
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703   (eval "$ac_try") 2>&5
5704   ac_status=$?
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); }; }; then
5707   ac_cv_prog_cc_c89=$ac_arg
5708 else
5709   echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5711
5712
5713 fi
5714
5715 rm -f core conftest.err conftest.$ac_objext
5716   test "x$ac_cv_prog_cc_c89" != "xno" && break
5717 done
5718 rm -f conftest.$ac_ext
5719 CC=$ac_save_CC
5720
5721 fi
5722 # AC_CACHE_VAL
5723 case "x$ac_cv_prog_cc_c89" in
5724   x)
5725     { echo "$as_me:$LINENO: result: none needed" >&5
5726 echo "${ECHO_T}none needed" >&6; } ;;
5727   xno)
5728     { echo "$as_me:$LINENO: result: unsupported" >&5
5729 echo "${ECHO_T}unsupported" >&6; } ;;
5730   *)
5731     CC="$CC $ac_cv_prog_cc_c89"
5732     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5733 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5734 esac
5735
5736
5737 ac_ext=c
5738 ac_cpp='$CPP $CPPFLAGS'
5739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5742
5743 ac_ext=cpp
5744 ac_cpp='$CXXCPP $CPPFLAGS'
5745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5748 if test -z "$CXX"; then
5749   if test -n "$CCC"; then
5750     CXX=$CCC
5751   else
5752     if test -n "$ac_tool_prefix"; then
5753   for ac_prog in g++
5754   do
5755     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5759 if test "${ac_cv_prog_CXX+set}" = set; then
5760   echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762   if test -n "$CXX"; then
5763   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5767 do
5768   IFS=$as_save_IFS
5769   test -z "$as_dir" && as_dir=.
5770   for ac_exec_ext in '' $ac_executable_extensions; do
5771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5772     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774     break 2
5775   fi
5776 done
5777 done
5778 IFS=$as_save_IFS
5779
5780 fi
5781 fi
5782 CXX=$ac_cv_prog_CXX
5783 if test -n "$CXX"; then
5784   { echo "$as_me:$LINENO: result: $CXX" >&5
5785 echo "${ECHO_T}$CXX" >&6; }
5786 else
5787   { echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6; }
5789 fi
5790
5791
5792     test -n "$CXX" && break
5793   done
5794 fi
5795 if test -z "$CXX"; then
5796   ac_ct_CXX=$CXX
5797   for ac_prog in g++
5798 do
5799   # Extract the first word of "$ac_prog", so it can be a program name with args.
5800 set dummy $ac_prog; ac_word=$2
5801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5803 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5804   echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806   if test -n "$ac_ct_CXX"; then
5807   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5808 else
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5811 do
5812   IFS=$as_save_IFS
5813   test -z "$as_dir" && as_dir=.
5814   for ac_exec_ext in '' $ac_executable_extensions; do
5815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5816     ac_cv_prog_ac_ct_CXX="$ac_prog"
5817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818     break 2
5819   fi
5820 done
5821 done
5822 IFS=$as_save_IFS
5823
5824 fi
5825 fi
5826 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5827 if test -n "$ac_ct_CXX"; then
5828   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5829 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5830 else
5831   { echo "$as_me:$LINENO: result: no" >&5
5832 echo "${ECHO_T}no" >&6; }
5833 fi
5834
5835
5836   test -n "$ac_ct_CXX" && break
5837 done
5838
5839   if test "x$ac_ct_CXX" = x; then
5840     CXX="g++"
5841   else
5842     case $cross_compiling:$ac_tool_warned in
5843 yes:)
5844 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5845 whose name does not start with the host triplet.  If you think this
5846 configuration is useful to you, please write to autoconf@gnu.org." >&5
5847 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5848 whose name does not start with the host triplet.  If you think this
5849 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5850 ac_tool_warned=yes ;;
5851 esac
5852     CXX=$ac_ct_CXX
5853   fi
5854 fi
5855
5856   fi
5857 fi
5858 # Provide some information about the compiler.
5859 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5860 ac_compiler=`set X $ac_compile; echo $2`
5861 { (ac_try="$ac_compiler --version >&5"
5862 case "(($ac_try" in
5863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864   *) ac_try_echo=$ac_try;;
5865 esac
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867   (eval "$ac_compiler --version >&5") 2>&5
5868   ac_status=$?
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); }
5871 { (ac_try="$ac_compiler -v >&5"
5872 case "(($ac_try" in
5873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874   *) ac_try_echo=$ac_try;;
5875 esac
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877   (eval "$ac_compiler -v >&5") 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }
5881 { (ac_try="$ac_compiler -V >&5"
5882 case "(($ac_try" in
5883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884   *) ac_try_echo=$ac_try;;
5885 esac
5886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887   (eval "$ac_compiler -V >&5") 2>&5
5888   ac_status=$?
5889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890   (exit $ac_status); }
5891
5892 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5893 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5894 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5895   echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897   cat >conftest.$ac_ext <<_ACEOF
5898 /* confdefs.h.  */
5899 _ACEOF
5900 cat confdefs.h >>conftest.$ac_ext
5901 cat >>conftest.$ac_ext <<_ACEOF
5902 /* end confdefs.h.  */
5903
5904 int
5905 main ()
5906 {
5907 #ifndef __GNUC__
5908        choke me
5909 #endif
5910
5911   ;
5912   return 0;
5913 }
5914 _ACEOF
5915 rm -f conftest.$ac_objext
5916 if { (ac_try="$ac_compile"
5917 case "(($ac_try" in
5918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919   *) ac_try_echo=$ac_try;;
5920 esac
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922   (eval "$ac_compile") 2>conftest.er1
5923   ac_status=$?
5924   grep -v '^ *+' conftest.er1 >conftest.err
5925   rm -f conftest.er1
5926   cat conftest.err >&5
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); } &&
5929          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5930   { (case "(($ac_try" in
5931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932   *) ac_try_echo=$ac_try;;
5933 esac
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935   (eval "$ac_try") 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); }; } &&
5939          { ac_try='test -s conftest.$ac_objext'
5940   { (case "(($ac_try" in
5941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942   *) ac_try_echo=$ac_try;;
5943 esac
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945   (eval "$ac_try") 2>&5
5946   ac_status=$?
5947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948   (exit $ac_status); }; }; then
5949   ac_compiler_gnu=yes
5950 else
5951   echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5953
5954         ac_compiler_gnu=no
5955 fi
5956
5957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5959
5960 fi
5961 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5962 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5963 GXX=`test $ac_compiler_gnu = yes && echo yes`
5964 ac_test_CXXFLAGS=${CXXFLAGS+set}
5965 ac_save_CXXFLAGS=$CXXFLAGS
5966 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5967 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5968 if test "${ac_cv_prog_cxx_g+set}" = set; then
5969   echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5972    ac_cxx_werror_flag=yes
5973    ac_cv_prog_cxx_g=no
5974    CXXFLAGS="-g"
5975    cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h.  */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h.  */
5981
5982 int
5983 main ()
5984 {
5985
5986   ;
5987   return 0;
5988 }
5989 _ACEOF
5990 rm -f conftest.$ac_objext
5991 if { (ac_try="$ac_compile"
5992 case "(($ac_try" in
5993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994   *) ac_try_echo=$ac_try;;
5995 esac
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997   (eval "$ac_compile") 2>conftest.er1
5998   ac_status=$?
5999   grep -v '^ *+' conftest.er1 >conftest.err
6000   rm -f conftest.er1
6001   cat conftest.err >&5
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); } &&
6004          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6005   { (case "(($ac_try" in
6006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007   *) ac_try_echo=$ac_try;;
6008 esac
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010   (eval "$ac_try") 2>&5
6011   ac_status=$?
6012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); }; } &&
6014          { ac_try='test -s conftest.$ac_objext'
6015   { (case "(($ac_try" in
6016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017   *) ac_try_echo=$ac_try;;
6018 esac
6019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6020   (eval "$ac_try") 2>&5
6021   ac_status=$?
6022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); }; }; then
6024   ac_cv_prog_cxx_g=yes
6025 else
6026   echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6028
6029         CXXFLAGS=""
6030       cat >conftest.$ac_ext <<_ACEOF
6031 /* confdefs.h.  */
6032 _ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h.  */
6036
6037 int
6038 main ()
6039 {
6040
6041   ;
6042   return 0;
6043 }
6044 _ACEOF
6045 rm -f conftest.$ac_objext
6046 if { (ac_try="$ac_compile"
6047 case "(($ac_try" in
6048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049   *) ac_try_echo=$ac_try;;
6050 esac
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052   (eval "$ac_compile") 2>conftest.er1
6053   ac_status=$?
6054   grep -v '^ *+' conftest.er1 >conftest.err
6055   rm -f conftest.er1
6056   cat conftest.err >&5
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); } &&
6059          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6060   { (case "(($ac_try" in
6061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062   *) ac_try_echo=$ac_try;;
6063 esac
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065   (eval "$ac_try") 2>&5
6066   ac_status=$?
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); }; } &&
6069          { ac_try='test -s conftest.$ac_objext'
6070   { (case "(($ac_try" in
6071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072   *) ac_try_echo=$ac_try;;
6073 esac
6074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075   (eval "$ac_try") 2>&5
6076   ac_status=$?
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); }; }; then
6079   :
6080 else
6081   echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6083
6084         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6085          CXXFLAGS="-g"
6086          cat >conftest.$ac_ext <<_ACEOF
6087 /* confdefs.h.  */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h.  */
6092
6093 int
6094 main ()
6095 {
6096
6097   ;
6098   return 0;
6099 }
6100 _ACEOF
6101 rm -f conftest.$ac_objext
6102 if { (ac_try="$ac_compile"
6103 case "(($ac_try" in
6104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105   *) ac_try_echo=$ac_try;;
6106 esac
6107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108   (eval "$ac_compile") 2>conftest.er1
6109   ac_status=$?
6110   grep -v '^ *+' conftest.er1 >conftest.err
6111   rm -f conftest.er1
6112   cat conftest.err >&5
6113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114   (exit $ac_status); } &&
6115          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6116   { (case "(($ac_try" in
6117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118   *) ac_try_echo=$ac_try;;
6119 esac
6120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121   (eval "$ac_try") 2>&5
6122   ac_status=$?
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); }; } &&
6125          { ac_try='test -s conftest.$ac_objext'
6126   { (case "(($ac_try" in
6127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128   *) ac_try_echo=$ac_try;;
6129 esac
6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131   (eval "$ac_try") 2>&5
6132   ac_status=$?
6133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); }; }; then
6135   ac_cv_prog_cxx_g=yes
6136 else
6137   echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6139
6140
6141 fi
6142
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 fi
6145
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147 fi
6148
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6151 fi
6152 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6153 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6154 if test "$ac_test_CXXFLAGS" = set; then
6155   CXXFLAGS=$ac_save_CXXFLAGS
6156 elif test $ac_cv_prog_cxx_g = yes; then
6157   if test "$GXX" = yes; then
6158     CXXFLAGS="-g -O2"
6159   else
6160     CXXFLAGS="-g"
6161   fi
6162 else
6163   if test "$GXX" = yes; then
6164     CXXFLAGS="-O2"
6165   else
6166     CXXFLAGS=
6167   fi
6168 fi
6169 ac_ext=c
6170 ac_cpp='$CPP $CPPFLAGS'
6171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6174
6175 { echo "$as_me:$LINENO: checking " >&5
6176 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6177 if test "${ac_cv_has_flex+set}" = set; then
6178   echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180   for ac_prog in flex lex
6181 do
6182   # Extract the first word of "$ac_prog", so it can be a program name with args.
6183 set dummy $ac_prog; ac_word=$2
6184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186 if test "${ac_cv_prog_LEX+set}" = set; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189   if test -n "$LEX"; then
6190   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195   IFS=$as_save_IFS
6196   test -z "$as_dir" && as_dir=.
6197   for ac_exec_ext in '' $ac_executable_extensions; do
6198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6199     ac_cv_prog_LEX="$ac_prog"
6200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201     break 2
6202   fi
6203 done
6204 done
6205 IFS=$as_save_IFS
6206
6207 fi
6208 fi
6209 LEX=$ac_cv_prog_LEX
6210 if test -n "$LEX"; then
6211   { echo "$as_me:$LINENO: result: $LEX" >&5
6212 echo "${ECHO_T}$LEX" >&6; }
6213 else
6214   { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6216 fi
6217
6218
6219   test -n "$LEX" && break
6220 done
6221 test -n "$LEX" || LEX=":"
6222
6223 if test -z "$LEXLIB"
6224 then
6225   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6226 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6227 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230   ac_check_lib_save_LIBS=$LIBS
6231 LIBS="-lfl  $LIBS"
6232 cat >conftest.$ac_ext <<_ACEOF
6233 /* confdefs.h.  */
6234 _ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h.  */
6238
6239 /* Override any GCC internal prototype to avoid an error.
6240    Use char because int might match the return type of a GCC
6241    builtin and then its argument prototype would still apply.  */
6242 #ifdef __cplusplus
6243 extern "C"
6244 #endif
6245 char yywrap ();
6246 int
6247 main ()
6248 {
6249 return yywrap ();
6250   ;
6251   return 0;
6252 }
6253 _ACEOF
6254 rm -f conftest.$ac_objext conftest$ac_exeext
6255 if { (ac_try="$ac_link"
6256 case "(($ac_try" in
6257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258   *) ac_try_echo=$ac_try;;
6259 esac
6260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261   (eval "$ac_link") 2>conftest.er1
6262   ac_status=$?
6263   grep -v '^ *+' conftest.er1 >conftest.err
6264   rm -f conftest.er1
6265   cat conftest.err >&5
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); } &&
6268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6269   { (case "(($ac_try" in
6270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271   *) ac_try_echo=$ac_try;;
6272 esac
6273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274   (eval "$ac_try") 2>&5
6275   ac_status=$?
6276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277   (exit $ac_status); }; } &&
6278          { ac_try='test -s conftest$ac_exeext'
6279   { (case "(($ac_try" in
6280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281   *) ac_try_echo=$ac_try;;
6282 esac
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284   (eval "$ac_try") 2>&5
6285   ac_status=$?
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); }; }; then
6288   ac_cv_lib_fl_yywrap=yes
6289 else
6290   echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6292
6293         ac_cv_lib_fl_yywrap=no
6294 fi
6295
6296 rm -f core conftest.err conftest.$ac_objext \
6297       conftest$ac_exeext conftest.$ac_ext
6298 LIBS=$ac_check_lib_save_LIBS
6299 fi
6300 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6301 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6302 if test $ac_cv_lib_fl_yywrap = yes; then
6303   LEXLIB="-lfl"
6304 else
6305   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6306 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6307 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6308   echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310   ac_check_lib_save_LIBS=$LIBS
6311 LIBS="-ll  $LIBS"
6312 cat >conftest.$ac_ext <<_ACEOF
6313 /* confdefs.h.  */
6314 _ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h.  */
6318
6319 /* Override any GCC internal prototype to avoid an error.
6320    Use char because int might match the return type of a GCC
6321    builtin and then its argument prototype would still apply.  */
6322 #ifdef __cplusplus
6323 extern "C"
6324 #endif
6325 char yywrap ();
6326 int
6327 main ()
6328 {
6329 return yywrap ();
6330   ;
6331   return 0;
6332 }
6333 _ACEOF
6334 rm -f conftest.$ac_objext conftest$ac_exeext
6335 if { (ac_try="$ac_link"
6336 case "(($ac_try" in
6337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338   *) ac_try_echo=$ac_try;;
6339 esac
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341   (eval "$ac_link") 2>conftest.er1
6342   ac_status=$?
6343   grep -v '^ *+' conftest.er1 >conftest.err
6344   rm -f conftest.er1
6345   cat conftest.err >&5
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); } &&
6348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6349   { (case "(($ac_try" in
6350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351   *) ac_try_echo=$ac_try;;
6352 esac
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354   (eval "$ac_try") 2>&5
6355   ac_status=$?
6356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357   (exit $ac_status); }; } &&
6358          { ac_try='test -s conftest$ac_exeext'
6359   { (case "(($ac_try" in
6360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361   *) ac_try_echo=$ac_try;;
6362 esac
6363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6364   (eval "$ac_try") 2>&5
6365   ac_status=$?
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); }; }; then
6368   ac_cv_lib_l_yywrap=yes
6369 else
6370   echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6372
6373         ac_cv_lib_l_yywrap=no
6374 fi
6375
6376 rm -f core conftest.err conftest.$ac_objext \
6377       conftest$ac_exeext conftest.$ac_ext
6378 LIBS=$ac_check_lib_save_LIBS
6379 fi
6380 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6381 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6382 if test $ac_cv_lib_l_yywrap = yes; then
6383   LEXLIB="-ll"
6384 fi
6385
6386 fi
6387
6388 fi
6389
6390 if test "x$LEX" != "x:"; then
6391   { echo "$as_me:$LINENO: checking lex output file root" >&5
6392 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6393 if test "${ac_cv_prog_lex_root+set}" = set; then
6394   echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396   # The minimal lex program is just a single line: %%.  But some broken lexes
6397 # (Solaris, I think it was) want two %% lines, so accommodate them.
6398 cat >conftest.l <<_ACEOF
6399 %%
6400 %%
6401 _ACEOF
6402 { (ac_try="$LEX conftest.l"
6403 case "(($ac_try" in
6404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405   *) ac_try_echo=$ac_try;;
6406 esac
6407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408   (eval "$LEX conftest.l") 2>&5
6409   ac_status=$?
6410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411   (exit $ac_status); }
6412 if test -f lex.yy.c; then
6413   ac_cv_prog_lex_root=lex.yy
6414 elif test -f lexyy.c; then
6415   ac_cv_prog_lex_root=lexyy
6416 else
6417   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6418 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6419    { (exit 1); exit 1; }; }
6420 fi
6421 fi
6422 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6423 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6424 rm -f conftest.l
6425 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6426
6427 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6428 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6429 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6430   echo $ECHO_N "(cached) $ECHO_C" >&6
6431 else
6432   # POSIX says lex can declare yytext either as a pointer or an array; the
6433 # default is implementation-dependent. Figure out which it is, since
6434 # not all implementations provide the %pointer and %array declarations.
6435 ac_cv_prog_lex_yytext_pointer=no
6436 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6437 ac_save_LIBS=$LIBS
6438 LIBS="$LIBS $LEXLIB"
6439 cat >conftest.$ac_ext <<_ACEOF
6440 `cat $LEX_OUTPUT_ROOT.c`
6441 _ACEOF
6442 rm -f conftest.$ac_objext conftest$ac_exeext
6443 if { (ac_try="$ac_link"
6444 case "(($ac_try" in
6445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446   *) ac_try_echo=$ac_try;;
6447 esac
6448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449   (eval "$ac_link") 2>conftest.er1
6450   ac_status=$?
6451   grep -v '^ *+' conftest.er1 >conftest.err
6452   rm -f conftest.er1
6453   cat conftest.err >&5
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); } &&
6456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6457   { (case "(($ac_try" in
6458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459   *) ac_try_echo=$ac_try;;
6460 esac
6461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462   (eval "$ac_try") 2>&5
6463   ac_status=$?
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); }; } &&
6466          { ac_try='test -s conftest$ac_exeext'
6467   { (case "(($ac_try" in
6468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469   *) ac_try_echo=$ac_try;;
6470 esac
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472   (eval "$ac_try") 2>&5
6473   ac_status=$?
6474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475   (exit $ac_status); }; }; then
6476   ac_cv_prog_lex_yytext_pointer=yes
6477 else
6478   echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.$ac_ext >&5
6480
6481
6482 fi
6483
6484 rm -f core conftest.err conftest.$ac_objext \
6485       conftest$ac_exeext conftest.$ac_ext
6486 LIBS=$ac_save_LIBS
6487 rm -f "${LEX_OUTPUT_ROOT}.c"
6488
6489 fi
6490 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6491 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6492 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6493
6494 cat >>confdefs.h <<\_ACEOF
6495 #define YYTEXT_POINTER 1
6496 _ACEOF
6497
6498 fi
6499
6500 fi
6501
6502 fi
6503 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6504 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6505 if test "$LEX" != "flex"; then
6506   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6507 echo "$as_me: error: flex not found but required" >&2;}
6508    { (exit 1); exit 1; }; }
6509 else
6510   FLEX=flex
6511
6512 fi
6513
6514 { echo "$as_me:$LINENO: checking " >&5
6515 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6516 if test "${llvm_cv_has_bison+set}" = set; then
6517   echo $ECHO_N "(cached) $ECHO_C" >&6
6518 else
6519   for ac_prog in 'bison -y' byacc
6520 do
6521   # Extract the first word of "$ac_prog", so it can be a program name with args.
6522 set dummy $ac_prog; ac_word=$2
6523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6525 if test "${ac_cv_prog_YACC+set}" = set; then
6526   echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528   if test -n "$YACC"; then
6529   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6530 else
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6533 do
6534   IFS=$as_save_IFS
6535   test -z "$as_dir" && as_dir=.
6536   for ac_exec_ext in '' $ac_executable_extensions; do
6537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6538     ac_cv_prog_YACC="$ac_prog"
6539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540     break 2
6541   fi
6542 done
6543 done
6544 IFS=$as_save_IFS
6545
6546 fi
6547 fi
6548 YACC=$ac_cv_prog_YACC
6549 if test -n "$YACC"; then
6550   { echo "$as_me:$LINENO: result: $YACC" >&5
6551 echo "${ECHO_T}$YACC" >&6; }
6552 else
6553   { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6555 fi
6556
6557
6558   test -n "$YACC" && break
6559 done
6560 test -n "$YACC" || YACC="yacc"
6561
6562 fi
6563 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6564 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6565 if test "$YACC" != "bison -y"; then
6566
6567   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6568 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6569 else
6570   BISON=bison
6571
6572 fi
6573
6574 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6575 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6576 if test "${lt_cv_path_NM+set}" = set; then
6577   echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579   if test -n "$NM"; then
6580   # Let the user override the test.
6581   lt_cv_path_NM="$NM"
6582 else
6583   lt_nm_to_check="${ac_tool_prefix}nm"
6584   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6585     lt_nm_to_check="$lt_nm_to_check nm"
6586   fi
6587   for lt_tmp_nm in $lt_nm_to_check; do
6588     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6589     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6590       IFS="$lt_save_ifs"
6591       test -z "$ac_dir" && ac_dir=.
6592       tmp_nm="$ac_dir/$lt_tmp_nm"
6593       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6594         # Check to see if the nm accepts a BSD-compat flag.
6595         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6596         #   nm: unknown option "B" ignored
6597         # Tru64's nm complains that /dev/null is an invalid object file
6598         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6599         */dev/null* | *'Invalid file or object type'*)
6600           lt_cv_path_NM="$tmp_nm -B"
6601           break
6602           ;;
6603         *)
6604           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6605           */dev/null*)
6606             lt_cv_path_NM="$tmp_nm -p"
6607             break
6608             ;;
6609           *)
6610             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6611             continue # so that we can try to find one that supports BSD flags
6612             ;;
6613           esac
6614           ;;
6615         esac
6616       fi
6617     done
6618     IFS="$lt_save_ifs"
6619   done
6620   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6621 fi
6622 fi
6623 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6624 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6625 NM="$lt_cv_path_NM"
6626
6627
6628
6629 { echo "$as_me:$LINENO: checking for GNU make" >&5
6630 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6631 if test "${llvm_cv_gnu_make_command+set}" = set; then
6632   echo $ECHO_N "(cached) $ECHO_C" >&6
6633 else
6634   llvm_cv_gnu_make_command=''
6635  for a in "$MAKE" make gmake gnumake ; do
6636   if test -z "$a" ; then continue ; fi ;
6637   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6638   then
6639    llvm_cv_gnu_make_command=$a ;
6640    break;
6641   fi
6642  done
6643 fi
6644 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6645 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6646  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6647    ifGNUmake='' ;
6648  else
6649    ifGNUmake='#' ;
6650    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6651 echo "${ECHO_T}\"Not found\"" >&6; };
6652  fi
6653
6654
6655 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6656 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6657 LN_S=$as_ln_s
6658 if test "$LN_S" = "ln -s"; then
6659   { echo "$as_me:$LINENO: result: yes" >&5
6660 echo "${ECHO_T}yes" >&6; }
6661 else
6662   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6663 echo "${ECHO_T}no, using $LN_S" >&6; }
6664 fi
6665
6666 # Extract the first word of "cmp", so it can be a program name with args.
6667 set dummy cmp; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_path_CMP+set}" = set; then
6671   echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673   case $CMP in
6674   [\\/]* | ?:[\\/]*)
6675   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6676   ;;
6677   *)
6678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681   IFS=$as_save_IFS
6682   test -z "$as_dir" && as_dir=.
6683   for ac_exec_ext in '' $ac_executable_extensions; do
6684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6685     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687     break 2
6688   fi
6689 done
6690 done
6691 IFS=$as_save_IFS
6692
6693   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6694   ;;
6695 esac
6696 fi
6697 CMP=$ac_cv_path_CMP
6698 if test -n "$CMP"; then
6699   { echo "$as_me:$LINENO: result: $CMP" >&5
6700 echo "${ECHO_T}$CMP" >&6; }
6701 else
6702   { echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6; }
6704 fi
6705
6706
6707 # Extract the first word of "cp", so it can be a program name with args.
6708 set dummy cp; ac_word=$2
6709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711 if test "${ac_cv_path_CP+set}" = set; then
6712   echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714   case $CP in
6715   [\\/]* | ?:[\\/]*)
6716   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6717   ;;
6718   *)
6719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6721 do
6722   IFS=$as_save_IFS
6723   test -z "$as_dir" && as_dir=.
6724   for ac_exec_ext in '' $ac_executable_extensions; do
6725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6726     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6728     break 2
6729   fi
6730 done
6731 done
6732 IFS=$as_save_IFS
6733
6734   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6735   ;;
6736 esac
6737 fi
6738 CP=$ac_cv_path_CP
6739 if test -n "$CP"; then
6740   { echo "$as_me:$LINENO: result: $CP" >&5
6741 echo "${ECHO_T}$CP" >&6; }
6742 else
6743   { echo "$as_me:$LINENO: result: no" >&5
6744 echo "${ECHO_T}no" >&6; }
6745 fi
6746
6747
6748 # Extract the first word of "date", so it can be a program name with args.
6749 set dummy date; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_path_DATE+set}" = set; then
6753   echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755   case $DATE in
6756   [\\/]* | ?:[\\/]*)
6757   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6758   ;;
6759   *)
6760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6762 do
6763   IFS=$as_save_IFS
6764   test -z "$as_dir" && as_dir=.
6765   for ac_exec_ext in '' $ac_executable_extensions; do
6766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6767     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769     break 2
6770   fi
6771 done
6772 done
6773 IFS=$as_save_IFS
6774
6775   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6776   ;;
6777 esac
6778 fi
6779 DATE=$ac_cv_path_DATE
6780 if test -n "$DATE"; then
6781   { echo "$as_me:$LINENO: result: $DATE" >&5
6782 echo "${ECHO_T}$DATE" >&6; }
6783 else
6784   { echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6; }
6786 fi
6787
6788
6789 # Extract the first word of "find", so it can be a program name with args.
6790 set dummy find; ac_word=$2
6791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6793 if test "${ac_cv_path_FIND+set}" = set; then
6794   echo $ECHO_N "(cached) $ECHO_C" >&6
6795 else
6796   case $FIND in
6797   [\\/]* | ?:[\\/]*)
6798   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6799   ;;
6800   *)
6801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6803 do
6804   IFS=$as_save_IFS
6805   test -z "$as_dir" && as_dir=.
6806   for ac_exec_ext in '' $ac_executable_extensions; do
6807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6808     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810     break 2
6811   fi
6812 done
6813 done
6814 IFS=$as_save_IFS
6815
6816   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6817   ;;
6818 esac
6819 fi
6820 FIND=$ac_cv_path_FIND
6821 if test -n "$FIND"; then
6822   { echo "$as_me:$LINENO: result: $FIND" >&5
6823 echo "${ECHO_T}$FIND" >&6; }
6824 else
6825   { echo "$as_me:$LINENO: result: no" >&5
6826 echo "${ECHO_T}no" >&6; }
6827 fi
6828
6829
6830 # Extract the first word of "grep", so it can be a program name with args.
6831 set dummy grep; ac_word=$2
6832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6834 if test "${ac_cv_path_GREP+set}" = set; then
6835   echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837   case $GREP in
6838   [\\/]* | ?:[\\/]*)
6839   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6840   ;;
6841   *)
6842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6844 do
6845   IFS=$as_save_IFS
6846   test -z "$as_dir" && as_dir=.
6847   for ac_exec_ext in '' $ac_executable_extensions; do
6848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6849     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6851     break 2
6852   fi
6853 done
6854 done
6855 IFS=$as_save_IFS
6856
6857   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6858   ;;
6859 esac
6860 fi
6861 GREP=$ac_cv_path_GREP
6862 if test -n "$GREP"; then
6863   { echo "$as_me:$LINENO: result: $GREP" >&5
6864 echo "${ECHO_T}$GREP" >&6; }
6865 else
6866   { echo "$as_me:$LINENO: result: no" >&5
6867 echo "${ECHO_T}no" >&6; }
6868 fi
6869
6870
6871 # Extract the first word of "mkdir", so it can be a program name with args.
6872 set dummy mkdir; ac_word=$2
6873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6875 if test "${ac_cv_path_MKDIR+set}" = set; then
6876   echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878   case $MKDIR in
6879   [\\/]* | ?:[\\/]*)
6880   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6881   ;;
6882   *)
6883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886   IFS=$as_save_IFS
6887   test -z "$as_dir" && as_dir=.
6888   for ac_exec_ext in '' $ac_executable_extensions; do
6889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6890     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892     break 2
6893   fi
6894 done
6895 done
6896 IFS=$as_save_IFS
6897
6898   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6899   ;;
6900 esac
6901 fi
6902 MKDIR=$ac_cv_path_MKDIR
6903 if test -n "$MKDIR"; then
6904   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6905 echo "${ECHO_T}$MKDIR" >&6; }
6906 else
6907   { echo "$as_me:$LINENO: result: no" >&5
6908 echo "${ECHO_T}no" >&6; }
6909 fi
6910
6911
6912 # Extract the first word of "mv", so it can be a program name with args.
6913 set dummy mv; ac_word=$2
6914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6916 if test "${ac_cv_path_MV+set}" = set; then
6917   echo $ECHO_N "(cached) $ECHO_C" >&6
6918 else
6919   case $MV in
6920   [\\/]* | ?:[\\/]*)
6921   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6922   ;;
6923   *)
6924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 for as_dir in $PATH
6926 do
6927   IFS=$as_save_IFS
6928   test -z "$as_dir" && as_dir=.
6929   for ac_exec_ext in '' $ac_executable_extensions; do
6930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6931     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6933     break 2
6934   fi
6935 done
6936 done
6937 IFS=$as_save_IFS
6938
6939   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6940   ;;
6941 esac
6942 fi
6943 MV=$ac_cv_path_MV
6944 if test -n "$MV"; then
6945   { echo "$as_me:$LINENO: result: $MV" >&5
6946 echo "${ECHO_T}$MV" >&6; }
6947 else
6948   { echo "$as_me:$LINENO: result: no" >&5
6949 echo "${ECHO_T}no" >&6; }
6950 fi
6951
6952
6953 if test -n "$ac_tool_prefix"; then
6954   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6955 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958 if test "${ac_cv_prog_RANLIB+set}" = set; then
6959   echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961   if test -n "$RANLIB"; then
6962   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6963 else
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6966 do
6967   IFS=$as_save_IFS
6968   test -z "$as_dir" && as_dir=.
6969   for ac_exec_ext in '' $ac_executable_extensions; do
6970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6971     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973     break 2
6974   fi
6975 done
6976 done
6977 IFS=$as_save_IFS
6978
6979 fi
6980 fi
6981 RANLIB=$ac_cv_prog_RANLIB
6982 if test -n "$RANLIB"; then
6983   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6984 echo "${ECHO_T}$RANLIB" >&6; }
6985 else
6986   { echo "$as_me:$LINENO: result: no" >&5
6987 echo "${ECHO_T}no" >&6; }
6988 fi
6989
6990
6991 fi
6992 if test -z "$ac_cv_prog_RANLIB"; then
6993   ac_ct_RANLIB=$RANLIB
6994   # Extract the first word of "ranlib", so it can be a program name with args.
6995 set dummy ranlib; ac_word=$2
6996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6998 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6999   echo $ECHO_N "(cached) $ECHO_C" >&6
7000 else
7001   if test -n "$ac_ct_RANLIB"; then
7002   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7003 else
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH
7006 do
7007   IFS=$as_save_IFS
7008   test -z "$as_dir" && as_dir=.
7009   for ac_exec_ext in '' $ac_executable_extensions; do
7010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7011     ac_cv_prog_ac_ct_RANLIB="ranlib"
7012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013     break 2
7014   fi
7015 done
7016 done
7017 IFS=$as_save_IFS
7018
7019 fi
7020 fi
7021 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7022 if test -n "$ac_ct_RANLIB"; then
7023   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7024 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7025 else
7026   { echo "$as_me:$LINENO: result: no" >&5
7027 echo "${ECHO_T}no" >&6; }
7028 fi
7029
7030   if test "x$ac_ct_RANLIB" = x; then
7031     RANLIB=":"
7032   else
7033     case $cross_compiling:$ac_tool_warned in
7034 yes:)
7035 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7036 whose name does not start with the host triplet.  If you think this
7037 configuration is useful to you, please write to autoconf@gnu.org." >&5
7038 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7039 whose name does not start with the host triplet.  If you think this
7040 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7041 ac_tool_warned=yes ;;
7042 esac
7043     RANLIB=$ac_ct_RANLIB
7044   fi
7045 else
7046   RANLIB="$ac_cv_prog_RANLIB"
7047 fi
7048
7049 # Extract the first word of "rm", so it can be a program name with args.
7050 set dummy rm; ac_word=$2
7051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7053 if test "${ac_cv_path_RM+set}" = set; then
7054   echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056   case $RM in
7057   [\\/]* | ?:[\\/]*)
7058   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7059   ;;
7060   *)
7061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in $PATH
7063 do
7064   IFS=$as_save_IFS
7065   test -z "$as_dir" && as_dir=.
7066   for ac_exec_ext in '' $ac_executable_extensions; do
7067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7068     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7070     break 2
7071   fi
7072 done
7073 done
7074 IFS=$as_save_IFS
7075
7076   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7077   ;;
7078 esac
7079 fi
7080 RM=$ac_cv_path_RM
7081 if test -n "$RM"; then
7082   { echo "$as_me:$LINENO: result: $RM" >&5
7083 echo "${ECHO_T}$RM" >&6; }
7084 else
7085   { echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6; }
7087 fi
7088
7089
7090 # Extract the first word of "sed", so it can be a program name with args.
7091 set dummy sed; ac_word=$2
7092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7094 if test "${ac_cv_path_SED+set}" = set; then
7095   echo $ECHO_N "(cached) $ECHO_C" >&6
7096 else
7097   case $SED in
7098   [\\/]* | ?:[\\/]*)
7099   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7100   ;;
7101   *)
7102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105   IFS=$as_save_IFS
7106   test -z "$as_dir" && as_dir=.
7107   for ac_exec_ext in '' $ac_executable_extensions; do
7108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7109     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111     break 2
7112   fi
7113 done
7114 done
7115 IFS=$as_save_IFS
7116
7117   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7118   ;;
7119 esac
7120 fi
7121 SED=$ac_cv_path_SED
7122 if test -n "$SED"; then
7123   { echo "$as_me:$LINENO: result: $SED" >&5
7124 echo "${ECHO_T}$SED" >&6; }
7125 else
7126   { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7128 fi
7129
7130
7131 # Extract the first word of "tar", so it can be a program name with args.
7132 set dummy tar; ac_word=$2
7133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135 if test "${ac_cv_path_TAR+set}" = set; then
7136   echo $ECHO_N "(cached) $ECHO_C" >&6
7137 else
7138   case $TAR in
7139   [\\/]* | ?:[\\/]*)
7140   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7141   ;;
7142   *)
7143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 for as_dir in $PATH
7145 do
7146   IFS=$as_save_IFS
7147   test -z "$as_dir" && as_dir=.
7148   for ac_exec_ext in '' $ac_executable_extensions; do
7149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7150     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152     break 2
7153   fi
7154 done
7155 done
7156 IFS=$as_save_IFS
7157
7158   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7159   ;;
7160 esac
7161 fi
7162 TAR=$ac_cv_path_TAR
7163 if test -n "$TAR"; then
7164   { echo "$as_me:$LINENO: result: $TAR" >&5
7165 echo "${ECHO_T}$TAR" >&6; }
7166 else
7167   { echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6; }
7169 fi
7170
7171
7172 # Extract the first word of "pwd", so it can be a program name with args.
7173 set dummy pwd; ac_word=$2
7174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176 if test "${ac_cv_path_BINPWD+set}" = set; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179   case $BINPWD in
7180   [\\/]* | ?:[\\/]*)
7181   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7182   ;;
7183   *)
7184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187   IFS=$as_save_IFS
7188   test -z "$as_dir" && as_dir=.
7189   for ac_exec_ext in '' $ac_executable_extensions; do
7190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7191     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193     break 2
7194   fi
7195 done
7196 done
7197 IFS=$as_save_IFS
7198
7199   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7200   ;;
7201 esac
7202 fi
7203 BINPWD=$ac_cv_path_BINPWD
7204 if test -n "$BINPWD"; then
7205   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7206 echo "${ECHO_T}$BINPWD" >&6; }
7207 else
7208   { echo "$as_me:$LINENO: result: no" >&5
7209 echo "${ECHO_T}no" >&6; }
7210 fi
7211
7212
7213
7214 # Extract the first word of "Graphviz", so it can be a program name with args.
7215 set dummy Graphviz; ac_word=$2
7216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7218 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7219   echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221   case $GRAPHVIZ in
7222   [\\/]* | ?:[\\/]*)
7223   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7224   ;;
7225   *)
7226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 for as_dir in $PATH
7228 do
7229   IFS=$as_save_IFS
7230   test -z "$as_dir" && as_dir=.
7231   for ac_exec_ext in '' $ac_executable_extensions; do
7232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7233     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235     break 2
7236   fi
7237 done
7238 done
7239 IFS=$as_save_IFS
7240
7241   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7242   ;;
7243 esac
7244 fi
7245 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7246 if test -n "$GRAPHVIZ"; then
7247   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7248 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7249 else
7250   { echo "$as_me:$LINENO: result: no" >&5
7251 echo "${ECHO_T}no" >&6; }
7252 fi
7253
7254
7255 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7256
7257 cat >>confdefs.h <<\_ACEOF
7258 #define HAVE_GRAPHVIZ 1
7259 _ACEOF
7260
7261     if test "$llvm_cv_os_type" = "MingW" ; then
7262     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7263   fi
7264
7265 cat >>confdefs.h <<_ACEOF
7266 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7267 _ACEOF
7268
7269 fi
7270 # Extract the first word of "dot", so it can be a program name with args.
7271 set dummy dot; ac_word=$2
7272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7274 if test "${ac_cv_path_DOT+set}" = set; then
7275   echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277   case $DOT in
7278   [\\/]* | ?:[\\/]*)
7279   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7280   ;;
7281   *)
7282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7284 do
7285   IFS=$as_save_IFS
7286   test -z "$as_dir" && as_dir=.
7287   for ac_exec_ext in '' $ac_executable_extensions; do
7288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7289     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291     break 2
7292   fi
7293 done
7294 done
7295 IFS=$as_save_IFS
7296
7297   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7298   ;;
7299 esac
7300 fi
7301 DOT=$ac_cv_path_DOT
7302 if test -n "$DOT"; then
7303   { echo "$as_me:$LINENO: result: $DOT" >&5
7304 echo "${ECHO_T}$DOT" >&6; }
7305 else
7306   { echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6; }
7308 fi
7309
7310
7311 if test "$DOT" != "echo dot" ; then
7312
7313 cat >>confdefs.h <<\_ACEOF
7314 #define HAVE_DOT 1
7315 _ACEOF
7316
7317     if test "$llvm_cv_os_type" = "MingW" ; then
7318     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7319   fi
7320
7321 cat >>confdefs.h <<_ACEOF
7322 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7323 _ACEOF
7324
7325 fi
7326 for ac_prog in gv gsview32
7327 do
7328   # Extract the first word of "$ac_prog", so it can be a program name with args.
7329 set dummy $ac_prog; ac_word=$2
7330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7332 if test "${ac_cv_path_GV+set}" = set; then
7333   echo $ECHO_N "(cached) $ECHO_C" >&6
7334 else
7335   case $GV in
7336   [\\/]* | ?:[\\/]*)
7337   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7338   ;;
7339   *)
7340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343   IFS=$as_save_IFS
7344   test -z "$as_dir" && as_dir=.
7345   for ac_exec_ext in '' $ac_executable_extensions; do
7346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7347     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349     break 2
7350   fi
7351 done
7352 done
7353 IFS=$as_save_IFS
7354
7355   ;;
7356 esac
7357 fi
7358 GV=$ac_cv_path_GV
7359 if test -n "$GV"; then
7360   { echo "$as_me:$LINENO: result: $GV" >&5
7361 echo "${ECHO_T}$GV" >&6; }
7362 else
7363   { echo "$as_me:$LINENO: result: no" >&5
7364 echo "${ECHO_T}no" >&6; }
7365 fi
7366
7367
7368   test -n "$GV" && break
7369 done
7370 test -n "$GV" || GV="echo gv"
7371
7372 if test "$GV" != "echo gv" ; then
7373
7374 cat >>confdefs.h <<\_ACEOF
7375 #define HAVE_GV 1
7376 _ACEOF
7377
7378     if test "$llvm_cv_os_type" = "MingW" ; then
7379     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7380   fi
7381
7382 cat >>confdefs.h <<_ACEOF
7383 #define LLVM_PATH_GV "$GV${EXEEXT}"
7384 _ACEOF
7385
7386 fi
7387 # Extract the first word of "dotty", so it can be a program name with args.
7388 set dummy dotty; ac_word=$2
7389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7391 if test "${ac_cv_path_DOTTY+set}" = set; then
7392   echo $ECHO_N "(cached) $ECHO_C" >&6
7393 else
7394   case $DOTTY in
7395   [\\/]* | ?:[\\/]*)
7396   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7397   ;;
7398   *)
7399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7401 do
7402   IFS=$as_save_IFS
7403   test -z "$as_dir" && as_dir=.
7404   for ac_exec_ext in '' $ac_executable_extensions; do
7405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7406     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408     break 2
7409   fi
7410 done
7411 done
7412 IFS=$as_save_IFS
7413
7414   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7415   ;;
7416 esac
7417 fi
7418 DOTTY=$ac_cv_path_DOTTY
7419 if test -n "$DOTTY"; then
7420   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7421 echo "${ECHO_T}$DOTTY" >&6; }
7422 else
7423   { echo "$as_me:$LINENO: result: no" >&5
7424 echo "${ECHO_T}no" >&6; }
7425 fi
7426
7427
7428 if test "$DOTTY" != "echo dotty" ; then
7429
7430 cat >>confdefs.h <<\_ACEOF
7431 #define HAVE_DOTTY 1
7432 _ACEOF
7433
7434     if test "$llvm_cv_os_type" = "MingW" ; then
7435     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7436   fi
7437
7438 cat >>confdefs.h <<_ACEOF
7439 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7440 _ACEOF
7441
7442 fi
7443
7444
7445 # Extract the first word of "perl", so it can be a program name with args.
7446 set dummy perl; ac_word=$2
7447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7449 if test "${ac_cv_path_PERL+set}" = set; then
7450   echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452   case $PERL in
7453   [\\/]* | ?:[\\/]*)
7454   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7455   ;;
7456   *)
7457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460   IFS=$as_save_IFS
7461   test -z "$as_dir" && as_dir=.
7462   for ac_exec_ext in '' $ac_executable_extensions; do
7463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7464     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466     break 2
7467   fi
7468 done
7469 done
7470 IFS=$as_save_IFS
7471
7472   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7473   ;;
7474 esac
7475 fi
7476 PERL=$ac_cv_path_PERL
7477 if test -n "$PERL"; then
7478   { echo "$as_me:$LINENO: result: $PERL" >&5
7479 echo "${ECHO_T}$PERL" >&6; }
7480 else
7481   { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7483 fi
7484
7485
7486 if test "$PERL" != "none"; then
7487   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7488 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7489   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7490     { echo "$as_me:$LINENO: result: yes" >&5
7491 echo "${ECHO_T}yes" >&6; }
7492   else
7493     PERL=none
7494     { echo "$as_me:$LINENO: result: not found" >&5
7495 echo "${ECHO_T}not found" >&6; }
7496   fi
7497 fi
7498
7499
7500 if test x"$PERL" = xnone; then
7501    HAVE_PERL=0
7502
7503    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7504 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7505    { (exit 1); exit 1; }; }
7506 else
7507    HAVE_PERL=1
7508
7509 fi
7510
7511 # Find a good install program.  We prefer a C program (faster),
7512 # so one script is as good as another.  But avoid the broken or
7513 # incompatible versions:
7514 # SysV /etc/install, /usr/sbin/install
7515 # SunOS /usr/etc/install
7516 # IRIX /sbin/install
7517 # AIX /bin/install
7518 # AmigaOS /C/install, which installs bootblocks on floppy discs
7519 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7520 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7521 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7522 # OS/2's system install, which has a completely different semantic
7523 # ./install, which can be erroneously created by make from ./install.sh.
7524 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7525 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7526 if test -z "$INSTALL"; then
7527 if test "${ac_cv_path_install+set}" = set; then
7528   echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 for as_dir in $PATH
7532 do
7533   IFS=$as_save_IFS
7534   test -z "$as_dir" && as_dir=.
7535   # Account for people who put trailing slashes in PATH elements.
7536 case $as_dir/ in
7537   ./ | .// | /cC/* | \
7538   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7539   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7540   /usr/ucb/* ) ;;
7541   *)
7542     # OSF1 and SCO ODT 3.0 have their own names for install.
7543     # Don't use installbsd from OSF since it installs stuff as root
7544     # by default.
7545     for ac_prog in ginstall scoinst install; do
7546       for ac_exec_ext in '' $ac_executable_extensions; do
7547         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7548           if test $ac_prog = install &&
7549             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7550             # AIX install.  It has an incompatible calling convention.
7551             :
7552           elif test $ac_prog = install &&
7553             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7554             # program-specific install script used by HP pwplus--don't use.
7555             :
7556           else
7557             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7558             break 3
7559           fi
7560         fi
7561       done
7562     done
7563     ;;
7564 esac
7565 done
7566 IFS=$as_save_IFS
7567
7568
7569 fi
7570   if test "${ac_cv_path_install+set}" = set; then
7571     INSTALL=$ac_cv_path_install
7572   else
7573     # As a last resort, use the slow shell script.  Don't cache a
7574     # value for INSTALL within a source directory, because that will
7575     # break other packages using the cache if that directory is
7576     # removed, or if the value is a relative name.
7577     INSTALL=$ac_install_sh
7578   fi
7579 fi
7580 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7581 echo "${ECHO_T}$INSTALL" >&6; }
7582
7583 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7584 # It thinks the first close brace ends the variable substitution.
7585 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7586
7587 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7588
7589 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7590
7591
7592 # Extract the first word of "bzip2", so it can be a program name with args.
7593 set dummy bzip2; ac_word=$2
7594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596 if test "${ac_cv_path_BZIP2+set}" = set; then
7597   echo $ECHO_N "(cached) $ECHO_C" >&6
7598 else
7599   case $BZIP2 in
7600   [\\/]* | ?:[\\/]*)
7601   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7602   ;;
7603   *)
7604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7606 do
7607   IFS=$as_save_IFS
7608   test -z "$as_dir" && as_dir=.
7609   for ac_exec_ext in '' $ac_executable_extensions; do
7610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7611     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613     break 2
7614   fi
7615 done
7616 done
7617 IFS=$as_save_IFS
7618
7619   ;;
7620 esac
7621 fi
7622 BZIP2=$ac_cv_path_BZIP2
7623 if test -n "$BZIP2"; then
7624   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7625 echo "${ECHO_T}$BZIP2" >&6; }
7626 else
7627   { echo "$as_me:$LINENO: result: no" >&5
7628 echo "${ECHO_T}no" >&6; }
7629 fi
7630
7631
7632 # Extract the first word of "doxygen", so it can be a program name with args.
7633 set dummy doxygen; ac_word=$2
7634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7636 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7637   echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639   case $DOXYGEN in
7640   [\\/]* | ?:[\\/]*)
7641   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7642   ;;
7643   *)
7644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7646 do
7647   IFS=$as_save_IFS
7648   test -z "$as_dir" && as_dir=.
7649   for ac_exec_ext in '' $ac_executable_extensions; do
7650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7651     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653     break 2
7654   fi
7655 done
7656 done
7657 IFS=$as_save_IFS
7658
7659   ;;
7660 esac
7661 fi
7662 DOXYGEN=$ac_cv_path_DOXYGEN
7663 if test -n "$DOXYGEN"; then
7664   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7665 echo "${ECHO_T}$DOXYGEN" >&6; }
7666 else
7667   { echo "$as_me:$LINENO: result: no" >&5
7668 echo "${ECHO_T}no" >&6; }
7669 fi
7670
7671
7672 # Extract the first word of "groff", so it can be a program name with args.
7673 set dummy groff; ac_word=$2
7674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7676 if test "${ac_cv_path_GROFF+set}" = set; then
7677   echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679   case $GROFF in
7680   [\\/]* | ?:[\\/]*)
7681   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7682   ;;
7683   *)
7684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7686 do
7687   IFS=$as_save_IFS
7688   test -z "$as_dir" && as_dir=.
7689   for ac_exec_ext in '' $ac_executable_extensions; do
7690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7691     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7693     break 2
7694   fi
7695 done
7696 done
7697 IFS=$as_save_IFS
7698
7699   ;;
7700 esac
7701 fi
7702 GROFF=$ac_cv_path_GROFF
7703 if test -n "$GROFF"; then
7704   { echo "$as_me:$LINENO: result: $GROFF" >&5
7705 echo "${ECHO_T}$GROFF" >&6; }
7706 else
7707   { echo "$as_me:$LINENO: result: no" >&5
7708 echo "${ECHO_T}no" >&6; }
7709 fi
7710
7711
7712 # Extract the first word of "gzip", so it can be a program name with args.
7713 set dummy gzip; ac_word=$2
7714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716 if test "${ac_cv_path_GZIP+set}" = set; then
7717   echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719   case $GZIP in
7720   [\\/]* | ?:[\\/]*)
7721   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7722   ;;
7723   *)
7724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7726 do
7727   IFS=$as_save_IFS
7728   test -z "$as_dir" && as_dir=.
7729   for ac_exec_ext in '' $ac_executable_extensions; do
7730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7731     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733     break 2
7734   fi
7735 done
7736 done
7737 IFS=$as_save_IFS
7738
7739   ;;
7740 esac
7741 fi
7742 GZIP=$ac_cv_path_GZIP
7743 if test -n "$GZIP"; then
7744   { echo "$as_me:$LINENO: result: $GZIP" >&5
7745 echo "${ECHO_T}$GZIP" >&6; }
7746 else
7747   { echo "$as_me:$LINENO: result: no" >&5
7748 echo "${ECHO_T}no" >&6; }
7749 fi
7750
7751
7752 # Extract the first word of "pod2html", so it can be a program name with args.
7753 set dummy pod2html; ac_word=$2
7754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7756 if test "${ac_cv_path_POD2HTML+set}" = set; then
7757   echo $ECHO_N "(cached) $ECHO_C" >&6
7758 else
7759   case $POD2HTML in
7760   [\\/]* | ?:[\\/]*)
7761   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7762   ;;
7763   *)
7764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7766 do
7767   IFS=$as_save_IFS
7768   test -z "$as_dir" && as_dir=.
7769   for ac_exec_ext in '' $ac_executable_extensions; do
7770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7771     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7773     break 2
7774   fi
7775 done
7776 done
7777 IFS=$as_save_IFS
7778
7779   ;;
7780 esac
7781 fi
7782 POD2HTML=$ac_cv_path_POD2HTML
7783 if test -n "$POD2HTML"; then
7784   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7785 echo "${ECHO_T}$POD2HTML" >&6; }
7786 else
7787   { echo "$as_me:$LINENO: result: no" >&5
7788 echo "${ECHO_T}no" >&6; }
7789 fi
7790
7791
7792 # Extract the first word of "pod2man", so it can be a program name with args.
7793 set dummy pod2man; ac_word=$2
7794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7796 if test "${ac_cv_path_POD2MAN+set}" = set; then
7797   echo $ECHO_N "(cached) $ECHO_C" >&6
7798 else
7799   case $POD2MAN in
7800   [\\/]* | ?:[\\/]*)
7801   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7802   ;;
7803   *)
7804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7806 do
7807   IFS=$as_save_IFS
7808   test -z "$as_dir" && as_dir=.
7809   for ac_exec_ext in '' $ac_executable_extensions; do
7810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7811     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7813     break 2
7814   fi
7815 done
7816 done
7817 IFS=$as_save_IFS
7818
7819   ;;
7820 esac
7821 fi
7822 POD2MAN=$ac_cv_path_POD2MAN
7823 if test -n "$POD2MAN"; then
7824   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7825 echo "${ECHO_T}$POD2MAN" >&6; }
7826 else
7827   { echo "$as_me:$LINENO: result: no" >&5
7828 echo "${ECHO_T}no" >&6; }
7829 fi
7830
7831
7832 # Extract the first word of "runtest", so it can be a program name with args.
7833 set dummy runtest; ac_word=$2
7834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7836 if test "${ac_cv_path_RUNTEST+set}" = set; then
7837   echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839   case $RUNTEST in
7840   [\\/]* | ?:[\\/]*)
7841   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7842   ;;
7843   *)
7844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $PATH
7846 do
7847   IFS=$as_save_IFS
7848   test -z "$as_dir" && as_dir=.
7849   for ac_exec_ext in '' $ac_executable_extensions; do
7850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7851     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853     break 2
7854   fi
7855 done
7856 done
7857 IFS=$as_save_IFS
7858
7859   ;;
7860 esac
7861 fi
7862 RUNTEST=$ac_cv_path_RUNTEST
7863 if test -n "$RUNTEST"; then
7864   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7865 echo "${ECHO_T}$RUNTEST" >&6; }
7866 else
7867   { echo "$as_me:$LINENO: result: no" >&5
7868 echo "${ECHO_T}no" >&6; }
7869 fi
7870
7871
7872
7873 no_itcl=true
7874 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7875 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7876
7877 # Check whether --with-tclinclude was given.
7878 if test "${with_tclinclude+set}" = set; then
7879   withval=$with_tclinclude; with_tclinclude=${withval}
7880 else
7881   with_tclinclude=''
7882 fi
7883
7884 if test "${ac_cv_path_tclsh+set}" = set; then
7885   echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887
7888 if test x"${with_tclinclude}" != x ; then
7889   if test -f ${with_tclinclude}/tclsh ; then
7890     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7891   elif test -f ${with_tclinclude}/src/tclsh ; then
7892     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7893   else
7894     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7895 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7896    { (exit 1); exit 1; }; }
7897   fi
7898 fi
7899
7900 if test x"${ac_cv_path_tclsh}" = x ; then
7901   { echo "$as_me:$LINENO: result: none" >&5
7902 echo "${ECHO_T}none" >&6; }
7903   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
7904 do
7905   # Extract the first word of "$ac_prog", so it can be a program name with args.
7906 set dummy $ac_prog; ac_word=$2
7907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7909 if test "${ac_cv_path_TCLSH+set}" = set; then
7910   echo $ECHO_N "(cached) $ECHO_C" >&6
7911 else
7912   case $TCLSH in
7913   [\\/]* | ?:[\\/]*)
7914   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7915   ;;
7916   *)
7917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7919 do
7920   IFS=$as_save_IFS
7921   test -z "$as_dir" && as_dir=.
7922   for ac_exec_ext in '' $ac_executable_extensions; do
7923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7924     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7926     break 2
7927   fi
7928 done
7929 done
7930 IFS=$as_save_IFS
7931
7932   ;;
7933 esac
7934 fi
7935 TCLSH=$ac_cv_path_TCLSH
7936 if test -n "$TCLSH"; then
7937   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7938 echo "${ECHO_T}$TCLSH" >&6; }
7939 else
7940   { echo "$as_me:$LINENO: result: no" >&5
7941 echo "${ECHO_T}no" >&6; }
7942 fi
7943
7944
7945   test -n "$TCLSH" && break
7946 done
7947
7948   if test x"${TCLSH}" = x ; then
7949     ac_cv_path_tclsh='';
7950   else
7951     ac_cv_path_tclsh="${TCLSH}";
7952   fi
7953 else
7954   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7955 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7956   TCLSH="${ac_cv_path_tclsh}"
7957
7958 fi
7959
7960 fi
7961
7962 # Extract the first word of "zip", so it can be a program name with args.
7963 set dummy zip; ac_word=$2
7964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7966 if test "${ac_cv_path_ZIP+set}" = set; then
7967   echo $ECHO_N "(cached) $ECHO_C" >&6
7968 else
7969   case $ZIP in
7970   [\\/]* | ?:[\\/]*)
7971   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7972   ;;
7973   *)
7974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7976 do
7977   IFS=$as_save_IFS
7978   test -z "$as_dir" && as_dir=.
7979   for ac_exec_ext in '' $ac_executable_extensions; do
7980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7981     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7983     break 2
7984   fi
7985 done
7986 done
7987 IFS=$as_save_IFS
7988
7989   ;;
7990 esac
7991 fi
7992 ZIP=$ac_cv_path_ZIP
7993 if test -n "$ZIP"; then
7994   { echo "$as_me:$LINENO: result: $ZIP" >&5
7995 echo "${ECHO_T}$ZIP" >&6; }
7996 else
7997   { echo "$as_me:$LINENO: result: no" >&5
7998 echo "${ECHO_T}no" >&6; }
7999 fi
8000
8001
8002 for ac_prog in ocamlc.opt ocamlc
8003 do
8004   # Extract the first word of "$ac_prog", so it can be a program name with args.
8005 set dummy $ac_prog; ac_word=$2
8006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8008 if test "${ac_cv_path_OCAMLC+set}" = set; then
8009   echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011   case $OCAMLC in
8012   [\\/]* | ?:[\\/]*)
8013   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8014   ;;
8015   *)
8016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 for as_dir in $PATH
8018 do
8019   IFS=$as_save_IFS
8020   test -z "$as_dir" && as_dir=.
8021   for ac_exec_ext in '' $ac_executable_extensions; do
8022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8023     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8025     break 2
8026   fi
8027 done
8028 done
8029 IFS=$as_save_IFS
8030
8031   ;;
8032 esac
8033 fi
8034 OCAMLC=$ac_cv_path_OCAMLC
8035 if test -n "$OCAMLC"; then
8036   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8037 echo "${ECHO_T}$OCAMLC" >&6; }
8038 else
8039   { echo "$as_me:$LINENO: result: no" >&5
8040 echo "${ECHO_T}no" >&6; }
8041 fi
8042
8043
8044   test -n "$OCAMLC" && break
8045 done
8046
8047 for ac_prog in ocamlopt.opt ocamlopt
8048 do
8049   # Extract the first word of "$ac_prog", so it can be a program name with args.
8050 set dummy $ac_prog; ac_word=$2
8051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8053 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8054   echo $ECHO_N "(cached) $ECHO_C" >&6
8055 else
8056   case $OCAMLOPT in
8057   [\\/]* | ?:[\\/]*)
8058   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8059   ;;
8060   *)
8061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 for as_dir in $PATH
8063 do
8064   IFS=$as_save_IFS
8065   test -z "$as_dir" && as_dir=.
8066   for ac_exec_ext in '' $ac_executable_extensions; do
8067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8068     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8070     break 2
8071   fi
8072 done
8073 done
8074 IFS=$as_save_IFS
8075
8076   ;;
8077 esac
8078 fi
8079 OCAMLOPT=$ac_cv_path_OCAMLOPT
8080 if test -n "$OCAMLOPT"; then
8081   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8082 echo "${ECHO_T}$OCAMLOPT" >&6; }
8083 else
8084   { echo "$as_me:$LINENO: result: no" >&5
8085 echo "${ECHO_T}no" >&6; }
8086 fi
8087
8088
8089   test -n "$OCAMLOPT" && break
8090 done
8091
8092 for ac_prog in ocamldep.opt ocamldep
8093 do
8094   # Extract the first word of "$ac_prog", so it can be a program name with args.
8095 set dummy $ac_prog; ac_word=$2
8096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8098 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8099   echo $ECHO_N "(cached) $ECHO_C" >&6
8100 else
8101   case $OCAMLDEP in
8102   [\\/]* | ?:[\\/]*)
8103   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8104   ;;
8105   *)
8106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 for as_dir in $PATH
8108 do
8109   IFS=$as_save_IFS
8110   test -z "$as_dir" && as_dir=.
8111   for ac_exec_ext in '' $ac_executable_extensions; do
8112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8113     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8115     break 2
8116   fi
8117 done
8118 done
8119 IFS=$as_save_IFS
8120
8121   ;;
8122 esac
8123 fi
8124 OCAMLDEP=$ac_cv_path_OCAMLDEP
8125 if test -n "$OCAMLDEP"; then
8126   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8127 echo "${ECHO_T}$OCAMLDEP" >&6; }
8128 else
8129   { echo "$as_me:$LINENO: result: no" >&5
8130 echo "${ECHO_T}no" >&6; }
8131 fi
8132
8133
8134   test -n "$OCAMLDEP" && break
8135 done
8136
8137 for ac_prog in ocamldoc.opt ocamldoc
8138 do
8139   # Extract the first word of "$ac_prog", so it can be a program name with args.
8140 set dummy $ac_prog; ac_word=$2
8141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8143 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8144   echo $ECHO_N "(cached) $ECHO_C" >&6
8145 else
8146   case $OCAMLDOC in
8147   [\\/]* | ?:[\\/]*)
8148   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8149   ;;
8150   *)
8151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 for as_dir in $PATH
8153 do
8154   IFS=$as_save_IFS
8155   test -z "$as_dir" && as_dir=.
8156   for ac_exec_ext in '' $ac_executable_extensions; do
8157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8158     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8160     break 2
8161   fi
8162 done
8163 done
8164 IFS=$as_save_IFS
8165
8166   ;;
8167 esac
8168 fi
8169 OCAMLDOC=$ac_cv_path_OCAMLDOC
8170 if test -n "$OCAMLDOC"; then
8171   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8172 echo "${ECHO_T}$OCAMLDOC" >&6; }
8173 else
8174   { echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6; }
8176 fi
8177
8178
8179   test -n "$OCAMLDOC" && break
8180 done
8181
8182
8183 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8184 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8185 if test "${llvm_cv_link_use_r+set}" = set; then
8186   echo $ECHO_N "(cached) $ECHO_C" >&6
8187 else
8188    ac_ext=c
8189 ac_cpp='$CPP $CPPFLAGS'
8190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8193
8194   oldcflags="$CFLAGS"
8195   CFLAGS="$CFLAGS -Wl,-R."
8196   cat >conftest.$ac_ext <<_ACEOF
8197 /* confdefs.h.  */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h.  */
8202
8203 int
8204 main ()
8205 {
8206 int main() { return 0; }
8207   ;
8208   return 0;
8209 }
8210 _ACEOF
8211 rm -f conftest.$ac_objext conftest$ac_exeext
8212 if { (ac_try="$ac_link"
8213 case "(($ac_try" in
8214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215   *) ac_try_echo=$ac_try;;
8216 esac
8217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218   (eval "$ac_link") 2>conftest.er1
8219   ac_status=$?
8220   grep -v '^ *+' conftest.er1 >conftest.err
8221   rm -f conftest.er1
8222   cat conftest.err >&5
8223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224   (exit $ac_status); } &&
8225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8226   { (case "(($ac_try" in
8227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8228   *) ac_try_echo=$ac_try;;
8229 esac
8230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8231   (eval "$ac_try") 2>&5
8232   ac_status=$?
8233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234   (exit $ac_status); }; } &&
8235          { ac_try='test -s conftest$ac_exeext'
8236   { (case "(($ac_try" in
8237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238   *) ac_try_echo=$ac_try;;
8239 esac
8240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241   (eval "$ac_try") 2>&5
8242   ac_status=$?
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); }; }; then
8245   llvm_cv_link_use_r=yes
8246 else
8247   echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8249
8250         llvm_cv_link_use_r=no
8251 fi
8252
8253 rm -f core conftest.err conftest.$ac_objext \
8254       conftest$ac_exeext conftest.$ac_ext
8255   CFLAGS="$oldcflags"
8256   ac_ext=c
8257 ac_cpp='$CPP $CPPFLAGS'
8258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8261
8262
8263 fi
8264 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8265 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8266 if test "$llvm_cv_link_use_r" = yes ; then
8267
8268 cat >>confdefs.h <<\_ACEOF
8269 #define HAVE_LINK_R 1
8270 _ACEOF
8271
8272   fi
8273
8274
8275
8276
8277 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8278 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8279 if test "${ac_cv_c_const+set}" = set; then
8280   echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282   cat >conftest.$ac_ext <<_ACEOF
8283 /* confdefs.h.  */
8284 _ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h.  */
8288
8289 int
8290 main ()
8291 {
8292 /* FIXME: Include the comments suggested by Paul. */
8293 #ifndef __cplusplus
8294   /* Ultrix mips cc rejects this.  */
8295   typedef int charset[2];
8296   const charset x;
8297   /* SunOS 4.1.1 cc rejects this.  */
8298   char const *const *ccp;
8299   char **p;
8300   /* NEC SVR4.0.2 mips cc rejects this.  */
8301   struct point {int x, y;};
8302   static struct point const zero = {0,0};
8303   /* AIX XL C 1.02.0.0 rejects this.
8304      It does not let you subtract one const X* pointer from another in
8305      an arm of an if-expression whose if-part is not a constant
8306      expression */
8307   const char *g = "string";
8308   ccp = &g + (g ? g-g : 0);
8309   /* HPUX 7.0 cc rejects these. */
8310   ++ccp;
8311   p = (char**) ccp;
8312   ccp = (char const *const *) p;
8313   { /* SCO 3.2v4 cc rejects this.  */
8314     char *t;
8315     char const *s = 0 ? (char *) 0 : (char const *) 0;
8316
8317     *t++ = 0;
8318     if (s) return 0;
8319   }
8320   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8321     int x[] = {25, 17};
8322     const int *foo = &x[0];
8323     ++foo;
8324   }
8325   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8326     typedef const int *iptr;
8327     iptr p = 0;
8328     ++p;
8329   }
8330   { /* AIX XL C 1.02.0.0 rejects this saying
8331        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8332     struct s { int j; const int *ap[3]; };
8333     struct s *b; b->j = 5;
8334   }
8335   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8336     const int foo = 10;
8337     if (!foo) return 0;
8338   }
8339   return !x[0] && !zero.x;
8340 #endif
8341
8342   ;
8343   return 0;
8344 }
8345 _ACEOF
8346 rm -f conftest.$ac_objext
8347 if { (ac_try="$ac_compile"
8348 case "(($ac_try" in
8349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350   *) ac_try_echo=$ac_try;;
8351 esac
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353   (eval "$ac_compile") 2>conftest.er1
8354   ac_status=$?
8355   grep -v '^ *+' conftest.er1 >conftest.err
8356   rm -f conftest.er1
8357   cat conftest.err >&5
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); } &&
8360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8361   { (case "(($ac_try" in
8362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363   *) ac_try_echo=$ac_try;;
8364 esac
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366   (eval "$ac_try") 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; } &&
8370          { ac_try='test -s conftest.$ac_objext'
8371   { (case "(($ac_try" in
8372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373   *) ac_try_echo=$ac_try;;
8374 esac
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376   (eval "$ac_try") 2>&5
8377   ac_status=$?
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); }; }; then
8380   ac_cv_c_const=yes
8381 else
8382   echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8384
8385         ac_cv_c_const=no
8386 fi
8387
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 fi
8390 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8391 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8392 if test $ac_cv_c_const = no; then
8393
8394 cat >>confdefs.h <<\_ACEOF
8395 #define const
8396 _ACEOF
8397
8398 fi
8399
8400
8401
8402
8403
8404
8405 ac_header_dirent=no
8406 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8407   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8408 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8409 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8411   echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413   cat >conftest.$ac_ext <<_ACEOF
8414 /* confdefs.h.  */
8415 _ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h.  */
8419 #include <sys/types.h>
8420 #include <$ac_hdr>
8421
8422 int
8423 main ()
8424 {
8425 if ((DIR *) 0)
8426 return 0;
8427   ;
8428   return 0;
8429 }
8430 _ACEOF
8431 rm -f conftest.$ac_objext
8432 if { (ac_try="$ac_compile"
8433 case "(($ac_try" in
8434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435   *) ac_try_echo=$ac_try;;
8436 esac
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438   (eval "$ac_compile") 2>conftest.er1
8439   ac_status=$?
8440   grep -v '^ *+' conftest.er1 >conftest.err
8441   rm -f conftest.er1
8442   cat conftest.err >&5
8443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); } &&
8445          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8446   { (case "(($ac_try" in
8447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448   *) ac_try_echo=$ac_try;;
8449 esac
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451   (eval "$ac_try") 2>&5
8452   ac_status=$?
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); }; } &&
8455          { ac_try='test -s conftest.$ac_objext'
8456   { (case "(($ac_try" in
8457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458   *) ac_try_echo=$ac_try;;
8459 esac
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461   (eval "$ac_try") 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); }; }; then
8465   eval "$as_ac_Header=yes"
8466 else
8467   echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8469
8470         eval "$as_ac_Header=no"
8471 fi
8472
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 fi
8475 ac_res=`eval echo '${'$as_ac_Header'}'`
8476                { echo "$as_me:$LINENO: result: $ac_res" >&5
8477 echo "${ECHO_T}$ac_res" >&6; }
8478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479   cat >>confdefs.h <<_ACEOF
8480 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8481 _ACEOF
8482
8483 ac_header_dirent=$ac_hdr; break
8484 fi
8485
8486 done
8487 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8488 if test $ac_header_dirent = dirent.h; then
8489   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8490 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8491 if test "${ac_cv_search_opendir+set}" = set; then
8492   echo $ECHO_N "(cached) $ECHO_C" >&6
8493 else
8494   ac_func_search_save_LIBS=$LIBS
8495 cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h.  */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h.  */
8501
8502 /* Override any GCC internal prototype to avoid an error.
8503    Use char because int might match the return type of a GCC
8504    builtin and then its argument prototype would still apply.  */
8505 #ifdef __cplusplus
8506 extern "C"
8507 #endif
8508 char opendir ();
8509 int
8510 main ()
8511 {
8512 return opendir ();
8513   ;
8514   return 0;
8515 }
8516 _ACEOF
8517 for ac_lib in '' dir; do
8518   if test -z "$ac_lib"; then
8519     ac_res="none required"
8520   else
8521     ac_res=-l$ac_lib
8522     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8523   fi
8524   rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (ac_try="$ac_link"
8526 case "(($ac_try" in
8527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528   *) ac_try_echo=$ac_try;;
8529 esac
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531   (eval "$ac_link") 2>conftest.er1
8532   ac_status=$?
8533   grep -v '^ *+' conftest.er1 >conftest.err
8534   rm -f conftest.er1
8535   cat conftest.err >&5
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); } &&
8538          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8539   { (case "(($ac_try" in
8540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541   *) ac_try_echo=$ac_try;;
8542 esac
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544   (eval "$ac_try") 2>&5
8545   ac_status=$?
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); }; } &&
8548          { ac_try='test -s conftest$ac_exeext'
8549   { (case "(($ac_try" in
8550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8551   *) ac_try_echo=$ac_try;;
8552 esac
8553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8554   (eval "$ac_try") 2>&5
8555   ac_status=$?
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); }; }; then
8558   ac_cv_search_opendir=$ac_res
8559 else
8560   echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8562
8563
8564 fi
8565
8566 rm -f core conftest.err conftest.$ac_objext \
8567       conftest$ac_exeext
8568   if test "${ac_cv_search_opendir+set}" = set; then
8569   break
8570 fi
8571 done
8572 if test "${ac_cv_search_opendir+set}" = set; then
8573   :
8574 else
8575   ac_cv_search_opendir=no
8576 fi
8577 rm conftest.$ac_ext
8578 LIBS=$ac_func_search_save_LIBS
8579 fi
8580 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8581 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8582 ac_res=$ac_cv_search_opendir
8583 if test "$ac_res" != no; then
8584   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8585
8586 fi
8587
8588 else
8589   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8590 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8591 if test "${ac_cv_search_opendir+set}" = set; then
8592   echo $ECHO_N "(cached) $ECHO_C" >&6
8593 else
8594   ac_func_search_save_LIBS=$LIBS
8595 cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h.  */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h.  */
8601
8602 /* Override any GCC internal prototype to avoid an error.
8603    Use char because int might match the return type of a GCC
8604    builtin and then its argument prototype would still apply.  */
8605 #ifdef __cplusplus
8606 extern "C"
8607 #endif
8608 char opendir ();
8609 int
8610 main ()
8611 {
8612 return opendir ();
8613   ;
8614   return 0;
8615 }
8616 _ACEOF
8617 for ac_lib in '' x; do
8618   if test -z "$ac_lib"; then
8619     ac_res="none required"
8620   else
8621     ac_res=-l$ac_lib
8622     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8623   fi
8624   rm -f conftest.$ac_objext conftest$ac_exeext
8625 if { (ac_try="$ac_link"
8626 case "(($ac_try" in
8627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628   *) ac_try_echo=$ac_try;;
8629 esac
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631   (eval "$ac_link") 2>conftest.er1
8632   ac_status=$?
8633   grep -v '^ *+' conftest.er1 >conftest.err
8634   rm -f conftest.er1
8635   cat conftest.err >&5
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); } &&
8638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8639   { (case "(($ac_try" in
8640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641   *) ac_try_echo=$ac_try;;
8642 esac
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644   (eval "$ac_try") 2>&5
8645   ac_status=$?
8646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647   (exit $ac_status); }; } &&
8648          { ac_try='test -s conftest$ac_exeext'
8649   { (case "(($ac_try" in
8650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651   *) ac_try_echo=$ac_try;;
8652 esac
8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654   (eval "$ac_try") 2>&5
8655   ac_status=$?
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); }; }; then
8658   ac_cv_search_opendir=$ac_res
8659 else
8660   echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8662
8663
8664 fi
8665
8666 rm -f core conftest.err conftest.$ac_objext \
8667       conftest$ac_exeext
8668   if test "${ac_cv_search_opendir+set}" = set; then
8669   break
8670 fi
8671 done
8672 if test "${ac_cv_search_opendir+set}" = set; then
8673   :
8674 else
8675   ac_cv_search_opendir=no
8676 fi
8677 rm conftest.$ac_ext
8678 LIBS=$ac_func_search_save_LIBS
8679 fi
8680 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8681 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8682 ac_res=$ac_cv_search_opendir
8683 if test "$ac_res" != no; then
8684   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8685
8686 fi
8687
8688 fi
8689
8690
8691 for ac_header in dlfcn.h
8692 do
8693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8695   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8698   echo $ECHO_N "(cached) $ECHO_C" >&6
8699 fi
8700 ac_res=`eval echo '${'$as_ac_Header'}'`
8701                { echo "$as_me:$LINENO: result: $ac_res" >&5
8702 echo "${ECHO_T}$ac_res" >&6; }
8703 else
8704   # Is the header compilable?
8705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8707 cat >conftest.$ac_ext <<_ACEOF
8708 /* confdefs.h.  */
8709 _ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h.  */
8713 $ac_includes_default
8714 #include <$ac_header>
8715 _ACEOF
8716 rm -f conftest.$ac_objext
8717 if { (ac_try="$ac_compile"
8718 case "(($ac_try" in
8719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720   *) ac_try_echo=$ac_try;;
8721 esac
8722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723   (eval "$ac_compile") 2>conftest.er1
8724   ac_status=$?
8725   grep -v '^ *+' conftest.er1 >conftest.err
8726   rm -f conftest.er1
8727   cat conftest.err >&5
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); } &&
8730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8731   { (case "(($ac_try" in
8732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733   *) ac_try_echo=$ac_try;;
8734 esac
8735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736   (eval "$ac_try") 2>&5
8737   ac_status=$?
8738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739   (exit $ac_status); }; } &&
8740          { ac_try='test -s conftest.$ac_objext'
8741   { (case "(($ac_try" in
8742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743   *) ac_try_echo=$ac_try;;
8744 esac
8745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8746   (eval "$ac_try") 2>&5
8747   ac_status=$?
8748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749   (exit $ac_status); }; }; then
8750   ac_header_compiler=yes
8751 else
8752   echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8754
8755         ac_header_compiler=no
8756 fi
8757
8758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8760 echo "${ECHO_T}$ac_header_compiler" >&6; }
8761
8762 # Is the header present?
8763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8765 cat >conftest.$ac_ext <<_ACEOF
8766 /* confdefs.h.  */
8767 _ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h.  */
8771 #include <$ac_header>
8772 _ACEOF
8773 if { (ac_try="$ac_cpp conftest.$ac_ext"
8774 case "(($ac_try" in
8775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776   *) ac_try_echo=$ac_try;;
8777 esac
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8780   ac_status=$?
8781   grep -v '^ *+' conftest.er1 >conftest.err
8782   rm -f conftest.er1
8783   cat conftest.err >&5
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); } >/dev/null; then
8786   if test -s conftest.err; then
8787     ac_cpp_err=$ac_c_preproc_warn_flag
8788     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8789   else
8790     ac_cpp_err=
8791   fi
8792 else
8793   ac_cpp_err=yes
8794 fi
8795 if test -z "$ac_cpp_err"; then
8796   ac_header_preproc=yes
8797 else
8798   echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8800
8801   ac_header_preproc=no
8802 fi
8803
8804 rm -f conftest.err conftest.$ac_ext
8805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8806 echo "${ECHO_T}$ac_header_preproc" >&6; }
8807
8808 # So?  What about this header?
8809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8810   yes:no: )
8811     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8813     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8815     ac_header_preproc=yes
8816     ;;
8817   no:yes:* )
8818     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8820     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8821 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8822     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8824     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8825 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8828     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8830     ( cat <<\_ASBOX
8831 ## ----------------------------------- ##
8832 ## Report this to llvmbugs@cs.uiuc.edu ##
8833 ## ----------------------------------- ##
8834 _ASBOX
8835      ) | sed "s/^/$as_me: WARNING:     /" >&2
8836     ;;
8837 esac
8838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8841   echo $ECHO_N "(cached) $ECHO_C" >&6
8842 else
8843   eval "$as_ac_Header=\$ac_header_preproc"
8844 fi
8845 ac_res=`eval echo '${'$as_ac_Header'}'`
8846                { echo "$as_me:$LINENO: result: $ac_res" >&5
8847 echo "${ECHO_T}$ac_res" >&6; }
8848
8849 fi
8850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8851   cat >>confdefs.h <<_ACEOF
8852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8853 _ACEOF
8854
8855 fi
8856
8857 done
8858
8859 # Check whether --enable-ltdl-install was given.
8860 if test "${enable_ltdl_install+set}" = set; then
8861   enableval=$enable_ltdl_install;
8862 fi
8863
8864
8865
8866
8867 if test x"${enable_ltdl_install-no}" != xno; then
8868   INSTALL_LTDL_TRUE=
8869   INSTALL_LTDL_FALSE='#'
8870 else
8871   INSTALL_LTDL_TRUE='#'
8872   INSTALL_LTDL_FALSE=
8873 fi
8874
8875
8876
8877 if test x"${enable_ltdl_convenience-no}" != xno; then
8878   CONVENIENCE_LTDL_TRUE=
8879   CONVENIENCE_LTDL_FALSE='#'
8880 else
8881   CONVENIENCE_LTDL_TRUE='#'
8882   CONVENIENCE_LTDL_FALSE=
8883 fi
8884
8885
8886 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8887 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8888 library_names_spec=
8889 libname_spec='lib$name'
8890 soname_spec=
8891 shrext_cmds=".so"
8892 postinstall_cmds=
8893 postuninstall_cmds=
8894 finish_cmds=
8895 finish_eval=
8896 shlibpath_var=
8897 shlibpath_overrides_runpath=unknown
8898 version_type=none
8899 dynamic_linker="$host_os ld.so"
8900 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8901 if test "$GCC" = yes; then
8902   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8903   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8904     # if the path contains ";" then we assume it to be the separator
8905     # otherwise default to the standard path separator (i.e. ":") - it is
8906     # assumed that no part of a normal pathname contains ";" but that should
8907     # okay in the real world where ";" in dirpaths is itself problematic.
8908     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8909   else
8910     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8911   fi
8912 else
8913   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8914 fi
8915 need_lib_prefix=unknown
8916 hardcode_into_libs=no
8917
8918 # when you set need_version to no, make sure it does not cause -set_version
8919 # flags to be left without arguments
8920 need_version=unknown
8921
8922 case $host_os in
8923 aix3*)
8924   version_type=linux
8925   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8926   shlibpath_var=LIBPATH
8927
8928   # AIX 3 has no versioning support, so we append a major version to the name.
8929   soname_spec='${libname}${release}${shared_ext}$major'
8930   ;;
8931
8932 aix4* | aix5*)
8933   version_type=linux
8934   need_lib_prefix=no
8935   need_version=no
8936   hardcode_into_libs=yes
8937   if test "$host_cpu" = ia64; then
8938     # AIX 5 supports IA64
8939     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8940     shlibpath_var=LD_LIBRARY_PATH
8941   else
8942     # With GCC up to 2.95.x, collect2 would create an import file
8943     # for dependence libraries.  The import file would start with
8944     # the line `#! .'.  This would cause the generated library to
8945     # depend on `.', always an invalid library.  This was fixed in
8946     # development snapshots of GCC prior to 3.0.
8947     case $host_os in
8948       aix4 | aix4.[01] | aix4.[01].*)
8949       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8950            echo ' yes '
8951            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8952         :
8953       else
8954         can_build_shared=no
8955       fi
8956       ;;
8957     esac
8958     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8959     # soname into executable. Probably we can add versioning support to
8960     # collect2, so additional links can be useful in future.
8961     if test "$aix_use_runtimelinking" = yes; then
8962       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8963       # instead of lib<name>.a to let people know that these are not
8964       # typical AIX shared libraries.
8965       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8966     else
8967       # We preserve .a as extension for shared libraries through AIX4.2
8968       # and later when we are not doing run time linking.
8969       library_names_spec='${libname}${release}.a $libname.a'
8970       soname_spec='${libname}${release}${shared_ext}$major'
8971     fi
8972     shlibpath_var=LIBPATH
8973   fi
8974   ;;
8975
8976 amigaos*)
8977   library_names_spec='$libname.ixlibrary $libname.a'
8978   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8979   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'
8980   ;;
8981
8982 beos*)
8983   library_names_spec='${libname}${shared_ext}'
8984   dynamic_linker="$host_os ld.so"
8985   shlibpath_var=LIBRARY_PATH
8986   ;;
8987
8988 bsdi[45]*)
8989   version_type=linux
8990   need_version=no
8991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992   soname_spec='${libname}${release}${shared_ext}$major'
8993   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8994   shlibpath_var=LD_LIBRARY_PATH
8995   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8996   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8997   # the default ld.so.conf also contains /usr/contrib/lib and
8998   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8999   # libtool to hard-code these into programs
9000   ;;
9001
9002 cygwin* | mingw* | pw32*)
9003   version_type=windows
9004   shrext_cmds=".dll"
9005   need_version=no
9006   need_lib_prefix=no
9007
9008   case $GCC,$host_os in
9009   yes,cygwin* | yes,mingw* | yes,pw32*)
9010     library_names_spec='$libname.dll.a'
9011     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9012     postinstall_cmds='base_file=`basename \${file}`~
9013       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9014       dldir=$destdir/`dirname \$dlpath`~
9015       test -d \$dldir || mkdir -p \$dldir~
9016       $install_prog $dir/$dlname \$dldir/$dlname~
9017       chmod a+x \$dldir/$dlname'
9018     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9019       dlpath=$dir/\$dldll~
9020        $rm \$dlpath'
9021     shlibpath_overrides_runpath=yes
9022
9023     case $host_os in
9024     cygwin*)
9025       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9026       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9027       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9028       ;;
9029     mingw*)
9030       # MinGW DLLs use traditional 'lib' prefix
9031       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9032       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9033       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9034         # It is most probably a Windows format PATH printed by
9035         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9036         # path with ; separators, and with drive letters. We can handle the
9037         # drive letters (cygwin fileutils understands them), so leave them,
9038         # especially as we might pass files found there to a mingw objdump,
9039         # which wouldn't understand a cygwinified path. Ahh.
9040         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9041       else
9042         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9043       fi
9044       ;;
9045     pw32*)
9046       # pw32 DLLs use 'pw' prefix rather than 'lib'
9047       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9048       ;;
9049     esac
9050     ;;
9051
9052   *)
9053     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9054     ;;
9055   esac
9056   dynamic_linker='Win32 ld.exe'
9057   # FIXME: first we should search . and the directory the executable is in
9058   shlibpath_var=PATH
9059   ;;
9060
9061 darwin* | rhapsody*)
9062   dynamic_linker="$host_os dyld"
9063   version_type=darwin
9064   need_lib_prefix=no
9065   need_version=no
9066   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9067   soname_spec='${libname}${release}${major}$shared_ext'
9068   shlibpath_overrides_runpath=yes
9069   shlibpath_var=DYLD_LIBRARY_PATH
9070   shrext_cmds='.dylib'
9071   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9072   if test "$GCC" = yes; then
9073     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"`
9074   else
9075     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9076   fi
9077   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9078   ;;
9079
9080 dgux*)
9081   version_type=linux
9082   need_lib_prefix=no
9083   need_version=no
9084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9085   soname_spec='${libname}${release}${shared_ext}$major'
9086   shlibpath_var=LD_LIBRARY_PATH
9087   ;;
9088
9089 freebsd1*)
9090   dynamic_linker=no
9091   ;;
9092
9093 kfreebsd*-gnu)
9094   version_type=linux
9095   need_lib_prefix=no
9096   need_version=no
9097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9098   soname_spec='${libname}${release}${shared_ext}$major'
9099   shlibpath_var=LD_LIBRARY_PATH
9100   shlibpath_overrides_runpath=no
9101   hardcode_into_libs=yes
9102   dynamic_linker='GNU ld.so'
9103   ;;
9104
9105 freebsd* | dragonfly*)
9106   # DragonFly does not have aout.  When/if they implement a new
9107   # versioning mechanism, adjust this.
9108   if test -x /usr/bin/objformat; then
9109     objformat=`/usr/bin/objformat`
9110   else
9111     case $host_os in
9112     freebsd[123]*) objformat=aout ;;
9113     *) objformat=elf ;;
9114     esac
9115   fi
9116   version_type=freebsd-$objformat
9117   case $version_type in
9118     freebsd-elf*)
9119       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9120       need_version=no
9121       need_lib_prefix=no
9122       ;;
9123     freebsd-*)
9124       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9125       need_version=yes
9126       ;;
9127   esac
9128   shlibpath_var=LD_LIBRARY_PATH
9129   case $host_os in
9130   freebsd2*)
9131     shlibpath_overrides_runpath=yes
9132     ;;
9133   freebsd3.[01]* | freebsdelf3.[01]*)
9134     shlibpath_overrides_runpath=yes
9135     hardcode_into_libs=yes
9136     ;;
9137   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9138   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9139     shlibpath_overrides_runpath=no
9140     hardcode_into_libs=yes
9141     ;;
9142   freebsd*) # from 4.6 on
9143     shlibpath_overrides_runpath=yes
9144     hardcode_into_libs=yes
9145     ;;
9146   esac
9147   ;;
9148
9149 gnu*)
9150   version_type=linux
9151   need_lib_prefix=no
9152   need_version=no
9153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9154   soname_spec='${libname}${release}${shared_ext}$major'
9155   shlibpath_var=LD_LIBRARY_PATH
9156   hardcode_into_libs=yes
9157   ;;
9158
9159 hpux9* | hpux10* | hpux11*)
9160   # Give a soname corresponding to the major version so that dld.sl refuses to
9161   # link against other versions.
9162   version_type=sunos
9163   need_lib_prefix=no
9164   need_version=no
9165   case $host_cpu in
9166   ia64*)
9167     shrext_cmds='.so'
9168     hardcode_into_libs=yes
9169     dynamic_linker="$host_os dld.so"
9170     shlibpath_var=LD_LIBRARY_PATH
9171     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9172     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9173     soname_spec='${libname}${release}${shared_ext}$major'
9174     if test "X$HPUX_IA64_MODE" = X32; then
9175       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9176     else
9177       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9178     fi
9179     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9180     ;;
9181    hppa*64*)
9182      shrext_cmds='.sl'
9183      hardcode_into_libs=yes
9184      dynamic_linker="$host_os dld.sl"
9185      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9186      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9187      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188      soname_spec='${libname}${release}${shared_ext}$major'
9189      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9190      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9191      ;;
9192    *)
9193     shrext_cmds='.sl'
9194     dynamic_linker="$host_os dld.sl"
9195     shlibpath_var=SHLIB_PATH
9196     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9198     soname_spec='${libname}${release}${shared_ext}$major'
9199     ;;
9200   esac
9201   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9202   postinstall_cmds='chmod 555 $lib'
9203   ;;
9204
9205 interix3*)
9206   version_type=linux
9207   need_lib_prefix=no
9208   need_version=no
9209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9210   soname_spec='${libname}${release}${shared_ext}$major'
9211   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9212   shlibpath_var=LD_LIBRARY_PATH
9213   shlibpath_overrides_runpath=no
9214   hardcode_into_libs=yes
9215   ;;
9216
9217 irix5* | irix6* | nonstopux*)
9218   case $host_os in
9219     nonstopux*) version_type=nonstopux ;;
9220     *)
9221         if test "$lt_cv_prog_gnu_ld" = yes; then
9222                 version_type=linux
9223         else
9224                 version_type=irix
9225         fi ;;
9226   esac
9227   need_lib_prefix=no
9228   need_version=no
9229   soname_spec='${libname}${release}${shared_ext}$major'
9230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9231   case $host_os in
9232   irix5* | nonstopux*)
9233     libsuff= shlibsuff=
9234     ;;
9235   *)
9236     case $LD in # libtool.m4 will add one of these switches to LD
9237     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9238       libsuff= shlibsuff= libmagic=32-bit;;
9239     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9240       libsuff=32 shlibsuff=N32 libmagic=N32;;
9241     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9242       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9243     *) libsuff= shlibsuff= libmagic=never-match;;
9244     esac
9245     ;;
9246   esac
9247   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9248   shlibpath_overrides_runpath=no
9249   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9250   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9251   hardcode_into_libs=yes
9252   ;;
9253
9254 # No shared lib support for Linux oldld, aout, or coff.
9255 linux*oldld* | linux*aout* | linux*coff*)
9256   dynamic_linker=no
9257   ;;
9258
9259 # This must be Linux ELF.
9260 linux*)
9261   version_type=linux
9262   need_lib_prefix=no
9263   need_version=no
9264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9265   soname_spec='${libname}${release}${shared_ext}$major'
9266   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9267   shlibpath_var=LD_LIBRARY_PATH
9268   shlibpath_overrides_runpath=no
9269   # This implies no fast_install, which is unacceptable.
9270   # Some rework will be needed to allow for fast_install
9271   # before this can be enabled.
9272   hardcode_into_libs=yes
9273
9274   # Append ld.so.conf contents to the search path
9275   if test -f /etc/ld.so.conf; then
9276     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' ' '`
9277     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9278   fi
9279
9280   # We used to test for /lib/ld.so.1 and disable shared libraries on
9281   # powerpc, because MkLinux only supported shared libraries with the
9282   # GNU dynamic linker.  Since this was broken with cross compilers,
9283   # most powerpc-linux boxes support dynamic linking these days and
9284   # people can always --disable-shared, the test was removed, and we
9285   # assume the GNU/Linux dynamic linker is in use.
9286   dynamic_linker='GNU/Linux ld.so'
9287   ;;
9288
9289 knetbsd*-gnu)
9290   version_type=linux
9291   need_lib_prefix=no
9292   need_version=no
9293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9294   soname_spec='${libname}${release}${shared_ext}$major'
9295   shlibpath_var=LD_LIBRARY_PATH
9296   shlibpath_overrides_runpath=no
9297   hardcode_into_libs=yes
9298   dynamic_linker='GNU ld.so'
9299   ;;
9300
9301 netbsd*)
9302   version_type=sunos
9303   need_lib_prefix=no
9304   need_version=no
9305   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9306     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9307     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9308     dynamic_linker='NetBSD (a.out) ld.so'
9309   else
9310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9311     soname_spec='${libname}${release}${shared_ext}$major'
9312     dynamic_linker='NetBSD ld.elf_so'
9313   fi
9314   shlibpath_var=LD_LIBRARY_PATH
9315   shlibpath_overrides_runpath=yes
9316   hardcode_into_libs=yes
9317   ;;
9318
9319 newsos6)
9320   version_type=linux
9321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322   shlibpath_var=LD_LIBRARY_PATH
9323   shlibpath_overrides_runpath=yes
9324   ;;
9325
9326 nto-qnx*)
9327   version_type=linux
9328   need_lib_prefix=no
9329   need_version=no
9330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9331   soname_spec='${libname}${release}${shared_ext}$major'
9332   shlibpath_var=LD_LIBRARY_PATH
9333   shlibpath_overrides_runpath=yes
9334   ;;
9335
9336 openbsd*)
9337   version_type=sunos
9338   sys_lib_dlsearch_path_spec="/usr/lib"
9339   need_lib_prefix=no
9340   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9341   case $host_os in
9342     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9343     *)                         need_version=no  ;;
9344   esac
9345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9346   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9347   shlibpath_var=LD_LIBRARY_PATH
9348   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9349     case $host_os in
9350       openbsd2.[89] | openbsd2.[89].*)
9351         shlibpath_overrides_runpath=no
9352         ;;
9353       *)
9354         shlibpath_overrides_runpath=yes
9355         ;;
9356       esac
9357   else
9358     shlibpath_overrides_runpath=yes
9359   fi
9360   ;;
9361
9362 os2*)
9363   libname_spec='$name'
9364   shrext_cmds=".dll"
9365   need_lib_prefix=no
9366   library_names_spec='$libname${shared_ext} $libname.a'
9367   dynamic_linker='OS/2 ld.exe'
9368   shlibpath_var=LIBPATH
9369   ;;
9370
9371 osf3* | osf4* | osf5*)
9372   version_type=osf
9373   need_lib_prefix=no
9374   need_version=no
9375   soname_spec='${libname}${release}${shared_ext}$major'
9376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377   shlibpath_var=LD_LIBRARY_PATH
9378   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9379   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9380   ;;
9381
9382 solaris*)
9383   version_type=linux
9384   need_lib_prefix=no
9385   need_version=no
9386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9387   soname_spec='${libname}${release}${shared_ext}$major'
9388   shlibpath_var=LD_LIBRARY_PATH
9389   shlibpath_overrides_runpath=yes
9390   hardcode_into_libs=yes
9391   # ldd complains unless libraries are executable
9392   postinstall_cmds='chmod +x $lib'
9393   ;;
9394
9395 sunos4*)
9396   version_type=sunos
9397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9398   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9399   shlibpath_var=LD_LIBRARY_PATH
9400   shlibpath_overrides_runpath=yes
9401   if test "$with_gnu_ld" = yes; then
9402     need_lib_prefix=no
9403   fi
9404   need_version=yes
9405   ;;
9406
9407 sysv4 | sysv4.3*)
9408   version_type=linux
9409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9410   soname_spec='${libname}${release}${shared_ext}$major'
9411   shlibpath_var=LD_LIBRARY_PATH
9412   case $host_vendor in
9413     sni)
9414       shlibpath_overrides_runpath=no
9415       need_lib_prefix=no
9416       export_dynamic_flag_spec='${wl}-Blargedynsym'
9417       runpath_var=LD_RUN_PATH
9418       ;;
9419     siemens)
9420       need_lib_prefix=no
9421       ;;
9422     motorola)
9423       need_lib_prefix=no
9424       need_version=no
9425       shlibpath_overrides_runpath=no
9426       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9427       ;;
9428   esac
9429   ;;
9430
9431 sysv4*MP*)
9432   if test -d /usr/nec ;then
9433     version_type=linux
9434     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9435     soname_spec='$libname${shared_ext}.$major'
9436     shlibpath_var=LD_LIBRARY_PATH
9437   fi
9438   ;;
9439
9440 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9441   version_type=freebsd-elf
9442   need_lib_prefix=no
9443   need_version=no
9444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9445   soname_spec='${libname}${release}${shared_ext}$major'
9446   shlibpath_var=LD_LIBRARY_PATH
9447   hardcode_into_libs=yes
9448   if test "$with_gnu_ld" = yes; then
9449     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9450     shlibpath_overrides_runpath=no
9451   else
9452     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9453     shlibpath_overrides_runpath=yes
9454     case $host_os in
9455       sco3.2v5*)
9456         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9457         ;;
9458     esac
9459   fi
9460   sys_lib_dlsearch_path_spec='/usr/lib'
9461   ;;
9462
9463 uts4*)
9464   version_type=linux
9465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9466   soname_spec='${libname}${release}${shared_ext}$major'
9467   shlibpath_var=LD_LIBRARY_PATH
9468   ;;
9469
9470 *)
9471   dynamic_linker=no
9472   ;;
9473 esac
9474 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9475 echo "${ECHO_T}$dynamic_linker" >&6; }
9476 test "$dynamic_linker" = no && can_build_shared=no
9477
9478 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9479 if test "$GCC" = yes; then
9480   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9481 fi
9482
9483
9484 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9485 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9486 if test "${libltdl_cv_shlibext+set}" = set; then
9487   echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489
9490 module=yes
9491 eval libltdl_cv_shlibext=$shrext_cmds
9492
9493 fi
9494 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9495 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9496 if test -n "$libltdl_cv_shlibext"; then
9497
9498 cat >>confdefs.h <<_ACEOF
9499 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9500 _ACEOF
9501
9502 fi
9503
9504
9505 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9506 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9507 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9508   echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9510   libltdl_cv_shlibpath_var="$shlibpath_var"
9511 fi
9512 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9513 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9514 if test -n "$libltdl_cv_shlibpath_var"; then
9515
9516 cat >>confdefs.h <<_ACEOF
9517 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9518 _ACEOF
9519
9520 fi
9521
9522
9523 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9524 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9525 if test "${libltdl_cv_sys_search_path+set}" = set; then
9526   echo $ECHO_N "(cached) $ECHO_C" >&6
9527 else
9528   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9529 fi
9530 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9531 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9532 if test -n "$libltdl_cv_sys_search_path"; then
9533   sys_search_path=
9534   for dir in $libltdl_cv_sys_search_path; do
9535     if test -z "$sys_search_path"; then
9536       sys_search_path="$dir"
9537     else
9538       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9539     fi
9540   done
9541
9542 cat >>confdefs.h <<_ACEOF
9543 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9544 _ACEOF
9545
9546 fi
9547
9548 { echo "$as_me:$LINENO: checking for objdir" >&5
9549 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9550 if test "${libltdl_cv_objdir+set}" = set; then
9551   echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553   libltdl_cv_objdir="$objdir"
9554   if test -n "$objdir"; then
9555     :
9556   else
9557     rm -f .libs 2>/dev/null
9558     mkdir .libs 2>/dev/null
9559     if test -d .libs; then
9560       libltdl_cv_objdir=.libs
9561     else
9562       # MS-DOS does not allow filenames that begin with a dot.
9563       libltdl_cv_objdir=_libs
9564     fi
9565   rmdir .libs 2>/dev/null
9566   fi
9567
9568 fi
9569 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9570 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9571
9572 cat >>confdefs.h <<_ACEOF
9573 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9574 _ACEOF
9575
9576
9577
9578
9579
9580
9581 # Check for command to grab the raw symbol name followed by C symbol from nm.
9582 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9583 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9584 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9585   echo $ECHO_N "(cached) $ECHO_C" >&6
9586 else
9587
9588 # These are sane defaults that work on at least a few old systems.
9589 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9590
9591 # Character class describing NM global symbol codes.
9592 symcode='[BCDEGRST]'
9593
9594 # Regexp to match symbols that can be accessed directly from C.
9595 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9596
9597 # Transform an extracted symbol line into a proper C declaration
9598 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9599
9600 # Transform an extracted symbol line into symbol name and symbol address
9601 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'"
9602
9603 # Define system-specific variables.
9604 case $host_os in
9605 aix*)
9606   symcode='[BCDT]'
9607   ;;
9608 cygwin* | mingw* | pw32*)
9609   symcode='[ABCDGISTW]'
9610   ;;
9611 hpux*) # Its linker distinguishes data from code symbols
9612   if test "$host_cpu" = ia64; then
9613     symcode='[ABCDEGRST]'
9614   fi
9615   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9616   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'"
9617   ;;
9618 linux*)
9619   if test "$host_cpu" = ia64; then
9620     symcode='[ABCDGIRSTW]'
9621     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9622     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'"
9623   fi
9624   ;;
9625 irix* | nonstopux*)
9626   symcode='[BCDEGRST]'
9627   ;;
9628 osf*)
9629   symcode='[BCDEGQRST]'
9630   ;;
9631 solaris*)
9632   symcode='[BDRT]'
9633   ;;
9634 sco3.2v5*)
9635   symcode='[DT]'
9636   ;;
9637 sysv4.2uw2*)
9638   symcode='[DT]'
9639   ;;
9640 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9641   symcode='[ABDT]'
9642   ;;
9643 sysv4)
9644   symcode='[DFNSTU]'
9645   ;;
9646 esac
9647
9648 # Handle CRLF in mingw tool chain
9649 opt_cr=
9650 case $build_os in
9651 mingw*)
9652   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9653   ;;
9654 esac
9655
9656 # If we're using GNU nm, then use its standard symbol codes.
9657 case `$NM -V 2>&1` in
9658 *GNU* | *'with BFD'*)
9659   symcode='[ABCDGIRSTW]' ;;
9660 esac
9661
9662 # Try without a prefix undercore, then with it.
9663 for ac_symprfx in "" "_"; do
9664
9665   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9666   symxfrm="\\1 $ac_symprfx\\2 \\2"
9667
9668   # Write the raw and C identifiers.
9669   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9670
9671   # Check to see that the pipe works correctly.
9672   pipe_works=no
9673
9674   rm -f conftest*
9675   cat > conftest.$ac_ext <<EOF
9676 #ifdef __cplusplus
9677 extern "C" {
9678 #endif
9679 char nm_test_var;
9680 void nm_test_func(){}
9681 #ifdef __cplusplus
9682 }
9683 #endif
9684 int main(){nm_test_var='a';nm_test_func();return(0);}
9685 EOF
9686
9687   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9688   (eval $ac_compile) 2>&5
9689   ac_status=$?
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); }; then
9692     # Now try to grab the symbols.
9693     nlist=conftest.nm
9694     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9695   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9696   ac_status=$?
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); } && test -s "$nlist"; then
9699       # Try sorting and uniquifying the output.
9700       if sort "$nlist" | uniq > "$nlist"T; then
9701         mv -f "$nlist"T "$nlist"
9702       else
9703         rm -f "$nlist"T
9704       fi
9705
9706       # Make sure that we snagged all the symbols we need.
9707       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9708         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9709           cat <<EOF > conftest.$ac_ext
9710 #ifdef __cplusplus
9711 extern "C" {
9712 #endif
9713
9714 EOF
9715           # Now generate the symbol file.
9716           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9717
9718           cat <<EOF >> conftest.$ac_ext
9719 #if defined (__STDC__) && __STDC__
9720 # define lt_ptr_t void *
9721 #else
9722 # define lt_ptr_t char *
9723 # define const
9724 #endif
9725
9726 /* The mapping between symbol names and symbols. */
9727 const struct {
9728   const char *name;
9729   lt_ptr_t address;
9730 }
9731 lt_preloaded_symbols[] =
9732 {
9733 EOF
9734           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9735           cat <<\EOF >> conftest.$ac_ext
9736   {0, (lt_ptr_t) 0}
9737 };
9738
9739 #ifdef __cplusplus
9740 }
9741 #endif
9742 EOF
9743           # Now try linking the two files.
9744           mv conftest.$ac_objext conftstm.$ac_objext
9745           lt_save_LIBS="$LIBS"
9746           lt_save_CFLAGS="$CFLAGS"
9747           LIBS="conftstm.$ac_objext"
9748           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9749           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9750   (eval $ac_link) 2>&5
9751   ac_status=$?
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9754             pipe_works=yes
9755           fi
9756           LIBS="$lt_save_LIBS"
9757           CFLAGS="$lt_save_CFLAGS"
9758         else
9759           echo "cannot find nm_test_func in $nlist" >&5
9760         fi
9761       else
9762         echo "cannot find nm_test_var in $nlist" >&5
9763       fi
9764     else
9765       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9766     fi
9767   else
9768     echo "$progname: failed program was:" >&5
9769     cat conftest.$ac_ext >&5
9770   fi
9771   rm -f conftest* conftst*
9772
9773   # Do not use the global_symbol_pipe unless it works.
9774   if test "$pipe_works" = yes; then
9775     break
9776   else
9777     lt_cv_sys_global_symbol_pipe=
9778   fi
9779 done
9780
9781 fi
9782
9783 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9784   lt_cv_sys_global_symbol_to_cdecl=
9785 fi
9786 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9787   { echo "$as_me:$LINENO: result: failed" >&5
9788 echo "${ECHO_T}failed" >&6; }
9789 else
9790   { echo "$as_me:$LINENO: result: ok" >&5
9791 echo "${ECHO_T}ok" >&6; }
9792 fi
9793
9794
9795 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9796 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9797 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9798   echo $ECHO_N "(cached) $ECHO_C" >&6
9799 else
9800   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9801     libltdl_cv_preloaded_symbols=yes
9802   else
9803     libltdl_cv_preloaded_symbols=no
9804   fi
9805
9806 fi
9807 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9808 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9809 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9810
9811 cat >>confdefs.h <<\_ACEOF
9812 #define HAVE_PRELOADED_SYMBOLS 1
9813 _ACEOF
9814
9815 fi
9816
9817 LIBADD_DL=
9818
9819 ac_ext=c
9820 ac_cpp='$CPP $CPPFLAGS'
9821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9824
9825
9826 { echo "$as_me:$LINENO: checking for shl_load" >&5
9827 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9828 if test "${ac_cv_func_shl_load+set}" = set; then
9829   echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9831   cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h.  */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h.  */
9837 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9839 #define shl_load innocuous_shl_load
9840
9841 /* System header to define __stub macros and hopefully few prototypes,
9842     which can conflict with char shl_load (); below.
9843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9844     <limits.h> exists even on freestanding compilers.  */
9845
9846 #ifdef __STDC__
9847 # include <limits.h>
9848 #else
9849 # include <assert.h>
9850 #endif
9851
9852 #undef shl_load
9853
9854 /* Override any GCC internal prototype to avoid an error.
9855    Use char because int might match the return type of a GCC
9856    builtin and then its argument prototype would still apply.  */
9857 #ifdef __cplusplus
9858 extern "C"
9859 #endif
9860 char shl_load ();
9861 /* The GNU C library defines this for functions which it implements
9862     to always fail with ENOSYS.  Some functions are actually named
9863     something starting with __ and the normal name is an alias.  */
9864 #if defined __stub_shl_load || defined __stub___shl_load
9865 choke me
9866 #endif
9867
9868 int
9869 main ()
9870 {
9871 return shl_load ();
9872   ;
9873   return 0;
9874 }
9875 _ACEOF
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (ac_try="$ac_link"
9878 case "(($ac_try" in
9879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880   *) ac_try_echo=$ac_try;;
9881 esac
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883   (eval "$ac_link") 2>conftest.er1
9884   ac_status=$?
9885   grep -v '^ *+' conftest.er1 >conftest.err
9886   rm -f conftest.er1
9887   cat conftest.err >&5
9888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889   (exit $ac_status); } &&
9890          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9891   { (case "(($ac_try" in
9892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893   *) ac_try_echo=$ac_try;;
9894 esac
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896   (eval "$ac_try") 2>&5
9897   ac_status=$?
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); }; } &&
9900          { ac_try='test -s conftest$ac_exeext'
9901   { (case "(($ac_try" in
9902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903   *) ac_try_echo=$ac_try;;
9904 esac
9905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906   (eval "$ac_try") 2>&5
9907   ac_status=$?
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); }; }; then
9910   ac_cv_func_shl_load=yes
9911 else
9912   echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9914
9915         ac_cv_func_shl_load=no
9916 fi
9917
9918 rm -f core conftest.err conftest.$ac_objext \
9919       conftest$ac_exeext conftest.$ac_ext
9920 fi
9921 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9922 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9923 if test $ac_cv_func_shl_load = yes; then
9924
9925 cat >>confdefs.h <<\_ACEOF
9926 #define HAVE_SHL_LOAD 1
9927 _ACEOF
9928
9929 else
9930   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9931 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9932 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9933   echo $ECHO_N "(cached) $ECHO_C" >&6
9934 else
9935   ac_check_lib_save_LIBS=$LIBS
9936 LIBS="-ldld  $LIBS"
9937 cat >conftest.$ac_ext <<_ACEOF
9938 /* confdefs.h.  */
9939 _ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h.  */
9943
9944 /* Override any GCC internal prototype to avoid an error.
9945    Use char because int might match the return type of a GCC
9946    builtin and then its argument prototype would still apply.  */
9947 #ifdef __cplusplus
9948 extern "C"
9949 #endif
9950 char shl_load ();
9951 int
9952 main ()
9953 {
9954 return shl_load ();
9955   ;
9956   return 0;
9957 }
9958 _ACEOF
9959 rm -f conftest.$ac_objext conftest$ac_exeext
9960 if { (ac_try="$ac_link"
9961 case "(($ac_try" in
9962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963   *) ac_try_echo=$ac_try;;
9964 esac
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966   (eval "$ac_link") 2>conftest.er1
9967   ac_status=$?
9968   grep -v '^ *+' conftest.er1 >conftest.err
9969   rm -f conftest.er1
9970   cat conftest.err >&5
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); } &&
9973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9974   { (case "(($ac_try" in
9975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976   *) ac_try_echo=$ac_try;;
9977 esac
9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979   (eval "$ac_try") 2>&5
9980   ac_status=$?
9981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982   (exit $ac_status); }; } &&
9983          { ac_try='test -s conftest$ac_exeext'
9984   { (case "(($ac_try" in
9985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986   *) ac_try_echo=$ac_try;;
9987 esac
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989   (eval "$ac_try") 2>&5
9990   ac_status=$?
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); }; }; then
9993   ac_cv_lib_dld_shl_load=yes
9994 else
9995   echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9997
9998         ac_cv_lib_dld_shl_load=no
9999 fi
10000
10001 rm -f core conftest.err conftest.$ac_objext \
10002       conftest$ac_exeext conftest.$ac_ext
10003 LIBS=$ac_check_lib_save_LIBS
10004 fi
10005 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10006 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10007 if test $ac_cv_lib_dld_shl_load = yes; then
10008
10009 cat >>confdefs.h <<\_ACEOF
10010 #define HAVE_SHL_LOAD 1
10011 _ACEOF
10012
10013         LIBADD_DL="$LIBADD_DL -ldld"
10014 else
10015   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10016 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10017 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10018   echo $ECHO_N "(cached) $ECHO_C" >&6
10019 else
10020   ac_check_lib_save_LIBS=$LIBS
10021 LIBS="-ldl  $LIBS"
10022 cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h.  */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h.  */
10028
10029 /* Override any GCC internal prototype to avoid an error.
10030    Use char because int might match the return type of a GCC
10031    builtin and then its argument prototype would still apply.  */
10032 #ifdef __cplusplus
10033 extern "C"
10034 #endif
10035 char dlopen ();
10036 int
10037 main ()
10038 {
10039 return dlopen ();
10040   ;
10041   return 0;
10042 }
10043 _ACEOF
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (ac_try="$ac_link"
10046 case "(($ac_try" in
10047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048   *) ac_try_echo=$ac_try;;
10049 esac
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051   (eval "$ac_link") 2>conftest.er1
10052   ac_status=$?
10053   grep -v '^ *+' conftest.er1 >conftest.err
10054   rm -f conftest.er1
10055   cat conftest.err >&5
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); } &&
10058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10059   { (case "(($ac_try" in
10060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061   *) ac_try_echo=$ac_try;;
10062 esac
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064   (eval "$ac_try") 2>&5
10065   ac_status=$?
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); }; } &&
10068          { ac_try='test -s conftest$ac_exeext'
10069   { (case "(($ac_try" in
10070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071   *) ac_try_echo=$ac_try;;
10072 esac
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074   (eval "$ac_try") 2>&5
10075   ac_status=$?
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); }; }; then
10078   ac_cv_lib_dl_dlopen=yes
10079 else
10080   echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10082
10083         ac_cv_lib_dl_dlopen=no
10084 fi
10085
10086 rm -f core conftest.err conftest.$ac_objext \
10087       conftest$ac_exeext conftest.$ac_ext
10088 LIBS=$ac_check_lib_save_LIBS
10089 fi
10090 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10091 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10092 if test $ac_cv_lib_dl_dlopen = yes; then
10093
10094 cat >>confdefs.h <<\_ACEOF
10095 #define HAVE_LIBDL 1
10096 _ACEOF
10097
10098                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10099 else
10100   cat >conftest.$ac_ext <<_ACEOF
10101 /* confdefs.h.  */
10102 _ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h.  */
10106 #if HAVE_DLFCN_H
10107 #  include <dlfcn.h>
10108 #endif
10109
10110 int
10111 main ()
10112 {
10113 dlopen(0, 0);
10114   ;
10115   return 0;
10116 }
10117 _ACEOF
10118 rm -f conftest.$ac_objext conftest$ac_exeext
10119 if { (ac_try="$ac_link"
10120 case "(($ac_try" in
10121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122   *) ac_try_echo=$ac_try;;
10123 esac
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125   (eval "$ac_link") 2>conftest.er1
10126   ac_status=$?
10127   grep -v '^ *+' conftest.er1 >conftest.err
10128   rm -f conftest.er1
10129   cat conftest.err >&5
10130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131   (exit $ac_status); } &&
10132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10133   { (case "(($ac_try" in
10134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135   *) ac_try_echo=$ac_try;;
10136 esac
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138   (eval "$ac_try") 2>&5
10139   ac_status=$?
10140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141   (exit $ac_status); }; } &&
10142          { ac_try='test -s conftest$ac_exeext'
10143   { (case "(($ac_try" in
10144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145   *) ac_try_echo=$ac_try;;
10146 esac
10147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148   (eval "$ac_try") 2>&5
10149   ac_status=$?
10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); }; }; then
10152
10153 cat >>confdefs.h <<\_ACEOF
10154 #define HAVE_LIBDL 1
10155 _ACEOF
10156  libltdl_cv_func_dlopen="yes"
10157 else
10158   echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10160
10161         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10162 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10163 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10164   echo $ECHO_N "(cached) $ECHO_C" >&6
10165 else
10166   ac_check_lib_save_LIBS=$LIBS
10167 LIBS="-lsvld  $LIBS"
10168 cat >conftest.$ac_ext <<_ACEOF
10169 /* confdefs.h.  */
10170 _ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h.  */
10174
10175 /* Override any GCC internal prototype to avoid an error.
10176    Use char because int might match the return type of a GCC
10177    builtin and then its argument prototype would still apply.  */
10178 #ifdef __cplusplus
10179 extern "C"
10180 #endif
10181 char dlopen ();
10182 int
10183 main ()
10184 {
10185 return dlopen ();
10186   ;
10187   return 0;
10188 }
10189 _ACEOF
10190 rm -f conftest.$ac_objext conftest$ac_exeext
10191 if { (ac_try="$ac_link"
10192 case "(($ac_try" in
10193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194   *) ac_try_echo=$ac_try;;
10195 esac
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197   (eval "$ac_link") 2>conftest.er1
10198   ac_status=$?
10199   grep -v '^ *+' conftest.er1 >conftest.err
10200   rm -f conftest.er1
10201   cat conftest.err >&5
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); } &&
10204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10205   { (case "(($ac_try" in
10206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207   *) ac_try_echo=$ac_try;;
10208 esac
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210   (eval "$ac_try") 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); }; } &&
10214          { ac_try='test -s conftest$ac_exeext'
10215   { (case "(($ac_try" in
10216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217   *) ac_try_echo=$ac_try;;
10218 esac
10219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220   (eval "$ac_try") 2>&5
10221   ac_status=$?
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); }; }; then
10224   ac_cv_lib_svld_dlopen=yes
10225 else
10226   echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10228
10229         ac_cv_lib_svld_dlopen=no
10230 fi
10231
10232 rm -f core conftest.err conftest.$ac_objext \
10233       conftest$ac_exeext conftest.$ac_ext
10234 LIBS=$ac_check_lib_save_LIBS
10235 fi
10236 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10237 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10238 if test $ac_cv_lib_svld_dlopen = yes; then
10239
10240 cat >>confdefs.h <<\_ACEOF
10241 #define HAVE_LIBDL 1
10242 _ACEOF
10243
10244                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10245 else
10246   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10247 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10248 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10249   echo $ECHO_N "(cached) $ECHO_C" >&6
10250 else
10251   ac_check_lib_save_LIBS=$LIBS
10252 LIBS="-ldld  $LIBS"
10253 cat >conftest.$ac_ext <<_ACEOF
10254 /* confdefs.h.  */
10255 _ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h.  */
10259
10260 /* Override any GCC internal prototype to avoid an error.
10261    Use char because int might match the return type of a GCC
10262    builtin and then its argument prototype would still apply.  */
10263 #ifdef __cplusplus
10264 extern "C"
10265 #endif
10266 char dld_link ();
10267 int
10268 main ()
10269 {
10270 return dld_link ();
10271   ;
10272   return 0;
10273 }
10274 _ACEOF
10275 rm -f conftest.$ac_objext conftest$ac_exeext
10276 if { (ac_try="$ac_link"
10277 case "(($ac_try" in
10278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279   *) ac_try_echo=$ac_try;;
10280 esac
10281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282   (eval "$ac_link") 2>conftest.er1
10283   ac_status=$?
10284   grep -v '^ *+' conftest.er1 >conftest.err
10285   rm -f conftest.er1
10286   cat conftest.err >&5
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); } &&
10289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10290   { (case "(($ac_try" in
10291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292   *) ac_try_echo=$ac_try;;
10293 esac
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295   (eval "$ac_try") 2>&5
10296   ac_status=$?
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); }; } &&
10299          { ac_try='test -s conftest$ac_exeext'
10300   { (case "(($ac_try" in
10301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302   *) ac_try_echo=$ac_try;;
10303 esac
10304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305   (eval "$ac_try") 2>&5
10306   ac_status=$?
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); }; }; then
10309   ac_cv_lib_dld_dld_link=yes
10310 else
10311   echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10313
10314         ac_cv_lib_dld_dld_link=no
10315 fi
10316
10317 rm -f core conftest.err conftest.$ac_objext \
10318       conftest$ac_exeext conftest.$ac_ext
10319 LIBS=$ac_check_lib_save_LIBS
10320 fi
10321 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10322 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10323 if test $ac_cv_lib_dld_dld_link = yes; then
10324
10325 cat >>confdefs.h <<\_ACEOF
10326 #define HAVE_DLD 1
10327 _ACEOF
10328
10329                 LIBADD_DL="$LIBADD_DL -ldld"
10330 else
10331   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10332 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10333 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10334   echo $ECHO_N "(cached) $ECHO_C" >&6
10335 else
10336   cat >conftest.$ac_ext <<_ACEOF
10337 /* confdefs.h.  */
10338 _ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h.  */
10342 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10343    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10344 #define _dyld_func_lookup innocuous__dyld_func_lookup
10345
10346 /* System header to define __stub macros and hopefully few prototypes,
10347     which can conflict with char _dyld_func_lookup (); below.
10348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10349     <limits.h> exists even on freestanding compilers.  */
10350
10351 #ifdef __STDC__
10352 # include <limits.h>
10353 #else
10354 # include <assert.h>
10355 #endif
10356
10357 #undef _dyld_func_lookup
10358
10359 /* Override any GCC internal prototype to avoid an error.
10360    Use char because int might match the return type of a GCC
10361    builtin and then its argument prototype would still apply.  */
10362 #ifdef __cplusplus
10363 extern "C"
10364 #endif
10365 char _dyld_func_lookup ();
10366 /* The GNU C library defines this for functions which it implements
10367     to always fail with ENOSYS.  Some functions are actually named
10368     something starting with __ and the normal name is an alias.  */
10369 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10370 choke me
10371 #endif
10372
10373 int
10374 main ()
10375 {
10376 return _dyld_func_lookup ();
10377   ;
10378   return 0;
10379 }
10380 _ACEOF
10381 rm -f conftest.$ac_objext conftest$ac_exeext
10382 if { (ac_try="$ac_link"
10383 case "(($ac_try" in
10384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385   *) ac_try_echo=$ac_try;;
10386 esac
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388   (eval "$ac_link") 2>conftest.er1
10389   ac_status=$?
10390   grep -v '^ *+' conftest.er1 >conftest.err
10391   rm -f conftest.er1
10392   cat conftest.err >&5
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); } &&
10395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10396   { (case "(($ac_try" in
10397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398   *) ac_try_echo=$ac_try;;
10399 esac
10400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401   (eval "$ac_try") 2>&5
10402   ac_status=$?
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); }; } &&
10405          { ac_try='test -s conftest$ac_exeext'
10406   { (case "(($ac_try" in
10407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408   *) ac_try_echo=$ac_try;;
10409 esac
10410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411   (eval "$ac_try") 2>&5
10412   ac_status=$?
10413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414   (exit $ac_status); }; }; then
10415   ac_cv_func__dyld_func_lookup=yes
10416 else
10417   echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10419
10420         ac_cv_func__dyld_func_lookup=no
10421 fi
10422
10423 rm -f core conftest.err conftest.$ac_objext \
10424       conftest$ac_exeext conftest.$ac_ext
10425 fi
10426 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10427 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10428 if test $ac_cv_func__dyld_func_lookup = yes; then
10429
10430 cat >>confdefs.h <<\_ACEOF
10431 #define HAVE_DYLD 1
10432 _ACEOF
10433
10434 fi
10435
10436
10437 fi
10438
10439
10440 fi
10441
10442
10443 fi
10444
10445 rm -f core conftest.err conftest.$ac_objext \
10446       conftest$ac_exeext conftest.$ac_ext
10447
10448 fi
10449
10450
10451 fi
10452
10453
10454 fi
10455
10456
10457 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10458 then
10459   lt_save_LIBS="$LIBS"
10460   LIBS="$LIBS $LIBADD_DL"
10461
10462 for ac_func in dlerror
10463 do
10464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10465 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10468   echo $ECHO_N "(cached) $ECHO_C" >&6
10469 else
10470   cat >conftest.$ac_ext <<_ACEOF
10471 /* confdefs.h.  */
10472 _ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h.  */
10476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10478 #define $ac_func innocuous_$ac_func
10479
10480 /* System header to define __stub macros and hopefully few prototypes,
10481     which can conflict with char $ac_func (); below.
10482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10483     <limits.h> exists even on freestanding compilers.  */
10484
10485 #ifdef __STDC__
10486 # include <limits.h>
10487 #else
10488 # include <assert.h>
10489 #endif
10490
10491 #undef $ac_func
10492
10493 /* Override any GCC internal prototype to avoid an error.
10494    Use char because int might match the return type of a GCC
10495    builtin and then its argument prototype would still apply.  */
10496 #ifdef __cplusplus
10497 extern "C"
10498 #endif
10499 char $ac_func ();
10500 /* The GNU C library defines this for functions which it implements
10501     to always fail with ENOSYS.  Some functions are actually named
10502     something starting with __ and the normal name is an alias.  */
10503 #if defined __stub_$ac_func || defined __stub___$ac_func
10504 choke me
10505 #endif
10506
10507 int
10508 main ()
10509 {
10510 return $ac_func ();
10511   ;
10512   return 0;
10513 }
10514 _ACEOF
10515 rm -f conftest.$ac_objext conftest$ac_exeext
10516 if { (ac_try="$ac_link"
10517 case "(($ac_try" in
10518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519   *) ac_try_echo=$ac_try;;
10520 esac
10521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522   (eval "$ac_link") 2>conftest.er1
10523   ac_status=$?
10524   grep -v '^ *+' conftest.er1 >conftest.err
10525   rm -f conftest.er1
10526   cat conftest.err >&5
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); } &&
10529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10530   { (case "(($ac_try" in
10531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10532   *) ac_try_echo=$ac_try;;
10533 esac
10534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10535   (eval "$ac_try") 2>&5
10536   ac_status=$?
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); }; } &&
10539          { ac_try='test -s conftest$ac_exeext'
10540   { (case "(($ac_try" in
10541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542   *) ac_try_echo=$ac_try;;
10543 esac
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545   (eval "$ac_try") 2>&5
10546   ac_status=$?
10547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548   (exit $ac_status); }; }; then
10549   eval "$as_ac_var=yes"
10550 else
10551   echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10553
10554         eval "$as_ac_var=no"
10555 fi
10556
10557 rm -f core conftest.err conftest.$ac_objext \
10558       conftest$ac_exeext conftest.$ac_ext
10559 fi
10560 ac_res=`eval echo '${'$as_ac_var'}'`
10561                { echo "$as_me:$LINENO: result: $ac_res" >&5
10562 echo "${ECHO_T}$ac_res" >&6; }
10563 if test `eval echo '${'$as_ac_var'}'` = yes; then
10564   cat >>confdefs.h <<_ACEOF
10565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10566 _ACEOF
10567
10568 fi
10569 done
10570
10571   LIBS="$lt_save_LIBS"
10572 fi
10573 ac_ext=c
10574 ac_cpp='$CPP $CPPFLAGS'
10575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10578
10579
10580
10581 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10582 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10583 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10584   echo $ECHO_N "(cached) $ECHO_C" >&6
10585 else
10586   ac_cv_sys_symbol_underscore=no
10587   cat > conftest.$ac_ext <<EOF
10588 void nm_test_func(){}
10589 int main(){nm_test_func;return 0;}
10590 EOF
10591   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10592   (eval $ac_compile) 2>&5
10593   ac_status=$?
10594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595   (exit $ac_status); }; then
10596     # Now try to grab the symbols.
10597     ac_nlist=conftest.nm
10598     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10599   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10600   ac_status=$?
10601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); } && test -s "$ac_nlist"; then
10603       # See whether the symbols have a leading underscore.
10604       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10605         ac_cv_sys_symbol_underscore=yes
10606       else
10607         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10608           :
10609         else
10610           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10611         fi
10612       fi
10613     else
10614       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10615     fi
10616   else
10617     echo "configure: failed program was:" >&5
10618     cat conftest.c >&5
10619   fi
10620   rm -rf conftest*
10621
10622 fi
10623 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10624 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10625
10626
10627 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10628   if test x"$libltdl_cv_func_dlopen" = xyes ||
10629      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10630         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10631 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10632 if test "${libltdl_cv_need_uscore+set}" = set; then
10633   echo $ECHO_N "(cached) $ECHO_C" >&6
10634 else
10635   libltdl_cv_need_uscore=unknown
10636           save_LIBS="$LIBS"
10637           LIBS="$LIBS $LIBADD_DL"
10638           if test "$cross_compiling" = yes; then :
10639   libltdl_cv_need_uscore=cross
10640 else
10641   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10642   lt_status=$lt_dlunknown
10643   cat > conftest.$ac_ext <<EOF
10644 #line 10644 "configure"
10645 #include "confdefs.h"
10646
10647 #if HAVE_DLFCN_H
10648 #include <dlfcn.h>
10649 #endif
10650
10651 #include <stdio.h>
10652
10653 #ifdef RTLD_GLOBAL
10654 #  define LT_DLGLOBAL           RTLD_GLOBAL
10655 #else
10656 #  ifdef DL_GLOBAL
10657 #    define LT_DLGLOBAL         DL_GLOBAL
10658 #  else
10659 #    define LT_DLGLOBAL         0
10660 #  endif
10661 #endif
10662
10663 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10664    find out it does not work in some platform. */
10665 #ifndef LT_DLLAZY_OR_NOW
10666 #  ifdef RTLD_LAZY
10667 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10668 #  else
10669 #    ifdef DL_LAZY
10670 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10671 #    else
10672 #      ifdef RTLD_NOW
10673 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10674 #      else
10675 #        ifdef DL_NOW
10676 #          define LT_DLLAZY_OR_NOW      DL_NOW
10677 #        else
10678 #          define LT_DLLAZY_OR_NOW      0
10679 #        endif
10680 #      endif
10681 #    endif
10682 #  endif
10683 #endif
10684
10685 #ifdef __cplusplus
10686 extern "C" void exit (int);
10687 #endif
10688
10689 void fnord() { int i=42;}
10690 int main ()
10691 {
10692   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10693   int status = $lt_dlunknown;
10694
10695   if (self)
10696     {
10697       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10698       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10699       /* dlclose (self); */
10700     }
10701   else
10702     puts (dlerror ());
10703
10704     exit (status);
10705 }
10706 EOF
10707   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10708   (eval $ac_link) 2>&5
10709   ac_status=$?
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10712     (./conftest; exit; ) >&5 2>/dev/null
10713     lt_status=$?
10714     case x$lt_status in
10715       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10716       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10717       x$lt_dlunknown|x*)  ;;
10718     esac
10719   else :
10720     # compilation failed
10721
10722   fi
10723 fi
10724 rm -fr conftest*
10725
10726           LIBS="$save_LIBS"
10727
10728 fi
10729 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10730 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10731   fi
10732 fi
10733
10734 if test x"$libltdl_cv_need_uscore" = xyes; then
10735
10736 cat >>confdefs.h <<\_ACEOF
10737 #define NEED_USCORE 1
10738 _ACEOF
10739
10740 fi
10741
10742
10743 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10744 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10745 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10746   echo $ECHO_N "(cached) $ECHO_C" >&6
10747 else
10748   # PORTME does your system automatically load deplibs for dlopen?
10749   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10750   # For now, we just catch OSes we know something about -- in the
10751   # future, we'll try test this programmatically.
10752   libltdl_cv_sys_dlopen_deplibs=unknown
10753   case "$host_os" in
10754   aix3*|aix4.1.*|aix4.2.*)
10755     # Unknown whether this is true for these versions of AIX, but
10756     # we want this `case' here to explicitly catch those versions.
10757     libltdl_cv_sys_dlopen_deplibs=unknown
10758     ;;
10759   aix[45]*)
10760     libltdl_cv_sys_dlopen_deplibs=yes
10761     ;;
10762   darwin*)
10763     # Assuming the user has installed a libdl from somewhere, this is true
10764     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10765     libltdl_cv_sys_dlopen_deplibs=yes
10766     ;;
10767   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10768     # GNU and its variants, using gnu ld.so (Glibc)
10769     libltdl_cv_sys_dlopen_deplibs=yes
10770     ;;
10771   hpux10*|hpux11*)
10772     libltdl_cv_sys_dlopen_deplibs=yes
10773     ;;
10774   interix*)
10775     libltdl_cv_sys_dlopen_deplibs=yes
10776     ;;
10777   irix[12345]*|irix6.[01]*)
10778     # Catch all versions of IRIX before 6.2, and indicate that we don't
10779     # know how it worked for any of those versions.
10780     libltdl_cv_sys_dlopen_deplibs=unknown
10781     ;;
10782   irix*)
10783     # The case above catches anything before 6.2, and it's known that
10784     # at 6.2 and later dlopen does load deplibs.
10785     libltdl_cv_sys_dlopen_deplibs=yes
10786     ;;
10787   netbsd*)
10788     libltdl_cv_sys_dlopen_deplibs=yes
10789     ;;
10790   openbsd*)
10791     libltdl_cv_sys_dlopen_deplibs=yes
10792     ;;
10793   osf[1234]*)
10794     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10795     # it did *not* use an RPATH in a shared library to find objects the
10796     # library depends on, so we explictly say `no'.
10797     libltdl_cv_sys_dlopen_deplibs=no
10798     ;;
10799   osf5.0|osf5.0a|osf5.1)
10800     # dlopen *does* load deplibs and with the right loader patch applied
10801     # it even uses RPATH in a shared library to search for shared objects
10802     # that the library depends on, but there's no easy way to know if that
10803     # patch is installed.  Since this is the case, all we can really
10804     # say is unknown -- it depends on the patch being installed.  If
10805     # it is, this changes to `yes'.  Without it, it would be `no'.
10806     libltdl_cv_sys_dlopen_deplibs=unknown
10807     ;;
10808   osf*)
10809     # the two cases above should catch all versions of osf <= 5.1.  Read
10810     # the comments above for what we know about them.
10811     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10812     # is used to find them so we can finally say `yes'.
10813     libltdl_cv_sys_dlopen_deplibs=yes
10814     ;;
10815   solaris*)
10816     libltdl_cv_sys_dlopen_deplibs=yes
10817     ;;
10818   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10819     libltdl_cv_sys_dlopen_deplibs=yes
10820     ;;
10821   esac
10822
10823 fi
10824 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10825 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10826 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10827
10828 cat >>confdefs.h <<\_ACEOF
10829 #define LTDL_DLOPEN_DEPLIBS 1
10830 _ACEOF
10831
10832 fi
10833
10834
10835 for ac_header in argz.h
10836 do
10837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10839   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10842   echo $ECHO_N "(cached) $ECHO_C" >&6
10843 fi
10844 ac_res=`eval echo '${'$as_ac_Header'}'`
10845                { echo "$as_me:$LINENO: result: $ac_res" >&5
10846 echo "${ECHO_T}$ac_res" >&6; }
10847 else
10848   # Is the header compilable?
10849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10851 cat >conftest.$ac_ext <<_ACEOF
10852 /* confdefs.h.  */
10853 _ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h.  */
10857 $ac_includes_default
10858 #include <$ac_header>
10859 _ACEOF
10860 rm -f conftest.$ac_objext
10861 if { (ac_try="$ac_compile"
10862 case "(($ac_try" in
10863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864   *) ac_try_echo=$ac_try;;
10865 esac
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867   (eval "$ac_compile") 2>conftest.er1
10868   ac_status=$?
10869   grep -v '^ *+' conftest.er1 >conftest.err
10870   rm -f conftest.er1
10871   cat conftest.err >&5
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); } &&
10874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10875   { (case "(($ac_try" in
10876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877   *) ac_try_echo=$ac_try;;
10878 esac
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880   (eval "$ac_try") 2>&5
10881   ac_status=$?
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); }; } &&
10884          { ac_try='test -s conftest.$ac_objext'
10885   { (case "(($ac_try" in
10886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887   *) ac_try_echo=$ac_try;;
10888 esac
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890   (eval "$ac_try") 2>&5
10891   ac_status=$?
10892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893   (exit $ac_status); }; }; then
10894   ac_header_compiler=yes
10895 else
10896   echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10898
10899         ac_header_compiler=no
10900 fi
10901
10902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10904 echo "${ECHO_T}$ac_header_compiler" >&6; }
10905
10906 # Is the header present?
10907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10909 cat >conftest.$ac_ext <<_ACEOF
10910 /* confdefs.h.  */
10911 _ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h.  */
10915 #include <$ac_header>
10916 _ACEOF
10917 if { (ac_try="$ac_cpp conftest.$ac_ext"
10918 case "(($ac_try" in
10919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920   *) ac_try_echo=$ac_try;;
10921 esac
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10924   ac_status=$?
10925   grep -v '^ *+' conftest.er1 >conftest.err
10926   rm -f conftest.er1
10927   cat conftest.err >&5
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); } >/dev/null; then
10930   if test -s conftest.err; then
10931     ac_cpp_err=$ac_c_preproc_warn_flag
10932     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10933   else
10934     ac_cpp_err=
10935   fi
10936 else
10937   ac_cpp_err=yes
10938 fi
10939 if test -z "$ac_cpp_err"; then
10940   ac_header_preproc=yes
10941 else
10942   echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10944
10945   ac_header_preproc=no
10946 fi
10947
10948 rm -f conftest.err conftest.$ac_ext
10949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10950 echo "${ECHO_T}$ac_header_preproc" >&6; }
10951
10952 # So?  What about this header?
10953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10954   yes:no: )
10955     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10959     ac_header_preproc=yes
10960     ;;
10961   no:yes:* )
10962     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10964     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10965 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10966     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10968     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10969 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10972     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10974     ( cat <<\_ASBOX
10975 ## ----------------------------------- ##
10976 ## Report this to llvmbugs@cs.uiuc.edu ##
10977 ## ----------------------------------- ##
10978 _ASBOX
10979      ) | sed "s/^/$as_me: WARNING:     /" >&2
10980     ;;
10981 esac
10982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10985   echo $ECHO_N "(cached) $ECHO_C" >&6
10986 else
10987   eval "$as_ac_Header=\$ac_header_preproc"
10988 fi
10989 ac_res=`eval echo '${'$as_ac_Header'}'`
10990                { echo "$as_me:$LINENO: result: $ac_res" >&5
10991 echo "${ECHO_T}$ac_res" >&6; }
10992
10993 fi
10994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10995   cat >>confdefs.h <<_ACEOF
10996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10997 _ACEOF
10998
10999 fi
11000
11001 done
11002
11003
11004 { echo "$as_me:$LINENO: checking for error_t" >&5
11005 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11006 if test "${ac_cv_type_error_t+set}" = set; then
11007   echo $ECHO_N "(cached) $ECHO_C" >&6
11008 else
11009   cat >conftest.$ac_ext <<_ACEOF
11010 /* confdefs.h.  */
11011 _ACEOF
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h.  */
11015 #if HAVE_ARGZ_H
11016 #  include <argz.h>
11017 #endif
11018
11019 typedef error_t ac__type_new_;
11020 int
11021 main ()
11022 {
11023 if ((ac__type_new_ *) 0)
11024   return 0;
11025 if (sizeof (ac__type_new_))
11026   return 0;
11027   ;
11028   return 0;
11029 }
11030 _ACEOF
11031 rm -f conftest.$ac_objext
11032 if { (ac_try="$ac_compile"
11033 case "(($ac_try" in
11034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035   *) ac_try_echo=$ac_try;;
11036 esac
11037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038   (eval "$ac_compile") 2>conftest.er1
11039   ac_status=$?
11040   grep -v '^ *+' conftest.er1 >conftest.err
11041   rm -f conftest.er1
11042   cat conftest.err >&5
11043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044   (exit $ac_status); } &&
11045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11046   { (case "(($ac_try" in
11047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048   *) ac_try_echo=$ac_try;;
11049 esac
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051   (eval "$ac_try") 2>&5
11052   ac_status=$?
11053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054   (exit $ac_status); }; } &&
11055          { ac_try='test -s conftest.$ac_objext'
11056   { (case "(($ac_try" in
11057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11058   *) ac_try_echo=$ac_try;;
11059 esac
11060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11061   (eval "$ac_try") 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); }; }; then
11065   ac_cv_type_error_t=yes
11066 else
11067   echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11069
11070         ac_cv_type_error_t=no
11071 fi
11072
11073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11074 fi
11075 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11076 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11077 if test $ac_cv_type_error_t = yes; then
11078
11079 cat >>confdefs.h <<_ACEOF
11080 #define HAVE_ERROR_T 1
11081 _ACEOF
11082
11083
11084 else
11085
11086 cat >>confdefs.h <<\_ACEOF
11087 #define error_t int
11088 _ACEOF
11089
11090 fi
11091
11092
11093
11094
11095
11096
11097
11098 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11099 do
11100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11101 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11104   echo $ECHO_N "(cached) $ECHO_C" >&6
11105 else
11106   cat >conftest.$ac_ext <<_ACEOF
11107 /* confdefs.h.  */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h.  */
11112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11114 #define $ac_func innocuous_$ac_func
11115
11116 /* System header to define __stub macros and hopefully few prototypes,
11117     which can conflict with char $ac_func (); below.
11118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11119     <limits.h> exists even on freestanding compilers.  */
11120
11121 #ifdef __STDC__
11122 # include <limits.h>
11123 #else
11124 # include <assert.h>
11125 #endif
11126
11127 #undef $ac_func
11128
11129 /* Override any GCC internal prototype to avoid an error.
11130    Use char because int might match the return type of a GCC
11131    builtin and then its argument prototype would still apply.  */
11132 #ifdef __cplusplus
11133 extern "C"
11134 #endif
11135 char $ac_func ();
11136 /* The GNU C library defines this for functions which it implements
11137     to always fail with ENOSYS.  Some functions are actually named
11138     something starting with __ and the normal name is an alias.  */
11139 #if defined __stub_$ac_func || defined __stub___$ac_func
11140 choke me
11141 #endif
11142
11143 int
11144 main ()
11145 {
11146 return $ac_func ();
11147   ;
11148   return 0;
11149 }
11150 _ACEOF
11151 rm -f conftest.$ac_objext conftest$ac_exeext
11152 if { (ac_try="$ac_link"
11153 case "(($ac_try" in
11154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155   *) ac_try_echo=$ac_try;;
11156 esac
11157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158   (eval "$ac_link") 2>conftest.er1
11159   ac_status=$?
11160   grep -v '^ *+' conftest.er1 >conftest.err
11161   rm -f conftest.er1
11162   cat conftest.err >&5
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); } &&
11165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11166   { (case "(($ac_try" in
11167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168   *) ac_try_echo=$ac_try;;
11169 esac
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171   (eval "$ac_try") 2>&5
11172   ac_status=$?
11173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174   (exit $ac_status); }; } &&
11175          { ac_try='test -s conftest$ac_exeext'
11176   { (case "(($ac_try" in
11177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178   *) ac_try_echo=$ac_try;;
11179 esac
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181   (eval "$ac_try") 2>&5
11182   ac_status=$?
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); }; }; then
11185   eval "$as_ac_var=yes"
11186 else
11187   echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11189
11190         eval "$as_ac_var=no"
11191 fi
11192
11193 rm -f core conftest.err conftest.$ac_objext \
11194       conftest$ac_exeext conftest.$ac_ext
11195 fi
11196 ac_res=`eval echo '${'$as_ac_var'}'`
11197                { echo "$as_me:$LINENO: result: $ac_res" >&5
11198 echo "${ECHO_T}$ac_res" >&6; }
11199 if test `eval echo '${'$as_ac_var'}'` = yes; then
11200   cat >>confdefs.h <<_ACEOF
11201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11202 _ACEOF
11203
11204 fi
11205 done
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
11233
11234 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11235                   stdio.h unistd.h
11236 do
11237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11239   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11242   echo $ECHO_N "(cached) $ECHO_C" >&6
11243 fi
11244 ac_res=`eval echo '${'$as_ac_Header'}'`
11245                { echo "$as_me:$LINENO: result: $ac_res" >&5
11246 echo "${ECHO_T}$ac_res" >&6; }
11247 else
11248   # Is the header compilable?
11249 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11251 cat >conftest.$ac_ext <<_ACEOF
11252 /* confdefs.h.  */
11253 _ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h.  */
11257 $ac_includes_default
11258 #include <$ac_header>
11259 _ACEOF
11260 rm -f conftest.$ac_objext
11261 if { (ac_try="$ac_compile"
11262 case "(($ac_try" in
11263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264   *) ac_try_echo=$ac_try;;
11265 esac
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267   (eval "$ac_compile") 2>conftest.er1
11268   ac_status=$?
11269   grep -v '^ *+' conftest.er1 >conftest.err
11270   rm -f conftest.er1
11271   cat conftest.err >&5
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); } &&
11274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11275   { (case "(($ac_try" in
11276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277   *) ac_try_echo=$ac_try;;
11278 esac
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280   (eval "$ac_try") 2>&5
11281   ac_status=$?
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); }; } &&
11284          { ac_try='test -s conftest.$ac_objext'
11285   { (case "(($ac_try" in
11286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287   *) ac_try_echo=$ac_try;;
11288 esac
11289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290   (eval "$ac_try") 2>&5
11291   ac_status=$?
11292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); }; }; then
11294   ac_header_compiler=yes
11295 else
11296   echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11298
11299         ac_header_compiler=no
11300 fi
11301
11302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11304 echo "${ECHO_T}$ac_header_compiler" >&6; }
11305
11306 # Is the header present?
11307 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h.  */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h.  */
11315 #include <$ac_header>
11316 _ACEOF
11317 if { (ac_try="$ac_cpp conftest.$ac_ext"
11318 case "(($ac_try" in
11319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320   *) ac_try_echo=$ac_try;;
11321 esac
11322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11324   ac_status=$?
11325   grep -v '^ *+' conftest.er1 >conftest.err
11326   rm -f conftest.er1
11327   cat conftest.err >&5
11328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329   (exit $ac_status); } >/dev/null; then
11330   if test -s conftest.err; then
11331     ac_cpp_err=$ac_c_preproc_warn_flag
11332     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11333   else
11334     ac_cpp_err=
11335   fi
11336 else
11337   ac_cpp_err=yes
11338 fi
11339 if test -z "$ac_cpp_err"; then
11340   ac_header_preproc=yes
11341 else
11342   echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11344
11345   ac_header_preproc=no
11346 fi
11347
11348 rm -f conftest.err conftest.$ac_ext
11349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11350 echo "${ECHO_T}$ac_header_preproc" >&6; }
11351
11352 # So?  What about this header?
11353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11354   yes:no: )
11355     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11359     ac_header_preproc=yes
11360     ;;
11361   no:yes:* )
11362     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11364     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11365 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11366     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11368     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11369 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11372     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11374     ( cat <<\_ASBOX
11375 ## ----------------------------------- ##
11376 ## Report this to llvmbugs@cs.uiuc.edu ##
11377 ## ----------------------------------- ##
11378 _ASBOX
11379      ) | sed "s/^/$as_me: WARNING:     /" >&2
11380     ;;
11381 esac
11382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11385   echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387   eval "$as_ac_Header=\$ac_header_preproc"
11388 fi
11389 ac_res=`eval echo '${'$as_ac_Header'}'`
11390                { echo "$as_me:$LINENO: result: $ac_res" >&5
11391 echo "${ECHO_T}$ac_res" >&6; }
11392
11393 fi
11394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11395   cat >>confdefs.h <<_ACEOF
11396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11397 _ACEOF
11398
11399 fi
11400
11401 done
11402
11403
11404
11405
11406
11407 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11408 do
11409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11411   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11414   echo $ECHO_N "(cached) $ECHO_C" >&6
11415 fi
11416 ac_res=`eval echo '${'$as_ac_Header'}'`
11417                { echo "$as_me:$LINENO: result: $ac_res" >&5
11418 echo "${ECHO_T}$ac_res" >&6; }
11419 else
11420   # Is the header compilable?
11421 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11423 cat >conftest.$ac_ext <<_ACEOF
11424 /* confdefs.h.  */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h.  */
11429 $ac_includes_default
11430 #include <$ac_header>
11431 _ACEOF
11432 rm -f conftest.$ac_objext
11433 if { (ac_try="$ac_compile"
11434 case "(($ac_try" in
11435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436   *) ac_try_echo=$ac_try;;
11437 esac
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439   (eval "$ac_compile") 2>conftest.er1
11440   ac_status=$?
11441   grep -v '^ *+' conftest.er1 >conftest.err
11442   rm -f conftest.er1
11443   cat conftest.err >&5
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); } &&
11446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11447   { (case "(($ac_try" in
11448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449   *) ac_try_echo=$ac_try;;
11450 esac
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452   (eval "$ac_try") 2>&5
11453   ac_status=$?
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); }; } &&
11456          { ac_try='test -s conftest.$ac_objext'
11457   { (case "(($ac_try" in
11458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459   *) ac_try_echo=$ac_try;;
11460 esac
11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462   (eval "$ac_try") 2>&5
11463   ac_status=$?
11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465   (exit $ac_status); }; }; then
11466   ac_header_compiler=yes
11467 else
11468   echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11470
11471         ac_header_compiler=no
11472 fi
11473
11474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11476 echo "${ECHO_T}$ac_header_compiler" >&6; }
11477
11478 # Is the header present?
11479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11481 cat >conftest.$ac_ext <<_ACEOF
11482 /* confdefs.h.  */
11483 _ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h.  */
11487 #include <$ac_header>
11488 _ACEOF
11489 if { (ac_try="$ac_cpp conftest.$ac_ext"
11490 case "(($ac_try" in
11491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492   *) ac_try_echo=$ac_try;;
11493 esac
11494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11496   ac_status=$?
11497   grep -v '^ *+' conftest.er1 >conftest.err
11498   rm -f conftest.er1
11499   cat conftest.err >&5
11500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501   (exit $ac_status); } >/dev/null; then
11502   if test -s conftest.err; then
11503     ac_cpp_err=$ac_c_preproc_warn_flag
11504     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11505   else
11506     ac_cpp_err=
11507   fi
11508 else
11509   ac_cpp_err=yes
11510 fi
11511 if test -z "$ac_cpp_err"; then
11512   ac_header_preproc=yes
11513 else
11514   echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11516
11517   ac_header_preproc=no
11518 fi
11519
11520 rm -f conftest.err conftest.$ac_ext
11521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11522 echo "${ECHO_T}$ac_header_preproc" >&6; }
11523
11524 # So?  What about this header?
11525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11526   yes:no: )
11527     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11531     ac_header_preproc=yes
11532     ;;
11533   no:yes:* )
11534     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11536     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11537 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11538     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11540     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11541 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11544     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11546     ( cat <<\_ASBOX
11547 ## ----------------------------------- ##
11548 ## Report this to llvmbugs@cs.uiuc.edu ##
11549 ## ----------------------------------- ##
11550 _ASBOX
11551      ) | sed "s/^/$as_me: WARNING:     /" >&2
11552     ;;
11553 esac
11554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11557   echo $ECHO_N "(cached) $ECHO_C" >&6
11558 else
11559   eval "$as_ac_Header=\$ac_header_preproc"
11560 fi
11561 ac_res=`eval echo '${'$as_ac_Header'}'`
11562                { echo "$as_me:$LINENO: result: $ac_res" >&5
11563 echo "${ECHO_T}$ac_res" >&6; }
11564
11565 fi
11566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11567   cat >>confdefs.h <<_ACEOF
11568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11569 _ACEOF
11570
11571 fi
11572
11573 done
11574
11575
11576
11577 for ac_header in string.h strings.h
11578 do
11579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11581   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11584   echo $ECHO_N "(cached) $ECHO_C" >&6
11585 fi
11586 ac_res=`eval echo '${'$as_ac_Header'}'`
11587                { echo "$as_me:$LINENO: result: $ac_res" >&5
11588 echo "${ECHO_T}$ac_res" >&6; }
11589 else
11590   # Is the header compilable?
11591 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11593 cat >conftest.$ac_ext <<_ACEOF
11594 /* confdefs.h.  */
11595 _ACEOF
11596 cat confdefs.h >>conftest.$ac_ext
11597 cat >>conftest.$ac_ext <<_ACEOF
11598 /* end confdefs.h.  */
11599 $ac_includes_default
11600 #include <$ac_header>
11601 _ACEOF
11602 rm -f conftest.$ac_objext
11603 if { (ac_try="$ac_compile"
11604 case "(($ac_try" in
11605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11606   *) ac_try_echo=$ac_try;;
11607 esac
11608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11609   (eval "$ac_compile") 2>conftest.er1
11610   ac_status=$?
11611   grep -v '^ *+' conftest.er1 >conftest.err
11612   rm -f conftest.er1
11613   cat conftest.err >&5
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); } &&
11616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11617   { (case "(($ac_try" in
11618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619   *) ac_try_echo=$ac_try;;
11620 esac
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622   (eval "$ac_try") 2>&5
11623   ac_status=$?
11624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   (exit $ac_status); }; } &&
11626          { ac_try='test -s conftest.$ac_objext'
11627   { (case "(($ac_try" in
11628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629   *) ac_try_echo=$ac_try;;
11630 esac
11631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11632   (eval "$ac_try") 2>&5
11633   ac_status=$?
11634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635   (exit $ac_status); }; }; then
11636   ac_header_compiler=yes
11637 else
11638   echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11640
11641         ac_header_compiler=no
11642 fi
11643
11644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11646 echo "${ECHO_T}$ac_header_compiler" >&6; }
11647
11648 # Is the header present?
11649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11651 cat >conftest.$ac_ext <<_ACEOF
11652 /* confdefs.h.  */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h.  */
11657 #include <$ac_header>
11658 _ACEOF
11659 if { (ac_try="$ac_cpp conftest.$ac_ext"
11660 case "(($ac_try" in
11661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662   *) ac_try_echo=$ac_try;;
11663 esac
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11666   ac_status=$?
11667   grep -v '^ *+' conftest.er1 >conftest.err
11668   rm -f conftest.er1
11669   cat conftest.err >&5
11670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671   (exit $ac_status); } >/dev/null; then
11672   if test -s conftest.err; then
11673     ac_cpp_err=$ac_c_preproc_warn_flag
11674     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11675   else
11676     ac_cpp_err=
11677   fi
11678 else
11679   ac_cpp_err=yes
11680 fi
11681 if test -z "$ac_cpp_err"; then
11682   ac_header_preproc=yes
11683 else
11684   echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11686
11687   ac_header_preproc=no
11688 fi
11689
11690 rm -f conftest.err conftest.$ac_ext
11691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11692 echo "${ECHO_T}$ac_header_preproc" >&6; }
11693
11694 # So?  What about this header?
11695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11696   yes:no: )
11697     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11701     ac_header_preproc=yes
11702     ;;
11703   no:yes:* )
11704     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11706     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11707 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11708     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11710     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11711 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11714     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11716     ( cat <<\_ASBOX
11717 ## ----------------------------------- ##
11718 ## Report this to llvmbugs@cs.uiuc.edu ##
11719 ## ----------------------------------- ##
11720 _ASBOX
11721      ) | sed "s/^/$as_me: WARNING:     /" >&2
11722     ;;
11723 esac
11724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11727   echo $ECHO_N "(cached) $ECHO_C" >&6
11728 else
11729   eval "$as_ac_Header=\$ac_header_preproc"
11730 fi
11731 ac_res=`eval echo '${'$as_ac_Header'}'`
11732                { echo "$as_me:$LINENO: result: $ac_res" >&5
11733 echo "${ECHO_T}$ac_res" >&6; }
11734
11735 fi
11736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11737   cat >>confdefs.h <<_ACEOF
11738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11739 _ACEOF
11740  break
11741 fi
11742
11743 done
11744
11745
11746
11747
11748 for ac_func in strchr index
11749 do
11750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11754   echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756   cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h.  */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h.  */
11762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11764 #define $ac_func innocuous_$ac_func
11765
11766 /* System header to define __stub macros and hopefully few prototypes,
11767     which can conflict with char $ac_func (); below.
11768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11769     <limits.h> exists even on freestanding compilers.  */
11770
11771 #ifdef __STDC__
11772 # include <limits.h>
11773 #else
11774 # include <assert.h>
11775 #endif
11776
11777 #undef $ac_func
11778
11779 /* Override any GCC internal prototype to avoid an error.
11780    Use char because int might match the return type of a GCC
11781    builtin and then its argument prototype would still apply.  */
11782 #ifdef __cplusplus
11783 extern "C"
11784 #endif
11785 char $ac_func ();
11786 /* The GNU C library defines this for functions which it implements
11787     to always fail with ENOSYS.  Some functions are actually named
11788     something starting with __ and the normal name is an alias.  */
11789 #if defined __stub_$ac_func || defined __stub___$ac_func
11790 choke me
11791 #endif
11792
11793 int
11794 main ()
11795 {
11796 return $ac_func ();
11797   ;
11798   return 0;
11799 }
11800 _ACEOF
11801 rm -f conftest.$ac_objext conftest$ac_exeext
11802 if { (ac_try="$ac_link"
11803 case "(($ac_try" in
11804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805   *) ac_try_echo=$ac_try;;
11806 esac
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808   (eval "$ac_link") 2>conftest.er1
11809   ac_status=$?
11810   grep -v '^ *+' conftest.er1 >conftest.err
11811   rm -f conftest.er1
11812   cat conftest.err >&5
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); } &&
11815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11816   { (case "(($ac_try" in
11817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818   *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821   (eval "$ac_try") 2>&5
11822   ac_status=$?
11823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824   (exit $ac_status); }; } &&
11825          { ac_try='test -s conftest$ac_exeext'
11826   { (case "(($ac_try" in
11827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828   *) ac_try_echo=$ac_try;;
11829 esac
11830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831   (eval "$ac_try") 2>&5
11832   ac_status=$?
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); }; }; then
11835   eval "$as_ac_var=yes"
11836 else
11837   echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11839
11840         eval "$as_ac_var=no"
11841 fi
11842
11843 rm -f core conftest.err conftest.$ac_objext \
11844       conftest$ac_exeext conftest.$ac_ext
11845 fi
11846 ac_res=`eval echo '${'$as_ac_var'}'`
11847                { echo "$as_me:$LINENO: result: $ac_res" >&5
11848 echo "${ECHO_T}$ac_res" >&6; }
11849 if test `eval echo '${'$as_ac_var'}'` = yes; then
11850   cat >>confdefs.h <<_ACEOF
11851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11852 _ACEOF
11853  break
11854 fi
11855 done
11856
11857
11858
11859 for ac_func in strrchr rindex
11860 do
11861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11865   echo $ECHO_N "(cached) $ECHO_C" >&6
11866 else
11867   cat >conftest.$ac_ext <<_ACEOF
11868 /* confdefs.h.  */
11869 _ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h.  */
11873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11875 #define $ac_func innocuous_$ac_func
11876
11877 /* System header to define __stub macros and hopefully few prototypes,
11878     which can conflict with char $ac_func (); below.
11879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11880     <limits.h> exists even on freestanding compilers.  */
11881
11882 #ifdef __STDC__
11883 # include <limits.h>
11884 #else
11885 # include <assert.h>
11886 #endif
11887
11888 #undef $ac_func
11889
11890 /* Override any GCC internal prototype to avoid an error.
11891    Use char because int might match the return type of a GCC
11892    builtin and then its argument prototype would still apply.  */
11893 #ifdef __cplusplus
11894 extern "C"
11895 #endif
11896 char $ac_func ();
11897 /* The GNU C library defines this for functions which it implements
11898     to always fail with ENOSYS.  Some functions are actually named
11899     something starting with __ and the normal name is an alias.  */
11900 #if defined __stub_$ac_func || defined __stub___$ac_func
11901 choke me
11902 #endif
11903
11904 int
11905 main ()
11906 {
11907 return $ac_func ();
11908   ;
11909   return 0;
11910 }
11911 _ACEOF
11912 rm -f conftest.$ac_objext conftest$ac_exeext
11913 if { (ac_try="$ac_link"
11914 case "(($ac_try" in
11915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916   *) ac_try_echo=$ac_try;;
11917 esac
11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919   (eval "$ac_link") 2>conftest.er1
11920   ac_status=$?
11921   grep -v '^ *+' conftest.er1 >conftest.err
11922   rm -f conftest.er1
11923   cat conftest.err >&5
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); } &&
11926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11927   { (case "(($ac_try" in
11928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929   *) ac_try_echo=$ac_try;;
11930 esac
11931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932   (eval "$ac_try") 2>&5
11933   ac_status=$?
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); }; } &&
11936          { ac_try='test -s conftest$ac_exeext'
11937   { (case "(($ac_try" in
11938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939   *) ac_try_echo=$ac_try;;
11940 esac
11941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942   (eval "$ac_try") 2>&5
11943   ac_status=$?
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); }; }; then
11946   eval "$as_ac_var=yes"
11947 else
11948   echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.$ac_ext >&5
11950
11951         eval "$as_ac_var=no"
11952 fi
11953
11954 rm -f core conftest.err conftest.$ac_objext \
11955       conftest$ac_exeext conftest.$ac_ext
11956 fi
11957 ac_res=`eval echo '${'$as_ac_var'}'`
11958                { echo "$as_me:$LINENO: result: $ac_res" >&5
11959 echo "${ECHO_T}$ac_res" >&6; }
11960 if test `eval echo '${'$as_ac_var'}'` = yes; then
11961   cat >>confdefs.h <<_ACEOF
11962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11963 _ACEOF
11964  break
11965 fi
11966 done
11967
11968
11969
11970 for ac_func in memcpy bcopy
11971 do
11972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11973 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11975 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11976   echo $ECHO_N "(cached) $ECHO_C" >&6
11977 else
11978   cat >conftest.$ac_ext <<_ACEOF
11979 /* confdefs.h.  */
11980 _ACEOF
11981 cat confdefs.h >>conftest.$ac_ext
11982 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h.  */
11984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11985    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11986 #define $ac_func innocuous_$ac_func
11987
11988 /* System header to define __stub macros and hopefully few prototypes,
11989     which can conflict with char $ac_func (); below.
11990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11991     <limits.h> exists even on freestanding compilers.  */
11992
11993 #ifdef __STDC__
11994 # include <limits.h>
11995 #else
11996 # include <assert.h>
11997 #endif
11998
11999 #undef $ac_func
12000
12001 /* Override any GCC internal prototype to avoid an error.
12002    Use char because int might match the return type of a GCC
12003    builtin and then its argument prototype would still apply.  */
12004 #ifdef __cplusplus
12005 extern "C"
12006 #endif
12007 char $ac_func ();
12008 /* The GNU C library defines this for functions which it implements
12009     to always fail with ENOSYS.  Some functions are actually named
12010     something starting with __ and the normal name is an alias.  */
12011 #if defined __stub_$ac_func || defined __stub___$ac_func
12012 choke me
12013 #endif
12014
12015 int
12016 main ()
12017 {
12018 return $ac_func ();
12019   ;
12020   return 0;
12021 }
12022 _ACEOF
12023 rm -f conftest.$ac_objext conftest$ac_exeext
12024 if { (ac_try="$ac_link"
12025 case "(($ac_try" in
12026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027   *) ac_try_echo=$ac_try;;
12028 esac
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030   (eval "$ac_link") 2>conftest.er1
12031   ac_status=$?
12032   grep -v '^ *+' conftest.er1 >conftest.err
12033   rm -f conftest.er1
12034   cat conftest.err >&5
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); } &&
12037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12038   { (case "(($ac_try" in
12039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040   *) ac_try_echo=$ac_try;;
12041 esac
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043   (eval "$ac_try") 2>&5
12044   ac_status=$?
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); }; } &&
12047          { ac_try='test -s conftest$ac_exeext'
12048   { (case "(($ac_try" in
12049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050   *) ac_try_echo=$ac_try;;
12051 esac
12052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053   (eval "$ac_try") 2>&5
12054   ac_status=$?
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); }; }; then
12057   eval "$as_ac_var=yes"
12058 else
12059   echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12061
12062         eval "$as_ac_var=no"
12063 fi
12064
12065 rm -f core conftest.err conftest.$ac_objext \
12066       conftest$ac_exeext conftest.$ac_ext
12067 fi
12068 ac_res=`eval echo '${'$as_ac_var'}'`
12069                { echo "$as_me:$LINENO: result: $ac_res" >&5
12070 echo "${ECHO_T}$ac_res" >&6; }
12071 if test `eval echo '${'$as_ac_var'}'` = yes; then
12072   cat >>confdefs.h <<_ACEOF
12073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12074 _ACEOF
12075  break
12076 fi
12077 done
12078
12079
12080
12081 for ac_func in memmove strcmp
12082 do
12083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12084 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12087   echo $ECHO_N "(cached) $ECHO_C" >&6
12088 else
12089   cat >conftest.$ac_ext <<_ACEOF
12090 /* confdefs.h.  */
12091 _ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h.  */
12095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12097 #define $ac_func innocuous_$ac_func
12098
12099 /* System header to define __stub macros and hopefully few prototypes,
12100     which can conflict with char $ac_func (); below.
12101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12102     <limits.h> exists even on freestanding compilers.  */
12103
12104 #ifdef __STDC__
12105 # include <limits.h>
12106 #else
12107 # include <assert.h>
12108 #endif
12109
12110 #undef $ac_func
12111
12112 /* Override any GCC internal prototype to avoid an error.
12113    Use char because int might match the return type of a GCC
12114    builtin and then its argument prototype would still apply.  */
12115 #ifdef __cplusplus
12116 extern "C"
12117 #endif
12118 char $ac_func ();
12119 /* The GNU C library defines this for functions which it implements
12120     to always fail with ENOSYS.  Some functions are actually named
12121     something starting with __ and the normal name is an alias.  */
12122 #if defined __stub_$ac_func || defined __stub___$ac_func
12123 choke me
12124 #endif
12125
12126 int
12127 main ()
12128 {
12129 return $ac_func ();
12130   ;
12131   return 0;
12132 }
12133 _ACEOF
12134 rm -f conftest.$ac_objext conftest$ac_exeext
12135 if { (ac_try="$ac_link"
12136 case "(($ac_try" in
12137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138   *) ac_try_echo=$ac_try;;
12139 esac
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141   (eval "$ac_link") 2>conftest.er1
12142   ac_status=$?
12143   grep -v '^ *+' conftest.er1 >conftest.err
12144   rm -f conftest.er1
12145   cat conftest.err >&5
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); } &&
12148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12149   { (case "(($ac_try" in
12150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151   *) ac_try_echo=$ac_try;;
12152 esac
12153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154   (eval "$ac_try") 2>&5
12155   ac_status=$?
12156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157   (exit $ac_status); }; } &&
12158          { ac_try='test -s conftest$ac_exeext'
12159   { (case "(($ac_try" in
12160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161   *) ac_try_echo=$ac_try;;
12162 esac
12163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12164   (eval "$ac_try") 2>&5
12165   ac_status=$?
12166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167   (exit $ac_status); }; }; then
12168   eval "$as_ac_var=yes"
12169 else
12170   echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12172
12173         eval "$as_ac_var=no"
12174 fi
12175
12176 rm -f core conftest.err conftest.$ac_objext \
12177       conftest$ac_exeext conftest.$ac_ext
12178 fi
12179 ac_res=`eval echo '${'$as_ac_var'}'`
12180                { echo "$as_me:$LINENO: result: $ac_res" >&5
12181 echo "${ECHO_T}$ac_res" >&6; }
12182 if test `eval echo '${'$as_ac_var'}'` = yes; then
12183   cat >>confdefs.h <<_ACEOF
12184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12185 _ACEOF
12186
12187 fi
12188 done
12189
12190
12191
12192
12193 for ac_func in closedir opendir readdir
12194 do
12195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12196 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12198 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12199   echo $ECHO_N "(cached) $ECHO_C" >&6
12200 else
12201   cat >conftest.$ac_ext <<_ACEOF
12202 /* confdefs.h.  */
12203 _ACEOF
12204 cat confdefs.h >>conftest.$ac_ext
12205 cat >>conftest.$ac_ext <<_ACEOF
12206 /* end confdefs.h.  */
12207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12208    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12209 #define $ac_func innocuous_$ac_func
12210
12211 /* System header to define __stub macros and hopefully few prototypes,
12212     which can conflict with char $ac_func (); below.
12213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12214     <limits.h> exists even on freestanding compilers.  */
12215
12216 #ifdef __STDC__
12217 # include <limits.h>
12218 #else
12219 # include <assert.h>
12220 #endif
12221
12222 #undef $ac_func
12223
12224 /* Override any GCC internal prototype to avoid an error.
12225    Use char because int might match the return type of a GCC
12226    builtin and then its argument prototype would still apply.  */
12227 #ifdef __cplusplus
12228 extern "C"
12229 #endif
12230 char $ac_func ();
12231 /* The GNU C library defines this for functions which it implements
12232     to always fail with ENOSYS.  Some functions are actually named
12233     something starting with __ and the normal name is an alias.  */
12234 #if defined __stub_$ac_func || defined __stub___$ac_func
12235 choke me
12236 #endif
12237
12238 int
12239 main ()
12240 {
12241 return $ac_func ();
12242   ;
12243   return 0;
12244 }
12245 _ACEOF
12246 rm -f conftest.$ac_objext conftest$ac_exeext
12247 if { (ac_try="$ac_link"
12248 case "(($ac_try" in
12249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250   *) ac_try_echo=$ac_try;;
12251 esac
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253   (eval "$ac_link") 2>conftest.er1
12254   ac_status=$?
12255   grep -v '^ *+' conftest.er1 >conftest.err
12256   rm -f conftest.er1
12257   cat conftest.err >&5
12258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259   (exit $ac_status); } &&
12260          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12261   { (case "(($ac_try" in
12262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263   *) ac_try_echo=$ac_try;;
12264 esac
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266   (eval "$ac_try") 2>&5
12267   ac_status=$?
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); }; } &&
12270          { ac_try='test -s conftest$ac_exeext'
12271   { (case "(($ac_try" in
12272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273   *) ac_try_echo=$ac_try;;
12274 esac
12275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12276   (eval "$ac_try") 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); }; }; then
12280   eval "$as_ac_var=yes"
12281 else
12282   echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12284
12285         eval "$as_ac_var=no"
12286 fi
12287
12288 rm -f core conftest.err conftest.$ac_objext \
12289       conftest$ac_exeext conftest.$ac_ext
12290 fi
12291 ac_res=`eval echo '${'$as_ac_var'}'`
12292                { echo "$as_me:$LINENO: result: $ac_res" >&5
12293 echo "${ECHO_T}$ac_res" >&6; }
12294 if test `eval echo '${'$as_ac_var'}'` = yes; then
12295   cat >>confdefs.h <<_ACEOF
12296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12297 _ACEOF
12298
12299 fi
12300 done
12301
12302
12303 # Check whether --enable-shared was given.
12304 if test "${enable_shared+set}" = set; then
12305   enableval=$enable_shared; p=${PACKAGE-default}
12306     case $enableval in
12307     yes) enable_shared=yes ;;
12308     no) enable_shared=no ;;
12309     *)
12310       enable_shared=no
12311       # Look at the argument we got.  We use all the common list separators.
12312       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12313       for pkg in $enableval; do
12314         IFS="$lt_save_ifs"
12315         if test "X$pkg" = "X$p"; then
12316           enable_shared=yes
12317         fi
12318       done
12319       IFS="$lt_save_ifs"
12320       ;;
12321     esac
12322 else
12323   enable_shared=yes
12324 fi
12325
12326
12327 # Check whether --enable-static was given.
12328 if test "${enable_static+set}" = set; then
12329   enableval=$enable_static; p=${PACKAGE-default}
12330     case $enableval in
12331     yes) enable_static=yes ;;
12332     no) enable_static=no ;;
12333     *)
12334      enable_static=no
12335       # Look at the argument we got.  We use all the common list separators.
12336       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12337       for pkg in $enableval; do
12338         IFS="$lt_save_ifs"
12339         if test "X$pkg" = "X$p"; then
12340           enable_static=yes
12341         fi
12342       done
12343       IFS="$lt_save_ifs"
12344       ;;
12345     esac
12346 else
12347   enable_static=yes
12348 fi
12349
12350
12351 # Check whether --enable-fast-install was given.
12352 if test "${enable_fast_install+set}" = set; then
12353   enableval=$enable_fast_install; p=${PACKAGE-default}
12354     case $enableval in
12355     yes) enable_fast_install=yes ;;
12356     no) enable_fast_install=no ;;
12357     *)
12358       enable_fast_install=no
12359       # Look at the argument we got.  We use all the common list separators.
12360       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12361       for pkg in $enableval; do
12362         IFS="$lt_save_ifs"
12363         if test "X$pkg" = "X$p"; then
12364           enable_fast_install=yes
12365         fi
12366       done
12367       IFS="$lt_save_ifs"
12368       ;;
12369     esac
12370 else
12371   enable_fast_install=yes
12372 fi
12373
12374
12375 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12376 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12377 if test "${lt_cv_path_SED+set}" = set; then
12378   echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380   # Loop through the user's path and test for sed and gsed.
12381 # Then use that list of sed's as ones to test for truncation.
12382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383 for as_dir in $PATH
12384 do
12385   IFS=$as_save_IFS
12386   test -z "$as_dir" && as_dir=.
12387   for lt_ac_prog in sed gsed; do
12388     for ac_exec_ext in '' $ac_executable_extensions; do
12389       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12390         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12391       fi
12392     done
12393   done
12394 done
12395 lt_ac_max=0
12396 lt_ac_count=0
12397 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12398 # along with /bin/sed that truncates output.
12399 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12400   test ! -f $lt_ac_sed && continue
12401   cat /dev/null > conftest.in
12402   lt_ac_count=0
12403   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12404   # Check for GNU sed and select it if it is found.
12405   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12406     lt_cv_path_SED=$lt_ac_sed
12407     break
12408   fi
12409   while true; do
12410     cat conftest.in conftest.in >conftest.tmp
12411     mv conftest.tmp conftest.in
12412     cp conftest.in conftest.nl
12413     echo >>conftest.nl
12414     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12415     cmp -s conftest.out conftest.nl || break
12416     # 10000 chars as input seems more than enough
12417     test $lt_ac_count -gt 10 && break
12418     lt_ac_count=`expr $lt_ac_count + 1`
12419     if test $lt_ac_count -gt $lt_ac_max; then
12420       lt_ac_max=$lt_ac_count
12421       lt_cv_path_SED=$lt_ac_sed
12422     fi
12423   done
12424 done
12425
12426 fi
12427
12428 SED=$lt_cv_path_SED
12429 { echo "$as_me:$LINENO: result: $SED" >&5
12430 echo "${ECHO_T}$SED" >&6; }
12431
12432
12433 # Check whether --with-gnu-ld was given.
12434 if test "${with_gnu_ld+set}" = set; then
12435   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12436 else
12437   with_gnu_ld=no
12438 fi
12439
12440 ac_prog=ld
12441 if test "$GCC" = yes; then
12442   # Check if gcc -print-prog-name=ld gives a path.
12443   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12444 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12445   case $host in
12446   *-*-mingw*)
12447     # gcc leaves a trailing carriage return which upsets mingw
12448     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12449   *)
12450     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12451   esac
12452   case $ac_prog in
12453     # Accept absolute paths.
12454     [\\/]* | ?:[\\/]*)
12455       re_direlt='/[^/][^/]*/\.\./'
12456       # Canonicalize the pathname of ld
12457       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12458       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12459         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12460       done
12461       test -z "$LD" && LD="$ac_prog"
12462       ;;
12463   "")
12464     # If it fails, then pretend we aren't using GCC.
12465     ac_prog=ld
12466     ;;
12467   *)
12468     # If it is relative, then search for the first ld in PATH.
12469     with_gnu_ld=unknown
12470     ;;
12471   esac
12472 elif test "$with_gnu_ld" = yes; then
12473   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12474 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12475 else
12476   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12477 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12478 fi
12479 if test "${lt_cv_path_LD+set}" = set; then
12480   echo $ECHO_N "(cached) $ECHO_C" >&6
12481 else
12482   if test -z "$LD"; then
12483   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12484   for ac_dir in $PATH; do
12485     IFS="$lt_save_ifs"
12486     test -z "$ac_dir" && ac_dir=.
12487     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12488       lt_cv_path_LD="$ac_dir/$ac_prog"
12489       # Check to see if the program is GNU ld.  I'd rather use --version,
12490       # but apparently some variants of GNU ld only accept -v.
12491       # Break only if it was the GNU/non-GNU ld that we prefer.
12492       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12493       *GNU* | *'with BFD'*)
12494         test "$with_gnu_ld" != no && break
12495         ;;
12496       *)
12497         test "$with_gnu_ld" != yes && break
12498         ;;
12499       esac
12500     fi
12501   done
12502   IFS="$lt_save_ifs"
12503 else
12504   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12505 fi
12506 fi
12507
12508 LD="$lt_cv_path_LD"
12509 if test -n "$LD"; then
12510   { echo "$as_me:$LINENO: result: $LD" >&5
12511 echo "${ECHO_T}$LD" >&6; }
12512 else
12513   { echo "$as_me:$LINENO: result: no" >&5
12514 echo "${ECHO_T}no" >&6; }
12515 fi
12516 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12517 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12518    { (exit 1); exit 1; }; }
12519 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12520 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12521 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12522   echo $ECHO_N "(cached) $ECHO_C" >&6
12523 else
12524   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12525 case `$LD -v 2>&1 </dev/null` in
12526 *GNU* | *'with BFD'*)
12527   lt_cv_prog_gnu_ld=yes
12528   ;;
12529 *)
12530   lt_cv_prog_gnu_ld=no
12531   ;;
12532 esac
12533 fi
12534 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12535 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12536 with_gnu_ld=$lt_cv_prog_gnu_ld
12537
12538
12539 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12540 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12541 if test "${lt_cv_ld_reload_flag+set}" = set; then
12542   echo $ECHO_N "(cached) $ECHO_C" >&6
12543 else
12544   lt_cv_ld_reload_flag='-r'
12545 fi
12546 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12547 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12548 reload_flag=$lt_cv_ld_reload_flag
12549 case $reload_flag in
12550 "" | " "*) ;;
12551 *) reload_flag=" $reload_flag" ;;
12552 esac
12553 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12554 case $host_os in
12555   darwin*)
12556     if test "$GCC" = yes; then
12557       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12558     else
12559       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12560     fi
12561     ;;
12562 esac
12563
12564 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12565 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12566 if test "${lt_cv_deplibs_check_method+set}" = set; then
12567   echo $ECHO_N "(cached) $ECHO_C" >&6
12568 else
12569   lt_cv_file_magic_cmd='$MAGIC_CMD'
12570 lt_cv_file_magic_test_file=
12571 lt_cv_deplibs_check_method='unknown'
12572 # Need to set the preceding variable on all platforms that support
12573 # interlibrary dependencies.
12574 # 'none' -- dependencies not supported.
12575 # `unknown' -- same as none, but documents that we really don't know.
12576 # 'pass_all' -- all dependencies passed with no checks.
12577 # 'test_compile' -- check by making test program.
12578 # 'file_magic [[regex]]' -- check by looking for files in library path
12579 # which responds to the $file_magic_cmd with a given extended regex.
12580 # If you have `file' or equivalent on your system and you're not sure
12581 # whether `pass_all' will *always* work, you probably want this one.
12582
12583 case $host_os in
12584 aix4* | aix5*)
12585   lt_cv_deplibs_check_method=pass_all
12586   ;;
12587
12588 beos*)
12589   lt_cv_deplibs_check_method=pass_all
12590   ;;
12591
12592 bsdi[45]*)
12593   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12594   lt_cv_file_magic_cmd='/usr/bin/file -L'
12595   lt_cv_file_magic_test_file=/shlib/libc.so
12596   ;;
12597
12598 cygwin*)
12599   # func_win32_libid is a shell function defined in ltmain.sh
12600   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12601   lt_cv_file_magic_cmd='func_win32_libid'
12602   ;;
12603
12604 mingw* | pw32*)
12605   # Base MSYS/MinGW do not provide the 'file' command needed by
12606   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12607   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12608   lt_cv_file_magic_cmd='$OBJDUMP -f'
12609   ;;
12610
12611 darwin* | rhapsody*)
12612   lt_cv_deplibs_check_method=pass_all
12613   ;;
12614
12615 freebsd* | kfreebsd*-gnu | dragonfly*)
12616   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12617     case $host_cpu in
12618     i*86 )
12619       # Not sure whether the presence of OpenBSD here was a mistake.
12620       # Let's accept both of them until this is cleared up.
12621       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12622       lt_cv_file_magic_cmd=/usr/bin/file
12623       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12624       ;;
12625     esac
12626   else
12627     lt_cv_deplibs_check_method=pass_all
12628   fi
12629   ;;
12630
12631 gnu*)
12632   lt_cv_deplibs_check_method=pass_all
12633   ;;
12634
12635 hpux10.20* | hpux11*)
12636   lt_cv_file_magic_cmd=/usr/bin/file
12637   case $host_cpu in
12638   ia64*)
12639     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12640     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12641     ;;
12642   hppa*64*)
12643     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]'
12644     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12645     ;;
12646   *)
12647     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12648     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12649     ;;
12650   esac
12651   ;;
12652
12653 interix3*)
12654   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12655   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12656   ;;
12657
12658 irix5* | irix6* | nonstopux*)
12659   case $LD in
12660   *-32|*"-32 ") libmagic=32-bit;;
12661   *-n32|*"-n32 ") libmagic=N32;;
12662   *-64|*"-64 ") libmagic=64-bit;;
12663   *) libmagic=never-match;;
12664   esac
12665   lt_cv_deplibs_check_method=pass_all
12666   ;;
12667
12668 # This must be Linux ELF.
12669 linux*)
12670   lt_cv_deplibs_check_method=pass_all
12671   ;;
12672
12673 netbsd*)
12674   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12675     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12676   else
12677     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12678   fi
12679   ;;
12680
12681 newos6*)
12682   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12683   lt_cv_file_magic_cmd=/usr/bin/file
12684   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12685   ;;
12686
12687 nto-qnx*)
12688   lt_cv_deplibs_check_method=unknown
12689   ;;
12690
12691 openbsd*)
12692   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12693     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12694   else
12695     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12696   fi
12697   ;;
12698
12699 osf3* | osf4* | osf5*)
12700   lt_cv_deplibs_check_method=pass_all
12701   ;;
12702
12703 solaris*)
12704   lt_cv_deplibs_check_method=pass_all
12705   ;;
12706
12707 sysv4 | sysv4.3*)
12708   case $host_vendor in
12709   motorola)
12710     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]'
12711     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12712     ;;
12713   ncr)
12714     lt_cv_deplibs_check_method=pass_all
12715     ;;
12716   sequent)
12717     lt_cv_file_magic_cmd='/bin/file'
12718     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12719     ;;
12720   sni)
12721     lt_cv_file_magic_cmd='/bin/file'
12722     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12723     lt_cv_file_magic_test_file=/lib/libc.so
12724     ;;
12725   siemens)
12726     lt_cv_deplibs_check_method=pass_all
12727     ;;
12728   pc)
12729     lt_cv_deplibs_check_method=pass_all
12730     ;;
12731   esac
12732   ;;
12733
12734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12735   lt_cv_deplibs_check_method=pass_all
12736   ;;
12737 esac
12738
12739 fi
12740 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12741 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12742 file_magic_cmd=$lt_cv_file_magic_cmd
12743 deplibs_check_method=$lt_cv_deplibs_check_method
12744 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12745
12746
12747
12748 # If no C compiler was specified, use CC.
12749 LTCC=${LTCC-"$CC"}
12750
12751 # If no C compiler flags were specified, use CFLAGS.
12752 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12753
12754 # Allow CC to be a program name with arguments.
12755 compiler=$CC
12756
12757 # Check whether --enable-libtool-lock was given.
12758 if test "${enable_libtool_lock+set}" = set; then
12759   enableval=$enable_libtool_lock;
12760 fi
12761
12762 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12763
12764 # Some flags need to be propagated to the compiler or linker for good
12765 # libtool support.
12766 case $host in
12767 ia64-*-hpux*)
12768   # Find out which ABI we are using.
12769   echo 'int i;' > conftest.$ac_ext
12770   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12771   (eval $ac_compile) 2>&5
12772   ac_status=$?
12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); }; then
12775     case `/usr/bin/file conftest.$ac_objext` in
12776     *ELF-32*)
12777       HPUX_IA64_MODE="32"
12778       ;;
12779     *ELF-64*)
12780       HPUX_IA64_MODE="64"
12781       ;;
12782     esac
12783   fi
12784   rm -rf conftest*
12785   ;;
12786 *-*-irix6*)
12787   # Find out which ABI we are using.
12788   echo '#line 12788 "configure"' > conftest.$ac_ext
12789   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12790   (eval $ac_compile) 2>&5
12791   ac_status=$?
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); }; then
12794    if test "$lt_cv_prog_gnu_ld" = yes; then
12795     case `/usr/bin/file conftest.$ac_objext` in
12796     *32-bit*)
12797       LD="${LD-ld} -melf32bsmip"
12798       ;;
12799     *N32*)
12800       LD="${LD-ld} -melf32bmipn32"
12801       ;;
12802     *64-bit*)
12803       LD="${LD-ld} -melf64bmip"
12804       ;;
12805     esac
12806    else
12807     case `/usr/bin/file conftest.$ac_objext` in
12808     *32-bit*)
12809       LD="${LD-ld} -32"
12810       ;;
12811     *N32*)
12812       LD="${LD-ld} -n32"
12813       ;;
12814     *64-bit*)
12815       LD="${LD-ld} -64"
12816       ;;
12817     esac
12818    fi
12819   fi
12820   rm -rf conftest*
12821   ;;
12822
12823 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12824   # Find out which ABI we are using.
12825   echo 'int i;' > conftest.$ac_ext
12826   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12827   (eval $ac_compile) 2>&5
12828   ac_status=$?
12829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); }; then
12831     case `/usr/bin/file conftest.o` in
12832     *32-bit*)
12833       case $host in
12834         x86_64-*linux*)
12835           LD="${LD-ld} -m elf_i386"
12836           ;;
12837         ppc64-*linux*|powerpc64-*linux*)
12838           LD="${LD-ld} -m elf32ppclinux"
12839           ;;
12840         s390x-*linux*)
12841           LD="${LD-ld} -m elf_s390"
12842           ;;
12843         sparc64-*linux*)
12844           LD="${LD-ld} -m elf32_sparc"
12845           ;;
12846       esac
12847       ;;
12848     *64-bit*)
12849       case $host in
12850         x86_64-*linux*)
12851           LD="${LD-ld} -m elf_x86_64"
12852           ;;
12853         ppc*-*linux*|powerpc*-*linux*)
12854           LD="${LD-ld} -m elf64ppc"
12855           ;;
12856         s390*-*linux*)
12857           LD="${LD-ld} -m elf64_s390"
12858           ;;
12859         sparc*-*linux*)
12860           LD="${LD-ld} -m elf64_sparc"
12861           ;;
12862       esac
12863       ;;
12864     esac
12865   fi
12866   rm -rf conftest*
12867   ;;
12868
12869 *-*-sco3.2v5*)
12870   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12871   SAVE_CFLAGS="$CFLAGS"
12872   CFLAGS="$CFLAGS -belf"
12873   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12874 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12875 if test "${lt_cv_cc_needs_belf+set}" = set; then
12876   echo $ECHO_N "(cached) $ECHO_C" >&6
12877 else
12878   ac_ext=c
12879 ac_cpp='$CPP $CPPFLAGS'
12880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12883
12884      cat >conftest.$ac_ext <<_ACEOF
12885 /* confdefs.h.  */
12886 _ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h.  */
12890
12891 int
12892 main ()
12893 {
12894
12895   ;
12896   return 0;
12897 }
12898 _ACEOF
12899 rm -f conftest.$ac_objext conftest$ac_exeext
12900 if { (ac_try="$ac_link"
12901 case "(($ac_try" in
12902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903   *) ac_try_echo=$ac_try;;
12904 esac
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906   (eval "$ac_link") 2>conftest.er1
12907   ac_status=$?
12908   grep -v '^ *+' conftest.er1 >conftest.err
12909   rm -f conftest.er1
12910   cat conftest.err >&5
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); } &&
12913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12914   { (case "(($ac_try" in
12915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916   *) ac_try_echo=$ac_try;;
12917 esac
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919   (eval "$ac_try") 2>&5
12920   ac_status=$?
12921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922   (exit $ac_status); }; } &&
12923          { ac_try='test -s conftest$ac_exeext'
12924   { (case "(($ac_try" in
12925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12926   *) ac_try_echo=$ac_try;;
12927 esac
12928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12929   (eval "$ac_try") 2>&5
12930   ac_status=$?
12931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932   (exit $ac_status); }; }; then
12933   lt_cv_cc_needs_belf=yes
12934 else
12935   echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12937
12938         lt_cv_cc_needs_belf=no
12939 fi
12940
12941 rm -f core conftest.err conftest.$ac_objext \
12942       conftest$ac_exeext conftest.$ac_ext
12943      ac_ext=c
12944 ac_cpp='$CPP $CPPFLAGS'
12945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12948
12949 fi
12950 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12951 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12952   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12953     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12954     CFLAGS="$SAVE_CFLAGS"
12955   fi
12956   ;;
12957 sparc*-*solaris*)
12958   # Find out which ABI we are using.
12959   echo 'int i;' > conftest.$ac_ext
12960   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12961   (eval $ac_compile) 2>&5
12962   ac_status=$?
12963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); }; then
12965     case `/usr/bin/file conftest.o` in
12966     *64-bit*)
12967       case $lt_cv_prog_gnu_ld in
12968       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12969       *)    LD="${LD-ld} -64" ;;
12970       esac
12971       ;;
12972     esac
12973   fi
12974   rm -rf conftest*
12975   ;;
12976
12977
12978 esac
12979
12980 need_locks="$enable_libtool_lock"
12981
12982
12983
12984
12985 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12986     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12987     (test "X$CXX" != "Xg++"))) ; then
12988   ac_ext=cpp
12989 ac_cpp='$CXXCPP $CPPFLAGS'
12990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12993 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12994 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12995 if test -z "$CXXCPP"; then
12996   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12997   echo $ECHO_N "(cached) $ECHO_C" >&6
12998 else
12999       # Double quotes because CXXCPP needs to be expanded
13000     for CXXCPP in "$CXX -E" "/lib/cpp"
13001     do
13002       ac_preproc_ok=false
13003 for ac_cxx_preproc_warn_flag in '' yes
13004 do
13005   # Use a header file that comes with gcc, so configuring glibc
13006   # with a fresh cross-compiler works.
13007   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13008   # <limits.h> exists even on freestanding compilers.
13009   # On the NeXT, cc -E runs the code through the compiler's parser,
13010   # not just through cpp. "Syntax error" is here to catch this case.
13011   cat >conftest.$ac_ext <<_ACEOF
13012 /* confdefs.h.  */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h.  */
13017 #ifdef __STDC__
13018 # include <limits.h>
13019 #else
13020 # include <assert.h>
13021 #endif
13022                      Syntax error
13023 _ACEOF
13024 if { (ac_try="$ac_cpp conftest.$ac_ext"
13025 case "(($ac_try" in
13026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027   *) ac_try_echo=$ac_try;;
13028 esac
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13031   ac_status=$?
13032   grep -v '^ *+' conftest.er1 >conftest.err
13033   rm -f conftest.er1
13034   cat conftest.err >&5
13035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036   (exit $ac_status); } >/dev/null; then
13037   if test -s conftest.err; then
13038     ac_cpp_err=$ac_cxx_preproc_warn_flag
13039     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13040   else
13041     ac_cpp_err=
13042   fi
13043 else
13044   ac_cpp_err=yes
13045 fi
13046 if test -z "$ac_cpp_err"; then
13047   :
13048 else
13049   echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13051
13052   # Broken: fails on valid input.
13053 continue
13054 fi
13055
13056 rm -f conftest.err conftest.$ac_ext
13057
13058   # OK, works on sane cases.  Now check whether nonexistent headers
13059   # can be detected and how.
13060   cat >conftest.$ac_ext <<_ACEOF
13061 /* confdefs.h.  */
13062 _ACEOF
13063 cat confdefs.h >>conftest.$ac_ext
13064 cat >>conftest.$ac_ext <<_ACEOF
13065 /* end confdefs.h.  */
13066 #include <ac_nonexistent.h>
13067 _ACEOF
13068 if { (ac_try="$ac_cpp conftest.$ac_ext"
13069 case "(($ac_try" in
13070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071   *) ac_try_echo=$ac_try;;
13072 esac
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13075   ac_status=$?
13076   grep -v '^ *+' conftest.er1 >conftest.err
13077   rm -f conftest.er1
13078   cat conftest.err >&5
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); } >/dev/null; then
13081   if test -s conftest.err; then
13082     ac_cpp_err=$ac_cxx_preproc_warn_flag
13083     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13084   else
13085     ac_cpp_err=
13086   fi
13087 else
13088   ac_cpp_err=yes
13089 fi
13090 if test -z "$ac_cpp_err"; then
13091   # Broken: success on invalid input.
13092 continue
13093 else
13094   echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13096
13097   # Passes both tests.
13098 ac_preproc_ok=:
13099 break
13100 fi
13101
13102 rm -f conftest.err conftest.$ac_ext
13103
13104 done
13105 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13106 rm -f conftest.err conftest.$ac_ext
13107 if $ac_preproc_ok; then
13108   break
13109 fi
13110
13111     done
13112     ac_cv_prog_CXXCPP=$CXXCPP
13113
13114 fi
13115   CXXCPP=$ac_cv_prog_CXXCPP
13116 else
13117   ac_cv_prog_CXXCPP=$CXXCPP
13118 fi
13119 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13120 echo "${ECHO_T}$CXXCPP" >&6; }
13121 ac_preproc_ok=false
13122 for ac_cxx_preproc_warn_flag in '' yes
13123 do
13124   # Use a header file that comes with gcc, so configuring glibc
13125   # with a fresh cross-compiler works.
13126   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13127   # <limits.h> exists even on freestanding compilers.
13128   # On the NeXT, cc -E runs the code through the compiler's parser,
13129   # not just through cpp. "Syntax error" is here to catch this case.
13130   cat >conftest.$ac_ext <<_ACEOF
13131 /* confdefs.h.  */
13132 _ACEOF
13133 cat confdefs.h >>conftest.$ac_ext
13134 cat >>conftest.$ac_ext <<_ACEOF
13135 /* end confdefs.h.  */
13136 #ifdef __STDC__
13137 # include <limits.h>
13138 #else
13139 # include <assert.h>
13140 #endif
13141                      Syntax error
13142 _ACEOF
13143 if { (ac_try="$ac_cpp conftest.$ac_ext"
13144 case "(($ac_try" in
13145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146   *) ac_try_echo=$ac_try;;
13147 esac
13148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13150   ac_status=$?
13151   grep -v '^ *+' conftest.er1 >conftest.err
13152   rm -f conftest.er1
13153   cat conftest.err >&5
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); } >/dev/null; then
13156   if test -s conftest.err; then
13157     ac_cpp_err=$ac_cxx_preproc_warn_flag
13158     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13159   else
13160     ac_cpp_err=
13161   fi
13162 else
13163   ac_cpp_err=yes
13164 fi
13165 if test -z "$ac_cpp_err"; then
13166   :
13167 else
13168   echo "$as_me: failed program was:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13170
13171   # Broken: fails on valid input.
13172 continue
13173 fi
13174
13175 rm -f conftest.err conftest.$ac_ext
13176
13177   # OK, works on sane cases.  Now check whether nonexistent headers
13178   # can be detected and how.
13179   cat >conftest.$ac_ext <<_ACEOF
13180 /* confdefs.h.  */
13181 _ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h.  */
13185 #include <ac_nonexistent.h>
13186 _ACEOF
13187 if { (ac_try="$ac_cpp conftest.$ac_ext"
13188 case "(($ac_try" in
13189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190   *) ac_try_echo=$ac_try;;
13191 esac
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13194   ac_status=$?
13195   grep -v '^ *+' conftest.er1 >conftest.err
13196   rm -f conftest.er1
13197   cat conftest.err >&5
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); } >/dev/null; then
13200   if test -s conftest.err; then
13201     ac_cpp_err=$ac_cxx_preproc_warn_flag
13202     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13203   else
13204     ac_cpp_err=
13205   fi
13206 else
13207   ac_cpp_err=yes
13208 fi
13209 if test -z "$ac_cpp_err"; then
13210   # Broken: success on invalid input.
13211 continue
13212 else
13213   echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13215
13216   # Passes both tests.
13217 ac_preproc_ok=:
13218 break
13219 fi
13220
13221 rm -f conftest.err conftest.$ac_ext
13222
13223 done
13224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13225 rm -f conftest.err conftest.$ac_ext
13226 if $ac_preproc_ok; then
13227   :
13228 else
13229   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13230 See \`config.log' for more details." >&5
13231 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13232 See \`config.log' for more details." >&2;}
13233    { (exit 1); exit 1; }; }
13234 fi
13235
13236 ac_ext=cpp
13237 ac_cpp='$CXXCPP $CPPFLAGS'
13238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13241
13242 fi
13243
13244
13245 ac_ext=f
13246 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13247 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13248 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13249 if test -n "$ac_tool_prefix"; then
13250   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
13251   do
13252     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13253 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13256 if test "${ac_cv_prog_F77+set}" = set; then
13257   echo $ECHO_N "(cached) $ECHO_C" >&6
13258 else
13259   if test -n "$F77"; then
13260   ac_cv_prog_F77="$F77" # Let the user override the test.
13261 else
13262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13263 for as_dir in $PATH
13264 do
13265   IFS=$as_save_IFS
13266   test -z "$as_dir" && as_dir=.
13267   for ac_exec_ext in '' $ac_executable_extensions; do
13268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13269     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13271     break 2
13272   fi
13273 done
13274 done
13275 IFS=$as_save_IFS
13276
13277 fi
13278 fi
13279 F77=$ac_cv_prog_F77
13280 if test -n "$F77"; then
13281   { echo "$as_me:$LINENO: result: $F77" >&5
13282 echo "${ECHO_T}$F77" >&6; }
13283 else
13284   { echo "$as_me:$LINENO: result: no" >&5
13285 echo "${ECHO_T}no" >&6; }
13286 fi
13287
13288
13289     test -n "$F77" && break
13290   done
13291 fi
13292 if test -z "$F77"; then
13293   ac_ct_F77=$F77
13294   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
13295 do
13296   # Extract the first word of "$ac_prog", so it can be a program name with args.
13297 set dummy $ac_prog; ac_word=$2
13298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13300 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13301   echo $ECHO_N "(cached) $ECHO_C" >&6
13302 else
13303   if test -n "$ac_ct_F77"; then
13304   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13305 else
13306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13307 for as_dir in $PATH
13308 do
13309   IFS=$as_save_IFS
13310   test -z "$as_dir" && as_dir=.
13311   for ac_exec_ext in '' $ac_executable_extensions; do
13312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13313     ac_cv_prog_ac_ct_F77="$ac_prog"
13314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13315     break 2
13316   fi
13317 done
13318 done
13319 IFS=$as_save_IFS
13320
13321 fi
13322 fi
13323 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13324 if test -n "$ac_ct_F77"; then
13325   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13326 echo "${ECHO_T}$ac_ct_F77" >&6; }
13327 else
13328   { echo "$as_me:$LINENO: result: no" >&5
13329 echo "${ECHO_T}no" >&6; }
13330 fi
13331
13332
13333   test -n "$ac_ct_F77" && break
13334 done
13335
13336   if test "x$ac_ct_F77" = x; then
13337     F77=""
13338   else
13339     case $cross_compiling:$ac_tool_warned in
13340 yes:)
13341 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13342 whose name does not start with the host triplet.  If you think this
13343 configuration is useful to you, please write to autoconf@gnu.org." >&5
13344 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13345 whose name does not start with the host triplet.  If you think this
13346 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13347 ac_tool_warned=yes ;;
13348 esac
13349     F77=$ac_ct_F77
13350   fi
13351 fi
13352
13353
13354 # Provide some information about the compiler.
13355 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13356 ac_compiler=`set X $ac_compile; echo $2`
13357 { (ac_try="$ac_compiler --version >&5"
13358 case "(($ac_try" in
13359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360   *) ac_try_echo=$ac_try;;
13361 esac
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363   (eval "$ac_compiler --version >&5") 2>&5
13364   ac_status=$?
13365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366   (exit $ac_status); }
13367 { (ac_try="$ac_compiler -v >&5"
13368 case "(($ac_try" in
13369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370   *) ac_try_echo=$ac_try;;
13371 esac
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373   (eval "$ac_compiler -v >&5") 2>&5
13374   ac_status=$?
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); }
13377 { (ac_try="$ac_compiler -V >&5"
13378 case "(($ac_try" in
13379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380   *) ac_try_echo=$ac_try;;
13381 esac
13382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383   (eval "$ac_compiler -V >&5") 2>&5
13384   ac_status=$?
13385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386   (exit $ac_status); }
13387 rm -f a.out
13388
13389 # If we don't use `.F' as extension, the preprocessor is not run on the
13390 # input file.  (Note that this only needs to work for GNU compilers.)
13391 ac_save_ext=$ac_ext
13392 ac_ext=F
13393 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13394 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13395 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13396   echo $ECHO_N "(cached) $ECHO_C" >&6
13397 else
13398   cat >conftest.$ac_ext <<_ACEOF
13399       program main
13400 #ifndef __GNUC__
13401        choke me
13402 #endif
13403
13404       end
13405 _ACEOF
13406 rm -f conftest.$ac_objext
13407 if { (ac_try="$ac_compile"
13408 case "(($ac_try" in
13409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410   *) ac_try_echo=$ac_try;;
13411 esac
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413   (eval "$ac_compile") 2>conftest.er1
13414   ac_status=$?
13415   grep -v '^ *+' conftest.er1 >conftest.err
13416   rm -f conftest.er1
13417   cat conftest.err >&5
13418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419   (exit $ac_status); } &&
13420          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13421   { (case "(($ac_try" in
13422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423   *) ac_try_echo=$ac_try;;
13424 esac
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426   (eval "$ac_try") 2>&5
13427   ac_status=$?
13428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429   (exit $ac_status); }; } &&
13430          { ac_try='test -s conftest.$ac_objext'
13431   { (case "(($ac_try" in
13432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433   *) ac_try_echo=$ac_try;;
13434 esac
13435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436   (eval "$ac_try") 2>&5
13437   ac_status=$?
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); }; }; then
13440   ac_compiler_gnu=yes
13441 else
13442   echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13444
13445         ac_compiler_gnu=no
13446 fi
13447
13448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13449 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13450
13451 fi
13452 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13453 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13454 ac_ext=$ac_save_ext
13455 ac_test_FFLAGS=${FFLAGS+set}
13456 ac_save_FFLAGS=$FFLAGS
13457 FFLAGS=
13458 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13459 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13460 if test "${ac_cv_prog_f77_g+set}" = set; then
13461   echo $ECHO_N "(cached) $ECHO_C" >&6
13462 else
13463   FFLAGS=-g
13464 cat >conftest.$ac_ext <<_ACEOF
13465       program main
13466
13467       end
13468 _ACEOF
13469 rm -f conftest.$ac_objext
13470 if { (ac_try="$ac_compile"
13471 case "(($ac_try" in
13472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473   *) ac_try_echo=$ac_try;;
13474 esac
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476   (eval "$ac_compile") 2>conftest.er1
13477   ac_status=$?
13478   grep -v '^ *+' conftest.er1 >conftest.err
13479   rm -f conftest.er1
13480   cat conftest.err >&5
13481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482   (exit $ac_status); } &&
13483          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13484   { (case "(($ac_try" in
13485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486   *) ac_try_echo=$ac_try;;
13487 esac
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489   (eval "$ac_try") 2>&5
13490   ac_status=$?
13491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492   (exit $ac_status); }; } &&
13493          { ac_try='test -s conftest.$ac_objext'
13494   { (case "(($ac_try" in
13495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496   *) ac_try_echo=$ac_try;;
13497 esac
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499   (eval "$ac_try") 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); }; }; then
13503   ac_cv_prog_f77_g=yes
13504 else
13505   echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13507
13508         ac_cv_prog_f77_g=no
13509 fi
13510
13511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13512
13513 fi
13514 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13515 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13516 if test "$ac_test_FFLAGS" = set; then
13517   FFLAGS=$ac_save_FFLAGS
13518 elif test $ac_cv_prog_f77_g = yes; then
13519   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13520     FFLAGS="-g -O2"
13521   else
13522     FFLAGS="-g"
13523   fi
13524 else
13525   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13526     FFLAGS="-O2"
13527   else
13528     FFLAGS=
13529   fi
13530 fi
13531
13532 G77=`test $ac_compiler_gnu = yes && echo yes`
13533 ac_ext=c
13534 ac_cpp='$CPP $CPPFLAGS'
13535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13538
13539
13540
13541 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13542
13543 # find the maximum length of command line arguments
13544 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13545 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13546 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13547   echo $ECHO_N "(cached) $ECHO_C" >&6
13548 else
13549     i=0
13550   teststring="ABCD"
13551
13552   case $build_os in
13553   msdosdjgpp*)
13554     # On DJGPP, this test can blow up pretty badly due to problems in libc
13555     # (any single argument exceeding 2000 bytes causes a buffer overrun
13556     # during glob expansion).  Even if it were fixed, the result of this
13557     # check would be larger than it should be.
13558     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13559     ;;
13560
13561   gnu*)
13562     # Under GNU Hurd, this test is not required because there is
13563     # no limit to the length of command line arguments.
13564     # Libtool will interpret -1 as no limit whatsoever
13565     lt_cv_sys_max_cmd_len=-1;
13566     ;;
13567
13568   cygwin* | mingw*)
13569     # On Win9x/ME, this test blows up -- it succeeds, but takes
13570     # about 5 minutes as the teststring grows exponentially.
13571     # Worse, since 9x/ME are not pre-emptively multitasking,
13572     # you end up with a "frozen" computer, even though with patience
13573     # the test eventually succeeds (with a max line length of 256k).
13574     # Instead, let's just punt: use the minimum linelength reported by
13575     # all of the supported platforms: 8192 (on NT/2K/XP).
13576     lt_cv_sys_max_cmd_len=8192;
13577     ;;
13578
13579   amigaos*)
13580     # On AmigaOS with pdksh, this test takes hours, literally.
13581     # So we just punt and use a minimum line length of 8192.
13582     lt_cv_sys_max_cmd_len=8192;
13583     ;;
13584
13585   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13586     # This has been around since 386BSD, at least.  Likely further.
13587     if test -x /sbin/sysctl; then
13588       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13589     elif test -x /usr/sbin/sysctl; then
13590       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13591     else
13592       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13593     fi
13594     # And add a safety zone
13595     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13596     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13597     ;;
13598
13599   interix*)
13600     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13601     lt_cv_sys_max_cmd_len=196608
13602     ;;
13603
13604   osf*)
13605     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13606     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13607     # nice to cause kernel panics so lets avoid the loop below.
13608     # First set a reasonable default.
13609     lt_cv_sys_max_cmd_len=16384
13610     #
13611     if test -x /sbin/sysconfig; then
13612       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13613         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13614       esac
13615     fi
13616     ;;
13617   sco3.2v5*)
13618     lt_cv_sys_max_cmd_len=102400
13619     ;;
13620   sysv5* | sco5v6* | sysv4.2uw2*)
13621     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13622     if test -n "$kargmax"; then
13623       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13624     else
13625       lt_cv_sys_max_cmd_len=32768
13626     fi
13627     ;;
13628   *)
13629     # If test is not a shell built-in, we'll probably end up computing a
13630     # maximum length that is only half of the actual maximum length, but
13631     # we can't tell.
13632     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13633     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13634                = "XX$teststring") >/dev/null 2>&1 &&
13635             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13636             lt_cv_sys_max_cmd_len=$new_result &&
13637             test $i != 17 # 1/2 MB should be enough
13638     do
13639       i=`expr $i + 1`
13640       teststring=$teststring$teststring
13641     done
13642     teststring=
13643     # Add a significant safety factor because C++ compilers can tack on massive
13644     # amounts of additional arguments before passing them to the linker.
13645     # It appears as though 1/2 is a usable value.
13646     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13647     ;;
13648   esac
13649
13650 fi
13651
13652 if test -n $lt_cv_sys_max_cmd_len ; then
13653   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13654 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13655 else
13656   { echo "$as_me:$LINENO: result: none" >&5
13657 echo "${ECHO_T}none" >&6; }
13658 fi
13659
13660
13661
13662
13663 # Check for command to grab the raw symbol name followed by C symbol from nm.
13664 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13665 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13666 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13667   echo $ECHO_N "(cached) $ECHO_C" >&6
13668 else
13669
13670 # These are sane defaults that work on at least a few old systems.
13671 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13672
13673 # Character class describing NM global symbol codes.
13674 symcode='[BCDEGRST]'
13675
13676 # Regexp to match symbols that can be accessed directly from C.
13677 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13678
13679 # Transform an extracted symbol line into a proper C declaration
13680 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13681
13682 # Transform an extracted symbol line into symbol name and symbol address
13683 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'"
13684
13685 # Define system-specific variables.
13686 case $host_os in
13687 aix*)
13688   symcode='[BCDT]'
13689   ;;
13690 cygwin* | mingw* | pw32*)
13691   symcode='[ABCDGISTW]'
13692   ;;
13693 hpux*) # Its linker distinguishes data from code symbols
13694   if test "$host_cpu" = ia64; then
13695     symcode='[ABCDEGRST]'
13696   fi
13697   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13698   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'"
13699   ;;
13700 linux*)
13701   if test "$host_cpu" = ia64; then
13702     symcode='[ABCDGIRSTW]'
13703     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13704     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'"
13705   fi
13706   ;;
13707 irix* | nonstopux*)
13708   symcode='[BCDEGRST]'
13709   ;;
13710 osf*)
13711   symcode='[BCDEGQRST]'
13712   ;;
13713 solaris*)
13714   symcode='[BDRT]'
13715   ;;
13716 sco3.2v5*)
13717   symcode='[DT]'
13718   ;;
13719 sysv4.2uw2*)
13720   symcode='[DT]'
13721   ;;
13722 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13723   symcode='[ABDT]'
13724   ;;
13725 sysv4)
13726   symcode='[DFNSTU]'
13727   ;;
13728 esac
13729
13730 # Handle CRLF in mingw tool chain
13731 opt_cr=
13732 case $build_os in
13733 mingw*)
13734   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13735   ;;
13736 esac
13737
13738 # If we're using GNU nm, then use its standard symbol codes.
13739 case `$NM -V 2>&1` in
13740 *GNU* | *'with BFD'*)
13741   symcode='[ABCDGIRSTW]' ;;
13742 esac
13743
13744 # Try without a prefix undercore, then with it.
13745 for ac_symprfx in "" "_"; do
13746
13747   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13748   symxfrm="\\1 $ac_symprfx\\2 \\2"
13749
13750   # Write the raw and C identifiers.
13751   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13752
13753   # Check to see that the pipe works correctly.
13754   pipe_works=no
13755
13756   rm -f conftest*
13757   cat > conftest.$ac_ext <<EOF
13758 #ifdef __cplusplus
13759 extern "C" {
13760 #endif
13761 char nm_test_var;
13762 void nm_test_func(){}
13763 #ifdef __cplusplus
13764 }
13765 #endif
13766 int main(){nm_test_var='a';nm_test_func();return(0);}
13767 EOF
13768
13769   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13770   (eval $ac_compile) 2>&5
13771   ac_status=$?
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); }; then
13774     # Now try to grab the symbols.
13775     nlist=conftest.nm
13776     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13777   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13778   ac_status=$?
13779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780   (exit $ac_status); } && test -s "$nlist"; then
13781       # Try sorting and uniquifying the output.
13782       if sort "$nlist" | uniq > "$nlist"T; then
13783         mv -f "$nlist"T "$nlist"
13784       else
13785         rm -f "$nlist"T
13786       fi
13787
13788       # Make sure that we snagged all the symbols we need.
13789       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13790         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13791           cat <<EOF > conftest.$ac_ext
13792 #ifdef __cplusplus
13793 extern "C" {
13794 #endif
13795
13796 EOF
13797           # Now generate the symbol file.
13798           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13799
13800           cat <<EOF >> conftest.$ac_ext
13801 #if defined (__STDC__) && __STDC__
13802 # define lt_ptr_t void *
13803 #else
13804 # define lt_ptr_t char *
13805 # define const
13806 #endif
13807
13808 /* The mapping between symbol names and symbols. */
13809 const struct {
13810   const char *name;
13811   lt_ptr_t address;
13812 }
13813 lt_preloaded_symbols[] =
13814 {
13815 EOF
13816           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13817           cat <<\EOF >> conftest.$ac_ext
13818   {0, (lt_ptr_t) 0}
13819 };
13820
13821 #ifdef __cplusplus
13822 }
13823 #endif
13824 EOF
13825           # Now try linking the two files.
13826           mv conftest.$ac_objext conftstm.$ac_objext
13827           lt_save_LIBS="$LIBS"
13828           lt_save_CFLAGS="$CFLAGS"
13829           LIBS="conftstm.$ac_objext"
13830           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13831           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13832   (eval $ac_link) 2>&5
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13836             pipe_works=yes
13837           fi
13838           LIBS="$lt_save_LIBS"
13839           CFLAGS="$lt_save_CFLAGS"
13840         else
13841           echo "cannot find nm_test_func in $nlist" >&5
13842         fi
13843       else
13844         echo "cannot find nm_test_var in $nlist" >&5
13845       fi
13846     else
13847       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13848     fi
13849   else
13850     echo "$progname: failed program was:" >&5
13851     cat conftest.$ac_ext >&5
13852   fi
13853   rm -f conftest* conftst*
13854
13855   # Do not use the global_symbol_pipe unless it works.
13856   if test "$pipe_works" = yes; then
13857     break
13858   else
13859     lt_cv_sys_global_symbol_pipe=
13860   fi
13861 done
13862
13863 fi
13864
13865 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13866   lt_cv_sys_global_symbol_to_cdecl=
13867 fi
13868 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13869   { echo "$as_me:$LINENO: result: failed" >&5
13870 echo "${ECHO_T}failed" >&6; }
13871 else
13872   { echo "$as_me:$LINENO: result: ok" >&5
13873 echo "${ECHO_T}ok" >&6; }
13874 fi
13875
13876 { echo "$as_me:$LINENO: checking for objdir" >&5
13877 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13878 if test "${lt_cv_objdir+set}" = set; then
13879   echo $ECHO_N "(cached) $ECHO_C" >&6
13880 else
13881   rm -f .libs 2>/dev/null
13882 mkdir .libs 2>/dev/null
13883 if test -d .libs; then
13884   lt_cv_objdir=.libs
13885 else
13886   # MS-DOS does not allow filenames that begin with a dot.
13887   lt_cv_objdir=_libs
13888 fi
13889 rmdir .libs 2>/dev/null
13890 fi
13891 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13892 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13893 objdir=$lt_cv_objdir
13894
13895
13896
13897
13898
13899 case $host_os in
13900 aix3*)
13901   # AIX sometimes has problems with the GCC collect2 program.  For some
13902   # reason, if we set the COLLECT_NAMES environment variable, the problems
13903   # vanish in a puff of smoke.
13904   if test "X${COLLECT_NAMES+set}" != Xset; then
13905     COLLECT_NAMES=
13906     export COLLECT_NAMES
13907   fi
13908   ;;
13909 esac
13910
13911 # Sed substitution that helps us do robust quoting.  It backslashifies
13912 # metacharacters that are still active within double-quoted strings.
13913 Xsed='sed -e 1s/^X//'
13914 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13915
13916 # Same as above, but do not quote variable references.
13917 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13918
13919 # Sed substitution to delay expansion of an escaped shell variable in a
13920 # double_quote_subst'ed string.
13921 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13922
13923 # Sed substitution to avoid accidental globbing in evaled expressions
13924 no_glob_subst='s/\*/\\\*/g'
13925
13926 # Constants:
13927 rm="rm -f"
13928
13929 # Global variables:
13930 default_ofile=mklib
13931 can_build_shared=yes
13932
13933 # All known linkers require a `.a' archive for static linking (except MSVC,
13934 # which needs '.lib').
13935 libext=a
13936 ltmain="$ac_aux_dir/ltmain.sh"
13937 ofile="$default_ofile"
13938 with_gnu_ld="$lt_cv_prog_gnu_ld"
13939
13940 if test -n "$ac_tool_prefix"; then
13941   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13942 set dummy ${ac_tool_prefix}ar; ac_word=$2
13943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13945 if test "${ac_cv_prog_AR+set}" = set; then
13946   echo $ECHO_N "(cached) $ECHO_C" >&6
13947 else
13948   if test -n "$AR"; then
13949   ac_cv_prog_AR="$AR" # Let the user override the test.
13950 else
13951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13952 for as_dir in $PATH
13953 do
13954   IFS=$as_save_IFS
13955   test -z "$as_dir" && as_dir=.
13956   for ac_exec_ext in '' $ac_executable_extensions; do
13957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13958     ac_cv_prog_AR="${ac_tool_prefix}ar"
13959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13960     break 2
13961   fi
13962 done
13963 done
13964 IFS=$as_save_IFS
13965
13966 fi
13967 fi
13968 AR=$ac_cv_prog_AR
13969 if test -n "$AR"; then
13970   { echo "$as_me:$LINENO: result: $AR" >&5
13971 echo "${ECHO_T}$AR" >&6; }
13972 else
13973   { echo "$as_me:$LINENO: result: no" >&5
13974 echo "${ECHO_T}no" >&6; }
13975 fi
13976
13977
13978 fi
13979 if test -z "$ac_cv_prog_AR"; then
13980   ac_ct_AR=$AR
13981   # Extract the first word of "ar", so it can be a program name with args.
13982 set dummy ar; ac_word=$2
13983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13985 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13986   echo $ECHO_N "(cached) $ECHO_C" >&6
13987 else
13988   if test -n "$ac_ct_AR"; then
13989   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13990 else
13991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992 for as_dir in $PATH
13993 do
13994   IFS=$as_save_IFS
13995   test -z "$as_dir" && as_dir=.
13996   for ac_exec_ext in '' $ac_executable_extensions; do
13997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13998     ac_cv_prog_ac_ct_AR="ar"
13999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14000     break 2
14001   fi
14002 done
14003 done
14004 IFS=$as_save_IFS
14005
14006 fi
14007 fi
14008 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14009 if test -n "$ac_ct_AR"; then
14010   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14011 echo "${ECHO_T}$ac_ct_AR" >&6; }
14012 else
14013   { echo "$as_me:$LINENO: result: no" >&5
14014 echo "${ECHO_T}no" >&6; }
14015 fi
14016
14017   if test "x$ac_ct_AR" = x; then
14018     AR="false"
14019   else
14020     case $cross_compiling:$ac_tool_warned in
14021 yes:)
14022 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14023 whose name does not start with the host triplet.  If you think this
14024 configuration is useful to you, please write to autoconf@gnu.org." >&5
14025 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14026 whose name does not start with the host triplet.  If you think this
14027 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14028 ac_tool_warned=yes ;;
14029 esac
14030     AR=$ac_ct_AR
14031   fi
14032 else
14033   AR="$ac_cv_prog_AR"
14034 fi
14035
14036 if test -n "$ac_tool_prefix"; then
14037   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14038 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14041 if test "${ac_cv_prog_RANLIB+set}" = set; then
14042   echo $ECHO_N "(cached) $ECHO_C" >&6
14043 else
14044   if test -n "$RANLIB"; then
14045   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14046 else
14047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14048 for as_dir in $PATH
14049 do
14050   IFS=$as_save_IFS
14051   test -z "$as_dir" && as_dir=.
14052   for ac_exec_ext in '' $ac_executable_extensions; do
14053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14054     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14056     break 2
14057   fi
14058 done
14059 done
14060 IFS=$as_save_IFS
14061
14062 fi
14063 fi
14064 RANLIB=$ac_cv_prog_RANLIB
14065 if test -n "$RANLIB"; then
14066   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14067 echo "${ECHO_T}$RANLIB" >&6; }
14068 else
14069   { echo "$as_me:$LINENO: result: no" >&5
14070 echo "${ECHO_T}no" >&6; }
14071 fi
14072
14073
14074 fi
14075 if test -z "$ac_cv_prog_RANLIB"; then
14076   ac_ct_RANLIB=$RANLIB
14077   # Extract the first word of "ranlib", so it can be a program name with args.
14078 set dummy ranlib; ac_word=$2
14079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14081 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14082   echo $ECHO_N "(cached) $ECHO_C" >&6
14083 else
14084   if test -n "$ac_ct_RANLIB"; then
14085   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14086 else
14087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14088 for as_dir in $PATH
14089 do
14090   IFS=$as_save_IFS
14091   test -z "$as_dir" && as_dir=.
14092   for ac_exec_ext in '' $ac_executable_extensions; do
14093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14094     ac_cv_prog_ac_ct_RANLIB="ranlib"
14095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14096     break 2
14097   fi
14098 done
14099 done
14100 IFS=$as_save_IFS
14101
14102 fi
14103 fi
14104 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14105 if test -n "$ac_ct_RANLIB"; then
14106   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14107 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14108 else
14109   { echo "$as_me:$LINENO: result: no" >&5
14110 echo "${ECHO_T}no" >&6; }
14111 fi
14112
14113   if test "x$ac_ct_RANLIB" = x; then
14114     RANLIB=":"
14115   else
14116     case $cross_compiling:$ac_tool_warned in
14117 yes:)
14118 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14119 whose name does not start with the host triplet.  If you think this
14120 configuration is useful to you, please write to autoconf@gnu.org." >&5
14121 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14122 whose name does not start with the host triplet.  If you think this
14123 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14124 ac_tool_warned=yes ;;
14125 esac
14126     RANLIB=$ac_ct_RANLIB
14127   fi
14128 else
14129   RANLIB="$ac_cv_prog_RANLIB"
14130 fi
14131
14132 if test -n "$ac_tool_prefix"; then
14133   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14134 set dummy ${ac_tool_prefix}strip; ac_word=$2
14135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14137 if test "${ac_cv_prog_STRIP+set}" = set; then
14138   echo $ECHO_N "(cached) $ECHO_C" >&6
14139 else
14140   if test -n "$STRIP"; then
14141   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14142 else
14143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14144 for as_dir in $PATH
14145 do
14146   IFS=$as_save_IFS
14147   test -z "$as_dir" && as_dir=.
14148   for ac_exec_ext in '' $ac_executable_extensions; do
14149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14150     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14152     break 2
14153   fi
14154 done
14155 done
14156 IFS=$as_save_IFS
14157
14158 fi
14159 fi
14160 STRIP=$ac_cv_prog_STRIP
14161 if test -n "$STRIP"; then
14162   { echo "$as_me:$LINENO: result: $STRIP" >&5
14163 echo "${ECHO_T}$STRIP" >&6; }
14164 else
14165   { echo "$as_me:$LINENO: result: no" >&5
14166 echo "${ECHO_T}no" >&6; }
14167 fi
14168
14169
14170 fi
14171 if test -z "$ac_cv_prog_STRIP"; then
14172   ac_ct_STRIP=$STRIP
14173   # Extract the first word of "strip", so it can be a program name with args.
14174 set dummy strip; ac_word=$2
14175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14177 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14178   echo $ECHO_N "(cached) $ECHO_C" >&6
14179 else
14180   if test -n "$ac_ct_STRIP"; then
14181   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14182 else
14183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14184 for as_dir in $PATH
14185 do
14186   IFS=$as_save_IFS
14187   test -z "$as_dir" && as_dir=.
14188   for ac_exec_ext in '' $ac_executable_extensions; do
14189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14190     ac_cv_prog_ac_ct_STRIP="strip"
14191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14192     break 2
14193   fi
14194 done
14195 done
14196 IFS=$as_save_IFS
14197
14198 fi
14199 fi
14200 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14201 if test -n "$ac_ct_STRIP"; then
14202   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14203 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14204 else
14205   { echo "$as_me:$LINENO: result: no" >&5
14206 echo "${ECHO_T}no" >&6; }
14207 fi
14208
14209   if test "x$ac_ct_STRIP" = x; then
14210     STRIP=":"
14211   else
14212     case $cross_compiling:$ac_tool_warned in
14213 yes:)
14214 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14215 whose name does not start with the host triplet.  If you think this
14216 configuration is useful to you, please write to autoconf@gnu.org." >&5
14217 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14218 whose name does not start with the host triplet.  If you think this
14219 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14220 ac_tool_warned=yes ;;
14221 esac
14222     STRIP=$ac_ct_STRIP
14223   fi
14224 else
14225   STRIP="$ac_cv_prog_STRIP"
14226 fi
14227
14228
14229 old_CC="$CC"
14230 old_CFLAGS="$CFLAGS"
14231
14232 # Set sane defaults for various variables
14233 test -z "$AR" && AR=ar
14234 test -z "$AR_FLAGS" && AR_FLAGS=cru
14235 test -z "$AS" && AS=as
14236 test -z "$CC" && CC=cc
14237 test -z "$LTCC" && LTCC=$CC
14238 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14239 test -z "$DLLTOOL" && DLLTOOL=dlltool
14240 test -z "$LD" && LD=ld
14241 test -z "$LN_S" && LN_S="ln -s"
14242 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14243 test -z "$NM" && NM=nm
14244 test -z "$SED" && SED=sed
14245 test -z "$OBJDUMP" && OBJDUMP=objdump
14246 test -z "$RANLIB" && RANLIB=:
14247 test -z "$STRIP" && STRIP=:
14248 test -z "$ac_objext" && ac_objext=o
14249
14250 # Determine commands to create old-style static archives.
14251 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14252 old_postinstall_cmds='chmod 644 $oldlib'
14253 old_postuninstall_cmds=
14254
14255 if test -n "$RANLIB"; then
14256   case $host_os in
14257   openbsd*)
14258     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14259     ;;
14260   *)
14261     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14262     ;;
14263   esac
14264   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14265 fi
14266
14267 for cc_temp in $compiler""; do
14268   case $cc_temp in
14269     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14270     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14271     \-*) ;;
14272     *) break;;
14273   esac
14274 done
14275 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14276
14277
14278 # Only perform the check for file, if the check method requires it
14279 case $deplibs_check_method in
14280 file_magic*)
14281   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14282     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14283 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14284 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14285   echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287   case $MAGIC_CMD in
14288 [\\/*] |  ?:[\\/]*)
14289   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14290   ;;
14291 *)
14292   lt_save_MAGIC_CMD="$MAGIC_CMD"
14293   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14294   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14295   for ac_dir in $ac_dummy; do
14296     IFS="$lt_save_ifs"
14297     test -z "$ac_dir" && ac_dir=.
14298     if test -f $ac_dir/${ac_tool_prefix}file; then
14299       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14300       if test -n "$file_magic_test_file"; then
14301         case $deplibs_check_method in
14302         "file_magic "*)
14303           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14304           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14305           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14306             $EGREP "$file_magic_regex" > /dev/null; then
14307             :
14308           else
14309             cat <<EOF 1>&2
14310
14311 *** Warning: the command libtool uses to detect shared libraries,
14312 *** $file_magic_cmd, produces output that libtool cannot recognize.
14313 *** The result is that libtool may fail to recognize shared libraries
14314 *** as such.  This will affect the creation of libtool libraries that
14315 *** depend on shared libraries, but programs linked with such libtool
14316 *** libraries will work regardless of this problem.  Nevertheless, you
14317 *** may want to report the problem to your system manager and/or to
14318 *** bug-libtool@gnu.org
14319
14320 EOF
14321           fi ;;
14322         esac
14323       fi
14324       break
14325     fi
14326   done
14327   IFS="$lt_save_ifs"
14328   MAGIC_CMD="$lt_save_MAGIC_CMD"
14329   ;;
14330 esac
14331 fi
14332
14333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14334 if test -n "$MAGIC_CMD"; then
14335   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14336 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14337 else
14338   { echo "$as_me:$LINENO: result: no" >&5
14339 echo "${ECHO_T}no" >&6; }
14340 fi
14341
14342 if test -z "$lt_cv_path_MAGIC_CMD"; then
14343   if test -n "$ac_tool_prefix"; then
14344     { echo "$as_me:$LINENO: checking for file" >&5
14345 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14346 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   case $MAGIC_CMD in
14350 [\\/*] |  ?:[\\/]*)
14351   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14352   ;;
14353 *)
14354   lt_save_MAGIC_CMD="$MAGIC_CMD"
14355   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14356   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14357   for ac_dir in $ac_dummy; do
14358     IFS="$lt_save_ifs"
14359     test -z "$ac_dir" && ac_dir=.
14360     if test -f $ac_dir/file; then
14361       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14362       if test -n "$file_magic_test_file"; then
14363         case $deplibs_check_method in
14364         "file_magic "*)
14365           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14366           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14367           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14368             $EGREP "$file_magic_regex" > /dev/null; then
14369             :
14370           else
14371             cat <<EOF 1>&2
14372
14373 *** Warning: the command libtool uses to detect shared libraries,
14374 *** $file_magic_cmd, produces output that libtool cannot recognize.
14375 *** The result is that libtool may fail to recognize shared libraries
14376 *** as such.  This will affect the creation of libtool libraries that
14377 *** depend on shared libraries, but programs linked with such libtool
14378 *** libraries will work regardless of this problem.  Nevertheless, you
14379 *** may want to report the problem to your system manager and/or to
14380 *** bug-libtool@gnu.org
14381
14382 EOF
14383           fi ;;
14384         esac
14385       fi
14386       break
14387     fi
14388   done
14389   IFS="$lt_save_ifs"
14390   MAGIC_CMD="$lt_save_MAGIC_CMD"
14391   ;;
14392 esac
14393 fi
14394
14395 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14396 if test -n "$MAGIC_CMD"; then
14397   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14398 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14399 else
14400   { echo "$as_me:$LINENO: result: no" >&5
14401 echo "${ECHO_T}no" >&6; }
14402 fi
14403
14404   else
14405     MAGIC_CMD=:
14406   fi
14407 fi
14408
14409   fi
14410   ;;
14411 esac
14412
14413 enable_dlopen=yes
14414 enable_win32_dll=no
14415
14416 # Check whether --enable-libtool-lock was given.
14417 if test "${enable_libtool_lock+set}" = set; then
14418   enableval=$enable_libtool_lock;
14419 fi
14420
14421 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14422
14423
14424 # Check whether --with-pic was given.
14425 if test "${with_pic+set}" = set; then
14426   withval=$with_pic; pic_mode="$withval"
14427 else
14428   pic_mode=default
14429 fi
14430
14431 test -z "$pic_mode" && pic_mode=default
14432
14433 # Use C for the default configuration in the libtool script
14434 tagname=
14435 lt_save_CC="$CC"
14436 ac_ext=c
14437 ac_cpp='$CPP $CPPFLAGS'
14438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14441
14442
14443 # Source file extension for C test sources.
14444 ac_ext=c
14445
14446 # Object file extension for compiled C test sources.
14447 objext=o
14448 objext=$objext
14449
14450 # Code to be used in simple compile tests
14451 lt_simple_compile_test_code="int some_variable = 0;\n"
14452
14453 # Code to be used in simple link tests
14454 lt_simple_link_test_code='int main(){return(0);}\n'
14455
14456
14457 # If no C compiler was specified, use CC.
14458 LTCC=${LTCC-"$CC"}
14459
14460 # If no C compiler flags were specified, use CFLAGS.
14461 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14462
14463 # Allow CC to be a program name with arguments.
14464 compiler=$CC
14465
14466
14467 # save warnings/boilerplate of simple test code
14468 ac_outfile=conftest.$ac_objext
14469 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14470 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14471 _lt_compiler_boilerplate=`cat conftest.err`
14472 $rm conftest*
14473
14474 ac_outfile=conftest.$ac_objext
14475 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14476 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14477 _lt_linker_boilerplate=`cat conftest.err`
14478 $rm conftest*
14479
14480
14481
14482 lt_prog_compiler_no_builtin_flag=
14483
14484 if test "$GCC" = yes; then
14485   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14486
14487
14488 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14489 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14490 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14491   echo $ECHO_N "(cached) $ECHO_C" >&6
14492 else
14493   lt_cv_prog_compiler_rtti_exceptions=no
14494   ac_outfile=conftest.$ac_objext
14495    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14496    lt_compiler_flag="-fno-rtti -fno-exceptions"
14497    # Insert the option either (1) after the last *FLAGS variable, or
14498    # (2) before a word containing "conftest.", or (3) at the end.
14499    # Note that $ac_compile itself does not contain backslashes and begins
14500    # with a dollar sign (not a hyphen), so the echo should work correctly.
14501    # The option is referenced via a variable to avoid confusing sed.
14502    lt_compile=`echo "$ac_compile" | $SED \
14503    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14504    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14505    -e 's:$: $lt_compiler_flag:'`
14506    (eval echo "\"\$as_me:14506: $lt_compile\"" >&5)
14507    (eval "$lt_compile" 2>conftest.err)
14508    ac_status=$?
14509    cat conftest.err >&5
14510    echo "$as_me:14510: \$? = $ac_status" >&5
14511    if (exit $ac_status) && test -s "$ac_outfile"; then
14512      # The compiler can only warn and ignore the option if not recognized
14513      # So say no if there are warnings other than the usual output.
14514      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14515      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14516      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14517        lt_cv_prog_compiler_rtti_exceptions=yes
14518      fi
14519    fi
14520    $rm conftest*
14521
14522 fi
14523 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14524 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14525
14526 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14527     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14528 else
14529     :
14530 fi
14531
14532 fi
14533
14534 lt_prog_compiler_wl=
14535 lt_prog_compiler_pic=
14536 lt_prog_compiler_static=
14537
14538 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14539 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14540
14541   if test "$GCC" = yes; then
14542     lt_prog_compiler_wl='-Wl,'
14543     lt_prog_compiler_static='-static'
14544
14545     case $host_os in
14546       aix*)
14547       # All AIX code is PIC.
14548       if test "$host_cpu" = ia64; then
14549         # AIX 5 now supports IA64 processor
14550         lt_prog_compiler_static='-Bstatic'
14551       fi
14552       ;;
14553
14554     amigaos*)
14555       # FIXME: we need at least 68020 code to build shared libraries, but
14556       # adding the `-m68020' flag to GCC prevents building anything better,
14557       # like `-m68040'.
14558       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14559       ;;
14560
14561     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14562       # PIC is the default for these OSes.
14563       ;;
14564
14565     mingw* | pw32* | os2*)
14566       # This hack is so that the source file can tell whether it is being
14567       # built for inclusion in a dll (and should export symbols for example).
14568       lt_prog_compiler_pic='-DDLL_EXPORT'
14569       ;;
14570
14571     darwin* | rhapsody*)
14572       # PIC is the default on this platform
14573       # Common symbols not allowed in MH_DYLIB files
14574       lt_prog_compiler_pic='-fno-common'
14575       ;;
14576
14577     interix3*)
14578       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14579       # Instead, we relocate shared libraries at runtime.
14580       ;;
14581
14582     msdosdjgpp*)
14583       # Just because we use GCC doesn't mean we suddenly get shared libraries
14584       # on systems that don't support them.
14585       lt_prog_compiler_can_build_shared=no
14586       enable_shared=no
14587       ;;
14588
14589     sysv4*MP*)
14590       if test -d /usr/nec; then
14591         lt_prog_compiler_pic=-Kconform_pic
14592       fi
14593       ;;
14594
14595     hpux*)
14596       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14597       # not for PA HP-UX.
14598       case $host_cpu in
14599       hppa*64*|ia64*)
14600         # +Z the default
14601         ;;
14602       *)
14603         lt_prog_compiler_pic='-fPIC'
14604         ;;
14605       esac
14606       ;;
14607
14608     *)
14609       lt_prog_compiler_pic='-fPIC'
14610       ;;
14611     esac
14612   else
14613     # PORTME Check for flag to pass linker flags through the system compiler.
14614     case $host_os in
14615     aix*)
14616       lt_prog_compiler_wl='-Wl,'
14617       if test "$host_cpu" = ia64; then
14618         # AIX 5 now supports IA64 processor
14619         lt_prog_compiler_static='-Bstatic'
14620       else
14621         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14622       fi
14623       ;;
14624       darwin*)
14625         # PIC is the default on this platform
14626         # Common symbols not allowed in MH_DYLIB files
14627        case $cc_basename in
14628          xlc*)
14629          lt_prog_compiler_pic='-qnocommon'
14630          lt_prog_compiler_wl='-Wl,'
14631          ;;
14632        esac
14633        ;;
14634
14635     mingw* | pw32* | os2*)
14636       # This hack is so that the source file can tell whether it is being
14637       # built for inclusion in a dll (and should export symbols for example).
14638       lt_prog_compiler_pic='-DDLL_EXPORT'
14639       ;;
14640
14641     hpux9* | hpux10* | hpux11*)
14642       lt_prog_compiler_wl='-Wl,'
14643       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14644       # not for PA HP-UX.
14645       case $host_cpu in
14646       hppa*64*|ia64*)
14647         # +Z the default
14648         ;;
14649       *)
14650         lt_prog_compiler_pic='+Z'
14651         ;;
14652       esac
14653       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14654       lt_prog_compiler_static='${wl}-a ${wl}archive'
14655       ;;
14656
14657     irix5* | irix6* | nonstopux*)
14658       lt_prog_compiler_wl='-Wl,'
14659       # PIC (with -KPIC) is the default.
14660       lt_prog_compiler_static='-non_shared'
14661       ;;
14662
14663     newsos6)
14664       lt_prog_compiler_pic='-KPIC'
14665       lt_prog_compiler_static='-Bstatic'
14666       ;;
14667
14668     linux*)
14669       case $cc_basename in
14670       icc* | ecc*)
14671         lt_prog_compiler_wl='-Wl,'
14672         lt_prog_compiler_pic='-KPIC'
14673         lt_prog_compiler_static='-static'
14674         ;;
14675       pgcc* | pgf77* | pgf90* | pgf95*)
14676         # Portland Group compilers (*not* the Pentium gcc compiler,
14677         # which looks to be a dead project)
14678         lt_prog_compiler_wl='-Wl,'
14679         lt_prog_compiler_pic='-fpic'
14680         lt_prog_compiler_static='-Bstatic'
14681         ;;
14682       ccc*)
14683         lt_prog_compiler_wl='-Wl,'
14684         # All Alpha code is PIC.
14685         lt_prog_compiler_static='-non_shared'
14686         ;;
14687       esac
14688       ;;
14689
14690     osf3* | osf4* | osf5*)
14691       lt_prog_compiler_wl='-Wl,'
14692       # All OSF/1 code is PIC.
14693       lt_prog_compiler_static='-non_shared'
14694       ;;
14695
14696     solaris*)
14697       lt_prog_compiler_pic='-KPIC'
14698       lt_prog_compiler_static='-Bstatic'
14699       case $cc_basename in
14700       f77* | f90* | f95*)
14701         lt_prog_compiler_wl='-Qoption ld ';;
14702       *)
14703         lt_prog_compiler_wl='-Wl,';;
14704       esac
14705       ;;
14706
14707     sunos4*)
14708       lt_prog_compiler_wl='-Qoption ld '
14709       lt_prog_compiler_pic='-PIC'
14710       lt_prog_compiler_static='-Bstatic'
14711       ;;
14712
14713     sysv4 | sysv4.2uw2* | sysv4.3*)
14714       lt_prog_compiler_wl='-Wl,'
14715       lt_prog_compiler_pic='-KPIC'
14716       lt_prog_compiler_static='-Bstatic'
14717       ;;
14718
14719     sysv4*MP*)
14720       if test -d /usr/nec ;then
14721         lt_prog_compiler_pic='-Kconform_pic'
14722         lt_prog_compiler_static='-Bstatic'
14723       fi
14724       ;;
14725
14726     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14727       lt_prog_compiler_wl='-Wl,'
14728       lt_prog_compiler_pic='-KPIC'
14729       lt_prog_compiler_static='-Bstatic'
14730       ;;
14731
14732     unicos*)
14733       lt_prog_compiler_wl='-Wl,'
14734       lt_prog_compiler_can_build_shared=no
14735       ;;
14736
14737     uts4*)
14738       lt_prog_compiler_pic='-pic'
14739       lt_prog_compiler_static='-Bstatic'
14740       ;;
14741
14742     *)
14743       lt_prog_compiler_can_build_shared=no
14744       ;;
14745     esac
14746   fi
14747
14748 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14749 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14750
14751 #
14752 # Check to make sure the PIC flag actually works.
14753 #
14754 if test -n "$lt_prog_compiler_pic"; then
14755
14756 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14757 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14758 if test "${lt_prog_compiler_pic_works+set}" = set; then
14759   echo $ECHO_N "(cached) $ECHO_C" >&6
14760 else
14761   lt_prog_compiler_pic_works=no
14762   ac_outfile=conftest.$ac_objext
14763    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14764    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14765    # Insert the option either (1) after the last *FLAGS variable, or
14766    # (2) before a word containing "conftest.", or (3) at the end.
14767    # Note that $ac_compile itself does not contain backslashes and begins
14768    # with a dollar sign (not a hyphen), so the echo should work correctly.
14769    # The option is referenced via a variable to avoid confusing sed.
14770    lt_compile=`echo "$ac_compile" | $SED \
14771    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14772    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14773    -e 's:$: $lt_compiler_flag:'`
14774    (eval echo "\"\$as_me:14774: $lt_compile\"" >&5)
14775    (eval "$lt_compile" 2>conftest.err)
14776    ac_status=$?
14777    cat conftest.err >&5
14778    echo "$as_me:14778: \$? = $ac_status" >&5
14779    if (exit $ac_status) && test -s "$ac_outfile"; then
14780      # The compiler can only warn and ignore the option if not recognized
14781      # So say no if there are warnings other than the usual output.
14782      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14783      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14784      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14785        lt_prog_compiler_pic_works=yes
14786      fi
14787    fi
14788    $rm conftest*
14789
14790 fi
14791 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14792 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14793
14794 if test x"$lt_prog_compiler_pic_works" = xyes; then
14795     case $lt_prog_compiler_pic in
14796      "" | " "*) ;;
14797      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14798      esac
14799 else
14800     lt_prog_compiler_pic=
14801      lt_prog_compiler_can_build_shared=no
14802 fi
14803
14804 fi
14805 case $host_os in
14806   # For platforms which do not support PIC, -DPIC is meaningless:
14807   *djgpp*)
14808     lt_prog_compiler_pic=
14809     ;;
14810   *)
14811     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14812     ;;
14813 esac
14814
14815 #
14816 # Check to make sure the static flag actually works.
14817 #
14818 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14819 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14820 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14821 if test "${lt_prog_compiler_static_works+set}" = set; then
14822   echo $ECHO_N "(cached) $ECHO_C" >&6
14823 else
14824   lt_prog_compiler_static_works=no
14825    save_LDFLAGS="$LDFLAGS"
14826    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14827    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14828    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14829      # The linker can only warn and ignore the option if not recognized
14830      # So say no if there are warnings
14831      if test -s conftest.err; then
14832        # Append any errors to the config.log.
14833        cat conftest.err 1>&5
14834        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14835        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14836        if diff conftest.exp conftest.er2 >/dev/null; then
14837          lt_prog_compiler_static_works=yes
14838        fi
14839      else
14840        lt_prog_compiler_static_works=yes
14841      fi
14842    fi
14843    $rm conftest*
14844    LDFLAGS="$save_LDFLAGS"
14845
14846 fi
14847 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14848 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14849
14850 if test x"$lt_prog_compiler_static_works" = xyes; then
14851     :
14852 else
14853     lt_prog_compiler_static=
14854 fi
14855
14856
14857 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14858 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14859 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14860   echo $ECHO_N "(cached) $ECHO_C" >&6
14861 else
14862   lt_cv_prog_compiler_c_o=no
14863    $rm -r conftest 2>/dev/null
14864    mkdir conftest
14865    cd conftest
14866    mkdir out
14867    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14868
14869    lt_compiler_flag="-o out/conftest2.$ac_objext"
14870    # Insert the option either (1) after the last *FLAGS variable, or
14871    # (2) before a word containing "conftest.", or (3) at the end.
14872    # Note that $ac_compile itself does not contain backslashes and begins
14873    # with a dollar sign (not a hyphen), so the echo should work correctly.
14874    lt_compile=`echo "$ac_compile" | $SED \
14875    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14876    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14877    -e 's:$: $lt_compiler_flag:'`
14878    (eval echo "\"\$as_me:14878: $lt_compile\"" >&5)
14879    (eval "$lt_compile" 2>out/conftest.err)
14880    ac_status=$?
14881    cat out/conftest.err >&5
14882    echo "$as_me:14882: \$? = $ac_status" >&5
14883    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14884    then
14885      # The compiler can only warn and ignore the option if not recognized
14886      # So say no if there are warnings
14887      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14888      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14889      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14890        lt_cv_prog_compiler_c_o=yes
14891      fi
14892    fi
14893    chmod u+w . 2>&5
14894    $rm conftest*
14895    # SGI C++ compiler will create directory out/ii_files/ for
14896    # template instantiation
14897    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14898    $rm out/* && rmdir out
14899    cd ..
14900    rmdir conftest
14901    $rm conftest*
14902
14903 fi
14904 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14905 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14906
14907
14908 hard_links="nottested"
14909 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14910   # do not overwrite the value of need_locks provided by the user
14911   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14912 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14913   hard_links=yes
14914   $rm conftest*
14915   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14916   touch conftest.a
14917   ln conftest.a conftest.b 2>&5 || hard_links=no
14918   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14919   { echo "$as_me:$LINENO: result: $hard_links" >&5
14920 echo "${ECHO_T}$hard_links" >&6; }
14921   if test "$hard_links" = no; then
14922     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14923 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14924     need_locks=warn
14925   fi
14926 else
14927   need_locks=no
14928 fi
14929
14930 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14931 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14932
14933   runpath_var=
14934   allow_undefined_flag=
14935   enable_shared_with_static_runtimes=no
14936   archive_cmds=
14937   archive_expsym_cmds=
14938   old_archive_From_new_cmds=
14939   old_archive_from_expsyms_cmds=
14940   export_dynamic_flag_spec=
14941   whole_archive_flag_spec=
14942   thread_safe_flag_spec=
14943   hardcode_libdir_flag_spec=
14944   hardcode_libdir_flag_spec_ld=
14945   hardcode_libdir_separator=
14946   hardcode_direct=no
14947   hardcode_minus_L=no
14948   hardcode_shlibpath_var=unsupported
14949   link_all_deplibs=unknown
14950   hardcode_automatic=no
14951   module_cmds=
14952   module_expsym_cmds=
14953   always_export_symbols=no
14954   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14955   # include_expsyms should be a list of space-separated symbols to be *always*
14956   # included in the symbol list
14957   include_expsyms=
14958   # exclude_expsyms can be an extended regexp of symbols to exclude
14959   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14960   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14961   # as well as any symbol that contains `d'.
14962   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14963   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14964   # platforms (ab)use it in PIC code, but their linkers get confused if
14965   # the symbol is explicitly referenced.  Since portable code cannot
14966   # rely on this symbol name, it's probably fine to never include it in
14967   # preloaded symbol tables.
14968   extract_expsyms_cmds=
14969   # Just being paranoid about ensuring that cc_basename is set.
14970   for cc_temp in $compiler""; do
14971   case $cc_temp in
14972     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14973     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14974     \-*) ;;
14975     *) break;;
14976   esac
14977 done
14978 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14979
14980   case $host_os in
14981   cygwin* | mingw* | pw32*)
14982     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14983     # When not using gcc, we currently assume that we are using
14984     # Microsoft Visual C++.
14985     if test "$GCC" != yes; then
14986       with_gnu_ld=no
14987     fi
14988     ;;
14989   interix*)
14990     # we just hope/assume this is gcc and not c89 (= MSVC++)
14991     with_gnu_ld=yes
14992     ;;
14993   openbsd*)
14994     with_gnu_ld=no
14995     ;;
14996   esac
14997
14998   ld_shlibs=yes
14999   if test "$with_gnu_ld" = yes; then
15000     # If archive_cmds runs LD, not CC, wlarc should be empty
15001     wlarc='${wl}'
15002
15003     # Set some defaults for GNU ld with shared library support. These
15004     # are reset later if shared libraries are not supported. Putting them
15005     # here allows them to be overridden if necessary.
15006     runpath_var=LD_RUN_PATH
15007     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15008     export_dynamic_flag_spec='${wl}--export-dynamic'
15009     # ancient GNU ld didn't support --whole-archive et. al.
15010     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15011         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15012       else
15013         whole_archive_flag_spec=
15014     fi
15015     supports_anon_versioning=no
15016     case `$LD -v 2>/dev/null` in
15017       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15018       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15019       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15020       *\ 2.11.*) ;; # other 2.11 versions
15021       *) supports_anon_versioning=yes ;;
15022     esac
15023
15024     # See if GNU ld supports shared libraries.
15025     case $host_os in
15026     aix3* | aix4* | aix5*)
15027       # On AIX/PPC, the GNU linker is very broken
15028       if test "$host_cpu" != ia64; then
15029         ld_shlibs=no
15030         cat <<EOF 1>&2
15031
15032 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15033 *** to be unable to reliably create shared libraries on AIX.
15034 *** Therefore, libtool is disabling shared libraries support.  If you
15035 *** really care for shared libraries, you may want to modify your PATH
15036 *** so that a non-GNU linker is found, and then restart.
15037
15038 EOF
15039       fi
15040       ;;
15041
15042     amigaos*)
15043       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)'
15044       hardcode_libdir_flag_spec='-L$libdir'
15045       hardcode_minus_L=yes
15046
15047       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15048       # that the semantics of dynamic libraries on AmigaOS, at least up
15049       # to version 4, is to share data among multiple programs linked
15050       # with the same dynamic library.  Since this doesn't match the
15051       # behavior of shared libraries on other platforms, we can't use
15052       # them.
15053       ld_shlibs=no
15054       ;;
15055
15056     beos*)
15057       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15058         allow_undefined_flag=unsupported
15059         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15060         # support --undefined.  This deserves some investigation.  FIXME
15061         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15062       else
15063         ld_shlibs=no
15064       fi
15065       ;;
15066
15067     cygwin* | mingw* | pw32*)
15068       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15069       # as there is no search path for DLLs.
15070       hardcode_libdir_flag_spec='-L$libdir'
15071       allow_undefined_flag=unsupported
15072       always_export_symbols=no
15073       enable_shared_with_static_runtimes=yes
15074       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15075
15076       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15077         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15078         # If the export-symbols file already is a .def file (1st line
15079         # is EXPORTS), use it as is; otherwise, prepend...
15080         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15081           cp $export_symbols $output_objdir/$soname.def;
15082         else
15083           echo EXPORTS > $output_objdir/$soname.def;
15084           cat $export_symbols >> $output_objdir/$soname.def;
15085         fi~
15086         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15087       else
15088         ld_shlibs=no
15089       fi
15090       ;;
15091
15092     interix3*)
15093       hardcode_direct=no
15094       hardcode_shlibpath_var=no
15095       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15096       export_dynamic_flag_spec='${wl}-E'
15097       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15098       # Instead, shared libraries are loaded at an image base (0x10000000 by
15099       # default) and relocated if they conflict, which is a slow very memory
15100       # consuming and fragmenting process.  To avoid this, we pick a random,
15101       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15102       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15103       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15104       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'
15105       ;;
15106
15107     linux*)
15108       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15109         tmp_addflag=
15110         case $cc_basename,$host_cpu in
15111         pgcc*)                          # Portland Group C compiler
15112           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'
15113           tmp_addflag=' $pic_flag'
15114           ;;
15115         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15116           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'
15117           tmp_addflag=' $pic_flag -Mnomain' ;;
15118         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15119           tmp_addflag=' -i_dynamic' ;;
15120         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15121           tmp_addflag=' -i_dynamic -nofor_main' ;;
15122         ifc* | ifort*)                  # Intel Fortran compiler
15123           tmp_addflag=' -nofor_main' ;;
15124         esac
15125         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15126
15127         if test $supports_anon_versioning = yes; then
15128           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15129   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15130   $echo "local: *; };" >> $output_objdir/$libname.ver~
15131           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15132         fi
15133       else
15134         ld_shlibs=no
15135       fi
15136       ;;
15137
15138     netbsd*)
15139       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15140         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15141         wlarc=
15142       else
15143         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15144         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15145       fi
15146       ;;
15147
15148     solaris*)
15149       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15150         ld_shlibs=no
15151         cat <<EOF 1>&2
15152
15153 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15154 *** create shared libraries on Solaris systems.  Therefore, libtool
15155 *** is disabling shared libraries support.  We urge you to upgrade GNU
15156 *** binutils to release 2.9.1 or newer.  Another option is to modify
15157 *** your PATH or compiler configuration so that the native linker is
15158 *** used, and then restart.
15159
15160 EOF
15161       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15162         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15163         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15164       else
15165         ld_shlibs=no
15166       fi
15167       ;;
15168
15169     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15170       case `$LD -v 2>&1` in
15171         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15172         ld_shlibs=no
15173         cat <<_LT_EOF 1>&2
15174
15175 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15176 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15177 *** is disabling shared libraries support.  We urge you to upgrade GNU
15178 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15179 *** your PATH or compiler configuration so that the native linker is
15180 *** used, and then restart.
15181
15182 _LT_EOF
15183         ;;
15184         *)
15185           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15186             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15187             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15188             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15189           else
15190             ld_shlibs=no
15191           fi
15192         ;;
15193       esac
15194       ;;
15195
15196     sunos4*)
15197       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15198       wlarc=
15199       hardcode_direct=yes
15200       hardcode_shlibpath_var=no
15201       ;;
15202
15203     *)
15204       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15205         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15206         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15207       else
15208         ld_shlibs=no
15209       fi
15210       ;;
15211     esac
15212
15213     if test "$ld_shlibs" = no; then
15214       runpath_var=
15215       hardcode_libdir_flag_spec=
15216       export_dynamic_flag_spec=
15217       whole_archive_flag_spec=
15218     fi
15219   else
15220     # PORTME fill in a description of your system's linker (not GNU ld)
15221     case $host_os in
15222     aix3*)
15223       allow_undefined_flag=unsupported
15224       always_export_symbols=yes
15225       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'
15226       # Note: this linker hardcodes the directories in LIBPATH if there
15227       # are no directories specified by -L.
15228       hardcode_minus_L=yes
15229       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15230         # Neither direct hardcoding nor static linking is supported with a
15231         # broken collect2.
15232         hardcode_direct=unsupported
15233       fi
15234       ;;
15235
15236     aix4* | aix5*)
15237       if test "$host_cpu" = ia64; then
15238         # On IA64, the linker does run time linking by default, so we don't
15239         # have to do anything special.
15240         aix_use_runtimelinking=no
15241         exp_sym_flag='-Bexport'
15242         no_entry_flag=""
15243       else
15244         # If we're using GNU nm, then we don't want the "-C" option.
15245         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15246         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15247           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'
15248         else
15249           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'
15250         fi
15251         aix_use_runtimelinking=no
15252
15253         # Test if we are trying to use run time linking or normal
15254         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15255         # need to do runtime linking.
15256         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15257           for ld_flag in $LDFLAGS; do
15258           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15259             aix_use_runtimelinking=yes
15260             break
15261           fi
15262           done
15263           ;;
15264         esac
15265
15266         exp_sym_flag='-bexport'
15267         no_entry_flag='-bnoentry'
15268       fi
15269
15270       # When large executables or shared objects are built, AIX ld can
15271       # have problems creating the table of contents.  If linking a library
15272       # or program results in "error TOC overflow" add -mminimal-toc to
15273       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15274       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15275
15276       archive_cmds=''
15277       hardcode_direct=yes
15278       hardcode_libdir_separator=':'
15279       link_all_deplibs=yes
15280
15281       if test "$GCC" = yes; then
15282         case $host_os in aix4.[012]|aix4.[012].*)
15283         # We only want to do this on AIX 4.2 and lower, the check
15284         # below for broken collect2 doesn't work under 4.3+
15285           collect2name=`${CC} -print-prog-name=collect2`
15286           if test -f "$collect2name" && \
15287            strings "$collect2name" | grep resolve_lib_name >/dev/null
15288           then
15289           # We have reworked collect2
15290           hardcode_direct=yes
15291           else
15292           # We have old collect2
15293           hardcode_direct=unsupported
15294           # It fails to find uninstalled libraries when the uninstalled
15295           # path is not listed in the libpath.  Setting hardcode_minus_L
15296           # to unsupported forces relinking
15297           hardcode_minus_L=yes
15298           hardcode_libdir_flag_spec='-L$libdir'
15299           hardcode_libdir_separator=
15300           fi
15301           ;;
15302         esac
15303         shared_flag='-shared'
15304         if test "$aix_use_runtimelinking" = yes; then
15305           shared_flag="$shared_flag "'${wl}-G'
15306         fi
15307       else
15308         # not using gcc
15309         if test "$host_cpu" = ia64; then
15310         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15311         # chokes on -Wl,-G. The following line is correct:
15312           shared_flag='-G'
15313         else
15314           if test "$aix_use_runtimelinking" = yes; then
15315             shared_flag='${wl}-G'
15316           else
15317             shared_flag='${wl}-bM:SRE'
15318           fi
15319         fi
15320       fi
15321
15322       # It seems that -bexpall does not export symbols beginning with
15323       # underscore (_), so it is better to generate a list of symbols to export.
15324       always_export_symbols=yes
15325       if test "$aix_use_runtimelinking" = yes; then
15326         # Warning - without using the other runtime loading flags (-brtl),
15327         # -berok will link without error, but may produce a broken library.
15328         allow_undefined_flag='-berok'
15329        # Determine the default libpath from the value encoded in an empty executable.
15330        cat >conftest.$ac_ext <<_ACEOF
15331 /* confdefs.h.  */
15332 _ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h.  */
15336
15337 int
15338 main ()
15339 {
15340
15341   ;
15342   return 0;
15343 }
15344 _ACEOF
15345 rm -f conftest.$ac_objext conftest$ac_exeext
15346 if { (ac_try="$ac_link"
15347 case "(($ac_try" in
15348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349   *) ac_try_echo=$ac_try;;
15350 esac
15351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352   (eval "$ac_link") 2>conftest.er1
15353   ac_status=$?
15354   grep -v '^ *+' conftest.er1 >conftest.err
15355   rm -f conftest.er1
15356   cat conftest.err >&5
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); } &&
15359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15360   { (case "(($ac_try" in
15361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362   *) ac_try_echo=$ac_try;;
15363 esac
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365   (eval "$ac_try") 2>&5
15366   ac_status=$?
15367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368   (exit $ac_status); }; } &&
15369          { ac_try='test -s conftest$ac_exeext'
15370   { (case "(($ac_try" in
15371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372   *) ac_try_echo=$ac_try;;
15373 esac
15374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375   (eval "$ac_try") 2>&5
15376   ac_status=$?
15377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378   (exit $ac_status); }; }; then
15379
15380 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15381 }'`
15382 # Check for a 64-bit object if we didn't find anything.
15383 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; }
15384 }'`; fi
15385 else
15386   echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15388
15389
15390 fi
15391
15392 rm -f core conftest.err conftest.$ac_objext \
15393       conftest$ac_exeext conftest.$ac_ext
15394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15395
15396        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15397         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"
15398        else
15399         if test "$host_cpu" = ia64; then
15400           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15401           allow_undefined_flag="-z nodefs"
15402           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"
15403         else
15404          # Determine the default libpath from the value encoded in an empty executable.
15405          cat >conftest.$ac_ext <<_ACEOF
15406 /* confdefs.h.  */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h.  */
15411
15412 int
15413 main ()
15414 {
15415
15416   ;
15417   return 0;
15418 }
15419 _ACEOF
15420 rm -f conftest.$ac_objext conftest$ac_exeext
15421 if { (ac_try="$ac_link"
15422 case "(($ac_try" in
15423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424   *) ac_try_echo=$ac_try;;
15425 esac
15426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427   (eval "$ac_link") 2>conftest.er1
15428   ac_status=$?
15429   grep -v '^ *+' conftest.er1 >conftest.err
15430   rm -f conftest.er1
15431   cat conftest.err >&5
15432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433   (exit $ac_status); } &&
15434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15435   { (case "(($ac_try" in
15436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437   *) ac_try_echo=$ac_try;;
15438 esac
15439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15440   (eval "$ac_try") 2>&5
15441   ac_status=$?
15442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443   (exit $ac_status); }; } &&
15444          { ac_try='test -s conftest$ac_exeext'
15445   { (case "(($ac_try" in
15446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447   *) ac_try_echo=$ac_try;;
15448 esac
15449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450   (eval "$ac_try") 2>&5
15451   ac_status=$?
15452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453   (exit $ac_status); }; }; then
15454
15455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15456 }'`
15457 # Check for a 64-bit object if we didn't find anything.
15458 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; }
15459 }'`; fi
15460 else
15461   echo "$as_me: failed program was:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15463
15464
15465 fi
15466
15467 rm -f core conftest.err conftest.$ac_objext \
15468       conftest$ac_exeext conftest.$ac_ext
15469 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15470
15471          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15472           # Warning - without using the other run time loading flags,
15473           # -berok will link without error, but may produce a broken library.
15474           no_undefined_flag=' ${wl}-bernotok'
15475           allow_undefined_flag=' ${wl}-berok'
15476           # Exported symbols can be pulled into shared objects from archives
15477           whole_archive_flag_spec='$convenience'
15478           archive_cmds_need_lc=yes
15479           # This is similar to how AIX traditionally builds its shared libraries.
15480           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'
15481         fi
15482       fi
15483       ;;
15484
15485     amigaos*)
15486       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)'
15487       hardcode_libdir_flag_spec='-L$libdir'
15488       hardcode_minus_L=yes
15489       # see comment about different semantics on the GNU ld section
15490       ld_shlibs=no
15491       ;;
15492
15493     bsdi[45]*)
15494       export_dynamic_flag_spec=-rdynamic
15495       ;;
15496
15497     cygwin* | mingw* | pw32*)
15498       # When not using gcc, we currently assume that we are using
15499       # Microsoft Visual C++.
15500       # hardcode_libdir_flag_spec is actually meaningless, as there is
15501       # no search path for DLLs.
15502       hardcode_libdir_flag_spec=' '
15503       allow_undefined_flag=unsupported
15504       # Tell ltmain to make .lib files, not .a files.
15505       libext=lib
15506       # Tell ltmain to make .dll files, not .so files.
15507       shrext_cmds=".dll"
15508       # FIXME: Setting linknames here is a bad hack.
15509       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15510       # The linker will automatically build a .lib file if we build a DLL.
15511       old_archive_From_new_cmds='true'
15512       # FIXME: Should let the user specify the lib program.
15513       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15514       fix_srcfile_path='`cygpath -w "$srcfile"`'
15515       enable_shared_with_static_runtimes=yes
15516       ;;
15517
15518     darwin* | rhapsody*)
15519       case $host_os in
15520         rhapsody* | darwin1.[012])
15521          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15522          ;;
15523        *) # Darwin 1.3 on
15524          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15525            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15526          else
15527            case ${MACOSX_DEPLOYMENT_TARGET} in
15528              10.[012])
15529                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15530                ;;
15531              10.*)
15532                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15533                ;;
15534            esac
15535          fi
15536          ;;
15537       esac
15538       archive_cmds_need_lc=no
15539       hardcode_direct=no
15540       hardcode_automatic=yes
15541       hardcode_shlibpath_var=unsupported
15542       whole_archive_flag_spec=''
15543       link_all_deplibs=yes
15544     if test "$GCC" = yes ; then
15545         output_verbose_link_cmd='echo'
15546         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15547       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15548       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15549       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}'
15550       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}'
15551     else
15552       case $cc_basename in
15553         xlc*)
15554          output_verbose_link_cmd='echo'
15555          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15556          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15557           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15558          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}'
15559           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}'
15560           ;;
15561        *)
15562          ld_shlibs=no
15563           ;;
15564       esac
15565     fi
15566       ;;
15567
15568     dgux*)
15569       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15570       hardcode_libdir_flag_spec='-L$libdir'
15571       hardcode_shlibpath_var=no
15572       ;;
15573
15574     freebsd1*)
15575       ld_shlibs=no
15576       ;;
15577
15578     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15579     # support.  Future versions do this automatically, but an explicit c++rt0.o
15580     # does not break anything, and helps significantly (at the cost of a little
15581     # extra space).
15582     freebsd2.2*)
15583       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15584       hardcode_libdir_flag_spec='-R$libdir'
15585       hardcode_direct=yes
15586       hardcode_shlibpath_var=no
15587       ;;
15588
15589     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15590     freebsd2*)
15591       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15592       hardcode_direct=yes
15593       hardcode_minus_L=yes
15594       hardcode_shlibpath_var=no
15595       ;;
15596
15597     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15598     freebsd* | kfreebsd*-gnu | dragonfly*)
15599       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15600       hardcode_libdir_flag_spec='-R$libdir'
15601       hardcode_direct=yes
15602       hardcode_shlibpath_var=no
15603       ;;
15604
15605     hpux9*)
15606       if test "$GCC" = yes; then
15607         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'
15608       else
15609         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'
15610       fi
15611       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15612       hardcode_libdir_separator=:
15613       hardcode_direct=yes
15614
15615       # hardcode_minus_L: Not really in the search PATH,
15616       # but as the default location of the library.
15617       hardcode_minus_L=yes
15618       export_dynamic_flag_spec='${wl}-E'
15619       ;;
15620
15621     hpux10*)
15622       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15623         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15624       else
15625         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15626       fi
15627       if test "$with_gnu_ld" = no; then
15628         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15629         hardcode_libdir_separator=:
15630
15631         hardcode_direct=yes
15632         export_dynamic_flag_spec='${wl}-E'
15633
15634         # hardcode_minus_L: Not really in the search PATH,
15635         # but as the default location of the library.
15636         hardcode_minus_L=yes
15637       fi
15638       ;;
15639
15640     hpux11*)
15641       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15642         case $host_cpu in
15643         hppa*64*)
15644           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15645           ;;
15646         ia64*)
15647           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15648           ;;
15649         *)
15650           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15651           ;;
15652         esac
15653       else
15654         case $host_cpu in
15655         hppa*64*)
15656           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15657           ;;
15658         ia64*)
15659           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15660           ;;
15661         *)
15662           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15663           ;;
15664         esac
15665       fi
15666       if test "$with_gnu_ld" = no; then
15667         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15668         hardcode_libdir_separator=:
15669
15670         case $host_cpu in
15671         hppa*64*|ia64*)
15672           hardcode_libdir_flag_spec_ld='+b $libdir'
15673           hardcode_direct=no
15674           hardcode_shlibpath_var=no
15675           ;;
15676         *)
15677           hardcode_direct=yes
15678           export_dynamic_flag_spec='${wl}-E'
15679
15680           # hardcode_minus_L: Not really in the search PATH,
15681           # but as the default location of the library.
15682           hardcode_minus_L=yes
15683           ;;
15684         esac
15685       fi
15686       ;;
15687
15688     irix5* | irix6* | nonstopux*)
15689       if test "$GCC" = yes; then
15690         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'
15691       else
15692         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'
15693         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15694       fi
15695       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15696       hardcode_libdir_separator=:
15697       link_all_deplibs=yes
15698       ;;
15699
15700     netbsd*)
15701       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15702         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15703       else
15704         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15705       fi
15706       hardcode_libdir_flag_spec='-R$libdir'
15707       hardcode_direct=yes
15708       hardcode_shlibpath_var=no
15709       ;;
15710
15711     newsos6)
15712       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15713       hardcode_direct=yes
15714       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15715       hardcode_libdir_separator=:
15716       hardcode_shlibpath_var=no
15717       ;;
15718
15719     openbsd*)
15720       hardcode_direct=yes
15721       hardcode_shlibpath_var=no
15722       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15723         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15724         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15725         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15726         export_dynamic_flag_spec='${wl}-E'
15727       else
15728        case $host_os in
15729          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15730            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15731            hardcode_libdir_flag_spec='-R$libdir'
15732            ;;
15733          *)
15734            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15735            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15736            ;;
15737        esac
15738       fi
15739       ;;
15740
15741     os2*)
15742       hardcode_libdir_flag_spec='-L$libdir'
15743       hardcode_minus_L=yes
15744       allow_undefined_flag=unsupported
15745       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'
15746       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15747       ;;
15748
15749     osf3*)
15750       if test "$GCC" = yes; then
15751         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15752         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'
15753       else
15754         allow_undefined_flag=' -expect_unresolved \*'
15755         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'
15756       fi
15757       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15758       hardcode_libdir_separator=:
15759       ;;
15760
15761     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15762       if test "$GCC" = yes; then
15763         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15764         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'
15765         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15766       else
15767         allow_undefined_flag=' -expect_unresolved \*'
15768         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'
15769         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15770         $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'
15771
15772         # Both c and cxx compiler support -rpath directly
15773         hardcode_libdir_flag_spec='-rpath $libdir'
15774       fi
15775       hardcode_libdir_separator=:
15776       ;;
15777
15778     solaris*)
15779       no_undefined_flag=' -z text'
15780       if test "$GCC" = yes; then
15781         wlarc='${wl}'
15782         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15783         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15784           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15785       else
15786         wlarc=''
15787         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15788         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15789         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15790       fi
15791       hardcode_libdir_flag_spec='-R$libdir'
15792       hardcode_shlibpath_var=no
15793       case $host_os in
15794       solaris2.[0-5] | solaris2.[0-5].*) ;;
15795       *)
15796         # The compiler driver will combine linker options so we
15797         # cannot just pass the convience library names through
15798         # without $wl, iff we do not link with $LD.
15799         # Luckily, gcc supports the same syntax we need for Sun Studio.
15800         # Supported since Solaris 2.6 (maybe 2.5.1?)
15801         case $wlarc in
15802         '')
15803           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15804         *)
15805           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' ;;
15806         esac ;;
15807       esac
15808       link_all_deplibs=yes
15809       ;;
15810
15811     sunos4*)
15812       if test "x$host_vendor" = xsequent; then
15813         # Use $CC to link under sequent, because it throws in some extra .o
15814         # files that make .init and .fini sections work.
15815         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15816       else
15817         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15818       fi
15819       hardcode_libdir_flag_spec='-L$libdir'
15820       hardcode_direct=yes
15821       hardcode_minus_L=yes
15822       hardcode_shlibpath_var=no
15823       ;;
15824
15825     sysv4)
15826       case $host_vendor in
15827         sni)
15828           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15829           hardcode_direct=yes # is this really true???
15830         ;;
15831         siemens)
15832           ## LD is ld it makes a PLAMLIB
15833           ## CC just makes a GrossModule.
15834           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15835           reload_cmds='$CC -r -o $output$reload_objs'
15836           hardcode_direct=no
15837         ;;
15838         motorola)
15839           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15840           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15841         ;;
15842       esac
15843       runpath_var='LD_RUN_PATH'
15844       hardcode_shlibpath_var=no
15845       ;;
15846
15847     sysv4.3*)
15848       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15849       hardcode_shlibpath_var=no
15850       export_dynamic_flag_spec='-Bexport'
15851       ;;
15852
15853     sysv4*MP*)
15854       if test -d /usr/nec; then
15855         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15856         hardcode_shlibpath_var=no
15857         runpath_var=LD_RUN_PATH
15858         hardcode_runpath_var=yes
15859         ld_shlibs=yes
15860       fi
15861       ;;
15862
15863     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15864       no_undefined_flag='${wl}-z,text'
15865       archive_cmds_need_lc=no
15866       hardcode_shlibpath_var=no
15867       runpath_var='LD_RUN_PATH'
15868
15869       if test "$GCC" = yes; then
15870         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15871         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15872       else
15873         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15874         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15875       fi
15876       ;;
15877
15878     sysv5* | sco3.2v5* | sco5v6*)
15879       # Note: We can NOT use -z defs as we might desire, because we do not
15880       # link with -lc, and that would cause any symbols used from libc to
15881       # always be unresolved, which means just about no library would
15882       # ever link correctly.  If we're not using GNU ld we use -z text
15883       # though, which does catch some bad symbols but isn't as heavy-handed
15884       # as -z defs.
15885       no_undefined_flag='${wl}-z,text'
15886       allow_undefined_flag='${wl}-z,nodefs'
15887       archive_cmds_need_lc=no
15888       hardcode_shlibpath_var=no
15889       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15890       hardcode_libdir_separator=':'
15891       link_all_deplibs=yes
15892       export_dynamic_flag_spec='${wl}-Bexport'
15893       runpath_var='LD_RUN_PATH'
15894
15895       if test "$GCC" = yes; then
15896         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15897         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15898       else
15899         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15900         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15901       fi
15902       ;;
15903
15904     uts4*)
15905       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15906       hardcode_libdir_flag_spec='-L$libdir'
15907       hardcode_shlibpath_var=no
15908       ;;
15909
15910     *)
15911       ld_shlibs=no
15912       ;;
15913     esac
15914   fi
15915
15916 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15917 echo "${ECHO_T}$ld_shlibs" >&6; }
15918 test "$ld_shlibs" = no && can_build_shared=no
15919
15920 #
15921 # Do we need to explicitly link libc?
15922 #
15923 case "x$archive_cmds_need_lc" in
15924 x|xyes)
15925   # Assume -lc should be added
15926   archive_cmds_need_lc=yes
15927
15928   if test "$enable_shared" = yes && test "$GCC" = yes; then
15929     case $archive_cmds in
15930     *'~'*)
15931       # FIXME: we may have to deal with multi-command sequences.
15932       ;;
15933     '$CC '*)
15934       # Test whether the compiler implicitly links with -lc since on some
15935       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15936       # to ld, don't add -lc before -lgcc.
15937       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15938 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15939       $rm conftest*
15940       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15941
15942       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15943   (eval $ac_compile) 2>&5
15944   ac_status=$?
15945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946   (exit $ac_status); } 2>conftest.err; then
15947         soname=conftest
15948         lib=conftest
15949         libobjs=conftest.$ac_objext
15950         deplibs=
15951         wl=$lt_prog_compiler_wl
15952         pic_flag=$lt_prog_compiler_pic
15953         compiler_flags=-v
15954         linker_flags=-v
15955         verstring=
15956         output_objdir=.
15957         libname=conftest
15958         lt_save_allow_undefined_flag=$allow_undefined_flag
15959         allow_undefined_flag=
15960         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15961   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15962   ac_status=$?
15963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964   (exit $ac_status); }
15965         then
15966           archive_cmds_need_lc=no
15967         else
15968           archive_cmds_need_lc=yes
15969         fi
15970         allow_undefined_flag=$lt_save_allow_undefined_flag
15971       else
15972         cat conftest.err 1>&5
15973       fi
15974       $rm conftest*
15975       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15976 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15977       ;;
15978     esac
15979   fi
15980   ;;
15981 esac
15982
15983 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15984 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15985 library_names_spec=
15986 libname_spec='lib$name'
15987 soname_spec=
15988 shrext_cmds=".so"
15989 postinstall_cmds=
15990 postuninstall_cmds=
15991 finish_cmds=
15992 finish_eval=
15993 shlibpath_var=
15994 shlibpath_overrides_runpath=unknown
15995 version_type=none
15996 dynamic_linker="$host_os ld.so"
15997 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15998 if test "$GCC" = yes; then
15999   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16000   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16001     # if the path contains ";" then we assume it to be the separator
16002     # otherwise default to the standard path separator (i.e. ":") - it is
16003     # assumed that no part of a normal pathname contains ";" but that should
16004     # okay in the real world where ";" in dirpaths is itself problematic.
16005     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16006   else
16007     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16008   fi
16009 else
16010   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16011 fi
16012 need_lib_prefix=unknown
16013 hardcode_into_libs=no
16014
16015 # when you set need_version to no, make sure it does not cause -set_version
16016 # flags to be left without arguments
16017 need_version=unknown
16018
16019 case $host_os in
16020 aix3*)
16021   version_type=linux
16022   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16023   shlibpath_var=LIBPATH
16024
16025   # AIX 3 has no versioning support, so we append a major version to the name.
16026   soname_spec='${libname}${release}${shared_ext}$major'
16027   ;;
16028
16029 aix4* | aix5*)
16030   version_type=linux
16031   need_lib_prefix=no
16032   need_version=no
16033   hardcode_into_libs=yes
16034   if test "$host_cpu" = ia64; then
16035     # AIX 5 supports IA64
16036     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16037     shlibpath_var=LD_LIBRARY_PATH
16038   else
16039     # With GCC up to 2.95.x, collect2 would create an import file
16040     # for dependence libraries.  The import file would start with
16041     # the line `#! .'.  This would cause the generated library to
16042     # depend on `.', always an invalid library.  This was fixed in
16043     # development snapshots of GCC prior to 3.0.
16044     case $host_os in
16045       aix4 | aix4.[01] | aix4.[01].*)
16046       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16047            echo ' yes '
16048            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16049         :
16050       else
16051         can_build_shared=no
16052       fi
16053       ;;
16054     esac
16055     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16056     # soname into executable. Probably we can add versioning support to
16057     # collect2, so additional links can be useful in future.
16058     if test "$aix_use_runtimelinking" = yes; then
16059       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16060       # instead of lib<name>.a to let people know that these are not
16061       # typical AIX shared libraries.
16062       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16063     else
16064       # We preserve .a as extension for shared libraries through AIX4.2
16065       # and later when we are not doing run time linking.
16066       library_names_spec='${libname}${release}.a $libname.a'
16067       soname_spec='${libname}${release}${shared_ext}$major'
16068     fi
16069     shlibpath_var=LIBPATH
16070   fi
16071   ;;
16072
16073 amigaos*)
16074   library_names_spec='$libname.ixlibrary $libname.a'
16075   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16076   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'
16077   ;;
16078
16079 beos*)
16080   library_names_spec='${libname}${shared_ext}'
16081   dynamic_linker="$host_os ld.so"
16082   shlibpath_var=LIBRARY_PATH
16083   ;;
16084
16085 bsdi[45]*)
16086   version_type=linux
16087   need_version=no
16088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16089   soname_spec='${libname}${release}${shared_ext}$major'
16090   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16091   shlibpath_var=LD_LIBRARY_PATH
16092   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16093   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16094   # the default ld.so.conf also contains /usr/contrib/lib and
16095   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16096   # libtool to hard-code these into programs
16097   ;;
16098
16099 cygwin* | mingw* | pw32*)
16100   version_type=windows
16101   shrext_cmds=".dll"
16102   need_version=no
16103   need_lib_prefix=no
16104
16105   case $GCC,$host_os in
16106   yes,cygwin* | yes,mingw* | yes,pw32*)
16107     library_names_spec='$libname.dll.a'
16108     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16109     postinstall_cmds='base_file=`basename \${file}`~
16110       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16111       dldir=$destdir/`dirname \$dlpath`~
16112       test -d \$dldir || mkdir -p \$dldir~
16113       $install_prog $dir/$dlname \$dldir/$dlname~
16114       chmod a+x \$dldir/$dlname'
16115     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16116       dlpath=$dir/\$dldll~
16117        $rm \$dlpath'
16118     shlibpath_overrides_runpath=yes
16119
16120     case $host_os in
16121     cygwin*)
16122       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16123       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16124       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16125       ;;
16126     mingw*)
16127       # MinGW DLLs use traditional 'lib' prefix
16128       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16129       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16130       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16131         # It is most probably a Windows format PATH printed by
16132         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16133         # path with ; separators, and with drive letters. We can handle the
16134         # drive letters (cygwin fileutils understands them), so leave them,
16135         # especially as we might pass files found there to a mingw objdump,
16136         # which wouldn't understand a cygwinified path. Ahh.
16137         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16138       else
16139         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16140       fi
16141       ;;
16142     pw32*)
16143       # pw32 DLLs use 'pw' prefix rather than 'lib'
16144       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16145       ;;
16146     esac
16147     ;;
16148
16149   *)
16150     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16151     ;;
16152   esac
16153   dynamic_linker='Win32 ld.exe'
16154   # FIXME: first we should search . and the directory the executable is in
16155   shlibpath_var=PATH
16156   ;;
16157
16158 darwin* | rhapsody*)
16159   dynamic_linker="$host_os dyld"
16160   version_type=darwin
16161   need_lib_prefix=no
16162   need_version=no
16163   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16164   soname_spec='${libname}${release}${major}$shared_ext'
16165   shlibpath_overrides_runpath=yes
16166   shlibpath_var=DYLD_LIBRARY_PATH
16167   shrext_cmds='.dylib'
16168   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16169   if test "$GCC" = yes; then
16170     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"`
16171   else
16172     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16173   fi
16174   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16175   ;;
16176
16177 dgux*)
16178   version_type=linux
16179   need_lib_prefix=no
16180   need_version=no
16181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16182   soname_spec='${libname}${release}${shared_ext}$major'
16183   shlibpath_var=LD_LIBRARY_PATH
16184   ;;
16185
16186 freebsd1*)
16187   dynamic_linker=no
16188   ;;
16189
16190 kfreebsd*-gnu)
16191   version_type=linux
16192   need_lib_prefix=no
16193   need_version=no
16194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16195   soname_spec='${libname}${release}${shared_ext}$major'
16196   shlibpath_var=LD_LIBRARY_PATH
16197   shlibpath_overrides_runpath=no
16198   hardcode_into_libs=yes
16199   dynamic_linker='GNU ld.so'
16200   ;;
16201
16202 freebsd* | dragonfly*)
16203   # DragonFly does not have aout.  When/if they implement a new
16204   # versioning mechanism, adjust this.
16205   if test -x /usr/bin/objformat; then
16206     objformat=`/usr/bin/objformat`
16207   else
16208     case $host_os in
16209     freebsd[123]*) objformat=aout ;;
16210     *) objformat=elf ;;
16211     esac
16212   fi
16213   version_type=freebsd-$objformat
16214   case $version_type in
16215     freebsd-elf*)
16216       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16217       need_version=no
16218       need_lib_prefix=no
16219       ;;
16220     freebsd-*)
16221       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16222       need_version=yes
16223       ;;
16224   esac
16225   shlibpath_var=LD_LIBRARY_PATH
16226   case $host_os in
16227   freebsd2*)
16228     shlibpath_overrides_runpath=yes
16229     ;;
16230   freebsd3.[01]* | freebsdelf3.[01]*)
16231     shlibpath_overrides_runpath=yes
16232     hardcode_into_libs=yes
16233     ;;
16234   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16235   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16236     shlibpath_overrides_runpath=no
16237     hardcode_into_libs=yes
16238     ;;
16239   freebsd*) # from 4.6 on
16240     shlibpath_overrides_runpath=yes
16241     hardcode_into_libs=yes
16242     ;;
16243   esac
16244   ;;
16245
16246 gnu*)
16247   version_type=linux
16248   need_lib_prefix=no
16249   need_version=no
16250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16251   soname_spec='${libname}${release}${shared_ext}$major'
16252   shlibpath_var=LD_LIBRARY_PATH
16253   hardcode_into_libs=yes
16254   ;;
16255
16256 hpux9* | hpux10* | hpux11*)
16257   # Give a soname corresponding to the major version so that dld.sl refuses to
16258   # link against other versions.
16259   version_type=sunos
16260   need_lib_prefix=no
16261   need_version=no
16262   case $host_cpu in
16263   ia64*)
16264     shrext_cmds='.so'
16265     hardcode_into_libs=yes
16266     dynamic_linker="$host_os dld.so"
16267     shlibpath_var=LD_LIBRARY_PATH
16268     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16269     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16270     soname_spec='${libname}${release}${shared_ext}$major'
16271     if test "X$HPUX_IA64_MODE" = X32; then
16272       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16273     else
16274       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16275     fi
16276     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16277     ;;
16278    hppa*64*)
16279      shrext_cmds='.sl'
16280      hardcode_into_libs=yes
16281      dynamic_linker="$host_os dld.sl"
16282      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16283      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16284      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16285      soname_spec='${libname}${release}${shared_ext}$major'
16286      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16287      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16288      ;;
16289    *)
16290     shrext_cmds='.sl'
16291     dynamic_linker="$host_os dld.sl"
16292     shlibpath_var=SHLIB_PATH
16293     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16295     soname_spec='${libname}${release}${shared_ext}$major'
16296     ;;
16297   esac
16298   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16299   postinstall_cmds='chmod 555 $lib'
16300   ;;
16301
16302 interix3*)
16303   version_type=linux
16304   need_lib_prefix=no
16305   need_version=no
16306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16307   soname_spec='${libname}${release}${shared_ext}$major'
16308   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16309   shlibpath_var=LD_LIBRARY_PATH
16310   shlibpath_overrides_runpath=no
16311   hardcode_into_libs=yes
16312   ;;
16313
16314 irix5* | irix6* | nonstopux*)
16315   case $host_os in
16316     nonstopux*) version_type=nonstopux ;;
16317     *)
16318         if test "$lt_cv_prog_gnu_ld" = yes; then
16319                 version_type=linux
16320         else
16321                 version_type=irix
16322         fi ;;
16323   esac
16324   need_lib_prefix=no
16325   need_version=no
16326   soname_spec='${libname}${release}${shared_ext}$major'
16327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16328   case $host_os in
16329   irix5* | nonstopux*)
16330     libsuff= shlibsuff=
16331     ;;
16332   *)
16333     case $LD in # libtool.m4 will add one of these switches to LD
16334     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16335       libsuff= shlibsuff= libmagic=32-bit;;
16336     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16337       libsuff=32 shlibsuff=N32 libmagic=N32;;
16338     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16339       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16340     *) libsuff= shlibsuff= libmagic=never-match;;
16341     esac
16342     ;;
16343   esac
16344   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16345   shlibpath_overrides_runpath=no
16346   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16347   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16348   hardcode_into_libs=yes
16349   ;;
16350
16351 # No shared lib support for Linux oldld, aout, or coff.
16352 linux*oldld* | linux*aout* | linux*coff*)
16353   dynamic_linker=no
16354   ;;
16355
16356 # This must be Linux ELF.
16357 linux*)
16358   version_type=linux
16359   need_lib_prefix=no
16360   need_version=no
16361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16362   soname_spec='${libname}${release}${shared_ext}$major'
16363   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16364   shlibpath_var=LD_LIBRARY_PATH
16365   shlibpath_overrides_runpath=no
16366   # This implies no fast_install, which is unacceptable.
16367   # Some rework will be needed to allow for fast_install
16368   # before this can be enabled.
16369   hardcode_into_libs=yes
16370
16371   # Append ld.so.conf contents to the search path
16372   if test -f /etc/ld.so.conf; then
16373     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' ' '`
16374     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16375   fi
16376
16377   # We used to test for /lib/ld.so.1 and disable shared libraries on
16378   # powerpc, because MkLinux only supported shared libraries with the
16379   # GNU dynamic linker.  Since this was broken with cross compilers,
16380   # most powerpc-linux boxes support dynamic linking these days and
16381   # people can always --disable-shared, the test was removed, and we
16382   # assume the GNU/Linux dynamic linker is in use.
16383   dynamic_linker='GNU/Linux ld.so'
16384   ;;
16385
16386 knetbsd*-gnu)
16387   version_type=linux
16388   need_lib_prefix=no
16389   need_version=no
16390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16391   soname_spec='${libname}${release}${shared_ext}$major'
16392   shlibpath_var=LD_LIBRARY_PATH
16393   shlibpath_overrides_runpath=no
16394   hardcode_into_libs=yes
16395   dynamic_linker='GNU ld.so'
16396   ;;
16397
16398 netbsd*)
16399   version_type=sunos
16400   need_lib_prefix=no
16401   need_version=no
16402   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16404     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16405     dynamic_linker='NetBSD (a.out) ld.so'
16406   else
16407     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16408     soname_spec='${libname}${release}${shared_ext}$major'
16409     dynamic_linker='NetBSD ld.elf_so'
16410   fi
16411   shlibpath_var=LD_LIBRARY_PATH
16412   shlibpath_overrides_runpath=yes
16413   hardcode_into_libs=yes
16414   ;;
16415
16416 newsos6)
16417   version_type=linux
16418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16419   shlibpath_var=LD_LIBRARY_PATH
16420   shlibpath_overrides_runpath=yes
16421   ;;
16422
16423 nto-qnx*)
16424   version_type=linux
16425   need_lib_prefix=no
16426   need_version=no
16427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428   soname_spec='${libname}${release}${shared_ext}$major'
16429   shlibpath_var=LD_LIBRARY_PATH
16430   shlibpath_overrides_runpath=yes
16431   ;;
16432
16433 openbsd*)
16434   version_type=sunos
16435   sys_lib_dlsearch_path_spec="/usr/lib"
16436   need_lib_prefix=no
16437   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16438   case $host_os in
16439     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16440     *)                         need_version=no  ;;
16441   esac
16442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16443   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16444   shlibpath_var=LD_LIBRARY_PATH
16445   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16446     case $host_os in
16447       openbsd2.[89] | openbsd2.[89].*)
16448         shlibpath_overrides_runpath=no
16449         ;;
16450       *)
16451         shlibpath_overrides_runpath=yes
16452         ;;
16453       esac
16454   else
16455     shlibpath_overrides_runpath=yes
16456   fi
16457   ;;
16458
16459 os2*)
16460   libname_spec='$name'
16461   shrext_cmds=".dll"
16462   need_lib_prefix=no
16463   library_names_spec='$libname${shared_ext} $libname.a'
16464   dynamic_linker='OS/2 ld.exe'
16465   shlibpath_var=LIBPATH
16466   ;;
16467
16468 osf3* | osf4* | osf5*)
16469   version_type=osf
16470   need_lib_prefix=no
16471   need_version=no
16472   soname_spec='${libname}${release}${shared_ext}$major'
16473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16474   shlibpath_var=LD_LIBRARY_PATH
16475   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16476   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16477   ;;
16478
16479 solaris*)
16480   version_type=linux
16481   need_lib_prefix=no
16482   need_version=no
16483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16484   soname_spec='${libname}${release}${shared_ext}$major'
16485   shlibpath_var=LD_LIBRARY_PATH
16486   shlibpath_overrides_runpath=yes
16487   hardcode_into_libs=yes
16488   # ldd complains unless libraries are executable
16489   postinstall_cmds='chmod +x $lib'
16490   ;;
16491
16492 sunos4*)
16493   version_type=sunos
16494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16495   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16496   shlibpath_var=LD_LIBRARY_PATH
16497   shlibpath_overrides_runpath=yes
16498   if test "$with_gnu_ld" = yes; then
16499     need_lib_prefix=no
16500   fi
16501   need_version=yes
16502   ;;
16503
16504 sysv4 | sysv4.3*)
16505   version_type=linux
16506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16507   soname_spec='${libname}${release}${shared_ext}$major'
16508   shlibpath_var=LD_LIBRARY_PATH
16509   case $host_vendor in
16510     sni)
16511       shlibpath_overrides_runpath=no
16512       need_lib_prefix=no
16513       export_dynamic_flag_spec='${wl}-Blargedynsym'
16514       runpath_var=LD_RUN_PATH
16515       ;;
16516     siemens)
16517       need_lib_prefix=no
16518       ;;
16519     motorola)
16520       need_lib_prefix=no
16521       need_version=no
16522       shlibpath_overrides_runpath=no
16523       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16524       ;;
16525   esac
16526   ;;
16527
16528 sysv4*MP*)
16529   if test -d /usr/nec ;then
16530     version_type=linux
16531     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16532     soname_spec='$libname${shared_ext}.$major'
16533     shlibpath_var=LD_LIBRARY_PATH
16534   fi
16535   ;;
16536
16537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16538   version_type=freebsd-elf
16539   need_lib_prefix=no
16540   need_version=no
16541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16542   soname_spec='${libname}${release}${shared_ext}$major'
16543   shlibpath_var=LD_LIBRARY_PATH
16544   hardcode_into_libs=yes
16545   if test "$with_gnu_ld" = yes; then
16546     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16547     shlibpath_overrides_runpath=no
16548   else
16549     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16550     shlibpath_overrides_runpath=yes
16551     case $host_os in
16552       sco3.2v5*)
16553         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16554         ;;
16555     esac
16556   fi
16557   sys_lib_dlsearch_path_spec='/usr/lib'
16558   ;;
16559
16560 uts4*)
16561   version_type=linux
16562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16563   soname_spec='${libname}${release}${shared_ext}$major'
16564   shlibpath_var=LD_LIBRARY_PATH
16565   ;;
16566
16567 *)
16568   dynamic_linker=no
16569   ;;
16570 esac
16571 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16572 echo "${ECHO_T}$dynamic_linker" >&6; }
16573 test "$dynamic_linker" = no && can_build_shared=no
16574
16575 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16576 if test "$GCC" = yes; then
16577   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16578 fi
16579
16580 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16581 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16582 hardcode_action=
16583 if test -n "$hardcode_libdir_flag_spec" || \
16584    test -n "$runpath_var" || \
16585    test "X$hardcode_automatic" = "Xyes" ; then
16586
16587   # We can hardcode non-existant directories.
16588   if test "$hardcode_direct" != no &&
16589      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16590      # have to relink, otherwise we might link with an installed library
16591      # when we should be linking with a yet-to-be-installed one
16592      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16593      test "$hardcode_minus_L" != no; then
16594     # Linking always hardcodes the temporary library directory.
16595     hardcode_action=relink
16596   else
16597     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16598     hardcode_action=immediate
16599   fi
16600 else
16601   # We cannot hardcode anything, or else we can only hardcode existing
16602   # directories.
16603   hardcode_action=unsupported
16604 fi
16605 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16606 echo "${ECHO_T}$hardcode_action" >&6; }
16607
16608 if test "$hardcode_action" = relink; then
16609   # Fast installation is not supported
16610   enable_fast_install=no
16611 elif test "$shlibpath_overrides_runpath" = yes ||
16612      test "$enable_shared" = no; then
16613   # Fast installation is not necessary
16614   enable_fast_install=needless
16615 fi
16616
16617 striplib=
16618 old_striplib=
16619 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16620 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16621 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16622   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16623   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16624   { echo "$as_me:$LINENO: result: yes" >&5
16625 echo "${ECHO_T}yes" >&6; }
16626 else
16627 # FIXME - insert some real tests, host_os isn't really good enough
16628   case $host_os in
16629    darwin*)
16630        if test -n "$STRIP" ; then
16631          striplib="$STRIP -x"
16632          { echo "$as_me:$LINENO: result: yes" >&5
16633 echo "${ECHO_T}yes" >&6; }
16634        else
16635   { echo "$as_me:$LINENO: result: no" >&5
16636 echo "${ECHO_T}no" >&6; }
16637 fi
16638        ;;
16639    *)
16640   { echo "$as_me:$LINENO: result: no" >&5
16641 echo "${ECHO_T}no" >&6; }
16642     ;;
16643   esac
16644 fi
16645
16646 if test "x$enable_dlopen" != xyes; then
16647   enable_dlopen=unknown
16648   enable_dlopen_self=unknown
16649   enable_dlopen_self_static=unknown
16650 else
16651   lt_cv_dlopen=no
16652   lt_cv_dlopen_libs=
16653
16654   case $host_os in
16655   beos*)
16656     lt_cv_dlopen="load_add_on"
16657     lt_cv_dlopen_libs=
16658     lt_cv_dlopen_self=yes
16659     ;;
16660
16661   mingw* | pw32*)
16662     lt_cv_dlopen="LoadLibrary"
16663     lt_cv_dlopen_libs=
16664    ;;
16665
16666   cygwin*)
16667     lt_cv_dlopen="dlopen"
16668     lt_cv_dlopen_libs=
16669    ;;
16670
16671   darwin*)
16672   # if libdl is installed we need to link against it
16673     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16674 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16675 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16676   echo $ECHO_N "(cached) $ECHO_C" >&6
16677 else
16678   ac_check_lib_save_LIBS=$LIBS
16679 LIBS="-ldl  $LIBS"
16680 cat >conftest.$ac_ext <<_ACEOF
16681 /* confdefs.h.  */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h.  */
16686
16687 /* Override any GCC internal prototype to avoid an error.
16688    Use char because int might match the return type of a GCC
16689    builtin and then its argument prototype would still apply.  */
16690 #ifdef __cplusplus
16691 extern "C"
16692 #endif
16693 char dlopen ();
16694 int
16695 main ()
16696 {
16697 return dlopen ();
16698   ;
16699   return 0;
16700 }
16701 _ACEOF
16702 rm -f conftest.$ac_objext conftest$ac_exeext
16703 if { (ac_try="$ac_link"
16704 case "(($ac_try" in
16705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706   *) ac_try_echo=$ac_try;;
16707 esac
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709   (eval "$ac_link") 2>conftest.er1
16710   ac_status=$?
16711   grep -v '^ *+' conftest.er1 >conftest.err
16712   rm -f conftest.er1
16713   cat conftest.err >&5
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); } &&
16716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16717   { (case "(($ac_try" in
16718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719   *) ac_try_echo=$ac_try;;
16720 esac
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722   (eval "$ac_try") 2>&5
16723   ac_status=$?
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); }; } &&
16726          { ac_try='test -s conftest$ac_exeext'
16727   { (case "(($ac_try" in
16728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729   *) ac_try_echo=$ac_try;;
16730 esac
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732   (eval "$ac_try") 2>&5
16733   ac_status=$?
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); }; }; then
16736   ac_cv_lib_dl_dlopen=yes
16737 else
16738   echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16740
16741         ac_cv_lib_dl_dlopen=no
16742 fi
16743
16744 rm -f core conftest.err conftest.$ac_objext \
16745       conftest$ac_exeext conftest.$ac_ext
16746 LIBS=$ac_check_lib_save_LIBS
16747 fi
16748 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16749 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16750 if test $ac_cv_lib_dl_dlopen = yes; then
16751   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16752 else
16753
16754     lt_cv_dlopen="dyld"
16755     lt_cv_dlopen_libs=
16756     lt_cv_dlopen_self=yes
16757
16758 fi
16759
16760    ;;
16761
16762   *)
16763     { echo "$as_me:$LINENO: checking for shl_load" >&5
16764 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16765 if test "${ac_cv_func_shl_load+set}" = set; then
16766   echo $ECHO_N "(cached) $ECHO_C" >&6
16767 else
16768   cat >conftest.$ac_ext <<_ACEOF
16769 /* confdefs.h.  */
16770 _ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h.  */
16774 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16776 #define shl_load innocuous_shl_load
16777
16778 /* System header to define __stub macros and hopefully few prototypes,
16779     which can conflict with char shl_load (); below.
16780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16781     <limits.h> exists even on freestanding compilers.  */
16782
16783 #ifdef __STDC__
16784 # include <limits.h>
16785 #else
16786 # include <assert.h>
16787 #endif
16788
16789 #undef shl_load
16790
16791 /* Override any GCC internal prototype to avoid an error.
16792    Use char because int might match the return type of a GCC
16793    builtin and then its argument prototype would still apply.  */
16794 #ifdef __cplusplus
16795 extern "C"
16796 #endif
16797 char shl_load ();
16798 /* The GNU C library defines this for functions which it implements
16799     to always fail with ENOSYS.  Some functions are actually named
16800     something starting with __ and the normal name is an alias.  */
16801 #if defined __stub_shl_load || defined __stub___shl_load
16802 choke me
16803 #endif
16804
16805 int
16806 main ()
16807 {
16808 return shl_load ();
16809   ;
16810   return 0;
16811 }
16812 _ACEOF
16813 rm -f conftest.$ac_objext conftest$ac_exeext
16814 if { (ac_try="$ac_link"
16815 case "(($ac_try" in
16816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817   *) ac_try_echo=$ac_try;;
16818 esac
16819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820   (eval "$ac_link") 2>conftest.er1
16821   ac_status=$?
16822   grep -v '^ *+' conftest.er1 >conftest.err
16823   rm -f conftest.er1
16824   cat conftest.err >&5
16825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826   (exit $ac_status); } &&
16827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16828   { (case "(($ac_try" in
16829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830   *) ac_try_echo=$ac_try;;
16831 esac
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833   (eval "$ac_try") 2>&5
16834   ac_status=$?
16835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836   (exit $ac_status); }; } &&
16837          { ac_try='test -s conftest$ac_exeext'
16838   { (case "(($ac_try" in
16839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840   *) ac_try_echo=$ac_try;;
16841 esac
16842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843   (eval "$ac_try") 2>&5
16844   ac_status=$?
16845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846   (exit $ac_status); }; }; then
16847   ac_cv_func_shl_load=yes
16848 else
16849   echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.$ac_ext >&5
16851
16852         ac_cv_func_shl_load=no
16853 fi
16854
16855 rm -f core conftest.err conftest.$ac_objext \
16856       conftest$ac_exeext conftest.$ac_ext
16857 fi
16858 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16859 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16860 if test $ac_cv_func_shl_load = yes; then
16861   lt_cv_dlopen="shl_load"
16862 else
16863   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16864 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16865 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16866   echo $ECHO_N "(cached) $ECHO_C" >&6
16867 else
16868   ac_check_lib_save_LIBS=$LIBS
16869 LIBS="-ldld  $LIBS"
16870 cat >conftest.$ac_ext <<_ACEOF
16871 /* confdefs.h.  */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h.  */
16876
16877 /* Override any GCC internal prototype to avoid an error.
16878    Use char because int might match the return type of a GCC
16879    builtin and then its argument prototype would still apply.  */
16880 #ifdef __cplusplus
16881 extern "C"
16882 #endif
16883 char shl_load ();
16884 int
16885 main ()
16886 {
16887 return shl_load ();
16888   ;
16889   return 0;
16890 }
16891 _ACEOF
16892 rm -f conftest.$ac_objext conftest$ac_exeext
16893 if { (ac_try="$ac_link"
16894 case "(($ac_try" in
16895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896   *) ac_try_echo=$ac_try;;
16897 esac
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899   (eval "$ac_link") 2>conftest.er1
16900   ac_status=$?
16901   grep -v '^ *+' conftest.er1 >conftest.err
16902   rm -f conftest.er1
16903   cat conftest.err >&5
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); } &&
16906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16907   { (case "(($ac_try" in
16908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909   *) ac_try_echo=$ac_try;;
16910 esac
16911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912   (eval "$ac_try") 2>&5
16913   ac_status=$?
16914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915   (exit $ac_status); }; } &&
16916          { ac_try='test -s conftest$ac_exeext'
16917   { (case "(($ac_try" in
16918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919   *) ac_try_echo=$ac_try;;
16920 esac
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922   (eval "$ac_try") 2>&5
16923   ac_status=$?
16924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925   (exit $ac_status); }; }; then
16926   ac_cv_lib_dld_shl_load=yes
16927 else
16928   echo "$as_me: failed program was:" >&5
16929 sed 's/^/| /' conftest.$ac_ext >&5
16930
16931         ac_cv_lib_dld_shl_load=no
16932 fi
16933
16934 rm -f core conftest.err conftest.$ac_objext \
16935       conftest$ac_exeext conftest.$ac_ext
16936 LIBS=$ac_check_lib_save_LIBS
16937 fi
16938 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16939 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16940 if test $ac_cv_lib_dld_shl_load = yes; then
16941   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16942 else
16943   { echo "$as_me:$LINENO: checking for dlopen" >&5
16944 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16945 if test "${ac_cv_func_dlopen+set}" = set; then
16946   echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948   cat >conftest.$ac_ext <<_ACEOF
16949 /* confdefs.h.  */
16950 _ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h.  */
16954 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16956 #define dlopen innocuous_dlopen
16957
16958 /* System header to define __stub macros and hopefully few prototypes,
16959     which can conflict with char dlopen (); below.
16960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16961     <limits.h> exists even on freestanding compilers.  */
16962
16963 #ifdef __STDC__
16964 # include <limits.h>
16965 #else
16966 # include <assert.h>
16967 #endif
16968
16969 #undef dlopen
16970
16971 /* Override any GCC internal prototype to avoid an error.
16972    Use char because int might match the return type of a GCC
16973    builtin and then its argument prototype would still apply.  */
16974 #ifdef __cplusplus
16975 extern "C"
16976 #endif
16977 char dlopen ();
16978 /* The GNU C library defines this for functions which it implements
16979     to always fail with ENOSYS.  Some functions are actually named
16980     something starting with __ and the normal name is an alias.  */
16981 #if defined __stub_dlopen || defined __stub___dlopen
16982 choke me
16983 #endif
16984
16985 int
16986 main ()
16987 {
16988 return dlopen ();
16989   ;
16990   return 0;
16991 }
16992 _ACEOF
16993 rm -f conftest.$ac_objext conftest$ac_exeext
16994 if { (ac_try="$ac_link"
16995 case "(($ac_try" in
16996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997   *) ac_try_echo=$ac_try;;
16998 esac
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000   (eval "$ac_link") 2>conftest.er1
17001   ac_status=$?
17002   grep -v '^ *+' conftest.er1 >conftest.err
17003   rm -f conftest.er1
17004   cat conftest.err >&5
17005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006   (exit $ac_status); } &&
17007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17008   { (case "(($ac_try" in
17009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010   *) ac_try_echo=$ac_try;;
17011 esac
17012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013   (eval "$ac_try") 2>&5
17014   ac_status=$?
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); }; } &&
17017          { ac_try='test -s conftest$ac_exeext'
17018   { (case "(($ac_try" in
17019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020   *) ac_try_echo=$ac_try;;
17021 esac
17022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17023   (eval "$ac_try") 2>&5
17024   ac_status=$?
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); }; }; then
17027   ac_cv_func_dlopen=yes
17028 else
17029   echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17031
17032         ac_cv_func_dlopen=no
17033 fi
17034
17035 rm -f core conftest.err conftest.$ac_objext \
17036       conftest$ac_exeext conftest.$ac_ext
17037 fi
17038 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17039 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17040 if test $ac_cv_func_dlopen = yes; then
17041   lt_cv_dlopen="dlopen"
17042 else
17043   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17044 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17045 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17046   echo $ECHO_N "(cached) $ECHO_C" >&6
17047 else
17048   ac_check_lib_save_LIBS=$LIBS
17049 LIBS="-ldl  $LIBS"
17050 cat >conftest.$ac_ext <<_ACEOF
17051 /* confdefs.h.  */
17052 _ACEOF
17053 cat confdefs.h >>conftest.$ac_ext
17054 cat >>conftest.$ac_ext <<_ACEOF
17055 /* end confdefs.h.  */
17056
17057 /* Override any GCC internal prototype to avoid an error.
17058    Use char because int might match the return type of a GCC
17059    builtin and then its argument prototype would still apply.  */
17060 #ifdef __cplusplus
17061 extern "C"
17062 #endif
17063 char dlopen ();
17064 int
17065 main ()
17066 {
17067 return dlopen ();
17068   ;
17069   return 0;
17070 }
17071 _ACEOF
17072 rm -f conftest.$ac_objext conftest$ac_exeext
17073 if { (ac_try="$ac_link"
17074 case "(($ac_try" in
17075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076   *) ac_try_echo=$ac_try;;
17077 esac
17078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17079   (eval "$ac_link") 2>conftest.er1
17080   ac_status=$?
17081   grep -v '^ *+' conftest.er1 >conftest.err
17082   rm -f conftest.er1
17083   cat conftest.err >&5
17084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085   (exit $ac_status); } &&
17086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17087   { (case "(($ac_try" in
17088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089   *) ac_try_echo=$ac_try;;
17090 esac
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092   (eval "$ac_try") 2>&5
17093   ac_status=$?
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); }; } &&
17096          { ac_try='test -s conftest$ac_exeext'
17097   { (case "(($ac_try" in
17098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099   *) ac_try_echo=$ac_try;;
17100 esac
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102   (eval "$ac_try") 2>&5
17103   ac_status=$?
17104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105   (exit $ac_status); }; }; then
17106   ac_cv_lib_dl_dlopen=yes
17107 else
17108   echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17110
17111         ac_cv_lib_dl_dlopen=no
17112 fi
17113
17114 rm -f core conftest.err conftest.$ac_objext \
17115       conftest$ac_exeext conftest.$ac_ext
17116 LIBS=$ac_check_lib_save_LIBS
17117 fi
17118 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17119 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17120 if test $ac_cv_lib_dl_dlopen = yes; then
17121   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17122 else
17123   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17124 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17125 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17126   echo $ECHO_N "(cached) $ECHO_C" >&6
17127 else
17128   ac_check_lib_save_LIBS=$LIBS
17129 LIBS="-lsvld  $LIBS"
17130 cat >conftest.$ac_ext <<_ACEOF
17131 /* confdefs.h.  */
17132 _ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h.  */
17136
17137 /* Override any GCC internal prototype to avoid an error.
17138    Use char because int might match the return type of a GCC
17139    builtin and then its argument prototype would still apply.  */
17140 #ifdef __cplusplus
17141 extern "C"
17142 #endif
17143 char dlopen ();
17144 int
17145 main ()
17146 {
17147 return dlopen ();
17148   ;
17149   return 0;
17150 }
17151 _ACEOF
17152 rm -f conftest.$ac_objext conftest$ac_exeext
17153 if { (ac_try="$ac_link"
17154 case "(($ac_try" in
17155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156   *) ac_try_echo=$ac_try;;
17157 esac
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159   (eval "$ac_link") 2>conftest.er1
17160   ac_status=$?
17161   grep -v '^ *+' conftest.er1 >conftest.err
17162   rm -f conftest.er1
17163   cat conftest.err >&5
17164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165   (exit $ac_status); } &&
17166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17167   { (case "(($ac_try" in
17168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169   *) ac_try_echo=$ac_try;;
17170 esac
17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172   (eval "$ac_try") 2>&5
17173   ac_status=$?
17174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175   (exit $ac_status); }; } &&
17176          { ac_try='test -s conftest$ac_exeext'
17177   { (case "(($ac_try" in
17178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179   *) ac_try_echo=$ac_try;;
17180 esac
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182   (eval "$ac_try") 2>&5
17183   ac_status=$?
17184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185   (exit $ac_status); }; }; then
17186   ac_cv_lib_svld_dlopen=yes
17187 else
17188   echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.$ac_ext >&5
17190
17191         ac_cv_lib_svld_dlopen=no
17192 fi
17193
17194 rm -f core conftest.err conftest.$ac_objext \
17195       conftest$ac_exeext conftest.$ac_ext
17196 LIBS=$ac_check_lib_save_LIBS
17197 fi
17198 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17199 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17200 if test $ac_cv_lib_svld_dlopen = yes; then
17201   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17202 else
17203   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17204 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17205 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17206   echo $ECHO_N "(cached) $ECHO_C" >&6
17207 else
17208   ac_check_lib_save_LIBS=$LIBS
17209 LIBS="-ldld  $LIBS"
17210 cat >conftest.$ac_ext <<_ACEOF
17211 /* confdefs.h.  */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h.  */
17216
17217 /* Override any GCC internal prototype to avoid an error.
17218    Use char because int might match the return type of a GCC
17219    builtin and then its argument prototype would still apply.  */
17220 #ifdef __cplusplus
17221 extern "C"
17222 #endif
17223 char dld_link ();
17224 int
17225 main ()
17226 {
17227 return dld_link ();
17228   ;
17229   return 0;
17230 }
17231 _ACEOF
17232 rm -f conftest.$ac_objext conftest$ac_exeext
17233 if { (ac_try="$ac_link"
17234 case "(($ac_try" in
17235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236   *) ac_try_echo=$ac_try;;
17237 esac
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239   (eval "$ac_link") 2>conftest.er1
17240   ac_status=$?
17241   grep -v '^ *+' conftest.er1 >conftest.err
17242   rm -f conftest.er1
17243   cat conftest.err >&5
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); } &&
17246          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17247   { (case "(($ac_try" in
17248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249   *) ac_try_echo=$ac_try;;
17250 esac
17251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252   (eval "$ac_try") 2>&5
17253   ac_status=$?
17254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255   (exit $ac_status); }; } &&
17256          { ac_try='test -s conftest$ac_exeext'
17257   { (case "(($ac_try" in
17258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259   *) ac_try_echo=$ac_try;;
17260 esac
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262   (eval "$ac_try") 2>&5
17263   ac_status=$?
17264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265   (exit $ac_status); }; }; then
17266   ac_cv_lib_dld_dld_link=yes
17267 else
17268   echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17270
17271         ac_cv_lib_dld_dld_link=no
17272 fi
17273
17274 rm -f core conftest.err conftest.$ac_objext \
17275       conftest$ac_exeext conftest.$ac_ext
17276 LIBS=$ac_check_lib_save_LIBS
17277 fi
17278 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17279 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17280 if test $ac_cv_lib_dld_dld_link = yes; then
17281   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17282 fi
17283
17284
17285 fi
17286
17287
17288 fi
17289
17290
17291 fi
17292
17293
17294 fi
17295
17296
17297 fi
17298
17299     ;;
17300   esac
17301
17302   if test "x$lt_cv_dlopen" != xno; then
17303     enable_dlopen=yes
17304   else
17305     enable_dlopen=no
17306   fi
17307
17308   case $lt_cv_dlopen in
17309   dlopen)
17310     save_CPPFLAGS="$CPPFLAGS"
17311     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17312
17313     save_LDFLAGS="$LDFLAGS"
17314     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17315
17316     save_LIBS="$LIBS"
17317     LIBS="$lt_cv_dlopen_libs $LIBS"
17318
17319     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17320 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17321 if test "${lt_cv_dlopen_self+set}" = set; then
17322   echo $ECHO_N "(cached) $ECHO_C" >&6
17323 else
17324           if test "$cross_compiling" = yes; then :
17325   lt_cv_dlopen_self=cross
17326 else
17327   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17328   lt_status=$lt_dlunknown
17329   cat > conftest.$ac_ext <<EOF
17330 #line 17330 "configure"
17331 #include "confdefs.h"
17332
17333 #if HAVE_DLFCN_H
17334 #include <dlfcn.h>
17335 #endif
17336
17337 #include <stdio.h>
17338
17339 #ifdef RTLD_GLOBAL
17340 #  define LT_DLGLOBAL           RTLD_GLOBAL
17341 #else
17342 #  ifdef DL_GLOBAL
17343 #    define LT_DLGLOBAL         DL_GLOBAL
17344 #  else
17345 #    define LT_DLGLOBAL         0
17346 #  endif
17347 #endif
17348
17349 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17350    find out it does not work in some platform. */
17351 #ifndef LT_DLLAZY_OR_NOW
17352 #  ifdef RTLD_LAZY
17353 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17354 #  else
17355 #    ifdef DL_LAZY
17356 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17357 #    else
17358 #      ifdef RTLD_NOW
17359 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17360 #      else
17361 #        ifdef DL_NOW
17362 #          define LT_DLLAZY_OR_NOW      DL_NOW
17363 #        else
17364 #          define LT_DLLAZY_OR_NOW      0
17365 #        endif
17366 #      endif
17367 #    endif
17368 #  endif
17369 #endif
17370
17371 #ifdef __cplusplus
17372 extern "C" void exit (int);
17373 #endif
17374
17375 void fnord() { int i=42;}
17376 int main ()
17377 {
17378   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17379   int status = $lt_dlunknown;
17380
17381   if (self)
17382     {
17383       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17384       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17385       /* dlclose (self); */
17386     }
17387   else
17388     puts (dlerror ());
17389
17390     exit (status);
17391 }
17392 EOF
17393   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17394   (eval $ac_link) 2>&5
17395   ac_status=$?
17396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17398     (./conftest; exit; ) >&5 2>/dev/null
17399     lt_status=$?
17400     case x$lt_status in
17401       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17402       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17403       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17404     esac
17405   else :
17406     # compilation failed
17407     lt_cv_dlopen_self=no
17408   fi
17409 fi
17410 rm -fr conftest*
17411
17412
17413 fi
17414 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17415 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17416
17417     if test "x$lt_cv_dlopen_self" = xyes; then
17418       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17419       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17420 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17421 if test "${lt_cv_dlopen_self_static+set}" = set; then
17422   echo $ECHO_N "(cached) $ECHO_C" >&6
17423 else
17424           if test "$cross_compiling" = yes; then :
17425   lt_cv_dlopen_self_static=cross
17426 else
17427   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17428   lt_status=$lt_dlunknown
17429   cat > conftest.$ac_ext <<EOF
17430 #line 17430 "configure"
17431 #include "confdefs.h"
17432
17433 #if HAVE_DLFCN_H
17434 #include <dlfcn.h>
17435 #endif
17436
17437 #include <stdio.h>
17438
17439 #ifdef RTLD_GLOBAL
17440 #  define LT_DLGLOBAL           RTLD_GLOBAL
17441 #else
17442 #  ifdef DL_GLOBAL
17443 #    define LT_DLGLOBAL         DL_GLOBAL
17444 #  else
17445 #    define LT_DLGLOBAL         0
17446 #  endif
17447 #endif
17448
17449 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17450    find out it does not work in some platform. */
17451 #ifndef LT_DLLAZY_OR_NOW
17452 #  ifdef RTLD_LAZY
17453 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17454 #  else
17455 #    ifdef DL_LAZY
17456 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17457 #    else
17458 #      ifdef RTLD_NOW
17459 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17460 #      else
17461 #        ifdef DL_NOW
17462 #          define LT_DLLAZY_OR_NOW      DL_NOW
17463 #        else
17464 #          define LT_DLLAZY_OR_NOW      0
17465 #        endif
17466 #      endif
17467 #    endif
17468 #  endif
17469 #endif
17470
17471 #ifdef __cplusplus
17472 extern "C" void exit (int);
17473 #endif
17474
17475 void fnord() { int i=42;}
17476 int main ()
17477 {
17478   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17479   int status = $lt_dlunknown;
17480
17481   if (self)
17482     {
17483       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17484       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17485       /* dlclose (self); */
17486     }
17487   else
17488     puts (dlerror ());
17489
17490     exit (status);
17491 }
17492 EOF
17493   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17494   (eval $ac_link) 2>&5
17495   ac_status=$?
17496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17498     (./conftest; exit; ) >&5 2>/dev/null
17499     lt_status=$?
17500     case x$lt_status in
17501       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17502       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17503       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17504     esac
17505   else :
17506     # compilation failed
17507     lt_cv_dlopen_self_static=no
17508   fi
17509 fi
17510 rm -fr conftest*
17511
17512
17513 fi
17514 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17515 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17516     fi
17517
17518     CPPFLAGS="$save_CPPFLAGS"
17519     LDFLAGS="$save_LDFLAGS"
17520     LIBS="$save_LIBS"
17521     ;;
17522   esac
17523
17524   case $lt_cv_dlopen_self in
17525   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17526   *) enable_dlopen_self=unknown ;;
17527   esac
17528
17529   case $lt_cv_dlopen_self_static in
17530   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17531   *) enable_dlopen_self_static=unknown ;;
17532   esac
17533 fi
17534
17535
17536 # Report which library types will actually be built
17537 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17538 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17539 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17540 echo "${ECHO_T}$can_build_shared" >&6; }
17541
17542 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17543 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17544 test "$can_build_shared" = "no" && enable_shared=no
17545
17546 # On AIX, shared libraries and static libraries use the same namespace, and
17547 # are all built from PIC.
17548 case $host_os in
17549 aix3*)
17550   test "$enable_shared" = yes && enable_static=no
17551   if test -n "$RANLIB"; then
17552     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17553     postinstall_cmds='$RANLIB $lib'
17554   fi
17555   ;;
17556
17557 aix4* | aix5*)
17558   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17559     test "$enable_shared" = yes && enable_static=no
17560   fi
17561     ;;
17562 esac
17563 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17564 echo "${ECHO_T}$enable_shared" >&6; }
17565
17566 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17567 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17568 # Make sure either enable_shared or enable_static is yes.
17569 test "$enable_shared" = yes || enable_static=yes
17570 { echo "$as_me:$LINENO: result: $enable_static" >&5
17571 echo "${ECHO_T}$enable_static" >&6; }
17572
17573 # The else clause should only fire when bootstrapping the
17574 # libtool distribution, otherwise you forgot to ship ltmain.sh
17575 # with your package, and you will get complaints that there are
17576 # no rules to generate ltmain.sh.
17577 if test -f "$ltmain"; then
17578   # See if we are running on zsh, and set the options which allow our commands through
17579   # without removal of \ escapes.
17580   if test -n "${ZSH_VERSION+set}" ; then
17581     setopt NO_GLOB_SUBST
17582   fi
17583   # Now quote all the things that may contain metacharacters while being
17584   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17585   # variables and quote the copies for generation of the libtool script.
17586   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17587     SED SHELL STRIP \
17588     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17589     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17590     deplibs_check_method reload_flag reload_cmds need_locks \
17591     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17592     lt_cv_sys_global_symbol_to_c_name_address \
17593     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17594     old_postinstall_cmds old_postuninstall_cmds \
17595     compiler \
17596     CC \
17597     LD \
17598     lt_prog_compiler_wl \
17599     lt_prog_compiler_pic \
17600     lt_prog_compiler_static \
17601     lt_prog_compiler_no_builtin_flag \
17602     export_dynamic_flag_spec \
17603     thread_safe_flag_spec \
17604     whole_archive_flag_spec \
17605     enable_shared_with_static_runtimes \
17606     old_archive_cmds \
17607     old_archive_from_new_cmds \
17608     predep_objects \
17609     postdep_objects \
17610     predeps \
17611     postdeps \
17612     compiler_lib_search_path \
17613     archive_cmds \
17614     archive_expsym_cmds \
17615     postinstall_cmds \
17616     postuninstall_cmds \
17617     old_archive_from_expsyms_cmds \
17618     allow_undefined_flag \
17619     no_undefined_flag \
17620     export_symbols_cmds \
17621     hardcode_libdir_flag_spec \
17622     hardcode_libdir_flag_spec_ld \
17623     hardcode_libdir_separator \
17624     hardcode_automatic \
17625     module_cmds \
17626     module_expsym_cmds \
17627     lt_cv_prog_compiler_c_o \
17628     exclude_expsyms \
17629     include_expsyms; do
17630
17631     case $var in
17632     old_archive_cmds | \
17633     old_archive_from_new_cmds | \
17634     archive_cmds | \
17635     archive_expsym_cmds | \
17636     module_cmds | \
17637     module_expsym_cmds | \
17638     old_archive_from_expsyms_cmds | \
17639     export_symbols_cmds | \
17640     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17641     postinstall_cmds | postuninstall_cmds | \
17642     old_postinstall_cmds | old_postuninstall_cmds | \
17643     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17644       # Double-quote double-evaled strings.
17645       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17646       ;;
17647     *)
17648       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17649       ;;
17650     esac
17651   done
17652
17653   case $lt_echo in
17654   *'\$0 --fallback-echo"')
17655     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17656     ;;
17657   esac
17658
17659 cfgfile="${ofile}T"
17660   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17661   $rm -f "$cfgfile"
17662   { echo "$as_me:$LINENO: creating $ofile" >&5
17663 echo "$as_me: creating $ofile" >&6;}
17664
17665   cat <<__EOF__ >> "$cfgfile"
17666 #! $SHELL
17667
17668 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17669 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17670 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17671 #
17672 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17673 # Free Software Foundation, Inc.
17674 #
17675 # This file is part of GNU Libtool:
17676 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17677 #
17678 # This program is free software; you can redistribute it and/or modify
17679 # it under the terms of the GNU General Public License as published by
17680 # the Free Software Foundation; either version 2 of the License, or
17681 # (at your option) any later version.
17682 #
17683 # This program is distributed in the hope that it will be useful, but
17684 # WITHOUT ANY WARRANTY; without even the implied warranty of
17685 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17686 # General Public License for more details.
17687 #
17688 # You should have received a copy of the GNU General Public License
17689 # along with this program; if not, write to the Free Software
17690 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17691 #
17692 # As a special exception to the GNU General Public License, if you
17693 # distribute this file as part of a program that contains a
17694 # configuration script generated by Autoconf, you may include it under
17695 # the same distribution terms that you use for the rest of that program.
17696
17697 # A sed program that does not truncate output.
17698 SED=$lt_SED
17699
17700 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17701 Xsed="$SED -e 1s/^X//"
17702
17703 # The HP-UX ksh and POSIX shell print the target directory to stdout
17704 # if CDPATH is set.
17705 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17706
17707 # The names of the tagged configurations supported by this script.
17708 available_tags=
17709
17710 # ### BEGIN LIBTOOL CONFIG
17711
17712 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17713
17714 # Shell to use when invoking shell scripts.
17715 SHELL=$lt_SHELL
17716
17717 # Whether or not to build shared libraries.
17718 build_libtool_libs=$enable_shared
17719
17720 # Whether or not to build static libraries.
17721 build_old_libs=$enable_static
17722
17723 # Whether or not to add -lc for building shared libraries.
17724 build_libtool_need_lc=$archive_cmds_need_lc
17725
17726 # Whether or not to disallow shared libs when runtime libs are static
17727 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17728
17729 # Whether or not to optimize for fast installation.
17730 fast_install=$enable_fast_install
17731
17732 # The host system.
17733 host_alias=$host_alias
17734 host=$host
17735 host_os=$host_os
17736
17737 # The build system.
17738 build_alias=$build_alias
17739 build=$build
17740 build_os=$build_os
17741
17742 # An echo program that does not interpret backslashes.
17743 echo=$lt_echo
17744
17745 # The archiver.
17746 AR=$lt_AR
17747 AR_FLAGS=$lt_AR_FLAGS
17748
17749 # A C compiler.
17750 LTCC=$lt_LTCC
17751
17752 # LTCC compiler flags.
17753 LTCFLAGS=$lt_LTCFLAGS
17754
17755 # A language-specific compiler.
17756 CC=$lt_compiler
17757
17758 # Is the compiler the GNU C compiler?
17759 with_gcc=$GCC
17760
17761 # An ERE matcher.
17762 EGREP=$lt_EGREP
17763
17764 # The linker used to build libraries.
17765 LD=$lt_LD
17766
17767 # Whether we need hard or soft links.
17768 LN_S=$lt_LN_S
17769
17770 # A BSD-compatible nm program.
17771 NM=$lt_NM
17772
17773 # A symbol stripping program
17774 STRIP=$lt_STRIP
17775
17776 # Used to examine libraries when file_magic_cmd begins "file"
17777 MAGIC_CMD=$MAGIC_CMD
17778
17779 # Used on cygwin: DLL creation program.
17780 DLLTOOL="$DLLTOOL"
17781
17782 # Used on cygwin: object dumper.
17783 OBJDUMP="$OBJDUMP"
17784
17785 # Used on cygwin: assembler.
17786 AS="$AS"
17787
17788 # The name of the directory that contains temporary libtool files.
17789 objdir=$objdir
17790
17791 # How to create reloadable object files.
17792 reload_flag=$lt_reload_flag
17793 reload_cmds=$lt_reload_cmds
17794
17795 # How to pass a linker flag through the compiler.
17796 wl=$lt_lt_prog_compiler_wl
17797
17798 # Object file suffix (normally "o").
17799 objext="$ac_objext"
17800
17801 # Old archive suffix (normally "a").
17802 libext="$libext"
17803
17804 # Shared library suffix (normally ".so").
17805 shrext_cmds='$shrext_cmds'
17806
17807 # Executable file suffix (normally "").
17808 exeext="$exeext"
17809
17810 # Additional compiler flags for building library objects.
17811 pic_flag=$lt_lt_prog_compiler_pic
17812 pic_mode=$pic_mode
17813
17814 # What is the maximum length of a command?
17815 max_cmd_len=$lt_cv_sys_max_cmd_len
17816
17817 # Does compiler simultaneously support -c and -o options?
17818 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17819
17820 # Must we lock files when doing compilation?
17821 need_locks=$lt_need_locks
17822
17823 # Do we need the lib prefix for modules?
17824 need_lib_prefix=$need_lib_prefix
17825
17826 # Do we need a version for libraries?
17827 need_version=$need_version
17828
17829 # Whether dlopen is supported.
17830 dlopen_support=$enable_dlopen
17831
17832 # Whether dlopen of programs is supported.
17833 dlopen_self=$enable_dlopen_self
17834
17835 # Whether dlopen of statically linked programs is supported.
17836 dlopen_self_static=$enable_dlopen_self_static
17837
17838 # Compiler flag to prevent dynamic linking.
17839 link_static_flag=$lt_lt_prog_compiler_static
17840
17841 # Compiler flag to turn off builtin functions.
17842 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17843
17844 # Compiler flag to allow reflexive dlopens.
17845 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17846
17847 # Compiler flag to generate shared objects directly from archives.
17848 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17849
17850 # Compiler flag to generate thread-safe objects.
17851 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17852
17853 # Library versioning type.
17854 version_type=$version_type
17855
17856 # Format of library name prefix.
17857 libname_spec=$lt_libname_spec
17858
17859 # List of archive names.  First name is the real one, the rest are links.
17860 # The last name is the one that the linker finds with -lNAME.
17861 library_names_spec=$lt_library_names_spec
17862
17863 # The coded name of the library, if different from the real name.
17864 soname_spec=$lt_soname_spec
17865
17866 # Commands used to build and install an old-style archive.
17867 RANLIB=$lt_RANLIB
17868 old_archive_cmds=$lt_old_archive_cmds
17869 old_postinstall_cmds=$lt_old_postinstall_cmds
17870 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17871
17872 # Create an old-style archive from a shared archive.
17873 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17874
17875 # Create a temporary old-style archive to link instead of a shared archive.
17876 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17877
17878 # Commands used to build and install a shared archive.
17879 archive_cmds=$lt_archive_cmds
17880 archive_expsym_cmds=$lt_archive_expsym_cmds
17881 postinstall_cmds=$lt_postinstall_cmds
17882 postuninstall_cmds=$lt_postuninstall_cmds
17883
17884 # Commands used to build a loadable module (assumed same as above if empty)
17885 module_cmds=$lt_module_cmds
17886 module_expsym_cmds=$lt_module_expsym_cmds
17887
17888 # Commands to strip libraries.
17889 old_striplib=$lt_old_striplib
17890 striplib=$lt_striplib
17891
17892 # Dependencies to place before the objects being linked to create a
17893 # shared library.
17894 predep_objects=$lt_predep_objects
17895
17896 # Dependencies to place after the objects being linked to create a
17897 # shared library.
17898 postdep_objects=$lt_postdep_objects
17899
17900 # Dependencies to place before the objects being linked to create a
17901 # shared library.
17902 predeps=$lt_predeps
17903
17904 # Dependencies to place after the objects being linked to create a
17905 # shared library.
17906 postdeps=$lt_postdeps
17907
17908 # The library search path used internally by the compiler when linking
17909 # a shared library.
17910 compiler_lib_search_path=$lt_compiler_lib_search_path
17911
17912 # Method to check whether dependent libraries are shared objects.
17913 deplibs_check_method=$lt_deplibs_check_method
17914
17915 # Command to use when deplibs_check_method == file_magic.
17916 file_magic_cmd=$lt_file_magic_cmd
17917
17918 # Flag that allows shared libraries with undefined symbols to be built.
17919 allow_undefined_flag=$lt_allow_undefined_flag
17920
17921 # Flag that forces no undefined symbols.
17922 no_undefined_flag=$lt_no_undefined_flag
17923
17924 # Commands used to finish a libtool library installation in a directory.
17925 finish_cmds=$lt_finish_cmds
17926
17927 # Same as above, but a single script fragment to be evaled but not shown.
17928 finish_eval=$lt_finish_eval
17929
17930 # Take the output of nm and produce a listing of raw symbols and C names.
17931 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17932
17933 # Transform the output of nm in a proper C declaration
17934 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17935
17936 # Transform the output of nm in a C name address pair
17937 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17938
17939 # This is the shared library runtime path variable.
17940 runpath_var=$runpath_var
17941
17942 # This is the shared library path variable.
17943 shlibpath_var=$shlibpath_var
17944
17945 # Is shlibpath searched before the hard-coded library search path?
17946 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17947
17948 # How to hardcode a shared library path into an executable.
17949 hardcode_action=$hardcode_action
17950
17951 # Whether we should hardcode library paths into libraries.
17952 hardcode_into_libs=$hardcode_into_libs
17953
17954 # Flag to hardcode \$libdir into a binary during linking.
17955 # This must work even if \$libdir does not exist.
17956 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17957
17958 # If ld is used when linking, flag to hardcode \$libdir into
17959 # a binary during linking. This must work even if \$libdir does
17960 # not exist.
17961 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17962
17963 # Whether we need a single -rpath flag with a separated argument.
17964 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17965
17966 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17967 # resulting binary.
17968 hardcode_direct=$hardcode_direct
17969
17970 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17971 # resulting binary.
17972 hardcode_minus_L=$hardcode_minus_L
17973
17974 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17975 # the resulting binary.
17976 hardcode_shlibpath_var=$hardcode_shlibpath_var
17977
17978 # Set to yes if building a shared library automatically hardcodes DIR into the library
17979 # and all subsequent libraries and executables linked against it.
17980 hardcode_automatic=$hardcode_automatic
17981
17982 # Variables whose values should be saved in libtool wrapper scripts and
17983 # restored at relink time.
17984 variables_saved_for_relink="$variables_saved_for_relink"
17985
17986 # Whether libtool must link a program against all its dependency libraries.
17987 link_all_deplibs=$link_all_deplibs
17988
17989 # Compile-time system search path for libraries
17990 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17991
17992 # Run-time system search path for libraries
17993 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17994
17995 # Fix the shell variable \$srcfile for the compiler.
17996 fix_srcfile_path="$fix_srcfile_path"
17997
17998 # Set to yes if exported symbols are required.
17999 always_export_symbols=$always_export_symbols
18000
18001 # The commands to list exported symbols.
18002 export_symbols_cmds=$lt_export_symbols_cmds
18003
18004 # The commands to extract the exported symbol list from a shared archive.
18005 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18006
18007 # Symbols that should not be listed in the preloaded symbols.
18008 exclude_expsyms=$lt_exclude_expsyms
18009
18010 # Symbols that must always be exported.
18011 include_expsyms=$lt_include_expsyms
18012
18013 # ### END LIBTOOL CONFIG
18014
18015 __EOF__
18016
18017
18018   case $host_os in
18019   aix3*)
18020     cat <<\EOF >> "$cfgfile"
18021
18022 # AIX sometimes has problems with the GCC collect2 program.  For some
18023 # reason, if we set the COLLECT_NAMES environment variable, the problems
18024 # vanish in a puff of smoke.
18025 if test "X${COLLECT_NAMES+set}" != Xset; then
18026   COLLECT_NAMES=
18027   export COLLECT_NAMES
18028 fi
18029 EOF
18030     ;;
18031   esac
18032
18033   # We use sed instead of cat because bash on DJGPP gets confused if
18034   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18035   # text mode, it properly converts lines to CR/LF.  This bash problem
18036   # is reportedly fixed, but why not run on old versions too?
18037   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18038
18039   mv -f "$cfgfile" "$ofile" || \
18040     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18041   chmod +x "$ofile"
18042
18043 else
18044   # If there is no Makefile yet, we rely on a make rule to execute
18045   # `config.status --recheck' to rerun these tests and create the
18046   # libtool script then.
18047   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18048   if test -f "$ltmain_in"; then
18049     test -f Makefile && make "$ltmain"
18050   fi
18051 fi
18052
18053
18054 ac_ext=c
18055 ac_cpp='$CPP $CPPFLAGS'
18056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18059
18060 CC="$lt_save_CC"
18061
18062
18063 # Check whether --with-tags was given.
18064 if test "${with_tags+set}" = set; then
18065   withval=$with_tags; tagnames="$withval"
18066 fi
18067
18068
18069 if test -f "$ltmain" && test -n "$tagnames"; then
18070   if test ! -f "${ofile}"; then
18071     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18072 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18073   fi
18074
18075   if test -z "$LTCC"; then
18076     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18077     if test -z "$LTCC"; then
18078       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18079 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18080     else
18081       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18082 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18083     fi
18084   fi
18085   if test -z "$LTCFLAGS"; then
18086     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18087   fi
18088
18089   # Extract list of available tagged configurations in $ofile.
18090   # Note that this assumes the entire list is on one line.
18091   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18092
18093   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18094   for tagname in $tagnames; do
18095     IFS="$lt_save_ifs"
18096     # Check whether tagname contains only valid characters
18097     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18098     "") ;;
18099     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18100 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18101    { (exit 1); exit 1; }; }
18102         ;;
18103     esac
18104
18105     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18106     then
18107       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18108 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18109    { (exit 1); exit 1; }; }
18110     fi
18111
18112     # Update the list of available tags.
18113     if test -n "$tagname"; then
18114       echo appending configuration tag \"$tagname\" to $ofile
18115
18116       case $tagname in
18117       CXX)
18118         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18119             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18120             (test "X$CXX" != "Xg++"))) ; then
18121           ac_ext=cpp
18122 ac_cpp='$CXXCPP $CPPFLAGS'
18123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18126
18127
18128
18129
18130 archive_cmds_need_lc_CXX=no
18131 allow_undefined_flag_CXX=
18132 always_export_symbols_CXX=no
18133 archive_expsym_cmds_CXX=
18134 export_dynamic_flag_spec_CXX=
18135 hardcode_direct_CXX=no
18136 hardcode_libdir_flag_spec_CXX=
18137 hardcode_libdir_flag_spec_ld_CXX=
18138 hardcode_libdir_separator_CXX=
18139 hardcode_minus_L_CXX=no
18140 hardcode_shlibpath_var_CXX=unsupported
18141 hardcode_automatic_CXX=no
18142 module_cmds_CXX=
18143 module_expsym_cmds_CXX=
18144 link_all_deplibs_CXX=unknown
18145 old_archive_cmds_CXX=$old_archive_cmds
18146 no_undefined_flag_CXX=
18147 whole_archive_flag_spec_CXX=
18148 enable_shared_with_static_runtimes_CXX=no
18149
18150 # Dependencies to place before and after the object being linked:
18151 predep_objects_CXX=
18152 postdep_objects_CXX=
18153 predeps_CXX=
18154 postdeps_CXX=
18155 compiler_lib_search_path_CXX=
18156
18157 # Source file extension for C++ test sources.
18158 ac_ext=cpp
18159
18160 # Object file extension for compiled C++ test sources.
18161 objext=o
18162 objext_CXX=$objext
18163
18164 # Code to be used in simple compile tests
18165 lt_simple_compile_test_code="int some_variable = 0;\n"
18166
18167 # Code to be used in simple link tests
18168 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18169
18170 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18171
18172 # If no C compiler was specified, use CC.
18173 LTCC=${LTCC-"$CC"}
18174
18175 # If no C compiler flags were specified, use CFLAGS.
18176 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18177
18178 # Allow CC to be a program name with arguments.
18179 compiler=$CC
18180
18181
18182 # save warnings/boilerplate of simple test code
18183 ac_outfile=conftest.$ac_objext
18184 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18185 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18186 _lt_compiler_boilerplate=`cat conftest.err`
18187 $rm conftest*
18188
18189 ac_outfile=conftest.$ac_objext
18190 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18191 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18192 _lt_linker_boilerplate=`cat conftest.err`
18193 $rm conftest*
18194
18195
18196 # Allow CC to be a program name with arguments.
18197 lt_save_CC=$CC
18198 lt_save_LD=$LD
18199 lt_save_GCC=$GCC
18200 GCC=$GXX
18201 lt_save_with_gnu_ld=$with_gnu_ld
18202 lt_save_path_LD=$lt_cv_path_LD
18203 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18204   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18205 else
18206   $as_unset lt_cv_prog_gnu_ld
18207 fi
18208 if test -n "${lt_cv_path_LDCXX+set}"; then
18209   lt_cv_path_LD=$lt_cv_path_LDCXX
18210 else
18211   $as_unset lt_cv_path_LD
18212 fi
18213 test -z "${LDCXX+set}" || LD=$LDCXX
18214 CC=${CXX-"c++"}
18215 compiler=$CC
18216 compiler_CXX=$CC
18217 for cc_temp in $compiler""; do
18218   case $cc_temp in
18219     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18220     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18221     \-*) ;;
18222     *) break;;
18223   esac
18224 done
18225 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18226
18227
18228 # We don't want -fno-exception wen compiling C++ code, so set the
18229 # no_builtin_flag separately
18230 if test "$GXX" = yes; then
18231   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18232 else
18233   lt_prog_compiler_no_builtin_flag_CXX=
18234 fi
18235
18236 if test "$GXX" = yes; then
18237   # Set up default GNU C++ configuration
18238
18239
18240 # Check whether --with-gnu-ld was given.
18241 if test "${with_gnu_ld+set}" = set; then
18242   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18243 else
18244   with_gnu_ld=no
18245 fi
18246
18247 ac_prog=ld
18248 if test "$GCC" = yes; then
18249   # Check if gcc -print-prog-name=ld gives a path.
18250   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18251 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18252   case $host in
18253   *-*-mingw*)
18254     # gcc leaves a trailing carriage return which upsets mingw
18255     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18256   *)
18257     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18258   esac
18259   case $ac_prog in
18260     # Accept absolute paths.
18261     [\\/]* | ?:[\\/]*)
18262       re_direlt='/[^/][^/]*/\.\./'
18263       # Canonicalize the pathname of ld
18264       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18265       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18266         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18267       done
18268       test -z "$LD" && LD="$ac_prog"
18269       ;;
18270   "")
18271     # If it fails, then pretend we aren't using GCC.
18272     ac_prog=ld
18273     ;;
18274   *)
18275     # If it is relative, then search for the first ld in PATH.
18276     with_gnu_ld=unknown
18277     ;;
18278   esac
18279 elif test "$with_gnu_ld" = yes; then
18280   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18281 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18282 else
18283   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18284 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18285 fi
18286 if test "${lt_cv_path_LD+set}" = set; then
18287   echo $ECHO_N "(cached) $ECHO_C" >&6
18288 else
18289   if test -z "$LD"; then
18290   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18291   for ac_dir in $PATH; do
18292     IFS="$lt_save_ifs"
18293     test -z "$ac_dir" && ac_dir=.
18294     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18295       lt_cv_path_LD="$ac_dir/$ac_prog"
18296       # Check to see if the program is GNU ld.  I'd rather use --version,
18297       # but apparently some variants of GNU ld only accept -v.
18298       # Break only if it was the GNU/non-GNU ld that we prefer.
18299       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18300       *GNU* | *'with BFD'*)
18301         test "$with_gnu_ld" != no && break
18302         ;;
18303       *)
18304         test "$with_gnu_ld" != yes && break
18305         ;;
18306       esac
18307     fi
18308   done
18309   IFS="$lt_save_ifs"
18310 else
18311   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18312 fi
18313 fi
18314
18315 LD="$lt_cv_path_LD"
18316 if test -n "$LD"; then
18317   { echo "$as_me:$LINENO: result: $LD" >&5
18318 echo "${ECHO_T}$LD" >&6; }
18319 else
18320   { echo "$as_me:$LINENO: result: no" >&5
18321 echo "${ECHO_T}no" >&6; }
18322 fi
18323 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18324 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18325    { (exit 1); exit 1; }; }
18326 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18327 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18328 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18329   echo $ECHO_N "(cached) $ECHO_C" >&6
18330 else
18331   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18332 case `$LD -v 2>&1 </dev/null` in
18333 *GNU* | *'with BFD'*)
18334   lt_cv_prog_gnu_ld=yes
18335   ;;
18336 *)
18337   lt_cv_prog_gnu_ld=no
18338   ;;
18339 esac
18340 fi
18341 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18342 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18343 with_gnu_ld=$lt_cv_prog_gnu_ld
18344
18345
18346
18347   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18348   # archiving commands below assume that GNU ld is being used.
18349   if test "$with_gnu_ld" = yes; then
18350     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18351     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'
18352
18353     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18354     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18355
18356     # If archive_cmds runs LD, not CC, wlarc should be empty
18357     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18358     #     investigate it a little bit more. (MM)
18359     wlarc='${wl}'
18360
18361     # ancient GNU ld didn't support --whole-archive et. al.
18362     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18363         grep 'no-whole-archive' > /dev/null; then
18364       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18365     else
18366       whole_archive_flag_spec_CXX=
18367     fi
18368   else
18369     with_gnu_ld=no
18370     wlarc=
18371
18372     # A generic and very simple default shared library creation
18373     # command for GNU C++ for the case where it uses the native
18374     # linker, instead of GNU ld.  If possible, this setting should
18375     # overridden to take advantage of the native linker features on
18376     # the platform it is being used on.
18377     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18378   fi
18379
18380   # Commands to make compiler produce verbose output that lists
18381   # what "hidden" libraries, object files and flags are used when
18382   # linking a shared library.
18383   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18384
18385 else
18386   GXX=no
18387   with_gnu_ld=no
18388   wlarc=
18389 fi
18390
18391 # PORTME: fill in a description of your system's C++ link characteristics
18392 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18393 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18394 ld_shlibs_CXX=yes
18395 case $host_os in
18396   aix3*)
18397     # FIXME: insert proper C++ library support
18398     ld_shlibs_CXX=no
18399     ;;
18400   aix4* | aix5*)
18401     if test "$host_cpu" = ia64; then
18402       # On IA64, the linker does run time linking by default, so we don't
18403       # have to do anything special.
18404       aix_use_runtimelinking=no
18405       exp_sym_flag='-Bexport'
18406       no_entry_flag=""
18407     else
18408       aix_use_runtimelinking=no
18409
18410       # Test if we are trying to use run time linking or normal
18411       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18412       # need to do runtime linking.
18413       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18414         for ld_flag in $LDFLAGS; do
18415           case $ld_flag in
18416           *-brtl*)
18417             aix_use_runtimelinking=yes
18418             break
18419             ;;
18420           esac
18421         done
18422         ;;
18423       esac
18424
18425       exp_sym_flag='-bexport'
18426       no_entry_flag='-bnoentry'
18427     fi
18428
18429     # When large executables or shared objects are built, AIX ld can
18430     # have problems creating the table of contents.  If linking a library
18431     # or program results in "error TOC overflow" add -mminimal-toc to
18432     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18433     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18434
18435     archive_cmds_CXX=''
18436     hardcode_direct_CXX=yes
18437     hardcode_libdir_separator_CXX=':'
18438     link_all_deplibs_CXX=yes
18439
18440     if test "$GXX" = yes; then
18441       case $host_os in aix4.[012]|aix4.[012].*)
18442       # We only want to do this on AIX 4.2 and lower, the check
18443       # below for broken collect2 doesn't work under 4.3+
18444         collect2name=`${CC} -print-prog-name=collect2`
18445         if test -f "$collect2name" && \
18446            strings "$collect2name" | grep resolve_lib_name >/dev/null
18447         then
18448           # We have reworked collect2
18449           hardcode_direct_CXX=yes
18450         else
18451           # We have old collect2
18452           hardcode_direct_CXX=unsupported
18453           # It fails to find uninstalled libraries when the uninstalled
18454           # path is not listed in the libpath.  Setting hardcode_minus_L
18455           # to unsupported forces relinking
18456           hardcode_minus_L_CXX=yes
18457           hardcode_libdir_flag_spec_CXX='-L$libdir'
18458           hardcode_libdir_separator_CXX=
18459         fi
18460         ;;
18461       esac
18462       shared_flag='-shared'
18463       if test "$aix_use_runtimelinking" = yes; then
18464         shared_flag="$shared_flag "'${wl}-G'
18465       fi
18466     else
18467       # not using gcc
18468       if test "$host_cpu" = ia64; then
18469         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18470         # chokes on -Wl,-G. The following line is correct:
18471         shared_flag='-G'
18472       else
18473         if test "$aix_use_runtimelinking" = yes; then
18474           shared_flag='${wl}-G'
18475         else
18476           shared_flag='${wl}-bM:SRE'
18477         fi
18478       fi
18479     fi
18480
18481     # It seems that -bexpall does not export symbols beginning with
18482     # underscore (_), so it is better to generate a list of symbols to export.
18483     always_export_symbols_CXX=yes
18484     if test "$aix_use_runtimelinking" = yes; then
18485       # Warning - without using the other runtime loading flags (-brtl),
18486       # -berok will link without error, but may produce a broken library.
18487       allow_undefined_flag_CXX='-berok'
18488       # Determine the default libpath from the value encoded in an empty executable.
18489       cat >conftest.$ac_ext <<_ACEOF
18490 /* confdefs.h.  */
18491 _ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h.  */
18495
18496 int
18497 main ()
18498 {
18499
18500   ;
18501   return 0;
18502 }
18503 _ACEOF
18504 rm -f conftest.$ac_objext conftest$ac_exeext
18505 if { (ac_try="$ac_link"
18506 case "(($ac_try" in
18507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508   *) ac_try_echo=$ac_try;;
18509 esac
18510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18511   (eval "$ac_link") 2>conftest.er1
18512   ac_status=$?
18513   grep -v '^ *+' conftest.er1 >conftest.err
18514   rm -f conftest.er1
18515   cat conftest.err >&5
18516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517   (exit $ac_status); } &&
18518          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18519   { (case "(($ac_try" in
18520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521   *) ac_try_echo=$ac_try;;
18522 esac
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524   (eval "$ac_try") 2>&5
18525   ac_status=$?
18526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527   (exit $ac_status); }; } &&
18528          { ac_try='test -s conftest$ac_exeext'
18529   { (case "(($ac_try" in
18530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531   *) ac_try_echo=$ac_try;;
18532 esac
18533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534   (eval "$ac_try") 2>&5
18535   ac_status=$?
18536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537   (exit $ac_status); }; }; then
18538
18539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18540 }'`
18541 # Check for a 64-bit object if we didn't find anything.
18542 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; }
18543 }'`; fi
18544 else
18545   echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18547
18548
18549 fi
18550
18551 rm -f core conftest.err conftest.$ac_objext \
18552       conftest$ac_exeext conftest.$ac_ext
18553 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18554
18555       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18556
18557       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"
18558      else
18559       if test "$host_cpu" = ia64; then
18560         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18561         allow_undefined_flag_CXX="-z nodefs"
18562         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"
18563       else
18564         # Determine the default libpath from the value encoded in an empty executable.
18565         cat >conftest.$ac_ext <<_ACEOF
18566 /* confdefs.h.  */
18567 _ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h.  */
18571
18572 int
18573 main ()
18574 {
18575
18576   ;
18577   return 0;
18578 }
18579 _ACEOF
18580 rm -f conftest.$ac_objext conftest$ac_exeext
18581 if { (ac_try="$ac_link"
18582 case "(($ac_try" in
18583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584   *) ac_try_echo=$ac_try;;
18585 esac
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587   (eval "$ac_link") 2>conftest.er1
18588   ac_status=$?
18589   grep -v '^ *+' conftest.er1 >conftest.err
18590   rm -f conftest.er1
18591   cat conftest.err >&5
18592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593   (exit $ac_status); } &&
18594          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18595   { (case "(($ac_try" in
18596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18597   *) ac_try_echo=$ac_try;;
18598 esac
18599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18600   (eval "$ac_try") 2>&5
18601   ac_status=$?
18602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603   (exit $ac_status); }; } &&
18604          { ac_try='test -s conftest$ac_exeext'
18605   { (case "(($ac_try" in
18606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607   *) ac_try_echo=$ac_try;;
18608 esac
18609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610   (eval "$ac_try") 2>&5
18611   ac_status=$?
18612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613   (exit $ac_status); }; }; then
18614
18615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18616 }'`
18617 # Check for a 64-bit object if we didn't find anything.
18618 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; }
18619 }'`; fi
18620 else
18621   echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18623
18624
18625 fi
18626
18627 rm -f core conftest.err conftest.$ac_objext \
18628       conftest$ac_exeext conftest.$ac_ext
18629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18630
18631         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18632         # Warning - without using the other run time loading flags,
18633         # -berok will link without error, but may produce a broken library.
18634         no_undefined_flag_CXX=' ${wl}-bernotok'
18635         allow_undefined_flag_CXX=' ${wl}-berok'
18636         # Exported symbols can be pulled into shared objects from archives
18637         whole_archive_flag_spec_CXX='$convenience'
18638         archive_cmds_need_lc_CXX=yes
18639         # This is similar to how AIX traditionally builds its shared libraries.
18640         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'
18641       fi
18642     fi
18643     ;;
18644
18645   beos*)
18646     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18647       allow_undefined_flag_CXX=unsupported
18648       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18649       # support --undefined.  This deserves some investigation.  FIXME
18650       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18651     else
18652       ld_shlibs_CXX=no
18653     fi
18654     ;;
18655
18656   chorus*)
18657     case $cc_basename in
18658       *)
18659         # FIXME: insert proper C++ library support
18660         ld_shlibs_CXX=no
18661         ;;
18662     esac
18663     ;;
18664
18665   cygwin* | mingw* | pw32*)
18666     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18667     # as there is no search path for DLLs.
18668     hardcode_libdir_flag_spec_CXX='-L$libdir'
18669     allow_undefined_flag_CXX=unsupported
18670     always_export_symbols_CXX=no
18671     enable_shared_with_static_runtimes_CXX=yes
18672
18673     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18674       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'
18675       # If the export-symbols file already is a .def file (1st line
18676       # is EXPORTS), use it as is; otherwise, prepend...
18677       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18678         cp $export_symbols $output_objdir/$soname.def;
18679       else
18680         echo EXPORTS > $output_objdir/$soname.def;
18681         cat $export_symbols >> $output_objdir/$soname.def;
18682       fi~
18683       $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'
18684     else
18685       ld_shlibs_CXX=no
18686     fi
18687   ;;
18688       darwin* | rhapsody*)
18689         case $host_os in
18690         rhapsody* | darwin1.[012])
18691          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18692          ;;
18693        *) # Darwin 1.3 on
18694          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18695            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18696          else
18697            case ${MACOSX_DEPLOYMENT_TARGET} in
18698              10.[012])
18699                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18700                ;;
18701              10.*)
18702                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18703                ;;
18704            esac
18705          fi
18706          ;;
18707         esac
18708       archive_cmds_need_lc_CXX=no
18709       hardcode_direct_CXX=no
18710       hardcode_automatic_CXX=yes
18711       hardcode_shlibpath_var_CXX=unsupported
18712       whole_archive_flag_spec_CXX=''
18713       link_all_deplibs_CXX=yes
18714
18715     if test "$GXX" = yes ; then
18716       lt_int_apple_cc_single_mod=no
18717       output_verbose_link_cmd='echo'
18718       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18719        lt_int_apple_cc_single_mod=yes
18720       fi
18721       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18722        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18723       else
18724           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'
18725         fi
18726         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18727         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18728           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18729             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}'
18730           else
18731             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}'
18732           fi
18733             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}'
18734       else
18735       case $cc_basename in
18736         xlc*)
18737          output_verbose_link_cmd='echo'
18738           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'
18739           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18740           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18741           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}'
18742           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}'
18743           ;;
18744        *)
18745          ld_shlibs_CXX=no
18746           ;;
18747       esac
18748       fi
18749         ;;
18750
18751   dgux*)
18752     case $cc_basename in
18753       ec++*)
18754         # FIXME: insert proper C++ library support
18755         ld_shlibs_CXX=no
18756         ;;
18757       ghcx*)
18758         # Green Hills C++ Compiler
18759         # FIXME: insert proper C++ library support
18760         ld_shlibs_CXX=no
18761         ;;
18762       *)
18763         # FIXME: insert proper C++ library support
18764         ld_shlibs_CXX=no
18765         ;;
18766     esac
18767     ;;
18768   freebsd[12]*)
18769     # C++ shared libraries reported to be fairly broken before switch to ELF
18770     ld_shlibs_CXX=no
18771     ;;
18772   freebsd-elf*)
18773     archive_cmds_need_lc_CXX=no
18774     ;;
18775   freebsd* | kfreebsd*-gnu | dragonfly*)
18776     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18777     # conventions
18778     ld_shlibs_CXX=yes
18779     ;;
18780   gnu*)
18781     ;;
18782   hpux9*)
18783     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18784     hardcode_libdir_separator_CXX=:
18785     export_dynamic_flag_spec_CXX='${wl}-E'
18786     hardcode_direct_CXX=yes
18787     hardcode_minus_L_CXX=yes # Not in the search PATH,
18788                                 # but as the default
18789                                 # location of the library.
18790
18791     case $cc_basename in
18792     CC*)
18793       # FIXME: insert proper C++ library support
18794       ld_shlibs_CXX=no
18795       ;;
18796     aCC*)
18797       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'
18798       # Commands to make compiler produce verbose output that lists
18799       # what "hidden" libraries, object files and flags are used when
18800       # linking a shared library.
18801       #
18802       # There doesn't appear to be a way to prevent this compiler from
18803       # explicitly linking system object files so we need to strip them
18804       # from the output so that they don't get included in the library
18805       # dependencies.
18806       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'
18807       ;;
18808     *)
18809       if test "$GXX" = yes; then
18810         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'
18811       else
18812         # FIXME: insert proper C++ library support
18813         ld_shlibs_CXX=no
18814       fi
18815       ;;
18816     esac
18817     ;;
18818   hpux10*|hpux11*)
18819     if test $with_gnu_ld = no; then
18820       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18821       hardcode_libdir_separator_CXX=:
18822
18823       case $host_cpu in
18824       hppa*64*|ia64*)
18825         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18826         ;;
18827       *)
18828         export_dynamic_flag_spec_CXX='${wl}-E'
18829         ;;
18830       esac
18831     fi
18832     case $host_cpu in
18833     hppa*64*|ia64*)
18834       hardcode_direct_CXX=no
18835       hardcode_shlibpath_var_CXX=no
18836       ;;
18837     *)
18838       hardcode_direct_CXX=yes
18839       hardcode_minus_L_CXX=yes # Not in the search PATH,
18840                                               # but as the default
18841                                               # location of the library.
18842       ;;
18843     esac
18844
18845     case $cc_basename in
18846       CC*)
18847         # FIXME: insert proper C++ library support
18848         ld_shlibs_CXX=no
18849         ;;
18850       aCC*)
18851         case $host_cpu in
18852         hppa*64*)
18853           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18854           ;;
18855         ia64*)
18856           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18857           ;;
18858         *)
18859           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18860           ;;
18861         esac
18862         # Commands to make compiler produce verbose output that lists
18863         # what "hidden" libraries, object files and flags are used when
18864         # linking a shared library.
18865         #
18866         # There doesn't appear to be a way to prevent this compiler from
18867         # explicitly linking system object files so we need to strip them
18868         # from the output so that they don't get included in the library
18869         # dependencies.
18870         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'
18871         ;;
18872       *)
18873         if test "$GXX" = yes; then
18874           if test $with_gnu_ld = no; then
18875             case $host_cpu in
18876             hppa*64*)
18877               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18878               ;;
18879             ia64*)
18880               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18881               ;;
18882             *)
18883               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'
18884               ;;
18885             esac
18886           fi
18887         else
18888           # FIXME: insert proper C++ library support
18889           ld_shlibs_CXX=no
18890         fi
18891         ;;
18892     esac
18893     ;;
18894   interix3*)
18895     hardcode_direct_CXX=no
18896     hardcode_shlibpath_var_CXX=no
18897     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18898     export_dynamic_flag_spec_CXX='${wl}-E'
18899     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18900     # Instead, shared libraries are loaded at an image base (0x10000000 by
18901     # default) and relocated if they conflict, which is a slow very memory
18902     # consuming and fragmenting process.  To avoid this, we pick a random,
18903     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18904     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18905     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'
18906     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'
18907     ;;
18908   irix5* | irix6*)
18909     case $cc_basename in
18910       CC*)
18911         # SGI C++
18912         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'
18913
18914         # Archives containing C++ object files must be created using
18915         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18916         # necessary to make sure instantiated templates are included
18917         # in the archive.
18918         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18919         ;;
18920       *)
18921         if test "$GXX" = yes; then
18922           if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18924           else
18925             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'
18926           fi
18927         fi
18928         link_all_deplibs_CXX=yes
18929         ;;
18930     esac
18931     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18932     hardcode_libdir_separator_CXX=:
18933     ;;
18934   linux*)
18935     case $cc_basename in
18936       KCC*)
18937         # Kuck and Associates, Inc. (KAI) C++ Compiler
18938
18939         # KCC will only create a shared library if the output file
18940         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18941         # to its proper name (with version) after linking.
18942         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'
18943         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'
18944         # Commands to make compiler produce verbose output that lists
18945         # what "hidden" libraries, object files and flags are used when
18946         # linking a shared library.
18947         #
18948         # There doesn't appear to be a way to prevent this compiler from
18949         # explicitly linking system object files so we need to strip them
18950         # from the output so that they don't get included in the library
18951         # dependencies.
18952         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'
18953
18954         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18955         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18956
18957         # Archives containing C++ object files must be created using
18958         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18959         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18960         ;;
18961       icpc*)
18962         # Intel C++
18963         with_gnu_ld=yes
18964         # version 8.0 and above of icpc choke on multiply defined symbols
18965         # if we add $predep_objects and $postdep_objects, however 7.1 and
18966         # earlier do not add the objects themselves.
18967         case `$CC -V 2>&1` in
18968         *"Version 7."*)
18969           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18970           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'
18971           ;;
18972         *)  # Version 8.0 or newer
18973           tmp_idyn=
18974           case $host_cpu in
18975             ia64*) tmp_idyn=' -i_dynamic';;
18976           esac
18977           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18978           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'
18979           ;;
18980         esac
18981         archive_cmds_need_lc_CXX=no
18982         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18983         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18984         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18985         ;;
18986       pgCC*)
18987         # Portland Group C++ compiler
18988         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18989         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'
18990
18991         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18992         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18993         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'
18994         ;;
18995       cxx*)
18996         # Compaq C++
18997         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18998         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'
18999
19000         runpath_var=LD_RUN_PATH
19001         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19002         hardcode_libdir_separator_CXX=:
19003
19004         # Commands to make compiler produce verbose output that lists
19005         # what "hidden" libraries, object files and flags are used when
19006         # linking a shared library.
19007         #
19008         # There doesn't appear to be a way to prevent this compiler from
19009         # explicitly linking system object files so we need to strip them
19010         # from the output so that they don't get included in the library
19011         # dependencies.
19012         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'
19013         ;;
19014     esac
19015     ;;
19016   lynxos*)
19017     # FIXME: insert proper C++ library support
19018     ld_shlibs_CXX=no
19019     ;;
19020   m88k*)
19021     # FIXME: insert proper C++ library support
19022     ld_shlibs_CXX=no
19023     ;;
19024   mvs*)
19025     case $cc_basename in
19026       cxx*)
19027         # FIXME: insert proper C++ library support
19028         ld_shlibs_CXX=no
19029         ;;
19030       *)
19031         # FIXME: insert proper C++ library support
19032         ld_shlibs_CXX=no
19033         ;;
19034     esac
19035     ;;
19036   netbsd*)
19037     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19038       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19039       wlarc=
19040       hardcode_libdir_flag_spec_CXX='-R$libdir'
19041       hardcode_direct_CXX=yes
19042       hardcode_shlibpath_var_CXX=no
19043     fi
19044     # Workaround some broken pre-1.5 toolchains
19045     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19046     ;;
19047   openbsd2*)
19048     # C++ shared libraries are fairly broken
19049     ld_shlibs_CXX=no
19050     ;;
19051   openbsd*)
19052     hardcode_direct_CXX=yes
19053     hardcode_shlibpath_var_CXX=no
19054     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19055     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19056     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19057       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19058       export_dynamic_flag_spec_CXX='${wl}-E'
19059       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19060     fi
19061     output_verbose_link_cmd='echo'
19062     ;;
19063   osf3*)
19064     case $cc_basename in
19065       KCC*)
19066         # Kuck and Associates, Inc. (KAI) C++ Compiler
19067
19068         # KCC will only create a shared library if the output file
19069         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19070         # to its proper name (with version) after linking.
19071         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'
19072
19073         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19074         hardcode_libdir_separator_CXX=:
19075
19076         # Archives containing C++ object files must be created using
19077         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19078         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19079
19080         ;;
19081       RCC*)
19082         # Rational C++ 2.4.1
19083         # FIXME: insert proper C++ library support
19084         ld_shlibs_CXX=no
19085         ;;
19086       cxx*)
19087         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19088         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'
19089
19090         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19091         hardcode_libdir_separator_CXX=:
19092
19093         # Commands to make compiler produce verbose output that lists
19094         # what "hidden" libraries, object files and flags are used when
19095         # linking a shared library.
19096         #
19097         # There doesn't appear to be a way to prevent this compiler from
19098         # explicitly linking system object files so we need to strip them
19099         # from the output so that they don't get included in the library
19100         # dependencies.
19101         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'
19102         ;;
19103       *)
19104         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19105           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19106           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'
19107
19108           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19109           hardcode_libdir_separator_CXX=:
19110
19111           # Commands to make compiler produce verbose output that lists
19112           # what "hidden" libraries, object files and flags are used when
19113           # linking a shared library.
19114           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19115
19116         else
19117           # FIXME: insert proper C++ library support
19118           ld_shlibs_CXX=no
19119         fi
19120         ;;
19121     esac
19122     ;;
19123   osf4* | osf5*)
19124     case $cc_basename in
19125       KCC*)
19126         # Kuck and Associates, Inc. (KAI) C++ Compiler
19127
19128         # KCC will only create a shared library if the output file
19129         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19130         # to its proper name (with version) after linking.
19131         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'
19132
19133         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19134         hardcode_libdir_separator_CXX=:
19135
19136         # Archives containing C++ object files must be created using
19137         # the KAI C++ compiler.
19138         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19139         ;;
19140       RCC*)
19141         # Rational C++ 2.4.1
19142         # FIXME: insert proper C++ library support
19143         ld_shlibs_CXX=no
19144         ;;
19145       cxx*)
19146         allow_undefined_flag_CXX=' -expect_unresolved \*'
19147         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'
19148         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19149           echo "-hidden">> $lib.exp~
19150           $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~
19151           $rm $lib.exp'
19152
19153         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19154         hardcode_libdir_separator_CXX=:
19155
19156         # Commands to make compiler produce verbose output that lists
19157         # what "hidden" libraries, object files and flags are used when
19158         # linking a shared library.
19159         #
19160         # There doesn't appear to be a way to prevent this compiler from
19161         # explicitly linking system object files so we need to strip them
19162         # from the output so that they don't get included in the library
19163         # dependencies.
19164         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'
19165         ;;
19166       *)
19167         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19168           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19169          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'
19170
19171           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19172           hardcode_libdir_separator_CXX=:
19173
19174           # Commands to make compiler produce verbose output that lists
19175           # what "hidden" libraries, object files and flags are used when
19176           # linking a shared library.
19177           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19178
19179         else
19180           # FIXME: insert proper C++ library support
19181           ld_shlibs_CXX=no
19182         fi
19183         ;;
19184     esac
19185     ;;
19186   psos*)
19187     # FIXME: insert proper C++ library support
19188     ld_shlibs_CXX=no
19189     ;;
19190   sunos4*)
19191     case $cc_basename in
19192       CC*)
19193         # Sun C++ 4.x
19194         # FIXME: insert proper C++ library support
19195         ld_shlibs_CXX=no
19196         ;;
19197       lcc*)
19198         # Lucid
19199         # FIXME: insert proper C++ library support
19200         ld_shlibs_CXX=no
19201         ;;
19202       *)
19203         # FIXME: insert proper C++ library support
19204         ld_shlibs_CXX=no
19205         ;;
19206     esac
19207     ;;
19208   solaris*)
19209     case $cc_basename in
19210       CC*)
19211         # Sun C++ 4.2, 5.x and Centerline C++
19212         archive_cmds_need_lc_CXX=yes
19213         no_undefined_flag_CXX=' -zdefs'
19214         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19215         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19216         $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'
19217
19218         hardcode_libdir_flag_spec_CXX='-R$libdir'
19219         hardcode_shlibpath_var_CXX=no
19220         case $host_os in
19221           solaris2.[0-5] | solaris2.[0-5].*) ;;
19222           *)
19223             # The C++ compiler is used as linker so we must use $wl
19224             # flag to pass the commands to the underlying system
19225             # linker. We must also pass each convience library through
19226             # to the system linker between allextract/defaultextract.
19227             # The C++ compiler will combine linker options so we
19228             # cannot just pass the convience library names through
19229             # without $wl.
19230             # Supported since Solaris 2.6 (maybe 2.5.1?)
19231             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'
19232             ;;
19233         esac
19234         link_all_deplibs_CXX=yes
19235
19236         output_verbose_link_cmd='echo'
19237
19238         # Archives containing C++ object files must be created using
19239         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19240         # necessary to make sure instantiated templates are included
19241         # in the archive.
19242         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19243         ;;
19244       gcx*)
19245         # Green Hills C++ Compiler
19246         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19247
19248         # The C++ compiler must be used to create the archive.
19249         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19250         ;;
19251       *)
19252         # GNU C++ compiler with Solaris linker
19253         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19254           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19255           if $CC --version | grep -v '^2\.7' > /dev/null; then
19256             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19257             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19258                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19259
19260             # Commands to make compiler produce verbose output that lists
19261             # what "hidden" libraries, object files and flags are used when
19262             # linking a shared library.
19263             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19264           else
19265             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19266             # platform.
19267             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19268             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19269                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19270
19271             # Commands to make compiler produce verbose output that lists
19272             # what "hidden" libraries, object files and flags are used when
19273             # linking a shared library.
19274             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19275           fi
19276
19277           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19278         fi
19279         ;;
19280     esac
19281     ;;
19282   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19283     no_undefined_flag_CXX='${wl}-z,text'
19284     archive_cmds_need_lc_CXX=no
19285     hardcode_shlibpath_var_CXX=no
19286     runpath_var='LD_RUN_PATH'
19287
19288     case $cc_basename in
19289       CC*)
19290         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19291         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19292         ;;
19293       *)
19294         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19295         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19296         ;;
19297     esac
19298     ;;
19299   sysv5* | sco3.2v5* | sco5v6*)
19300     # Note: We can NOT use -z defs as we might desire, because we do not
19301     # link with -lc, and that would cause any symbols used from libc to
19302     # always be unresolved, which means just about no library would
19303     # ever link correctly.  If we're not using GNU ld we use -z text
19304     # though, which does catch some bad symbols but isn't as heavy-handed
19305     # as -z defs.
19306     # For security reasons, it is highly recommended that you always
19307     # use absolute paths for naming shared libraries, and exclude the
19308     # DT_RUNPATH tag from executables and libraries.  But doing so
19309     # requires that you compile everything twice, which is a pain.
19310     # So that behaviour is only enabled if SCOABSPATH is set to a
19311     # non-empty value in the environment.  Most likely only useful for
19312     # creating official distributions of packages.
19313     # This is a hack until libtool officially supports absolute path
19314     # names for shared libraries.
19315     no_undefined_flag_CXX='${wl}-z,text'
19316     allow_undefined_flag_CXX='${wl}-z,nodefs'
19317     archive_cmds_need_lc_CXX=no
19318     hardcode_shlibpath_var_CXX=no
19319     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19320     hardcode_libdir_separator_CXX=':'
19321     link_all_deplibs_CXX=yes
19322     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19323     runpath_var='LD_RUN_PATH'
19324
19325     case $cc_basename in
19326       CC*)
19327         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19328         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19329         ;;
19330       *)
19331         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19332         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19333         ;;
19334     esac
19335     ;;
19336   tandem*)
19337     case $cc_basename in
19338       NCC*)
19339         # NonStop-UX NCC 3.20
19340         # FIXME: insert proper C++ library support
19341         ld_shlibs_CXX=no
19342         ;;
19343       *)
19344         # FIXME: insert proper C++ library support
19345         ld_shlibs_CXX=no
19346         ;;
19347     esac
19348     ;;
19349   vxworks*)
19350     # FIXME: insert proper C++ library support
19351     ld_shlibs_CXX=no
19352     ;;
19353   *)
19354     # FIXME: insert proper C++ library support
19355     ld_shlibs_CXX=no
19356     ;;
19357 esac
19358 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19359 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19360 test "$ld_shlibs_CXX" = no && can_build_shared=no
19361
19362 GCC_CXX="$GXX"
19363 LD_CXX="$LD"
19364
19365
19366 cat > conftest.$ac_ext <<EOF
19367 class Foo
19368 {
19369 public:
19370   Foo (void) { a = 0; }
19371 private:
19372   int a;
19373 };
19374 EOF
19375
19376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19377   (eval $ac_compile) 2>&5
19378   ac_status=$?
19379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380   (exit $ac_status); }; then
19381   # Parse the compiler output and extract the necessary
19382   # objects, libraries and library flags.
19383
19384   # Sentinel used to keep track of whether or not we are before
19385   # the conftest object file.
19386   pre_test_object_deps_done=no
19387
19388   # The `*' in the case matches for architectures that use `case' in
19389   # $output_verbose_cmd can trigger glob expansion during the loop
19390   # eval without this substitution.
19391   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19392
19393   for p in `eval $output_verbose_link_cmd`; do
19394     case $p in
19395
19396     -L* | -R* | -l*)
19397        # Some compilers place space between "-{L,R}" and the path.
19398        # Remove the space.
19399        if test $p = "-L" \
19400           || test $p = "-R"; then
19401          prev=$p
19402          continue
19403        else
19404          prev=
19405        fi
19406
19407        if test "$pre_test_object_deps_done" = no; then
19408          case $p in
19409          -L* | -R*)
19410            # Internal compiler library paths should come after those
19411            # provided the user.  The postdeps already come after the
19412            # user supplied libs so there is no need to process them.
19413            if test -z "$compiler_lib_search_path_CXX"; then
19414              compiler_lib_search_path_CXX="${prev}${p}"
19415            else
19416              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19417            fi
19418            ;;
19419          # The "-l" case would never come before the object being
19420          # linked, so don't bother handling this case.
19421          esac
19422        else
19423          if test -z "$postdeps_CXX"; then
19424            postdeps_CXX="${prev}${p}"
19425          else
19426            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19427          fi
19428        fi
19429        ;;
19430
19431     *.$objext)
19432        # This assumes that the test object file only shows up
19433        # once in the compiler output.
19434        if test "$p" = "conftest.$objext"; then
19435          pre_test_object_deps_done=yes
19436          continue
19437        fi
19438
19439        if test "$pre_test_object_deps_done" = no; then
19440          if test -z "$predep_objects_CXX"; then
19441            predep_objects_CXX="$p"
19442          else
19443            predep_objects_CXX="$predep_objects_CXX $p"
19444          fi
19445        else
19446          if test -z "$postdep_objects_CXX"; then
19447            postdep_objects_CXX="$p"
19448          else
19449            postdep_objects_CXX="$postdep_objects_CXX $p"
19450          fi
19451        fi
19452        ;;
19453
19454     *) ;; # Ignore the rest.
19455
19456     esac
19457   done
19458
19459   # Clean up.
19460   rm -f a.out a.exe
19461 else
19462   echo "libtool.m4: error: problem compiling CXX test program"
19463 fi
19464
19465 $rm -f confest.$objext
19466
19467 # PORTME: override above test on systems where it is broken
19468 case $host_os in
19469 interix3*)
19470   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19471   # hack all around it, let's just trust "g++" to DTRT.
19472   predep_objects_CXX=
19473   postdep_objects_CXX=
19474   postdeps_CXX=
19475   ;;
19476
19477 solaris*)
19478   case $cc_basename in
19479   CC*)
19480     # Adding this requires a known-good setup of shared libraries for
19481     # Sun compiler versions before 5.6, else PIC objects from an old
19482     # archive will be linked into the output, leading to subtle bugs.
19483     postdeps_CXX='-lCstd -lCrun'
19484     ;;
19485   esac
19486   ;;
19487 esac
19488
19489
19490 case " $postdeps_CXX " in
19491 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19492 esac
19493
19494 lt_prog_compiler_wl_CXX=
19495 lt_prog_compiler_pic_CXX=
19496 lt_prog_compiler_static_CXX=
19497
19498 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19499 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19500
19501   # C++ specific cases for pic, static, wl, etc.
19502   if test "$GXX" = yes; then
19503     lt_prog_compiler_wl_CXX='-Wl,'
19504     lt_prog_compiler_static_CXX='-static'
19505
19506     case $host_os in
19507     aix*)
19508       # All AIX code is PIC.
19509       if test "$host_cpu" = ia64; then
19510         # AIX 5 now supports IA64 processor
19511         lt_prog_compiler_static_CXX='-Bstatic'
19512       fi
19513       ;;
19514     amigaos*)
19515       # FIXME: we need at least 68020 code to build shared libraries, but
19516       # adding the `-m68020' flag to GCC prevents building anything better,
19517       # like `-m68040'.
19518       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19519       ;;
19520     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19521       # PIC is the default for these OSes.
19522       ;;
19523     mingw* | os2* | pw32*)
19524       # This hack is so that the source file can tell whether it is being
19525       # built for inclusion in a dll (and should export symbols for example).
19526       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19527       ;;
19528     darwin* | rhapsody*)
19529       # PIC is the default on this platform
19530       # Common symbols not allowed in MH_DYLIB files
19531       lt_prog_compiler_pic_CXX='-fno-common'
19532       ;;
19533     *djgpp*)
19534       # DJGPP does not support shared libraries at all
19535       lt_prog_compiler_pic_CXX=
19536       ;;
19537     interix3*)
19538       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19539       # Instead, we relocate shared libraries at runtime.
19540       ;;
19541     sysv4*MP*)
19542       if test -d /usr/nec; then
19543         lt_prog_compiler_pic_CXX=-Kconform_pic
19544       fi
19545       ;;
19546     hpux*)
19547       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19548       # not for PA HP-UX.
19549       case $host_cpu in
19550       hppa*64*|ia64*)
19551         ;;
19552       *)
19553         lt_prog_compiler_pic_CXX='-fPIC'
19554         ;;
19555       esac
19556       ;;
19557     *)
19558       lt_prog_compiler_pic_CXX='-fPIC'
19559       ;;
19560     esac
19561   else
19562     case $host_os in
19563       aix4* | aix5*)
19564         # All AIX code is PIC.
19565         if test "$host_cpu" = ia64; then
19566           # AIX 5 now supports IA64 processor
19567           lt_prog_compiler_static_CXX='-Bstatic'
19568         else
19569           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19570         fi
19571         ;;
19572       chorus*)
19573         case $cc_basename in
19574         cxch68*)
19575           # Green Hills C++ Compiler
19576           # _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"
19577           ;;
19578         esac
19579         ;;
19580        darwin*)
19581          # PIC is the default on this platform
19582          # Common symbols not allowed in MH_DYLIB files
19583          case $cc_basename in
19584            xlc*)
19585            lt_prog_compiler_pic_CXX='-qnocommon'
19586            lt_prog_compiler_wl_CXX='-Wl,'
19587            ;;
19588          esac
19589        ;;
19590       dgux*)
19591         case $cc_basename in
19592           ec++*)
19593             lt_prog_compiler_pic_CXX='-KPIC'
19594             ;;
19595           ghcx*)
19596             # Green Hills C++ Compiler
19597             lt_prog_compiler_pic_CXX='-pic'
19598             ;;
19599           *)
19600             ;;
19601         esac
19602         ;;
19603       freebsd* | kfreebsd*-gnu | dragonfly*)
19604         # FreeBSD uses GNU C++
19605         ;;
19606       hpux9* | hpux10* | hpux11*)
19607         case $cc_basename in
19608           CC*)
19609             lt_prog_compiler_wl_CXX='-Wl,'
19610             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19611             if test "$host_cpu" != ia64; then
19612               lt_prog_compiler_pic_CXX='+Z'
19613             fi
19614             ;;
19615           aCC*)
19616             lt_prog_compiler_wl_CXX='-Wl,'
19617             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19618             case $host_cpu in
19619             hppa*64*|ia64*)
19620               # +Z the default
19621               ;;
19622             *)
19623               lt_prog_compiler_pic_CXX='+Z'
19624               ;;
19625             esac
19626             ;;
19627           *)
19628             ;;
19629         esac
19630         ;;
19631       interix*)
19632         # This is c89, which is MS Visual C++ (no shared libs)
19633         # Anyone wants to do a port?
19634         ;;
19635       irix5* | irix6* | nonstopux*)
19636         case $cc_basename in
19637           CC*)
19638             lt_prog_compiler_wl_CXX='-Wl,'
19639             lt_prog_compiler_static_CXX='-non_shared'
19640             # CC pic flag -KPIC is the default.
19641             ;;
19642           *)
19643             ;;
19644         esac
19645         ;;
19646       linux*)
19647         case $cc_basename in
19648           KCC*)
19649             # KAI C++ Compiler
19650             lt_prog_compiler_wl_CXX='--backend -Wl,'
19651             lt_prog_compiler_pic_CXX='-fPIC'
19652             ;;
19653           icpc* | ecpc*)
19654             # Intel C++
19655             lt_prog_compiler_wl_CXX='-Wl,'
19656             lt_prog_compiler_pic_CXX='-KPIC'
19657             lt_prog_compiler_static_CXX='-static'
19658             ;;
19659           pgCC*)
19660             # Portland Group C++ compiler.
19661             lt_prog_compiler_wl_CXX='-Wl,'
19662             lt_prog_compiler_pic_CXX='-fpic'
19663             lt_prog_compiler_static_CXX='-Bstatic'
19664             ;;
19665           cxx*)
19666             # Compaq C++
19667             # Make sure the PIC flag is empty.  It appears that all Alpha
19668             # Linux and Compaq Tru64 Unix objects are PIC.
19669             lt_prog_compiler_pic_CXX=
19670             lt_prog_compiler_static_CXX='-non_shared'
19671             ;;
19672           *)
19673             ;;
19674         esac
19675         ;;
19676       lynxos*)
19677         ;;
19678       m88k*)
19679         ;;
19680       mvs*)
19681         case $cc_basename in
19682           cxx*)
19683             lt_prog_compiler_pic_CXX='-W c,exportall'
19684             ;;
19685           *)
19686             ;;
19687         esac
19688         ;;
19689       netbsd*)
19690         ;;
19691       osf3* | osf4* | osf5*)
19692         case $cc_basename in
19693           KCC*)
19694             lt_prog_compiler_wl_CXX='--backend -Wl,'
19695             ;;
19696           RCC*)
19697             # Rational C++ 2.4.1
19698             lt_prog_compiler_pic_CXX='-pic'
19699             ;;
19700           cxx*)
19701             # Digital/Compaq C++
19702             lt_prog_compiler_wl_CXX='-Wl,'
19703             # Make sure the PIC flag is empty.  It appears that all Alpha
19704             # Linux and Compaq Tru64 Unix objects are PIC.
19705             lt_prog_compiler_pic_CXX=
19706             lt_prog_compiler_static_CXX='-non_shared'
19707             ;;
19708           *)
19709             ;;
19710         esac
19711         ;;
19712       psos*)
19713         ;;
19714       solaris*)
19715         case $cc_basename in
19716           CC*)
19717             # Sun C++ 4.2, 5.x and Centerline C++
19718             lt_prog_compiler_pic_CXX='-KPIC'
19719             lt_prog_compiler_static_CXX='-Bstatic'
19720             lt_prog_compiler_wl_CXX='-Qoption ld '
19721             ;;
19722           gcx*)
19723             # Green Hills C++ Compiler
19724             lt_prog_compiler_pic_CXX='-PIC'
19725             ;;
19726           *)
19727             ;;
19728         esac
19729         ;;
19730       sunos4*)
19731         case $cc_basename in
19732           CC*)
19733             # Sun C++ 4.x
19734             lt_prog_compiler_pic_CXX='-pic'
19735             lt_prog_compiler_static_CXX='-Bstatic'
19736             ;;
19737           lcc*)
19738             # Lucid
19739             lt_prog_compiler_pic_CXX='-pic'
19740             ;;
19741           *)
19742             ;;
19743         esac
19744         ;;
19745       tandem*)
19746         case $cc_basename in
19747           NCC*)
19748             # NonStop-UX NCC 3.20
19749             lt_prog_compiler_pic_CXX='-KPIC'
19750             ;;
19751           *)
19752             ;;
19753         esac
19754         ;;
19755       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19756         case $cc_basename in
19757           CC*)
19758             lt_prog_compiler_wl_CXX='-Wl,'
19759             lt_prog_compiler_pic_CXX='-KPIC'
19760             lt_prog_compiler_static_CXX='-Bstatic'
19761             ;;
19762         esac
19763         ;;
19764       vxworks*)
19765         ;;
19766       *)
19767         lt_prog_compiler_can_build_shared_CXX=no
19768         ;;
19769     esac
19770   fi
19771
19772 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19773 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19774
19775 #
19776 # Check to make sure the PIC flag actually works.
19777 #
19778 if test -n "$lt_prog_compiler_pic_CXX"; then
19779
19780 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19781 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19782 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19783   echo $ECHO_N "(cached) $ECHO_C" >&6
19784 else
19785   lt_prog_compiler_pic_works_CXX=no
19786   ac_outfile=conftest.$ac_objext
19787    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19788    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19789    # Insert the option either (1) after the last *FLAGS variable, or
19790    # (2) before a word containing "conftest.", or (3) at the end.
19791    # Note that $ac_compile itself does not contain backslashes and begins
19792    # with a dollar sign (not a hyphen), so the echo should work correctly.
19793    # The option is referenced via a variable to avoid confusing sed.
19794    lt_compile=`echo "$ac_compile" | $SED \
19795    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19797    -e 's:$: $lt_compiler_flag:'`
19798    (eval echo "\"\$as_me:19798: $lt_compile\"" >&5)
19799    (eval "$lt_compile" 2>conftest.err)
19800    ac_status=$?
19801    cat conftest.err >&5
19802    echo "$as_me:19802: \$? = $ac_status" >&5
19803    if (exit $ac_status) && test -s "$ac_outfile"; then
19804      # The compiler can only warn and ignore the option if not recognized
19805      # So say no if there are warnings other than the usual output.
19806      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19807      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19808      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19809        lt_prog_compiler_pic_works_CXX=yes
19810      fi
19811    fi
19812    $rm conftest*
19813
19814 fi
19815 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19816 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19817
19818 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19819     case $lt_prog_compiler_pic_CXX in
19820      "" | " "*) ;;
19821      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19822      esac
19823 else
19824     lt_prog_compiler_pic_CXX=
19825      lt_prog_compiler_can_build_shared_CXX=no
19826 fi
19827
19828 fi
19829 case $host_os in
19830   # For platforms which do not support PIC, -DPIC is meaningless:
19831   *djgpp*)
19832     lt_prog_compiler_pic_CXX=
19833     ;;
19834   *)
19835     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19836     ;;
19837 esac
19838
19839 #
19840 # Check to make sure the static flag actually works.
19841 #
19842 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19843 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19844 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19845 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19846   echo $ECHO_N "(cached) $ECHO_C" >&6
19847 else
19848   lt_prog_compiler_static_works_CXX=no
19849    save_LDFLAGS="$LDFLAGS"
19850    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19851    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19852    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19853      # The linker can only warn and ignore the option if not recognized
19854      # So say no if there are warnings
19855      if test -s conftest.err; then
19856        # Append any errors to the config.log.
19857        cat conftest.err 1>&5
19858        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19859        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19860        if diff conftest.exp conftest.er2 >/dev/null; then
19861          lt_prog_compiler_static_works_CXX=yes
19862        fi
19863      else
19864        lt_prog_compiler_static_works_CXX=yes
19865      fi
19866    fi
19867    $rm conftest*
19868    LDFLAGS="$save_LDFLAGS"
19869
19870 fi
19871 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19872 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19873
19874 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19875     :
19876 else
19877     lt_prog_compiler_static_CXX=
19878 fi
19879
19880
19881 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19882 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19883 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19884   echo $ECHO_N "(cached) $ECHO_C" >&6
19885 else
19886   lt_cv_prog_compiler_c_o_CXX=no
19887    $rm -r conftest 2>/dev/null
19888    mkdir conftest
19889    cd conftest
19890    mkdir out
19891    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19892
19893    lt_compiler_flag="-o out/conftest2.$ac_objext"
19894    # Insert the option either (1) after the last *FLAGS variable, or
19895    # (2) before a word containing "conftest.", or (3) at the end.
19896    # Note that $ac_compile itself does not contain backslashes and begins
19897    # with a dollar sign (not a hyphen), so the echo should work correctly.
19898    lt_compile=`echo "$ac_compile" | $SED \
19899    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19900    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19901    -e 's:$: $lt_compiler_flag:'`
19902    (eval echo "\"\$as_me:19902: $lt_compile\"" >&5)
19903    (eval "$lt_compile" 2>out/conftest.err)
19904    ac_status=$?
19905    cat out/conftest.err >&5
19906    echo "$as_me:19906: \$? = $ac_status" >&5
19907    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19908    then
19909      # The compiler can only warn and ignore the option if not recognized
19910      # So say no if there are warnings
19911      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19912      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19913      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19914        lt_cv_prog_compiler_c_o_CXX=yes
19915      fi
19916    fi
19917    chmod u+w . 2>&5
19918    $rm conftest*
19919    # SGI C++ compiler will create directory out/ii_files/ for
19920    # template instantiation
19921    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19922    $rm out/* && rmdir out
19923    cd ..
19924    rmdir conftest
19925    $rm conftest*
19926
19927 fi
19928 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19929 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19930
19931
19932 hard_links="nottested"
19933 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19934   # do not overwrite the value of need_locks provided by the user
19935   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19936 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19937   hard_links=yes
19938   $rm conftest*
19939   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19940   touch conftest.a
19941   ln conftest.a conftest.b 2>&5 || hard_links=no
19942   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19943   { echo "$as_me:$LINENO: result: $hard_links" >&5
19944 echo "${ECHO_T}$hard_links" >&6; }
19945   if test "$hard_links" = no; then
19946     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19947 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19948     need_locks=warn
19949   fi
19950 else
19951   need_locks=no
19952 fi
19953
19954 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19955 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19956
19957   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19958   case $host_os in
19959   aix4* | aix5*)
19960     # If we're using GNU nm, then we don't want the "-C" option.
19961     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19962     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19963       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'
19964     else
19965       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'
19966     fi
19967     ;;
19968   pw32*)
19969     export_symbols_cmds_CXX="$ltdll_cmds"
19970   ;;
19971   cygwin* | mingw*)
19972     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'
19973   ;;
19974   *)
19975     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19976   ;;
19977   esac
19978
19979 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19980 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19981 test "$ld_shlibs_CXX" = no && can_build_shared=no
19982
19983 #
19984 # Do we need to explicitly link libc?
19985 #
19986 case "x$archive_cmds_need_lc_CXX" in
19987 x|xyes)
19988   # Assume -lc should be added
19989   archive_cmds_need_lc_CXX=yes
19990
19991   if test "$enable_shared" = yes && test "$GCC" = yes; then
19992     case $archive_cmds_CXX in
19993     *'~'*)
19994       # FIXME: we may have to deal with multi-command sequences.
19995       ;;
19996     '$CC '*)
19997       # Test whether the compiler implicitly links with -lc since on some
19998       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19999       # to ld, don't add -lc before -lgcc.
20000       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20001 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20002       $rm conftest*
20003       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20004
20005       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20006   (eval $ac_compile) 2>&5
20007   ac_status=$?
20008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009   (exit $ac_status); } 2>conftest.err; then
20010         soname=conftest
20011         lib=conftest
20012         libobjs=conftest.$ac_objext
20013         deplibs=
20014         wl=$lt_prog_compiler_wl_CXX
20015         pic_flag=$lt_prog_compiler_pic_CXX
20016         compiler_flags=-v
20017         linker_flags=-v
20018         verstring=
20019         output_objdir=.
20020         libname=conftest
20021         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20022         allow_undefined_flag_CXX=
20023         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20024   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20025   ac_status=$?
20026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027   (exit $ac_status); }
20028         then
20029           archive_cmds_need_lc_CXX=no
20030         else
20031           archive_cmds_need_lc_CXX=yes
20032         fi
20033         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20034       else
20035         cat conftest.err 1>&5
20036       fi
20037       $rm conftest*
20038       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20039 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20040       ;;
20041     esac
20042   fi
20043   ;;
20044 esac
20045
20046 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20047 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20048 library_names_spec=
20049 libname_spec='lib$name'
20050 soname_spec=
20051 shrext_cmds=".so"
20052 postinstall_cmds=
20053 postuninstall_cmds=
20054 finish_cmds=
20055 finish_eval=
20056 shlibpath_var=
20057 shlibpath_overrides_runpath=unknown
20058 version_type=none
20059 dynamic_linker="$host_os ld.so"
20060 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20061 if test "$GCC" = yes; then
20062   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20063   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20064     # if the path contains ";" then we assume it to be the separator
20065     # otherwise default to the standard path separator (i.e. ":") - it is
20066     # assumed that no part of a normal pathname contains ";" but that should
20067     # okay in the real world where ";" in dirpaths is itself problematic.
20068     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20069   else
20070     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20071   fi
20072 else
20073   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20074 fi
20075 need_lib_prefix=unknown
20076 hardcode_into_libs=no
20077
20078 # when you set need_version to no, make sure it does not cause -set_version
20079 # flags to be left without arguments
20080 need_version=unknown
20081
20082 case $host_os in
20083 aix3*)
20084   version_type=linux
20085   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20086   shlibpath_var=LIBPATH
20087
20088   # AIX 3 has no versioning support, so we append a major version to the name.
20089   soname_spec='${libname}${release}${shared_ext}$major'
20090   ;;
20091
20092 aix4* | aix5*)
20093   version_type=linux
20094   need_lib_prefix=no
20095   need_version=no
20096   hardcode_into_libs=yes
20097   if test "$host_cpu" = ia64; then
20098     # AIX 5 supports IA64
20099     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20100     shlibpath_var=LD_LIBRARY_PATH
20101   else
20102     # With GCC up to 2.95.x, collect2 would create an import file
20103     # for dependence libraries.  The import file would start with
20104     # the line `#! .'.  This would cause the generated library to
20105     # depend on `.', always an invalid library.  This was fixed in
20106     # development snapshots of GCC prior to 3.0.
20107     case $host_os in
20108       aix4 | aix4.[01] | aix4.[01].*)
20109       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20110            echo ' yes '
20111            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20112         :
20113       else
20114         can_build_shared=no
20115       fi
20116       ;;
20117     esac
20118     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20119     # soname into executable. Probably we can add versioning support to
20120     # collect2, so additional links can be useful in future.
20121     if test "$aix_use_runtimelinking" = yes; then
20122       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20123       # instead of lib<name>.a to let people know that these are not
20124       # typical AIX shared libraries.
20125       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20126     else
20127       # We preserve .a as extension for shared libraries through AIX4.2
20128       # and later when we are not doing run time linking.
20129       library_names_spec='${libname}${release}.a $libname.a'
20130       soname_spec='${libname}${release}${shared_ext}$major'
20131     fi
20132     shlibpath_var=LIBPATH
20133   fi
20134   ;;
20135
20136 amigaos*)
20137   library_names_spec='$libname.ixlibrary $libname.a'
20138   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20139   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'
20140   ;;
20141
20142 beos*)
20143   library_names_spec='${libname}${shared_ext}'
20144   dynamic_linker="$host_os ld.so"
20145   shlibpath_var=LIBRARY_PATH
20146   ;;
20147
20148 bsdi[45]*)
20149   version_type=linux
20150   need_version=no
20151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20152   soname_spec='${libname}${release}${shared_ext}$major'
20153   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20154   shlibpath_var=LD_LIBRARY_PATH
20155   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20156   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20157   # the default ld.so.conf also contains /usr/contrib/lib and
20158   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20159   # libtool to hard-code these into programs
20160   ;;
20161
20162 cygwin* | mingw* | pw32*)
20163   version_type=windows
20164   shrext_cmds=".dll"
20165   need_version=no
20166   need_lib_prefix=no
20167
20168   case $GCC,$host_os in
20169   yes,cygwin* | yes,mingw* | yes,pw32*)
20170     library_names_spec='$libname.dll.a'
20171     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20172     postinstall_cmds='base_file=`basename \${file}`~
20173       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20174       dldir=$destdir/`dirname \$dlpath`~
20175       test -d \$dldir || mkdir -p \$dldir~
20176       $install_prog $dir/$dlname \$dldir/$dlname~
20177       chmod a+x \$dldir/$dlname'
20178     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20179       dlpath=$dir/\$dldll~
20180        $rm \$dlpath'
20181     shlibpath_overrides_runpath=yes
20182
20183     case $host_os in
20184     cygwin*)
20185       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20186       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20187       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20188       ;;
20189     mingw*)
20190       # MinGW DLLs use traditional 'lib' prefix
20191       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20192       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20193       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20194         # It is most probably a Windows format PATH printed by
20195         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20196         # path with ; separators, and with drive letters. We can handle the
20197         # drive letters (cygwin fileutils understands them), so leave them,
20198         # especially as we might pass files found there to a mingw objdump,
20199         # which wouldn't understand a cygwinified path. Ahh.
20200         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20201       else
20202         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20203       fi
20204       ;;
20205     pw32*)
20206       # pw32 DLLs use 'pw' prefix rather than 'lib'
20207       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20208       ;;
20209     esac
20210     ;;
20211
20212   *)
20213     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20214     ;;
20215   esac
20216   dynamic_linker='Win32 ld.exe'
20217   # FIXME: first we should search . and the directory the executable is in
20218   shlibpath_var=PATH
20219   ;;
20220
20221 darwin* | rhapsody*)
20222   dynamic_linker="$host_os dyld"
20223   version_type=darwin
20224   need_lib_prefix=no
20225   need_version=no
20226   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20227   soname_spec='${libname}${release}${major}$shared_ext'
20228   shlibpath_overrides_runpath=yes
20229   shlibpath_var=DYLD_LIBRARY_PATH
20230   shrext_cmds='.dylib'
20231   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20232   if test "$GCC" = yes; then
20233     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"`
20234   else
20235     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20236   fi
20237   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20238   ;;
20239
20240 dgux*)
20241   version_type=linux
20242   need_lib_prefix=no
20243   need_version=no
20244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20245   soname_spec='${libname}${release}${shared_ext}$major'
20246   shlibpath_var=LD_LIBRARY_PATH
20247   ;;
20248
20249 freebsd1*)
20250   dynamic_linker=no
20251   ;;
20252
20253 kfreebsd*-gnu)
20254   version_type=linux
20255   need_lib_prefix=no
20256   need_version=no
20257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20258   soname_spec='${libname}${release}${shared_ext}$major'
20259   shlibpath_var=LD_LIBRARY_PATH
20260   shlibpath_overrides_runpath=no
20261   hardcode_into_libs=yes
20262   dynamic_linker='GNU ld.so'
20263   ;;
20264
20265 freebsd* | dragonfly*)
20266   # DragonFly does not have aout.  When/if they implement a new
20267   # versioning mechanism, adjust this.
20268   if test -x /usr/bin/objformat; then
20269     objformat=`/usr/bin/objformat`
20270   else
20271     case $host_os in
20272     freebsd[123]*) objformat=aout ;;
20273     *) objformat=elf ;;
20274     esac
20275   fi
20276   version_type=freebsd-$objformat
20277   case $version_type in
20278     freebsd-elf*)
20279       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20280       need_version=no
20281       need_lib_prefix=no
20282       ;;
20283     freebsd-*)
20284       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20285       need_version=yes
20286       ;;
20287   esac
20288   shlibpath_var=LD_LIBRARY_PATH
20289   case $host_os in
20290   freebsd2*)
20291     shlibpath_overrides_runpath=yes
20292     ;;
20293   freebsd3.[01]* | freebsdelf3.[01]*)
20294     shlibpath_overrides_runpath=yes
20295     hardcode_into_libs=yes
20296     ;;
20297   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20298   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20299     shlibpath_overrides_runpath=no
20300     hardcode_into_libs=yes
20301     ;;
20302   freebsd*) # from 4.6 on
20303     shlibpath_overrides_runpath=yes
20304     hardcode_into_libs=yes
20305     ;;
20306   esac
20307   ;;
20308
20309 gnu*)
20310   version_type=linux
20311   need_lib_prefix=no
20312   need_version=no
20313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20314   soname_spec='${libname}${release}${shared_ext}$major'
20315   shlibpath_var=LD_LIBRARY_PATH
20316   hardcode_into_libs=yes
20317   ;;
20318
20319 hpux9* | hpux10* | hpux11*)
20320   # Give a soname corresponding to the major version so that dld.sl refuses to
20321   # link against other versions.
20322   version_type=sunos
20323   need_lib_prefix=no
20324   need_version=no
20325   case $host_cpu in
20326   ia64*)
20327     shrext_cmds='.so'
20328     hardcode_into_libs=yes
20329     dynamic_linker="$host_os dld.so"
20330     shlibpath_var=LD_LIBRARY_PATH
20331     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20332     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20333     soname_spec='${libname}${release}${shared_ext}$major'
20334     if test "X$HPUX_IA64_MODE" = X32; then
20335       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20336     else
20337       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20338     fi
20339     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20340     ;;
20341    hppa*64*)
20342      shrext_cmds='.sl'
20343      hardcode_into_libs=yes
20344      dynamic_linker="$host_os dld.sl"
20345      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20346      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20347      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20348      soname_spec='${libname}${release}${shared_ext}$major'
20349      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20350      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20351      ;;
20352    *)
20353     shrext_cmds='.sl'
20354     dynamic_linker="$host_os dld.sl"
20355     shlibpath_var=SHLIB_PATH
20356     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20357     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20358     soname_spec='${libname}${release}${shared_ext}$major'
20359     ;;
20360   esac
20361   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20362   postinstall_cmds='chmod 555 $lib'
20363   ;;
20364
20365 interix3*)
20366   version_type=linux
20367   need_lib_prefix=no
20368   need_version=no
20369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20370   soname_spec='${libname}${release}${shared_ext}$major'
20371   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20372   shlibpath_var=LD_LIBRARY_PATH
20373   shlibpath_overrides_runpath=no
20374   hardcode_into_libs=yes
20375   ;;
20376
20377 irix5* | irix6* | nonstopux*)
20378   case $host_os in
20379     nonstopux*) version_type=nonstopux ;;
20380     *)
20381         if test "$lt_cv_prog_gnu_ld" = yes; then
20382                 version_type=linux
20383         else
20384                 version_type=irix
20385         fi ;;
20386   esac
20387   need_lib_prefix=no
20388   need_version=no
20389   soname_spec='${libname}${release}${shared_ext}$major'
20390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20391   case $host_os in
20392   irix5* | nonstopux*)
20393     libsuff= shlibsuff=
20394     ;;
20395   *)
20396     case $LD in # libtool.m4 will add one of these switches to LD
20397     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20398       libsuff= shlibsuff= libmagic=32-bit;;
20399     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20400       libsuff=32 shlibsuff=N32 libmagic=N32;;
20401     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20402       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20403     *) libsuff= shlibsuff= libmagic=never-match;;
20404     esac
20405     ;;
20406   esac
20407   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20408   shlibpath_overrides_runpath=no
20409   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20410   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20411   hardcode_into_libs=yes
20412   ;;
20413
20414 # No shared lib support for Linux oldld, aout, or coff.
20415 linux*oldld* | linux*aout* | linux*coff*)
20416   dynamic_linker=no
20417   ;;
20418
20419 # This must be Linux ELF.
20420 linux*)
20421   version_type=linux
20422   need_lib_prefix=no
20423   need_version=no
20424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20425   soname_spec='${libname}${release}${shared_ext}$major'
20426   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20427   shlibpath_var=LD_LIBRARY_PATH
20428   shlibpath_overrides_runpath=no
20429   # This implies no fast_install, which is unacceptable.
20430   # Some rework will be needed to allow for fast_install
20431   # before this can be enabled.
20432   hardcode_into_libs=yes
20433
20434   # Append ld.so.conf contents to the search path
20435   if test -f /etc/ld.so.conf; then
20436     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' ' '`
20437     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20438   fi
20439
20440   # We used to test for /lib/ld.so.1 and disable shared libraries on
20441   # powerpc, because MkLinux only supported shared libraries with the
20442   # GNU dynamic linker.  Since this was broken with cross compilers,
20443   # most powerpc-linux boxes support dynamic linking these days and
20444   # people can always --disable-shared, the test was removed, and we
20445   # assume the GNU/Linux dynamic linker is in use.
20446   dynamic_linker='GNU/Linux ld.so'
20447   ;;
20448
20449 knetbsd*-gnu)
20450   version_type=linux
20451   need_lib_prefix=no
20452   need_version=no
20453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20454   soname_spec='${libname}${release}${shared_ext}$major'
20455   shlibpath_var=LD_LIBRARY_PATH
20456   shlibpath_overrides_runpath=no
20457   hardcode_into_libs=yes
20458   dynamic_linker='GNU ld.so'
20459   ;;
20460
20461 netbsd*)
20462   version_type=sunos
20463   need_lib_prefix=no
20464   need_version=no
20465   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20466     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20467     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20468     dynamic_linker='NetBSD (a.out) ld.so'
20469   else
20470     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20471     soname_spec='${libname}${release}${shared_ext}$major'
20472     dynamic_linker='NetBSD ld.elf_so'
20473   fi
20474   shlibpath_var=LD_LIBRARY_PATH
20475   shlibpath_overrides_runpath=yes
20476   hardcode_into_libs=yes
20477   ;;
20478
20479 newsos6)
20480   version_type=linux
20481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20482   shlibpath_var=LD_LIBRARY_PATH
20483   shlibpath_overrides_runpath=yes
20484   ;;
20485
20486 nto-qnx*)
20487   version_type=linux
20488   need_lib_prefix=no
20489   need_version=no
20490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20491   soname_spec='${libname}${release}${shared_ext}$major'
20492   shlibpath_var=LD_LIBRARY_PATH
20493   shlibpath_overrides_runpath=yes
20494   ;;
20495
20496 openbsd*)
20497   version_type=sunos
20498   sys_lib_dlsearch_path_spec="/usr/lib"
20499   need_lib_prefix=no
20500   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20501   case $host_os in
20502     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20503     *)                         need_version=no  ;;
20504   esac
20505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20506   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20507   shlibpath_var=LD_LIBRARY_PATH
20508   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20509     case $host_os in
20510       openbsd2.[89] | openbsd2.[89].*)
20511         shlibpath_overrides_runpath=no
20512         ;;
20513       *)
20514         shlibpath_overrides_runpath=yes
20515         ;;
20516       esac
20517   else
20518     shlibpath_overrides_runpath=yes
20519   fi
20520   ;;
20521
20522 os2*)
20523   libname_spec='$name'
20524   shrext_cmds=".dll"
20525   need_lib_prefix=no
20526   library_names_spec='$libname${shared_ext} $libname.a'
20527   dynamic_linker='OS/2 ld.exe'
20528   shlibpath_var=LIBPATH
20529   ;;
20530
20531 osf3* | osf4* | osf5*)
20532   version_type=osf
20533   need_lib_prefix=no
20534   need_version=no
20535   soname_spec='${libname}${release}${shared_ext}$major'
20536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20537   shlibpath_var=LD_LIBRARY_PATH
20538   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20539   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20540   ;;
20541
20542 solaris*)
20543   version_type=linux
20544   need_lib_prefix=no
20545   need_version=no
20546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20547   soname_spec='${libname}${release}${shared_ext}$major'
20548   shlibpath_var=LD_LIBRARY_PATH
20549   shlibpath_overrides_runpath=yes
20550   hardcode_into_libs=yes
20551   # ldd complains unless libraries are executable
20552   postinstall_cmds='chmod +x $lib'
20553   ;;
20554
20555 sunos4*)
20556   version_type=sunos
20557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20558   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20559   shlibpath_var=LD_LIBRARY_PATH
20560   shlibpath_overrides_runpath=yes
20561   if test "$with_gnu_ld" = yes; then
20562     need_lib_prefix=no
20563   fi
20564   need_version=yes
20565   ;;
20566
20567 sysv4 | sysv4.3*)
20568   version_type=linux
20569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20570   soname_spec='${libname}${release}${shared_ext}$major'
20571   shlibpath_var=LD_LIBRARY_PATH
20572   case $host_vendor in
20573     sni)
20574       shlibpath_overrides_runpath=no
20575       need_lib_prefix=no
20576       export_dynamic_flag_spec='${wl}-Blargedynsym'
20577       runpath_var=LD_RUN_PATH
20578       ;;
20579     siemens)
20580       need_lib_prefix=no
20581       ;;
20582     motorola)
20583       need_lib_prefix=no
20584       need_version=no
20585       shlibpath_overrides_runpath=no
20586       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20587       ;;
20588   esac
20589   ;;
20590
20591 sysv4*MP*)
20592   if test -d /usr/nec ;then
20593     version_type=linux
20594     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20595     soname_spec='$libname${shared_ext}.$major'
20596     shlibpath_var=LD_LIBRARY_PATH
20597   fi
20598   ;;
20599
20600 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20601   version_type=freebsd-elf
20602   need_lib_prefix=no
20603   need_version=no
20604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20605   soname_spec='${libname}${release}${shared_ext}$major'
20606   shlibpath_var=LD_LIBRARY_PATH
20607   hardcode_into_libs=yes
20608   if test "$with_gnu_ld" = yes; then
20609     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20610     shlibpath_overrides_runpath=no
20611   else
20612     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20613     shlibpath_overrides_runpath=yes
20614     case $host_os in
20615       sco3.2v5*)
20616         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20617         ;;
20618     esac
20619   fi
20620   sys_lib_dlsearch_path_spec='/usr/lib'
20621   ;;
20622
20623 uts4*)
20624   version_type=linux
20625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20626   soname_spec='${libname}${release}${shared_ext}$major'
20627   shlibpath_var=LD_LIBRARY_PATH
20628   ;;
20629
20630 *)
20631   dynamic_linker=no
20632   ;;
20633 esac
20634 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20635 echo "${ECHO_T}$dynamic_linker" >&6; }
20636 test "$dynamic_linker" = no && can_build_shared=no
20637
20638 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20639 if test "$GCC" = yes; then
20640   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20641 fi
20642
20643 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20644 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20645 hardcode_action_CXX=
20646 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20647    test -n "$runpath_var_CXX" || \
20648    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20649
20650   # We can hardcode non-existant directories.
20651   if test "$hardcode_direct_CXX" != no &&
20652      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20653      # have to relink, otherwise we might link with an installed library
20654      # when we should be linking with a yet-to-be-installed one
20655      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20656      test "$hardcode_minus_L_CXX" != no; then
20657     # Linking always hardcodes the temporary library directory.
20658     hardcode_action_CXX=relink
20659   else
20660     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20661     hardcode_action_CXX=immediate
20662   fi
20663 else
20664   # We cannot hardcode anything, or else we can only hardcode existing
20665   # directories.
20666   hardcode_action_CXX=unsupported
20667 fi
20668 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20669 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20670
20671 if test "$hardcode_action_CXX" = relink; then
20672   # Fast installation is not supported
20673   enable_fast_install=no
20674 elif test "$shlibpath_overrides_runpath" = yes ||
20675      test "$enable_shared" = no; then
20676   # Fast installation is not necessary
20677   enable_fast_install=needless
20678 fi
20679
20680
20681 # The else clause should only fire when bootstrapping the
20682 # libtool distribution, otherwise you forgot to ship ltmain.sh
20683 # with your package, and you will get complaints that there are
20684 # no rules to generate ltmain.sh.
20685 if test -f "$ltmain"; then
20686   # See if we are running on zsh, and set the options which allow our commands through
20687   # without removal of \ escapes.
20688   if test -n "${ZSH_VERSION+set}" ; then
20689     setopt NO_GLOB_SUBST
20690   fi
20691   # Now quote all the things that may contain metacharacters while being
20692   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20693   # variables and quote the copies for generation of the libtool script.
20694   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20695     SED SHELL STRIP \
20696     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20697     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20698     deplibs_check_method reload_flag reload_cmds need_locks \
20699     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20700     lt_cv_sys_global_symbol_to_c_name_address \
20701     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20702     old_postinstall_cmds old_postuninstall_cmds \
20703     compiler_CXX \
20704     CC_CXX \
20705     LD_CXX \
20706     lt_prog_compiler_wl_CXX \
20707     lt_prog_compiler_pic_CXX \
20708     lt_prog_compiler_static_CXX \
20709     lt_prog_compiler_no_builtin_flag_CXX \
20710     export_dynamic_flag_spec_CXX \
20711     thread_safe_flag_spec_CXX \
20712     whole_archive_flag_spec_CXX \
20713     enable_shared_with_static_runtimes_CXX \
20714     old_archive_cmds_CXX \
20715     old_archive_from_new_cmds_CXX \
20716     predep_objects_CXX \
20717     postdep_objects_CXX \
20718     predeps_CXX \
20719     postdeps_CXX \
20720     compiler_lib_search_path_CXX \
20721     archive_cmds_CXX \
20722     archive_expsym_cmds_CXX \
20723     postinstall_cmds_CXX \
20724     postuninstall_cmds_CXX \
20725     old_archive_from_expsyms_cmds_CXX \
20726     allow_undefined_flag_CXX \
20727     no_undefined_flag_CXX \
20728     export_symbols_cmds_CXX \
20729     hardcode_libdir_flag_spec_CXX \
20730     hardcode_libdir_flag_spec_ld_CXX \
20731     hardcode_libdir_separator_CXX \
20732     hardcode_automatic_CXX \
20733     module_cmds_CXX \
20734     module_expsym_cmds_CXX \
20735     lt_cv_prog_compiler_c_o_CXX \
20736     exclude_expsyms_CXX \
20737     include_expsyms_CXX; do
20738
20739     case $var in
20740     old_archive_cmds_CXX | \
20741     old_archive_from_new_cmds_CXX | \
20742     archive_cmds_CXX | \
20743     archive_expsym_cmds_CXX | \
20744     module_cmds_CXX | \
20745     module_expsym_cmds_CXX | \
20746     old_archive_from_expsyms_cmds_CXX | \
20747     export_symbols_cmds_CXX | \
20748     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20749     postinstall_cmds | postuninstall_cmds | \
20750     old_postinstall_cmds | old_postuninstall_cmds | \
20751     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20752       # Double-quote double-evaled strings.
20753       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20754       ;;
20755     *)
20756       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20757       ;;
20758     esac
20759   done
20760
20761   case $lt_echo in
20762   *'\$0 --fallback-echo"')
20763     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20764     ;;
20765   esac
20766
20767 cfgfile="$ofile"
20768
20769   cat <<__EOF__ >> "$cfgfile"
20770 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20771
20772 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20773
20774 # Shell to use when invoking shell scripts.
20775 SHELL=$lt_SHELL
20776
20777 # Whether or not to build shared libraries.
20778 build_libtool_libs=$enable_shared
20779
20780 # Whether or not to build static libraries.
20781 build_old_libs=$enable_static
20782
20783 # Whether or not to add -lc for building shared libraries.
20784 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20785
20786 # Whether or not to disallow shared libs when runtime libs are static
20787 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20788
20789 # Whether or not to optimize for fast installation.
20790 fast_install=$enable_fast_install
20791
20792 # The host system.
20793 host_alias=$host_alias
20794 host=$host
20795 host_os=$host_os
20796
20797 # The build system.
20798 build_alias=$build_alias
20799 build=$build
20800 build_os=$build_os
20801
20802 # An echo program that does not interpret backslashes.
20803 echo=$lt_echo
20804
20805 # The archiver.
20806 AR=$lt_AR
20807 AR_FLAGS=$lt_AR_FLAGS
20808
20809 # A C compiler.
20810 LTCC=$lt_LTCC
20811
20812 # LTCC compiler flags.
20813 LTCFLAGS=$lt_LTCFLAGS
20814
20815 # A language-specific compiler.
20816 CC=$lt_compiler_CXX
20817
20818 # Is the compiler the GNU C compiler?
20819 with_gcc=$GCC_CXX
20820
20821 # An ERE matcher.
20822 EGREP=$lt_EGREP
20823
20824 # The linker used to build libraries.
20825 LD=$lt_LD_CXX
20826
20827 # Whether we need hard or soft links.
20828 LN_S=$lt_LN_S
20829
20830 # A BSD-compatible nm program.
20831 NM=$lt_NM
20832
20833 # A symbol stripping program
20834 STRIP=$lt_STRIP
20835
20836 # Used to examine libraries when file_magic_cmd begins "file"
20837 MAGIC_CMD=$MAGIC_CMD
20838
20839 # Used on cygwin: DLL creation program.
20840 DLLTOOL="$DLLTOOL"
20841
20842 # Used on cygwin: object dumper.
20843 OBJDUMP="$OBJDUMP"
20844
20845 # Used on cygwin: assembler.
20846 AS="$AS"
20847
20848 # The name of the directory that contains temporary libtool files.
20849 objdir=$objdir
20850
20851 # How to create reloadable object files.
20852 reload_flag=$lt_reload_flag
20853 reload_cmds=$lt_reload_cmds
20854
20855 # How to pass a linker flag through the compiler.
20856 wl=$lt_lt_prog_compiler_wl_CXX
20857
20858 # Object file suffix (normally "o").
20859 objext="$ac_objext"
20860
20861 # Old archive suffix (normally "a").
20862 libext="$libext"
20863
20864 # Shared library suffix (normally ".so").
20865 shrext_cmds='$shrext_cmds'
20866
20867 # Executable file suffix (normally "").
20868 exeext="$exeext"
20869
20870 # Additional compiler flags for building library objects.
20871 pic_flag=$lt_lt_prog_compiler_pic_CXX
20872 pic_mode=$pic_mode
20873
20874 # What is the maximum length of a command?
20875 max_cmd_len=$lt_cv_sys_max_cmd_len
20876
20877 # Does compiler simultaneously support -c and -o options?
20878 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20879
20880 # Must we lock files when doing compilation?
20881 need_locks=$lt_need_locks
20882
20883 # Do we need the lib prefix for modules?
20884 need_lib_prefix=$need_lib_prefix
20885
20886 # Do we need a version for libraries?
20887 need_version=$need_version
20888
20889 # Whether dlopen is supported.
20890 dlopen_support=$enable_dlopen
20891
20892 # Whether dlopen of programs is supported.
20893 dlopen_self=$enable_dlopen_self
20894
20895 # Whether dlopen of statically linked programs is supported.
20896 dlopen_self_static=$enable_dlopen_self_static
20897
20898 # Compiler flag to prevent dynamic linking.
20899 link_static_flag=$lt_lt_prog_compiler_static_CXX
20900
20901 # Compiler flag to turn off builtin functions.
20902 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20903
20904 # Compiler flag to allow reflexive dlopens.
20905 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20906
20907 # Compiler flag to generate shared objects directly from archives.
20908 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20909
20910 # Compiler flag to generate thread-safe objects.
20911 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20912
20913 # Library versioning type.
20914 version_type=$version_type
20915
20916 # Format of library name prefix.
20917 libname_spec=$lt_libname_spec
20918
20919 # List of archive names.  First name is the real one, the rest are links.
20920 # The last name is the one that the linker finds with -lNAME.
20921 library_names_spec=$lt_library_names_spec
20922
20923 # The coded name of the library, if different from the real name.
20924 soname_spec=$lt_soname_spec
20925
20926 # Commands used to build and install an old-style archive.
20927 RANLIB=$lt_RANLIB
20928 old_archive_cmds=$lt_old_archive_cmds_CXX
20929 old_postinstall_cmds=$lt_old_postinstall_cmds
20930 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20931
20932 # Create an old-style archive from a shared archive.
20933 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20934
20935 # Create a temporary old-style archive to link instead of a shared archive.
20936 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20937
20938 # Commands used to build and install a shared archive.
20939 archive_cmds=$lt_archive_cmds_CXX
20940 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20941 postinstall_cmds=$lt_postinstall_cmds
20942 postuninstall_cmds=$lt_postuninstall_cmds
20943
20944 # Commands used to build a loadable module (assumed same as above if empty)
20945 module_cmds=$lt_module_cmds_CXX
20946 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20947
20948 # Commands to strip libraries.
20949 old_striplib=$lt_old_striplib
20950 striplib=$lt_striplib
20951
20952 # Dependencies to place before the objects being linked to create a
20953 # shared library.
20954 predep_objects=$lt_predep_objects_CXX
20955
20956 # Dependencies to place after the objects being linked to create a
20957 # shared library.
20958 postdep_objects=$lt_postdep_objects_CXX
20959
20960 # Dependencies to place before the objects being linked to create a
20961 # shared library.
20962 predeps=$lt_predeps_CXX
20963
20964 # Dependencies to place after the objects being linked to create a
20965 # shared library.
20966 postdeps=$lt_postdeps_CXX
20967
20968 # The library search path used internally by the compiler when linking
20969 # a shared library.
20970 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20971
20972 # Method to check whether dependent libraries are shared objects.
20973 deplibs_check_method=$lt_deplibs_check_method
20974
20975 # Command to use when deplibs_check_method == file_magic.
20976 file_magic_cmd=$lt_file_magic_cmd
20977
20978 # Flag that allows shared libraries with undefined symbols to be built.
20979 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20980
20981 # Flag that forces no undefined symbols.
20982 no_undefined_flag=$lt_no_undefined_flag_CXX
20983
20984 # Commands used to finish a libtool library installation in a directory.
20985 finish_cmds=$lt_finish_cmds
20986
20987 # Same as above, but a single script fragment to be evaled but not shown.
20988 finish_eval=$lt_finish_eval
20989
20990 # Take the output of nm and produce a listing of raw symbols and C names.
20991 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20992
20993 # Transform the output of nm in a proper C declaration
20994 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20995
20996 # Transform the output of nm in a C name address pair
20997 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20998
20999 # This is the shared library runtime path variable.
21000 runpath_var=$runpath_var
21001
21002 # This is the shared library path variable.
21003 shlibpath_var=$shlibpath_var
21004
21005 # Is shlibpath searched before the hard-coded library search path?
21006 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21007
21008 # How to hardcode a shared library path into an executable.
21009 hardcode_action=$hardcode_action_CXX
21010
21011 # Whether we should hardcode library paths into libraries.
21012 hardcode_into_libs=$hardcode_into_libs
21013
21014 # Flag to hardcode \$libdir into a binary during linking.
21015 # This must work even if \$libdir does not exist.
21016 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21017
21018 # If ld is used when linking, flag to hardcode \$libdir into
21019 # a binary during linking. This must work even if \$libdir does
21020 # not exist.
21021 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21022
21023 # Whether we need a single -rpath flag with a separated argument.
21024 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21025
21026 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21027 # resulting binary.
21028 hardcode_direct=$hardcode_direct_CXX
21029
21030 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21031 # resulting binary.
21032 hardcode_minus_L=$hardcode_minus_L_CXX
21033
21034 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21035 # the resulting binary.
21036 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21037
21038 # Set to yes if building a shared library automatically hardcodes DIR into the library
21039 # and all subsequent libraries and executables linked against it.
21040 hardcode_automatic=$hardcode_automatic_CXX
21041
21042 # Variables whose values should be saved in libtool wrapper scripts and
21043 # restored at relink time.
21044 variables_saved_for_relink="$variables_saved_for_relink"
21045
21046 # Whether libtool must link a program against all its dependency libraries.
21047 link_all_deplibs=$link_all_deplibs_CXX
21048
21049 # Compile-time system search path for libraries
21050 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21051
21052 # Run-time system search path for libraries
21053 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21054
21055 # Fix the shell variable \$srcfile for the compiler.
21056 fix_srcfile_path="$fix_srcfile_path_CXX"
21057
21058 # Set to yes if exported symbols are required.
21059 always_export_symbols=$always_export_symbols_CXX
21060
21061 # The commands to list exported symbols.
21062 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21063
21064 # The commands to extract the exported symbol list from a shared archive.
21065 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21066
21067 # Symbols that should not be listed in the preloaded symbols.
21068 exclude_expsyms=$lt_exclude_expsyms_CXX
21069
21070 # Symbols that must always be exported.
21071 include_expsyms=$lt_include_expsyms_CXX
21072
21073 # ### END LIBTOOL TAG CONFIG: $tagname
21074
21075 __EOF__
21076
21077
21078 else
21079   # If there is no Makefile yet, we rely on a make rule to execute
21080   # `config.status --recheck' to rerun these tests and create the
21081   # libtool script then.
21082   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21083   if test -f "$ltmain_in"; then
21084     test -f Makefile && make "$ltmain"
21085   fi
21086 fi
21087
21088
21089 ac_ext=c
21090 ac_cpp='$CPP $CPPFLAGS'
21091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21094
21095 CC=$lt_save_CC
21096 LDCXX=$LD
21097 LD=$lt_save_LD
21098 GCC=$lt_save_GCC
21099 with_gnu_ldcxx=$with_gnu_ld
21100 with_gnu_ld=$lt_save_with_gnu_ld
21101 lt_cv_path_LDCXX=$lt_cv_path_LD
21102 lt_cv_path_LD=$lt_save_path_LD
21103 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21104 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21105
21106         else
21107           tagname=""
21108         fi
21109         ;;
21110
21111       F77)
21112         if test -n "$F77" && test "X$F77" != "Xno"; then
21113
21114 ac_ext=f
21115 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21116 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21117 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21118
21119
21120 archive_cmds_need_lc_F77=no
21121 allow_undefined_flag_F77=
21122 always_export_symbols_F77=no
21123 archive_expsym_cmds_F77=
21124 export_dynamic_flag_spec_F77=
21125 hardcode_direct_F77=no
21126 hardcode_libdir_flag_spec_F77=
21127 hardcode_libdir_flag_spec_ld_F77=
21128 hardcode_libdir_separator_F77=
21129 hardcode_minus_L_F77=no
21130 hardcode_automatic_F77=no
21131 module_cmds_F77=
21132 module_expsym_cmds_F77=
21133 link_all_deplibs_F77=unknown
21134 old_archive_cmds_F77=$old_archive_cmds
21135 no_undefined_flag_F77=
21136 whole_archive_flag_spec_F77=
21137 enable_shared_with_static_runtimes_F77=no
21138
21139 # Source file extension for f77 test sources.
21140 ac_ext=f
21141
21142 # Object file extension for compiled f77 test sources.
21143 objext=o
21144 objext_F77=$objext
21145
21146 # Code to be used in simple compile tests
21147 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21148
21149 # Code to be used in simple link tests
21150 lt_simple_link_test_code="      program t\n      end\n"
21151
21152 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21153
21154 # If no C compiler was specified, use CC.
21155 LTCC=${LTCC-"$CC"}
21156
21157 # If no C compiler flags were specified, use CFLAGS.
21158 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21159
21160 # Allow CC to be a program name with arguments.
21161 compiler=$CC
21162
21163
21164 # save warnings/boilerplate of simple test code
21165 ac_outfile=conftest.$ac_objext
21166 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21167 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21168 _lt_compiler_boilerplate=`cat conftest.err`
21169 $rm conftest*
21170
21171 ac_outfile=conftest.$ac_objext
21172 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21173 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21174 _lt_linker_boilerplate=`cat conftest.err`
21175 $rm conftest*
21176
21177
21178 # Allow CC to be a program name with arguments.
21179 lt_save_CC="$CC"
21180 CC=${F77-"f77"}
21181 compiler=$CC
21182 compiler_F77=$CC
21183 for cc_temp in $compiler""; do
21184   case $cc_temp in
21185     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21186     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21187     \-*) ;;
21188     *) break;;
21189   esac
21190 done
21191 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21192
21193
21194 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21195 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21196 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21197 echo "${ECHO_T}$can_build_shared" >&6; }
21198
21199 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21200 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21201 test "$can_build_shared" = "no" && enable_shared=no
21202
21203 # On AIX, shared libraries and static libraries use the same namespace, and
21204 # are all built from PIC.
21205 case $host_os in
21206 aix3*)
21207   test "$enable_shared" = yes && enable_static=no
21208   if test -n "$RANLIB"; then
21209     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21210     postinstall_cmds='$RANLIB $lib'
21211   fi
21212   ;;
21213 aix4* | aix5*)
21214   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21215     test "$enable_shared" = yes && enable_static=no
21216   fi
21217   ;;
21218 esac
21219 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21220 echo "${ECHO_T}$enable_shared" >&6; }
21221
21222 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21223 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21224 # Make sure either enable_shared or enable_static is yes.
21225 test "$enable_shared" = yes || enable_static=yes
21226 { echo "$as_me:$LINENO: result: $enable_static" >&5
21227 echo "${ECHO_T}$enable_static" >&6; }
21228
21229 GCC_F77="$G77"
21230 LD_F77="$LD"
21231
21232 lt_prog_compiler_wl_F77=
21233 lt_prog_compiler_pic_F77=
21234 lt_prog_compiler_static_F77=
21235
21236 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21237 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21238
21239   if test "$GCC" = yes; then
21240     lt_prog_compiler_wl_F77='-Wl,'
21241     lt_prog_compiler_static_F77='-static'
21242
21243     case $host_os in
21244       aix*)
21245       # All AIX code is PIC.
21246       if test "$host_cpu" = ia64; then
21247         # AIX 5 now supports IA64 processor
21248         lt_prog_compiler_static_F77='-Bstatic'
21249       fi
21250       ;;
21251
21252     amigaos*)
21253       # FIXME: we need at least 68020 code to build shared libraries, but
21254       # adding the `-m68020' flag to GCC prevents building anything better,
21255       # like `-m68040'.
21256       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21257       ;;
21258
21259     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21260       # PIC is the default for these OSes.
21261       ;;
21262
21263     mingw* | pw32* | os2*)
21264       # This hack is so that the source file can tell whether it is being
21265       # built for inclusion in a dll (and should export symbols for example).
21266       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21267       ;;
21268
21269     darwin* | rhapsody*)
21270       # PIC is the default on this platform
21271       # Common symbols not allowed in MH_DYLIB files
21272       lt_prog_compiler_pic_F77='-fno-common'
21273       ;;
21274
21275     interix3*)
21276       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21277       # Instead, we relocate shared libraries at runtime.
21278       ;;
21279
21280     msdosdjgpp*)
21281       # Just because we use GCC doesn't mean we suddenly get shared libraries
21282       # on systems that don't support them.
21283       lt_prog_compiler_can_build_shared_F77=no
21284       enable_shared=no
21285       ;;
21286
21287     sysv4*MP*)
21288       if test -d /usr/nec; then
21289         lt_prog_compiler_pic_F77=-Kconform_pic
21290       fi
21291       ;;
21292
21293     hpux*)
21294       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21295       # not for PA HP-UX.
21296       case $host_cpu in
21297       hppa*64*|ia64*)
21298         # +Z the default
21299         ;;
21300       *)
21301         lt_prog_compiler_pic_F77='-fPIC'
21302         ;;
21303       esac
21304       ;;
21305
21306     *)
21307       lt_prog_compiler_pic_F77='-fPIC'
21308       ;;
21309     esac
21310   else
21311     # PORTME Check for flag to pass linker flags through the system compiler.
21312     case $host_os in
21313     aix*)
21314       lt_prog_compiler_wl_F77='-Wl,'
21315       if test "$host_cpu" = ia64; then
21316         # AIX 5 now supports IA64 processor
21317         lt_prog_compiler_static_F77='-Bstatic'
21318       else
21319         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21320       fi
21321       ;;
21322       darwin*)
21323         # PIC is the default on this platform
21324         # Common symbols not allowed in MH_DYLIB files
21325        case $cc_basename in
21326          xlc*)
21327          lt_prog_compiler_pic_F77='-qnocommon'
21328          lt_prog_compiler_wl_F77='-Wl,'
21329          ;;
21330        esac
21331        ;;
21332
21333     mingw* | pw32* | os2*)
21334       # This hack is so that the source file can tell whether it is being
21335       # built for inclusion in a dll (and should export symbols for example).
21336       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21337       ;;
21338
21339     hpux9* | hpux10* | hpux11*)
21340       lt_prog_compiler_wl_F77='-Wl,'
21341       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21342       # not for PA HP-UX.
21343       case $host_cpu in
21344       hppa*64*|ia64*)
21345         # +Z the default
21346         ;;
21347       *)
21348         lt_prog_compiler_pic_F77='+Z'
21349         ;;
21350       esac
21351       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21352       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21353       ;;
21354
21355     irix5* | irix6* | nonstopux*)
21356       lt_prog_compiler_wl_F77='-Wl,'
21357       # PIC (with -KPIC) is the default.
21358       lt_prog_compiler_static_F77='-non_shared'
21359       ;;
21360
21361     newsos6)
21362       lt_prog_compiler_pic_F77='-KPIC'
21363       lt_prog_compiler_static_F77='-Bstatic'
21364       ;;
21365
21366     linux*)
21367       case $cc_basename in
21368       icc* | ecc*)
21369         lt_prog_compiler_wl_F77='-Wl,'
21370         lt_prog_compiler_pic_F77='-KPIC'
21371         lt_prog_compiler_static_F77='-static'
21372         ;;
21373       pgcc* | pgf77* | pgf90* | pgf95*)
21374         # Portland Group compilers (*not* the Pentium gcc compiler,
21375         # which looks to be a dead project)
21376         lt_prog_compiler_wl_F77='-Wl,'
21377         lt_prog_compiler_pic_F77='-fpic'
21378         lt_prog_compiler_static_F77='-Bstatic'
21379         ;;
21380       ccc*)
21381         lt_prog_compiler_wl_F77='-Wl,'
21382         # All Alpha code is PIC.
21383         lt_prog_compiler_static_F77='-non_shared'
21384         ;;
21385       esac
21386       ;;
21387
21388     osf3* | osf4* | osf5*)
21389       lt_prog_compiler_wl_F77='-Wl,'
21390       # All OSF/1 code is PIC.
21391       lt_prog_compiler_static_F77='-non_shared'
21392       ;;
21393
21394     solaris*)
21395       lt_prog_compiler_pic_F77='-KPIC'
21396       lt_prog_compiler_static_F77='-Bstatic'
21397       case $cc_basename in
21398       f77* | f90* | f95*)
21399         lt_prog_compiler_wl_F77='-Qoption ld ';;
21400       *)
21401         lt_prog_compiler_wl_F77='-Wl,';;
21402       esac
21403       ;;
21404
21405     sunos4*)
21406       lt_prog_compiler_wl_F77='-Qoption ld '
21407       lt_prog_compiler_pic_F77='-PIC'
21408       lt_prog_compiler_static_F77='-Bstatic'
21409       ;;
21410
21411     sysv4 | sysv4.2uw2* | sysv4.3*)
21412       lt_prog_compiler_wl_F77='-Wl,'
21413       lt_prog_compiler_pic_F77='-KPIC'
21414       lt_prog_compiler_static_F77='-Bstatic'
21415       ;;
21416
21417     sysv4*MP*)
21418       if test -d /usr/nec ;then
21419         lt_prog_compiler_pic_F77='-Kconform_pic'
21420         lt_prog_compiler_static_F77='-Bstatic'
21421       fi
21422       ;;
21423
21424     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21425       lt_prog_compiler_wl_F77='-Wl,'
21426       lt_prog_compiler_pic_F77='-KPIC'
21427       lt_prog_compiler_static_F77='-Bstatic'
21428       ;;
21429
21430     unicos*)
21431       lt_prog_compiler_wl_F77='-Wl,'
21432       lt_prog_compiler_can_build_shared_F77=no
21433       ;;
21434
21435     uts4*)
21436       lt_prog_compiler_pic_F77='-pic'
21437       lt_prog_compiler_static_F77='-Bstatic'
21438       ;;
21439
21440     *)
21441       lt_prog_compiler_can_build_shared_F77=no
21442       ;;
21443     esac
21444   fi
21445
21446 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21447 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21448
21449 #
21450 # Check to make sure the PIC flag actually works.
21451 #
21452 if test -n "$lt_prog_compiler_pic_F77"; then
21453
21454 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21455 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21456 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21457   echo $ECHO_N "(cached) $ECHO_C" >&6
21458 else
21459   lt_prog_compiler_pic_works_F77=no
21460   ac_outfile=conftest.$ac_objext
21461    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21462    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21463    # Insert the option either (1) after the last *FLAGS variable, or
21464    # (2) before a word containing "conftest.", or (3) at the end.
21465    # Note that $ac_compile itself does not contain backslashes and begins
21466    # with a dollar sign (not a hyphen), so the echo should work correctly.
21467    # The option is referenced via a variable to avoid confusing sed.
21468    lt_compile=`echo "$ac_compile" | $SED \
21469    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21470    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21471    -e 's:$: $lt_compiler_flag:'`
21472    (eval echo "\"\$as_me:21472: $lt_compile\"" >&5)
21473    (eval "$lt_compile" 2>conftest.err)
21474    ac_status=$?
21475    cat conftest.err >&5
21476    echo "$as_me:21476: \$? = $ac_status" >&5
21477    if (exit $ac_status) && test -s "$ac_outfile"; then
21478      # The compiler can only warn and ignore the option if not recognized
21479      # So say no if there are warnings other than the usual output.
21480      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21481      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21482      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21483        lt_prog_compiler_pic_works_F77=yes
21484      fi
21485    fi
21486    $rm conftest*
21487
21488 fi
21489 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21490 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21491
21492 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21493     case $lt_prog_compiler_pic_F77 in
21494      "" | " "*) ;;
21495      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21496      esac
21497 else
21498     lt_prog_compiler_pic_F77=
21499      lt_prog_compiler_can_build_shared_F77=no
21500 fi
21501
21502 fi
21503 case $host_os in
21504   # For platforms which do not support PIC, -DPIC is meaningless:
21505   *djgpp*)
21506     lt_prog_compiler_pic_F77=
21507     ;;
21508   *)
21509     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21510     ;;
21511 esac
21512
21513 #
21514 # Check to make sure the static flag actually works.
21515 #
21516 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21517 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21518 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21519 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21520   echo $ECHO_N "(cached) $ECHO_C" >&6
21521 else
21522   lt_prog_compiler_static_works_F77=no
21523    save_LDFLAGS="$LDFLAGS"
21524    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21525    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21526    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21527      # The linker can only warn and ignore the option if not recognized
21528      # So say no if there are warnings
21529      if test -s conftest.err; then
21530        # Append any errors to the config.log.
21531        cat conftest.err 1>&5
21532        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21533        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21534        if diff conftest.exp conftest.er2 >/dev/null; then
21535          lt_prog_compiler_static_works_F77=yes
21536        fi
21537      else
21538        lt_prog_compiler_static_works_F77=yes
21539      fi
21540    fi
21541    $rm conftest*
21542    LDFLAGS="$save_LDFLAGS"
21543
21544 fi
21545 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21546 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21547
21548 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21549     :
21550 else
21551     lt_prog_compiler_static_F77=
21552 fi
21553
21554
21555 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21556 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21557 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21558   echo $ECHO_N "(cached) $ECHO_C" >&6
21559 else
21560   lt_cv_prog_compiler_c_o_F77=no
21561    $rm -r conftest 2>/dev/null
21562    mkdir conftest
21563    cd conftest
21564    mkdir out
21565    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21566
21567    lt_compiler_flag="-o out/conftest2.$ac_objext"
21568    # Insert the option either (1) after the last *FLAGS variable, or
21569    # (2) before a word containing "conftest.", or (3) at the end.
21570    # Note that $ac_compile itself does not contain backslashes and begins
21571    # with a dollar sign (not a hyphen), so the echo should work correctly.
21572    lt_compile=`echo "$ac_compile" | $SED \
21573    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21574    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21575    -e 's:$: $lt_compiler_flag:'`
21576    (eval echo "\"\$as_me:21576: $lt_compile\"" >&5)
21577    (eval "$lt_compile" 2>out/conftest.err)
21578    ac_status=$?
21579    cat out/conftest.err >&5
21580    echo "$as_me:21580: \$? = $ac_status" >&5
21581    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21582    then
21583      # The compiler can only warn and ignore the option if not recognized
21584      # So say no if there are warnings
21585      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21586      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21587      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21588        lt_cv_prog_compiler_c_o_F77=yes
21589      fi
21590    fi
21591    chmod u+w . 2>&5
21592    $rm conftest*
21593    # SGI C++ compiler will create directory out/ii_files/ for
21594    # template instantiation
21595    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21596    $rm out/* && rmdir out
21597    cd ..
21598    rmdir conftest
21599    $rm conftest*
21600
21601 fi
21602 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21603 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21604
21605
21606 hard_links="nottested"
21607 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21608   # do not overwrite the value of need_locks provided by the user
21609   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21610 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21611   hard_links=yes
21612   $rm conftest*
21613   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21614   touch conftest.a
21615   ln conftest.a conftest.b 2>&5 || hard_links=no
21616   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21617   { echo "$as_me:$LINENO: result: $hard_links" >&5
21618 echo "${ECHO_T}$hard_links" >&6; }
21619   if test "$hard_links" = no; then
21620     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21621 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21622     need_locks=warn
21623   fi
21624 else
21625   need_locks=no
21626 fi
21627
21628 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21629 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21630
21631   runpath_var=
21632   allow_undefined_flag_F77=
21633   enable_shared_with_static_runtimes_F77=no
21634   archive_cmds_F77=
21635   archive_expsym_cmds_F77=
21636   old_archive_From_new_cmds_F77=
21637   old_archive_from_expsyms_cmds_F77=
21638   export_dynamic_flag_spec_F77=
21639   whole_archive_flag_spec_F77=
21640   thread_safe_flag_spec_F77=
21641   hardcode_libdir_flag_spec_F77=
21642   hardcode_libdir_flag_spec_ld_F77=
21643   hardcode_libdir_separator_F77=
21644   hardcode_direct_F77=no
21645   hardcode_minus_L_F77=no
21646   hardcode_shlibpath_var_F77=unsupported
21647   link_all_deplibs_F77=unknown
21648   hardcode_automatic_F77=no
21649   module_cmds_F77=
21650   module_expsym_cmds_F77=
21651   always_export_symbols_F77=no
21652   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21653   # include_expsyms should be a list of space-separated symbols to be *always*
21654   # included in the symbol list
21655   include_expsyms_F77=
21656   # exclude_expsyms can be an extended regexp of symbols to exclude
21657   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21658   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21659   # as well as any symbol that contains `d'.
21660   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21661   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21662   # platforms (ab)use it in PIC code, but their linkers get confused if
21663   # the symbol is explicitly referenced.  Since portable code cannot
21664   # rely on this symbol name, it's probably fine to never include it in
21665   # preloaded symbol tables.
21666   extract_expsyms_cmds=
21667   # Just being paranoid about ensuring that cc_basename is set.
21668   for cc_temp in $compiler""; do
21669   case $cc_temp in
21670     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21671     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21672     \-*) ;;
21673     *) break;;
21674   esac
21675 done
21676 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21677
21678   case $host_os in
21679   cygwin* | mingw* | pw32*)
21680     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21681     # When not using gcc, we currently assume that we are using
21682     # Microsoft Visual C++.
21683     if test "$GCC" != yes; then
21684       with_gnu_ld=no
21685     fi
21686     ;;
21687   interix*)
21688     # we just hope/assume this is gcc and not c89 (= MSVC++)
21689     with_gnu_ld=yes
21690     ;;
21691   openbsd*)
21692     with_gnu_ld=no
21693     ;;
21694   esac
21695
21696   ld_shlibs_F77=yes
21697   if test "$with_gnu_ld" = yes; then
21698     # If archive_cmds runs LD, not CC, wlarc should be empty
21699     wlarc='${wl}'
21700
21701     # Set some defaults for GNU ld with shared library support. These
21702     # are reset later if shared libraries are not supported. Putting them
21703     # here allows them to be overridden if necessary.
21704     runpath_var=LD_RUN_PATH
21705     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21706     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21707     # ancient GNU ld didn't support --whole-archive et. al.
21708     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21709         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21710       else
21711         whole_archive_flag_spec_F77=
21712     fi
21713     supports_anon_versioning=no
21714     case `$LD -v 2>/dev/null` in
21715       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21716       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21717       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21718       *\ 2.11.*) ;; # other 2.11 versions
21719       *) supports_anon_versioning=yes ;;
21720     esac
21721
21722     # See if GNU ld supports shared libraries.
21723     case $host_os in
21724     aix3* | aix4* | aix5*)
21725       # On AIX/PPC, the GNU linker is very broken
21726       if test "$host_cpu" != ia64; then
21727         ld_shlibs_F77=no
21728         cat <<EOF 1>&2
21729
21730 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21731 *** to be unable to reliably create shared libraries on AIX.
21732 *** Therefore, libtool is disabling shared libraries support.  If you
21733 *** really care for shared libraries, you may want to modify your PATH
21734 *** so that a non-GNU linker is found, and then restart.
21735
21736 EOF
21737       fi
21738       ;;
21739
21740     amigaos*)
21741       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)'
21742       hardcode_libdir_flag_spec_F77='-L$libdir'
21743       hardcode_minus_L_F77=yes
21744
21745       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21746       # that the semantics of dynamic libraries on AmigaOS, at least up
21747       # to version 4, is to share data among multiple programs linked
21748       # with the same dynamic library.  Since this doesn't match the
21749       # behavior of shared libraries on other platforms, we can't use
21750       # them.
21751       ld_shlibs_F77=no
21752       ;;
21753
21754     beos*)
21755       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21756         allow_undefined_flag_F77=unsupported
21757         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21758         # support --undefined.  This deserves some investigation.  FIXME
21759         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21760       else
21761         ld_shlibs_F77=no
21762       fi
21763       ;;
21764
21765     cygwin* | mingw* | pw32*)
21766       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21767       # as there is no search path for DLLs.
21768       hardcode_libdir_flag_spec_F77='-L$libdir'
21769       allow_undefined_flag_F77=unsupported
21770       always_export_symbols_F77=no
21771       enable_shared_with_static_runtimes_F77=yes
21772       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21773
21774       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21775         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21776         # If the export-symbols file already is a .def file (1st line
21777         # is EXPORTS), use it as is; otherwise, prepend...
21778         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21779           cp $export_symbols $output_objdir/$soname.def;
21780         else
21781           echo EXPORTS > $output_objdir/$soname.def;
21782           cat $export_symbols >> $output_objdir/$soname.def;
21783         fi~
21784         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21785       else
21786         ld_shlibs_F77=no
21787       fi
21788       ;;
21789
21790     interix3*)
21791       hardcode_direct_F77=no
21792       hardcode_shlibpath_var_F77=no
21793       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21794       export_dynamic_flag_spec_F77='${wl}-E'
21795       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21796       # Instead, shared libraries are loaded at an image base (0x10000000 by
21797       # default) and relocated if they conflict, which is a slow very memory
21798       # consuming and fragmenting process.  To avoid this, we pick a random,
21799       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21800       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21801       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'
21802       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'
21803       ;;
21804
21805     linux*)
21806       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21807         tmp_addflag=
21808         case $cc_basename,$host_cpu in
21809         pgcc*)                          # Portland Group C compiler
21810           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'
21811           tmp_addflag=' $pic_flag'
21812           ;;
21813         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21814           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'
21815           tmp_addflag=' $pic_flag -Mnomain' ;;
21816         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21817           tmp_addflag=' -i_dynamic' ;;
21818         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21819           tmp_addflag=' -i_dynamic -nofor_main' ;;
21820         ifc* | ifort*)                  # Intel Fortran compiler
21821           tmp_addflag=' -nofor_main' ;;
21822         esac
21823         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21824
21825         if test $supports_anon_versioning = yes; then
21826           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21827   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21828   $echo "local: *; };" >> $output_objdir/$libname.ver~
21829           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21830         fi
21831       else
21832         ld_shlibs_F77=no
21833       fi
21834       ;;
21835
21836     netbsd*)
21837       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21838         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21839         wlarc=
21840       else
21841         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21842         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21843       fi
21844       ;;
21845
21846     solaris*)
21847       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21848         ld_shlibs_F77=no
21849         cat <<EOF 1>&2
21850
21851 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21852 *** create shared libraries on Solaris systems.  Therefore, libtool
21853 *** is disabling shared libraries support.  We urge you to upgrade GNU
21854 *** binutils to release 2.9.1 or newer.  Another option is to modify
21855 *** your PATH or compiler configuration so that the native linker is
21856 *** used, and then restart.
21857
21858 EOF
21859       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21860         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21861         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21862       else
21863         ld_shlibs_F77=no
21864       fi
21865       ;;
21866
21867     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21868       case `$LD -v 2>&1` in
21869         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21870         ld_shlibs_F77=no
21871         cat <<_LT_EOF 1>&2
21872
21873 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21874 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21875 *** is disabling shared libraries support.  We urge you to upgrade GNU
21876 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21877 *** your PATH or compiler configuration so that the native linker is
21878 *** used, and then restart.
21879
21880 _LT_EOF
21881         ;;
21882         *)
21883           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21884             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21885             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21886             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21887           else
21888             ld_shlibs_F77=no
21889           fi
21890         ;;
21891       esac
21892       ;;
21893
21894     sunos4*)
21895       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21896       wlarc=
21897       hardcode_direct_F77=yes
21898       hardcode_shlibpath_var_F77=no
21899       ;;
21900
21901     *)
21902       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21903         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21904         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21905       else
21906         ld_shlibs_F77=no
21907       fi
21908       ;;
21909     esac
21910
21911     if test "$ld_shlibs_F77" = no; then
21912       runpath_var=
21913       hardcode_libdir_flag_spec_F77=
21914       export_dynamic_flag_spec_F77=
21915       whole_archive_flag_spec_F77=
21916     fi
21917   else
21918     # PORTME fill in a description of your system's linker (not GNU ld)
21919     case $host_os in
21920     aix3*)
21921       allow_undefined_flag_F77=unsupported
21922       always_export_symbols_F77=yes
21923       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'
21924       # Note: this linker hardcodes the directories in LIBPATH if there
21925       # are no directories specified by -L.
21926       hardcode_minus_L_F77=yes
21927       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21928         # Neither direct hardcoding nor static linking is supported with a
21929         # broken collect2.
21930         hardcode_direct_F77=unsupported
21931       fi
21932       ;;
21933
21934     aix4* | aix5*)
21935       if test "$host_cpu" = ia64; then
21936         # On IA64, the linker does run time linking by default, so we don't
21937         # have to do anything special.
21938         aix_use_runtimelinking=no
21939         exp_sym_flag='-Bexport'
21940         no_entry_flag=""
21941       else
21942         # If we're using GNU nm, then we don't want the "-C" option.
21943         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21944         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21945           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'
21946         else
21947           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'
21948         fi
21949         aix_use_runtimelinking=no
21950
21951         # Test if we are trying to use run time linking or normal
21952         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21953         # need to do runtime linking.
21954         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21955           for ld_flag in $LDFLAGS; do
21956           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21957             aix_use_runtimelinking=yes
21958             break
21959           fi
21960           done
21961           ;;
21962         esac
21963
21964         exp_sym_flag='-bexport'
21965         no_entry_flag='-bnoentry'
21966       fi
21967
21968       # When large executables or shared objects are built, AIX ld can
21969       # have problems creating the table of contents.  If linking a library
21970       # or program results in "error TOC overflow" add -mminimal-toc to
21971       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21972       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21973
21974       archive_cmds_F77=''
21975       hardcode_direct_F77=yes
21976       hardcode_libdir_separator_F77=':'
21977       link_all_deplibs_F77=yes
21978
21979       if test "$GCC" = yes; then
21980         case $host_os in aix4.[012]|aix4.[012].*)
21981         # We only want to do this on AIX 4.2 and lower, the check
21982         # below for broken collect2 doesn't work under 4.3+
21983           collect2name=`${CC} -print-prog-name=collect2`
21984           if test -f "$collect2name" && \
21985            strings "$collect2name" | grep resolve_lib_name >/dev/null
21986           then
21987           # We have reworked collect2
21988           hardcode_direct_F77=yes
21989           else
21990           # We have old collect2
21991           hardcode_direct_F77=unsupported
21992           # It fails to find uninstalled libraries when the uninstalled
21993           # path is not listed in the libpath.  Setting hardcode_minus_L
21994           # to unsupported forces relinking
21995           hardcode_minus_L_F77=yes
21996           hardcode_libdir_flag_spec_F77='-L$libdir'
21997           hardcode_libdir_separator_F77=
21998           fi
21999           ;;
22000         esac
22001         shared_flag='-shared'
22002         if test "$aix_use_runtimelinking" = yes; then
22003           shared_flag="$shared_flag "'${wl}-G'
22004         fi
22005       else
22006         # not using gcc
22007         if test "$host_cpu" = ia64; then
22008         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22009         # chokes on -Wl,-G. The following line is correct:
22010           shared_flag='-G'
22011         else
22012           if test "$aix_use_runtimelinking" = yes; then
22013             shared_flag='${wl}-G'
22014           else
22015             shared_flag='${wl}-bM:SRE'
22016           fi
22017         fi
22018       fi
22019
22020       # It seems that -bexpall does not export symbols beginning with
22021       # underscore (_), so it is better to generate a list of symbols to export.
22022       always_export_symbols_F77=yes
22023       if test "$aix_use_runtimelinking" = yes; then
22024         # Warning - without using the other runtime loading flags (-brtl),
22025         # -berok will link without error, but may produce a broken library.
22026         allow_undefined_flag_F77='-berok'
22027        # Determine the default libpath from the value encoded in an empty executable.
22028        cat >conftest.$ac_ext <<_ACEOF
22029       program main
22030
22031       end
22032 _ACEOF
22033 rm -f conftest.$ac_objext conftest$ac_exeext
22034 if { (ac_try="$ac_link"
22035 case "(($ac_try" in
22036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037   *) ac_try_echo=$ac_try;;
22038 esac
22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040   (eval "$ac_link") 2>conftest.er1
22041   ac_status=$?
22042   grep -v '^ *+' conftest.er1 >conftest.err
22043   rm -f conftest.er1
22044   cat conftest.err >&5
22045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); } &&
22047          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22048   { (case "(($ac_try" in
22049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050   *) ac_try_echo=$ac_try;;
22051 esac
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053   (eval "$ac_try") 2>&5
22054   ac_status=$?
22055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056   (exit $ac_status); }; } &&
22057          { ac_try='test -s conftest$ac_exeext'
22058   { (case "(($ac_try" in
22059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060   *) ac_try_echo=$ac_try;;
22061 esac
22062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063   (eval "$ac_try") 2>&5
22064   ac_status=$?
22065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066   (exit $ac_status); }; }; then
22067
22068 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22069 }'`
22070 # Check for a 64-bit object if we didn't find anything.
22071 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; }
22072 }'`; fi
22073 else
22074   echo "$as_me: failed program was:" >&5
22075 sed 's/^/| /' conftest.$ac_ext >&5
22076
22077
22078 fi
22079
22080 rm -f core conftest.err conftest.$ac_objext \
22081       conftest$ac_exeext conftest.$ac_ext
22082 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22083
22084        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22085         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"
22086        else
22087         if test "$host_cpu" = ia64; then
22088           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22089           allow_undefined_flag_F77="-z nodefs"
22090           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"
22091         else
22092          # Determine the default libpath from the value encoded in an empty executable.
22093          cat >conftest.$ac_ext <<_ACEOF
22094       program main
22095
22096       end
22097 _ACEOF
22098 rm -f conftest.$ac_objext conftest$ac_exeext
22099 if { (ac_try="$ac_link"
22100 case "(($ac_try" in
22101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102   *) ac_try_echo=$ac_try;;
22103 esac
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105   (eval "$ac_link") 2>conftest.er1
22106   ac_status=$?
22107   grep -v '^ *+' conftest.er1 >conftest.err
22108   rm -f conftest.er1
22109   cat conftest.err >&5
22110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111   (exit $ac_status); } &&
22112          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22113   { (case "(($ac_try" in
22114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115   *) ac_try_echo=$ac_try;;
22116 esac
22117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118   (eval "$ac_try") 2>&5
22119   ac_status=$?
22120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121   (exit $ac_status); }; } &&
22122          { ac_try='test -s conftest$ac_exeext'
22123   { (case "(($ac_try" in
22124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125   *) ac_try_echo=$ac_try;;
22126 esac
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128   (eval "$ac_try") 2>&5
22129   ac_status=$?
22130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131   (exit $ac_status); }; }; then
22132
22133 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22134 }'`
22135 # Check for a 64-bit object if we didn't find anything.
22136 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; }
22137 }'`; fi
22138 else
22139   echo "$as_me: failed program was:" >&5
22140 sed 's/^/| /' conftest.$ac_ext >&5
22141
22142
22143 fi
22144
22145 rm -f core conftest.err conftest.$ac_objext \
22146       conftest$ac_exeext conftest.$ac_ext
22147 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22148
22149          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22150           # Warning - without using the other run time loading flags,
22151           # -berok will link without error, but may produce a broken library.
22152           no_undefined_flag_F77=' ${wl}-bernotok'
22153           allow_undefined_flag_F77=' ${wl}-berok'
22154           # Exported symbols can be pulled into shared objects from archives
22155           whole_archive_flag_spec_F77='$convenience'
22156           archive_cmds_need_lc_F77=yes
22157           # This is similar to how AIX traditionally builds its shared libraries.
22158           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'
22159         fi
22160       fi
22161       ;;
22162
22163     amigaos*)
22164       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)'
22165       hardcode_libdir_flag_spec_F77='-L$libdir'
22166       hardcode_minus_L_F77=yes
22167       # see comment about different semantics on the GNU ld section
22168       ld_shlibs_F77=no
22169       ;;
22170
22171     bsdi[45]*)
22172       export_dynamic_flag_spec_F77=-rdynamic
22173       ;;
22174
22175     cygwin* | mingw* | pw32*)
22176       # When not using gcc, we currently assume that we are using
22177       # Microsoft Visual C++.
22178       # hardcode_libdir_flag_spec is actually meaningless, as there is
22179       # no search path for DLLs.
22180       hardcode_libdir_flag_spec_F77=' '
22181       allow_undefined_flag_F77=unsupported
22182       # Tell ltmain to make .lib files, not .a files.
22183       libext=lib
22184       # Tell ltmain to make .dll files, not .so files.
22185       shrext_cmds=".dll"
22186       # FIXME: Setting linknames here is a bad hack.
22187       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22188       # The linker will automatically build a .lib file if we build a DLL.
22189       old_archive_From_new_cmds_F77='true'
22190       # FIXME: Should let the user specify the lib program.
22191       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22192       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22193       enable_shared_with_static_runtimes_F77=yes
22194       ;;
22195
22196     darwin* | rhapsody*)
22197       case $host_os in
22198         rhapsody* | darwin1.[012])
22199          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22200          ;;
22201        *) # Darwin 1.3 on
22202          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22203            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22204          else
22205            case ${MACOSX_DEPLOYMENT_TARGET} in
22206              10.[012])
22207                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22208                ;;
22209              10.*)
22210                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22211                ;;
22212            esac
22213          fi
22214          ;;
22215       esac
22216       archive_cmds_need_lc_F77=no
22217       hardcode_direct_F77=no
22218       hardcode_automatic_F77=yes
22219       hardcode_shlibpath_var_F77=unsupported
22220       whole_archive_flag_spec_F77=''
22221       link_all_deplibs_F77=yes
22222     if test "$GCC" = yes ; then
22223         output_verbose_link_cmd='echo'
22224         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22225       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22226       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22227       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}'
22228       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}'
22229     else
22230       case $cc_basename in
22231         xlc*)
22232          output_verbose_link_cmd='echo'
22233          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22234          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22235           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22236          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}'
22237           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}'
22238           ;;
22239        *)
22240          ld_shlibs_F77=no
22241           ;;
22242       esac
22243     fi
22244       ;;
22245
22246     dgux*)
22247       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22248       hardcode_libdir_flag_spec_F77='-L$libdir'
22249       hardcode_shlibpath_var_F77=no
22250       ;;
22251
22252     freebsd1*)
22253       ld_shlibs_F77=no
22254       ;;
22255
22256     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22257     # support.  Future versions do this automatically, but an explicit c++rt0.o
22258     # does not break anything, and helps significantly (at the cost of a little
22259     # extra space).
22260     freebsd2.2*)
22261       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22262       hardcode_libdir_flag_spec_F77='-R$libdir'
22263       hardcode_direct_F77=yes
22264       hardcode_shlibpath_var_F77=no
22265       ;;
22266
22267     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22268     freebsd2*)
22269       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22270       hardcode_direct_F77=yes
22271       hardcode_minus_L_F77=yes
22272       hardcode_shlibpath_var_F77=no
22273       ;;
22274
22275     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22276     freebsd* | kfreebsd*-gnu | dragonfly*)
22277       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22278       hardcode_libdir_flag_spec_F77='-R$libdir'
22279       hardcode_direct_F77=yes
22280       hardcode_shlibpath_var_F77=no
22281       ;;
22282
22283     hpux9*)
22284       if test "$GCC" = yes; then
22285         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'
22286       else
22287         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'
22288       fi
22289       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22290       hardcode_libdir_separator_F77=:
22291       hardcode_direct_F77=yes
22292
22293       # hardcode_minus_L: Not really in the search PATH,
22294       # but as the default location of the library.
22295       hardcode_minus_L_F77=yes
22296       export_dynamic_flag_spec_F77='${wl}-E'
22297       ;;
22298
22299     hpux10*)
22300       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22301         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22302       else
22303         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22304       fi
22305       if test "$with_gnu_ld" = no; then
22306         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22307         hardcode_libdir_separator_F77=:
22308
22309         hardcode_direct_F77=yes
22310         export_dynamic_flag_spec_F77='${wl}-E'
22311
22312         # hardcode_minus_L: Not really in the search PATH,
22313         # but as the default location of the library.
22314         hardcode_minus_L_F77=yes
22315       fi
22316       ;;
22317
22318     hpux11*)
22319       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22320         case $host_cpu in
22321         hppa*64*)
22322           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22323           ;;
22324         ia64*)
22325           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22326           ;;
22327         *)
22328           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22329           ;;
22330         esac
22331       else
22332         case $host_cpu in
22333         hppa*64*)
22334           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22335           ;;
22336         ia64*)
22337           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22338           ;;
22339         *)
22340           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22341           ;;
22342         esac
22343       fi
22344       if test "$with_gnu_ld" = no; then
22345         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22346         hardcode_libdir_separator_F77=:
22347
22348         case $host_cpu in
22349         hppa*64*|ia64*)
22350           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22351           hardcode_direct_F77=no
22352           hardcode_shlibpath_var_F77=no
22353           ;;
22354         *)
22355           hardcode_direct_F77=yes
22356           export_dynamic_flag_spec_F77='${wl}-E'
22357
22358           # hardcode_minus_L: Not really in the search PATH,
22359           # but as the default location of the library.
22360           hardcode_minus_L_F77=yes
22361           ;;
22362         esac
22363       fi
22364       ;;
22365
22366     irix5* | irix6* | nonstopux*)
22367       if test "$GCC" = yes; then
22368         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'
22369       else
22370         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'
22371         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22372       fi
22373       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22374       hardcode_libdir_separator_F77=:
22375       link_all_deplibs_F77=yes
22376       ;;
22377
22378     netbsd*)
22379       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22380         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22381       else
22382         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22383       fi
22384       hardcode_libdir_flag_spec_F77='-R$libdir'
22385       hardcode_direct_F77=yes
22386       hardcode_shlibpath_var_F77=no
22387       ;;
22388
22389     newsos6)
22390       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22391       hardcode_direct_F77=yes
22392       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22393       hardcode_libdir_separator_F77=:
22394       hardcode_shlibpath_var_F77=no
22395       ;;
22396
22397     openbsd*)
22398       hardcode_direct_F77=yes
22399       hardcode_shlibpath_var_F77=no
22400       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22401         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22402         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22403         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22404         export_dynamic_flag_spec_F77='${wl}-E'
22405       else
22406        case $host_os in
22407          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22408            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22409            hardcode_libdir_flag_spec_F77='-R$libdir'
22410            ;;
22411          *)
22412            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22413            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22414            ;;
22415        esac
22416       fi
22417       ;;
22418
22419     os2*)
22420       hardcode_libdir_flag_spec_F77='-L$libdir'
22421       hardcode_minus_L_F77=yes
22422       allow_undefined_flag_F77=unsupported
22423       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'
22424       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22425       ;;
22426
22427     osf3*)
22428       if test "$GCC" = yes; then
22429         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22430         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'
22431       else
22432         allow_undefined_flag_F77=' -expect_unresolved \*'
22433         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'
22434       fi
22435       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22436       hardcode_libdir_separator_F77=:
22437       ;;
22438
22439     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22440       if test "$GCC" = yes; then
22441         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22442         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'
22443         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22444       else
22445         allow_undefined_flag_F77=' -expect_unresolved \*'
22446         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'
22447         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~
22448         $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'
22449
22450         # Both c and cxx compiler support -rpath directly
22451         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22452       fi
22453       hardcode_libdir_separator_F77=:
22454       ;;
22455
22456     solaris*)
22457       no_undefined_flag_F77=' -z text'
22458       if test "$GCC" = yes; then
22459         wlarc='${wl}'
22460         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22461         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22462           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22463       else
22464         wlarc=''
22465         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22466         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22467         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22468       fi
22469       hardcode_libdir_flag_spec_F77='-R$libdir'
22470       hardcode_shlibpath_var_F77=no
22471       case $host_os in
22472       solaris2.[0-5] | solaris2.[0-5].*) ;;
22473       *)
22474         # The compiler driver will combine linker options so we
22475         # cannot just pass the convience library names through
22476         # without $wl, iff we do not link with $LD.
22477         # Luckily, gcc supports the same syntax we need for Sun Studio.
22478         # Supported since Solaris 2.6 (maybe 2.5.1?)
22479         case $wlarc in
22480         '')
22481           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22482         *)
22483           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' ;;
22484         esac ;;
22485       esac
22486       link_all_deplibs_F77=yes
22487       ;;
22488
22489     sunos4*)
22490       if test "x$host_vendor" = xsequent; then
22491         # Use $CC to link under sequent, because it throws in some extra .o
22492         # files that make .init and .fini sections work.
22493         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22494       else
22495         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22496       fi
22497       hardcode_libdir_flag_spec_F77='-L$libdir'
22498       hardcode_direct_F77=yes
22499       hardcode_minus_L_F77=yes
22500       hardcode_shlibpath_var_F77=no
22501       ;;
22502
22503     sysv4)
22504       case $host_vendor in
22505         sni)
22506           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22507           hardcode_direct_F77=yes # is this really true???
22508         ;;
22509         siemens)
22510           ## LD is ld it makes a PLAMLIB
22511           ## CC just makes a GrossModule.
22512           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22513           reload_cmds_F77='$CC -r -o $output$reload_objs'
22514           hardcode_direct_F77=no
22515         ;;
22516         motorola)
22517           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22518           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22519         ;;
22520       esac
22521       runpath_var='LD_RUN_PATH'
22522       hardcode_shlibpath_var_F77=no
22523       ;;
22524
22525     sysv4.3*)
22526       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22527       hardcode_shlibpath_var_F77=no
22528       export_dynamic_flag_spec_F77='-Bexport'
22529       ;;
22530
22531     sysv4*MP*)
22532       if test -d /usr/nec; then
22533         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22534         hardcode_shlibpath_var_F77=no
22535         runpath_var=LD_RUN_PATH
22536         hardcode_runpath_var=yes
22537         ld_shlibs_F77=yes
22538       fi
22539       ;;
22540
22541     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22542       no_undefined_flag_F77='${wl}-z,text'
22543       archive_cmds_need_lc_F77=no
22544       hardcode_shlibpath_var_F77=no
22545       runpath_var='LD_RUN_PATH'
22546
22547       if test "$GCC" = yes; then
22548         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22549         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22550       else
22551         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22552         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22553       fi
22554       ;;
22555
22556     sysv5* | sco3.2v5* | sco5v6*)
22557       # Note: We can NOT use -z defs as we might desire, because we do not
22558       # link with -lc, and that would cause any symbols used from libc to
22559       # always be unresolved, which means just about no library would
22560       # ever link correctly.  If we're not using GNU ld we use -z text
22561       # though, which does catch some bad symbols but isn't as heavy-handed
22562       # as -z defs.
22563       no_undefined_flag_F77='${wl}-z,text'
22564       allow_undefined_flag_F77='${wl}-z,nodefs'
22565       archive_cmds_need_lc_F77=no
22566       hardcode_shlibpath_var_F77=no
22567       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22568       hardcode_libdir_separator_F77=':'
22569       link_all_deplibs_F77=yes
22570       export_dynamic_flag_spec_F77='${wl}-Bexport'
22571       runpath_var='LD_RUN_PATH'
22572
22573       if test "$GCC" = yes; then
22574         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22575         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22576       else
22577         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22578         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22579       fi
22580       ;;
22581
22582     uts4*)
22583       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22584       hardcode_libdir_flag_spec_F77='-L$libdir'
22585       hardcode_shlibpath_var_F77=no
22586       ;;
22587
22588     *)
22589       ld_shlibs_F77=no
22590       ;;
22591     esac
22592   fi
22593
22594 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22595 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22596 test "$ld_shlibs_F77" = no && can_build_shared=no
22597
22598 #
22599 # Do we need to explicitly link libc?
22600 #
22601 case "x$archive_cmds_need_lc_F77" in
22602 x|xyes)
22603   # Assume -lc should be added
22604   archive_cmds_need_lc_F77=yes
22605
22606   if test "$enable_shared" = yes && test "$GCC" = yes; then
22607     case $archive_cmds_F77 in
22608     *'~'*)
22609       # FIXME: we may have to deal with multi-command sequences.
22610       ;;
22611     '$CC '*)
22612       # Test whether the compiler implicitly links with -lc since on some
22613       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22614       # to ld, don't add -lc before -lgcc.
22615       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22616 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22617       $rm conftest*
22618       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22619
22620       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22621   (eval $ac_compile) 2>&5
22622   ac_status=$?
22623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624   (exit $ac_status); } 2>conftest.err; then
22625         soname=conftest
22626         lib=conftest
22627         libobjs=conftest.$ac_objext
22628         deplibs=
22629         wl=$lt_prog_compiler_wl_F77
22630         pic_flag=$lt_prog_compiler_pic_F77
22631         compiler_flags=-v
22632         linker_flags=-v
22633         verstring=
22634         output_objdir=.
22635         libname=conftest
22636         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22637         allow_undefined_flag_F77=
22638         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22639   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22640   ac_status=$?
22641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642   (exit $ac_status); }
22643         then
22644           archive_cmds_need_lc_F77=no
22645         else
22646           archive_cmds_need_lc_F77=yes
22647         fi
22648         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22649       else
22650         cat conftest.err 1>&5
22651       fi
22652       $rm conftest*
22653       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22654 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22655       ;;
22656     esac
22657   fi
22658   ;;
22659 esac
22660
22661 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22662 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22663 library_names_spec=
22664 libname_spec='lib$name'
22665 soname_spec=
22666 shrext_cmds=".so"
22667 postinstall_cmds=
22668 postuninstall_cmds=
22669 finish_cmds=
22670 finish_eval=
22671 shlibpath_var=
22672 shlibpath_overrides_runpath=unknown
22673 version_type=none
22674 dynamic_linker="$host_os ld.so"
22675 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22676 if test "$GCC" = yes; then
22677   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22678   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22679     # if the path contains ";" then we assume it to be the separator
22680     # otherwise default to the standard path separator (i.e. ":") - it is
22681     # assumed that no part of a normal pathname contains ";" but that should
22682     # okay in the real world where ";" in dirpaths is itself problematic.
22683     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22684   else
22685     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22686   fi
22687 else
22688   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22689 fi
22690 need_lib_prefix=unknown
22691 hardcode_into_libs=no
22692
22693 # when you set need_version to no, make sure it does not cause -set_version
22694 # flags to be left without arguments
22695 need_version=unknown
22696
22697 case $host_os in
22698 aix3*)
22699   version_type=linux
22700   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22701   shlibpath_var=LIBPATH
22702
22703   # AIX 3 has no versioning support, so we append a major version to the name.
22704   soname_spec='${libname}${release}${shared_ext}$major'
22705   ;;
22706
22707 aix4* | aix5*)
22708   version_type=linux
22709   need_lib_prefix=no
22710   need_version=no
22711   hardcode_into_libs=yes
22712   if test "$host_cpu" = ia64; then
22713     # AIX 5 supports IA64
22714     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22715     shlibpath_var=LD_LIBRARY_PATH
22716   else
22717     # With GCC up to 2.95.x, collect2 would create an import file
22718     # for dependence libraries.  The import file would start with
22719     # the line `#! .'.  This would cause the generated library to
22720     # depend on `.', always an invalid library.  This was fixed in
22721     # development snapshots of GCC prior to 3.0.
22722     case $host_os in
22723       aix4 | aix4.[01] | aix4.[01].*)
22724       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22725            echo ' yes '
22726            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22727         :
22728       else
22729         can_build_shared=no
22730       fi
22731       ;;
22732     esac
22733     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22734     # soname into executable. Probably we can add versioning support to
22735     # collect2, so additional links can be useful in future.
22736     if test "$aix_use_runtimelinking" = yes; then
22737       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22738       # instead of lib<name>.a to let people know that these are not
22739       # typical AIX shared libraries.
22740       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22741     else
22742       # We preserve .a as extension for shared libraries through AIX4.2
22743       # and later when we are not doing run time linking.
22744       library_names_spec='${libname}${release}.a $libname.a'
22745       soname_spec='${libname}${release}${shared_ext}$major'
22746     fi
22747     shlibpath_var=LIBPATH
22748   fi
22749   ;;
22750
22751 amigaos*)
22752   library_names_spec='$libname.ixlibrary $libname.a'
22753   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22754   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'
22755   ;;
22756
22757 beos*)
22758   library_names_spec='${libname}${shared_ext}'
22759   dynamic_linker="$host_os ld.so"
22760   shlibpath_var=LIBRARY_PATH
22761   ;;
22762
22763 bsdi[45]*)
22764   version_type=linux
22765   need_version=no
22766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22767   soname_spec='${libname}${release}${shared_ext}$major'
22768   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22769   shlibpath_var=LD_LIBRARY_PATH
22770   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22771   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22772   # the default ld.so.conf also contains /usr/contrib/lib and
22773   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22774   # libtool to hard-code these into programs
22775   ;;
22776
22777 cygwin* | mingw* | pw32*)
22778   version_type=windows
22779   shrext_cmds=".dll"
22780   need_version=no
22781   need_lib_prefix=no
22782
22783   case $GCC,$host_os in
22784   yes,cygwin* | yes,mingw* | yes,pw32*)
22785     library_names_spec='$libname.dll.a'
22786     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22787     postinstall_cmds='base_file=`basename \${file}`~
22788       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22789       dldir=$destdir/`dirname \$dlpath`~
22790       test -d \$dldir || mkdir -p \$dldir~
22791       $install_prog $dir/$dlname \$dldir/$dlname~
22792       chmod a+x \$dldir/$dlname'
22793     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22794       dlpath=$dir/\$dldll~
22795        $rm \$dlpath'
22796     shlibpath_overrides_runpath=yes
22797
22798     case $host_os in
22799     cygwin*)
22800       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22801       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22802       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22803       ;;
22804     mingw*)
22805       # MinGW DLLs use traditional 'lib' prefix
22806       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22807       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22808       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22809         # It is most probably a Windows format PATH printed by
22810         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22811         # path with ; separators, and with drive letters. We can handle the
22812         # drive letters (cygwin fileutils understands them), so leave them,
22813         # especially as we might pass files found there to a mingw objdump,
22814         # which wouldn't understand a cygwinified path. Ahh.
22815         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22816       else
22817         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22818       fi
22819       ;;
22820     pw32*)
22821       # pw32 DLLs use 'pw' prefix rather than 'lib'
22822       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22823       ;;
22824     esac
22825     ;;
22826
22827   *)
22828     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22829     ;;
22830   esac
22831   dynamic_linker='Win32 ld.exe'
22832   # FIXME: first we should search . and the directory the executable is in
22833   shlibpath_var=PATH
22834   ;;
22835
22836 darwin* | rhapsody*)
22837   dynamic_linker="$host_os dyld"
22838   version_type=darwin
22839   need_lib_prefix=no
22840   need_version=no
22841   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22842   soname_spec='${libname}${release}${major}$shared_ext'
22843   shlibpath_overrides_runpath=yes
22844   shlibpath_var=DYLD_LIBRARY_PATH
22845   shrext_cmds='.dylib'
22846   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22847   if test "$GCC" = yes; then
22848     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"`
22849   else
22850     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22851   fi
22852   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22853   ;;
22854
22855 dgux*)
22856   version_type=linux
22857   need_lib_prefix=no
22858   need_version=no
22859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22860   soname_spec='${libname}${release}${shared_ext}$major'
22861   shlibpath_var=LD_LIBRARY_PATH
22862   ;;
22863
22864 freebsd1*)
22865   dynamic_linker=no
22866   ;;
22867
22868 kfreebsd*-gnu)
22869   version_type=linux
22870   need_lib_prefix=no
22871   need_version=no
22872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22873   soname_spec='${libname}${release}${shared_ext}$major'
22874   shlibpath_var=LD_LIBRARY_PATH
22875   shlibpath_overrides_runpath=no
22876   hardcode_into_libs=yes
22877   dynamic_linker='GNU ld.so'
22878   ;;
22879
22880 freebsd* | dragonfly*)
22881   # DragonFly does not have aout.  When/if they implement a new
22882   # versioning mechanism, adjust this.
22883   if test -x /usr/bin/objformat; then
22884     objformat=`/usr/bin/objformat`
22885   else
22886     case $host_os in
22887     freebsd[123]*) objformat=aout ;;
22888     *) objformat=elf ;;
22889     esac
22890   fi
22891   version_type=freebsd-$objformat
22892   case $version_type in
22893     freebsd-elf*)
22894       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22895       need_version=no
22896       need_lib_prefix=no
22897       ;;
22898     freebsd-*)
22899       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22900       need_version=yes
22901       ;;
22902   esac
22903   shlibpath_var=LD_LIBRARY_PATH
22904   case $host_os in
22905   freebsd2*)
22906     shlibpath_overrides_runpath=yes
22907     ;;
22908   freebsd3.[01]* | freebsdelf3.[01]*)
22909     shlibpath_overrides_runpath=yes
22910     hardcode_into_libs=yes
22911     ;;
22912   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22913   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22914     shlibpath_overrides_runpath=no
22915     hardcode_into_libs=yes
22916     ;;
22917   freebsd*) # from 4.6 on
22918     shlibpath_overrides_runpath=yes
22919     hardcode_into_libs=yes
22920     ;;
22921   esac
22922   ;;
22923
22924 gnu*)
22925   version_type=linux
22926   need_lib_prefix=no
22927   need_version=no
22928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22929   soname_spec='${libname}${release}${shared_ext}$major'
22930   shlibpath_var=LD_LIBRARY_PATH
22931   hardcode_into_libs=yes
22932   ;;
22933
22934 hpux9* | hpux10* | hpux11*)
22935   # Give a soname corresponding to the major version so that dld.sl refuses to
22936   # link against other versions.
22937   version_type=sunos
22938   need_lib_prefix=no
22939   need_version=no
22940   case $host_cpu in
22941   ia64*)
22942     shrext_cmds='.so'
22943     hardcode_into_libs=yes
22944     dynamic_linker="$host_os dld.so"
22945     shlibpath_var=LD_LIBRARY_PATH
22946     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22948     soname_spec='${libname}${release}${shared_ext}$major'
22949     if test "X$HPUX_IA64_MODE" = X32; then
22950       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22951     else
22952       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22953     fi
22954     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22955     ;;
22956    hppa*64*)
22957      shrext_cmds='.sl'
22958      hardcode_into_libs=yes
22959      dynamic_linker="$host_os dld.sl"
22960      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22961      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22962      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22963      soname_spec='${libname}${release}${shared_ext}$major'
22964      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22965      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22966      ;;
22967    *)
22968     shrext_cmds='.sl'
22969     dynamic_linker="$host_os dld.sl"
22970     shlibpath_var=SHLIB_PATH
22971     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22973     soname_spec='${libname}${release}${shared_ext}$major'
22974     ;;
22975   esac
22976   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22977   postinstall_cmds='chmod 555 $lib'
22978   ;;
22979
22980 interix3*)
22981   version_type=linux
22982   need_lib_prefix=no
22983   need_version=no
22984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22985   soname_spec='${libname}${release}${shared_ext}$major'
22986   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22987   shlibpath_var=LD_LIBRARY_PATH
22988   shlibpath_overrides_runpath=no
22989   hardcode_into_libs=yes
22990   ;;
22991
22992 irix5* | irix6* | nonstopux*)
22993   case $host_os in
22994     nonstopux*) version_type=nonstopux ;;
22995     *)
22996         if test "$lt_cv_prog_gnu_ld" = yes; then
22997                 version_type=linux
22998         else
22999                 version_type=irix
23000         fi ;;
23001   esac
23002   need_lib_prefix=no
23003   need_version=no
23004   soname_spec='${libname}${release}${shared_ext}$major'
23005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23006   case $host_os in
23007   irix5* | nonstopux*)
23008     libsuff= shlibsuff=
23009     ;;
23010   *)
23011     case $LD in # libtool.m4 will add one of these switches to LD
23012     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23013       libsuff= shlibsuff= libmagic=32-bit;;
23014     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23015       libsuff=32 shlibsuff=N32 libmagic=N32;;
23016     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23017       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23018     *) libsuff= shlibsuff= libmagic=never-match;;
23019     esac
23020     ;;
23021   esac
23022   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23023   shlibpath_overrides_runpath=no
23024   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23025   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23026   hardcode_into_libs=yes
23027   ;;
23028
23029 # No shared lib support for Linux oldld, aout, or coff.
23030 linux*oldld* | linux*aout* | linux*coff*)
23031   dynamic_linker=no
23032   ;;
23033
23034 # This must be Linux ELF.
23035 linux*)
23036   version_type=linux
23037   need_lib_prefix=no
23038   need_version=no
23039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23040   soname_spec='${libname}${release}${shared_ext}$major'
23041   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23042   shlibpath_var=LD_LIBRARY_PATH
23043   shlibpath_overrides_runpath=no
23044   # This implies no fast_install, which is unacceptable.
23045   # Some rework will be needed to allow for fast_install
23046   # before this can be enabled.
23047   hardcode_into_libs=yes
23048
23049   # Append ld.so.conf contents to the search path
23050   if test -f /etc/ld.so.conf; then
23051     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' ' '`
23052     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23053   fi
23054
23055   # We used to test for /lib/ld.so.1 and disable shared libraries on
23056   # powerpc, because MkLinux only supported shared libraries with the
23057   # GNU dynamic linker.  Since this was broken with cross compilers,
23058   # most powerpc-linux boxes support dynamic linking these days and
23059   # people can always --disable-shared, the test was removed, and we
23060   # assume the GNU/Linux dynamic linker is in use.
23061   dynamic_linker='GNU/Linux ld.so'
23062   ;;
23063
23064 knetbsd*-gnu)
23065   version_type=linux
23066   need_lib_prefix=no
23067   need_version=no
23068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23069   soname_spec='${libname}${release}${shared_ext}$major'
23070   shlibpath_var=LD_LIBRARY_PATH
23071   shlibpath_overrides_runpath=no
23072   hardcode_into_libs=yes
23073   dynamic_linker='GNU ld.so'
23074   ;;
23075
23076 netbsd*)
23077   version_type=sunos
23078   need_lib_prefix=no
23079   need_version=no
23080   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23082     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23083     dynamic_linker='NetBSD (a.out) ld.so'
23084   else
23085     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23086     soname_spec='${libname}${release}${shared_ext}$major'
23087     dynamic_linker='NetBSD ld.elf_so'
23088   fi
23089   shlibpath_var=LD_LIBRARY_PATH
23090   shlibpath_overrides_runpath=yes
23091   hardcode_into_libs=yes
23092   ;;
23093
23094 newsos6)
23095   version_type=linux
23096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23097   shlibpath_var=LD_LIBRARY_PATH
23098   shlibpath_overrides_runpath=yes
23099   ;;
23100
23101 nto-qnx*)
23102   version_type=linux
23103   need_lib_prefix=no
23104   need_version=no
23105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23106   soname_spec='${libname}${release}${shared_ext}$major'
23107   shlibpath_var=LD_LIBRARY_PATH
23108   shlibpath_overrides_runpath=yes
23109   ;;
23110
23111 openbsd*)
23112   version_type=sunos
23113   sys_lib_dlsearch_path_spec="/usr/lib"
23114   need_lib_prefix=no
23115   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23116   case $host_os in
23117     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23118     *)                         need_version=no  ;;
23119   esac
23120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23121   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23122   shlibpath_var=LD_LIBRARY_PATH
23123   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23124     case $host_os in
23125       openbsd2.[89] | openbsd2.[89].*)
23126         shlibpath_overrides_runpath=no
23127         ;;
23128       *)
23129         shlibpath_overrides_runpath=yes
23130         ;;
23131       esac
23132   else
23133     shlibpath_overrides_runpath=yes
23134   fi
23135   ;;
23136
23137 os2*)
23138   libname_spec='$name'
23139   shrext_cmds=".dll"
23140   need_lib_prefix=no
23141   library_names_spec='$libname${shared_ext} $libname.a'
23142   dynamic_linker='OS/2 ld.exe'
23143   shlibpath_var=LIBPATH
23144   ;;
23145
23146 osf3* | osf4* | osf5*)
23147   version_type=osf
23148   need_lib_prefix=no
23149   need_version=no
23150   soname_spec='${libname}${release}${shared_ext}$major'
23151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23152   shlibpath_var=LD_LIBRARY_PATH
23153   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23154   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23155   ;;
23156
23157 solaris*)
23158   version_type=linux
23159   need_lib_prefix=no
23160   need_version=no
23161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23162   soname_spec='${libname}${release}${shared_ext}$major'
23163   shlibpath_var=LD_LIBRARY_PATH
23164   shlibpath_overrides_runpath=yes
23165   hardcode_into_libs=yes
23166   # ldd complains unless libraries are executable
23167   postinstall_cmds='chmod +x $lib'
23168   ;;
23169
23170 sunos4*)
23171   version_type=sunos
23172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23173   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23174   shlibpath_var=LD_LIBRARY_PATH
23175   shlibpath_overrides_runpath=yes
23176   if test "$with_gnu_ld" = yes; then
23177     need_lib_prefix=no
23178   fi
23179   need_version=yes
23180   ;;
23181
23182 sysv4 | sysv4.3*)
23183   version_type=linux
23184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23185   soname_spec='${libname}${release}${shared_ext}$major'
23186   shlibpath_var=LD_LIBRARY_PATH
23187   case $host_vendor in
23188     sni)
23189       shlibpath_overrides_runpath=no
23190       need_lib_prefix=no
23191       export_dynamic_flag_spec='${wl}-Blargedynsym'
23192       runpath_var=LD_RUN_PATH
23193       ;;
23194     siemens)
23195       need_lib_prefix=no
23196       ;;
23197     motorola)
23198       need_lib_prefix=no
23199       need_version=no
23200       shlibpath_overrides_runpath=no
23201       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23202       ;;
23203   esac
23204   ;;
23205
23206 sysv4*MP*)
23207   if test -d /usr/nec ;then
23208     version_type=linux
23209     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23210     soname_spec='$libname${shared_ext}.$major'
23211     shlibpath_var=LD_LIBRARY_PATH
23212   fi
23213   ;;
23214
23215 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23216   version_type=freebsd-elf
23217   need_lib_prefix=no
23218   need_version=no
23219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23220   soname_spec='${libname}${release}${shared_ext}$major'
23221   shlibpath_var=LD_LIBRARY_PATH
23222   hardcode_into_libs=yes
23223   if test "$with_gnu_ld" = yes; then
23224     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23225     shlibpath_overrides_runpath=no
23226   else
23227     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23228     shlibpath_overrides_runpath=yes
23229     case $host_os in
23230       sco3.2v5*)
23231         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23232         ;;
23233     esac
23234   fi
23235   sys_lib_dlsearch_path_spec='/usr/lib'
23236   ;;
23237
23238 uts4*)
23239   version_type=linux
23240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23241   soname_spec='${libname}${release}${shared_ext}$major'
23242   shlibpath_var=LD_LIBRARY_PATH
23243   ;;
23244
23245 *)
23246   dynamic_linker=no
23247   ;;
23248 esac
23249 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23250 echo "${ECHO_T}$dynamic_linker" >&6; }
23251 test "$dynamic_linker" = no && can_build_shared=no
23252
23253 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23254 if test "$GCC" = yes; then
23255   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23256 fi
23257
23258 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23259 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23260 hardcode_action_F77=
23261 if test -n "$hardcode_libdir_flag_spec_F77" || \
23262    test -n "$runpath_var_F77" || \
23263    test "X$hardcode_automatic_F77" = "Xyes" ; then
23264
23265   # We can hardcode non-existant directories.
23266   if test "$hardcode_direct_F77" != no &&
23267      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23268      # have to relink, otherwise we might link with an installed library
23269      # when we should be linking with a yet-to-be-installed one
23270      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23271      test "$hardcode_minus_L_F77" != no; then
23272     # Linking always hardcodes the temporary library directory.
23273     hardcode_action_F77=relink
23274   else
23275     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23276     hardcode_action_F77=immediate
23277   fi
23278 else
23279   # We cannot hardcode anything, or else we can only hardcode existing
23280   # directories.
23281   hardcode_action_F77=unsupported
23282 fi
23283 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23284 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23285
23286 if test "$hardcode_action_F77" = relink; then
23287   # Fast installation is not supported
23288   enable_fast_install=no
23289 elif test "$shlibpath_overrides_runpath" = yes ||
23290      test "$enable_shared" = no; then
23291   # Fast installation is not necessary
23292   enable_fast_install=needless
23293 fi
23294
23295
23296 # The else clause should only fire when bootstrapping the
23297 # libtool distribution, otherwise you forgot to ship ltmain.sh
23298 # with your package, and you will get complaints that there are
23299 # no rules to generate ltmain.sh.
23300 if test -f "$ltmain"; then
23301   # See if we are running on zsh, and set the options which allow our commands through
23302   # without removal of \ escapes.
23303   if test -n "${ZSH_VERSION+set}" ; then
23304     setopt NO_GLOB_SUBST
23305   fi
23306   # Now quote all the things that may contain metacharacters while being
23307   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23308   # variables and quote the copies for generation of the libtool script.
23309   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23310     SED SHELL STRIP \
23311     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23312     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23313     deplibs_check_method reload_flag reload_cmds need_locks \
23314     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23315     lt_cv_sys_global_symbol_to_c_name_address \
23316     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23317     old_postinstall_cmds old_postuninstall_cmds \
23318     compiler_F77 \
23319     CC_F77 \
23320     LD_F77 \
23321     lt_prog_compiler_wl_F77 \
23322     lt_prog_compiler_pic_F77 \
23323     lt_prog_compiler_static_F77 \
23324     lt_prog_compiler_no_builtin_flag_F77 \
23325     export_dynamic_flag_spec_F77 \
23326     thread_safe_flag_spec_F77 \
23327     whole_archive_flag_spec_F77 \
23328     enable_shared_with_static_runtimes_F77 \
23329     old_archive_cmds_F77 \
23330     old_archive_from_new_cmds_F77 \
23331     predep_objects_F77 \
23332     postdep_objects_F77 \
23333     predeps_F77 \
23334     postdeps_F77 \
23335     compiler_lib_search_path_F77 \
23336     archive_cmds_F77 \
23337     archive_expsym_cmds_F77 \
23338     postinstall_cmds_F77 \
23339     postuninstall_cmds_F77 \
23340     old_archive_from_expsyms_cmds_F77 \
23341     allow_undefined_flag_F77 \
23342     no_undefined_flag_F77 \
23343     export_symbols_cmds_F77 \
23344     hardcode_libdir_flag_spec_F77 \
23345     hardcode_libdir_flag_spec_ld_F77 \
23346     hardcode_libdir_separator_F77 \
23347     hardcode_automatic_F77 \
23348     module_cmds_F77 \
23349     module_expsym_cmds_F77 \
23350     lt_cv_prog_compiler_c_o_F77 \
23351     exclude_expsyms_F77 \
23352     include_expsyms_F77; do
23353
23354     case $var in
23355     old_archive_cmds_F77 | \
23356     old_archive_from_new_cmds_F77 | \
23357     archive_cmds_F77 | \
23358     archive_expsym_cmds_F77 | \
23359     module_cmds_F77 | \
23360     module_expsym_cmds_F77 | \
23361     old_archive_from_expsyms_cmds_F77 | \
23362     export_symbols_cmds_F77 | \
23363     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23364     postinstall_cmds | postuninstall_cmds | \
23365     old_postinstall_cmds | old_postuninstall_cmds | \
23366     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23367       # Double-quote double-evaled strings.
23368       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23369       ;;
23370     *)
23371       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23372       ;;
23373     esac
23374   done
23375
23376   case $lt_echo in
23377   *'\$0 --fallback-echo"')
23378     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23379     ;;
23380   esac
23381
23382 cfgfile="$ofile"
23383
23384   cat <<__EOF__ >> "$cfgfile"
23385 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23386
23387 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23388
23389 # Shell to use when invoking shell scripts.
23390 SHELL=$lt_SHELL
23391
23392 # Whether or not to build shared libraries.
23393 build_libtool_libs=$enable_shared
23394
23395 # Whether or not to build static libraries.
23396 build_old_libs=$enable_static
23397
23398 # Whether or not to add -lc for building shared libraries.
23399 build_libtool_need_lc=$archive_cmds_need_lc_F77
23400
23401 # Whether or not to disallow shared libs when runtime libs are static
23402 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23403
23404 # Whether or not to optimize for fast installation.
23405 fast_install=$enable_fast_install
23406
23407 # The host system.
23408 host_alias=$host_alias
23409 host=$host
23410 host_os=$host_os
23411
23412 # The build system.
23413 build_alias=$build_alias
23414 build=$build
23415 build_os=$build_os
23416
23417 # An echo program that does not interpret backslashes.
23418 echo=$lt_echo
23419
23420 # The archiver.
23421 AR=$lt_AR
23422 AR_FLAGS=$lt_AR_FLAGS
23423
23424 # A C compiler.
23425 LTCC=$lt_LTCC
23426
23427 # LTCC compiler flags.
23428 LTCFLAGS=$lt_LTCFLAGS
23429
23430 # A language-specific compiler.
23431 CC=$lt_compiler_F77
23432
23433 # Is the compiler the GNU C compiler?
23434 with_gcc=$GCC_F77
23435
23436 # An ERE matcher.
23437 EGREP=$lt_EGREP
23438
23439 # The linker used to build libraries.
23440 LD=$lt_LD_F77
23441
23442 # Whether we need hard or soft links.
23443 LN_S=$lt_LN_S
23444
23445 # A BSD-compatible nm program.
23446 NM=$lt_NM
23447
23448 # A symbol stripping program
23449 STRIP=$lt_STRIP
23450
23451 # Used to examine libraries when file_magic_cmd begins "file"
23452 MAGIC_CMD=$MAGIC_CMD
23453
23454 # Used on cygwin: DLL creation program.
23455 DLLTOOL="$DLLTOOL"
23456
23457 # Used on cygwin: object dumper.
23458 OBJDUMP="$OBJDUMP"
23459
23460 # Used on cygwin: assembler.
23461 AS="$AS"
23462
23463 # The name of the directory that contains temporary libtool files.
23464 objdir=$objdir
23465
23466 # How to create reloadable object files.
23467 reload_flag=$lt_reload_flag
23468 reload_cmds=$lt_reload_cmds
23469
23470 # How to pass a linker flag through the compiler.
23471 wl=$lt_lt_prog_compiler_wl_F77
23472
23473 # Object file suffix (normally "o").
23474 objext="$ac_objext"
23475
23476 # Old archive suffix (normally "a").
23477 libext="$libext"
23478
23479 # Shared library suffix (normally ".so").
23480 shrext_cmds='$shrext_cmds'
23481
23482 # Executable file suffix (normally "").
23483 exeext="$exeext"
23484
23485 # Additional compiler flags for building library objects.
23486 pic_flag=$lt_lt_prog_compiler_pic_F77
23487 pic_mode=$pic_mode
23488
23489 # What is the maximum length of a command?
23490 max_cmd_len=$lt_cv_sys_max_cmd_len
23491
23492 # Does compiler simultaneously support -c and -o options?
23493 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23494
23495 # Must we lock files when doing compilation?
23496 need_locks=$lt_need_locks
23497
23498 # Do we need the lib prefix for modules?
23499 need_lib_prefix=$need_lib_prefix
23500
23501 # Do we need a version for libraries?
23502 need_version=$need_version
23503
23504 # Whether dlopen is supported.
23505 dlopen_support=$enable_dlopen
23506
23507 # Whether dlopen of programs is supported.
23508 dlopen_self=$enable_dlopen_self
23509
23510 # Whether dlopen of statically linked programs is supported.
23511 dlopen_self_static=$enable_dlopen_self_static
23512
23513 # Compiler flag to prevent dynamic linking.
23514 link_static_flag=$lt_lt_prog_compiler_static_F77
23515
23516 # Compiler flag to turn off builtin functions.
23517 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23518
23519 # Compiler flag to allow reflexive dlopens.
23520 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23521
23522 # Compiler flag to generate shared objects directly from archives.
23523 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23524
23525 # Compiler flag to generate thread-safe objects.
23526 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23527
23528 # Library versioning type.
23529 version_type=$version_type
23530
23531 # Format of library name prefix.
23532 libname_spec=$lt_libname_spec
23533
23534 # List of archive names.  First name is the real one, the rest are links.
23535 # The last name is the one that the linker finds with -lNAME.
23536 library_names_spec=$lt_library_names_spec
23537
23538 # The coded name of the library, if different from the real name.
23539 soname_spec=$lt_soname_spec
23540
23541 # Commands used to build and install an old-style archive.
23542 RANLIB=$lt_RANLIB
23543 old_archive_cmds=$lt_old_archive_cmds_F77
23544 old_postinstall_cmds=$lt_old_postinstall_cmds
23545 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23546
23547 # Create an old-style archive from a shared archive.
23548 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23549
23550 # Create a temporary old-style archive to link instead of a shared archive.
23551 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23552
23553 # Commands used to build and install a shared archive.
23554 archive_cmds=$lt_archive_cmds_F77
23555 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23556 postinstall_cmds=$lt_postinstall_cmds
23557 postuninstall_cmds=$lt_postuninstall_cmds
23558
23559 # Commands used to build a loadable module (assumed same as above if empty)
23560 module_cmds=$lt_module_cmds_F77
23561 module_expsym_cmds=$lt_module_expsym_cmds_F77
23562
23563 # Commands to strip libraries.
23564 old_striplib=$lt_old_striplib
23565 striplib=$lt_striplib
23566
23567 # Dependencies to place before the objects being linked to create a
23568 # shared library.
23569 predep_objects=$lt_predep_objects_F77
23570
23571 # Dependencies to place after the objects being linked to create a
23572 # shared library.
23573 postdep_objects=$lt_postdep_objects_F77
23574
23575 # Dependencies to place before the objects being linked to create a
23576 # shared library.
23577 predeps=$lt_predeps_F77
23578
23579 # Dependencies to place after the objects being linked to create a
23580 # shared library.
23581 postdeps=$lt_postdeps_F77
23582
23583 # The library search path used internally by the compiler when linking
23584 # a shared library.
23585 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23586
23587 # Method to check whether dependent libraries are shared objects.
23588 deplibs_check_method=$lt_deplibs_check_method
23589
23590 # Command to use when deplibs_check_method == file_magic.
23591 file_magic_cmd=$lt_file_magic_cmd
23592
23593 # Flag that allows shared libraries with undefined symbols to be built.
23594 allow_undefined_flag=$lt_allow_undefined_flag_F77
23595
23596 # Flag that forces no undefined symbols.
23597 no_undefined_flag=$lt_no_undefined_flag_F77
23598
23599 # Commands used to finish a libtool library installation in a directory.
23600 finish_cmds=$lt_finish_cmds
23601
23602 # Same as above, but a single script fragment to be evaled but not shown.
23603 finish_eval=$lt_finish_eval
23604
23605 # Take the output of nm and produce a listing of raw symbols and C names.
23606 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23607
23608 # Transform the output of nm in a proper C declaration
23609 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23610
23611 # Transform the output of nm in a C name address pair
23612 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23613
23614 # This is the shared library runtime path variable.
23615 runpath_var=$runpath_var
23616
23617 # This is the shared library path variable.
23618 shlibpath_var=$shlibpath_var
23619
23620 # Is shlibpath searched before the hard-coded library search path?
23621 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23622
23623 # How to hardcode a shared library path into an executable.
23624 hardcode_action=$hardcode_action_F77
23625
23626 # Whether we should hardcode library paths into libraries.
23627 hardcode_into_libs=$hardcode_into_libs
23628
23629 # Flag to hardcode \$libdir into a binary during linking.
23630 # This must work even if \$libdir does not exist.
23631 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23632
23633 # If ld is used when linking, flag to hardcode \$libdir into
23634 # a binary during linking. This must work even if \$libdir does
23635 # not exist.
23636 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23637
23638 # Whether we need a single -rpath flag with a separated argument.
23639 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23640
23641 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23642 # resulting binary.
23643 hardcode_direct=$hardcode_direct_F77
23644
23645 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23646 # resulting binary.
23647 hardcode_minus_L=$hardcode_minus_L_F77
23648
23649 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23650 # the resulting binary.
23651 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23652
23653 # Set to yes if building a shared library automatically hardcodes DIR into the library
23654 # and all subsequent libraries and executables linked against it.
23655 hardcode_automatic=$hardcode_automatic_F77
23656
23657 # Variables whose values should be saved in libtool wrapper scripts and
23658 # restored at relink time.
23659 variables_saved_for_relink="$variables_saved_for_relink"
23660
23661 # Whether libtool must link a program against all its dependency libraries.
23662 link_all_deplibs=$link_all_deplibs_F77
23663
23664 # Compile-time system search path for libraries
23665 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23666
23667 # Run-time system search path for libraries
23668 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23669
23670 # Fix the shell variable \$srcfile for the compiler.
23671 fix_srcfile_path="$fix_srcfile_path_F77"
23672
23673 # Set to yes if exported symbols are required.
23674 always_export_symbols=$always_export_symbols_F77
23675
23676 # The commands to list exported symbols.
23677 export_symbols_cmds=$lt_export_symbols_cmds_F77
23678
23679 # The commands to extract the exported symbol list from a shared archive.
23680 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23681
23682 # Symbols that should not be listed in the preloaded symbols.
23683 exclude_expsyms=$lt_exclude_expsyms_F77
23684
23685 # Symbols that must always be exported.
23686 include_expsyms=$lt_include_expsyms_F77
23687
23688 # ### END LIBTOOL TAG CONFIG: $tagname
23689
23690 __EOF__
23691
23692
23693 else
23694   # If there is no Makefile yet, we rely on a make rule to execute
23695   # `config.status --recheck' to rerun these tests and create the
23696   # libtool script then.
23697   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23698   if test -f "$ltmain_in"; then
23699     test -f Makefile && make "$ltmain"
23700   fi
23701 fi
23702
23703
23704 ac_ext=c
23705 ac_cpp='$CPP $CPPFLAGS'
23706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23709
23710 CC="$lt_save_CC"
23711
23712         else
23713           tagname=""
23714         fi
23715         ;;
23716
23717       GCJ)
23718         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23719           ac_ext=c
23720 ac_cpp='$CPP $CPPFLAGS'
23721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23724
23725
23726 # Source file extension for Java test sources.
23727 ac_ext=java
23728
23729 # Object file extension for compiled Java test sources.
23730 objext=o
23731 objext_GCJ=$objext
23732
23733 # Code to be used in simple compile tests
23734 lt_simple_compile_test_code="class foo {}\n"
23735
23736 # Code to be used in simple link tests
23737 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23738
23739 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23740
23741 # If no C compiler was specified, use CC.
23742 LTCC=${LTCC-"$CC"}
23743
23744 # If no C compiler flags were specified, use CFLAGS.
23745 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23746
23747 # Allow CC to be a program name with arguments.
23748 compiler=$CC
23749
23750
23751 # save warnings/boilerplate of simple test code
23752 ac_outfile=conftest.$ac_objext
23753 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23754 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23755 _lt_compiler_boilerplate=`cat conftest.err`
23756 $rm conftest*
23757
23758 ac_outfile=conftest.$ac_objext
23759 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23760 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23761 _lt_linker_boilerplate=`cat conftest.err`
23762 $rm conftest*
23763
23764
23765 # Allow CC to be a program name with arguments.
23766 lt_save_CC="$CC"
23767 CC=${GCJ-"gcj"}
23768 compiler=$CC
23769 compiler_GCJ=$CC
23770 for cc_temp in $compiler""; do
23771   case $cc_temp in
23772     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23773     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23774     \-*) ;;
23775     *) break;;
23776   esac
23777 done
23778 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23779
23780
23781 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23782 archive_cmds_need_lc_GCJ=no
23783
23784 old_archive_cmds_GCJ=$old_archive_cmds
23785
23786
23787 lt_prog_compiler_no_builtin_flag_GCJ=
23788
23789 if test "$GCC" = yes; then
23790   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23791
23792
23793 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23794 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23795 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23796   echo $ECHO_N "(cached) $ECHO_C" >&6
23797 else
23798   lt_cv_prog_compiler_rtti_exceptions=no
23799   ac_outfile=conftest.$ac_objext
23800    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23801    lt_compiler_flag="-fno-rtti -fno-exceptions"
23802    # Insert the option either (1) after the last *FLAGS variable, or
23803    # (2) before a word containing "conftest.", or (3) at the end.
23804    # Note that $ac_compile itself does not contain backslashes and begins
23805    # with a dollar sign (not a hyphen), so the echo should work correctly.
23806    # The option is referenced via a variable to avoid confusing sed.
23807    lt_compile=`echo "$ac_compile" | $SED \
23808    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23809    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23810    -e 's:$: $lt_compiler_flag:'`
23811    (eval echo "\"\$as_me:23811: $lt_compile\"" >&5)
23812    (eval "$lt_compile" 2>conftest.err)
23813    ac_status=$?
23814    cat conftest.err >&5
23815    echo "$as_me:23815: \$? = $ac_status" >&5
23816    if (exit $ac_status) && test -s "$ac_outfile"; then
23817      # The compiler can only warn and ignore the option if not recognized
23818      # So say no if there are warnings other than the usual output.
23819      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23820      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23821      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23822        lt_cv_prog_compiler_rtti_exceptions=yes
23823      fi
23824    fi
23825    $rm conftest*
23826
23827 fi
23828 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23829 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23830
23831 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23832     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23833 else
23834     :
23835 fi
23836
23837 fi
23838
23839 lt_prog_compiler_wl_GCJ=
23840 lt_prog_compiler_pic_GCJ=
23841 lt_prog_compiler_static_GCJ=
23842
23843 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23844 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23845
23846   if test "$GCC" = yes; then
23847     lt_prog_compiler_wl_GCJ='-Wl,'
23848     lt_prog_compiler_static_GCJ='-static'
23849
23850     case $host_os in
23851       aix*)
23852       # All AIX code is PIC.
23853       if test "$host_cpu" = ia64; then
23854         # AIX 5 now supports IA64 processor
23855         lt_prog_compiler_static_GCJ='-Bstatic'
23856       fi
23857       ;;
23858
23859     amigaos*)
23860       # FIXME: we need at least 68020 code to build shared libraries, but
23861       # adding the `-m68020' flag to GCC prevents building anything better,
23862       # like `-m68040'.
23863       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23864       ;;
23865
23866     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23867       # PIC is the default for these OSes.
23868       ;;
23869
23870     mingw* | pw32* | os2*)
23871       # This hack is so that the source file can tell whether it is being
23872       # built for inclusion in a dll (and should export symbols for example).
23873       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23874       ;;
23875
23876     darwin* | rhapsody*)
23877       # PIC is the default on this platform
23878       # Common symbols not allowed in MH_DYLIB files
23879       lt_prog_compiler_pic_GCJ='-fno-common'
23880       ;;
23881
23882     interix3*)
23883       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23884       # Instead, we relocate shared libraries at runtime.
23885       ;;
23886
23887     msdosdjgpp*)
23888       # Just because we use GCC doesn't mean we suddenly get shared libraries
23889       # on systems that don't support them.
23890       lt_prog_compiler_can_build_shared_GCJ=no
23891       enable_shared=no
23892       ;;
23893
23894     sysv4*MP*)
23895       if test -d /usr/nec; then
23896         lt_prog_compiler_pic_GCJ=-Kconform_pic
23897       fi
23898       ;;
23899
23900     hpux*)
23901       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23902       # not for PA HP-UX.
23903       case $host_cpu in
23904       hppa*64*|ia64*)
23905         # +Z the default
23906         ;;
23907       *)
23908         lt_prog_compiler_pic_GCJ='-fPIC'
23909         ;;
23910       esac
23911       ;;
23912
23913     *)
23914       lt_prog_compiler_pic_GCJ='-fPIC'
23915       ;;
23916     esac
23917   else
23918     # PORTME Check for flag to pass linker flags through the system compiler.
23919     case $host_os in
23920     aix*)
23921       lt_prog_compiler_wl_GCJ='-Wl,'
23922       if test "$host_cpu" = ia64; then
23923         # AIX 5 now supports IA64 processor
23924         lt_prog_compiler_static_GCJ='-Bstatic'
23925       else
23926         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23927       fi
23928       ;;
23929       darwin*)
23930         # PIC is the default on this platform
23931         # Common symbols not allowed in MH_DYLIB files
23932        case $cc_basename in
23933          xlc*)
23934          lt_prog_compiler_pic_GCJ='-qnocommon'
23935          lt_prog_compiler_wl_GCJ='-Wl,'
23936          ;;
23937        esac
23938        ;;
23939
23940     mingw* | pw32* | os2*)
23941       # This hack is so that the source file can tell whether it is being
23942       # built for inclusion in a dll (and should export symbols for example).
23943       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23944       ;;
23945
23946     hpux9* | hpux10* | hpux11*)
23947       lt_prog_compiler_wl_GCJ='-Wl,'
23948       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23949       # not for PA HP-UX.
23950       case $host_cpu in
23951       hppa*64*|ia64*)
23952         # +Z the default
23953         ;;
23954       *)
23955         lt_prog_compiler_pic_GCJ='+Z'
23956         ;;
23957       esac
23958       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23959       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23960       ;;
23961
23962     irix5* | irix6* | nonstopux*)
23963       lt_prog_compiler_wl_GCJ='-Wl,'
23964       # PIC (with -KPIC) is the default.
23965       lt_prog_compiler_static_GCJ='-non_shared'
23966       ;;
23967
23968     newsos6)
23969       lt_prog_compiler_pic_GCJ='-KPIC'
23970       lt_prog_compiler_static_GCJ='-Bstatic'
23971       ;;
23972
23973     linux*)
23974       case $cc_basename in
23975       icc* | ecc*)
23976         lt_prog_compiler_wl_GCJ='-Wl,'
23977         lt_prog_compiler_pic_GCJ='-KPIC'
23978         lt_prog_compiler_static_GCJ='-static'
23979         ;;
23980       pgcc* | pgf77* | pgf90* | pgf95*)
23981         # Portland Group compilers (*not* the Pentium gcc compiler,
23982         # which looks to be a dead project)
23983         lt_prog_compiler_wl_GCJ='-Wl,'
23984         lt_prog_compiler_pic_GCJ='-fpic'
23985         lt_prog_compiler_static_GCJ='-Bstatic'
23986         ;;
23987       ccc*)
23988         lt_prog_compiler_wl_GCJ='-Wl,'
23989         # All Alpha code is PIC.
23990         lt_prog_compiler_static_GCJ='-non_shared'
23991         ;;
23992       esac
23993       ;;
23994
23995     osf3* | osf4* | osf5*)
23996       lt_prog_compiler_wl_GCJ='-Wl,'
23997       # All OSF/1 code is PIC.
23998       lt_prog_compiler_static_GCJ='-non_shared'
23999       ;;
24000
24001     solaris*)
24002       lt_prog_compiler_pic_GCJ='-KPIC'
24003       lt_prog_compiler_static_GCJ='-Bstatic'
24004       case $cc_basename in
24005       f77* | f90* | f95*)
24006         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24007       *)
24008         lt_prog_compiler_wl_GCJ='-Wl,';;
24009       esac
24010       ;;
24011
24012     sunos4*)
24013       lt_prog_compiler_wl_GCJ='-Qoption ld '
24014       lt_prog_compiler_pic_GCJ='-PIC'
24015       lt_prog_compiler_static_GCJ='-Bstatic'
24016       ;;
24017
24018     sysv4 | sysv4.2uw2* | sysv4.3*)
24019       lt_prog_compiler_wl_GCJ='-Wl,'
24020       lt_prog_compiler_pic_GCJ='-KPIC'
24021       lt_prog_compiler_static_GCJ='-Bstatic'
24022       ;;
24023
24024     sysv4*MP*)
24025       if test -d /usr/nec ;then
24026         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24027         lt_prog_compiler_static_GCJ='-Bstatic'
24028       fi
24029       ;;
24030
24031     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24032       lt_prog_compiler_wl_GCJ='-Wl,'
24033       lt_prog_compiler_pic_GCJ='-KPIC'
24034       lt_prog_compiler_static_GCJ='-Bstatic'
24035       ;;
24036
24037     unicos*)
24038       lt_prog_compiler_wl_GCJ='-Wl,'
24039       lt_prog_compiler_can_build_shared_GCJ=no
24040       ;;
24041
24042     uts4*)
24043       lt_prog_compiler_pic_GCJ='-pic'
24044       lt_prog_compiler_static_GCJ='-Bstatic'
24045       ;;
24046
24047     *)
24048       lt_prog_compiler_can_build_shared_GCJ=no
24049       ;;
24050     esac
24051   fi
24052
24053 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24054 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24055
24056 #
24057 # Check to make sure the PIC flag actually works.
24058 #
24059 if test -n "$lt_prog_compiler_pic_GCJ"; then
24060
24061 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24062 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24063 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24064   echo $ECHO_N "(cached) $ECHO_C" >&6
24065 else
24066   lt_prog_compiler_pic_works_GCJ=no
24067   ac_outfile=conftest.$ac_objext
24068    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24069    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24070    # Insert the option either (1) after the last *FLAGS variable, or
24071    # (2) before a word containing "conftest.", or (3) at the end.
24072    # Note that $ac_compile itself does not contain backslashes and begins
24073    # with a dollar sign (not a hyphen), so the echo should work correctly.
24074    # The option is referenced via a variable to avoid confusing sed.
24075    lt_compile=`echo "$ac_compile" | $SED \
24076    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24077    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24078    -e 's:$: $lt_compiler_flag:'`
24079    (eval echo "\"\$as_me:24079: $lt_compile\"" >&5)
24080    (eval "$lt_compile" 2>conftest.err)
24081    ac_status=$?
24082    cat conftest.err >&5
24083    echo "$as_me:24083: \$? = $ac_status" >&5
24084    if (exit $ac_status) && test -s "$ac_outfile"; then
24085      # The compiler can only warn and ignore the option if not recognized
24086      # So say no if there are warnings other than the usual output.
24087      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24088      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24089      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24090        lt_prog_compiler_pic_works_GCJ=yes
24091      fi
24092    fi
24093    $rm conftest*
24094
24095 fi
24096 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24097 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24098
24099 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24100     case $lt_prog_compiler_pic_GCJ in
24101      "" | " "*) ;;
24102      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24103      esac
24104 else
24105     lt_prog_compiler_pic_GCJ=
24106      lt_prog_compiler_can_build_shared_GCJ=no
24107 fi
24108
24109 fi
24110 case $host_os in
24111   # For platforms which do not support PIC, -DPIC is meaningless:
24112   *djgpp*)
24113     lt_prog_compiler_pic_GCJ=
24114     ;;
24115   *)
24116     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24117     ;;
24118 esac
24119
24120 #
24121 # Check to make sure the static flag actually works.
24122 #
24123 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24124 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24125 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24126 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24127   echo $ECHO_N "(cached) $ECHO_C" >&6
24128 else
24129   lt_prog_compiler_static_works_GCJ=no
24130    save_LDFLAGS="$LDFLAGS"
24131    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24132    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24133    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24134      # The linker can only warn and ignore the option if not recognized
24135      # So say no if there are warnings
24136      if test -s conftest.err; then
24137        # Append any errors to the config.log.
24138        cat conftest.err 1>&5
24139        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24140        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24141        if diff conftest.exp conftest.er2 >/dev/null; then
24142          lt_prog_compiler_static_works_GCJ=yes
24143        fi
24144      else
24145        lt_prog_compiler_static_works_GCJ=yes
24146      fi
24147    fi
24148    $rm conftest*
24149    LDFLAGS="$save_LDFLAGS"
24150
24151 fi
24152 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24153 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24154
24155 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24156     :
24157 else
24158     lt_prog_compiler_static_GCJ=
24159 fi
24160
24161
24162 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24163 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24164 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24165   echo $ECHO_N "(cached) $ECHO_C" >&6
24166 else
24167   lt_cv_prog_compiler_c_o_GCJ=no
24168    $rm -r conftest 2>/dev/null
24169    mkdir conftest
24170    cd conftest
24171    mkdir out
24172    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24173
24174    lt_compiler_flag="-o out/conftest2.$ac_objext"
24175    # Insert the option either (1) after the last *FLAGS variable, or
24176    # (2) before a word containing "conftest.", or (3) at the end.
24177    # Note that $ac_compile itself does not contain backslashes and begins
24178    # with a dollar sign (not a hyphen), so the echo should work correctly.
24179    lt_compile=`echo "$ac_compile" | $SED \
24180    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24181    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24182    -e 's:$: $lt_compiler_flag:'`
24183    (eval echo "\"\$as_me:24183: $lt_compile\"" >&5)
24184    (eval "$lt_compile" 2>out/conftest.err)
24185    ac_status=$?
24186    cat out/conftest.err >&5
24187    echo "$as_me:24187: \$? = $ac_status" >&5
24188    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24189    then
24190      # The compiler can only warn and ignore the option if not recognized
24191      # So say no if there are warnings
24192      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24193      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24194      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24195        lt_cv_prog_compiler_c_o_GCJ=yes
24196      fi
24197    fi
24198    chmod u+w . 2>&5
24199    $rm conftest*
24200    # SGI C++ compiler will create directory out/ii_files/ for
24201    # template instantiation
24202    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24203    $rm out/* && rmdir out
24204    cd ..
24205    rmdir conftest
24206    $rm conftest*
24207
24208 fi
24209 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24210 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24211
24212
24213 hard_links="nottested"
24214 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24215   # do not overwrite the value of need_locks provided by the user
24216   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24217 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24218   hard_links=yes
24219   $rm conftest*
24220   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24221   touch conftest.a
24222   ln conftest.a conftest.b 2>&5 || hard_links=no
24223   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24224   { echo "$as_me:$LINENO: result: $hard_links" >&5
24225 echo "${ECHO_T}$hard_links" >&6; }
24226   if test "$hard_links" = no; then
24227     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24228 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24229     need_locks=warn
24230   fi
24231 else
24232   need_locks=no
24233 fi
24234
24235 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24236 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24237
24238   runpath_var=
24239   allow_undefined_flag_GCJ=
24240   enable_shared_with_static_runtimes_GCJ=no
24241   archive_cmds_GCJ=
24242   archive_expsym_cmds_GCJ=
24243   old_archive_From_new_cmds_GCJ=
24244   old_archive_from_expsyms_cmds_GCJ=
24245   export_dynamic_flag_spec_GCJ=
24246   whole_archive_flag_spec_GCJ=
24247   thread_safe_flag_spec_GCJ=
24248   hardcode_libdir_flag_spec_GCJ=
24249   hardcode_libdir_flag_spec_ld_GCJ=
24250   hardcode_libdir_separator_GCJ=
24251   hardcode_direct_GCJ=no
24252   hardcode_minus_L_GCJ=no
24253   hardcode_shlibpath_var_GCJ=unsupported
24254   link_all_deplibs_GCJ=unknown
24255   hardcode_automatic_GCJ=no
24256   module_cmds_GCJ=
24257   module_expsym_cmds_GCJ=
24258   always_export_symbols_GCJ=no
24259   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24260   # include_expsyms should be a list of space-separated symbols to be *always*
24261   # included in the symbol list
24262   include_expsyms_GCJ=
24263   # exclude_expsyms can be an extended regexp of symbols to exclude
24264   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24265   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24266   # as well as any symbol that contains `d'.
24267   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24268   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24269   # platforms (ab)use it in PIC code, but their linkers get confused if
24270   # the symbol is explicitly referenced.  Since portable code cannot
24271   # rely on this symbol name, it's probably fine to never include it in
24272   # preloaded symbol tables.
24273   extract_expsyms_cmds=
24274   # Just being paranoid about ensuring that cc_basename is set.
24275   for cc_temp in $compiler""; do
24276   case $cc_temp in
24277     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24278     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24279     \-*) ;;
24280     *) break;;
24281   esac
24282 done
24283 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24284
24285   case $host_os in
24286   cygwin* | mingw* | pw32*)
24287     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24288     # When not using gcc, we currently assume that we are using
24289     # Microsoft Visual C++.
24290     if test "$GCC" != yes; then
24291       with_gnu_ld=no
24292     fi
24293     ;;
24294   interix*)
24295     # we just hope/assume this is gcc and not c89 (= MSVC++)
24296     with_gnu_ld=yes
24297     ;;
24298   openbsd*)
24299     with_gnu_ld=no
24300     ;;
24301   esac
24302
24303   ld_shlibs_GCJ=yes
24304   if test "$with_gnu_ld" = yes; then
24305     # If archive_cmds runs LD, not CC, wlarc should be empty
24306     wlarc='${wl}'
24307
24308     # Set some defaults for GNU ld with shared library support. These
24309     # are reset later if shared libraries are not supported. Putting them
24310     # here allows them to be overridden if necessary.
24311     runpath_var=LD_RUN_PATH
24312     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24313     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24314     # ancient GNU ld didn't support --whole-archive et. al.
24315     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24316         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24317       else
24318         whole_archive_flag_spec_GCJ=
24319     fi
24320     supports_anon_versioning=no
24321     case `$LD -v 2>/dev/null` in
24322       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24323       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24324       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24325       *\ 2.11.*) ;; # other 2.11 versions
24326       *) supports_anon_versioning=yes ;;
24327     esac
24328
24329     # See if GNU ld supports shared libraries.
24330     case $host_os in
24331     aix3* | aix4* | aix5*)
24332       # On AIX/PPC, the GNU linker is very broken
24333       if test "$host_cpu" != ia64; then
24334         ld_shlibs_GCJ=no
24335         cat <<EOF 1>&2
24336
24337 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24338 *** to be unable to reliably create shared libraries on AIX.
24339 *** Therefore, libtool is disabling shared libraries support.  If you
24340 *** really care for shared libraries, you may want to modify your PATH
24341 *** so that a non-GNU linker is found, and then restart.
24342
24343 EOF
24344       fi
24345       ;;
24346
24347     amigaos*)
24348       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)'
24349       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24350       hardcode_minus_L_GCJ=yes
24351
24352       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24353       # that the semantics of dynamic libraries on AmigaOS, at least up
24354       # to version 4, is to share data among multiple programs linked
24355       # with the same dynamic library.  Since this doesn't match the
24356       # behavior of shared libraries on other platforms, we can't use
24357       # them.
24358       ld_shlibs_GCJ=no
24359       ;;
24360
24361     beos*)
24362       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24363         allow_undefined_flag_GCJ=unsupported
24364         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24365         # support --undefined.  This deserves some investigation.  FIXME
24366         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24367       else
24368         ld_shlibs_GCJ=no
24369       fi
24370       ;;
24371
24372     cygwin* | mingw* | pw32*)
24373       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24374       # as there is no search path for DLLs.
24375       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24376       allow_undefined_flag_GCJ=unsupported
24377       always_export_symbols_GCJ=no
24378       enable_shared_with_static_runtimes_GCJ=yes
24379       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24380
24381       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24382         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24383         # If the export-symbols file already is a .def file (1st line
24384         # is EXPORTS), use it as is; otherwise, prepend...
24385         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24386           cp $export_symbols $output_objdir/$soname.def;
24387         else
24388           echo EXPORTS > $output_objdir/$soname.def;
24389           cat $export_symbols >> $output_objdir/$soname.def;
24390         fi~
24391         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24392       else
24393         ld_shlibs_GCJ=no
24394       fi
24395       ;;
24396
24397     interix3*)
24398       hardcode_direct_GCJ=no
24399       hardcode_shlibpath_var_GCJ=no
24400       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24401       export_dynamic_flag_spec_GCJ='${wl}-E'
24402       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24403       # Instead, shared libraries are loaded at an image base (0x10000000 by
24404       # default) and relocated if they conflict, which is a slow very memory
24405       # consuming and fragmenting process.  To avoid this, we pick a random,
24406       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24407       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24408       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'
24409       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'
24410       ;;
24411
24412     linux*)
24413       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24414         tmp_addflag=
24415         case $cc_basename,$host_cpu in
24416         pgcc*)                          # Portland Group C compiler
24417           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'
24418           tmp_addflag=' $pic_flag'
24419           ;;
24420         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24421           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'
24422           tmp_addflag=' $pic_flag -Mnomain' ;;
24423         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24424           tmp_addflag=' -i_dynamic' ;;
24425         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24426           tmp_addflag=' -i_dynamic -nofor_main' ;;
24427         ifc* | ifort*)                  # Intel Fortran compiler
24428           tmp_addflag=' -nofor_main' ;;
24429         esac
24430         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24431
24432         if test $supports_anon_versioning = yes; then
24433           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24434   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24435   $echo "local: *; };" >> $output_objdir/$libname.ver~
24436           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24437         fi
24438       else
24439         ld_shlibs_GCJ=no
24440       fi
24441       ;;
24442
24443     netbsd*)
24444       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24445         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24446         wlarc=
24447       else
24448         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24449         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24450       fi
24451       ;;
24452
24453     solaris*)
24454       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24455         ld_shlibs_GCJ=no
24456         cat <<EOF 1>&2
24457
24458 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24459 *** create shared libraries on Solaris systems.  Therefore, libtool
24460 *** is disabling shared libraries support.  We urge you to upgrade GNU
24461 *** binutils to release 2.9.1 or newer.  Another option is to modify
24462 *** your PATH or compiler configuration so that the native linker is
24463 *** used, and then restart.
24464
24465 EOF
24466       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24467         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24468         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24469       else
24470         ld_shlibs_GCJ=no
24471       fi
24472       ;;
24473
24474     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24475       case `$LD -v 2>&1` in
24476         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24477         ld_shlibs_GCJ=no
24478         cat <<_LT_EOF 1>&2
24479
24480 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24481 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24482 *** is disabling shared libraries support.  We urge you to upgrade GNU
24483 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24484 *** your PATH or compiler configuration so that the native linker is
24485 *** used, and then restart.
24486
24487 _LT_EOF
24488         ;;
24489         *)
24490           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24491             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24492             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24493             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24494           else
24495             ld_shlibs_GCJ=no
24496           fi
24497         ;;
24498       esac
24499       ;;
24500
24501     sunos4*)
24502       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24503       wlarc=
24504       hardcode_direct_GCJ=yes
24505       hardcode_shlibpath_var_GCJ=no
24506       ;;
24507
24508     *)
24509       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24510         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24511         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24512       else
24513         ld_shlibs_GCJ=no
24514       fi
24515       ;;
24516     esac
24517
24518     if test "$ld_shlibs_GCJ" = no; then
24519       runpath_var=
24520       hardcode_libdir_flag_spec_GCJ=
24521       export_dynamic_flag_spec_GCJ=
24522       whole_archive_flag_spec_GCJ=
24523     fi
24524   else
24525     # PORTME fill in a description of your system's linker (not GNU ld)
24526     case $host_os in
24527     aix3*)
24528       allow_undefined_flag_GCJ=unsupported
24529       always_export_symbols_GCJ=yes
24530       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'
24531       # Note: this linker hardcodes the directories in LIBPATH if there
24532       # are no directories specified by -L.
24533       hardcode_minus_L_GCJ=yes
24534       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24535         # Neither direct hardcoding nor static linking is supported with a
24536         # broken collect2.
24537         hardcode_direct_GCJ=unsupported
24538       fi
24539       ;;
24540
24541     aix4* | aix5*)
24542       if test "$host_cpu" = ia64; then
24543         # On IA64, the linker does run time linking by default, so we don't
24544         # have to do anything special.
24545         aix_use_runtimelinking=no
24546         exp_sym_flag='-Bexport'
24547         no_entry_flag=""
24548       else
24549         # If we're using GNU nm, then we don't want the "-C" option.
24550         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24551         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24552           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'
24553         else
24554           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'
24555         fi
24556         aix_use_runtimelinking=no
24557
24558         # Test if we are trying to use run time linking or normal
24559         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24560         # need to do runtime linking.
24561         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24562           for ld_flag in $LDFLAGS; do
24563           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24564             aix_use_runtimelinking=yes
24565             break
24566           fi
24567           done
24568           ;;
24569         esac
24570
24571         exp_sym_flag='-bexport'
24572         no_entry_flag='-bnoentry'
24573       fi
24574
24575       # When large executables or shared objects are built, AIX ld can
24576       # have problems creating the table of contents.  If linking a library
24577       # or program results in "error TOC overflow" add -mminimal-toc to
24578       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24579       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24580
24581       archive_cmds_GCJ=''
24582       hardcode_direct_GCJ=yes
24583       hardcode_libdir_separator_GCJ=':'
24584       link_all_deplibs_GCJ=yes
24585
24586       if test "$GCC" = yes; then
24587         case $host_os in aix4.[012]|aix4.[012].*)
24588         # We only want to do this on AIX 4.2 and lower, the check
24589         # below for broken collect2 doesn't work under 4.3+
24590           collect2name=`${CC} -print-prog-name=collect2`
24591           if test -f "$collect2name" && \
24592            strings "$collect2name" | grep resolve_lib_name >/dev/null
24593           then
24594           # We have reworked collect2
24595           hardcode_direct_GCJ=yes
24596           else
24597           # We have old collect2
24598           hardcode_direct_GCJ=unsupported
24599           # It fails to find uninstalled libraries when the uninstalled
24600           # path is not listed in the libpath.  Setting hardcode_minus_L
24601           # to unsupported forces relinking
24602           hardcode_minus_L_GCJ=yes
24603           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24604           hardcode_libdir_separator_GCJ=
24605           fi
24606           ;;
24607         esac
24608         shared_flag='-shared'
24609         if test "$aix_use_runtimelinking" = yes; then
24610           shared_flag="$shared_flag "'${wl}-G'
24611         fi
24612       else
24613         # not using gcc
24614         if test "$host_cpu" = ia64; then
24615         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24616         # chokes on -Wl,-G. The following line is correct:
24617           shared_flag='-G'
24618         else
24619           if test "$aix_use_runtimelinking" = yes; then
24620             shared_flag='${wl}-G'
24621           else
24622             shared_flag='${wl}-bM:SRE'
24623           fi
24624         fi
24625       fi
24626
24627       # It seems that -bexpall does not export symbols beginning with
24628       # underscore (_), so it is better to generate a list of symbols to export.
24629       always_export_symbols_GCJ=yes
24630       if test "$aix_use_runtimelinking" = yes; then
24631         # Warning - without using the other runtime loading flags (-brtl),
24632         # -berok will link without error, but may produce a broken library.
24633         allow_undefined_flag_GCJ='-berok'
24634        # Determine the default libpath from the value encoded in an empty executable.
24635        cat >conftest.$ac_ext <<_ACEOF
24636 /* confdefs.h.  */
24637 _ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h.  */
24641
24642 int
24643 main ()
24644 {
24645
24646   ;
24647   return 0;
24648 }
24649 _ACEOF
24650 rm -f conftest.$ac_objext conftest$ac_exeext
24651 if { (ac_try="$ac_link"
24652 case "(($ac_try" in
24653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24654   *) ac_try_echo=$ac_try;;
24655 esac
24656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24657   (eval "$ac_link") 2>conftest.er1
24658   ac_status=$?
24659   grep -v '^ *+' conftest.er1 >conftest.err
24660   rm -f conftest.er1
24661   cat conftest.err >&5
24662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663   (exit $ac_status); } &&
24664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24665   { (case "(($ac_try" in
24666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667   *) ac_try_echo=$ac_try;;
24668 esac
24669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670   (eval "$ac_try") 2>&5
24671   ac_status=$?
24672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673   (exit $ac_status); }; } &&
24674          { ac_try='test -s conftest$ac_exeext'
24675   { (case "(($ac_try" in
24676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677   *) ac_try_echo=$ac_try;;
24678 esac
24679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24680   (eval "$ac_try") 2>&5
24681   ac_status=$?
24682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683   (exit $ac_status); }; }; then
24684
24685 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24686 }'`
24687 # Check for a 64-bit object if we didn't find anything.
24688 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; }
24689 }'`; fi
24690 else
24691   echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24693
24694
24695 fi
24696
24697 rm -f core conftest.err conftest.$ac_objext \
24698       conftest$ac_exeext conftest.$ac_ext
24699 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24700
24701        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24702         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"
24703        else
24704         if test "$host_cpu" = ia64; then
24705           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24706           allow_undefined_flag_GCJ="-z nodefs"
24707           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"
24708         else
24709          # Determine the default libpath from the value encoded in an empty executable.
24710          cat >conftest.$ac_ext <<_ACEOF
24711 /* confdefs.h.  */
24712 _ACEOF
24713 cat confdefs.h >>conftest.$ac_ext
24714 cat >>conftest.$ac_ext <<_ACEOF
24715 /* end confdefs.h.  */
24716
24717 int
24718 main ()
24719 {
24720
24721   ;
24722   return 0;
24723 }
24724 _ACEOF
24725 rm -f conftest.$ac_objext conftest$ac_exeext
24726 if { (ac_try="$ac_link"
24727 case "(($ac_try" in
24728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24729   *) ac_try_echo=$ac_try;;
24730 esac
24731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24732   (eval "$ac_link") 2>conftest.er1
24733   ac_status=$?
24734   grep -v '^ *+' conftest.er1 >conftest.err
24735   rm -f conftest.er1
24736   cat conftest.err >&5
24737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738   (exit $ac_status); } &&
24739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24740   { (case "(($ac_try" in
24741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24742   *) ac_try_echo=$ac_try;;
24743 esac
24744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24745   (eval "$ac_try") 2>&5
24746   ac_status=$?
24747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748   (exit $ac_status); }; } &&
24749          { ac_try='test -s conftest$ac_exeext'
24750   { (case "(($ac_try" in
24751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24752   *) ac_try_echo=$ac_try;;
24753 esac
24754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24755   (eval "$ac_try") 2>&5
24756   ac_status=$?
24757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758   (exit $ac_status); }; }; then
24759
24760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24761 }'`
24762 # Check for a 64-bit object if we didn't find anything.
24763 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; }
24764 }'`; fi
24765 else
24766   echo "$as_me: failed program was:" >&5
24767 sed 's/^/| /' conftest.$ac_ext >&5
24768
24769
24770 fi
24771
24772 rm -f core conftest.err conftest.$ac_objext \
24773       conftest$ac_exeext conftest.$ac_ext
24774 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24775
24776          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24777           # Warning - without using the other run time loading flags,
24778           # -berok will link without error, but may produce a broken library.
24779           no_undefined_flag_GCJ=' ${wl}-bernotok'
24780           allow_undefined_flag_GCJ=' ${wl}-berok'
24781           # Exported symbols can be pulled into shared objects from archives
24782           whole_archive_flag_spec_GCJ='$convenience'
24783           archive_cmds_need_lc_GCJ=yes
24784           # This is similar to how AIX traditionally builds its shared libraries.
24785           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'
24786         fi
24787       fi
24788       ;;
24789
24790     amigaos*)
24791       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)'
24792       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24793       hardcode_minus_L_GCJ=yes
24794       # see comment about different semantics on the GNU ld section
24795       ld_shlibs_GCJ=no
24796       ;;
24797
24798     bsdi[45]*)
24799       export_dynamic_flag_spec_GCJ=-rdynamic
24800       ;;
24801
24802     cygwin* | mingw* | pw32*)
24803       # When not using gcc, we currently assume that we are using
24804       # Microsoft Visual C++.
24805       # hardcode_libdir_flag_spec is actually meaningless, as there is
24806       # no search path for DLLs.
24807       hardcode_libdir_flag_spec_GCJ=' '
24808       allow_undefined_flag_GCJ=unsupported
24809       # Tell ltmain to make .lib files, not .a files.
24810       libext=lib
24811       # Tell ltmain to make .dll files, not .so files.
24812       shrext_cmds=".dll"
24813       # FIXME: Setting linknames here is a bad hack.
24814       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24815       # The linker will automatically build a .lib file if we build a DLL.
24816       old_archive_From_new_cmds_GCJ='true'
24817       # FIXME: Should let the user specify the lib program.
24818       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24819       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24820       enable_shared_with_static_runtimes_GCJ=yes
24821       ;;
24822
24823     darwin* | rhapsody*)
24824       case $host_os in
24825         rhapsody* | darwin1.[012])
24826          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24827          ;;
24828        *) # Darwin 1.3 on
24829          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24830            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24831          else
24832            case ${MACOSX_DEPLOYMENT_TARGET} in
24833              10.[012])
24834                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24835                ;;
24836              10.*)
24837                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24838                ;;
24839            esac
24840          fi
24841          ;;
24842       esac
24843       archive_cmds_need_lc_GCJ=no
24844       hardcode_direct_GCJ=no
24845       hardcode_automatic_GCJ=yes
24846       hardcode_shlibpath_var_GCJ=unsupported
24847       whole_archive_flag_spec_GCJ=''
24848       link_all_deplibs_GCJ=yes
24849     if test "$GCC" = yes ; then
24850         output_verbose_link_cmd='echo'
24851         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24852       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24853       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24854       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}'
24855       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}'
24856     else
24857       case $cc_basename in
24858         xlc*)
24859          output_verbose_link_cmd='echo'
24860          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24861          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24862           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24863          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}'
24864           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}'
24865           ;;
24866        *)
24867          ld_shlibs_GCJ=no
24868           ;;
24869       esac
24870     fi
24871       ;;
24872
24873     dgux*)
24874       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24875       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24876       hardcode_shlibpath_var_GCJ=no
24877       ;;
24878
24879     freebsd1*)
24880       ld_shlibs_GCJ=no
24881       ;;
24882
24883     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24884     # support.  Future versions do this automatically, but an explicit c++rt0.o
24885     # does not break anything, and helps significantly (at the cost of a little
24886     # extra space).
24887     freebsd2.2*)
24888       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24889       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24890       hardcode_direct_GCJ=yes
24891       hardcode_shlibpath_var_GCJ=no
24892       ;;
24893
24894     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24895     freebsd2*)
24896       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24897       hardcode_direct_GCJ=yes
24898       hardcode_minus_L_GCJ=yes
24899       hardcode_shlibpath_var_GCJ=no
24900       ;;
24901
24902     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24903     freebsd* | kfreebsd*-gnu | dragonfly*)
24904       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24905       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24906       hardcode_direct_GCJ=yes
24907       hardcode_shlibpath_var_GCJ=no
24908       ;;
24909
24910     hpux9*)
24911       if test "$GCC" = yes; then
24912         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'
24913       else
24914         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'
24915       fi
24916       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24917       hardcode_libdir_separator_GCJ=:
24918       hardcode_direct_GCJ=yes
24919
24920       # hardcode_minus_L: Not really in the search PATH,
24921       # but as the default location of the library.
24922       hardcode_minus_L_GCJ=yes
24923       export_dynamic_flag_spec_GCJ='${wl}-E'
24924       ;;
24925
24926     hpux10*)
24927       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24928         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24929       else
24930         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24931       fi
24932       if test "$with_gnu_ld" = no; then
24933         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24934         hardcode_libdir_separator_GCJ=:
24935
24936         hardcode_direct_GCJ=yes
24937         export_dynamic_flag_spec_GCJ='${wl}-E'
24938
24939         # hardcode_minus_L: Not really in the search PATH,
24940         # but as the default location of the library.
24941         hardcode_minus_L_GCJ=yes
24942       fi
24943       ;;
24944
24945     hpux11*)
24946       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24947         case $host_cpu in
24948         hppa*64*)
24949           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24950           ;;
24951         ia64*)
24952           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24953           ;;
24954         *)
24955           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24956           ;;
24957         esac
24958       else
24959         case $host_cpu in
24960         hppa*64*)
24961           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24962           ;;
24963         ia64*)
24964           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24965           ;;
24966         *)
24967           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24968           ;;
24969         esac
24970       fi
24971       if test "$with_gnu_ld" = no; then
24972         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24973         hardcode_libdir_separator_GCJ=:
24974
24975         case $host_cpu in
24976         hppa*64*|ia64*)
24977           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24978           hardcode_direct_GCJ=no
24979           hardcode_shlibpath_var_GCJ=no
24980           ;;
24981         *)
24982           hardcode_direct_GCJ=yes
24983           export_dynamic_flag_spec_GCJ='${wl}-E'
24984
24985           # hardcode_minus_L: Not really in the search PATH,
24986           # but as the default location of the library.
24987           hardcode_minus_L_GCJ=yes
24988           ;;
24989         esac
24990       fi
24991       ;;
24992
24993     irix5* | irix6* | nonstopux*)
24994       if test "$GCC" = yes; then
24995         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'
24996       else
24997         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'
24998         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24999       fi
25000       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25001       hardcode_libdir_separator_GCJ=:
25002       link_all_deplibs_GCJ=yes
25003       ;;
25004
25005     netbsd*)
25006       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25007         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25008       else
25009         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25010       fi
25011       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25012       hardcode_direct_GCJ=yes
25013       hardcode_shlibpath_var_GCJ=no
25014       ;;
25015
25016     newsos6)
25017       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25018       hardcode_direct_GCJ=yes
25019       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25020       hardcode_libdir_separator_GCJ=:
25021       hardcode_shlibpath_var_GCJ=no
25022       ;;
25023
25024     openbsd*)
25025       hardcode_direct_GCJ=yes
25026       hardcode_shlibpath_var_GCJ=no
25027       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25028         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25029         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25030         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25031         export_dynamic_flag_spec_GCJ='${wl}-E'
25032       else
25033        case $host_os in
25034          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25035            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25036            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25037            ;;
25038          *)
25039            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25040            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25041            ;;
25042        esac
25043       fi
25044       ;;
25045
25046     os2*)
25047       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25048       hardcode_minus_L_GCJ=yes
25049       allow_undefined_flag_GCJ=unsupported
25050       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'
25051       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25052       ;;
25053
25054     osf3*)
25055       if test "$GCC" = yes; then
25056         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25057         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'
25058       else
25059         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25060         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'
25061       fi
25062       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25063       hardcode_libdir_separator_GCJ=:
25064       ;;
25065
25066     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25067       if test "$GCC" = yes; then
25068         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25069         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'
25070         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25071       else
25072         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25073         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'
25074         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~
25075         $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'
25076
25077         # Both c and cxx compiler support -rpath directly
25078         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25079       fi
25080       hardcode_libdir_separator_GCJ=:
25081       ;;
25082
25083     solaris*)
25084       no_undefined_flag_GCJ=' -z text'
25085       if test "$GCC" = yes; then
25086         wlarc='${wl}'
25087         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25088         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25089           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25090       else
25091         wlarc=''
25092         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25093         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25094         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25095       fi
25096       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25097       hardcode_shlibpath_var_GCJ=no
25098       case $host_os in
25099       solaris2.[0-5] | solaris2.[0-5].*) ;;
25100       *)
25101         # The compiler driver will combine linker options so we
25102         # cannot just pass the convience library names through
25103         # without $wl, iff we do not link with $LD.
25104         # Luckily, gcc supports the same syntax we need for Sun Studio.
25105         # Supported since Solaris 2.6 (maybe 2.5.1?)
25106         case $wlarc in
25107         '')
25108           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25109         *)
25110           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' ;;
25111         esac ;;
25112       esac
25113       link_all_deplibs_GCJ=yes
25114       ;;
25115
25116     sunos4*)
25117       if test "x$host_vendor" = xsequent; then
25118         # Use $CC to link under sequent, because it throws in some extra .o
25119         # files that make .init and .fini sections work.
25120         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25121       else
25122         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25123       fi
25124       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25125       hardcode_direct_GCJ=yes
25126       hardcode_minus_L_GCJ=yes
25127       hardcode_shlibpath_var_GCJ=no
25128       ;;
25129
25130     sysv4)
25131       case $host_vendor in
25132         sni)
25133           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25134           hardcode_direct_GCJ=yes # is this really true???
25135         ;;
25136         siemens)
25137           ## LD is ld it makes a PLAMLIB
25138           ## CC just makes a GrossModule.
25139           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25140           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25141           hardcode_direct_GCJ=no
25142         ;;
25143         motorola)
25144           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25145           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25146         ;;
25147       esac
25148       runpath_var='LD_RUN_PATH'
25149       hardcode_shlibpath_var_GCJ=no
25150       ;;
25151
25152     sysv4.3*)
25153       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25154       hardcode_shlibpath_var_GCJ=no
25155       export_dynamic_flag_spec_GCJ='-Bexport'
25156       ;;
25157
25158     sysv4*MP*)
25159       if test -d /usr/nec; then
25160         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25161         hardcode_shlibpath_var_GCJ=no
25162         runpath_var=LD_RUN_PATH
25163         hardcode_runpath_var=yes
25164         ld_shlibs_GCJ=yes
25165       fi
25166       ;;
25167
25168     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25169       no_undefined_flag_GCJ='${wl}-z,text'
25170       archive_cmds_need_lc_GCJ=no
25171       hardcode_shlibpath_var_GCJ=no
25172       runpath_var='LD_RUN_PATH'
25173
25174       if test "$GCC" = yes; then
25175         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25176         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25177       else
25178         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25179         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25180       fi
25181       ;;
25182
25183     sysv5* | sco3.2v5* | sco5v6*)
25184       # Note: We can NOT use -z defs as we might desire, because we do not
25185       # link with -lc, and that would cause any symbols used from libc to
25186       # always be unresolved, which means just about no library would
25187       # ever link correctly.  If we're not using GNU ld we use -z text
25188       # though, which does catch some bad symbols but isn't as heavy-handed
25189       # as -z defs.
25190       no_undefined_flag_GCJ='${wl}-z,text'
25191       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25192       archive_cmds_need_lc_GCJ=no
25193       hardcode_shlibpath_var_GCJ=no
25194       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25195       hardcode_libdir_separator_GCJ=':'
25196       link_all_deplibs_GCJ=yes
25197       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25198       runpath_var='LD_RUN_PATH'
25199
25200       if test "$GCC" = yes; then
25201         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25202         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25203       else
25204         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25205         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25206       fi
25207       ;;
25208
25209     uts4*)
25210       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25211       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25212       hardcode_shlibpath_var_GCJ=no
25213       ;;
25214
25215     *)
25216       ld_shlibs_GCJ=no
25217       ;;
25218     esac
25219   fi
25220
25221 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25222 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25223 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25224
25225 #
25226 # Do we need to explicitly link libc?
25227 #
25228 case "x$archive_cmds_need_lc_GCJ" in
25229 x|xyes)
25230   # Assume -lc should be added
25231   archive_cmds_need_lc_GCJ=yes
25232
25233   if test "$enable_shared" = yes && test "$GCC" = yes; then
25234     case $archive_cmds_GCJ in
25235     *'~'*)
25236       # FIXME: we may have to deal with multi-command sequences.
25237       ;;
25238     '$CC '*)
25239       # Test whether the compiler implicitly links with -lc since on some
25240       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25241       # to ld, don't add -lc before -lgcc.
25242       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25243 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25244       $rm conftest*
25245       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25246
25247       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25248   (eval $ac_compile) 2>&5
25249   ac_status=$?
25250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251   (exit $ac_status); } 2>conftest.err; then
25252         soname=conftest
25253         lib=conftest
25254         libobjs=conftest.$ac_objext
25255         deplibs=
25256         wl=$lt_prog_compiler_wl_GCJ
25257         pic_flag=$lt_prog_compiler_pic_GCJ
25258         compiler_flags=-v
25259         linker_flags=-v
25260         verstring=
25261         output_objdir=.
25262         libname=conftest
25263         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25264         allow_undefined_flag_GCJ=
25265         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25266   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25267   ac_status=$?
25268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269   (exit $ac_status); }
25270         then
25271           archive_cmds_need_lc_GCJ=no
25272         else
25273           archive_cmds_need_lc_GCJ=yes
25274         fi
25275         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25276       else
25277         cat conftest.err 1>&5
25278       fi
25279       $rm conftest*
25280       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25281 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25282       ;;
25283     esac
25284   fi
25285   ;;
25286 esac
25287
25288 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25289 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25290 library_names_spec=
25291 libname_spec='lib$name'
25292 soname_spec=
25293 shrext_cmds=".so"
25294 postinstall_cmds=
25295 postuninstall_cmds=
25296 finish_cmds=
25297 finish_eval=
25298 shlibpath_var=
25299 shlibpath_overrides_runpath=unknown
25300 version_type=none
25301 dynamic_linker="$host_os ld.so"
25302 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25303 if test "$GCC" = yes; then
25304   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25305   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25306     # if the path contains ";" then we assume it to be the separator
25307     # otherwise default to the standard path separator (i.e. ":") - it is
25308     # assumed that no part of a normal pathname contains ";" but that should
25309     # okay in the real world where ";" in dirpaths is itself problematic.
25310     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25311   else
25312     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25313   fi
25314 else
25315   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25316 fi
25317 need_lib_prefix=unknown
25318 hardcode_into_libs=no
25319
25320 # when you set need_version to no, make sure it does not cause -set_version
25321 # flags to be left without arguments
25322 need_version=unknown
25323
25324 case $host_os in
25325 aix3*)
25326   version_type=linux
25327   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25328   shlibpath_var=LIBPATH
25329
25330   # AIX 3 has no versioning support, so we append a major version to the name.
25331   soname_spec='${libname}${release}${shared_ext}$major'
25332   ;;
25333
25334 aix4* | aix5*)
25335   version_type=linux
25336   need_lib_prefix=no
25337   need_version=no
25338   hardcode_into_libs=yes
25339   if test "$host_cpu" = ia64; then
25340     # AIX 5 supports IA64
25341     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25342     shlibpath_var=LD_LIBRARY_PATH
25343   else
25344     # With GCC up to 2.95.x, collect2 would create an import file
25345     # for dependence libraries.  The import file would start with
25346     # the line `#! .'.  This would cause the generated library to
25347     # depend on `.', always an invalid library.  This was fixed in
25348     # development snapshots of GCC prior to 3.0.
25349     case $host_os in
25350       aix4 | aix4.[01] | aix4.[01].*)
25351       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25352            echo ' yes '
25353            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25354         :
25355       else
25356         can_build_shared=no
25357       fi
25358       ;;
25359     esac
25360     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25361     # soname into executable. Probably we can add versioning support to
25362     # collect2, so additional links can be useful in future.
25363     if test "$aix_use_runtimelinking" = yes; then
25364       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25365       # instead of lib<name>.a to let people know that these are not
25366       # typical AIX shared libraries.
25367       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25368     else
25369       # We preserve .a as extension for shared libraries through AIX4.2
25370       # and later when we are not doing run time linking.
25371       library_names_spec='${libname}${release}.a $libname.a'
25372       soname_spec='${libname}${release}${shared_ext}$major'
25373     fi
25374     shlibpath_var=LIBPATH
25375   fi
25376   ;;
25377
25378 amigaos*)
25379   library_names_spec='$libname.ixlibrary $libname.a'
25380   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25381   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'
25382   ;;
25383
25384 beos*)
25385   library_names_spec='${libname}${shared_ext}'
25386   dynamic_linker="$host_os ld.so"
25387   shlibpath_var=LIBRARY_PATH
25388   ;;
25389
25390 bsdi[45]*)
25391   version_type=linux
25392   need_version=no
25393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25394   soname_spec='${libname}${release}${shared_ext}$major'
25395   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25396   shlibpath_var=LD_LIBRARY_PATH
25397   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25398   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25399   # the default ld.so.conf also contains /usr/contrib/lib and
25400   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25401   # libtool to hard-code these into programs
25402   ;;
25403
25404 cygwin* | mingw* | pw32*)
25405   version_type=windows
25406   shrext_cmds=".dll"
25407   need_version=no
25408   need_lib_prefix=no
25409
25410   case $GCC,$host_os in
25411   yes,cygwin* | yes,mingw* | yes,pw32*)
25412     library_names_spec='$libname.dll.a'
25413     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25414     postinstall_cmds='base_file=`basename \${file}`~
25415       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25416       dldir=$destdir/`dirname \$dlpath`~
25417       test -d \$dldir || mkdir -p \$dldir~
25418       $install_prog $dir/$dlname \$dldir/$dlname~
25419       chmod a+x \$dldir/$dlname'
25420     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25421       dlpath=$dir/\$dldll~
25422        $rm \$dlpath'
25423     shlibpath_overrides_runpath=yes
25424
25425     case $host_os in
25426     cygwin*)
25427       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25428       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25429       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25430       ;;
25431     mingw*)
25432       # MinGW DLLs use traditional 'lib' prefix
25433       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25434       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25435       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25436         # It is most probably a Windows format PATH printed by
25437         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25438         # path with ; separators, and with drive letters. We can handle the
25439         # drive letters (cygwin fileutils understands them), so leave them,
25440         # especially as we might pass files found there to a mingw objdump,
25441         # which wouldn't understand a cygwinified path. Ahh.
25442         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25443       else
25444         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25445       fi
25446       ;;
25447     pw32*)
25448       # pw32 DLLs use 'pw' prefix rather than 'lib'
25449       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25450       ;;
25451     esac
25452     ;;
25453
25454   *)
25455     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25456     ;;
25457   esac
25458   dynamic_linker='Win32 ld.exe'
25459   # FIXME: first we should search . and the directory the executable is in
25460   shlibpath_var=PATH
25461   ;;
25462
25463 darwin* | rhapsody*)
25464   dynamic_linker="$host_os dyld"
25465   version_type=darwin
25466   need_lib_prefix=no
25467   need_version=no
25468   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25469   soname_spec='${libname}${release}${major}$shared_ext'
25470   shlibpath_overrides_runpath=yes
25471   shlibpath_var=DYLD_LIBRARY_PATH
25472   shrext_cmds='.dylib'
25473   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25474   if test "$GCC" = yes; then
25475     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"`
25476   else
25477     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25478   fi
25479   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25480   ;;
25481
25482 dgux*)
25483   version_type=linux
25484   need_lib_prefix=no
25485   need_version=no
25486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25487   soname_spec='${libname}${release}${shared_ext}$major'
25488   shlibpath_var=LD_LIBRARY_PATH
25489   ;;
25490
25491 freebsd1*)
25492   dynamic_linker=no
25493   ;;
25494
25495 kfreebsd*-gnu)
25496   version_type=linux
25497   need_lib_prefix=no
25498   need_version=no
25499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25500   soname_spec='${libname}${release}${shared_ext}$major'
25501   shlibpath_var=LD_LIBRARY_PATH
25502   shlibpath_overrides_runpath=no
25503   hardcode_into_libs=yes
25504   dynamic_linker='GNU ld.so'
25505   ;;
25506
25507 freebsd* | dragonfly*)
25508   # DragonFly does not have aout.  When/if they implement a new
25509   # versioning mechanism, adjust this.
25510   if test -x /usr/bin/objformat; then
25511     objformat=`/usr/bin/objformat`
25512   else
25513     case $host_os in
25514     freebsd[123]*) objformat=aout ;;
25515     *) objformat=elf ;;
25516     esac
25517   fi
25518   version_type=freebsd-$objformat
25519   case $version_type in
25520     freebsd-elf*)
25521       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25522       need_version=no
25523       need_lib_prefix=no
25524       ;;
25525     freebsd-*)
25526       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25527       need_version=yes
25528       ;;
25529   esac
25530   shlibpath_var=LD_LIBRARY_PATH
25531   case $host_os in
25532   freebsd2*)
25533     shlibpath_overrides_runpath=yes
25534     ;;
25535   freebsd3.[01]* | freebsdelf3.[01]*)
25536     shlibpath_overrides_runpath=yes
25537     hardcode_into_libs=yes
25538     ;;
25539   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25540   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25541     shlibpath_overrides_runpath=no
25542     hardcode_into_libs=yes
25543     ;;
25544   freebsd*) # from 4.6 on
25545     shlibpath_overrides_runpath=yes
25546     hardcode_into_libs=yes
25547     ;;
25548   esac
25549   ;;
25550
25551 gnu*)
25552   version_type=linux
25553   need_lib_prefix=no
25554   need_version=no
25555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25556   soname_spec='${libname}${release}${shared_ext}$major'
25557   shlibpath_var=LD_LIBRARY_PATH
25558   hardcode_into_libs=yes
25559   ;;
25560
25561 hpux9* | hpux10* | hpux11*)
25562   # Give a soname corresponding to the major version so that dld.sl refuses to
25563   # link against other versions.
25564   version_type=sunos
25565   need_lib_prefix=no
25566   need_version=no
25567   case $host_cpu in
25568   ia64*)
25569     shrext_cmds='.so'
25570     hardcode_into_libs=yes
25571     dynamic_linker="$host_os dld.so"
25572     shlibpath_var=LD_LIBRARY_PATH
25573     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25575     soname_spec='${libname}${release}${shared_ext}$major'
25576     if test "X$HPUX_IA64_MODE" = X32; then
25577       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25578     else
25579       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25580     fi
25581     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25582     ;;
25583    hppa*64*)
25584      shrext_cmds='.sl'
25585      hardcode_into_libs=yes
25586      dynamic_linker="$host_os dld.sl"
25587      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25588      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25589      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25590      soname_spec='${libname}${release}${shared_ext}$major'
25591      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25592      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25593      ;;
25594    *)
25595     shrext_cmds='.sl'
25596     dynamic_linker="$host_os dld.sl"
25597     shlibpath_var=SHLIB_PATH
25598     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25599     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25600     soname_spec='${libname}${release}${shared_ext}$major'
25601     ;;
25602   esac
25603   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25604   postinstall_cmds='chmod 555 $lib'
25605   ;;
25606
25607 interix3*)
25608   version_type=linux
25609   need_lib_prefix=no
25610   need_version=no
25611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25612   soname_spec='${libname}${release}${shared_ext}$major'
25613   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25614   shlibpath_var=LD_LIBRARY_PATH
25615   shlibpath_overrides_runpath=no
25616   hardcode_into_libs=yes
25617   ;;
25618
25619 irix5* | irix6* | nonstopux*)
25620   case $host_os in
25621     nonstopux*) version_type=nonstopux ;;
25622     *)
25623         if test "$lt_cv_prog_gnu_ld" = yes; then
25624                 version_type=linux
25625         else
25626                 version_type=irix
25627         fi ;;
25628   esac
25629   need_lib_prefix=no
25630   need_version=no
25631   soname_spec='${libname}${release}${shared_ext}$major'
25632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25633   case $host_os in
25634   irix5* | nonstopux*)
25635     libsuff= shlibsuff=
25636     ;;
25637   *)
25638     case $LD in # libtool.m4 will add one of these switches to LD
25639     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25640       libsuff= shlibsuff= libmagic=32-bit;;
25641     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25642       libsuff=32 shlibsuff=N32 libmagic=N32;;
25643     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25644       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25645     *) libsuff= shlibsuff= libmagic=never-match;;
25646     esac
25647     ;;
25648   esac
25649   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25650   shlibpath_overrides_runpath=no
25651   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25652   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25653   hardcode_into_libs=yes
25654   ;;
25655
25656 # No shared lib support for Linux oldld, aout, or coff.
25657 linux*oldld* | linux*aout* | linux*coff*)
25658   dynamic_linker=no
25659   ;;
25660
25661 # This must be Linux ELF.
25662 linux*)
25663   version_type=linux
25664   need_lib_prefix=no
25665   need_version=no
25666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25667   soname_spec='${libname}${release}${shared_ext}$major'
25668   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25669   shlibpath_var=LD_LIBRARY_PATH
25670   shlibpath_overrides_runpath=no
25671   # This implies no fast_install, which is unacceptable.
25672   # Some rework will be needed to allow for fast_install
25673   # before this can be enabled.
25674   hardcode_into_libs=yes
25675
25676   # Append ld.so.conf contents to the search path
25677   if test -f /etc/ld.so.conf; then
25678     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' ' '`
25679     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25680   fi
25681
25682   # We used to test for /lib/ld.so.1 and disable shared libraries on
25683   # powerpc, because MkLinux only supported shared libraries with the
25684   # GNU dynamic linker.  Since this was broken with cross compilers,
25685   # most powerpc-linux boxes support dynamic linking these days and
25686   # people can always --disable-shared, the test was removed, and we
25687   # assume the GNU/Linux dynamic linker is in use.
25688   dynamic_linker='GNU/Linux ld.so'
25689   ;;
25690
25691 knetbsd*-gnu)
25692   version_type=linux
25693   need_lib_prefix=no
25694   need_version=no
25695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25696   soname_spec='${libname}${release}${shared_ext}$major'
25697   shlibpath_var=LD_LIBRARY_PATH
25698   shlibpath_overrides_runpath=no
25699   hardcode_into_libs=yes
25700   dynamic_linker='GNU ld.so'
25701   ;;
25702
25703 netbsd*)
25704   version_type=sunos
25705   need_lib_prefix=no
25706   need_version=no
25707   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25708     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25709     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25710     dynamic_linker='NetBSD (a.out) ld.so'
25711   else
25712     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25713     soname_spec='${libname}${release}${shared_ext}$major'
25714     dynamic_linker='NetBSD ld.elf_so'
25715   fi
25716   shlibpath_var=LD_LIBRARY_PATH
25717   shlibpath_overrides_runpath=yes
25718   hardcode_into_libs=yes
25719   ;;
25720
25721 newsos6)
25722   version_type=linux
25723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25724   shlibpath_var=LD_LIBRARY_PATH
25725   shlibpath_overrides_runpath=yes
25726   ;;
25727
25728 nto-qnx*)
25729   version_type=linux
25730   need_lib_prefix=no
25731   need_version=no
25732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25733   soname_spec='${libname}${release}${shared_ext}$major'
25734   shlibpath_var=LD_LIBRARY_PATH
25735   shlibpath_overrides_runpath=yes
25736   ;;
25737
25738 openbsd*)
25739   version_type=sunos
25740   sys_lib_dlsearch_path_spec="/usr/lib"
25741   need_lib_prefix=no
25742   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25743   case $host_os in
25744     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25745     *)                         need_version=no  ;;
25746   esac
25747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25748   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25749   shlibpath_var=LD_LIBRARY_PATH
25750   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25751     case $host_os in
25752       openbsd2.[89] | openbsd2.[89].*)
25753         shlibpath_overrides_runpath=no
25754         ;;
25755       *)
25756         shlibpath_overrides_runpath=yes
25757         ;;
25758       esac
25759   else
25760     shlibpath_overrides_runpath=yes
25761   fi
25762   ;;
25763
25764 os2*)
25765   libname_spec='$name'
25766   shrext_cmds=".dll"
25767   need_lib_prefix=no
25768   library_names_spec='$libname${shared_ext} $libname.a'
25769   dynamic_linker='OS/2 ld.exe'
25770   shlibpath_var=LIBPATH
25771   ;;
25772
25773 osf3* | osf4* | osf5*)
25774   version_type=osf
25775   need_lib_prefix=no
25776   need_version=no
25777   soname_spec='${libname}${release}${shared_ext}$major'
25778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25779   shlibpath_var=LD_LIBRARY_PATH
25780   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25781   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25782   ;;
25783
25784 solaris*)
25785   version_type=linux
25786   need_lib_prefix=no
25787   need_version=no
25788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25789   soname_spec='${libname}${release}${shared_ext}$major'
25790   shlibpath_var=LD_LIBRARY_PATH
25791   shlibpath_overrides_runpath=yes
25792   hardcode_into_libs=yes
25793   # ldd complains unless libraries are executable
25794   postinstall_cmds='chmod +x $lib'
25795   ;;
25796
25797 sunos4*)
25798   version_type=sunos
25799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25800   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25801   shlibpath_var=LD_LIBRARY_PATH
25802   shlibpath_overrides_runpath=yes
25803   if test "$with_gnu_ld" = yes; then
25804     need_lib_prefix=no
25805   fi
25806   need_version=yes
25807   ;;
25808
25809 sysv4 | sysv4.3*)
25810   version_type=linux
25811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25812   soname_spec='${libname}${release}${shared_ext}$major'
25813   shlibpath_var=LD_LIBRARY_PATH
25814   case $host_vendor in
25815     sni)
25816       shlibpath_overrides_runpath=no
25817       need_lib_prefix=no
25818       export_dynamic_flag_spec='${wl}-Blargedynsym'
25819       runpath_var=LD_RUN_PATH
25820       ;;
25821     siemens)
25822       need_lib_prefix=no
25823       ;;
25824     motorola)
25825       need_lib_prefix=no
25826       need_version=no
25827       shlibpath_overrides_runpath=no
25828       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25829       ;;
25830   esac
25831   ;;
25832
25833 sysv4*MP*)
25834   if test -d /usr/nec ;then
25835     version_type=linux
25836     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25837     soname_spec='$libname${shared_ext}.$major'
25838     shlibpath_var=LD_LIBRARY_PATH
25839   fi
25840   ;;
25841
25842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25843   version_type=freebsd-elf
25844   need_lib_prefix=no
25845   need_version=no
25846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25847   soname_spec='${libname}${release}${shared_ext}$major'
25848   shlibpath_var=LD_LIBRARY_PATH
25849   hardcode_into_libs=yes
25850   if test "$with_gnu_ld" = yes; then
25851     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25852     shlibpath_overrides_runpath=no
25853   else
25854     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25855     shlibpath_overrides_runpath=yes
25856     case $host_os in
25857       sco3.2v5*)
25858         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25859         ;;
25860     esac
25861   fi
25862   sys_lib_dlsearch_path_spec='/usr/lib'
25863   ;;
25864
25865 uts4*)
25866   version_type=linux
25867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25868   soname_spec='${libname}${release}${shared_ext}$major'
25869   shlibpath_var=LD_LIBRARY_PATH
25870   ;;
25871
25872 *)
25873   dynamic_linker=no
25874   ;;
25875 esac
25876 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25877 echo "${ECHO_T}$dynamic_linker" >&6; }
25878 test "$dynamic_linker" = no && can_build_shared=no
25879
25880 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25881 if test "$GCC" = yes; then
25882   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25883 fi
25884
25885 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25886 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25887 hardcode_action_GCJ=
25888 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25889    test -n "$runpath_var_GCJ" || \
25890    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25891
25892   # We can hardcode non-existant directories.
25893   if test "$hardcode_direct_GCJ" != no &&
25894      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25895      # have to relink, otherwise we might link with an installed library
25896      # when we should be linking with a yet-to-be-installed one
25897      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25898      test "$hardcode_minus_L_GCJ" != no; then
25899     # Linking always hardcodes the temporary library directory.
25900     hardcode_action_GCJ=relink
25901   else
25902     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25903     hardcode_action_GCJ=immediate
25904   fi
25905 else
25906   # We cannot hardcode anything, or else we can only hardcode existing
25907   # directories.
25908   hardcode_action_GCJ=unsupported
25909 fi
25910 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25911 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25912
25913 if test "$hardcode_action_GCJ" = relink; then
25914   # Fast installation is not supported
25915   enable_fast_install=no
25916 elif test "$shlibpath_overrides_runpath" = yes ||
25917      test "$enable_shared" = no; then
25918   # Fast installation is not necessary
25919   enable_fast_install=needless
25920 fi
25921
25922
25923 # The else clause should only fire when bootstrapping the
25924 # libtool distribution, otherwise you forgot to ship ltmain.sh
25925 # with your package, and you will get complaints that there are
25926 # no rules to generate ltmain.sh.
25927 if test -f "$ltmain"; then
25928   # See if we are running on zsh, and set the options which allow our commands through
25929   # without removal of \ escapes.
25930   if test -n "${ZSH_VERSION+set}" ; then
25931     setopt NO_GLOB_SUBST
25932   fi
25933   # Now quote all the things that may contain metacharacters while being
25934   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25935   # variables and quote the copies for generation of the libtool script.
25936   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25937     SED SHELL STRIP \
25938     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25939     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25940     deplibs_check_method reload_flag reload_cmds need_locks \
25941     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25942     lt_cv_sys_global_symbol_to_c_name_address \
25943     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25944     old_postinstall_cmds old_postuninstall_cmds \
25945     compiler_GCJ \
25946     CC_GCJ \
25947     LD_GCJ \
25948     lt_prog_compiler_wl_GCJ \
25949     lt_prog_compiler_pic_GCJ \
25950     lt_prog_compiler_static_GCJ \
25951     lt_prog_compiler_no_builtin_flag_GCJ \
25952     export_dynamic_flag_spec_GCJ \
25953     thread_safe_flag_spec_GCJ \
25954     whole_archive_flag_spec_GCJ \
25955     enable_shared_with_static_runtimes_GCJ \
25956     old_archive_cmds_GCJ \
25957     old_archive_from_new_cmds_GCJ \
25958     predep_objects_GCJ \
25959     postdep_objects_GCJ \
25960     predeps_GCJ \
25961     postdeps_GCJ \
25962     compiler_lib_search_path_GCJ \
25963     archive_cmds_GCJ \
25964     archive_expsym_cmds_GCJ \
25965     postinstall_cmds_GCJ \
25966     postuninstall_cmds_GCJ \
25967     old_archive_from_expsyms_cmds_GCJ \
25968     allow_undefined_flag_GCJ \
25969     no_undefined_flag_GCJ \
25970     export_symbols_cmds_GCJ \
25971     hardcode_libdir_flag_spec_GCJ \
25972     hardcode_libdir_flag_spec_ld_GCJ \
25973     hardcode_libdir_separator_GCJ \
25974     hardcode_automatic_GCJ \
25975     module_cmds_GCJ \
25976     module_expsym_cmds_GCJ \
25977     lt_cv_prog_compiler_c_o_GCJ \
25978     exclude_expsyms_GCJ \
25979     include_expsyms_GCJ; do
25980
25981     case $var in
25982     old_archive_cmds_GCJ | \
25983     old_archive_from_new_cmds_GCJ | \
25984     archive_cmds_GCJ | \
25985     archive_expsym_cmds_GCJ | \
25986     module_cmds_GCJ | \
25987     module_expsym_cmds_GCJ | \
25988     old_archive_from_expsyms_cmds_GCJ | \
25989     export_symbols_cmds_GCJ | \
25990     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25991     postinstall_cmds | postuninstall_cmds | \
25992     old_postinstall_cmds | old_postuninstall_cmds | \
25993     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25994       # Double-quote double-evaled strings.
25995       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25996       ;;
25997     *)
25998       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25999       ;;
26000     esac
26001   done
26002
26003   case $lt_echo in
26004   *'\$0 --fallback-echo"')
26005     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26006     ;;
26007   esac
26008
26009 cfgfile="$ofile"
26010
26011   cat <<__EOF__ >> "$cfgfile"
26012 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26013
26014 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26015
26016 # Shell to use when invoking shell scripts.
26017 SHELL=$lt_SHELL
26018
26019 # Whether or not to build shared libraries.
26020 build_libtool_libs=$enable_shared
26021
26022 # Whether or not to build static libraries.
26023 build_old_libs=$enable_static
26024
26025 # Whether or not to add -lc for building shared libraries.
26026 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26027
26028 # Whether or not to disallow shared libs when runtime libs are static
26029 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26030
26031 # Whether or not to optimize for fast installation.
26032 fast_install=$enable_fast_install
26033
26034 # The host system.
26035 host_alias=$host_alias
26036 host=$host
26037 host_os=$host_os
26038
26039 # The build system.
26040 build_alias=$build_alias
26041 build=$build
26042 build_os=$build_os
26043
26044 # An echo program that does not interpret backslashes.
26045 echo=$lt_echo
26046
26047 # The archiver.
26048 AR=$lt_AR
26049 AR_FLAGS=$lt_AR_FLAGS
26050
26051 # A C compiler.
26052 LTCC=$lt_LTCC
26053
26054 # LTCC compiler flags.
26055 LTCFLAGS=$lt_LTCFLAGS
26056
26057 # A language-specific compiler.
26058 CC=$lt_compiler_GCJ
26059
26060 # Is the compiler the GNU C compiler?
26061 with_gcc=$GCC_GCJ
26062
26063 # An ERE matcher.
26064 EGREP=$lt_EGREP
26065
26066 # The linker used to build libraries.
26067 LD=$lt_LD_GCJ
26068
26069 # Whether we need hard or soft links.
26070 LN_S=$lt_LN_S
26071
26072 # A BSD-compatible nm program.
26073 NM=$lt_NM
26074
26075 # A symbol stripping program
26076 STRIP=$lt_STRIP
26077
26078 # Used to examine libraries when file_magic_cmd begins "file"
26079 MAGIC_CMD=$MAGIC_CMD
26080
26081 # Used on cygwin: DLL creation program.
26082 DLLTOOL="$DLLTOOL"
26083
26084 # Used on cygwin: object dumper.
26085 OBJDUMP="$OBJDUMP"
26086
26087 # Used on cygwin: assembler.
26088 AS="$AS"
26089
26090 # The name of the directory that contains temporary libtool files.
26091 objdir=$objdir
26092
26093 # How to create reloadable object files.
26094 reload_flag=$lt_reload_flag
26095 reload_cmds=$lt_reload_cmds
26096
26097 # How to pass a linker flag through the compiler.
26098 wl=$lt_lt_prog_compiler_wl_GCJ
26099
26100 # Object file suffix (normally "o").
26101 objext="$ac_objext"
26102
26103 # Old archive suffix (normally "a").
26104 libext="$libext"
26105
26106 # Shared library suffix (normally ".so").
26107 shrext_cmds='$shrext_cmds'
26108
26109 # Executable file suffix (normally "").
26110 exeext="$exeext"
26111
26112 # Additional compiler flags for building library objects.
26113 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26114 pic_mode=$pic_mode
26115
26116 # What is the maximum length of a command?
26117 max_cmd_len=$lt_cv_sys_max_cmd_len
26118
26119 # Does compiler simultaneously support -c and -o options?
26120 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26121
26122 # Must we lock files when doing compilation?
26123 need_locks=$lt_need_locks
26124
26125 # Do we need the lib prefix for modules?
26126 need_lib_prefix=$need_lib_prefix
26127
26128 # Do we need a version for libraries?
26129 need_version=$need_version
26130
26131 # Whether dlopen is supported.
26132 dlopen_support=$enable_dlopen
26133
26134 # Whether dlopen of programs is supported.
26135 dlopen_self=$enable_dlopen_self
26136
26137 # Whether dlopen of statically linked programs is supported.
26138 dlopen_self_static=$enable_dlopen_self_static
26139
26140 # Compiler flag to prevent dynamic linking.
26141 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26142
26143 # Compiler flag to turn off builtin functions.
26144 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26145
26146 # Compiler flag to allow reflexive dlopens.
26147 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26148
26149 # Compiler flag to generate shared objects directly from archives.
26150 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26151
26152 # Compiler flag to generate thread-safe objects.
26153 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26154
26155 # Library versioning type.
26156 version_type=$version_type
26157
26158 # Format of library name prefix.
26159 libname_spec=$lt_libname_spec
26160
26161 # List of archive names.  First name is the real one, the rest are links.
26162 # The last name is the one that the linker finds with -lNAME.
26163 library_names_spec=$lt_library_names_spec
26164
26165 # The coded name of the library, if different from the real name.
26166 soname_spec=$lt_soname_spec
26167
26168 # Commands used to build and install an old-style archive.
26169 RANLIB=$lt_RANLIB
26170 old_archive_cmds=$lt_old_archive_cmds_GCJ
26171 old_postinstall_cmds=$lt_old_postinstall_cmds
26172 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26173
26174 # Create an old-style archive from a shared archive.
26175 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26176
26177 # Create a temporary old-style archive to link instead of a shared archive.
26178 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26179
26180 # Commands used to build and install a shared archive.
26181 archive_cmds=$lt_archive_cmds_GCJ
26182 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26183 postinstall_cmds=$lt_postinstall_cmds
26184 postuninstall_cmds=$lt_postuninstall_cmds
26185
26186 # Commands used to build a loadable module (assumed same as above if empty)
26187 module_cmds=$lt_module_cmds_GCJ
26188 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26189
26190 # Commands to strip libraries.
26191 old_striplib=$lt_old_striplib
26192 striplib=$lt_striplib
26193
26194 # Dependencies to place before the objects being linked to create a
26195 # shared library.
26196 predep_objects=$lt_predep_objects_GCJ
26197
26198 # Dependencies to place after the objects being linked to create a
26199 # shared library.
26200 postdep_objects=$lt_postdep_objects_GCJ
26201
26202 # Dependencies to place before the objects being linked to create a
26203 # shared library.
26204 predeps=$lt_predeps_GCJ
26205
26206 # Dependencies to place after the objects being linked to create a
26207 # shared library.
26208 postdeps=$lt_postdeps_GCJ
26209
26210 # The library search path used internally by the compiler when linking
26211 # a shared library.
26212 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26213
26214 # Method to check whether dependent libraries are shared objects.
26215 deplibs_check_method=$lt_deplibs_check_method
26216
26217 # Command to use when deplibs_check_method == file_magic.
26218 file_magic_cmd=$lt_file_magic_cmd
26219
26220 # Flag that allows shared libraries with undefined symbols to be built.
26221 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26222
26223 # Flag that forces no undefined symbols.
26224 no_undefined_flag=$lt_no_undefined_flag_GCJ
26225
26226 # Commands used to finish a libtool library installation in a directory.
26227 finish_cmds=$lt_finish_cmds
26228
26229 # Same as above, but a single script fragment to be evaled but not shown.
26230 finish_eval=$lt_finish_eval
26231
26232 # Take the output of nm and produce a listing of raw symbols and C names.
26233 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26234
26235 # Transform the output of nm in a proper C declaration
26236 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26237
26238 # Transform the output of nm in a C name address pair
26239 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26240
26241 # This is the shared library runtime path variable.
26242 runpath_var=$runpath_var
26243
26244 # This is the shared library path variable.
26245 shlibpath_var=$shlibpath_var
26246
26247 # Is shlibpath searched before the hard-coded library search path?
26248 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26249
26250 # How to hardcode a shared library path into an executable.
26251 hardcode_action=$hardcode_action_GCJ
26252
26253 # Whether we should hardcode library paths into libraries.
26254 hardcode_into_libs=$hardcode_into_libs
26255
26256 # Flag to hardcode \$libdir into a binary during linking.
26257 # This must work even if \$libdir does not exist.
26258 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26259
26260 # If ld is used when linking, flag to hardcode \$libdir into
26261 # a binary during linking. This must work even if \$libdir does
26262 # not exist.
26263 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26264
26265 # Whether we need a single -rpath flag with a separated argument.
26266 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26267
26268 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26269 # resulting binary.
26270 hardcode_direct=$hardcode_direct_GCJ
26271
26272 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26273 # resulting binary.
26274 hardcode_minus_L=$hardcode_minus_L_GCJ
26275
26276 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26277 # the resulting binary.
26278 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26279
26280 # Set to yes if building a shared library automatically hardcodes DIR into the library
26281 # and all subsequent libraries and executables linked against it.
26282 hardcode_automatic=$hardcode_automatic_GCJ
26283
26284 # Variables whose values should be saved in libtool wrapper scripts and
26285 # restored at relink time.
26286 variables_saved_for_relink="$variables_saved_for_relink"
26287
26288 # Whether libtool must link a program against all its dependency libraries.
26289 link_all_deplibs=$link_all_deplibs_GCJ
26290
26291 # Compile-time system search path for libraries
26292 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26293
26294 # Run-time system search path for libraries
26295 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26296
26297 # Fix the shell variable \$srcfile for the compiler.
26298 fix_srcfile_path="$fix_srcfile_path_GCJ"
26299
26300 # Set to yes if exported symbols are required.
26301 always_export_symbols=$always_export_symbols_GCJ
26302
26303 # The commands to list exported symbols.
26304 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26305
26306 # The commands to extract the exported symbol list from a shared archive.
26307 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26308
26309 # Symbols that should not be listed in the preloaded symbols.
26310 exclude_expsyms=$lt_exclude_expsyms_GCJ
26311
26312 # Symbols that must always be exported.
26313 include_expsyms=$lt_include_expsyms_GCJ
26314
26315 # ### END LIBTOOL TAG CONFIG: $tagname
26316
26317 __EOF__
26318
26319
26320 else
26321   # If there is no Makefile yet, we rely on a make rule to execute
26322   # `config.status --recheck' to rerun these tests and create the
26323   # libtool script then.
26324   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26325   if test -f "$ltmain_in"; then
26326     test -f Makefile && make "$ltmain"
26327   fi
26328 fi
26329
26330
26331 ac_ext=c
26332 ac_cpp='$CPP $CPPFLAGS'
26333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26336
26337 CC="$lt_save_CC"
26338
26339         else
26340           tagname=""
26341         fi
26342         ;;
26343
26344       RC)
26345         ac_ext=c
26346 ac_cpp='$CPP $CPPFLAGS'
26347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26350
26351
26352 # Source file extension for RC test sources.
26353 ac_ext=rc
26354
26355 # Object file extension for compiled RC test sources.
26356 objext=o
26357 objext_RC=$objext
26358
26359 # Code to be used in simple compile tests
26360 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26361
26362 # Code to be used in simple link tests
26363 lt_simple_link_test_code="$lt_simple_compile_test_code"
26364
26365 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26366
26367 # If no C compiler was specified, use CC.
26368 LTCC=${LTCC-"$CC"}
26369
26370 # If no C compiler flags were specified, use CFLAGS.
26371 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26372
26373 # Allow CC to be a program name with arguments.
26374 compiler=$CC
26375
26376
26377 # save warnings/boilerplate of simple test code
26378 ac_outfile=conftest.$ac_objext
26379 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26380 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26381 _lt_compiler_boilerplate=`cat conftest.err`
26382 $rm conftest*
26383
26384 ac_outfile=conftest.$ac_objext
26385 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26386 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26387 _lt_linker_boilerplate=`cat conftest.err`
26388 $rm conftest*
26389
26390
26391 # Allow CC to be a program name with arguments.
26392 lt_save_CC="$CC"
26393 CC=${RC-"windres"}
26394 compiler=$CC
26395 compiler_RC=$CC
26396 for cc_temp in $compiler""; do
26397   case $cc_temp in
26398     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26399     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26400     \-*) ;;
26401     *) break;;
26402   esac
26403 done
26404 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26405
26406 lt_cv_prog_compiler_c_o_RC=yes
26407
26408 # The else clause should only fire when bootstrapping the
26409 # libtool distribution, otherwise you forgot to ship ltmain.sh
26410 # with your package, and you will get complaints that there are
26411 # no rules to generate ltmain.sh.
26412 if test -f "$ltmain"; then
26413   # See if we are running on zsh, and set the options which allow our commands through
26414   # without removal of \ escapes.
26415   if test -n "${ZSH_VERSION+set}" ; then
26416     setopt NO_GLOB_SUBST
26417   fi
26418   # Now quote all the things that may contain metacharacters while being
26419   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26420   # variables and quote the copies for generation of the libtool script.
26421   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26422     SED SHELL STRIP \
26423     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26424     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26425     deplibs_check_method reload_flag reload_cmds need_locks \
26426     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26427     lt_cv_sys_global_symbol_to_c_name_address \
26428     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26429     old_postinstall_cmds old_postuninstall_cmds \
26430     compiler_RC \
26431     CC_RC \
26432     LD_RC \
26433     lt_prog_compiler_wl_RC \
26434     lt_prog_compiler_pic_RC \
26435     lt_prog_compiler_static_RC \
26436     lt_prog_compiler_no_builtin_flag_RC \
26437     export_dynamic_flag_spec_RC \
26438     thread_safe_flag_spec_RC \
26439     whole_archive_flag_spec_RC \
26440     enable_shared_with_static_runtimes_RC \
26441     old_archive_cmds_RC \
26442     old_archive_from_new_cmds_RC \
26443     predep_objects_RC \
26444     postdep_objects_RC \
26445     predeps_RC \
26446     postdeps_RC \
26447     compiler_lib_search_path_RC \
26448     archive_cmds_RC \
26449     archive_expsym_cmds_RC \
26450     postinstall_cmds_RC \
26451     postuninstall_cmds_RC \
26452     old_archive_from_expsyms_cmds_RC \
26453     allow_undefined_flag_RC \
26454     no_undefined_flag_RC \
26455     export_symbols_cmds_RC \
26456     hardcode_libdir_flag_spec_RC \
26457     hardcode_libdir_flag_spec_ld_RC \
26458     hardcode_libdir_separator_RC \
26459     hardcode_automatic_RC \
26460     module_cmds_RC \
26461     module_expsym_cmds_RC \
26462     lt_cv_prog_compiler_c_o_RC \
26463     exclude_expsyms_RC \
26464     include_expsyms_RC; do
26465
26466     case $var in
26467     old_archive_cmds_RC | \
26468     old_archive_from_new_cmds_RC | \
26469     archive_cmds_RC | \
26470     archive_expsym_cmds_RC | \
26471     module_cmds_RC | \
26472     module_expsym_cmds_RC | \
26473     old_archive_from_expsyms_cmds_RC | \
26474     export_symbols_cmds_RC | \
26475     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26476     postinstall_cmds | postuninstall_cmds | \
26477     old_postinstall_cmds | old_postuninstall_cmds | \
26478     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26479       # Double-quote double-evaled strings.
26480       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26481       ;;
26482     *)
26483       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26484       ;;
26485     esac
26486   done
26487
26488   case $lt_echo in
26489   *'\$0 --fallback-echo"')
26490     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26491     ;;
26492   esac
26493
26494 cfgfile="$ofile"
26495
26496   cat <<__EOF__ >> "$cfgfile"
26497 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26498
26499 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26500
26501 # Shell to use when invoking shell scripts.
26502 SHELL=$lt_SHELL
26503
26504 # Whether or not to build shared libraries.
26505 build_libtool_libs=$enable_shared
26506
26507 # Whether or not to build static libraries.
26508 build_old_libs=$enable_static
26509
26510 # Whether or not to add -lc for building shared libraries.
26511 build_libtool_need_lc=$archive_cmds_need_lc_RC
26512
26513 # Whether or not to disallow shared libs when runtime libs are static
26514 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26515
26516 # Whether or not to optimize for fast installation.
26517 fast_install=$enable_fast_install
26518
26519 # The host system.
26520 host_alias=$host_alias
26521 host=$host
26522 host_os=$host_os
26523
26524 # The build system.
26525 build_alias=$build_alias
26526 build=$build
26527 build_os=$build_os
26528
26529 # An echo program that does not interpret backslashes.
26530 echo=$lt_echo
26531
26532 # The archiver.
26533 AR=$lt_AR
26534 AR_FLAGS=$lt_AR_FLAGS
26535
26536 # A C compiler.
26537 LTCC=$lt_LTCC
26538
26539 # LTCC compiler flags.
26540 LTCFLAGS=$lt_LTCFLAGS
26541
26542 # A language-specific compiler.
26543 CC=$lt_compiler_RC
26544
26545 # Is the compiler the GNU C compiler?
26546 with_gcc=$GCC_RC
26547
26548 # An ERE matcher.
26549 EGREP=$lt_EGREP
26550
26551 # The linker used to build libraries.
26552 LD=$lt_LD_RC
26553
26554 # Whether we need hard or soft links.
26555 LN_S=$lt_LN_S
26556
26557 # A BSD-compatible nm program.
26558 NM=$lt_NM
26559
26560 # A symbol stripping program
26561 STRIP=$lt_STRIP
26562
26563 # Used to examine libraries when file_magic_cmd begins "file"
26564 MAGIC_CMD=$MAGIC_CMD
26565
26566 # Used on cygwin: DLL creation program.
26567 DLLTOOL="$DLLTOOL"
26568
26569 # Used on cygwin: object dumper.
26570 OBJDUMP="$OBJDUMP"
26571
26572 # Used on cygwin: assembler.
26573 AS="$AS"
26574
26575 # The name of the directory that contains temporary libtool files.
26576 objdir=$objdir
26577
26578 # How to create reloadable object files.
26579 reload_flag=$lt_reload_flag
26580 reload_cmds=$lt_reload_cmds
26581
26582 # How to pass a linker flag through the compiler.
26583 wl=$lt_lt_prog_compiler_wl_RC
26584
26585 # Object file suffix (normally "o").
26586 objext="$ac_objext"
26587
26588 # Old archive suffix (normally "a").
26589 libext="$libext"
26590
26591 # Shared library suffix (normally ".so").
26592 shrext_cmds='$shrext_cmds'
26593
26594 # Executable file suffix (normally "").
26595 exeext="$exeext"
26596
26597 # Additional compiler flags for building library objects.
26598 pic_flag=$lt_lt_prog_compiler_pic_RC
26599 pic_mode=$pic_mode
26600
26601 # What is the maximum length of a command?
26602 max_cmd_len=$lt_cv_sys_max_cmd_len
26603
26604 # Does compiler simultaneously support -c and -o options?
26605 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26606
26607 # Must we lock files when doing compilation?
26608 need_locks=$lt_need_locks
26609
26610 # Do we need the lib prefix for modules?
26611 need_lib_prefix=$need_lib_prefix
26612
26613 # Do we need a version for libraries?
26614 need_version=$need_version
26615
26616 # Whether dlopen is supported.
26617 dlopen_support=$enable_dlopen
26618
26619 # Whether dlopen of programs is supported.
26620 dlopen_self=$enable_dlopen_self
26621
26622 # Whether dlopen of statically linked programs is supported.
26623 dlopen_self_static=$enable_dlopen_self_static
26624
26625 # Compiler flag to prevent dynamic linking.
26626 link_static_flag=$lt_lt_prog_compiler_static_RC
26627
26628 # Compiler flag to turn off builtin functions.
26629 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26630
26631 # Compiler flag to allow reflexive dlopens.
26632 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26633
26634 # Compiler flag to generate shared objects directly from archives.
26635 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26636
26637 # Compiler flag to generate thread-safe objects.
26638 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26639
26640 # Library versioning type.
26641 version_type=$version_type
26642
26643 # Format of library name prefix.
26644 libname_spec=$lt_libname_spec
26645
26646 # List of archive names.  First name is the real one, the rest are links.
26647 # The last name is the one that the linker finds with -lNAME.
26648 library_names_spec=$lt_library_names_spec
26649
26650 # The coded name of the library, if different from the real name.
26651 soname_spec=$lt_soname_spec
26652
26653 # Commands used to build and install an old-style archive.
26654 RANLIB=$lt_RANLIB
26655 old_archive_cmds=$lt_old_archive_cmds_RC
26656 old_postinstall_cmds=$lt_old_postinstall_cmds
26657 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26658
26659 # Create an old-style archive from a shared archive.
26660 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26661
26662 # Create a temporary old-style archive to link instead of a shared archive.
26663 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26664
26665 # Commands used to build and install a shared archive.
26666 archive_cmds=$lt_archive_cmds_RC
26667 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26668 postinstall_cmds=$lt_postinstall_cmds
26669 postuninstall_cmds=$lt_postuninstall_cmds
26670
26671 # Commands used to build a loadable module (assumed same as above if empty)
26672 module_cmds=$lt_module_cmds_RC
26673 module_expsym_cmds=$lt_module_expsym_cmds_RC
26674
26675 # Commands to strip libraries.
26676 old_striplib=$lt_old_striplib
26677 striplib=$lt_striplib
26678
26679 # Dependencies to place before the objects being linked to create a
26680 # shared library.
26681 predep_objects=$lt_predep_objects_RC
26682
26683 # Dependencies to place after the objects being linked to create a
26684 # shared library.
26685 postdep_objects=$lt_postdep_objects_RC
26686
26687 # Dependencies to place before the objects being linked to create a
26688 # shared library.
26689 predeps=$lt_predeps_RC
26690
26691 # Dependencies to place after the objects being linked to create a
26692 # shared library.
26693 postdeps=$lt_postdeps_RC
26694
26695 # The library search path used internally by the compiler when linking
26696 # a shared library.
26697 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26698
26699 # Method to check whether dependent libraries are shared objects.
26700 deplibs_check_method=$lt_deplibs_check_method
26701
26702 # Command to use when deplibs_check_method == file_magic.
26703 file_magic_cmd=$lt_file_magic_cmd
26704
26705 # Flag that allows shared libraries with undefined symbols to be built.
26706 allow_undefined_flag=$lt_allow_undefined_flag_RC
26707
26708 # Flag that forces no undefined symbols.
26709 no_undefined_flag=$lt_no_undefined_flag_RC
26710
26711 # Commands used to finish a libtool library installation in a directory.
26712 finish_cmds=$lt_finish_cmds
26713
26714 # Same as above, but a single script fragment to be evaled but not shown.
26715 finish_eval=$lt_finish_eval
26716
26717 # Take the output of nm and produce a listing of raw symbols and C names.
26718 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26719
26720 # Transform the output of nm in a proper C declaration
26721 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26722
26723 # Transform the output of nm in a C name address pair
26724 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26725
26726 # This is the shared library runtime path variable.
26727 runpath_var=$runpath_var
26728
26729 # This is the shared library path variable.
26730 shlibpath_var=$shlibpath_var
26731
26732 # Is shlibpath searched before the hard-coded library search path?
26733 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26734
26735 # How to hardcode a shared library path into an executable.
26736 hardcode_action=$hardcode_action_RC
26737
26738 # Whether we should hardcode library paths into libraries.
26739 hardcode_into_libs=$hardcode_into_libs
26740
26741 # Flag to hardcode \$libdir into a binary during linking.
26742 # This must work even if \$libdir does not exist.
26743 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26744
26745 # If ld is used when linking, flag to hardcode \$libdir into
26746 # a binary during linking. This must work even if \$libdir does
26747 # not exist.
26748 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26749
26750 # Whether we need a single -rpath flag with a separated argument.
26751 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26752
26753 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26754 # resulting binary.
26755 hardcode_direct=$hardcode_direct_RC
26756
26757 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26758 # resulting binary.
26759 hardcode_minus_L=$hardcode_minus_L_RC
26760
26761 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26762 # the resulting binary.
26763 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26764
26765 # Set to yes if building a shared library automatically hardcodes DIR into the library
26766 # and all subsequent libraries and executables linked against it.
26767 hardcode_automatic=$hardcode_automatic_RC
26768
26769 # Variables whose values should be saved in libtool wrapper scripts and
26770 # restored at relink time.
26771 variables_saved_for_relink="$variables_saved_for_relink"
26772
26773 # Whether libtool must link a program against all its dependency libraries.
26774 link_all_deplibs=$link_all_deplibs_RC
26775
26776 # Compile-time system search path for libraries
26777 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26778
26779 # Run-time system search path for libraries
26780 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26781
26782 # Fix the shell variable \$srcfile for the compiler.
26783 fix_srcfile_path="$fix_srcfile_path_RC"
26784
26785 # Set to yes if exported symbols are required.
26786 always_export_symbols=$always_export_symbols_RC
26787
26788 # The commands to list exported symbols.
26789 export_symbols_cmds=$lt_export_symbols_cmds_RC
26790
26791 # The commands to extract the exported symbol list from a shared archive.
26792 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26793
26794 # Symbols that should not be listed in the preloaded symbols.
26795 exclude_expsyms=$lt_exclude_expsyms_RC
26796
26797 # Symbols that must always be exported.
26798 include_expsyms=$lt_include_expsyms_RC
26799
26800 # ### END LIBTOOL TAG CONFIG: $tagname
26801
26802 __EOF__
26803
26804
26805 else
26806   # If there is no Makefile yet, we rely on a make rule to execute
26807   # `config.status --recheck' to rerun these tests and create the
26808   # libtool script then.
26809   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26810   if test -f "$ltmain_in"; then
26811     test -f Makefile && make "$ltmain"
26812   fi
26813 fi
26814
26815
26816 ac_ext=c
26817 ac_cpp='$CPP $CPPFLAGS'
26818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26821
26822 CC="$lt_save_CC"
26823
26824         ;;
26825
26826       *)
26827         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26828 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26829    { (exit 1); exit 1; }; }
26830         ;;
26831       esac
26832
26833       # Append the new tag name to the list of available tags.
26834       if test -n "$tagname" ; then
26835       available_tags="$available_tags $tagname"
26836     fi
26837     fi
26838   done
26839   IFS="$lt_save_ifs"
26840
26841   # Now substitute the updated list of available tags.
26842   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26843     mv "${ofile}T" "$ofile"
26844     chmod +x "$ofile"
26845   else
26846     rm -f "${ofile}T"
26847     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26848 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26849    { (exit 1); exit 1; }; }
26850   fi
26851 fi
26852
26853
26854
26855 # This can be used to rebuild libtool when needed
26856 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26857
26858 # Always use our own libtool.
26859 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26860
26861 # Prevent multiple expansion
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883 if test "$lt_cv_dlopen_self" = "yes" ; then
26884
26885 cat >>confdefs.h <<\_ACEOF
26886 #define CAN_DLOPEN_SELF 1
26887 _ACEOF
26888
26889 fi
26890
26891 if test "$WITH_LLVMGCCDIR" = "default" ; then
26892   LLVMGCC="llvm-gcc${EXEEXT}"
26893   LLVMGXX="llvm-g++${EXEEXT}"
26894   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26895 set dummy $LLVMGCC; ac_word=$2
26896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26898 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26899   echo $ECHO_N "(cached) $ECHO_C" >&6
26900 else
26901   case $LLVMGCC in
26902   [\\/]* | ?:[\\/]*)
26903   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26904   ;;
26905   *)
26906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26907 for as_dir in $PATH
26908 do
26909   IFS=$as_save_IFS
26910   test -z "$as_dir" && as_dir=.
26911   for ac_exec_ext in '' $ac_executable_extensions; do
26912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26913     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26915     break 2
26916   fi
26917 done
26918 done
26919 IFS=$as_save_IFS
26920
26921   ;;
26922 esac
26923 fi
26924 LLVMGCC=$ac_cv_path_LLVMGCC
26925 if test -n "$LLVMGCC"; then
26926   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26927 echo "${ECHO_T}$LLVMGCC" >&6; }
26928 else
26929   { echo "$as_me:$LINENO: result: no" >&5
26930 echo "${ECHO_T}no" >&6; }
26931 fi
26932
26933
26934   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26935 set dummy $LLVMGXX; ac_word=$2
26936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26938 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26939   echo $ECHO_N "(cached) $ECHO_C" >&6
26940 else
26941   case $LLVMGXX in
26942   [\\/]* | ?:[\\/]*)
26943   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26944   ;;
26945   *)
26946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26947 for as_dir in $PATH
26948 do
26949   IFS=$as_save_IFS
26950   test -z "$as_dir" && as_dir=.
26951   for ac_exec_ext in '' $ac_executable_extensions; do
26952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26953     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26955     break 2
26956   fi
26957 done
26958 done
26959 IFS=$as_save_IFS
26960
26961   ;;
26962 esac
26963 fi
26964 LLVMGXX=$ac_cv_path_LLVMGXX
26965 if test -n "$LLVMGXX"; then
26966   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26967 echo "${ECHO_T}$LLVMGXX" >&6; }
26968 else
26969   { echo "$as_me:$LINENO: result: no" >&5
26970 echo "${ECHO_T}no" >&6; }
26971 fi
26972
26973
26974 else
26975   if test -z "$LLVMGCC"; then
26976     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26977   fi
26978   if test -z "$LLVMGXX"; then
26979     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26980   fi
26981   LLVMGCC=$LLVMGCC
26982
26983   LLVMGXX=$LLVMGXX
26984
26985 fi
26986
26987 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26988 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26989
26990 ICC=no
26991 IXX=no
26992 case $CC in
26993   icc*|icpc*)
26994     ICC=yes
26995     IXX=yes
26996     ;;
26997    *)
26998     ;;
26999 esac
27000
27001 if test "$GCC" != "yes" && test "$ICC" != "yes"
27002 then
27003   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27004 echo "$as_me: error: gcc|icc required but not found" >&2;}
27005    { (exit 1); exit 1; }; }
27006 fi
27007
27008 if test "$GXX" != "yes" && test "$IXX" != "yes"
27009 then
27010   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27011 echo "$as_me: error: g++|icc required but not found" >&2;}
27012    { (exit 1); exit 1; }; }
27013 fi
27014
27015 if test "$GCC" = "yes"
27016 then
27017   cat >conftest.$ac_ext <<_ACEOF
27018 #if !defined(__GNUC__) || __GNUC__ < 3
27019 #error Unsupported GCC version
27020 #endif
27021
27022 _ACEOF
27023 rm -f conftest.$ac_objext
27024 if { (ac_try="$ac_compile"
27025 case "(($ac_try" in
27026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27027   *) ac_try_echo=$ac_try;;
27028 esac
27029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27030   (eval "$ac_compile") 2>conftest.er1
27031   ac_status=$?
27032   grep -v '^ *+' conftest.er1 >conftest.err
27033   rm -f conftest.er1
27034   cat conftest.err >&5
27035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036   (exit $ac_status); } &&
27037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27038   { (case "(($ac_try" in
27039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27040   *) ac_try_echo=$ac_try;;
27041 esac
27042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27043   (eval "$ac_try") 2>&5
27044   ac_status=$?
27045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046   (exit $ac_status); }; } &&
27047          { ac_try='test -s conftest.$ac_objext'
27048   { (case "(($ac_try" in
27049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27050   *) ac_try_echo=$ac_try;;
27051 esac
27052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27053   (eval "$ac_try") 2>&5
27054   ac_status=$?
27055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056   (exit $ac_status); }; }; then
27057   :
27058 else
27059   echo "$as_me: failed program was:" >&5
27060 sed 's/^/| /' conftest.$ac_ext >&5
27061
27062         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27063 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27064    { (exit 1); exit 1; }; }
27065 fi
27066
27067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27068 fi
27069
27070 if test -z "$llvm_cv_gnu_make_command"
27071 then
27072   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27073 echo "$as_me: error: GNU Make required but not found" >&2;}
27074    { (exit 1); exit 1; }; }
27075 fi
27076
27077 { echo "$as_me:$LINENO: result: ok" >&5
27078 echo "${ECHO_T}ok" >&6; }
27079
27080
27081
27082 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27083 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27084 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27085   echo $ECHO_N "(cached) $ECHO_C" >&6
27086 else
27087   ac_check_lib_save_LIBS=$LIBS
27088 LIBS="-lelf  $LIBS"
27089 cat >conftest.$ac_ext <<_ACEOF
27090 /* confdefs.h.  */
27091 _ACEOF
27092 cat confdefs.h >>conftest.$ac_ext
27093 cat >>conftest.$ac_ext <<_ACEOF
27094 /* end confdefs.h.  */
27095
27096 /* Override any GCC internal prototype to avoid an error.
27097    Use char because int might match the return type of a GCC
27098    builtin and then its argument prototype would still apply.  */
27099 #ifdef __cplusplus
27100 extern "C"
27101 #endif
27102 char elf_begin ();
27103 int
27104 main ()
27105 {
27106 return elf_begin ();
27107   ;
27108   return 0;
27109 }
27110 _ACEOF
27111 rm -f conftest.$ac_objext conftest$ac_exeext
27112 if { (ac_try="$ac_link"
27113 case "(($ac_try" in
27114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27115   *) ac_try_echo=$ac_try;;
27116 esac
27117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27118   (eval "$ac_link") 2>conftest.er1
27119   ac_status=$?
27120   grep -v '^ *+' conftest.er1 >conftest.err
27121   rm -f conftest.er1
27122   cat conftest.err >&5
27123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124   (exit $ac_status); } &&
27125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27126   { (case "(($ac_try" in
27127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27128   *) ac_try_echo=$ac_try;;
27129 esac
27130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27131   (eval "$ac_try") 2>&5
27132   ac_status=$?
27133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134   (exit $ac_status); }; } &&
27135          { ac_try='test -s conftest$ac_exeext'
27136   { (case "(($ac_try" in
27137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27138   *) ac_try_echo=$ac_try;;
27139 esac
27140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27141   (eval "$ac_try") 2>&5
27142   ac_status=$?
27143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144   (exit $ac_status); }; }; then
27145   ac_cv_lib_elf_elf_begin=yes
27146 else
27147   echo "$as_me: failed program was:" >&5
27148 sed 's/^/| /' conftest.$ac_ext >&5
27149
27150         ac_cv_lib_elf_elf_begin=no
27151 fi
27152
27153 rm -f core conftest.err conftest.$ac_objext \
27154       conftest$ac_exeext conftest.$ac_ext
27155 LIBS=$ac_check_lib_save_LIBS
27156 fi
27157 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27158 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27159 if test $ac_cv_lib_elf_elf_begin = yes; then
27160   cat >>confdefs.h <<_ACEOF
27161 #define HAVE_LIBELF 1
27162 _ACEOF
27163
27164   LIBS="-lelf $LIBS"
27165
27166 fi
27167
27168
27169 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27170 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27171 if test "${ac_cv_lib_m_sin+set}" = set; then
27172   echo $ECHO_N "(cached) $ECHO_C" >&6
27173 else
27174   ac_check_lib_save_LIBS=$LIBS
27175 LIBS="-lm  $LIBS"
27176 cat >conftest.$ac_ext <<_ACEOF
27177 /* confdefs.h.  */
27178 _ACEOF
27179 cat confdefs.h >>conftest.$ac_ext
27180 cat >>conftest.$ac_ext <<_ACEOF
27181 /* end confdefs.h.  */
27182
27183 /* Override any GCC internal prototype to avoid an error.
27184    Use char because int might match the return type of a GCC
27185    builtin and then its argument prototype would still apply.  */
27186 #ifdef __cplusplus
27187 extern "C"
27188 #endif
27189 char sin ();
27190 int
27191 main ()
27192 {
27193 return sin ();
27194   ;
27195   return 0;
27196 }
27197 _ACEOF
27198 rm -f conftest.$ac_objext conftest$ac_exeext
27199 if { (ac_try="$ac_link"
27200 case "(($ac_try" in
27201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27202   *) ac_try_echo=$ac_try;;
27203 esac
27204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27205   (eval "$ac_link") 2>conftest.er1
27206   ac_status=$?
27207   grep -v '^ *+' conftest.er1 >conftest.err
27208   rm -f conftest.er1
27209   cat conftest.err >&5
27210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211   (exit $ac_status); } &&
27212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27213   { (case "(($ac_try" in
27214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27215   *) ac_try_echo=$ac_try;;
27216 esac
27217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27218   (eval "$ac_try") 2>&5
27219   ac_status=$?
27220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221   (exit $ac_status); }; } &&
27222          { ac_try='test -s conftest$ac_exeext'
27223   { (case "(($ac_try" in
27224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27225   *) ac_try_echo=$ac_try;;
27226 esac
27227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27228   (eval "$ac_try") 2>&5
27229   ac_status=$?
27230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231   (exit $ac_status); }; }; then
27232   ac_cv_lib_m_sin=yes
27233 else
27234   echo "$as_me: failed program was:" >&5
27235 sed 's/^/| /' conftest.$ac_ext >&5
27236
27237         ac_cv_lib_m_sin=no
27238 fi
27239
27240 rm -f core conftest.err conftest.$ac_objext \
27241       conftest$ac_exeext conftest.$ac_ext
27242 LIBS=$ac_check_lib_save_LIBS
27243 fi
27244 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27245 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27246 if test $ac_cv_lib_m_sin = yes; then
27247   cat >>confdefs.h <<_ACEOF
27248 #define HAVE_LIBM 1
27249 _ACEOF
27250
27251   LIBS="-lm $LIBS"
27252
27253 fi
27254
27255 if test "$llvm_cv_os_type" = "MingW" ; then
27256
27257 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27258 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27259 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27260   echo $ECHO_N "(cached) $ECHO_C" >&6
27261 else
27262   ac_check_lib_save_LIBS=$LIBS
27263 LIBS="-limagehlp  $LIBS"
27264 cat >conftest.$ac_ext <<_ACEOF
27265 /* confdefs.h.  */
27266 _ACEOF
27267 cat confdefs.h >>conftest.$ac_ext
27268 cat >>conftest.$ac_ext <<_ACEOF
27269 /* end confdefs.h.  */
27270
27271
27272 int
27273 main ()
27274 {
27275 return main ();
27276   ;
27277   return 0;
27278 }
27279 _ACEOF
27280 rm -f conftest.$ac_objext conftest$ac_exeext
27281 if { (ac_try="$ac_link"
27282 case "(($ac_try" in
27283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284   *) ac_try_echo=$ac_try;;
27285 esac
27286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287   (eval "$ac_link") 2>conftest.er1
27288   ac_status=$?
27289   grep -v '^ *+' conftest.er1 >conftest.err
27290   rm -f conftest.er1
27291   cat conftest.err >&5
27292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293   (exit $ac_status); } &&
27294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27295   { (case "(($ac_try" in
27296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297   *) ac_try_echo=$ac_try;;
27298 esac
27299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27300   (eval "$ac_try") 2>&5
27301   ac_status=$?
27302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303   (exit $ac_status); }; } &&
27304          { ac_try='test -s conftest$ac_exeext'
27305   { (case "(($ac_try" in
27306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27307   *) ac_try_echo=$ac_try;;
27308 esac
27309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27310   (eval "$ac_try") 2>&5
27311   ac_status=$?
27312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313   (exit $ac_status); }; }; then
27314   ac_cv_lib_imagehlp_main=yes
27315 else
27316   echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27318
27319         ac_cv_lib_imagehlp_main=no
27320 fi
27321
27322 rm -f core conftest.err conftest.$ac_objext \
27323       conftest$ac_exeext conftest.$ac_ext
27324 LIBS=$ac_check_lib_save_LIBS
27325 fi
27326 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27327 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27328 if test $ac_cv_lib_imagehlp_main = yes; then
27329   cat >>confdefs.h <<_ACEOF
27330 #define HAVE_LIBIMAGEHLP 1
27331 _ACEOF
27332
27333   LIBS="-limagehlp $LIBS"
27334
27335 fi
27336
27337
27338 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27339 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27340 if test "${ac_cv_lib_psapi_main+set}" = set; then
27341   echo $ECHO_N "(cached) $ECHO_C" >&6
27342 else
27343   ac_check_lib_save_LIBS=$LIBS
27344 LIBS="-lpsapi  $LIBS"
27345 cat >conftest.$ac_ext <<_ACEOF
27346 /* confdefs.h.  */
27347 _ACEOF
27348 cat confdefs.h >>conftest.$ac_ext
27349 cat >>conftest.$ac_ext <<_ACEOF
27350 /* end confdefs.h.  */
27351
27352
27353 int
27354 main ()
27355 {
27356 return main ();
27357   ;
27358   return 0;
27359 }
27360 _ACEOF
27361 rm -f conftest.$ac_objext conftest$ac_exeext
27362 if { (ac_try="$ac_link"
27363 case "(($ac_try" in
27364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27365   *) ac_try_echo=$ac_try;;
27366 esac
27367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27368   (eval "$ac_link") 2>conftest.er1
27369   ac_status=$?
27370   grep -v '^ *+' conftest.er1 >conftest.err
27371   rm -f conftest.er1
27372   cat conftest.err >&5
27373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374   (exit $ac_status); } &&
27375          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27376   { (case "(($ac_try" in
27377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27378   *) ac_try_echo=$ac_try;;
27379 esac
27380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27381   (eval "$ac_try") 2>&5
27382   ac_status=$?
27383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384   (exit $ac_status); }; } &&
27385          { ac_try='test -s conftest$ac_exeext'
27386   { (case "(($ac_try" in
27387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27388   *) ac_try_echo=$ac_try;;
27389 esac
27390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27391   (eval "$ac_try") 2>&5
27392   ac_status=$?
27393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394   (exit $ac_status); }; }; then
27395   ac_cv_lib_psapi_main=yes
27396 else
27397   echo "$as_me: failed program was:" >&5
27398 sed 's/^/| /' conftest.$ac_ext >&5
27399
27400         ac_cv_lib_psapi_main=no
27401 fi
27402
27403 rm -f core conftest.err conftest.$ac_objext \
27404       conftest$ac_exeext conftest.$ac_ext
27405 LIBS=$ac_check_lib_save_LIBS
27406 fi
27407 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27408 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27409 if test $ac_cv_lib_psapi_main = yes; then
27410   cat >>confdefs.h <<_ACEOF
27411 #define HAVE_LIBPSAPI 1
27412 _ACEOF
27413
27414   LIBS="-lpsapi $LIBS"
27415
27416 fi
27417
27418 fi
27419
27420 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27421 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27422 if test "${ac_cv_search_dlopen+set}" = set; then
27423   echo $ECHO_N "(cached) $ECHO_C" >&6
27424 else
27425   ac_func_search_save_LIBS=$LIBS
27426 cat >conftest.$ac_ext <<_ACEOF
27427 /* confdefs.h.  */
27428 _ACEOF
27429 cat confdefs.h >>conftest.$ac_ext
27430 cat >>conftest.$ac_ext <<_ACEOF
27431 /* end confdefs.h.  */
27432
27433 /* Override any GCC internal prototype to avoid an error.
27434    Use char because int might match the return type of a GCC
27435    builtin and then its argument prototype would still apply.  */
27436 #ifdef __cplusplus
27437 extern "C"
27438 #endif
27439 char dlopen ();
27440 int
27441 main ()
27442 {
27443 return dlopen ();
27444   ;
27445   return 0;
27446 }
27447 _ACEOF
27448 for ac_lib in '' dl; do
27449   if test -z "$ac_lib"; then
27450     ac_res="none required"
27451   else
27452     ac_res=-l$ac_lib
27453     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27454   fi
27455   rm -f conftest.$ac_objext conftest$ac_exeext
27456 if { (ac_try="$ac_link"
27457 case "(($ac_try" in
27458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27459   *) ac_try_echo=$ac_try;;
27460 esac
27461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27462   (eval "$ac_link") 2>conftest.er1
27463   ac_status=$?
27464   grep -v '^ *+' conftest.er1 >conftest.err
27465   rm -f conftest.er1
27466   cat conftest.err >&5
27467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468   (exit $ac_status); } &&
27469          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27470   { (case "(($ac_try" in
27471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27472   *) ac_try_echo=$ac_try;;
27473 esac
27474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27475   (eval "$ac_try") 2>&5
27476   ac_status=$?
27477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478   (exit $ac_status); }; } &&
27479          { ac_try='test -s conftest$ac_exeext'
27480   { (case "(($ac_try" in
27481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27482   *) ac_try_echo=$ac_try;;
27483 esac
27484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27485   (eval "$ac_try") 2>&5
27486   ac_status=$?
27487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488   (exit $ac_status); }; }; then
27489   ac_cv_search_dlopen=$ac_res
27490 else
27491   echo "$as_me: failed program was:" >&5
27492 sed 's/^/| /' conftest.$ac_ext >&5
27493
27494
27495 fi
27496
27497 rm -f core conftest.err conftest.$ac_objext \
27498       conftest$ac_exeext
27499   if test "${ac_cv_search_dlopen+set}" = set; then
27500   break
27501 fi
27502 done
27503 if test "${ac_cv_search_dlopen+set}" = set; then
27504   :
27505 else
27506   ac_cv_search_dlopen=no
27507 fi
27508 rm conftest.$ac_ext
27509 LIBS=$ac_func_search_save_LIBS
27510 fi
27511 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27512 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27513 ac_res=$ac_cv_search_dlopen
27514 if test "$ac_res" != no; then
27515   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27516
27517 cat >>confdefs.h <<\_ACEOF
27518 #define HAVE_DLOPEN 1
27519 _ACEOF
27520
27521 else
27522   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27523 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27524 fi
27525
27526
27527 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27528 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27529 if test "${ac_cv_search_mallinfo+set}" = set; then
27530   echo $ECHO_N "(cached) $ECHO_C" >&6
27531 else
27532   ac_func_search_save_LIBS=$LIBS
27533 cat >conftest.$ac_ext <<_ACEOF
27534 /* confdefs.h.  */
27535 _ACEOF
27536 cat confdefs.h >>conftest.$ac_ext
27537 cat >>conftest.$ac_ext <<_ACEOF
27538 /* end confdefs.h.  */
27539
27540 /* Override any GCC internal prototype to avoid an error.
27541    Use char because int might match the return type of a GCC
27542    builtin and then its argument prototype would still apply.  */
27543 #ifdef __cplusplus
27544 extern "C"
27545 #endif
27546 char mallinfo ();
27547 int
27548 main ()
27549 {
27550 return mallinfo ();
27551   ;
27552   return 0;
27553 }
27554 _ACEOF
27555 for ac_lib in '' malloc; do
27556   if test -z "$ac_lib"; then
27557     ac_res="none required"
27558   else
27559     ac_res=-l$ac_lib
27560     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27561   fi
27562   rm -f conftest.$ac_objext conftest$ac_exeext
27563 if { (ac_try="$ac_link"
27564 case "(($ac_try" in
27565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27566   *) ac_try_echo=$ac_try;;
27567 esac
27568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27569   (eval "$ac_link") 2>conftest.er1
27570   ac_status=$?
27571   grep -v '^ *+' conftest.er1 >conftest.err
27572   rm -f conftest.er1
27573   cat conftest.err >&5
27574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575   (exit $ac_status); } &&
27576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27577   { (case "(($ac_try" in
27578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579   *) ac_try_echo=$ac_try;;
27580 esac
27581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582   (eval "$ac_try") 2>&5
27583   ac_status=$?
27584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585   (exit $ac_status); }; } &&
27586          { ac_try='test -s conftest$ac_exeext'
27587   { (case "(($ac_try" in
27588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27589   *) ac_try_echo=$ac_try;;
27590 esac
27591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27592   (eval "$ac_try") 2>&5
27593   ac_status=$?
27594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595   (exit $ac_status); }; }; then
27596   ac_cv_search_mallinfo=$ac_res
27597 else
27598   echo "$as_me: failed program was:" >&5
27599 sed 's/^/| /' conftest.$ac_ext >&5
27600
27601
27602 fi
27603
27604 rm -f core conftest.err conftest.$ac_objext \
27605       conftest$ac_exeext
27606   if test "${ac_cv_search_mallinfo+set}" = set; then
27607   break
27608 fi
27609 done
27610 if test "${ac_cv_search_mallinfo+set}" = set; then
27611   :
27612 else
27613   ac_cv_search_mallinfo=no
27614 fi
27615 rm conftest.$ac_ext
27616 LIBS=$ac_func_search_save_LIBS
27617 fi
27618 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27619 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27620 ac_res=$ac_cv_search_mallinfo
27621 if test "$ac_res" != no; then
27622   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27623
27624 cat >>confdefs.h <<\_ACEOF
27625 #define HAVE_MALLINFO 1
27626 _ACEOF
27627
27628 fi
27629
27630
27631 if test "$ENABLE_THREADS" -eq 1 ; then
27632
27633 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27634 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27635 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27636   echo $ECHO_N "(cached) $ECHO_C" >&6
27637 else
27638   ac_check_lib_save_LIBS=$LIBS
27639 LIBS="-lpthread  $LIBS"
27640 cat >conftest.$ac_ext <<_ACEOF
27641 /* confdefs.h.  */
27642 _ACEOF
27643 cat confdefs.h >>conftest.$ac_ext
27644 cat >>conftest.$ac_ext <<_ACEOF
27645 /* end confdefs.h.  */
27646
27647 /* Override any GCC internal prototype to avoid an error.
27648    Use char because int might match the return type of a GCC
27649    builtin and then its argument prototype would still apply.  */
27650 #ifdef __cplusplus
27651 extern "C"
27652 #endif
27653 char pthread_mutex_init ();
27654 int
27655 main ()
27656 {
27657 return pthread_mutex_init ();
27658   ;
27659   return 0;
27660 }
27661 _ACEOF
27662 rm -f conftest.$ac_objext conftest$ac_exeext
27663 if { (ac_try="$ac_link"
27664 case "(($ac_try" in
27665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666   *) ac_try_echo=$ac_try;;
27667 esac
27668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27669   (eval "$ac_link") 2>conftest.er1
27670   ac_status=$?
27671   grep -v '^ *+' conftest.er1 >conftest.err
27672   rm -f conftest.er1
27673   cat conftest.err >&5
27674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675   (exit $ac_status); } &&
27676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27677   { (case "(($ac_try" in
27678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27679   *) ac_try_echo=$ac_try;;
27680 esac
27681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27682   (eval "$ac_try") 2>&5
27683   ac_status=$?
27684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685   (exit $ac_status); }; } &&
27686          { ac_try='test -s conftest$ac_exeext'
27687   { (case "(($ac_try" in
27688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27689   *) ac_try_echo=$ac_try;;
27690 esac
27691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27692   (eval "$ac_try") 2>&5
27693   ac_status=$?
27694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695   (exit $ac_status); }; }; then
27696   ac_cv_lib_pthread_pthread_mutex_init=yes
27697 else
27698   echo "$as_me: failed program was:" >&5
27699 sed 's/^/| /' conftest.$ac_ext >&5
27700
27701         ac_cv_lib_pthread_pthread_mutex_init=no
27702 fi
27703
27704 rm -f core conftest.err conftest.$ac_objext \
27705       conftest$ac_exeext conftest.$ac_ext
27706 LIBS=$ac_check_lib_save_LIBS
27707 fi
27708 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27709 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27710 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27711   cat >>confdefs.h <<_ACEOF
27712 #define HAVE_LIBPTHREAD 1
27713 _ACEOF
27714
27715   LIBS="-lpthread $LIBS"
27716
27717 fi
27718
27719   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27720 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27721 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27722   echo $ECHO_N "(cached) $ECHO_C" >&6
27723 else
27724   ac_func_search_save_LIBS=$LIBS
27725 cat >conftest.$ac_ext <<_ACEOF
27726 /* confdefs.h.  */
27727 _ACEOF
27728 cat confdefs.h >>conftest.$ac_ext
27729 cat >>conftest.$ac_ext <<_ACEOF
27730 /* end confdefs.h.  */
27731
27732 /* Override any GCC internal prototype to avoid an error.
27733    Use char because int might match the return type of a GCC
27734    builtin and then its argument prototype would still apply.  */
27735 #ifdef __cplusplus
27736 extern "C"
27737 #endif
27738 char pthread_mutex_lock ();
27739 int
27740 main ()
27741 {
27742 return pthread_mutex_lock ();
27743   ;
27744   return 0;
27745 }
27746 _ACEOF
27747 for ac_lib in '' pthread; do
27748   if test -z "$ac_lib"; then
27749     ac_res="none required"
27750   else
27751     ac_res=-l$ac_lib
27752     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27753   fi
27754   rm -f conftest.$ac_objext conftest$ac_exeext
27755 if { (ac_try="$ac_link"
27756 case "(($ac_try" in
27757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758   *) ac_try_echo=$ac_try;;
27759 esac
27760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761   (eval "$ac_link") 2>conftest.er1
27762   ac_status=$?
27763   grep -v '^ *+' conftest.er1 >conftest.err
27764   rm -f conftest.er1
27765   cat conftest.err >&5
27766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767   (exit $ac_status); } &&
27768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27769   { (case "(($ac_try" in
27770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27771   *) ac_try_echo=$ac_try;;
27772 esac
27773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27774   (eval "$ac_try") 2>&5
27775   ac_status=$?
27776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777   (exit $ac_status); }; } &&
27778          { ac_try='test -s conftest$ac_exeext'
27779   { (case "(($ac_try" in
27780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781   *) ac_try_echo=$ac_try;;
27782 esac
27783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784   (eval "$ac_try") 2>&5
27785   ac_status=$?
27786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787   (exit $ac_status); }; }; then
27788   ac_cv_search_pthread_mutex_lock=$ac_res
27789 else
27790   echo "$as_me: failed program was:" >&5
27791 sed 's/^/| /' conftest.$ac_ext >&5
27792
27793
27794 fi
27795
27796 rm -f core conftest.err conftest.$ac_objext \
27797       conftest$ac_exeext
27798   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27799   break
27800 fi
27801 done
27802 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27803   :
27804 else
27805   ac_cv_search_pthread_mutex_lock=no
27806 fi
27807 rm conftest.$ac_ext
27808 LIBS=$ac_func_search_save_LIBS
27809 fi
27810 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27811 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27812 ac_res=$ac_cv_search_pthread_mutex_lock
27813 if test "$ac_res" != no; then
27814   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27815
27816 cat >>confdefs.h <<\_ACEOF
27817 #define HAVE_PTHREAD_MUTEX_LOCK 1
27818 _ACEOF
27819
27820 fi
27821
27822 fi
27823
27824
27825 # Check whether --with-udis86 was given.
27826 if test "${with_udis86+set}" = set; then
27827   withval=$with_udis86;
27828       USE_UDIS86=1
27829
27830       case "$withval" in
27831         /usr/lib|yes) ;;
27832         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27833       esac
27834
27835 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27836 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27837 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27838   echo $ECHO_N "(cached) $ECHO_C" >&6
27839 else
27840   ac_check_lib_save_LIBS=$LIBS
27841 LIBS="-ludis86  $LIBS"
27842 cat >conftest.$ac_ext <<_ACEOF
27843 /* confdefs.h.  */
27844 _ACEOF
27845 cat confdefs.h >>conftest.$ac_ext
27846 cat >>conftest.$ac_ext <<_ACEOF
27847 /* end confdefs.h.  */
27848
27849 /* Override any GCC internal prototype to avoid an error.
27850    Use char because int might match the return type of a GCC
27851    builtin and then its argument prototype would still apply.  */
27852 #ifdef __cplusplus
27853 extern "C"
27854 #endif
27855 char ud_init ();
27856 int
27857 main ()
27858 {
27859 return ud_init ();
27860   ;
27861   return 0;
27862 }
27863 _ACEOF
27864 rm -f conftest.$ac_objext conftest$ac_exeext
27865 if { (ac_try="$ac_link"
27866 case "(($ac_try" in
27867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27868   *) ac_try_echo=$ac_try;;
27869 esac
27870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27871   (eval "$ac_link") 2>conftest.er1
27872   ac_status=$?
27873   grep -v '^ *+' conftest.er1 >conftest.err
27874   rm -f conftest.er1
27875   cat conftest.err >&5
27876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877   (exit $ac_status); } &&
27878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27879   { (case "(($ac_try" in
27880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27881   *) ac_try_echo=$ac_try;;
27882 esac
27883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27884   (eval "$ac_try") 2>&5
27885   ac_status=$?
27886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887   (exit $ac_status); }; } &&
27888          { ac_try='test -s conftest$ac_exeext'
27889   { (case "(($ac_try" in
27890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891   *) ac_try_echo=$ac_try;;
27892 esac
27893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27894   (eval "$ac_try") 2>&5
27895   ac_status=$?
27896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897   (exit $ac_status); }; }; then
27898   ac_cv_lib_udis86_ud_init=yes
27899 else
27900   echo "$as_me: failed program was:" >&5
27901 sed 's/^/| /' conftest.$ac_ext >&5
27902
27903         ac_cv_lib_udis86_ud_init=no
27904 fi
27905
27906 rm -f core conftest.err conftest.$ac_objext \
27907       conftest$ac_exeext conftest.$ac_ext
27908 LIBS=$ac_check_lib_save_LIBS
27909 fi
27910 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27911 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27912 if test $ac_cv_lib_udis86_ud_init = yes; then
27913   cat >>confdefs.h <<_ACEOF
27914 #define HAVE_LIBUDIS86 1
27915 _ACEOF
27916
27917   LIBS="-ludis86 $LIBS"
27918
27919 else
27920
27921         echo "Error! You need to have libudis86 around."
27922         exit -1
27923
27924 fi
27925
27926
27927 else
27928   USE_UDIS86=0
27929
27930 fi
27931
27932
27933 cat >>confdefs.h <<_ACEOF
27934 #define USE_UDIS86 $USE_UDIS86
27935 _ACEOF
27936
27937
27938
27939
27940
27941
27942
27943
27944 ac_header_dirent=no
27945 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27946   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27947 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27948 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27950   echo $ECHO_N "(cached) $ECHO_C" >&6
27951 else
27952   cat >conftest.$ac_ext <<_ACEOF
27953 /* confdefs.h.  */
27954 _ACEOF
27955 cat confdefs.h >>conftest.$ac_ext
27956 cat >>conftest.$ac_ext <<_ACEOF
27957 /* end confdefs.h.  */
27958 #include <sys/types.h>
27959 #include <$ac_hdr>
27960
27961 int
27962 main ()
27963 {
27964 if ((DIR *) 0)
27965 return 0;
27966   ;
27967   return 0;
27968 }
27969 _ACEOF
27970 rm -f conftest.$ac_objext
27971 if { (ac_try="$ac_compile"
27972 case "(($ac_try" in
27973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27974   *) ac_try_echo=$ac_try;;
27975 esac
27976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27977   (eval "$ac_compile") 2>conftest.er1
27978   ac_status=$?
27979   grep -v '^ *+' conftest.er1 >conftest.err
27980   rm -f conftest.er1
27981   cat conftest.err >&5
27982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983   (exit $ac_status); } &&
27984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27985   { (case "(($ac_try" in
27986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27987   *) ac_try_echo=$ac_try;;
27988 esac
27989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27990   (eval "$ac_try") 2>&5
27991   ac_status=$?
27992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993   (exit $ac_status); }; } &&
27994          { ac_try='test -s conftest.$ac_objext'
27995   { (case "(($ac_try" in
27996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27997   *) ac_try_echo=$ac_try;;
27998 esac
27999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28000   (eval "$ac_try") 2>&5
28001   ac_status=$?
28002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003   (exit $ac_status); }; }; then
28004   eval "$as_ac_Header=yes"
28005 else
28006   echo "$as_me: failed program was:" >&5
28007 sed 's/^/| /' conftest.$ac_ext >&5
28008
28009         eval "$as_ac_Header=no"
28010 fi
28011
28012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28013 fi
28014 ac_res=`eval echo '${'$as_ac_Header'}'`
28015                { echo "$as_me:$LINENO: result: $ac_res" >&5
28016 echo "${ECHO_T}$ac_res" >&6; }
28017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28018   cat >>confdefs.h <<_ACEOF
28019 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28020 _ACEOF
28021
28022 ac_header_dirent=$ac_hdr; break
28023 fi
28024
28025 done
28026 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28027 if test $ac_header_dirent = dirent.h; then
28028   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28029 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28030 if test "${ac_cv_search_opendir+set}" = set; then
28031   echo $ECHO_N "(cached) $ECHO_C" >&6
28032 else
28033   ac_func_search_save_LIBS=$LIBS
28034 cat >conftest.$ac_ext <<_ACEOF
28035 /* confdefs.h.  */
28036 _ACEOF
28037 cat confdefs.h >>conftest.$ac_ext
28038 cat >>conftest.$ac_ext <<_ACEOF
28039 /* end confdefs.h.  */
28040
28041 /* Override any GCC internal prototype to avoid an error.
28042    Use char because int might match the return type of a GCC
28043    builtin and then its argument prototype would still apply.  */
28044 #ifdef __cplusplus
28045 extern "C"
28046 #endif
28047 char opendir ();
28048 int
28049 main ()
28050 {
28051 return opendir ();
28052   ;
28053   return 0;
28054 }
28055 _ACEOF
28056 for ac_lib in '' dir; do
28057   if test -z "$ac_lib"; then
28058     ac_res="none required"
28059   else
28060     ac_res=-l$ac_lib
28061     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28062   fi
28063   rm -f conftest.$ac_objext conftest$ac_exeext
28064 if { (ac_try="$ac_link"
28065 case "(($ac_try" in
28066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067   *) ac_try_echo=$ac_try;;
28068 esac
28069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070   (eval "$ac_link") 2>conftest.er1
28071   ac_status=$?
28072   grep -v '^ *+' conftest.er1 >conftest.err
28073   rm -f conftest.er1
28074   cat conftest.err >&5
28075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076   (exit $ac_status); } &&
28077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28078   { (case "(($ac_try" in
28079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28080   *) ac_try_echo=$ac_try;;
28081 esac
28082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28083   (eval "$ac_try") 2>&5
28084   ac_status=$?
28085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086   (exit $ac_status); }; } &&
28087          { ac_try='test -s conftest$ac_exeext'
28088   { (case "(($ac_try" in
28089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28090   *) ac_try_echo=$ac_try;;
28091 esac
28092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28093   (eval "$ac_try") 2>&5
28094   ac_status=$?
28095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096   (exit $ac_status); }; }; then
28097   ac_cv_search_opendir=$ac_res
28098 else
28099   echo "$as_me: failed program was:" >&5
28100 sed 's/^/| /' conftest.$ac_ext >&5
28101
28102
28103 fi
28104
28105 rm -f core conftest.err conftest.$ac_objext \
28106       conftest$ac_exeext
28107   if test "${ac_cv_search_opendir+set}" = set; then
28108   break
28109 fi
28110 done
28111 if test "${ac_cv_search_opendir+set}" = set; then
28112   :
28113 else
28114   ac_cv_search_opendir=no
28115 fi
28116 rm conftest.$ac_ext
28117 LIBS=$ac_func_search_save_LIBS
28118 fi
28119 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28120 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28121 ac_res=$ac_cv_search_opendir
28122 if test "$ac_res" != no; then
28123   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28124
28125 fi
28126
28127 else
28128   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28129 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28130 if test "${ac_cv_search_opendir+set}" = set; then
28131   echo $ECHO_N "(cached) $ECHO_C" >&6
28132 else
28133   ac_func_search_save_LIBS=$LIBS
28134 cat >conftest.$ac_ext <<_ACEOF
28135 /* confdefs.h.  */
28136 _ACEOF
28137 cat confdefs.h >>conftest.$ac_ext
28138 cat >>conftest.$ac_ext <<_ACEOF
28139 /* end confdefs.h.  */
28140
28141 /* Override any GCC internal prototype to avoid an error.
28142    Use char because int might match the return type of a GCC
28143    builtin and then its argument prototype would still apply.  */
28144 #ifdef __cplusplus
28145 extern "C"
28146 #endif
28147 char opendir ();
28148 int
28149 main ()
28150 {
28151 return opendir ();
28152   ;
28153   return 0;
28154 }
28155 _ACEOF
28156 for ac_lib in '' x; do
28157   if test -z "$ac_lib"; then
28158     ac_res="none required"
28159   else
28160     ac_res=-l$ac_lib
28161     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28162   fi
28163   rm -f conftest.$ac_objext conftest$ac_exeext
28164 if { (ac_try="$ac_link"
28165 case "(($ac_try" in
28166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28167   *) ac_try_echo=$ac_try;;
28168 esac
28169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28170   (eval "$ac_link") 2>conftest.er1
28171   ac_status=$?
28172   grep -v '^ *+' conftest.er1 >conftest.err
28173   rm -f conftest.er1
28174   cat conftest.err >&5
28175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176   (exit $ac_status); } &&
28177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28178   { (case "(($ac_try" in
28179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28180   *) ac_try_echo=$ac_try;;
28181 esac
28182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28183   (eval "$ac_try") 2>&5
28184   ac_status=$?
28185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28186   (exit $ac_status); }; } &&
28187          { ac_try='test -s conftest$ac_exeext'
28188   { (case "(($ac_try" in
28189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28190   *) ac_try_echo=$ac_try;;
28191 esac
28192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28193   (eval "$ac_try") 2>&5
28194   ac_status=$?
28195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196   (exit $ac_status); }; }; then
28197   ac_cv_search_opendir=$ac_res
28198 else
28199   echo "$as_me: failed program was:" >&5
28200 sed 's/^/| /' conftest.$ac_ext >&5
28201
28202
28203 fi
28204
28205 rm -f core conftest.err conftest.$ac_objext \
28206       conftest$ac_exeext
28207   if test "${ac_cv_search_opendir+set}" = set; then
28208   break
28209 fi
28210 done
28211 if test "${ac_cv_search_opendir+set}" = set; then
28212   :
28213 else
28214   ac_cv_search_opendir=no
28215 fi
28216 rm conftest.$ac_ext
28217 LIBS=$ac_func_search_save_LIBS
28218 fi
28219 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28220 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28221 ac_res=$ac_cv_search_opendir
28222 if test "$ac_res" != no; then
28223   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28224
28225 fi
28226
28227 fi
28228
28229 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28230 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28231 if test "${ac_cv_header_mmap_anon+set}" = set; then
28232   echo $ECHO_N "(cached) $ECHO_C" >&6
28233 else
28234    ac_ext=c
28235 ac_cpp='$CPP $CPPFLAGS'
28236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28239
28240   cat >conftest.$ac_ext <<_ACEOF
28241 /* confdefs.h.  */
28242 _ACEOF
28243 cat confdefs.h >>conftest.$ac_ext
28244 cat >>conftest.$ac_ext <<_ACEOF
28245 /* end confdefs.h.  */
28246 #include <sys/mman.h>
28247 #include <unistd.h>
28248 #include <fcntl.h>
28249 int
28250 main ()
28251 {
28252 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28253   ;
28254   return 0;
28255 }
28256 _ACEOF
28257 rm -f conftest.$ac_objext
28258 if { (ac_try="$ac_compile"
28259 case "(($ac_try" in
28260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28261   *) ac_try_echo=$ac_try;;
28262 esac
28263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28264   (eval "$ac_compile") 2>conftest.er1
28265   ac_status=$?
28266   grep -v '^ *+' conftest.er1 >conftest.err
28267   rm -f conftest.er1
28268   cat conftest.err >&5
28269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270   (exit $ac_status); } &&
28271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28272   { (case "(($ac_try" in
28273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274   *) ac_try_echo=$ac_try;;
28275 esac
28276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277   (eval "$ac_try") 2>&5
28278   ac_status=$?
28279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280   (exit $ac_status); }; } &&
28281          { ac_try='test -s conftest.$ac_objext'
28282   { (case "(($ac_try" in
28283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28284   *) ac_try_echo=$ac_try;;
28285 esac
28286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28287   (eval "$ac_try") 2>&5
28288   ac_status=$?
28289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290   (exit $ac_status); }; }; then
28291   ac_cv_header_mmap_anon=yes
28292 else
28293   echo "$as_me: failed program was:" >&5
28294 sed 's/^/| /' conftest.$ac_ext >&5
28295
28296         ac_cv_header_mmap_anon=no
28297 fi
28298
28299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28300   ac_ext=c
28301 ac_cpp='$CPP $CPPFLAGS'
28302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28305
28306
28307 fi
28308 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28309 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28310 if test "$ac_cv_header_mmap_anon" = yes; then
28311
28312 cat >>confdefs.h <<\_ACEOF
28313 #define HAVE_MMAP_ANONYMOUS 1
28314 _ACEOF
28315
28316 fi
28317
28318 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28319 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28320 if test "${ac_cv_header_stat_broken+set}" = set; then
28321   echo $ECHO_N "(cached) $ECHO_C" >&6
28322 else
28323   cat >conftest.$ac_ext <<_ACEOF
28324 /* confdefs.h.  */
28325 _ACEOF
28326 cat confdefs.h >>conftest.$ac_ext
28327 cat >>conftest.$ac_ext <<_ACEOF
28328 /* end confdefs.h.  */
28329 #include <sys/types.h>
28330 #include <sys/stat.h>
28331
28332 #if defined S_ISBLK && defined S_IFDIR
28333 # if S_ISBLK (S_IFDIR)
28334 You lose.
28335 # endif
28336 #endif
28337
28338 #if defined S_ISBLK && defined S_IFCHR
28339 # if S_ISBLK (S_IFCHR)
28340 You lose.
28341 # endif
28342 #endif
28343
28344 #if defined S_ISLNK && defined S_IFREG
28345 # if S_ISLNK (S_IFREG)
28346 You lose.
28347 # endif
28348 #endif
28349
28350 #if defined S_ISSOCK && defined S_IFREG
28351 # if S_ISSOCK (S_IFREG)
28352 You lose.
28353 # endif
28354 #endif
28355
28356 _ACEOF
28357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28358   $EGREP "You lose" >/dev/null 2>&1; then
28359   ac_cv_header_stat_broken=yes
28360 else
28361   ac_cv_header_stat_broken=no
28362 fi
28363 rm -f conftest*
28364
28365 fi
28366 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28367 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28368 if test $ac_cv_header_stat_broken = yes; then
28369
28370 cat >>confdefs.h <<\_ACEOF
28371 #define STAT_MACROS_BROKEN 1
28372 _ACEOF
28373
28374 fi
28375
28376 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28377 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28378 if test "${ac_cv_header_stdc+set}" = set; then
28379   echo $ECHO_N "(cached) $ECHO_C" >&6
28380 else
28381   cat >conftest.$ac_ext <<_ACEOF
28382 /* confdefs.h.  */
28383 _ACEOF
28384 cat confdefs.h >>conftest.$ac_ext
28385 cat >>conftest.$ac_ext <<_ACEOF
28386 /* end confdefs.h.  */
28387 #include <stdlib.h>
28388 #include <stdarg.h>
28389 #include <string.h>
28390 #include <float.h>
28391
28392 int
28393 main ()
28394 {
28395
28396   ;
28397   return 0;
28398 }
28399 _ACEOF
28400 rm -f conftest.$ac_objext
28401 if { (ac_try="$ac_compile"
28402 case "(($ac_try" in
28403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28404   *) ac_try_echo=$ac_try;;
28405 esac
28406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28407   (eval "$ac_compile") 2>conftest.er1
28408   ac_status=$?
28409   grep -v '^ *+' conftest.er1 >conftest.err
28410   rm -f conftest.er1
28411   cat conftest.err >&5
28412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413   (exit $ac_status); } &&
28414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28415   { (case "(($ac_try" in
28416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28417   *) ac_try_echo=$ac_try;;
28418 esac
28419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420   (eval "$ac_try") 2>&5
28421   ac_status=$?
28422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423   (exit $ac_status); }; } &&
28424          { ac_try='test -s conftest.$ac_objext'
28425   { (case "(($ac_try" in
28426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28427   *) ac_try_echo=$ac_try;;
28428 esac
28429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28430   (eval "$ac_try") 2>&5
28431   ac_status=$?
28432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433   (exit $ac_status); }; }; then
28434   ac_cv_header_stdc=yes
28435 else
28436   echo "$as_me: failed program was:" >&5
28437 sed 's/^/| /' conftest.$ac_ext >&5
28438
28439         ac_cv_header_stdc=no
28440 fi
28441
28442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28443
28444 if test $ac_cv_header_stdc = yes; then
28445   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28446   cat >conftest.$ac_ext <<_ACEOF
28447 /* confdefs.h.  */
28448 _ACEOF
28449 cat confdefs.h >>conftest.$ac_ext
28450 cat >>conftest.$ac_ext <<_ACEOF
28451 /* end confdefs.h.  */
28452 #include <string.h>
28453
28454 _ACEOF
28455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28456   $EGREP "memchr" >/dev/null 2>&1; then
28457   :
28458 else
28459   ac_cv_header_stdc=no
28460 fi
28461 rm -f conftest*
28462
28463 fi
28464
28465 if test $ac_cv_header_stdc = yes; then
28466   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28467   cat >conftest.$ac_ext <<_ACEOF
28468 /* confdefs.h.  */
28469 _ACEOF
28470 cat confdefs.h >>conftest.$ac_ext
28471 cat >>conftest.$ac_ext <<_ACEOF
28472 /* end confdefs.h.  */
28473 #include <stdlib.h>
28474
28475 _ACEOF
28476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28477   $EGREP "free" >/dev/null 2>&1; then
28478   :
28479 else
28480   ac_cv_header_stdc=no
28481 fi
28482 rm -f conftest*
28483
28484 fi
28485
28486 if test $ac_cv_header_stdc = yes; then
28487   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28488   if test "$cross_compiling" = yes; then
28489   :
28490 else
28491   cat >conftest.$ac_ext <<_ACEOF
28492 /* confdefs.h.  */
28493 _ACEOF
28494 cat confdefs.h >>conftest.$ac_ext
28495 cat >>conftest.$ac_ext <<_ACEOF
28496 /* end confdefs.h.  */
28497 #include <ctype.h>
28498 #include <stdlib.h>
28499 #if ((' ' & 0x0FF) == 0x020)
28500 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28501 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28502 #else
28503 # define ISLOWER(c) \
28504                    (('a' <= (c) && (c) <= 'i') \
28505                      || ('j' <= (c) && (c) <= 'r') \
28506                      || ('s' <= (c) && (c) <= 'z'))
28507 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28508 #endif
28509
28510 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28511 int
28512 main ()
28513 {
28514   int i;
28515   for (i = 0; i < 256; i++)
28516     if (XOR (islower (i), ISLOWER (i))
28517         || toupper (i) != TOUPPER (i))
28518       return 2;
28519   return 0;
28520 }
28521 _ACEOF
28522 rm -f conftest$ac_exeext
28523 if { (ac_try="$ac_link"
28524 case "(($ac_try" in
28525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28526   *) ac_try_echo=$ac_try;;
28527 esac
28528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28529   (eval "$ac_link") 2>&5
28530   ac_status=$?
28531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28533   { (case "(($ac_try" in
28534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28535   *) ac_try_echo=$ac_try;;
28536 esac
28537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28538   (eval "$ac_try") 2>&5
28539   ac_status=$?
28540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541   (exit $ac_status); }; }; then
28542   :
28543 else
28544   echo "$as_me: program exited with status $ac_status" >&5
28545 echo "$as_me: failed program was:" >&5
28546 sed 's/^/| /' conftest.$ac_ext >&5
28547
28548 ( exit $ac_status )
28549 ac_cv_header_stdc=no
28550 fi
28551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28552 fi
28553
28554
28555 fi
28556 fi
28557 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28558 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28559 if test $ac_cv_header_stdc = yes; then
28560
28561 cat >>confdefs.h <<\_ACEOF
28562 #define STDC_HEADERS 1
28563 _ACEOF
28564
28565 fi
28566
28567 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28568 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28569 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28570   echo $ECHO_N "(cached) $ECHO_C" >&6
28571 else
28572   cat >conftest.$ac_ext <<_ACEOF
28573 /* confdefs.h.  */
28574 _ACEOF
28575 cat confdefs.h >>conftest.$ac_ext
28576 cat >>conftest.$ac_ext <<_ACEOF
28577 /* end confdefs.h.  */
28578 #include <sys/types.h>
28579 #include <sys/wait.h>
28580 #ifndef WEXITSTATUS
28581 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28582 #endif
28583 #ifndef WIFEXITED
28584 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28585 #endif
28586
28587 int
28588 main ()
28589 {
28590   int s;
28591   wait (&s);
28592   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28593   ;
28594   return 0;
28595 }
28596 _ACEOF
28597 rm -f conftest.$ac_objext
28598 if { (ac_try="$ac_compile"
28599 case "(($ac_try" in
28600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28601   *) ac_try_echo=$ac_try;;
28602 esac
28603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28604   (eval "$ac_compile") 2>conftest.er1
28605   ac_status=$?
28606   grep -v '^ *+' conftest.er1 >conftest.err
28607   rm -f conftest.er1
28608   cat conftest.err >&5
28609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610   (exit $ac_status); } &&
28611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28612   { (case "(($ac_try" in
28613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28614   *) ac_try_echo=$ac_try;;
28615 esac
28616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28617   (eval "$ac_try") 2>&5
28618   ac_status=$?
28619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620   (exit $ac_status); }; } &&
28621          { ac_try='test -s conftest.$ac_objext'
28622   { (case "(($ac_try" in
28623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28624   *) ac_try_echo=$ac_try;;
28625 esac
28626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28627   (eval "$ac_try") 2>&5
28628   ac_status=$?
28629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630   (exit $ac_status); }; }; then
28631   ac_cv_header_sys_wait_h=yes
28632 else
28633   echo "$as_me: failed program was:" >&5
28634 sed 's/^/| /' conftest.$ac_ext >&5
28635
28636         ac_cv_header_sys_wait_h=no
28637 fi
28638
28639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28640 fi
28641 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28642 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28643 if test $ac_cv_header_sys_wait_h = yes; then
28644
28645 cat >>confdefs.h <<\_ACEOF
28646 #define HAVE_SYS_WAIT_H 1
28647 _ACEOF
28648
28649 fi
28650
28651 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28652 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28653 if test "${ac_cv_header_time+set}" = set; then
28654   echo $ECHO_N "(cached) $ECHO_C" >&6
28655 else
28656   cat >conftest.$ac_ext <<_ACEOF
28657 /* confdefs.h.  */
28658 _ACEOF
28659 cat confdefs.h >>conftest.$ac_ext
28660 cat >>conftest.$ac_ext <<_ACEOF
28661 /* end confdefs.h.  */
28662 #include <sys/types.h>
28663 #include <sys/time.h>
28664 #include <time.h>
28665
28666 int
28667 main ()
28668 {
28669 if ((struct tm *) 0)
28670 return 0;
28671   ;
28672   return 0;
28673 }
28674 _ACEOF
28675 rm -f conftest.$ac_objext
28676 if { (ac_try="$ac_compile"
28677 case "(($ac_try" in
28678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28679   *) ac_try_echo=$ac_try;;
28680 esac
28681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28682   (eval "$ac_compile") 2>conftest.er1
28683   ac_status=$?
28684   grep -v '^ *+' conftest.er1 >conftest.err
28685   rm -f conftest.er1
28686   cat conftest.err >&5
28687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688   (exit $ac_status); } &&
28689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28690   { (case "(($ac_try" in
28691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28692   *) ac_try_echo=$ac_try;;
28693 esac
28694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28695   (eval "$ac_try") 2>&5
28696   ac_status=$?
28697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28698   (exit $ac_status); }; } &&
28699          { ac_try='test -s conftest.$ac_objext'
28700   { (case "(($ac_try" in
28701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28702   *) ac_try_echo=$ac_try;;
28703 esac
28704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28705   (eval "$ac_try") 2>&5
28706   ac_status=$?
28707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708   (exit $ac_status); }; }; then
28709   ac_cv_header_time=yes
28710 else
28711   echo "$as_me: failed program was:" >&5
28712 sed 's/^/| /' conftest.$ac_ext >&5
28713
28714         ac_cv_header_time=no
28715 fi
28716
28717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28718 fi
28719 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28720 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28721 if test $ac_cv_header_time = yes; then
28722
28723 cat >>confdefs.h <<\_ACEOF
28724 #define TIME_WITH_SYS_TIME 1
28725 _ACEOF
28726
28727 fi
28728
28729
28730
28731
28732
28733
28734
28735
28736 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28737 do
28738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28740   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28743   echo $ECHO_N "(cached) $ECHO_C" >&6
28744 fi
28745 ac_res=`eval echo '${'$as_ac_Header'}'`
28746                { echo "$as_me:$LINENO: result: $ac_res" >&5
28747 echo "${ECHO_T}$ac_res" >&6; }
28748 else
28749   # Is the header compilable?
28750 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28752 cat >conftest.$ac_ext <<_ACEOF
28753 /* confdefs.h.  */
28754 _ACEOF
28755 cat confdefs.h >>conftest.$ac_ext
28756 cat >>conftest.$ac_ext <<_ACEOF
28757 /* end confdefs.h.  */
28758 $ac_includes_default
28759 #include <$ac_header>
28760 _ACEOF
28761 rm -f conftest.$ac_objext
28762 if { (ac_try="$ac_compile"
28763 case "(($ac_try" in
28764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28765   *) ac_try_echo=$ac_try;;
28766 esac
28767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28768   (eval "$ac_compile") 2>conftest.er1
28769   ac_status=$?
28770   grep -v '^ *+' conftest.er1 >conftest.err
28771   rm -f conftest.er1
28772   cat conftest.err >&5
28773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774   (exit $ac_status); } &&
28775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28776   { (case "(($ac_try" in
28777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28778   *) ac_try_echo=$ac_try;;
28779 esac
28780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28781   (eval "$ac_try") 2>&5
28782   ac_status=$?
28783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784   (exit $ac_status); }; } &&
28785          { ac_try='test -s conftest.$ac_objext'
28786   { (case "(($ac_try" in
28787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28788   *) ac_try_echo=$ac_try;;
28789 esac
28790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28791   (eval "$ac_try") 2>&5
28792   ac_status=$?
28793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794   (exit $ac_status); }; }; then
28795   ac_header_compiler=yes
28796 else
28797   echo "$as_me: failed program was:" >&5
28798 sed 's/^/| /' conftest.$ac_ext >&5
28799
28800         ac_header_compiler=no
28801 fi
28802
28803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28805 echo "${ECHO_T}$ac_header_compiler" >&6; }
28806
28807 # Is the header present?
28808 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28810 cat >conftest.$ac_ext <<_ACEOF
28811 /* confdefs.h.  */
28812 _ACEOF
28813 cat confdefs.h >>conftest.$ac_ext
28814 cat >>conftest.$ac_ext <<_ACEOF
28815 /* end confdefs.h.  */
28816 #include <$ac_header>
28817 _ACEOF
28818 if { (ac_try="$ac_cpp conftest.$ac_ext"
28819 case "(($ac_try" in
28820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28821   *) ac_try_echo=$ac_try;;
28822 esac
28823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28824   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28825   ac_status=$?
28826   grep -v '^ *+' conftest.er1 >conftest.err
28827   rm -f conftest.er1
28828   cat conftest.err >&5
28829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830   (exit $ac_status); } >/dev/null; then
28831   if test -s conftest.err; then
28832     ac_cpp_err=$ac_c_preproc_warn_flag
28833     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28834   else
28835     ac_cpp_err=
28836   fi
28837 else
28838   ac_cpp_err=yes
28839 fi
28840 if test -z "$ac_cpp_err"; then
28841   ac_header_preproc=yes
28842 else
28843   echo "$as_me: failed program was:" >&5
28844 sed 's/^/| /' conftest.$ac_ext >&5
28845
28846   ac_header_preproc=no
28847 fi
28848
28849 rm -f conftest.err conftest.$ac_ext
28850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28851 echo "${ECHO_T}$ac_header_preproc" >&6; }
28852
28853 # So?  What about this header?
28854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28855   yes:no: )
28856     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28860     ac_header_preproc=yes
28861     ;;
28862   no:yes:* )
28863     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28865     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28866 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28867     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28869     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28870 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28873     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28875     ( cat <<\_ASBOX
28876 ## ----------------------------------- ##
28877 ## Report this to llvmbugs@cs.uiuc.edu ##
28878 ## ----------------------------------- ##
28879 _ASBOX
28880      ) | sed "s/^/$as_me: WARNING:     /" >&2
28881     ;;
28882 esac
28883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28886   echo $ECHO_N "(cached) $ECHO_C" >&6
28887 else
28888   eval "$as_ac_Header=\$ac_header_preproc"
28889 fi
28890 ac_res=`eval echo '${'$as_ac_Header'}'`
28891                { echo "$as_me:$LINENO: result: $ac_res" >&5
28892 echo "${ECHO_T}$ac_res" >&6; }
28893
28894 fi
28895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28896   cat >>confdefs.h <<_ACEOF
28897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28898 _ACEOF
28899
28900 fi
28901
28902 done
28903
28904
28905
28906
28907
28908
28909
28910 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28911 do
28912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28914   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28917   echo $ECHO_N "(cached) $ECHO_C" >&6
28918 fi
28919 ac_res=`eval echo '${'$as_ac_Header'}'`
28920                { echo "$as_me:$LINENO: result: $ac_res" >&5
28921 echo "${ECHO_T}$ac_res" >&6; }
28922 else
28923   # Is the header compilable?
28924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28926 cat >conftest.$ac_ext <<_ACEOF
28927 /* confdefs.h.  */
28928 _ACEOF
28929 cat confdefs.h >>conftest.$ac_ext
28930 cat >>conftest.$ac_ext <<_ACEOF
28931 /* end confdefs.h.  */
28932 $ac_includes_default
28933 #include <$ac_header>
28934 _ACEOF
28935 rm -f conftest.$ac_objext
28936 if { (ac_try="$ac_compile"
28937 case "(($ac_try" in
28938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28939   *) ac_try_echo=$ac_try;;
28940 esac
28941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28942   (eval "$ac_compile") 2>conftest.er1
28943   ac_status=$?
28944   grep -v '^ *+' conftest.er1 >conftest.err
28945   rm -f conftest.er1
28946   cat conftest.err >&5
28947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948   (exit $ac_status); } &&
28949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28950   { (case "(($ac_try" in
28951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28952   *) ac_try_echo=$ac_try;;
28953 esac
28954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28955   (eval "$ac_try") 2>&5
28956   ac_status=$?
28957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958   (exit $ac_status); }; } &&
28959          { ac_try='test -s conftest.$ac_objext'
28960   { (case "(($ac_try" in
28961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28962   *) ac_try_echo=$ac_try;;
28963 esac
28964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28965   (eval "$ac_try") 2>&5
28966   ac_status=$?
28967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968   (exit $ac_status); }; }; then
28969   ac_header_compiler=yes
28970 else
28971   echo "$as_me: failed program was:" >&5
28972 sed 's/^/| /' conftest.$ac_ext >&5
28973
28974         ac_header_compiler=no
28975 fi
28976
28977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28978 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28979 echo "${ECHO_T}$ac_header_compiler" >&6; }
28980
28981 # Is the header present?
28982 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28984 cat >conftest.$ac_ext <<_ACEOF
28985 /* confdefs.h.  */
28986 _ACEOF
28987 cat confdefs.h >>conftest.$ac_ext
28988 cat >>conftest.$ac_ext <<_ACEOF
28989 /* end confdefs.h.  */
28990 #include <$ac_header>
28991 _ACEOF
28992 if { (ac_try="$ac_cpp conftest.$ac_ext"
28993 case "(($ac_try" in
28994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28995   *) ac_try_echo=$ac_try;;
28996 esac
28997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28999   ac_status=$?
29000   grep -v '^ *+' conftest.er1 >conftest.err
29001   rm -f conftest.er1
29002   cat conftest.err >&5
29003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004   (exit $ac_status); } >/dev/null; then
29005   if test -s conftest.err; then
29006     ac_cpp_err=$ac_c_preproc_warn_flag
29007     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29008   else
29009     ac_cpp_err=
29010   fi
29011 else
29012   ac_cpp_err=yes
29013 fi
29014 if test -z "$ac_cpp_err"; then
29015   ac_header_preproc=yes
29016 else
29017   echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29019
29020   ac_header_preproc=no
29021 fi
29022
29023 rm -f conftest.err conftest.$ac_ext
29024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29025 echo "${ECHO_T}$ac_header_preproc" >&6; }
29026
29027 # So?  What about this header?
29028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29029   yes:no: )
29030     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29034     ac_header_preproc=yes
29035     ;;
29036   no:yes:* )
29037     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29039     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29040 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29041     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29043     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29044 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29047     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29049     ( cat <<\_ASBOX
29050 ## ----------------------------------- ##
29051 ## Report this to llvmbugs@cs.uiuc.edu ##
29052 ## ----------------------------------- ##
29053 _ASBOX
29054      ) | sed "s/^/$as_me: WARNING:     /" >&2
29055     ;;
29056 esac
29057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29060   echo $ECHO_N "(cached) $ECHO_C" >&6
29061 else
29062   eval "$as_ac_Header=\$ac_header_preproc"
29063 fi
29064 ac_res=`eval echo '${'$as_ac_Header'}'`
29065                { echo "$as_me:$LINENO: result: $ac_res" >&5
29066 echo "${ECHO_T}$ac_res" >&6; }
29067
29068 fi
29069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29070   cat >>confdefs.h <<_ACEOF
29071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29072 _ACEOF
29073
29074 fi
29075
29076 done
29077
29078
29079 for ac_header in windows.h
29080 do
29081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29083   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29086   echo $ECHO_N "(cached) $ECHO_C" >&6
29087 fi
29088 ac_res=`eval echo '${'$as_ac_Header'}'`
29089                { echo "$as_me:$LINENO: result: $ac_res" >&5
29090 echo "${ECHO_T}$ac_res" >&6; }
29091 else
29092   # Is the header compilable?
29093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29095 cat >conftest.$ac_ext <<_ACEOF
29096 /* confdefs.h.  */
29097 _ACEOF
29098 cat confdefs.h >>conftest.$ac_ext
29099 cat >>conftest.$ac_ext <<_ACEOF
29100 /* end confdefs.h.  */
29101 $ac_includes_default
29102 #include <$ac_header>
29103 _ACEOF
29104 rm -f conftest.$ac_objext
29105 if { (ac_try="$ac_compile"
29106 case "(($ac_try" in
29107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29108   *) ac_try_echo=$ac_try;;
29109 esac
29110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29111   (eval "$ac_compile") 2>conftest.er1
29112   ac_status=$?
29113   grep -v '^ *+' conftest.er1 >conftest.err
29114   rm -f conftest.er1
29115   cat conftest.err >&5
29116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117   (exit $ac_status); } &&
29118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29119   { (case "(($ac_try" in
29120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29121   *) ac_try_echo=$ac_try;;
29122 esac
29123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29124   (eval "$ac_try") 2>&5
29125   ac_status=$?
29126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127   (exit $ac_status); }; } &&
29128          { ac_try='test -s conftest.$ac_objext'
29129   { (case "(($ac_try" in
29130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29131   *) ac_try_echo=$ac_try;;
29132 esac
29133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29134   (eval "$ac_try") 2>&5
29135   ac_status=$?
29136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137   (exit $ac_status); }; }; then
29138   ac_header_compiler=yes
29139 else
29140   echo "$as_me: failed program was:" >&5
29141 sed 's/^/| /' conftest.$ac_ext >&5
29142
29143         ac_header_compiler=no
29144 fi
29145
29146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29148 echo "${ECHO_T}$ac_header_compiler" >&6; }
29149
29150 # Is the header present?
29151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29153 cat >conftest.$ac_ext <<_ACEOF
29154 /* confdefs.h.  */
29155 _ACEOF
29156 cat confdefs.h >>conftest.$ac_ext
29157 cat >>conftest.$ac_ext <<_ACEOF
29158 /* end confdefs.h.  */
29159 #include <$ac_header>
29160 _ACEOF
29161 if { (ac_try="$ac_cpp conftest.$ac_ext"
29162 case "(($ac_try" in
29163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29164   *) ac_try_echo=$ac_try;;
29165 esac
29166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29167   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29168   ac_status=$?
29169   grep -v '^ *+' conftest.er1 >conftest.err
29170   rm -f conftest.er1
29171   cat conftest.err >&5
29172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173   (exit $ac_status); } >/dev/null; then
29174   if test -s conftest.err; then
29175     ac_cpp_err=$ac_c_preproc_warn_flag
29176     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29177   else
29178     ac_cpp_err=
29179   fi
29180 else
29181   ac_cpp_err=yes
29182 fi
29183 if test -z "$ac_cpp_err"; then
29184   ac_header_preproc=yes
29185 else
29186   echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.$ac_ext >&5
29188
29189   ac_header_preproc=no
29190 fi
29191
29192 rm -f conftest.err conftest.$ac_ext
29193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29194 echo "${ECHO_T}$ac_header_preproc" >&6; }
29195
29196 # So?  What about this header?
29197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29198   yes:no: )
29199     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29203     ac_header_preproc=yes
29204     ;;
29205   no:yes:* )
29206     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29208     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29209 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29210     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29212     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29213 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29216     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29218     ( cat <<\_ASBOX
29219 ## ----------------------------------- ##
29220 ## Report this to llvmbugs@cs.uiuc.edu ##
29221 ## ----------------------------------- ##
29222 _ASBOX
29223      ) | sed "s/^/$as_me: WARNING:     /" >&2
29224     ;;
29225 esac
29226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29229   echo $ECHO_N "(cached) $ECHO_C" >&6
29230 else
29231   eval "$as_ac_Header=\$ac_header_preproc"
29232 fi
29233 ac_res=`eval echo '${'$as_ac_Header'}'`
29234                { echo "$as_me:$LINENO: result: $ac_res" >&5
29235 echo "${ECHO_T}$ac_res" >&6; }
29236
29237 fi
29238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29239   cat >>confdefs.h <<_ACEOF
29240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29241 _ACEOF
29242
29243 fi
29244
29245 done
29246
29247
29248
29249
29250
29251 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29252 do
29253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29255   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29258   echo $ECHO_N "(cached) $ECHO_C" >&6
29259 fi
29260 ac_res=`eval echo '${'$as_ac_Header'}'`
29261                { echo "$as_me:$LINENO: result: $ac_res" >&5
29262 echo "${ECHO_T}$ac_res" >&6; }
29263 else
29264   # Is the header compilable?
29265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29267 cat >conftest.$ac_ext <<_ACEOF
29268 /* confdefs.h.  */
29269 _ACEOF
29270 cat confdefs.h >>conftest.$ac_ext
29271 cat >>conftest.$ac_ext <<_ACEOF
29272 /* end confdefs.h.  */
29273 $ac_includes_default
29274 #include <$ac_header>
29275 _ACEOF
29276 rm -f conftest.$ac_objext
29277 if { (ac_try="$ac_compile"
29278 case "(($ac_try" in
29279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29280   *) ac_try_echo=$ac_try;;
29281 esac
29282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29283   (eval "$ac_compile") 2>conftest.er1
29284   ac_status=$?
29285   grep -v '^ *+' conftest.er1 >conftest.err
29286   rm -f conftest.er1
29287   cat conftest.err >&5
29288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289   (exit $ac_status); } &&
29290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29291   { (case "(($ac_try" in
29292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29293   *) ac_try_echo=$ac_try;;
29294 esac
29295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29296   (eval "$ac_try") 2>&5
29297   ac_status=$?
29298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299   (exit $ac_status); }; } &&
29300          { ac_try='test -s conftest.$ac_objext'
29301   { (case "(($ac_try" in
29302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29303   *) ac_try_echo=$ac_try;;
29304 esac
29305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29306   (eval "$ac_try") 2>&5
29307   ac_status=$?
29308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309   (exit $ac_status); }; }; then
29310   ac_header_compiler=yes
29311 else
29312   echo "$as_me: failed program was:" >&5
29313 sed 's/^/| /' conftest.$ac_ext >&5
29314
29315         ac_header_compiler=no
29316 fi
29317
29318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29320 echo "${ECHO_T}$ac_header_compiler" >&6; }
29321
29322 # Is the header present?
29323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29325 cat >conftest.$ac_ext <<_ACEOF
29326 /* confdefs.h.  */
29327 _ACEOF
29328 cat confdefs.h >>conftest.$ac_ext
29329 cat >>conftest.$ac_ext <<_ACEOF
29330 /* end confdefs.h.  */
29331 #include <$ac_header>
29332 _ACEOF
29333 if { (ac_try="$ac_cpp conftest.$ac_ext"
29334 case "(($ac_try" in
29335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29336   *) ac_try_echo=$ac_try;;
29337 esac
29338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29339   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29340   ac_status=$?
29341   grep -v '^ *+' conftest.er1 >conftest.err
29342   rm -f conftest.er1
29343   cat conftest.err >&5
29344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345   (exit $ac_status); } >/dev/null; then
29346   if test -s conftest.err; then
29347     ac_cpp_err=$ac_c_preproc_warn_flag
29348     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29349   else
29350     ac_cpp_err=
29351   fi
29352 else
29353   ac_cpp_err=yes
29354 fi
29355 if test -z "$ac_cpp_err"; then
29356   ac_header_preproc=yes
29357 else
29358   echo "$as_me: failed program was:" >&5
29359 sed 's/^/| /' conftest.$ac_ext >&5
29360
29361   ac_header_preproc=no
29362 fi
29363
29364 rm -f conftest.err conftest.$ac_ext
29365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29366 echo "${ECHO_T}$ac_header_preproc" >&6; }
29367
29368 # So?  What about this header?
29369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29370   yes:no: )
29371     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29373     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29375     ac_header_preproc=yes
29376     ;;
29377   no:yes:* )
29378     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29380     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29381 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29382     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29384     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29385 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29388     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29390     ( cat <<\_ASBOX
29391 ## ----------------------------------- ##
29392 ## Report this to llvmbugs@cs.uiuc.edu ##
29393 ## ----------------------------------- ##
29394 _ASBOX
29395      ) | sed "s/^/$as_me: WARNING:     /" >&2
29396     ;;
29397 esac
29398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29401   echo $ECHO_N "(cached) $ECHO_C" >&6
29402 else
29403   eval "$as_ac_Header=\$ac_header_preproc"
29404 fi
29405 ac_res=`eval echo '${'$as_ac_Header'}'`
29406                { echo "$as_me:$LINENO: result: $ac_res" >&5
29407 echo "${ECHO_T}$ac_res" >&6; }
29408
29409 fi
29410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29411   cat >>confdefs.h <<_ACEOF
29412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29413 _ACEOF
29414
29415 fi
29416
29417 done
29418
29419
29420
29421
29422 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29423 do
29424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29426   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29429   echo $ECHO_N "(cached) $ECHO_C" >&6
29430 fi
29431 ac_res=`eval echo '${'$as_ac_Header'}'`
29432                { echo "$as_me:$LINENO: result: $ac_res" >&5
29433 echo "${ECHO_T}$ac_res" >&6; }
29434 else
29435   # Is the header compilable?
29436 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29438 cat >conftest.$ac_ext <<_ACEOF
29439 /* confdefs.h.  */
29440 _ACEOF
29441 cat confdefs.h >>conftest.$ac_ext
29442 cat >>conftest.$ac_ext <<_ACEOF
29443 /* end confdefs.h.  */
29444 $ac_includes_default
29445 #include <$ac_header>
29446 _ACEOF
29447 rm -f conftest.$ac_objext
29448 if { (ac_try="$ac_compile"
29449 case "(($ac_try" in
29450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29451   *) ac_try_echo=$ac_try;;
29452 esac
29453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29454   (eval "$ac_compile") 2>conftest.er1
29455   ac_status=$?
29456   grep -v '^ *+' conftest.er1 >conftest.err
29457   rm -f conftest.er1
29458   cat conftest.err >&5
29459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460   (exit $ac_status); } &&
29461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29462   { (case "(($ac_try" in
29463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29464   *) ac_try_echo=$ac_try;;
29465 esac
29466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29467   (eval "$ac_try") 2>&5
29468   ac_status=$?
29469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470   (exit $ac_status); }; } &&
29471          { ac_try='test -s conftest.$ac_objext'
29472   { (case "(($ac_try" in
29473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29474   *) ac_try_echo=$ac_try;;
29475 esac
29476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29477   (eval "$ac_try") 2>&5
29478   ac_status=$?
29479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480   (exit $ac_status); }; }; then
29481   ac_header_compiler=yes
29482 else
29483   echo "$as_me: failed program was:" >&5
29484 sed 's/^/| /' conftest.$ac_ext >&5
29485
29486         ac_header_compiler=no
29487 fi
29488
29489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29491 echo "${ECHO_T}$ac_header_compiler" >&6; }
29492
29493 # Is the header present?
29494 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29496 cat >conftest.$ac_ext <<_ACEOF
29497 /* confdefs.h.  */
29498 _ACEOF
29499 cat confdefs.h >>conftest.$ac_ext
29500 cat >>conftest.$ac_ext <<_ACEOF
29501 /* end confdefs.h.  */
29502 #include <$ac_header>
29503 _ACEOF
29504 if { (ac_try="$ac_cpp conftest.$ac_ext"
29505 case "(($ac_try" in
29506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29507   *) ac_try_echo=$ac_try;;
29508 esac
29509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29510   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29511   ac_status=$?
29512   grep -v '^ *+' conftest.er1 >conftest.err
29513   rm -f conftest.er1
29514   cat conftest.err >&5
29515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516   (exit $ac_status); } >/dev/null; then
29517   if test -s conftest.err; then
29518     ac_cpp_err=$ac_c_preproc_warn_flag
29519     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29520   else
29521     ac_cpp_err=
29522   fi
29523 else
29524   ac_cpp_err=yes
29525 fi
29526 if test -z "$ac_cpp_err"; then
29527   ac_header_preproc=yes
29528 else
29529   echo "$as_me: failed program was:" >&5
29530 sed 's/^/| /' conftest.$ac_ext >&5
29531
29532   ac_header_preproc=no
29533 fi
29534
29535 rm -f conftest.err conftest.$ac_ext
29536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29537 echo "${ECHO_T}$ac_header_preproc" >&6; }
29538
29539 # So?  What about this header?
29540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29541   yes:no: )
29542     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29544     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29546     ac_header_preproc=yes
29547     ;;
29548   no:yes:* )
29549     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29551     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29552 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29553     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29555     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29556 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29559     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29561     ( cat <<\_ASBOX
29562 ## ----------------------------------- ##
29563 ## Report this to llvmbugs@cs.uiuc.edu ##
29564 ## ----------------------------------- ##
29565 _ASBOX
29566      ) | sed "s/^/$as_me: WARNING:     /" >&2
29567     ;;
29568 esac
29569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29572   echo $ECHO_N "(cached) $ECHO_C" >&6
29573 else
29574   eval "$as_ac_Header=\$ac_header_preproc"
29575 fi
29576 ac_res=`eval echo '${'$as_ac_Header'}'`
29577                { echo "$as_me:$LINENO: result: $ac_res" >&5
29578 echo "${ECHO_T}$ac_res" >&6; }
29579
29580 fi
29581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29582   cat >>confdefs.h <<_ACEOF
29583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29584 _ACEOF
29585
29586 fi
29587
29588 done
29589
29590 if test "$ENABLE_THREADS" -eq 1 ; then
29591
29592 for ac_header in pthread.h
29593 do
29594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29596   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29599   echo $ECHO_N "(cached) $ECHO_C" >&6
29600 fi
29601 ac_res=`eval echo '${'$as_ac_Header'}'`
29602                { echo "$as_me:$LINENO: result: $ac_res" >&5
29603 echo "${ECHO_T}$ac_res" >&6; }
29604 else
29605   # Is the header compilable?
29606 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29608 cat >conftest.$ac_ext <<_ACEOF
29609 /* confdefs.h.  */
29610 _ACEOF
29611 cat confdefs.h >>conftest.$ac_ext
29612 cat >>conftest.$ac_ext <<_ACEOF
29613 /* end confdefs.h.  */
29614 $ac_includes_default
29615 #include <$ac_header>
29616 _ACEOF
29617 rm -f conftest.$ac_objext
29618 if { (ac_try="$ac_compile"
29619 case "(($ac_try" in
29620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29621   *) ac_try_echo=$ac_try;;
29622 esac
29623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29624   (eval "$ac_compile") 2>conftest.er1
29625   ac_status=$?
29626   grep -v '^ *+' conftest.er1 >conftest.err
29627   rm -f conftest.er1
29628   cat conftest.err >&5
29629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630   (exit $ac_status); } &&
29631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29632   { (case "(($ac_try" in
29633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29634   *) ac_try_echo=$ac_try;;
29635 esac
29636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29637   (eval "$ac_try") 2>&5
29638   ac_status=$?
29639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640   (exit $ac_status); }; } &&
29641          { ac_try='test -s conftest.$ac_objext'
29642   { (case "(($ac_try" in
29643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29644   *) ac_try_echo=$ac_try;;
29645 esac
29646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29647   (eval "$ac_try") 2>&5
29648   ac_status=$?
29649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650   (exit $ac_status); }; }; then
29651   ac_header_compiler=yes
29652 else
29653   echo "$as_me: failed program was:" >&5
29654 sed 's/^/| /' conftest.$ac_ext >&5
29655
29656         ac_header_compiler=no
29657 fi
29658
29659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29661 echo "${ECHO_T}$ac_header_compiler" >&6; }
29662
29663 # Is the header present?
29664 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29666 cat >conftest.$ac_ext <<_ACEOF
29667 /* confdefs.h.  */
29668 _ACEOF
29669 cat confdefs.h >>conftest.$ac_ext
29670 cat >>conftest.$ac_ext <<_ACEOF
29671 /* end confdefs.h.  */
29672 #include <$ac_header>
29673 _ACEOF
29674 if { (ac_try="$ac_cpp conftest.$ac_ext"
29675 case "(($ac_try" in
29676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29677   *) ac_try_echo=$ac_try;;
29678 esac
29679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29681   ac_status=$?
29682   grep -v '^ *+' conftest.er1 >conftest.err
29683   rm -f conftest.er1
29684   cat conftest.err >&5
29685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686   (exit $ac_status); } >/dev/null; then
29687   if test -s conftest.err; then
29688     ac_cpp_err=$ac_c_preproc_warn_flag
29689     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29690   else
29691     ac_cpp_err=
29692   fi
29693 else
29694   ac_cpp_err=yes
29695 fi
29696 if test -z "$ac_cpp_err"; then
29697   ac_header_preproc=yes
29698 else
29699   echo "$as_me: failed program was:" >&5
29700 sed 's/^/| /' conftest.$ac_ext >&5
29701
29702   ac_header_preproc=no
29703 fi
29704
29705 rm -f conftest.err conftest.$ac_ext
29706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29707 echo "${ECHO_T}$ac_header_preproc" >&6; }
29708
29709 # So?  What about this header?
29710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29711   yes:no: )
29712     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29714     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29716     ac_header_preproc=yes
29717     ;;
29718   no:yes:* )
29719     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29721     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29722 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29723     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29725     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29726 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29729     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29731     ( cat <<\_ASBOX
29732 ## ----------------------------------- ##
29733 ## Report this to llvmbugs@cs.uiuc.edu ##
29734 ## ----------------------------------- ##
29735 _ASBOX
29736      ) | sed "s/^/$as_me: WARNING:     /" >&2
29737     ;;
29738 esac
29739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29742   echo $ECHO_N "(cached) $ECHO_C" >&6
29743 else
29744   eval "$as_ac_Header=\$ac_header_preproc"
29745 fi
29746 ac_res=`eval echo '${'$as_ac_Header'}'`
29747                { echo "$as_me:$LINENO: result: $ac_res" >&5
29748 echo "${ECHO_T}$ac_res" >&6; }
29749
29750 fi
29751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29752   cat >>confdefs.h <<_ACEOF
29753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29754 _ACEOF
29755  HAVE_PTHREAD=1
29756
29757 else
29758   HAVE_PTHREAD=0
29759
29760 fi
29761
29762 done
29763
29764 else
29765   HAVE_PTHREAD=0
29766
29767 fi
29768
29769
29770
29771   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29772 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29773 if test "${ac_cv_huge_val_sanity+set}" = set; then
29774   echo $ECHO_N "(cached) $ECHO_C" >&6
29775 else
29776
29777     ac_ext=cpp
29778 ac_cpp='$CXXCPP $CPPFLAGS'
29779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29782
29783     CXXFLAGS=-pedantic
29784     if test "$cross_compiling" = yes; then
29785   ac_cv_huge_val_sanity=yes
29786 else
29787   cat >conftest.$ac_ext <<_ACEOF
29788 /* confdefs.h.  */
29789 _ACEOF
29790 cat confdefs.h >>conftest.$ac_ext
29791 cat >>conftest.$ac_ext <<_ACEOF
29792 /* end confdefs.h.  */
29793 #include <math.h>
29794 int
29795 main ()
29796 {
29797 double x = HUGE_VAL; return x != x;
29798   ;
29799   return 0;
29800 }
29801 _ACEOF
29802 rm -f conftest$ac_exeext
29803 if { (ac_try="$ac_link"
29804 case "(($ac_try" in
29805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29806   *) ac_try_echo=$ac_try;;
29807 esac
29808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29809   (eval "$ac_link") 2>&5
29810   ac_status=$?
29811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29813   { (case "(($ac_try" in
29814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29815   *) ac_try_echo=$ac_try;;
29816 esac
29817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29818   (eval "$ac_try") 2>&5
29819   ac_status=$?
29820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821   (exit $ac_status); }; }; then
29822   ac_cv_huge_val_sanity=yes
29823 else
29824   echo "$as_me: program exited with status $ac_status" >&5
29825 echo "$as_me: failed program was:" >&5
29826 sed 's/^/| /' conftest.$ac_ext >&5
29827
29828 ( exit $ac_status )
29829 ac_cv_huge_val_sanity=no
29830 fi
29831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29832 fi
29833
29834
29835     ac_ext=c
29836 ac_cpp='$CPP $CPPFLAGS'
29837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29840
29841
29842 fi
29843 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29844 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29845   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29846
29847
29848 { echo "$as_me:$LINENO: checking for pid_t" >&5
29849 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29850 if test "${ac_cv_type_pid_t+set}" = set; then
29851   echo $ECHO_N "(cached) $ECHO_C" >&6
29852 else
29853   cat >conftest.$ac_ext <<_ACEOF
29854 /* confdefs.h.  */
29855 _ACEOF
29856 cat confdefs.h >>conftest.$ac_ext
29857 cat >>conftest.$ac_ext <<_ACEOF
29858 /* end confdefs.h.  */
29859 $ac_includes_default
29860 typedef pid_t ac__type_new_;
29861 int
29862 main ()
29863 {
29864 if ((ac__type_new_ *) 0)
29865   return 0;
29866 if (sizeof (ac__type_new_))
29867   return 0;
29868   ;
29869   return 0;
29870 }
29871 _ACEOF
29872 rm -f conftest.$ac_objext
29873 if { (ac_try="$ac_compile"
29874 case "(($ac_try" in
29875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29876   *) ac_try_echo=$ac_try;;
29877 esac
29878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29879   (eval "$ac_compile") 2>conftest.er1
29880   ac_status=$?
29881   grep -v '^ *+' conftest.er1 >conftest.err
29882   rm -f conftest.er1
29883   cat conftest.err >&5
29884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885   (exit $ac_status); } &&
29886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29887   { (case "(($ac_try" in
29888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29889   *) ac_try_echo=$ac_try;;
29890 esac
29891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29892   (eval "$ac_try") 2>&5
29893   ac_status=$?
29894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895   (exit $ac_status); }; } &&
29896          { ac_try='test -s conftest.$ac_objext'
29897   { (case "(($ac_try" in
29898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29899   *) ac_try_echo=$ac_try;;
29900 esac
29901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29902   (eval "$ac_try") 2>&5
29903   ac_status=$?
29904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29905   (exit $ac_status); }; }; then
29906   ac_cv_type_pid_t=yes
29907 else
29908   echo "$as_me: failed program was:" >&5
29909 sed 's/^/| /' conftest.$ac_ext >&5
29910
29911         ac_cv_type_pid_t=no
29912 fi
29913
29914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29915 fi
29916 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29917 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29918 if test $ac_cv_type_pid_t = yes; then
29919   :
29920 else
29921
29922 cat >>confdefs.h <<_ACEOF
29923 #define pid_t int
29924 _ACEOF
29925
29926 fi
29927
29928 { echo "$as_me:$LINENO: checking for size_t" >&5
29929 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29930 if test "${ac_cv_type_size_t+set}" = set; then
29931   echo $ECHO_N "(cached) $ECHO_C" >&6
29932 else
29933   cat >conftest.$ac_ext <<_ACEOF
29934 /* confdefs.h.  */
29935 _ACEOF
29936 cat confdefs.h >>conftest.$ac_ext
29937 cat >>conftest.$ac_ext <<_ACEOF
29938 /* end confdefs.h.  */
29939 $ac_includes_default
29940 typedef size_t ac__type_new_;
29941 int
29942 main ()
29943 {
29944 if ((ac__type_new_ *) 0)
29945   return 0;
29946 if (sizeof (ac__type_new_))
29947   return 0;
29948   ;
29949   return 0;
29950 }
29951 _ACEOF
29952 rm -f conftest.$ac_objext
29953 if { (ac_try="$ac_compile"
29954 case "(($ac_try" in
29955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29956   *) ac_try_echo=$ac_try;;
29957 esac
29958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29959   (eval "$ac_compile") 2>conftest.er1
29960   ac_status=$?
29961   grep -v '^ *+' conftest.er1 >conftest.err
29962   rm -f conftest.er1
29963   cat conftest.err >&5
29964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965   (exit $ac_status); } &&
29966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29967   { (case "(($ac_try" in
29968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29969   *) ac_try_echo=$ac_try;;
29970 esac
29971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29972   (eval "$ac_try") 2>&5
29973   ac_status=$?
29974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975   (exit $ac_status); }; } &&
29976          { ac_try='test -s conftest.$ac_objext'
29977   { (case "(($ac_try" in
29978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29979   *) ac_try_echo=$ac_try;;
29980 esac
29981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29982   (eval "$ac_try") 2>&5
29983   ac_status=$?
29984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985   (exit $ac_status); }; }; then
29986   ac_cv_type_size_t=yes
29987 else
29988   echo "$as_me: failed program was:" >&5
29989 sed 's/^/| /' conftest.$ac_ext >&5
29990
29991         ac_cv_type_size_t=no
29992 fi
29993
29994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29995 fi
29996 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29997 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29998 if test $ac_cv_type_size_t = yes; then
29999   :
30000 else
30001
30002 cat >>confdefs.h <<_ACEOF
30003 #define size_t unsigned int
30004 _ACEOF
30005
30006 fi
30007
30008 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30009 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30010 if test "${ac_cv_type_signal+set}" = set; then
30011   echo $ECHO_N "(cached) $ECHO_C" >&6
30012 else
30013   cat >conftest.$ac_ext <<_ACEOF
30014 /* confdefs.h.  */
30015 _ACEOF
30016 cat confdefs.h >>conftest.$ac_ext
30017 cat >>conftest.$ac_ext <<_ACEOF
30018 /* end confdefs.h.  */
30019 #include <sys/types.h>
30020 #include <signal.h>
30021
30022 int
30023 main ()
30024 {
30025 return *(signal (0, 0)) (0) == 1;
30026   ;
30027   return 0;
30028 }
30029 _ACEOF
30030 rm -f conftest.$ac_objext
30031 if { (ac_try="$ac_compile"
30032 case "(($ac_try" in
30033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30034   *) ac_try_echo=$ac_try;;
30035 esac
30036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30037   (eval "$ac_compile") 2>conftest.er1
30038   ac_status=$?
30039   grep -v '^ *+' conftest.er1 >conftest.err
30040   rm -f conftest.er1
30041   cat conftest.err >&5
30042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30043   (exit $ac_status); } &&
30044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30045   { (case "(($ac_try" in
30046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30047   *) ac_try_echo=$ac_try;;
30048 esac
30049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30050   (eval "$ac_try") 2>&5
30051   ac_status=$?
30052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053   (exit $ac_status); }; } &&
30054          { ac_try='test -s conftest.$ac_objext'
30055   { (case "(($ac_try" in
30056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30057   *) ac_try_echo=$ac_try;;
30058 esac
30059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30060   (eval "$ac_try") 2>&5
30061   ac_status=$?
30062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063   (exit $ac_status); }; }; then
30064   ac_cv_type_signal=int
30065 else
30066   echo "$as_me: failed program was:" >&5
30067 sed 's/^/| /' conftest.$ac_ext >&5
30068
30069         ac_cv_type_signal=void
30070 fi
30071
30072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30073 fi
30074 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30075 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30076
30077 cat >>confdefs.h <<_ACEOF
30078 #define RETSIGTYPE $ac_cv_type_signal
30079 _ACEOF
30080
30081
30082 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30083 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30084 if test "${ac_cv_struct_tm+set}" = set; then
30085   echo $ECHO_N "(cached) $ECHO_C" >&6
30086 else
30087   cat >conftest.$ac_ext <<_ACEOF
30088 /* confdefs.h.  */
30089 _ACEOF
30090 cat confdefs.h >>conftest.$ac_ext
30091 cat >>conftest.$ac_ext <<_ACEOF
30092 /* end confdefs.h.  */
30093 #include <sys/types.h>
30094 #include <time.h>
30095
30096 int
30097 main ()
30098 {
30099 struct tm *tp; tp->tm_sec;
30100   ;
30101   return 0;
30102 }
30103 _ACEOF
30104 rm -f conftest.$ac_objext
30105 if { (ac_try="$ac_compile"
30106 case "(($ac_try" in
30107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30108   *) ac_try_echo=$ac_try;;
30109 esac
30110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30111   (eval "$ac_compile") 2>conftest.er1
30112   ac_status=$?
30113   grep -v '^ *+' conftest.er1 >conftest.err
30114   rm -f conftest.er1
30115   cat conftest.err >&5
30116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30117   (exit $ac_status); } &&
30118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30119   { (case "(($ac_try" in
30120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30121   *) ac_try_echo=$ac_try;;
30122 esac
30123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30124   (eval "$ac_try") 2>&5
30125   ac_status=$?
30126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127   (exit $ac_status); }; } &&
30128          { ac_try='test -s conftest.$ac_objext'
30129   { (case "(($ac_try" in
30130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30131   *) ac_try_echo=$ac_try;;
30132 esac
30133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30134   (eval "$ac_try") 2>&5
30135   ac_status=$?
30136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137   (exit $ac_status); }; }; then
30138   ac_cv_struct_tm=time.h
30139 else
30140   echo "$as_me: failed program was:" >&5
30141 sed 's/^/| /' conftest.$ac_ext >&5
30142
30143         ac_cv_struct_tm=sys/time.h
30144 fi
30145
30146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30147 fi
30148 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30149 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30150 if test $ac_cv_struct_tm = sys/time.h; then
30151
30152 cat >>confdefs.h <<\_ACEOF
30153 #define TM_IN_SYS_TIME 1
30154 _ACEOF
30155
30156 fi
30157
30158 { echo "$as_me:$LINENO: checking for int64_t" >&5
30159 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30160 if test "${ac_cv_type_int64_t+set}" = set; then
30161   echo $ECHO_N "(cached) $ECHO_C" >&6
30162 else
30163   cat >conftest.$ac_ext <<_ACEOF
30164 /* confdefs.h.  */
30165 _ACEOF
30166 cat confdefs.h >>conftest.$ac_ext
30167 cat >>conftest.$ac_ext <<_ACEOF
30168 /* end confdefs.h.  */
30169 $ac_includes_default
30170 typedef int64_t ac__type_new_;
30171 int
30172 main ()
30173 {
30174 if ((ac__type_new_ *) 0)
30175   return 0;
30176 if (sizeof (ac__type_new_))
30177   return 0;
30178   ;
30179   return 0;
30180 }
30181 _ACEOF
30182 rm -f conftest.$ac_objext
30183 if { (ac_try="$ac_compile"
30184 case "(($ac_try" in
30185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30186   *) ac_try_echo=$ac_try;;
30187 esac
30188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30189   (eval "$ac_compile") 2>conftest.er1
30190   ac_status=$?
30191   grep -v '^ *+' conftest.er1 >conftest.err
30192   rm -f conftest.er1
30193   cat conftest.err >&5
30194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195   (exit $ac_status); } &&
30196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30197   { (case "(($ac_try" in
30198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30199   *) ac_try_echo=$ac_try;;
30200 esac
30201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30202   (eval "$ac_try") 2>&5
30203   ac_status=$?
30204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205   (exit $ac_status); }; } &&
30206          { ac_try='test -s conftest.$ac_objext'
30207   { (case "(($ac_try" in
30208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30209   *) ac_try_echo=$ac_try;;
30210 esac
30211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30212   (eval "$ac_try") 2>&5
30213   ac_status=$?
30214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215   (exit $ac_status); }; }; then
30216   ac_cv_type_int64_t=yes
30217 else
30218   echo "$as_me: failed program was:" >&5
30219 sed 's/^/| /' conftest.$ac_ext >&5
30220
30221         ac_cv_type_int64_t=no
30222 fi
30223
30224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30225 fi
30226 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30227 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30228 if test $ac_cv_type_int64_t = yes; then
30229
30230 cat >>confdefs.h <<_ACEOF
30231 #define HAVE_INT64_T 1
30232 _ACEOF
30233
30234
30235 else
30236   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30237 echo "$as_me: error: Type int64_t required but not found" >&2;}
30238    { (exit 1); exit 1; }; }
30239 fi
30240
30241 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30242 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30243 if test "${ac_cv_type_uint64_t+set}" = set; then
30244   echo $ECHO_N "(cached) $ECHO_C" >&6
30245 else
30246   cat >conftest.$ac_ext <<_ACEOF
30247 /* confdefs.h.  */
30248 _ACEOF
30249 cat confdefs.h >>conftest.$ac_ext
30250 cat >>conftest.$ac_ext <<_ACEOF
30251 /* end confdefs.h.  */
30252 $ac_includes_default
30253 typedef uint64_t ac__type_new_;
30254 int
30255 main ()
30256 {
30257 if ((ac__type_new_ *) 0)
30258   return 0;
30259 if (sizeof (ac__type_new_))
30260   return 0;
30261   ;
30262   return 0;
30263 }
30264 _ACEOF
30265 rm -f conftest.$ac_objext
30266 if { (ac_try="$ac_compile"
30267 case "(($ac_try" in
30268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30269   *) ac_try_echo=$ac_try;;
30270 esac
30271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30272   (eval "$ac_compile") 2>conftest.er1
30273   ac_status=$?
30274   grep -v '^ *+' conftest.er1 >conftest.err
30275   rm -f conftest.er1
30276   cat conftest.err >&5
30277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278   (exit $ac_status); } &&
30279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30280   { (case "(($ac_try" in
30281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30282   *) ac_try_echo=$ac_try;;
30283 esac
30284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30285   (eval "$ac_try") 2>&5
30286   ac_status=$?
30287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288   (exit $ac_status); }; } &&
30289          { ac_try='test -s conftest.$ac_objext'
30290   { (case "(($ac_try" in
30291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30292   *) ac_try_echo=$ac_try;;
30293 esac
30294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30295   (eval "$ac_try") 2>&5
30296   ac_status=$?
30297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30298   (exit $ac_status); }; }; then
30299   ac_cv_type_uint64_t=yes
30300 else
30301   echo "$as_me: failed program was:" >&5
30302 sed 's/^/| /' conftest.$ac_ext >&5
30303
30304         ac_cv_type_uint64_t=no
30305 fi
30306
30307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30308 fi
30309 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30310 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30311 if test $ac_cv_type_uint64_t = yes; then
30312
30313 cat >>confdefs.h <<_ACEOF
30314 #define HAVE_UINT64_T 1
30315 _ACEOF
30316
30317
30318 else
30319   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30320 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30321 if test "${ac_cv_type_u_int64_t+set}" = set; then
30322   echo $ECHO_N "(cached) $ECHO_C" >&6
30323 else
30324   cat >conftest.$ac_ext <<_ACEOF
30325 /* confdefs.h.  */
30326 _ACEOF
30327 cat confdefs.h >>conftest.$ac_ext
30328 cat >>conftest.$ac_ext <<_ACEOF
30329 /* end confdefs.h.  */
30330 $ac_includes_default
30331 typedef u_int64_t ac__type_new_;
30332 int
30333 main ()
30334 {
30335 if ((ac__type_new_ *) 0)
30336   return 0;
30337 if (sizeof (ac__type_new_))
30338   return 0;
30339   ;
30340   return 0;
30341 }
30342 _ACEOF
30343 rm -f conftest.$ac_objext
30344 if { (ac_try="$ac_compile"
30345 case "(($ac_try" in
30346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30347   *) ac_try_echo=$ac_try;;
30348 esac
30349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30350   (eval "$ac_compile") 2>conftest.er1
30351   ac_status=$?
30352   grep -v '^ *+' conftest.er1 >conftest.err
30353   rm -f conftest.er1
30354   cat conftest.err >&5
30355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356   (exit $ac_status); } &&
30357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30358   { (case "(($ac_try" in
30359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30360   *) ac_try_echo=$ac_try;;
30361 esac
30362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30363   (eval "$ac_try") 2>&5
30364   ac_status=$?
30365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366   (exit $ac_status); }; } &&
30367          { ac_try='test -s conftest.$ac_objext'
30368   { (case "(($ac_try" in
30369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30370   *) ac_try_echo=$ac_try;;
30371 esac
30372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30373   (eval "$ac_try") 2>&5
30374   ac_status=$?
30375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376   (exit $ac_status); }; }; then
30377   ac_cv_type_u_int64_t=yes
30378 else
30379   echo "$as_me: failed program was:" >&5
30380 sed 's/^/| /' conftest.$ac_ext >&5
30381
30382         ac_cv_type_u_int64_t=no
30383 fi
30384
30385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30386 fi
30387 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30388 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30389 if test $ac_cv_type_u_int64_t = yes; then
30390
30391 cat >>confdefs.h <<_ACEOF
30392 #define HAVE_U_INT64_T 1
30393 _ACEOF
30394
30395
30396 else
30397   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30398 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30399    { (exit 1); exit 1; }; }
30400 fi
30401
30402 fi
30403
30404
30405
30406
30407
30408
30409
30410
30411
30412
30413 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30414 do
30415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30419   echo $ECHO_N "(cached) $ECHO_C" >&6
30420 else
30421   cat >conftest.$ac_ext <<_ACEOF
30422 /* confdefs.h.  */
30423 _ACEOF
30424 cat confdefs.h >>conftest.$ac_ext
30425 cat >>conftest.$ac_ext <<_ACEOF
30426 /* end confdefs.h.  */
30427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30429 #define $ac_func innocuous_$ac_func
30430
30431 /* System header to define __stub macros and hopefully few prototypes,
30432     which can conflict with char $ac_func (); below.
30433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30434     <limits.h> exists even on freestanding compilers.  */
30435
30436 #ifdef __STDC__
30437 # include <limits.h>
30438 #else
30439 # include <assert.h>
30440 #endif
30441
30442 #undef $ac_func
30443
30444 /* Override any GCC internal prototype to avoid an error.
30445    Use char because int might match the return type of a GCC
30446    builtin and then its argument prototype would still apply.  */
30447 #ifdef __cplusplus
30448 extern "C"
30449 #endif
30450 char $ac_func ();
30451 /* The GNU C library defines this for functions which it implements
30452     to always fail with ENOSYS.  Some functions are actually named
30453     something starting with __ and the normal name is an alias.  */
30454 #if defined __stub_$ac_func || defined __stub___$ac_func
30455 choke me
30456 #endif
30457
30458 int
30459 main ()
30460 {
30461 return $ac_func ();
30462   ;
30463   return 0;
30464 }
30465 _ACEOF
30466 rm -f conftest.$ac_objext conftest$ac_exeext
30467 if { (ac_try="$ac_link"
30468 case "(($ac_try" in
30469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30470   *) ac_try_echo=$ac_try;;
30471 esac
30472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30473   (eval "$ac_link") 2>conftest.er1
30474   ac_status=$?
30475   grep -v '^ *+' conftest.er1 >conftest.err
30476   rm -f conftest.er1
30477   cat conftest.err >&5
30478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479   (exit $ac_status); } &&
30480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30481   { (case "(($ac_try" in
30482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483   *) ac_try_echo=$ac_try;;
30484 esac
30485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30486   (eval "$ac_try") 2>&5
30487   ac_status=$?
30488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489   (exit $ac_status); }; } &&
30490          { ac_try='test -s conftest$ac_exeext'
30491   { (case "(($ac_try" in
30492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493   *) ac_try_echo=$ac_try;;
30494 esac
30495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496   (eval "$ac_try") 2>&5
30497   ac_status=$?
30498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499   (exit $ac_status); }; }; then
30500   eval "$as_ac_var=yes"
30501 else
30502   echo "$as_me: failed program was:" >&5
30503 sed 's/^/| /' conftest.$ac_ext >&5
30504
30505         eval "$as_ac_var=no"
30506 fi
30507
30508 rm -f core conftest.err conftest.$ac_objext \
30509       conftest$ac_exeext conftest.$ac_ext
30510 fi
30511 ac_res=`eval echo '${'$as_ac_var'}'`
30512                { echo "$as_me:$LINENO: result: $ac_res" >&5
30513 echo "${ECHO_T}$ac_res" >&6; }
30514 if test `eval echo '${'$as_ac_var'}'` = yes; then
30515   cat >>confdefs.h <<_ACEOF
30516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30517 _ACEOF
30518
30519 fi
30520 done
30521
30522
30523
30524
30525
30526 for ac_func in powf fmodf strtof round
30527 do
30528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30529 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30532   echo $ECHO_N "(cached) $ECHO_C" >&6
30533 else
30534   cat >conftest.$ac_ext <<_ACEOF
30535 /* confdefs.h.  */
30536 _ACEOF
30537 cat confdefs.h >>conftest.$ac_ext
30538 cat >>conftest.$ac_ext <<_ACEOF
30539 /* end confdefs.h.  */
30540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30542 #define $ac_func innocuous_$ac_func
30543
30544 /* System header to define __stub macros and hopefully few prototypes,
30545     which can conflict with char $ac_func (); below.
30546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30547     <limits.h> exists even on freestanding compilers.  */
30548
30549 #ifdef __STDC__
30550 # include <limits.h>
30551 #else
30552 # include <assert.h>
30553 #endif
30554
30555 #undef $ac_func
30556
30557 /* Override any GCC internal prototype to avoid an error.
30558    Use char because int might match the return type of a GCC
30559    builtin and then its argument prototype would still apply.  */
30560 #ifdef __cplusplus
30561 extern "C"
30562 #endif
30563 char $ac_func ();
30564 /* The GNU C library defines this for functions which it implements
30565     to always fail with ENOSYS.  Some functions are actually named
30566     something starting with __ and the normal name is an alias.  */
30567 #if defined __stub_$ac_func || defined __stub___$ac_func
30568 choke me
30569 #endif
30570
30571 int
30572 main ()
30573 {
30574 return $ac_func ();
30575   ;
30576   return 0;
30577 }
30578 _ACEOF
30579 rm -f conftest.$ac_objext conftest$ac_exeext
30580 if { (ac_try="$ac_link"
30581 case "(($ac_try" in
30582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30583   *) ac_try_echo=$ac_try;;
30584 esac
30585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30586   (eval "$ac_link") 2>conftest.er1
30587   ac_status=$?
30588   grep -v '^ *+' conftest.er1 >conftest.err
30589   rm -f conftest.er1
30590   cat conftest.err >&5
30591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592   (exit $ac_status); } &&
30593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30594   { (case "(($ac_try" in
30595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30596   *) ac_try_echo=$ac_try;;
30597 esac
30598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30599   (eval "$ac_try") 2>&5
30600   ac_status=$?
30601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602   (exit $ac_status); }; } &&
30603          { ac_try='test -s conftest$ac_exeext'
30604   { (case "(($ac_try" in
30605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30606   *) ac_try_echo=$ac_try;;
30607 esac
30608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30609   (eval "$ac_try") 2>&5
30610   ac_status=$?
30611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612   (exit $ac_status); }; }; then
30613   eval "$as_ac_var=yes"
30614 else
30615   echo "$as_me: failed program was:" >&5
30616 sed 's/^/| /' conftest.$ac_ext >&5
30617
30618         eval "$as_ac_var=no"
30619 fi
30620
30621 rm -f core conftest.err conftest.$ac_objext \
30622       conftest$ac_exeext conftest.$ac_ext
30623 fi
30624 ac_res=`eval echo '${'$as_ac_var'}'`
30625                { echo "$as_me:$LINENO: result: $ac_res" >&5
30626 echo "${ECHO_T}$ac_res" >&6; }
30627 if test `eval echo '${'$as_ac_var'}'` = yes; then
30628   cat >>confdefs.h <<_ACEOF
30629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30630 _ACEOF
30631
30632 fi
30633 done
30634
30635
30636
30637
30638
30639
30640 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30641 do
30642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30646   echo $ECHO_N "(cached) $ECHO_C" >&6
30647 else
30648   cat >conftest.$ac_ext <<_ACEOF
30649 /* confdefs.h.  */
30650 _ACEOF
30651 cat confdefs.h >>conftest.$ac_ext
30652 cat >>conftest.$ac_ext <<_ACEOF
30653 /* end confdefs.h.  */
30654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30656 #define $ac_func innocuous_$ac_func
30657
30658 /* System header to define __stub macros and hopefully few prototypes,
30659     which can conflict with char $ac_func (); below.
30660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30661     <limits.h> exists even on freestanding compilers.  */
30662
30663 #ifdef __STDC__
30664 # include <limits.h>
30665 #else
30666 # include <assert.h>
30667 #endif
30668
30669 #undef $ac_func
30670
30671 /* Override any GCC internal prototype to avoid an error.
30672    Use char because int might match the return type of a GCC
30673    builtin and then its argument prototype would still apply.  */
30674 #ifdef __cplusplus
30675 extern "C"
30676 #endif
30677 char $ac_func ();
30678 /* The GNU C library defines this for functions which it implements
30679     to always fail with ENOSYS.  Some functions are actually named
30680     something starting with __ and the normal name is an alias.  */
30681 #if defined __stub_$ac_func || defined __stub___$ac_func
30682 choke me
30683 #endif
30684
30685 int
30686 main ()
30687 {
30688 return $ac_func ();
30689   ;
30690   return 0;
30691 }
30692 _ACEOF
30693 rm -f conftest.$ac_objext conftest$ac_exeext
30694 if { (ac_try="$ac_link"
30695 case "(($ac_try" in
30696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30697   *) ac_try_echo=$ac_try;;
30698 esac
30699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30700   (eval "$ac_link") 2>conftest.er1
30701   ac_status=$?
30702   grep -v '^ *+' conftest.er1 >conftest.err
30703   rm -f conftest.er1
30704   cat conftest.err >&5
30705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706   (exit $ac_status); } &&
30707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30708   { (case "(($ac_try" in
30709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30710   *) ac_try_echo=$ac_try;;
30711 esac
30712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30713   (eval "$ac_try") 2>&5
30714   ac_status=$?
30715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30716   (exit $ac_status); }; } &&
30717          { ac_try='test -s conftest$ac_exeext'
30718   { (case "(($ac_try" in
30719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30720   *) ac_try_echo=$ac_try;;
30721 esac
30722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30723   (eval "$ac_try") 2>&5
30724   ac_status=$?
30725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726   (exit $ac_status); }; }; then
30727   eval "$as_ac_var=yes"
30728 else
30729   echo "$as_me: failed program was:" >&5
30730 sed 's/^/| /' conftest.$ac_ext >&5
30731
30732         eval "$as_ac_var=no"
30733 fi
30734
30735 rm -f core conftest.err conftest.$ac_objext \
30736       conftest$ac_exeext conftest.$ac_ext
30737 fi
30738 ac_res=`eval echo '${'$as_ac_var'}'`
30739                { echo "$as_me:$LINENO: result: $ac_res" >&5
30740 echo "${ECHO_T}$ac_res" >&6; }
30741 if test `eval echo '${'$as_ac_var'}'` = yes; then
30742   cat >>confdefs.h <<_ACEOF
30743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30744 _ACEOF
30745
30746 fi
30747 done
30748
30749
30750
30751
30752 for ac_func in isatty mkdtemp mkstemp
30753 do
30754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30758   echo $ECHO_N "(cached) $ECHO_C" >&6
30759 else
30760   cat >conftest.$ac_ext <<_ACEOF
30761 /* confdefs.h.  */
30762 _ACEOF
30763 cat confdefs.h >>conftest.$ac_ext
30764 cat >>conftest.$ac_ext <<_ACEOF
30765 /* end confdefs.h.  */
30766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30768 #define $ac_func innocuous_$ac_func
30769
30770 /* System header to define __stub macros and hopefully few prototypes,
30771     which can conflict with char $ac_func (); below.
30772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30773     <limits.h> exists even on freestanding compilers.  */
30774
30775 #ifdef __STDC__
30776 # include <limits.h>
30777 #else
30778 # include <assert.h>
30779 #endif
30780
30781 #undef $ac_func
30782
30783 /* Override any GCC internal prototype to avoid an error.
30784    Use char because int might match the return type of a GCC
30785    builtin and then its argument prototype would still apply.  */
30786 #ifdef __cplusplus
30787 extern "C"
30788 #endif
30789 char $ac_func ();
30790 /* The GNU C library defines this for functions which it implements
30791     to always fail with ENOSYS.  Some functions are actually named
30792     something starting with __ and the normal name is an alias.  */
30793 #if defined __stub_$ac_func || defined __stub___$ac_func
30794 choke me
30795 #endif
30796
30797 int
30798 main ()
30799 {
30800 return $ac_func ();
30801   ;
30802   return 0;
30803 }
30804 _ACEOF
30805 rm -f conftest.$ac_objext conftest$ac_exeext
30806 if { (ac_try="$ac_link"
30807 case "(($ac_try" in
30808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30809   *) ac_try_echo=$ac_try;;
30810 esac
30811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30812   (eval "$ac_link") 2>conftest.er1
30813   ac_status=$?
30814   grep -v '^ *+' conftest.er1 >conftest.err
30815   rm -f conftest.er1
30816   cat conftest.err >&5
30817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818   (exit $ac_status); } &&
30819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30820   { (case "(($ac_try" in
30821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30822   *) ac_try_echo=$ac_try;;
30823 esac
30824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30825   (eval "$ac_try") 2>&5
30826   ac_status=$?
30827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828   (exit $ac_status); }; } &&
30829          { ac_try='test -s conftest$ac_exeext'
30830   { (case "(($ac_try" in
30831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30832   *) ac_try_echo=$ac_try;;
30833 esac
30834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30835   (eval "$ac_try") 2>&5
30836   ac_status=$?
30837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838   (exit $ac_status); }; }; then
30839   eval "$as_ac_var=yes"
30840 else
30841   echo "$as_me: failed program was:" >&5
30842 sed 's/^/| /' conftest.$ac_ext >&5
30843
30844         eval "$as_ac_var=no"
30845 fi
30846
30847 rm -f core conftest.err conftest.$ac_objext \
30848       conftest$ac_exeext conftest.$ac_ext
30849 fi
30850 ac_res=`eval echo '${'$as_ac_var'}'`
30851                { echo "$as_me:$LINENO: result: $ac_res" >&5
30852 echo "${ECHO_T}$ac_res" >&6; }
30853 if test `eval echo '${'$as_ac_var'}'` = yes; then
30854   cat >>confdefs.h <<_ACEOF
30855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30856 _ACEOF
30857
30858 fi
30859 done
30860
30861
30862
30863
30864
30865
30866
30867
30868 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30869 do
30870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30874   echo $ECHO_N "(cached) $ECHO_C" >&6
30875 else
30876   cat >conftest.$ac_ext <<_ACEOF
30877 /* confdefs.h.  */
30878 _ACEOF
30879 cat confdefs.h >>conftest.$ac_ext
30880 cat >>conftest.$ac_ext <<_ACEOF
30881 /* end confdefs.h.  */
30882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30884 #define $ac_func innocuous_$ac_func
30885
30886 /* System header to define __stub macros and hopefully few prototypes,
30887     which can conflict with char $ac_func (); below.
30888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30889     <limits.h> exists even on freestanding compilers.  */
30890
30891 #ifdef __STDC__
30892 # include <limits.h>
30893 #else
30894 # include <assert.h>
30895 #endif
30896
30897 #undef $ac_func
30898
30899 /* Override any GCC internal prototype to avoid an error.
30900    Use char because int might match the return type of a GCC
30901    builtin and then its argument prototype would still apply.  */
30902 #ifdef __cplusplus
30903 extern "C"
30904 #endif
30905 char $ac_func ();
30906 /* The GNU C library defines this for functions which it implements
30907     to always fail with ENOSYS.  Some functions are actually named
30908     something starting with __ and the normal name is an alias.  */
30909 #if defined __stub_$ac_func || defined __stub___$ac_func
30910 choke me
30911 #endif
30912
30913 int
30914 main ()
30915 {
30916 return $ac_func ();
30917   ;
30918   return 0;
30919 }
30920 _ACEOF
30921 rm -f conftest.$ac_objext conftest$ac_exeext
30922 if { (ac_try="$ac_link"
30923 case "(($ac_try" in
30924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30925   *) ac_try_echo=$ac_try;;
30926 esac
30927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30928   (eval "$ac_link") 2>conftest.er1
30929   ac_status=$?
30930   grep -v '^ *+' conftest.er1 >conftest.err
30931   rm -f conftest.er1
30932   cat conftest.err >&5
30933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934   (exit $ac_status); } &&
30935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30936   { (case "(($ac_try" in
30937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938   *) ac_try_echo=$ac_try;;
30939 esac
30940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941   (eval "$ac_try") 2>&5
30942   ac_status=$?
30943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944   (exit $ac_status); }; } &&
30945          { ac_try='test -s conftest$ac_exeext'
30946   { (case "(($ac_try" in
30947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30948   *) ac_try_echo=$ac_try;;
30949 esac
30950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30951   (eval "$ac_try") 2>&5
30952   ac_status=$?
30953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954   (exit $ac_status); }; }; then
30955   eval "$as_ac_var=yes"
30956 else
30957   echo "$as_me: failed program was:" >&5
30958 sed 's/^/| /' conftest.$ac_ext >&5
30959
30960         eval "$as_ac_var=no"
30961 fi
30962
30963 rm -f core conftest.err conftest.$ac_objext \
30964       conftest$ac_exeext conftest.$ac_ext
30965 fi
30966 ac_res=`eval echo '${'$as_ac_var'}'`
30967                { echo "$as_me:$LINENO: result: $ac_res" >&5
30968 echo "${ECHO_T}$ac_res" >&6; }
30969 if test `eval echo '${'$as_ac_var'}'` = yes; then
30970   cat >>confdefs.h <<_ACEOF
30971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30972 _ACEOF
30973
30974 fi
30975 done
30976
30977
30978
30979
30980
30981 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30982 do
30983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30984 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30986 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30987   echo $ECHO_N "(cached) $ECHO_C" >&6
30988 else
30989   cat >conftest.$ac_ext <<_ACEOF
30990 /* confdefs.h.  */
30991 _ACEOF
30992 cat confdefs.h >>conftest.$ac_ext
30993 cat >>conftest.$ac_ext <<_ACEOF
30994 /* end confdefs.h.  */
30995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30996    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30997 #define $ac_func innocuous_$ac_func
30998
30999 /* System header to define __stub macros and hopefully few prototypes,
31000     which can conflict with char $ac_func (); below.
31001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31002     <limits.h> exists even on freestanding compilers.  */
31003
31004 #ifdef __STDC__
31005 # include <limits.h>
31006 #else
31007 # include <assert.h>
31008 #endif
31009
31010 #undef $ac_func
31011
31012 /* Override any GCC internal prototype to avoid an error.
31013    Use char because int might match the return type of a GCC
31014    builtin and then its argument prototype would still apply.  */
31015 #ifdef __cplusplus
31016 extern "C"
31017 #endif
31018 char $ac_func ();
31019 /* The GNU C library defines this for functions which it implements
31020     to always fail with ENOSYS.  Some functions are actually named
31021     something starting with __ and the normal name is an alias.  */
31022 #if defined __stub_$ac_func || defined __stub___$ac_func
31023 choke me
31024 #endif
31025
31026 int
31027 main ()
31028 {
31029 return $ac_func ();
31030   ;
31031   return 0;
31032 }
31033 _ACEOF
31034 rm -f conftest.$ac_objext conftest$ac_exeext
31035 if { (ac_try="$ac_link"
31036 case "(($ac_try" in
31037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31038   *) ac_try_echo=$ac_try;;
31039 esac
31040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31041   (eval "$ac_link") 2>conftest.er1
31042   ac_status=$?
31043   grep -v '^ *+' conftest.er1 >conftest.err
31044   rm -f conftest.er1
31045   cat conftest.err >&5
31046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31047   (exit $ac_status); } &&
31048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31049   { (case "(($ac_try" in
31050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051   *) ac_try_echo=$ac_try;;
31052 esac
31053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054   (eval "$ac_try") 2>&5
31055   ac_status=$?
31056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057   (exit $ac_status); }; } &&
31058          { ac_try='test -s conftest$ac_exeext'
31059   { (case "(($ac_try" in
31060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31061   *) ac_try_echo=$ac_try;;
31062 esac
31063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31064   (eval "$ac_try") 2>&5
31065   ac_status=$?
31066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067   (exit $ac_status); }; }; then
31068   eval "$as_ac_var=yes"
31069 else
31070   echo "$as_me: failed program was:" >&5
31071 sed 's/^/| /' conftest.$ac_ext >&5
31072
31073         eval "$as_ac_var=no"
31074 fi
31075
31076 rm -f core conftest.err conftest.$ac_objext \
31077       conftest$ac_exeext conftest.$ac_ext
31078 fi
31079 ac_res=`eval echo '${'$as_ac_var'}'`
31080                { echo "$as_me:$LINENO: result: $ac_res" >&5
31081 echo "${ECHO_T}$ac_res" >&6; }
31082 if test `eval echo '${'$as_ac_var'}'` = yes; then
31083   cat >>confdefs.h <<_ACEOF
31084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31085 _ACEOF
31086
31087 fi
31088 done
31089
31090
31091
31092
31093
31094 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31095 do
31096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31100   echo $ECHO_N "(cached) $ECHO_C" >&6
31101 else
31102   cat >conftest.$ac_ext <<_ACEOF
31103 /* confdefs.h.  */
31104 _ACEOF
31105 cat confdefs.h >>conftest.$ac_ext
31106 cat >>conftest.$ac_ext <<_ACEOF
31107 /* end confdefs.h.  */
31108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31110 #define $ac_func innocuous_$ac_func
31111
31112 /* System header to define __stub macros and hopefully few prototypes,
31113     which can conflict with char $ac_func (); below.
31114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31115     <limits.h> exists even on freestanding compilers.  */
31116
31117 #ifdef __STDC__
31118 # include <limits.h>
31119 #else
31120 # include <assert.h>
31121 #endif
31122
31123 #undef $ac_func
31124
31125 /* Override any GCC internal prototype to avoid an error.
31126    Use char because int might match the return type of a GCC
31127    builtin and then its argument prototype would still apply.  */
31128 #ifdef __cplusplus
31129 extern "C"
31130 #endif
31131 char $ac_func ();
31132 /* The GNU C library defines this for functions which it implements
31133     to always fail with ENOSYS.  Some functions are actually named
31134     something starting with __ and the normal name is an alias.  */
31135 #if defined __stub_$ac_func || defined __stub___$ac_func
31136 choke me
31137 #endif
31138
31139 int
31140 main ()
31141 {
31142 return $ac_func ();
31143   ;
31144   return 0;
31145 }
31146 _ACEOF
31147 rm -f conftest.$ac_objext conftest$ac_exeext
31148 if { (ac_try="$ac_link"
31149 case "(($ac_try" in
31150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31151   *) ac_try_echo=$ac_try;;
31152 esac
31153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31154   (eval "$ac_link") 2>conftest.er1
31155   ac_status=$?
31156   grep -v '^ *+' conftest.er1 >conftest.err
31157   rm -f conftest.er1
31158   cat conftest.err >&5
31159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160   (exit $ac_status); } &&
31161          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31162   { (case "(($ac_try" in
31163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31164   *) ac_try_echo=$ac_try;;
31165 esac
31166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31167   (eval "$ac_try") 2>&5
31168   ac_status=$?
31169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170   (exit $ac_status); }; } &&
31171          { ac_try='test -s conftest$ac_exeext'
31172   { (case "(($ac_try" in
31173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31174   *) ac_try_echo=$ac_try;;
31175 esac
31176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31177   (eval "$ac_try") 2>&5
31178   ac_status=$?
31179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180   (exit $ac_status); }; }; then
31181   eval "$as_ac_var=yes"
31182 else
31183   echo "$as_me: failed program was:" >&5
31184 sed 's/^/| /' conftest.$ac_ext >&5
31185
31186         eval "$as_ac_var=no"
31187 fi
31188
31189 rm -f core conftest.err conftest.$ac_objext \
31190       conftest$ac_exeext conftest.$ac_ext
31191 fi
31192 ac_res=`eval echo '${'$as_ac_var'}'`
31193                { echo "$as_me:$LINENO: result: $ac_res" >&5
31194 echo "${ECHO_T}$ac_res" >&6; }
31195 if test `eval echo '${'$as_ac_var'}'` = yes; then
31196   cat >>confdefs.h <<_ACEOF
31197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31198 _ACEOF
31199
31200 fi
31201 done
31202
31203 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31204 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31205 if test "${llvm_cv_c_printf_a+set}" = set; then
31206   echo $ECHO_N "(cached) $ECHO_C" >&6
31207 else
31208   ac_ext=c
31209 ac_cpp='$CPP $CPPFLAGS'
31210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31213
31214  if test "$cross_compiling" = yes; then
31215   llvmac_cv_c_printf_a=no
31216 else
31217   cat >conftest.$ac_ext <<_ACEOF
31218
31219   /* confdefs.h.  */
31220 _ACEOF
31221 cat confdefs.h >>conftest.$ac_ext
31222 cat >>conftest.$ac_ext <<_ACEOF
31223 /* end confdefs.h.  */
31224
31225 #include <stdio.h>
31226 #include <stdlib.h>
31227
31228 int
31229 main ()
31230 {
31231
31232 volatile double A, B;
31233 char Buffer[100];
31234 A = 1;
31235 A /= 10.0;
31236 sprintf(Buffer, "%a", A);
31237 B = atof(Buffer);
31238 if (A != B)
31239   return (1);
31240 if (A != 0x1.999999999999ap-4)
31241   return (1);
31242 return (0);
31243   ;
31244   return 0;
31245 }
31246 _ACEOF
31247 rm -f conftest$ac_exeext
31248 if { (ac_try="$ac_link"
31249 case "(($ac_try" in
31250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31251   *) ac_try_echo=$ac_try;;
31252 esac
31253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31254   (eval "$ac_link") 2>&5
31255   ac_status=$?
31256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31257   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31258   { (case "(($ac_try" in
31259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31260   *) ac_try_echo=$ac_try;;
31261 esac
31262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31263   (eval "$ac_try") 2>&5
31264   ac_status=$?
31265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31266   (exit $ac_status); }; }; then
31267   llvm_cv_c_printf_a=yes
31268 else
31269   echo "$as_me: program exited with status $ac_status" >&5
31270 echo "$as_me: failed program was:" >&5
31271 sed 's/^/| /' conftest.$ac_ext >&5
31272
31273 ( exit $ac_status )
31274 llvmac_cv_c_printf_a=no
31275 fi
31276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31277 fi
31278
31279
31280  ac_ext=c
31281 ac_cpp='$CPP $CPPFLAGS'
31282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31285
31286 fi
31287 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31288 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31289  if test "$llvm_cv_c_printf_a" = "yes"; then
31290
31291 cat >>confdefs.h <<\_ACEOF
31292 #define HAVE_PRINTF_A 1
31293 _ACEOF
31294
31295  fi
31296
31297 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31298 # for constant arguments.  Useless!
31299 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31300 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31301 if test "${ac_cv_working_alloca_h+set}" = set; then
31302   echo $ECHO_N "(cached) $ECHO_C" >&6
31303 else
31304   cat >conftest.$ac_ext <<_ACEOF
31305 /* confdefs.h.  */
31306 _ACEOF
31307 cat confdefs.h >>conftest.$ac_ext
31308 cat >>conftest.$ac_ext <<_ACEOF
31309 /* end confdefs.h.  */
31310 #include <alloca.h>
31311 int
31312 main ()
31313 {
31314 char *p = (char *) alloca (2 * sizeof (int));
31315                           if (p) return 0;
31316   ;
31317   return 0;
31318 }
31319 _ACEOF
31320 rm -f conftest.$ac_objext conftest$ac_exeext
31321 if { (ac_try="$ac_link"
31322 case "(($ac_try" in
31323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31324   *) ac_try_echo=$ac_try;;
31325 esac
31326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31327   (eval "$ac_link") 2>conftest.er1
31328   ac_status=$?
31329   grep -v '^ *+' conftest.er1 >conftest.err
31330   rm -f conftest.er1
31331   cat conftest.err >&5
31332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333   (exit $ac_status); } &&
31334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31335   { (case "(($ac_try" in
31336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31337   *) ac_try_echo=$ac_try;;
31338 esac
31339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31340   (eval "$ac_try") 2>&5
31341   ac_status=$?
31342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343   (exit $ac_status); }; } &&
31344          { ac_try='test -s conftest$ac_exeext'
31345   { (case "(($ac_try" in
31346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31347   *) ac_try_echo=$ac_try;;
31348 esac
31349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31350   (eval "$ac_try") 2>&5
31351   ac_status=$?
31352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353   (exit $ac_status); }; }; then
31354   ac_cv_working_alloca_h=yes
31355 else
31356   echo "$as_me: failed program was:" >&5
31357 sed 's/^/| /' conftest.$ac_ext >&5
31358
31359         ac_cv_working_alloca_h=no
31360 fi
31361
31362 rm -f core conftest.err conftest.$ac_objext \
31363       conftest$ac_exeext conftest.$ac_ext
31364 fi
31365 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31366 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31367 if test $ac_cv_working_alloca_h = yes; then
31368
31369 cat >>confdefs.h <<\_ACEOF
31370 #define HAVE_ALLOCA_H 1
31371 _ACEOF
31372
31373 fi
31374
31375 { echo "$as_me:$LINENO: checking for alloca" >&5
31376 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31377 if test "${ac_cv_func_alloca_works+set}" = set; then
31378   echo $ECHO_N "(cached) $ECHO_C" >&6
31379 else
31380   cat >conftest.$ac_ext <<_ACEOF
31381 /* confdefs.h.  */
31382 _ACEOF
31383 cat confdefs.h >>conftest.$ac_ext
31384 cat >>conftest.$ac_ext <<_ACEOF
31385 /* end confdefs.h.  */
31386 #ifdef __GNUC__
31387 # define alloca __builtin_alloca
31388 #else
31389 # ifdef _MSC_VER
31390 #  include <malloc.h>
31391 #  define alloca _alloca
31392 # else
31393 #  if HAVE_ALLOCA_H
31394 #   include <alloca.h>
31395 #  else
31396 #   ifdef _AIX
31397  #pragma alloca
31398 #   else
31399 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31400 char *alloca ();
31401 #    endif
31402 #   endif
31403 #  endif
31404 # endif
31405 #endif
31406
31407 int
31408 main ()
31409 {
31410 char *p = (char *) alloca (1);
31411                                     if (p) return 0;
31412   ;
31413   return 0;
31414 }
31415 _ACEOF
31416 rm -f conftest.$ac_objext conftest$ac_exeext
31417 if { (ac_try="$ac_link"
31418 case "(($ac_try" in
31419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31420   *) ac_try_echo=$ac_try;;
31421 esac
31422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31423   (eval "$ac_link") 2>conftest.er1
31424   ac_status=$?
31425   grep -v '^ *+' conftest.er1 >conftest.err
31426   rm -f conftest.er1
31427   cat conftest.err >&5
31428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429   (exit $ac_status); } &&
31430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31431   { (case "(($ac_try" in
31432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31433   *) ac_try_echo=$ac_try;;
31434 esac
31435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31436   (eval "$ac_try") 2>&5
31437   ac_status=$?
31438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31439   (exit $ac_status); }; } &&
31440          { ac_try='test -s conftest$ac_exeext'
31441   { (case "(($ac_try" in
31442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31443   *) ac_try_echo=$ac_try;;
31444 esac
31445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31446   (eval "$ac_try") 2>&5
31447   ac_status=$?
31448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31449   (exit $ac_status); }; }; then
31450   ac_cv_func_alloca_works=yes
31451 else
31452   echo "$as_me: failed program was:" >&5
31453 sed 's/^/| /' conftest.$ac_ext >&5
31454
31455         ac_cv_func_alloca_works=no
31456 fi
31457
31458 rm -f core conftest.err conftest.$ac_objext \
31459       conftest$ac_exeext conftest.$ac_ext
31460 fi
31461 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31462 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31463
31464 if test $ac_cv_func_alloca_works = yes; then
31465
31466 cat >>confdefs.h <<\_ACEOF
31467 #define HAVE_ALLOCA 1
31468 _ACEOF
31469
31470 else
31471   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31472 # that cause trouble.  Some versions do not even contain alloca or
31473 # contain a buggy version.  If you still want to use their alloca,
31474 # use ar to extract alloca.o from them instead of compiling alloca.c.
31475
31476 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31477
31478 cat >>confdefs.h <<\_ACEOF
31479 #define C_ALLOCA 1
31480 _ACEOF
31481
31482
31483 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31484 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31485 if test "${ac_cv_os_cray+set}" = set; then
31486   echo $ECHO_N "(cached) $ECHO_C" >&6
31487 else
31488   cat >conftest.$ac_ext <<_ACEOF
31489 /* confdefs.h.  */
31490 _ACEOF
31491 cat confdefs.h >>conftest.$ac_ext
31492 cat >>conftest.$ac_ext <<_ACEOF
31493 /* end confdefs.h.  */
31494 #if defined CRAY && ! defined CRAY2
31495 webecray
31496 #else
31497 wenotbecray
31498 #endif
31499
31500 _ACEOF
31501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31502   $EGREP "webecray" >/dev/null 2>&1; then
31503   ac_cv_os_cray=yes
31504 else
31505   ac_cv_os_cray=no
31506 fi
31507 rm -f conftest*
31508
31509 fi
31510 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31511 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31512 if test $ac_cv_os_cray = yes; then
31513   for ac_func in _getb67 GETB67 getb67; do
31514     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31515 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31518   echo $ECHO_N "(cached) $ECHO_C" >&6
31519 else
31520   cat >conftest.$ac_ext <<_ACEOF
31521 /* confdefs.h.  */
31522 _ACEOF
31523 cat confdefs.h >>conftest.$ac_ext
31524 cat >>conftest.$ac_ext <<_ACEOF
31525 /* end confdefs.h.  */
31526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31528 #define $ac_func innocuous_$ac_func
31529
31530 /* System header to define __stub macros and hopefully few prototypes,
31531     which can conflict with char $ac_func (); below.
31532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31533     <limits.h> exists even on freestanding compilers.  */
31534
31535 #ifdef __STDC__
31536 # include <limits.h>
31537 #else
31538 # include <assert.h>
31539 #endif
31540
31541 #undef $ac_func
31542
31543 /* Override any GCC internal prototype to avoid an error.
31544    Use char because int might match the return type of a GCC
31545    builtin and then its argument prototype would still apply.  */
31546 #ifdef __cplusplus
31547 extern "C"
31548 #endif
31549 char $ac_func ();
31550 /* The GNU C library defines this for functions which it implements
31551     to always fail with ENOSYS.  Some functions are actually named
31552     something starting with __ and the normal name is an alias.  */
31553 #if defined __stub_$ac_func || defined __stub___$ac_func
31554 choke me
31555 #endif
31556
31557 int
31558 main ()
31559 {
31560 return $ac_func ();
31561   ;
31562   return 0;
31563 }
31564 _ACEOF
31565 rm -f conftest.$ac_objext conftest$ac_exeext
31566 if { (ac_try="$ac_link"
31567 case "(($ac_try" in
31568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31569   *) ac_try_echo=$ac_try;;
31570 esac
31571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31572   (eval "$ac_link") 2>conftest.er1
31573   ac_status=$?
31574   grep -v '^ *+' conftest.er1 >conftest.err
31575   rm -f conftest.er1
31576   cat conftest.err >&5
31577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31578   (exit $ac_status); } &&
31579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31580   { (case "(($ac_try" in
31581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31582   *) ac_try_echo=$ac_try;;
31583 esac
31584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31585   (eval "$ac_try") 2>&5
31586   ac_status=$?
31587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588   (exit $ac_status); }; } &&
31589          { ac_try='test -s conftest$ac_exeext'
31590   { (case "(($ac_try" in
31591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31592   *) ac_try_echo=$ac_try;;
31593 esac
31594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31595   (eval "$ac_try") 2>&5
31596   ac_status=$?
31597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31598   (exit $ac_status); }; }; then
31599   eval "$as_ac_var=yes"
31600 else
31601   echo "$as_me: failed program was:" >&5
31602 sed 's/^/| /' conftest.$ac_ext >&5
31603
31604         eval "$as_ac_var=no"
31605 fi
31606
31607 rm -f core conftest.err conftest.$ac_objext \
31608       conftest$ac_exeext conftest.$ac_ext
31609 fi
31610 ac_res=`eval echo '${'$as_ac_var'}'`
31611                { echo "$as_me:$LINENO: result: $ac_res" >&5
31612 echo "${ECHO_T}$ac_res" >&6; }
31613 if test `eval echo '${'$as_ac_var'}'` = yes; then
31614
31615 cat >>confdefs.h <<_ACEOF
31616 #define CRAY_STACKSEG_END $ac_func
31617 _ACEOF
31618
31619     break
31620 fi
31621
31622   done
31623 fi
31624
31625 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31626 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31627 if test "${ac_cv_c_stack_direction+set}" = set; then
31628   echo $ECHO_N "(cached) $ECHO_C" >&6
31629 else
31630   if test "$cross_compiling" = yes; then
31631   ac_cv_c_stack_direction=0
31632 else
31633   cat >conftest.$ac_ext <<_ACEOF
31634 /* confdefs.h.  */
31635 _ACEOF
31636 cat confdefs.h >>conftest.$ac_ext
31637 cat >>conftest.$ac_ext <<_ACEOF
31638 /* end confdefs.h.  */
31639 $ac_includes_default
31640 int
31641 find_stack_direction ()
31642 {
31643   static char *addr = 0;
31644   auto char dummy;
31645   if (addr == 0)
31646     {
31647       addr = &dummy;
31648       return find_stack_direction ();
31649     }
31650   else
31651     return (&dummy > addr) ? 1 : -1;
31652 }
31653
31654 int
31655 main ()
31656 {
31657   return find_stack_direction () < 0;
31658 }
31659 _ACEOF
31660 rm -f conftest$ac_exeext
31661 if { (ac_try="$ac_link"
31662 case "(($ac_try" in
31663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31664   *) ac_try_echo=$ac_try;;
31665 esac
31666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31667   (eval "$ac_link") 2>&5
31668   ac_status=$?
31669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31671   { (case "(($ac_try" in
31672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31673   *) ac_try_echo=$ac_try;;
31674 esac
31675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31676   (eval "$ac_try") 2>&5
31677   ac_status=$?
31678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31679   (exit $ac_status); }; }; then
31680   ac_cv_c_stack_direction=1
31681 else
31682   echo "$as_me: program exited with status $ac_status" >&5
31683 echo "$as_me: failed program was:" >&5
31684 sed 's/^/| /' conftest.$ac_ext >&5
31685
31686 ( exit $ac_status )
31687 ac_cv_c_stack_direction=-1
31688 fi
31689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31690 fi
31691
31692
31693 fi
31694 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31695 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31696
31697 cat >>confdefs.h <<_ACEOF
31698 #define STACK_DIRECTION $ac_cv_c_stack_direction
31699 _ACEOF
31700
31701
31702 fi
31703
31704
31705 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31706 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31707 if test "${ac_cv_func_rand48+set}" = set; then
31708   echo $ECHO_N "(cached) $ECHO_C" >&6
31709 else
31710   ac_ext=cpp
31711 ac_cpp='$CXXCPP $CPPFLAGS'
31712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31715
31716    cat >conftest.$ac_ext <<_ACEOF
31717 /* confdefs.h.  */
31718 _ACEOF
31719 cat confdefs.h >>conftest.$ac_ext
31720 cat >>conftest.$ac_ext <<_ACEOF
31721 /* end confdefs.h.  */
31722 #include <stdlib.h>
31723 int
31724 main ()
31725 {
31726 srand48(0);lrand48();drand48();
31727   ;
31728   return 0;
31729 }
31730 _ACEOF
31731 rm -f conftest.$ac_objext
31732 if { (ac_try="$ac_compile"
31733 case "(($ac_try" in
31734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31735   *) ac_try_echo=$ac_try;;
31736 esac
31737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31738   (eval "$ac_compile") 2>conftest.er1
31739   ac_status=$?
31740   grep -v '^ *+' conftest.er1 >conftest.err
31741   rm -f conftest.er1
31742   cat conftest.err >&5
31743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744   (exit $ac_status); } &&
31745          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31746   { (case "(($ac_try" in
31747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31748   *) ac_try_echo=$ac_try;;
31749 esac
31750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31751   (eval "$ac_try") 2>&5
31752   ac_status=$?
31753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31754   (exit $ac_status); }; } &&
31755          { ac_try='test -s conftest.$ac_objext'
31756   { (case "(($ac_try" in
31757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31758   *) ac_try_echo=$ac_try;;
31759 esac
31760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31761   (eval "$ac_try") 2>&5
31762   ac_status=$?
31763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31764   (exit $ac_status); }; }; then
31765   ac_cv_func_rand48=yes
31766 else
31767   echo "$as_me: failed program was:" >&5
31768 sed 's/^/| /' conftest.$ac_ext >&5
31769
31770         ac_cv_func_rand48=no
31771 fi
31772
31773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31774   ac_ext=c
31775 ac_cpp='$CPP $CPPFLAGS'
31776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31779
31780 fi
31781 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31782 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31783
31784 if test "$ac_cv_func_rand48" = "yes" ; then
31785
31786 cat >>confdefs.h <<\_ACEOF
31787 #define HAVE_RAND48 1
31788 _ACEOF
31789
31790 fi
31791
31792
31793 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31794 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31795 if test "${ac_cv_cxx_namespaces+set}" = set; then
31796   echo $ECHO_N "(cached) $ECHO_C" >&6
31797 else
31798   ac_ext=cpp
31799 ac_cpp='$CXXCPP $CPPFLAGS'
31800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31803
31804  cat >conftest.$ac_ext <<_ACEOF
31805 /* confdefs.h.  */
31806 _ACEOF
31807 cat confdefs.h >>conftest.$ac_ext
31808 cat >>conftest.$ac_ext <<_ACEOF
31809 /* end confdefs.h.  */
31810 namespace Outer { namespace Inner { int i = 0; }}
31811 int
31812 main ()
31813 {
31814 using namespace Outer::Inner; return i;
31815   ;
31816   return 0;
31817 }
31818 _ACEOF
31819 rm -f conftest.$ac_objext
31820 if { (ac_try="$ac_compile"
31821 case "(($ac_try" in
31822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31823   *) ac_try_echo=$ac_try;;
31824 esac
31825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31826   (eval "$ac_compile") 2>conftest.er1
31827   ac_status=$?
31828   grep -v '^ *+' conftest.er1 >conftest.err
31829   rm -f conftest.er1
31830   cat conftest.err >&5
31831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832   (exit $ac_status); } &&
31833          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31834   { (case "(($ac_try" in
31835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31836   *) ac_try_echo=$ac_try;;
31837 esac
31838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31839   (eval "$ac_try") 2>&5
31840   ac_status=$?
31841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842   (exit $ac_status); }; } &&
31843          { ac_try='test -s conftest.$ac_objext'
31844   { (case "(($ac_try" in
31845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31846   *) ac_try_echo=$ac_try;;
31847 esac
31848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31849   (eval "$ac_try") 2>&5
31850   ac_status=$?
31851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852   (exit $ac_status); }; }; then
31853   ac_cv_cxx_namespaces=yes
31854 else
31855   echo "$as_me: failed program was:" >&5
31856 sed 's/^/| /' conftest.$ac_ext >&5
31857
31858         ac_cv_cxx_namespaces=no
31859 fi
31860
31861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31862  ac_ext=c
31863 ac_cpp='$CPP $CPPFLAGS'
31864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31867
31868
31869 fi
31870 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31871 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31872 if test "$ac_cv_cxx_namespaces" = yes; then
31873
31874 cat >>confdefs.h <<\_ACEOF
31875 #define HAVE_NAMESPACES
31876 _ACEOF
31877
31878 fi
31879
31880 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31881 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31882 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31883   echo $ECHO_N "(cached) $ECHO_C" >&6
31884 else
31885
31886   ac_ext=cpp
31887 ac_cpp='$CXXCPP $CPPFLAGS'
31888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31891
31892   cat >conftest.$ac_ext <<_ACEOF
31893 /* confdefs.h.  */
31894 _ACEOF
31895 cat confdefs.h >>conftest.$ac_ext
31896 cat >>conftest.$ac_ext <<_ACEOF
31897 /* end confdefs.h.  */
31898 #include <ext/hash_map>
31899 #ifdef HAVE_NAMESPACES
31900 using namespace std;
31901 #endif
31902 int
31903 main ()
31904 {
31905 hash_map<int, int> t;
31906   ;
31907   return 0;
31908 }
31909 _ACEOF
31910 rm -f conftest.$ac_objext
31911 if { (ac_try="$ac_compile"
31912 case "(($ac_try" in
31913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31914   *) ac_try_echo=$ac_try;;
31915 esac
31916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31917   (eval "$ac_compile") 2>conftest.er1
31918   ac_status=$?
31919   grep -v '^ *+' conftest.er1 >conftest.err
31920   rm -f conftest.er1
31921   cat conftest.err >&5
31922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31923   (exit $ac_status); } &&
31924          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31925   { (case "(($ac_try" in
31926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31927   *) ac_try_echo=$ac_try;;
31928 esac
31929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31930   (eval "$ac_try") 2>&5
31931   ac_status=$?
31932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933   (exit $ac_status); }; } &&
31934          { ac_try='test -s conftest.$ac_objext'
31935   { (case "(($ac_try" in
31936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937   *) ac_try_echo=$ac_try;;
31938 esac
31939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940   (eval "$ac_try") 2>&5
31941   ac_status=$?
31942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943   (exit $ac_status); }; }; then
31944   ac_cv_cxx_have_std_ext_hash_map=yes
31945 else
31946   echo "$as_me: failed program was:" >&5
31947 sed 's/^/| /' conftest.$ac_ext >&5
31948
31949         ac_cv_cxx_have_std_ext_hash_map=no
31950 fi
31951
31952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31953   ac_ext=c
31954 ac_cpp='$CPP $CPPFLAGS'
31955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31958
31959 fi
31960 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31961 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31962  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31963  then
31964
31965 cat >>confdefs.h <<\_ACEOF
31966 #define HAVE_STD_EXT_HASH_MAP 1
31967 _ACEOF
31968
31969  else
31970
31971 cat >>confdefs.h <<\_ACEOF
31972 #define HAVE_STD_EXT_HASH_MAP 0
31973 _ACEOF
31974
31975  fi
31976
31977  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31978 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31979 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31980   echo $ECHO_N "(cached) $ECHO_C" >&6
31981 else
31982
31983   ac_ext=cpp
31984 ac_cpp='$CXXCPP $CPPFLAGS'
31985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31988
31989   cat >conftest.$ac_ext <<_ACEOF
31990 /* confdefs.h.  */
31991 _ACEOF
31992 cat confdefs.h >>conftest.$ac_ext
31993 cat >>conftest.$ac_ext <<_ACEOF
31994 /* end confdefs.h.  */
31995 #include <ext/hash_map>
31996 #ifdef HAVE_NAMESPACES
31997 using namespace __gnu_cxx;
31998 #endif
31999 int
32000 main ()
32001 {
32002 hash_map<int,int> t;
32003   ;
32004   return 0;
32005 }
32006 _ACEOF
32007 rm -f conftest.$ac_objext
32008 if { (ac_try="$ac_compile"
32009 case "(($ac_try" in
32010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32011   *) ac_try_echo=$ac_try;;
32012 esac
32013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32014   (eval "$ac_compile") 2>conftest.er1
32015   ac_status=$?
32016   grep -v '^ *+' conftest.er1 >conftest.err
32017   rm -f conftest.er1
32018   cat conftest.err >&5
32019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020   (exit $ac_status); } &&
32021          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32022   { (case "(($ac_try" in
32023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024   *) ac_try_echo=$ac_try;;
32025 esac
32026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027   (eval "$ac_try") 2>&5
32028   ac_status=$?
32029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030   (exit $ac_status); }; } &&
32031          { ac_try='test -s conftest.$ac_objext'
32032   { (case "(($ac_try" in
32033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32034   *) ac_try_echo=$ac_try;;
32035 esac
32036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32037   (eval "$ac_try") 2>&5
32038   ac_status=$?
32039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040   (exit $ac_status); }; }; then
32041   ac_cv_cxx_have_gnu_ext_hash_map=yes
32042 else
32043   echo "$as_me: failed program was:" >&5
32044 sed 's/^/| /' conftest.$ac_ext >&5
32045
32046         ac_cv_cxx_have_gnu_ext_hash_map=no
32047 fi
32048
32049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32050   ac_ext=c
32051 ac_cpp='$CPP $CPPFLAGS'
32052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32055
32056 fi
32057 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32058 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32059  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32060  then
32061
32062 cat >>confdefs.h <<\_ACEOF
32063 #define HAVE_GNU_EXT_HASH_MAP 1
32064 _ACEOF
32065
32066  else
32067
32068 cat >>confdefs.h <<\_ACEOF
32069 #define HAVE_GNU_EXT_HASH_MAP 0
32070 _ACEOF
32071
32072  fi
32073
32074  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32075 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32076 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32077   echo $ECHO_N "(cached) $ECHO_C" >&6
32078 else
32079
32080   ac_ext=cpp
32081 ac_cpp='$CXXCPP $CPPFLAGS'
32082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32085
32086   cat >conftest.$ac_ext <<_ACEOF
32087 /* confdefs.h.  */
32088 _ACEOF
32089 cat confdefs.h >>conftest.$ac_ext
32090 cat >>conftest.$ac_ext <<_ACEOF
32091 /* end confdefs.h.  */
32092 #include <hash_map>
32093 int
32094 main ()
32095 {
32096 hash_map<int,int> t;
32097   ;
32098   return 0;
32099 }
32100 _ACEOF
32101 rm -f conftest.$ac_objext
32102 if { (ac_try="$ac_compile"
32103 case "(($ac_try" in
32104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32105   *) ac_try_echo=$ac_try;;
32106 esac
32107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32108   (eval "$ac_compile") 2>conftest.er1
32109   ac_status=$?
32110   grep -v '^ *+' conftest.er1 >conftest.err
32111   rm -f conftest.er1
32112   cat conftest.err >&5
32113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114   (exit $ac_status); } &&
32115          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32116   { (case "(($ac_try" in
32117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32118   *) ac_try_echo=$ac_try;;
32119 esac
32120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32121   (eval "$ac_try") 2>&5
32122   ac_status=$?
32123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124   (exit $ac_status); }; } &&
32125          { ac_try='test -s conftest.$ac_objext'
32126   { (case "(($ac_try" in
32127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32128   *) ac_try_echo=$ac_try;;
32129 esac
32130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32131   (eval "$ac_try") 2>&5
32132   ac_status=$?
32133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134   (exit $ac_status); }; }; then
32135   ac_cv_cxx_have_global_hash_map=yes
32136 else
32137   echo "$as_me: failed program was:" >&5
32138 sed 's/^/| /' conftest.$ac_ext >&5
32139
32140         ac_cv_cxx_have_global_hash_map=no
32141 fi
32142
32143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32144   ac_ext=c
32145 ac_cpp='$CPP $CPPFLAGS'
32146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32149
32150 fi
32151 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32152 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32153  if test "$ac_cv_cxx_have_global_hash_map" = yes
32154  then
32155
32156 cat >>confdefs.h <<\_ACEOF
32157 #define HAVE_GLOBAL_HASH_MAP 1
32158 _ACEOF
32159
32160  else
32161
32162 cat >>confdefs.h <<\_ACEOF
32163 #define HAVE_GLOBAL_HASH_MAP 0
32164 _ACEOF
32165
32166  fi
32167
32168 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32169 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32170 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32171   echo $ECHO_N "(cached) $ECHO_C" >&6
32172 else
32173
32174   ac_ext=cpp
32175 ac_cpp='$CXXCPP $CPPFLAGS'
32176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32179
32180   cat >conftest.$ac_ext <<_ACEOF
32181 /* confdefs.h.  */
32182 _ACEOF
32183 cat confdefs.h >>conftest.$ac_ext
32184 cat >>conftest.$ac_ext <<_ACEOF
32185 /* end confdefs.h.  */
32186 #include <ext/hash_set>
32187 #ifdef HAVE_NAMESPACES
32188 using namespace std;
32189 #endif
32190 int
32191 main ()
32192 {
32193 hash_set<int> t;
32194   ;
32195   return 0;
32196 }
32197 _ACEOF
32198 rm -f conftest.$ac_objext
32199 if { (ac_try="$ac_compile"
32200 case "(($ac_try" in
32201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32202   *) ac_try_echo=$ac_try;;
32203 esac
32204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32205   (eval "$ac_compile") 2>conftest.er1
32206   ac_status=$?
32207   grep -v '^ *+' conftest.er1 >conftest.err
32208   rm -f conftest.er1
32209   cat conftest.err >&5
32210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211   (exit $ac_status); } &&
32212          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32213   { (case "(($ac_try" in
32214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215   *) ac_try_echo=$ac_try;;
32216 esac
32217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218   (eval "$ac_try") 2>&5
32219   ac_status=$?
32220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221   (exit $ac_status); }; } &&
32222          { ac_try='test -s conftest.$ac_objext'
32223   { (case "(($ac_try" in
32224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32225   *) ac_try_echo=$ac_try;;
32226 esac
32227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32228   (eval "$ac_try") 2>&5
32229   ac_status=$?
32230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32231   (exit $ac_status); }; }; then
32232   ac_cv_cxx_have_std_ext_hash_set=yes
32233 else
32234   echo "$as_me: failed program was:" >&5
32235 sed 's/^/| /' conftest.$ac_ext >&5
32236
32237         ac_cv_cxx_have_std_ext_hash_set=no
32238 fi
32239
32240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32241   ac_ext=c
32242 ac_cpp='$CPP $CPPFLAGS'
32243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32246
32247 fi
32248 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32249 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32250  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32251  then
32252
32253 cat >>confdefs.h <<\_ACEOF
32254 #define HAVE_STD_EXT_HASH_SET 1
32255 _ACEOF
32256
32257  else
32258
32259 cat >>confdefs.h <<\_ACEOF
32260 #define HAVE_STD_EXT_HASH_SET 0
32261 _ACEOF
32262
32263  fi
32264
32265  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32266 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32267 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32268   echo $ECHO_N "(cached) $ECHO_C" >&6
32269 else
32270
32271   ac_ext=cpp
32272 ac_cpp='$CXXCPP $CPPFLAGS'
32273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32276
32277   cat >conftest.$ac_ext <<_ACEOF
32278 /* confdefs.h.  */
32279 _ACEOF
32280 cat confdefs.h >>conftest.$ac_ext
32281 cat >>conftest.$ac_ext <<_ACEOF
32282 /* end confdefs.h.  */
32283 #include <ext/hash_set>
32284 #ifdef HAVE_NAMESPACES
32285 using namespace __gnu_cxx;
32286 #endif
32287 int
32288 main ()
32289 {
32290 hash_set<int> t;
32291   ;
32292   return 0;
32293 }
32294 _ACEOF
32295 rm -f conftest.$ac_objext
32296 if { (ac_try="$ac_compile"
32297 case "(($ac_try" in
32298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32299   *) ac_try_echo=$ac_try;;
32300 esac
32301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32302   (eval "$ac_compile") 2>conftest.er1
32303   ac_status=$?
32304   grep -v '^ *+' conftest.er1 >conftest.err
32305   rm -f conftest.er1
32306   cat conftest.err >&5
32307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32308   (exit $ac_status); } &&
32309          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32310   { (case "(($ac_try" in
32311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32312   *) ac_try_echo=$ac_try;;
32313 esac
32314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32315   (eval "$ac_try") 2>&5
32316   ac_status=$?
32317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318   (exit $ac_status); }; } &&
32319          { ac_try='test -s conftest.$ac_objext'
32320   { (case "(($ac_try" in
32321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32322   *) ac_try_echo=$ac_try;;
32323 esac
32324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32325   (eval "$ac_try") 2>&5
32326   ac_status=$?
32327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328   (exit $ac_status); }; }; then
32329   ac_cv_cxx_have_gnu_ext_hash_set=yes
32330 else
32331   echo "$as_me: failed program was:" >&5
32332 sed 's/^/| /' conftest.$ac_ext >&5
32333
32334         ac_cv_cxx_have_gnu_ext_hash_set=no
32335 fi
32336
32337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32338   ac_ext=c
32339 ac_cpp='$CPP $CPPFLAGS'
32340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32343
32344 fi
32345 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32346 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32347  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32348  then
32349
32350 cat >>confdefs.h <<\_ACEOF
32351 #define HAVE_GNU_EXT_HASH_SET 1
32352 _ACEOF
32353
32354  else
32355
32356 cat >>confdefs.h <<\_ACEOF
32357 #define HAVE_GNU_EXT_HASH_SET 0
32358 _ACEOF
32359
32360  fi
32361
32362  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32363 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32364 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32365   echo $ECHO_N "(cached) $ECHO_C" >&6
32366 else
32367
32368   ac_ext=cpp
32369 ac_cpp='$CXXCPP $CPPFLAGS'
32370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32373
32374   cat >conftest.$ac_ext <<_ACEOF
32375 /* confdefs.h.  */
32376 _ACEOF
32377 cat confdefs.h >>conftest.$ac_ext
32378 cat >>conftest.$ac_ext <<_ACEOF
32379 /* end confdefs.h.  */
32380 #include <hash_set>
32381 int
32382 main ()
32383 {
32384 hash_set<int> t; return 0;
32385   ;
32386   return 0;
32387 }
32388 _ACEOF
32389 rm -f conftest.$ac_objext
32390 if { (ac_try="$ac_compile"
32391 case "(($ac_try" in
32392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393   *) ac_try_echo=$ac_try;;
32394 esac
32395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396   (eval "$ac_compile") 2>conftest.er1
32397   ac_status=$?
32398   grep -v '^ *+' conftest.er1 >conftest.err
32399   rm -f conftest.er1
32400   cat conftest.err >&5
32401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402   (exit $ac_status); } &&
32403          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32404   { (case "(($ac_try" in
32405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32406   *) ac_try_echo=$ac_try;;
32407 esac
32408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32409   (eval "$ac_try") 2>&5
32410   ac_status=$?
32411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32412   (exit $ac_status); }; } &&
32413          { ac_try='test -s conftest.$ac_objext'
32414   { (case "(($ac_try" in
32415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32416   *) ac_try_echo=$ac_try;;
32417 esac
32418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32419   (eval "$ac_try") 2>&5
32420   ac_status=$?
32421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422   (exit $ac_status); }; }; then
32423   ac_cv_cxx_have_global_hash_set=yes
32424 else
32425   echo "$as_me: failed program was:" >&5
32426 sed 's/^/| /' conftest.$ac_ext >&5
32427
32428         ac_cv_cxx_have_global_hash_set=no
32429 fi
32430
32431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32432   ac_ext=c
32433 ac_cpp='$CPP $CPPFLAGS'
32434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32437
32438 fi
32439 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32440 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32441  if test "$ac_cv_cxx_have_global_hash_set" = yes
32442  then
32443
32444 cat >>confdefs.h <<\_ACEOF
32445 #define HAVE_GLOBAL_HASH_SET 1
32446 _ACEOF
32447
32448  else
32449
32450 cat >>confdefs.h <<\_ACEOF
32451 #define HAVE_GLOBAL_HASH_SET 0
32452 _ACEOF
32453
32454  fi
32455
32456 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32457 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32458 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32459   echo $ECHO_N "(cached) $ECHO_C" >&6
32460 else
32461
32462   ac_ext=cpp
32463 ac_cpp='$CXXCPP $CPPFLAGS'
32464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32467
32468   cat >conftest.$ac_ext <<_ACEOF
32469 /* confdefs.h.  */
32470 _ACEOF
32471 cat confdefs.h >>conftest.$ac_ext
32472 cat >>conftest.$ac_ext <<_ACEOF
32473 /* end confdefs.h.  */
32474 #include <iterator>
32475 #ifdef HAVE_NAMESPACES
32476 using namespace std;
32477 #endif
32478 int
32479 main ()
32480 {
32481 iterator<int,int,int> t; return 0;
32482   ;
32483   return 0;
32484 }
32485 _ACEOF
32486 rm -f conftest.$ac_objext
32487 if { (ac_try="$ac_compile"
32488 case "(($ac_try" in
32489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32490   *) ac_try_echo=$ac_try;;
32491 esac
32492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32493   (eval "$ac_compile") 2>conftest.er1
32494   ac_status=$?
32495   grep -v '^ *+' conftest.er1 >conftest.err
32496   rm -f conftest.er1
32497   cat conftest.err >&5
32498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499   (exit $ac_status); } &&
32500          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32501   { (case "(($ac_try" in
32502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32503   *) ac_try_echo=$ac_try;;
32504 esac
32505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32506   (eval "$ac_try") 2>&5
32507   ac_status=$?
32508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509   (exit $ac_status); }; } &&
32510          { ac_try='test -s conftest.$ac_objext'
32511   { (case "(($ac_try" in
32512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32513   *) ac_try_echo=$ac_try;;
32514 esac
32515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32516   (eval "$ac_try") 2>&5
32517   ac_status=$?
32518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519   (exit $ac_status); }; }; then
32520   ac_cv_cxx_have_std_iterator=yes
32521 else
32522   echo "$as_me: failed program was:" >&5
32523 sed 's/^/| /' conftest.$ac_ext >&5
32524
32525         ac_cv_cxx_have_std_iterator=no
32526 fi
32527
32528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32529   ac_ext=c
32530 ac_cpp='$CPP $CPPFLAGS'
32531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32534
32535
32536 fi
32537 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32538 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32539 if test "$ac_cv_cxx_have_std_iterator" = yes
32540 then
32541
32542 cat >>confdefs.h <<\_ACEOF
32543 #define HAVE_STD_ITERATOR 1
32544 _ACEOF
32545
32546 else
32547
32548 cat >>confdefs.h <<\_ACEOF
32549 #define HAVE_STD_ITERATOR 0
32550 _ACEOF
32551
32552 fi
32553
32554 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32555 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32556 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32557   echo $ECHO_N "(cached) $ECHO_C" >&6
32558 else
32559
32560   ac_ext=cpp
32561 ac_cpp='$CXXCPP $CPPFLAGS'
32562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32565
32566   cat >conftest.$ac_ext <<_ACEOF
32567 /* confdefs.h.  */
32568 _ACEOF
32569 cat confdefs.h >>conftest.$ac_ext
32570 cat >>conftest.$ac_ext <<_ACEOF
32571 /* end confdefs.h.  */
32572 #include <iterator>
32573 #ifdef HAVE_NAMESPACES
32574 using namespace std;
32575 #endif
32576 int
32577 main ()
32578 {
32579 bidirectional_iterator<int,int> t; return 0;
32580   ;
32581   return 0;
32582 }
32583 _ACEOF
32584 rm -f conftest.$ac_objext
32585 if { (ac_try="$ac_compile"
32586 case "(($ac_try" in
32587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32588   *) ac_try_echo=$ac_try;;
32589 esac
32590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32591   (eval "$ac_compile") 2>conftest.er1
32592   ac_status=$?
32593   grep -v '^ *+' conftest.er1 >conftest.err
32594   rm -f conftest.er1
32595   cat conftest.err >&5
32596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32597   (exit $ac_status); } &&
32598          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32599   { (case "(($ac_try" in
32600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32601   *) ac_try_echo=$ac_try;;
32602 esac
32603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32604   (eval "$ac_try") 2>&5
32605   ac_status=$?
32606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32607   (exit $ac_status); }; } &&
32608          { ac_try='test -s conftest.$ac_objext'
32609   { (case "(($ac_try" in
32610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32611   *) ac_try_echo=$ac_try;;
32612 esac
32613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32614   (eval "$ac_try") 2>&5
32615   ac_status=$?
32616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617   (exit $ac_status); }; }; then
32618   ac_cv_cxx_have_bi_iterator=yes
32619 else
32620   echo "$as_me: failed program was:" >&5
32621 sed 's/^/| /' conftest.$ac_ext >&5
32622
32623         ac_cv_cxx_have_bi_iterator=no
32624 fi
32625
32626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32627   ac_ext=c
32628 ac_cpp='$CPP $CPPFLAGS'
32629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32632
32633
32634 fi
32635 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32636 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32637 if test "$ac_cv_cxx_have_bi_iterator" = yes
32638 then
32639
32640 cat >>confdefs.h <<\_ACEOF
32641 #define HAVE_BI_ITERATOR 1
32642 _ACEOF
32643
32644 else
32645
32646 cat >>confdefs.h <<\_ACEOF
32647 #define HAVE_BI_ITERATOR 0
32648 _ACEOF
32649
32650 fi
32651
32652 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32653 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32654 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32655   echo $ECHO_N "(cached) $ECHO_C" >&6
32656 else
32657
32658   ac_ext=cpp
32659 ac_cpp='$CXXCPP $CPPFLAGS'
32660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32663
32664   cat >conftest.$ac_ext <<_ACEOF
32665 /* confdefs.h.  */
32666 _ACEOF
32667 cat confdefs.h >>conftest.$ac_ext
32668 cat >>conftest.$ac_ext <<_ACEOF
32669 /* end confdefs.h.  */
32670 #include <iterator>
32671 #ifdef HAVE_NAMESPACES
32672 using namespace std;
32673 #endif
32674 int
32675 main ()
32676 {
32677 forward_iterator<int,int> t; return 0;
32678   ;
32679   return 0;
32680 }
32681 _ACEOF
32682 rm -f conftest.$ac_objext
32683 if { (ac_try="$ac_compile"
32684 case "(($ac_try" in
32685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32686   *) ac_try_echo=$ac_try;;
32687 esac
32688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32689   (eval "$ac_compile") 2>conftest.er1
32690   ac_status=$?
32691   grep -v '^ *+' conftest.er1 >conftest.err
32692   rm -f conftest.er1
32693   cat conftest.err >&5
32694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695   (exit $ac_status); } &&
32696          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32697   { (case "(($ac_try" in
32698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32699   *) ac_try_echo=$ac_try;;
32700 esac
32701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32702   (eval "$ac_try") 2>&5
32703   ac_status=$?
32704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705   (exit $ac_status); }; } &&
32706          { ac_try='test -s conftest.$ac_objext'
32707   { (case "(($ac_try" in
32708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32709   *) ac_try_echo=$ac_try;;
32710 esac
32711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32712   (eval "$ac_try") 2>&5
32713   ac_status=$?
32714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32715   (exit $ac_status); }; }; then
32716   ac_cv_cxx_have_fwd_iterator=yes
32717 else
32718   echo "$as_me: failed program was:" >&5
32719 sed 's/^/| /' conftest.$ac_ext >&5
32720
32721         ac_cv_cxx_have_fwd_iterator=no
32722 fi
32723
32724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32725   ac_ext=c
32726 ac_cpp='$CPP $CPPFLAGS'
32727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32730
32731
32732 fi
32733 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32734 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32735 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32736 then
32737
32738 cat >>confdefs.h <<\_ACEOF
32739 #define HAVE_FWD_ITERATOR 1
32740 _ACEOF
32741
32742 else
32743
32744 cat >>confdefs.h <<\_ACEOF
32745 #define HAVE_FWD_ITERATOR 0
32746 _ACEOF
32747
32748 fi
32749
32750
32751 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32752 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32753 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32754   echo $ECHO_N "(cached) $ECHO_C" >&6
32755 else
32756   ac_ext=cpp
32757 ac_cpp='$CXXCPP $CPPFLAGS'
32758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32761
32762    cat >conftest.$ac_ext <<_ACEOF
32763 /* confdefs.h.  */
32764 _ACEOF
32765 cat confdefs.h >>conftest.$ac_ext
32766 cat >>conftest.$ac_ext <<_ACEOF
32767 /* end confdefs.h.  */
32768 #include <math.h>
32769 int
32770 main ()
32771 {
32772 float f; isnan(f);
32773   ;
32774   return 0;
32775 }
32776 _ACEOF
32777 rm -f conftest.$ac_objext
32778 if { (ac_try="$ac_compile"
32779 case "(($ac_try" in
32780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32781   *) ac_try_echo=$ac_try;;
32782 esac
32783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32784   (eval "$ac_compile") 2>conftest.er1
32785   ac_status=$?
32786   grep -v '^ *+' conftest.er1 >conftest.err
32787   rm -f conftest.er1
32788   cat conftest.err >&5
32789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32790   (exit $ac_status); } &&
32791          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32792   { (case "(($ac_try" in
32793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32794   *) ac_try_echo=$ac_try;;
32795 esac
32796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32797   (eval "$ac_try") 2>&5
32798   ac_status=$?
32799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800   (exit $ac_status); }; } &&
32801          { ac_try='test -s conftest.$ac_objext'
32802   { (case "(($ac_try" in
32803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32804   *) ac_try_echo=$ac_try;;
32805 esac
32806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32807   (eval "$ac_try") 2>&5
32808   ac_status=$?
32809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810   (exit $ac_status); }; }; then
32811   ac_cv_func_isnan_in_math_h=yes
32812 else
32813   echo "$as_me: failed program was:" >&5
32814 sed 's/^/| /' conftest.$ac_ext >&5
32815
32816         ac_cv_func_isnan_in_math_h=no
32817 fi
32818
32819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32820   ac_ext=c
32821 ac_cpp='$CPP $CPPFLAGS'
32822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32825
32826 fi
32827 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32828 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32829
32830
32831 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32832
32833 cat >>confdefs.h <<\_ACEOF
32834 #define HAVE_ISNAN_IN_MATH_H 1
32835 _ACEOF
32836
32837 fi
32838
32839 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32840 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32841 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32842   echo $ECHO_N "(cached) $ECHO_C" >&6
32843 else
32844   ac_ext=cpp
32845 ac_cpp='$CXXCPP $CPPFLAGS'
32846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32849
32850    cat >conftest.$ac_ext <<_ACEOF
32851 /* confdefs.h.  */
32852 _ACEOF
32853 cat confdefs.h >>conftest.$ac_ext
32854 cat >>conftest.$ac_ext <<_ACEOF
32855 /* end confdefs.h.  */
32856 #include <cmath>
32857 int
32858 main ()
32859 {
32860 float f; isnan(f);
32861   ;
32862   return 0;
32863 }
32864 _ACEOF
32865 rm -f conftest.$ac_objext
32866 if { (ac_try="$ac_compile"
32867 case "(($ac_try" in
32868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32869   *) ac_try_echo=$ac_try;;
32870 esac
32871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32872   (eval "$ac_compile") 2>conftest.er1
32873   ac_status=$?
32874   grep -v '^ *+' conftest.er1 >conftest.err
32875   rm -f conftest.er1
32876   cat conftest.err >&5
32877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878   (exit $ac_status); } &&
32879          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32880   { (case "(($ac_try" in
32881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32882   *) ac_try_echo=$ac_try;;
32883 esac
32884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32885   (eval "$ac_try") 2>&5
32886   ac_status=$?
32887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32888   (exit $ac_status); }; } &&
32889          { ac_try='test -s conftest.$ac_objext'
32890   { (case "(($ac_try" in
32891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32892   *) ac_try_echo=$ac_try;;
32893 esac
32894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32895   (eval "$ac_try") 2>&5
32896   ac_status=$?
32897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32898   (exit $ac_status); }; }; then
32899   ac_cv_func_isnan_in_cmath=yes
32900 else
32901   echo "$as_me: failed program was:" >&5
32902 sed 's/^/| /' conftest.$ac_ext >&5
32903
32904         ac_cv_func_isnan_in_cmath=no
32905 fi
32906
32907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32908   ac_ext=c
32909 ac_cpp='$CPP $CPPFLAGS'
32910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32913
32914 fi
32915 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32916 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32917
32918 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32919
32920 cat >>confdefs.h <<\_ACEOF
32921 #define HAVE_ISNAN_IN_CMATH 1
32922 _ACEOF
32923
32924 fi
32925
32926 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32927 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32928 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32929   echo $ECHO_N "(cached) $ECHO_C" >&6
32930 else
32931   ac_ext=cpp
32932 ac_cpp='$CXXCPP $CPPFLAGS'
32933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32936
32937    cat >conftest.$ac_ext <<_ACEOF
32938 /* confdefs.h.  */
32939 _ACEOF
32940 cat confdefs.h >>conftest.$ac_ext
32941 cat >>conftest.$ac_ext <<_ACEOF
32942 /* end confdefs.h.  */
32943 #include <cmath>
32944 int
32945 main ()
32946 {
32947 float f; std::isnan(f);
32948   ;
32949   return 0;
32950 }
32951 _ACEOF
32952 rm -f conftest.$ac_objext
32953 if { (ac_try="$ac_compile"
32954 case "(($ac_try" in
32955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32956   *) ac_try_echo=$ac_try;;
32957 esac
32958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32959   (eval "$ac_compile") 2>conftest.er1
32960   ac_status=$?
32961   grep -v '^ *+' conftest.er1 >conftest.err
32962   rm -f conftest.er1
32963   cat conftest.err >&5
32964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965   (exit $ac_status); } &&
32966          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32967   { (case "(($ac_try" in
32968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969   *) ac_try_echo=$ac_try;;
32970 esac
32971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32972   (eval "$ac_try") 2>&5
32973   ac_status=$?
32974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975   (exit $ac_status); }; } &&
32976          { ac_try='test -s conftest.$ac_objext'
32977   { (case "(($ac_try" in
32978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32979   *) ac_try_echo=$ac_try;;
32980 esac
32981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32982   (eval "$ac_try") 2>&5
32983   ac_status=$?
32984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985   (exit $ac_status); }; }; then
32986   ac_cv_func_std_isnan_in_cmath=yes
32987 else
32988   echo "$as_me: failed program was:" >&5
32989 sed 's/^/| /' conftest.$ac_ext >&5
32990
32991         ac_cv_func_std_isnan_in_cmath=no
32992 fi
32993
32994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32995   ac_ext=c
32996 ac_cpp='$CPP $CPPFLAGS'
32997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33000
33001 fi
33002 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33003 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33004
33005 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33006
33007 cat >>confdefs.h <<\_ACEOF
33008 #define HAVE_STD_ISNAN_IN_CMATH 1
33009 _ACEOF
33010
33011 fi
33012
33013
33014 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33015 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33016 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33017   echo $ECHO_N "(cached) $ECHO_C" >&6
33018 else
33019   ac_ext=cpp
33020 ac_cpp='$CXXCPP $CPPFLAGS'
33021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33024
33025    cat >conftest.$ac_ext <<_ACEOF
33026 /* confdefs.h.  */
33027 _ACEOF
33028 cat confdefs.h >>conftest.$ac_ext
33029 cat >>conftest.$ac_ext <<_ACEOF
33030 /* end confdefs.h.  */
33031 #include <math.h>
33032 int
33033 main ()
33034 {
33035 float f; isinf(f);
33036   ;
33037   return 0;
33038 }
33039 _ACEOF
33040 rm -f conftest.$ac_objext
33041 if { (ac_try="$ac_compile"
33042 case "(($ac_try" in
33043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33044   *) ac_try_echo=$ac_try;;
33045 esac
33046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33047   (eval "$ac_compile") 2>conftest.er1
33048   ac_status=$?
33049   grep -v '^ *+' conftest.er1 >conftest.err
33050   rm -f conftest.er1
33051   cat conftest.err >&5
33052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053   (exit $ac_status); } &&
33054          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33055   { (case "(($ac_try" in
33056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33057   *) ac_try_echo=$ac_try;;
33058 esac
33059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33060   (eval "$ac_try") 2>&5
33061   ac_status=$?
33062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063   (exit $ac_status); }; } &&
33064          { ac_try='test -s conftest.$ac_objext'
33065   { (case "(($ac_try" in
33066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33067   *) ac_try_echo=$ac_try;;
33068 esac
33069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33070   (eval "$ac_try") 2>&5
33071   ac_status=$?
33072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33073   (exit $ac_status); }; }; then
33074   ac_cv_func_isinf_in_math_h=yes
33075 else
33076   echo "$as_me: failed program was:" >&5
33077 sed 's/^/| /' conftest.$ac_ext >&5
33078
33079         ac_cv_func_isinf_in_math_h=no
33080 fi
33081
33082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33083   ac_ext=c
33084 ac_cpp='$CPP $CPPFLAGS'
33085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33088
33089 fi
33090 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33091 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33092
33093 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33094
33095 cat >>confdefs.h <<\_ACEOF
33096 #define HAVE_ISINF_IN_MATH_H 1
33097 _ACEOF
33098
33099 fi
33100
33101 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33102 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33103 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33104   echo $ECHO_N "(cached) $ECHO_C" >&6
33105 else
33106   ac_ext=cpp
33107 ac_cpp='$CXXCPP $CPPFLAGS'
33108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33111
33112    cat >conftest.$ac_ext <<_ACEOF
33113 /* confdefs.h.  */
33114 _ACEOF
33115 cat confdefs.h >>conftest.$ac_ext
33116 cat >>conftest.$ac_ext <<_ACEOF
33117 /* end confdefs.h.  */
33118 #include <cmath>
33119 int
33120 main ()
33121 {
33122 float f; isinf(f);
33123   ;
33124   return 0;
33125 }
33126 _ACEOF
33127 rm -f conftest.$ac_objext
33128 if { (ac_try="$ac_compile"
33129 case "(($ac_try" in
33130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33131   *) ac_try_echo=$ac_try;;
33132 esac
33133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33134   (eval "$ac_compile") 2>conftest.er1
33135   ac_status=$?
33136   grep -v '^ *+' conftest.er1 >conftest.err
33137   rm -f conftest.er1
33138   cat conftest.err >&5
33139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140   (exit $ac_status); } &&
33141          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33142   { (case "(($ac_try" in
33143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33144   *) ac_try_echo=$ac_try;;
33145 esac
33146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33147   (eval "$ac_try") 2>&5
33148   ac_status=$?
33149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150   (exit $ac_status); }; } &&
33151          { ac_try='test -s conftest.$ac_objext'
33152   { (case "(($ac_try" in
33153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33154   *) ac_try_echo=$ac_try;;
33155 esac
33156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33157   (eval "$ac_try") 2>&5
33158   ac_status=$?
33159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33160   (exit $ac_status); }; }; then
33161   ac_cv_func_isinf_in_cmath=yes
33162 else
33163   echo "$as_me: failed program was:" >&5
33164 sed 's/^/| /' conftest.$ac_ext >&5
33165
33166         ac_cv_func_isinf_in_cmath=no
33167 fi
33168
33169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33170   ac_ext=c
33171 ac_cpp='$CPP $CPPFLAGS'
33172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33175
33176 fi
33177 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33178 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33179
33180 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33181
33182 cat >>confdefs.h <<\_ACEOF
33183 #define HAVE_ISINF_IN_CMATH 1
33184 _ACEOF
33185
33186 fi
33187
33188 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33189 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33190 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33191   echo $ECHO_N "(cached) $ECHO_C" >&6
33192 else
33193   ac_ext=cpp
33194 ac_cpp='$CXXCPP $CPPFLAGS'
33195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33198
33199    cat >conftest.$ac_ext <<_ACEOF
33200 /* confdefs.h.  */
33201 _ACEOF
33202 cat confdefs.h >>conftest.$ac_ext
33203 cat >>conftest.$ac_ext <<_ACEOF
33204 /* end confdefs.h.  */
33205 #include <cmath>
33206 int
33207 main ()
33208 {
33209 float f; std::isinf(f)}
33210   ;
33211   return 0;
33212 }
33213 _ACEOF
33214 rm -f conftest.$ac_objext
33215 if { (ac_try="$ac_compile"
33216 case "(($ac_try" in
33217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33218   *) ac_try_echo=$ac_try;;
33219 esac
33220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33221   (eval "$ac_compile") 2>conftest.er1
33222   ac_status=$?
33223   grep -v '^ *+' conftest.er1 >conftest.err
33224   rm -f conftest.er1
33225   cat conftest.err >&5
33226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33227   (exit $ac_status); } &&
33228          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33229   { (case "(($ac_try" in
33230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33231   *) ac_try_echo=$ac_try;;
33232 esac
33233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33234   (eval "$ac_try") 2>&5
33235   ac_status=$?
33236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237   (exit $ac_status); }; } &&
33238          { ac_try='test -s conftest.$ac_objext'
33239   { (case "(($ac_try" in
33240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33241   *) ac_try_echo=$ac_try;;
33242 esac
33243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33244   (eval "$ac_try") 2>&5
33245   ac_status=$?
33246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247   (exit $ac_status); }; }; then
33248   ac_cv_func_std_isinf_in_cmath=yes
33249 else
33250   echo "$as_me: failed program was:" >&5
33251 sed 's/^/| /' conftest.$ac_ext >&5
33252
33253         ac_cv_func_std_isinf_in_cmath=no
33254 fi
33255
33256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33257   ac_ext=c
33258 ac_cpp='$CPP $CPPFLAGS'
33259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33262
33263 fi
33264 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33265 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33266
33267 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33268
33269 cat >>confdefs.h <<\_ACEOF
33270 #define HAVE_STD_ISINF_IN_CMATH 1
33271 _ACEOF
33272
33273 fi
33274
33275 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33276 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33277 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33278   echo $ECHO_N "(cached) $ECHO_C" >&6
33279 else
33280   ac_ext=cpp
33281 ac_cpp='$CXXCPP $CPPFLAGS'
33282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33285
33286    cat >conftest.$ac_ext <<_ACEOF
33287 /* confdefs.h.  */
33288 _ACEOF
33289 cat confdefs.h >>conftest.$ac_ext
33290 cat >>conftest.$ac_ext <<_ACEOF
33291 /* end confdefs.h.  */
33292 #include <ieeefp.h>
33293 int
33294 main ()
33295 {
33296 float f; finite(f);
33297   ;
33298   return 0;
33299 }
33300 _ACEOF
33301 rm -f conftest.$ac_objext
33302 if { (ac_try="$ac_compile"
33303 case "(($ac_try" in
33304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33305   *) ac_try_echo=$ac_try;;
33306 esac
33307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33308   (eval "$ac_compile") 2>conftest.er1
33309   ac_status=$?
33310   grep -v '^ *+' conftest.er1 >conftest.err
33311   rm -f conftest.er1
33312   cat conftest.err >&5
33313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33314   (exit $ac_status); } &&
33315          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33316   { (case "(($ac_try" in
33317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33318   *) ac_try_echo=$ac_try;;
33319 esac
33320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33321   (eval "$ac_try") 2>&5
33322   ac_status=$?
33323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324   (exit $ac_status); }; } &&
33325          { ac_try='test -s conftest.$ac_objext'
33326   { (case "(($ac_try" in
33327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33328   *) ac_try_echo=$ac_try;;
33329 esac
33330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33331   (eval "$ac_try") 2>&5
33332   ac_status=$?
33333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334   (exit $ac_status); }; }; then
33335   ac_cv_func_finite_in_ieeefp_h=yes
33336 else
33337   echo "$as_me: failed program was:" >&5
33338 sed 's/^/| /' conftest.$ac_ext >&5
33339
33340         ac_cv_func_finite_in_ieeefp_h=no
33341 fi
33342
33343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33344   ac_ext=c
33345 ac_cpp='$CPP $CPPFLAGS'
33346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33349
33350 fi
33351 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33352 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33353
33354 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33355
33356 cat >>confdefs.h <<\_ACEOF
33357 #define HAVE_FINITE_IN_IEEEFP_H 1
33358 _ACEOF
33359
33360 fi
33361
33362
33363
33364 if test "$llvm_cv_platform_type" = "Unix" ; then
33365
33366
33367 for ac_header in stdlib.h unistd.h
33368 do
33369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33371   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33374   echo $ECHO_N "(cached) $ECHO_C" >&6
33375 fi
33376 ac_res=`eval echo '${'$as_ac_Header'}'`
33377                { echo "$as_me:$LINENO: result: $ac_res" >&5
33378 echo "${ECHO_T}$ac_res" >&6; }
33379 else
33380   # Is the header compilable?
33381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33383 cat >conftest.$ac_ext <<_ACEOF
33384 /* confdefs.h.  */
33385 _ACEOF
33386 cat confdefs.h >>conftest.$ac_ext
33387 cat >>conftest.$ac_ext <<_ACEOF
33388 /* end confdefs.h.  */
33389 $ac_includes_default
33390 #include <$ac_header>
33391 _ACEOF
33392 rm -f conftest.$ac_objext
33393 if { (ac_try="$ac_compile"
33394 case "(($ac_try" in
33395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33396   *) ac_try_echo=$ac_try;;
33397 esac
33398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33399   (eval "$ac_compile") 2>conftest.er1
33400   ac_status=$?
33401   grep -v '^ *+' conftest.er1 >conftest.err
33402   rm -f conftest.er1
33403   cat conftest.err >&5
33404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405   (exit $ac_status); } &&
33406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33407   { (case "(($ac_try" in
33408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33409   *) ac_try_echo=$ac_try;;
33410 esac
33411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33412   (eval "$ac_try") 2>&5
33413   ac_status=$?
33414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415   (exit $ac_status); }; } &&
33416          { ac_try='test -s conftest.$ac_objext'
33417   { (case "(($ac_try" in
33418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33419   *) ac_try_echo=$ac_try;;
33420 esac
33421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33422   (eval "$ac_try") 2>&5
33423   ac_status=$?
33424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425   (exit $ac_status); }; }; then
33426   ac_header_compiler=yes
33427 else
33428   echo "$as_me: failed program was:" >&5
33429 sed 's/^/| /' conftest.$ac_ext >&5
33430
33431         ac_header_compiler=no
33432 fi
33433
33434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33436 echo "${ECHO_T}$ac_header_compiler" >&6; }
33437
33438 # Is the header present?
33439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33441 cat >conftest.$ac_ext <<_ACEOF
33442 /* confdefs.h.  */
33443 _ACEOF
33444 cat confdefs.h >>conftest.$ac_ext
33445 cat >>conftest.$ac_ext <<_ACEOF
33446 /* end confdefs.h.  */
33447 #include <$ac_header>
33448 _ACEOF
33449 if { (ac_try="$ac_cpp conftest.$ac_ext"
33450 case "(($ac_try" in
33451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33452   *) ac_try_echo=$ac_try;;
33453 esac
33454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33455   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33456   ac_status=$?
33457   grep -v '^ *+' conftest.er1 >conftest.err
33458   rm -f conftest.er1
33459   cat conftest.err >&5
33460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33461   (exit $ac_status); } >/dev/null; then
33462   if test -s conftest.err; then
33463     ac_cpp_err=$ac_c_preproc_warn_flag
33464     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33465   else
33466     ac_cpp_err=
33467   fi
33468 else
33469   ac_cpp_err=yes
33470 fi
33471 if test -z "$ac_cpp_err"; then
33472   ac_header_preproc=yes
33473 else
33474   echo "$as_me: failed program was:" >&5
33475 sed 's/^/| /' conftest.$ac_ext >&5
33476
33477   ac_header_preproc=no
33478 fi
33479
33480 rm -f conftest.err conftest.$ac_ext
33481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33482 echo "${ECHO_T}$ac_header_preproc" >&6; }
33483
33484 # So?  What about this header?
33485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33486   yes:no: )
33487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33491     ac_header_preproc=yes
33492     ;;
33493   no:yes:* )
33494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33506     ( cat <<\_ASBOX
33507 ## ----------------------------------- ##
33508 ## Report this to llvmbugs@cs.uiuc.edu ##
33509 ## ----------------------------------- ##
33510 _ASBOX
33511      ) | sed "s/^/$as_me: WARNING:     /" >&2
33512     ;;
33513 esac
33514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33517   echo $ECHO_N "(cached) $ECHO_C" >&6
33518 else
33519   eval "$as_ac_Header=\$ac_header_preproc"
33520 fi
33521 ac_res=`eval echo '${'$as_ac_Header'}'`
33522                { echo "$as_me:$LINENO: result: $ac_res" >&5
33523 echo "${ECHO_T}$ac_res" >&6; }
33524
33525 fi
33526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33527   cat >>confdefs.h <<_ACEOF
33528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33529 _ACEOF
33530
33531 fi
33532
33533 done
33534
33535
33536 for ac_func in getpagesize
33537 do
33538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33542   echo $ECHO_N "(cached) $ECHO_C" >&6
33543 else
33544   cat >conftest.$ac_ext <<_ACEOF
33545 /* confdefs.h.  */
33546 _ACEOF
33547 cat confdefs.h >>conftest.$ac_ext
33548 cat >>conftest.$ac_ext <<_ACEOF
33549 /* end confdefs.h.  */
33550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33552 #define $ac_func innocuous_$ac_func
33553
33554 /* System header to define __stub macros and hopefully few prototypes,
33555     which can conflict with char $ac_func (); below.
33556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33557     <limits.h> exists even on freestanding compilers.  */
33558
33559 #ifdef __STDC__
33560 # include <limits.h>
33561 #else
33562 # include <assert.h>
33563 #endif
33564
33565 #undef $ac_func
33566
33567 /* Override any GCC internal prototype to avoid an error.
33568    Use char because int might match the return type of a GCC
33569    builtin and then its argument prototype would still apply.  */
33570 #ifdef __cplusplus
33571 extern "C"
33572 #endif
33573 char $ac_func ();
33574 /* The GNU C library defines this for functions which it implements
33575     to always fail with ENOSYS.  Some functions are actually named
33576     something starting with __ and the normal name is an alias.  */
33577 #if defined __stub_$ac_func || defined __stub___$ac_func
33578 choke me
33579 #endif
33580
33581 int
33582 main ()
33583 {
33584 return $ac_func ();
33585   ;
33586   return 0;
33587 }
33588 _ACEOF
33589 rm -f conftest.$ac_objext conftest$ac_exeext
33590 if { (ac_try="$ac_link"
33591 case "(($ac_try" in
33592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33593   *) ac_try_echo=$ac_try;;
33594 esac
33595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33596   (eval "$ac_link") 2>conftest.er1
33597   ac_status=$?
33598   grep -v '^ *+' conftest.er1 >conftest.err
33599   rm -f conftest.er1
33600   cat conftest.err >&5
33601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602   (exit $ac_status); } &&
33603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33604   { (case "(($ac_try" in
33605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33606   *) ac_try_echo=$ac_try;;
33607 esac
33608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33609   (eval "$ac_try") 2>&5
33610   ac_status=$?
33611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612   (exit $ac_status); }; } &&
33613          { ac_try='test -s conftest$ac_exeext'
33614   { (case "(($ac_try" in
33615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33616   *) ac_try_echo=$ac_try;;
33617 esac
33618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33619   (eval "$ac_try") 2>&5
33620   ac_status=$?
33621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33622   (exit $ac_status); }; }; then
33623   eval "$as_ac_var=yes"
33624 else
33625   echo "$as_me: failed program was:" >&5
33626 sed 's/^/| /' conftest.$ac_ext >&5
33627
33628         eval "$as_ac_var=no"
33629 fi
33630
33631 rm -f core conftest.err conftest.$ac_objext \
33632       conftest$ac_exeext conftest.$ac_ext
33633 fi
33634 ac_res=`eval echo '${'$as_ac_var'}'`
33635                { echo "$as_me:$LINENO: result: $ac_res" >&5
33636 echo "${ECHO_T}$ac_res" >&6; }
33637 if test `eval echo '${'$as_ac_var'}'` = yes; then
33638   cat >>confdefs.h <<_ACEOF
33639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33640 _ACEOF
33641
33642 fi
33643 done
33644
33645 { echo "$as_me:$LINENO: checking for working mmap" >&5
33646 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33647 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33648   echo $ECHO_N "(cached) $ECHO_C" >&6
33649 else
33650   if test "$cross_compiling" = yes; then
33651   ac_cv_func_mmap_fixed_mapped=no
33652 else
33653   cat >conftest.$ac_ext <<_ACEOF
33654 /* confdefs.h.  */
33655 _ACEOF
33656 cat confdefs.h >>conftest.$ac_ext
33657 cat >>conftest.$ac_ext <<_ACEOF
33658 /* end confdefs.h.  */
33659 $ac_includes_default
33660 /* malloc might have been renamed as rpl_malloc. */
33661 #undef malloc
33662
33663 /* Thanks to Mike Haertel and Jim Avera for this test.
33664    Here is a matrix of mmap possibilities:
33665         mmap private not fixed
33666         mmap private fixed at somewhere currently unmapped
33667         mmap private fixed at somewhere already mapped
33668         mmap shared not fixed
33669         mmap shared fixed at somewhere currently unmapped
33670         mmap shared fixed at somewhere already mapped
33671    For private mappings, we should verify that changes cannot be read()
33672    back from the file, nor mmap's back from the file at a different
33673    address.  (There have been systems where private was not correctly
33674    implemented like the infamous i386 svr4.0, and systems where the
33675    VM page cache was not coherent with the file system buffer cache
33676    like early versions of FreeBSD and possibly contemporary NetBSD.)
33677    For shared mappings, we should conversely verify that changes get
33678    propagated back to all the places they're supposed to be.
33679
33680    Grep wants private fixed already mapped.
33681    The main things grep needs to know about mmap are:
33682    * does it exist and is it safe to write into the mmap'd area
33683    * how to use it (BSD variants)  */
33684
33685 #include <fcntl.h>
33686 #include <sys/mman.h>
33687
33688 #if !STDC_HEADERS && !HAVE_STDLIB_H
33689 char *malloc ();
33690 #endif
33691
33692 /* This mess was copied from the GNU getpagesize.h.  */
33693 #if !HAVE_GETPAGESIZE
33694 /* Assume that all systems that can run configure have sys/param.h.  */
33695 # if !HAVE_SYS_PARAM_H
33696 #  define HAVE_SYS_PARAM_H 1
33697 # endif
33698
33699 # ifdef _SC_PAGESIZE
33700 #  define getpagesize() sysconf(_SC_PAGESIZE)
33701 # else /* no _SC_PAGESIZE */
33702 #  if HAVE_SYS_PARAM_H
33703 #   include <sys/param.h>
33704 #   ifdef EXEC_PAGESIZE
33705 #    define getpagesize() EXEC_PAGESIZE
33706 #   else /* no EXEC_PAGESIZE */
33707 #    ifdef NBPG
33708 #     define getpagesize() NBPG * CLSIZE
33709 #     ifndef CLSIZE
33710 #      define CLSIZE 1
33711 #     endif /* no CLSIZE */
33712 #    else /* no NBPG */
33713 #     ifdef NBPC
33714 #      define getpagesize() NBPC
33715 #     else /* no NBPC */
33716 #      ifdef PAGESIZE
33717 #       define getpagesize() PAGESIZE
33718 #      endif /* PAGESIZE */
33719 #     endif /* no NBPC */
33720 #    endif /* no NBPG */
33721 #   endif /* no EXEC_PAGESIZE */
33722 #  else /* no HAVE_SYS_PARAM_H */
33723 #   define getpagesize() 8192   /* punt totally */
33724 #  endif /* no HAVE_SYS_PARAM_H */
33725 # endif /* no _SC_PAGESIZE */
33726
33727 #endif /* no HAVE_GETPAGESIZE */
33728
33729 int
33730 main ()
33731 {
33732   char *data, *data2, *data3;
33733   int i, pagesize;
33734   int fd;
33735
33736   pagesize = getpagesize ();
33737
33738   /* First, make a file with some known garbage in it. */
33739   data = (char *) malloc (pagesize);
33740   if (!data)
33741     return 1;
33742   for (i = 0; i < pagesize; ++i)
33743     *(data + i) = rand ();
33744   umask (0);
33745   fd = creat ("conftest.mmap", 0600);
33746   if (fd < 0)
33747     return 1;
33748   if (write (fd, data, pagesize) != pagesize)
33749     return 1;
33750   close (fd);
33751
33752   /* Next, try to mmap the file at a fixed address which already has
33753      something else allocated at it.  If we can, also make sure that
33754      we see the same garbage.  */
33755   fd = open ("conftest.mmap", O_RDWR);
33756   if (fd < 0)
33757     return 1;
33758   data2 = (char *) malloc (2 * pagesize);
33759   if (!data2)
33760     return 1;
33761   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33762   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33763                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33764     return 1;
33765   for (i = 0; i < pagesize; ++i)
33766     if (*(data + i) != *(data2 + i))
33767       return 1;
33768
33769   /* Finally, make sure that changes to the mapped area do not
33770      percolate back to the file as seen by read().  (This is a bug on
33771      some variants of i386 svr4.0.)  */
33772   for (i = 0; i < pagesize; ++i)
33773     *(data2 + i) = *(data2 + i) + 1;
33774   data3 = (char *) malloc (pagesize);
33775   if (!data3)
33776     return 1;
33777   if (read (fd, data3, pagesize) != pagesize)
33778     return 1;
33779   for (i = 0; i < pagesize; ++i)
33780     if (*(data + i) != *(data3 + i))
33781       return 1;
33782   close (fd);
33783   return 0;
33784 }
33785 _ACEOF
33786 rm -f conftest$ac_exeext
33787 if { (ac_try="$ac_link"
33788 case "(($ac_try" in
33789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33790   *) ac_try_echo=$ac_try;;
33791 esac
33792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33793   (eval "$ac_link") 2>&5
33794   ac_status=$?
33795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33797   { (case "(($ac_try" in
33798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33799   *) ac_try_echo=$ac_try;;
33800 esac
33801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33802   (eval "$ac_try") 2>&5
33803   ac_status=$?
33804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805   (exit $ac_status); }; }; then
33806   ac_cv_func_mmap_fixed_mapped=yes
33807 else
33808   echo "$as_me: program exited with status $ac_status" >&5
33809 echo "$as_me: failed program was:" >&5
33810 sed 's/^/| /' conftest.$ac_ext >&5
33811
33812 ( exit $ac_status )
33813 ac_cv_func_mmap_fixed_mapped=no
33814 fi
33815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33816 fi
33817
33818
33819 fi
33820 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33821 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33822 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33823
33824 cat >>confdefs.h <<\_ACEOF
33825 #define HAVE_MMAP 1
33826 _ACEOF
33827
33828 fi
33829 rm -f conftest.mmap
33830
33831   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33832 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33833 if test "${ac_cv_func_mmap_file+set}" = set; then
33834   echo $ECHO_N "(cached) $ECHO_C" >&6
33835 else
33836    ac_ext=c
33837 ac_cpp='$CPP $CPPFLAGS'
33838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33841
33842   if test "$cross_compiling" = yes; then
33843   ac_cv_func_mmap_file=no
33844 else
33845   cat >conftest.$ac_ext <<_ACEOF
33846
33847     /* confdefs.h.  */
33848 _ACEOF
33849 cat confdefs.h >>conftest.$ac_ext
33850 cat >>conftest.$ac_ext <<_ACEOF
33851 /* end confdefs.h.  */
33852
33853 #include <sys/types.h>
33854 #include <sys/mman.h>
33855 #include <fcntl.h>
33856
33857 int
33858 main ()
33859 {
33860
33861   int fd;
33862   fd = creat ("foo",0777);
33863   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33864   unlink ("foo");
33865   return (fd != (int) MAP_FAILED);
33866   ;
33867   return 0;
33868 }
33869 _ACEOF
33870 rm -f conftest$ac_exeext
33871 if { (ac_try="$ac_link"
33872 case "(($ac_try" in
33873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33874   *) ac_try_echo=$ac_try;;
33875 esac
33876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33877   (eval "$ac_link") 2>&5
33878   ac_status=$?
33879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33881   { (case "(($ac_try" in
33882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33883   *) ac_try_echo=$ac_try;;
33884 esac
33885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33886   (eval "$ac_try") 2>&5
33887   ac_status=$?
33888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33889   (exit $ac_status); }; }; then
33890   ac_cv_func_mmap_file=yes
33891 else
33892   echo "$as_me: program exited with status $ac_status" >&5
33893 echo "$as_me: failed program was:" >&5
33894 sed 's/^/| /' conftest.$ac_ext >&5
33895
33896 ( exit $ac_status )
33897 ac_cv_func_mmap_file=no
33898 fi
33899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33900 fi
33901
33902
33903   ac_ext=c
33904 ac_cpp='$CPP $CPPFLAGS'
33905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33908
33909
33910 fi
33911 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33912 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33913 if test "$ac_cv_func_mmap_file" = yes; then
33914
33915 cat >>confdefs.h <<\_ACEOF
33916 #define HAVE_MMAP_FILE
33917 _ACEOF
33918
33919    MMAP_FILE=yes
33920
33921 fi
33922
33923   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33924 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33925 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33926   echo $ECHO_N "(cached) $ECHO_C" >&6
33927 else
33928   if test "$llvm_cv_os_type" = "Interix" ; then
33929    ac_cv_need_dev_zero_for_mmap=yes
33930  else
33931    ac_cv_need_dev_zero_for_mmap=no
33932  fi
33933
33934 fi
33935 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33936 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33937 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33938
33939 cat >>confdefs.h <<\_ACEOF
33940 #define NEED_DEV_ZERO_FOR_MMAP 1
33941 _ACEOF
33942
33943 fi
33944
33945   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33946   then
33947     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33948 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33949   fi
33950   if test "$ac_cv_func_mmap_file" = "no"
33951   then
33952     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33953 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33954   fi
33955 fi
33956
33957
33958
33959 for ac_func in __dso_handle
33960 do
33961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33965   echo $ECHO_N "(cached) $ECHO_C" >&6
33966 else
33967   cat >conftest.$ac_ext <<_ACEOF
33968 /* confdefs.h.  */
33969 _ACEOF
33970 cat confdefs.h >>conftest.$ac_ext
33971 cat >>conftest.$ac_ext <<_ACEOF
33972 /* end confdefs.h.  */
33973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33975 #define $ac_func innocuous_$ac_func
33976
33977 /* System header to define __stub macros and hopefully few prototypes,
33978     which can conflict with char $ac_func (); below.
33979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33980     <limits.h> exists even on freestanding compilers.  */
33981
33982 #ifdef __STDC__
33983 # include <limits.h>
33984 #else
33985 # include <assert.h>
33986 #endif
33987
33988 #undef $ac_func
33989
33990 /* Override any GCC internal prototype to avoid an error.
33991    Use char because int might match the return type of a GCC
33992    builtin and then its argument prototype would still apply.  */
33993 #ifdef __cplusplus
33994 extern "C"
33995 #endif
33996 char $ac_func ();
33997 /* The GNU C library defines this for functions which it implements
33998     to always fail with ENOSYS.  Some functions are actually named
33999     something starting with __ and the normal name is an alias.  */
34000 #if defined __stub_$ac_func || defined __stub___$ac_func
34001 choke me
34002 #endif
34003
34004 int
34005 main ()
34006 {
34007 return $ac_func ();
34008   ;
34009   return 0;
34010 }
34011 _ACEOF
34012 rm -f conftest.$ac_objext conftest$ac_exeext
34013 if { (ac_try="$ac_link"
34014 case "(($ac_try" in
34015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34016   *) ac_try_echo=$ac_try;;
34017 esac
34018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34019   (eval "$ac_link") 2>conftest.er1
34020   ac_status=$?
34021   grep -v '^ *+' conftest.er1 >conftest.err
34022   rm -f conftest.er1
34023   cat conftest.err >&5
34024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025   (exit $ac_status); } &&
34026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34027   { (case "(($ac_try" in
34028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34029   *) ac_try_echo=$ac_try;;
34030 esac
34031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34032   (eval "$ac_try") 2>&5
34033   ac_status=$?
34034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035   (exit $ac_status); }; } &&
34036          { ac_try='test -s conftest$ac_exeext'
34037   { (case "(($ac_try" in
34038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34039   *) ac_try_echo=$ac_try;;
34040 esac
34041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34042   (eval "$ac_try") 2>&5
34043   ac_status=$?
34044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34045   (exit $ac_status); }; }; then
34046   eval "$as_ac_var=yes"
34047 else
34048   echo "$as_me: failed program was:" >&5
34049 sed 's/^/| /' conftest.$ac_ext >&5
34050
34051         eval "$as_ac_var=no"
34052 fi
34053
34054 rm -f core conftest.err conftest.$ac_objext \
34055       conftest$ac_exeext conftest.$ac_ext
34056 fi
34057 ac_res=`eval echo '${'$as_ac_var'}'`
34058                { echo "$as_me:$LINENO: result: $ac_res" >&5
34059 echo "${ECHO_T}$ac_res" >&6; }
34060 if test `eval echo '${'$as_ac_var'}'` = yes; then
34061   cat >>confdefs.h <<_ACEOF
34062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34063 _ACEOF
34064
34065 fi
34066 done
34067
34068
34069 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34070 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34071 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34072   echo $ECHO_N "(cached) $ECHO_C" >&6
34073 else
34074   llvm_cv_llvmgcc_sanity="no"
34075 if test -x "$LLVMGCC" ; then
34076   cp /dev/null conftest.c
34077   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34078       grep 'target datalayout =' > /dev/null 2>&1
34079   if test $? -eq 0 ; then
34080     llvm_cv_llvmgcc_sanity="yes"
34081   fi
34082   rm conftest.c
34083 fi
34084 fi
34085 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34086 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34087
34088 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34089   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34090 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34091   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34092   LLVMCC1=$llvmcc1path
34093
34094   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34095   LLVMCC1PLUS=$llvmcc1pluspath
34096
34097   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34098   LLVMGCCDIR=$llvmgccdir
34099
34100   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34101   LLVMGCCLIBEXEC=$llvmgcclibexec
34102
34103   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34104   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34105   LLVMGCC_VERSION=$llvmgccversion
34106
34107   LLVMGCC_MAJVERS=$llvmgccmajvers
34108
34109   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34110   LLVMGCC_LANGS=$llvmgcclangs
34111
34112   { echo "$as_me:$LINENO: result: ok" >&5
34113 echo "${ECHO_T}ok" >&6; }
34114 fi
34115
34116 SHLIBEXT=$libltdl_cv_shlibext
34117
34118
34119 # Translate the various configuration directories and other basic
34120 # information into substitutions that will end up in Makefile.config.in
34121 # that these configured values can be used by the makefiles
34122 if test "${prefix}" = "NONE" ; then
34123   prefix="/usr/local"
34124 fi
34125 eval LLVM_PREFIX="${prefix}";
34126 eval LLVM_BINDIR="${prefix}/bin";
34127 eval LLVM_LIBDIR="${prefix}/lib";
34128 eval LLVM_DATADIR="${prefix}/share/llvm";
34129 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34130 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34131 eval LLVM_INCLUDEDIR="${prefix}/include";
34132 eval LLVM_INFODIR="${prefix}/info";
34133 eval LLVM_MANDIR="${prefix}/man";
34134 LLVM_CONFIGTIME=`date`
34135
34136
34137
34138
34139
34140
34141
34142
34143
34144
34145
34146 # Place the various directores into the config.h file as #defines so that we
34147 # can know about the installation paths within LLVM.
34148
34149 cat >>confdefs.h <<_ACEOF
34150 #define LLVM_PREFIX "$LLVM_PREFIX"
34151 _ACEOF
34152
34153
34154 cat >>confdefs.h <<_ACEOF
34155 #define LLVM_BINDIR "$LLVM_BINDIR"
34156 _ACEOF
34157
34158
34159 cat >>confdefs.h <<_ACEOF
34160 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34161 _ACEOF
34162
34163
34164 cat >>confdefs.h <<_ACEOF
34165 #define LLVM_DATADIR "$LLVM_DATADIR"
34166 _ACEOF
34167
34168
34169 cat >>confdefs.h <<_ACEOF
34170 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34171 _ACEOF
34172
34173
34174 cat >>confdefs.h <<_ACEOF
34175 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34176 _ACEOF
34177
34178
34179 cat >>confdefs.h <<_ACEOF
34180 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34181 _ACEOF
34182
34183
34184 cat >>confdefs.h <<_ACEOF
34185 #define LLVM_INFODIR "$LLVM_INFODIR"
34186 _ACEOF
34187
34188
34189 cat >>confdefs.h <<_ACEOF
34190 #define LLVM_MANDIR "$LLVM_MANDIR"
34191 _ACEOF
34192
34193
34194 cat >>confdefs.h <<_ACEOF
34195 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34196 _ACEOF
34197
34198
34199 cat >>confdefs.h <<_ACEOF
34200 #define LLVM_HOSTTRIPLE "$host"
34201 _ACEOF
34202
34203
34204 # Determine which bindings to build.
34205 if test "$BINDINGS_TO_BUILD" = auto ; then
34206   BINDINGS_TO_BUILD=""
34207   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34208     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34209   fi
34210 fi
34211 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34212
34213
34214 # This isn't really configurey, but it avoids having to repeat the list in
34215 # other files.
34216 ALL_BINDINGS=ocaml
34217
34218
34219 # Do any work necessary to ensure that bindings have what they need.
34220 binding_prereqs_failed=0
34221 for a_binding in $BINDINGS_TO_BUILD ; do
34222   case "$a_binding" in
34223   ocaml)
34224     if test "x$OCAMLC" = x ; then
34225       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34226 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34227       binding_prereqs_failed=1
34228     fi
34229     if test "x$OCAMLDEP" = x ; then
34230       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34231 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34232       binding_prereqs_failed=1
34233     fi
34234     if test "x$OCAMLOPT" = x ; then
34235       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34236 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34237           fi
34238     if test "x$with_ocaml_libdir" != xauto ; then
34239       OCAML_LIBDIR=$with_ocaml_libdir
34240
34241     else
34242       ocaml_stdlib="`"$OCAMLC" -where`"
34243       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34244       then
34245         # ocaml stdlib is beneath our prefix; use stdlib
34246         OCAML_LIBDIR=$ocaml_stdlib
34247
34248       else
34249         # ocaml stdlib is outside our prefix; use libdir/ocaml
34250         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34251
34252       fi
34253     fi
34254     ;;
34255   esac
34256 done
34257 if test "$binding_prereqs_failed" = 1 ; then
34258   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34259 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34260    { (exit 1); exit 1; }; }
34261 fi
34262
34263
34264
34265 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34266
34267 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34268
34269 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34270
34271 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34272
34273 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34274
34275
34276 ac_config_files="$ac_config_files Makefile.config"
34277
34278
34279 ac_config_files="$ac_config_files llvm.spec"
34280
34281
34282 ac_config_files="$ac_config_files docs/doxygen.cfg"
34283
34284
34285 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34286
34287
34288 ac_config_commands="$ac_config_commands setup"
34289
34290 ac_config_commands="$ac_config_commands Makefile"
34291
34292
34293 ac_config_commands="$ac_config_commands Makefile.common"
34294
34295
34296 ac_config_commands="$ac_config_commands examples/Makefile"
34297
34298
34299 ac_config_commands="$ac_config_commands lib/Makefile"
34300
34301
34302 ac_config_commands="$ac_config_commands runtime/Makefile"
34303
34304
34305 ac_config_commands="$ac_config_commands test/Makefile"
34306
34307
34308 ac_config_commands="$ac_config_commands test/Makefile.tests"
34309
34310
34311 ac_config_commands="$ac_config_commands tools/Makefile"
34312
34313
34314 ac_config_commands="$ac_config_commands utils/Makefile"
34315
34316
34317 ac_config_commands="$ac_config_commands projects/Makefile"
34318
34319
34320 ac_config_commands="$ac_config_commands bindings/Makefile"
34321
34322
34323 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34324
34325
34326
34327 cat >confcache <<\_ACEOF
34328 # This file is a shell script that caches the results of configure
34329 # tests run on this system so they can be shared between configure
34330 # scripts and configure runs, see configure's option --config-cache.
34331 # It is not useful on other systems.  If it contains results you don't
34332 # want to keep, you may remove or edit it.
34333 #
34334 # config.status only pays attention to the cache file if you give it
34335 # the --recheck option to rerun configure.
34336 #
34337 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34338 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34339 # following values.
34340
34341 _ACEOF
34342
34343 # The following way of writing the cache mishandles newlines in values,
34344 # but we know of no workaround that is simple, portable, and efficient.
34345 # So, we kill variables containing newlines.
34346 # Ultrix sh set writes to stderr and can't be redirected directly,
34347 # and sets the high bit in the cache file unless we assign to the vars.
34348 (
34349   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34350     eval ac_val=\$$ac_var
34351     case $ac_val in #(
34352     *${as_nl}*)
34353       case $ac_var in #(
34354       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34355 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34356       esac
34357       case $ac_var in #(
34358       _ | IFS | as_nl) ;; #(
34359       *) $as_unset $ac_var ;;
34360       esac ;;
34361     esac
34362   done
34363
34364   (set) 2>&1 |
34365     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34366     *${as_nl}ac_space=\ *)
34367       # `set' does not quote correctly, so add quotes (double-quote
34368       # substitution turns \\\\ into \\, and sed turns \\ into \).
34369       sed -n \
34370         "s/'/'\\\\''/g;
34371           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34372       ;; #(
34373     *)
34374       # `set' quotes correctly as required by POSIX, so do not add quotes.
34375       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34376       ;;
34377     esac |
34378     sort
34379 ) |
34380   sed '
34381      /^ac_cv_env_/b end
34382      t clear
34383      :clear
34384      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34385      t end
34386      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34387      :end' >>confcache
34388 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34389   if test -w "$cache_file"; then
34390     test "x$cache_file" != "x/dev/null" &&
34391       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34392 echo "$as_me: updating cache $cache_file" >&6;}
34393     cat confcache >$cache_file
34394   else
34395     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34396 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34397   fi
34398 fi
34399 rm -f confcache
34400
34401 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34402 # Let make expand exec_prefix.
34403 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34404
34405 DEFS=-DHAVE_CONFIG_H
34406
34407 ac_libobjs=
34408 ac_ltlibobjs=
34409 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34410   # 1. Remove the extension, and $U if already installed.
34411   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34412   ac_i=`echo "$ac_i" | sed "$ac_script"`
34413   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34414   #    will be set to the directory where LIBOBJS objects are built.
34415   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34416   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34417 done
34418 LIBOBJS=$ac_libobjs
34419
34420 LTLIBOBJS=$ac_ltlibobjs
34421
34422
34423 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34424   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34425 Usually this means the macro was only invoked conditionally." >&5
34426 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34427 Usually this means the macro was only invoked conditionally." >&2;}
34428    { (exit 1); exit 1; }; }
34429 fi
34430 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34431   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34432 Usually this means the macro was only invoked conditionally." >&5
34433 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34434 Usually this means the macro was only invoked conditionally." >&2;}
34435    { (exit 1); exit 1; }; }
34436 fi
34437
34438 : ${CONFIG_STATUS=./config.status}
34439 ac_clean_files_save=$ac_clean_files
34440 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34441 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34442 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34443 cat >$CONFIG_STATUS <<_ACEOF
34444 #! $SHELL
34445 # Generated by $as_me.
34446 # Run this file to recreate the current configuration.
34447 # Compiler output produced by configure, useful for debugging
34448 # configure, is in config.log if it exists.
34449
34450 debug=false
34451 ac_cs_recheck=false
34452 ac_cs_silent=false
34453 SHELL=\${CONFIG_SHELL-$SHELL}
34454 _ACEOF
34455
34456 cat >>$CONFIG_STATUS <<\_ACEOF
34457 ## --------------------- ##
34458 ## M4sh Initialization.  ##
34459 ## --------------------- ##
34460
34461 # Be Bourne compatible
34462 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34463   emulate sh
34464   NULLCMD=:
34465   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34466   # is contrary to our usage.  Disable this feature.
34467   alias -g '${1+"$@"}'='"$@"'
34468   setopt NO_GLOB_SUBST
34469 else
34470   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34471 fi
34472 BIN_SH=xpg4; export BIN_SH # for Tru64
34473 DUALCASE=1; export DUALCASE # for MKS sh
34474
34475
34476 # PATH needs CR
34477 # Avoid depending upon Character Ranges.
34478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34481 as_cr_digits='0123456789'
34482 as_cr_alnum=$as_cr_Letters$as_cr_digits
34483
34484 # The user is always right.
34485 if test "${PATH_SEPARATOR+set}" != set; then
34486   echo "#! /bin/sh" >conf$$.sh
34487   echo  "exit 0"   >>conf$$.sh
34488   chmod +x conf$$.sh
34489   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34490     PATH_SEPARATOR=';'
34491   else
34492     PATH_SEPARATOR=:
34493   fi
34494   rm -f conf$$.sh
34495 fi
34496
34497 # Support unset when possible.
34498 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34499   as_unset=unset
34500 else
34501   as_unset=false
34502 fi
34503
34504
34505 # IFS
34506 # We need space, tab and new line, in precisely that order.  Quoting is
34507 # there to prevent editors from complaining about space-tab.
34508 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34509 # splitting by setting IFS to empty value.)
34510 as_nl='
34511 '
34512 IFS=" ""        $as_nl"
34513
34514 # Find who we are.  Look in the path if we contain no directory separator.
34515 case $0 in
34516   *[\\/]* ) as_myself=$0 ;;
34517   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34518 for as_dir in $PATH
34519 do
34520   IFS=$as_save_IFS
34521   test -z "$as_dir" && as_dir=.
34522   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34523 done
34524 IFS=$as_save_IFS
34525
34526      ;;
34527 esac
34528 # We did not find ourselves, most probably we were run as `sh COMMAND'
34529 # in which case we are not to be found in the path.
34530 if test "x$as_myself" = x; then
34531   as_myself=$0
34532 fi
34533 if test ! -f "$as_myself"; then
34534   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34535   { (exit 1); exit 1; }
34536 fi
34537
34538 # Work around bugs in pre-3.0 UWIN ksh.
34539 for as_var in ENV MAIL MAILPATH
34540 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34541 done
34542 PS1='$ '
34543 PS2='> '
34544 PS4='+ '
34545
34546 # NLS nuisances.
34547 for as_var in \
34548   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34549   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34550   LC_TELEPHONE LC_TIME
34551 do
34552   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34553     eval $as_var=C; export $as_var
34554   else
34555     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34556   fi
34557 done
34558
34559 # Required to use basename.
34560 if expr a : '\(a\)' >/dev/null 2>&1 &&
34561    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34562   as_expr=expr
34563 else
34564   as_expr=false
34565 fi
34566
34567 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34568   as_basename=basename
34569 else
34570   as_basename=false
34571 fi
34572
34573
34574 # Name of the executable.
34575 as_me=`$as_basename -- "$0" ||
34576 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34577          X"$0" : 'X\(//\)$' \| \
34578          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34579 echo X/"$0" |
34580     sed '/^.*\/\([^/][^/]*\)\/*$/{
34581             s//\1/
34582             q
34583           }
34584           /^X\/\(\/\/\)$/{
34585             s//\1/
34586             q
34587           }
34588           /^X\/\(\/\).*/{
34589             s//\1/
34590             q
34591           }
34592           s/.*/./; q'`
34593
34594 # CDPATH.
34595 $as_unset CDPATH
34596
34597
34598
34599   as_lineno_1=$LINENO
34600   as_lineno_2=$LINENO
34601   test "x$as_lineno_1" != "x$as_lineno_2" &&
34602   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34603
34604   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34605   # uniformly replaced by the line number.  The first 'sed' inserts a
34606   # line-number line after each line using $LINENO; the second 'sed'
34607   # does the real work.  The second script uses 'N' to pair each
34608   # line-number line with the line containing $LINENO, and appends
34609   # trailing '-' during substitution so that $LINENO is not a special
34610   # case at line end.
34611   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34612   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34613   # E. McMahon (1931-1989) for sed's syntax.  :-)
34614   sed -n '
34615     p
34616     /[$]LINENO/=
34617   ' <$as_myself |
34618     sed '
34619       s/[$]LINENO.*/&-/
34620       t lineno
34621       b
34622       :lineno
34623       N
34624       :loop
34625       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34626       t loop
34627       s/-\n.*//
34628     ' >$as_me.lineno &&
34629   chmod +x "$as_me.lineno" ||
34630     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34631    { (exit 1); exit 1; }; }
34632
34633   # Don't try to exec as it changes $[0], causing all sort of problems
34634   # (the dirname of $[0] is not the place where we might find the
34635   # original and so on.  Autoconf is especially sensitive to this).
34636   . "./$as_me.lineno"
34637   # Exit status is that of the last command.
34638   exit
34639 }
34640
34641
34642 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34643   as_dirname=dirname
34644 else
34645   as_dirname=false
34646 fi
34647
34648 ECHO_C= ECHO_N= ECHO_T=
34649 case `echo -n x` in
34650 -n*)
34651   case `echo 'x\c'` in
34652   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34653   *)   ECHO_C='\c';;
34654   esac;;
34655 *)
34656   ECHO_N='-n';;
34657 esac
34658
34659 if expr a : '\(a\)' >/dev/null 2>&1 &&
34660    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34661   as_expr=expr
34662 else
34663   as_expr=false
34664 fi
34665
34666 rm -f conf$$ conf$$.exe conf$$.file
34667 if test -d conf$$.dir; then
34668   rm -f conf$$.dir/conf$$.file
34669 else
34670   rm -f conf$$.dir
34671   mkdir conf$$.dir
34672 fi
34673 echo >conf$$.file
34674 if ln -s conf$$.file conf$$ 2>/dev/null; then
34675   as_ln_s='ln -s'
34676   # ... but there are two gotchas:
34677   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34678   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34679   # In both cases, we have to default to `cp -p'.
34680   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34681     as_ln_s='cp -p'
34682 elif ln conf$$.file conf$$ 2>/dev/null; then
34683   as_ln_s=ln
34684 else
34685   as_ln_s='cp -p'
34686 fi
34687 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34688 rmdir conf$$.dir 2>/dev/null
34689
34690 if mkdir -p . 2>/dev/null; then
34691   as_mkdir_p=:
34692 else
34693   test -d ./-p && rmdir ./-p
34694   as_mkdir_p=false
34695 fi
34696
34697 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34698 # systems may use methods other than mode bits to determine executability.
34699 cat >conf$$.file <<_ASEOF
34700 #! /bin/sh
34701 exit 0
34702 _ASEOF
34703 chmod +x conf$$.file
34704 if test -x conf$$.file >/dev/null 2>&1; then
34705   as_executable_p="test -x"
34706 else
34707   as_executable_p=:
34708 fi
34709 rm -f conf$$.file
34710
34711 # Sed expression to map a string onto a valid CPP name.
34712 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34713
34714 # Sed expression to map a string onto a valid variable name.
34715 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34716
34717
34718 exec 6>&1
34719
34720 # Save the log message, to keep $[0] and so on meaningful, and to
34721 # report actual input values of CONFIG_FILES etc. instead of their
34722 # values after options handling.
34723 ac_log="
34724 This file was extended by llvm $as_me 2.4svn, which was
34725 generated by GNU Autoconf 2.60.  Invocation command line was
34726
34727   CONFIG_FILES    = $CONFIG_FILES
34728   CONFIG_HEADERS  = $CONFIG_HEADERS
34729   CONFIG_LINKS    = $CONFIG_LINKS
34730   CONFIG_COMMANDS = $CONFIG_COMMANDS
34731   $ $0 $@
34732
34733 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34734 "
34735
34736 _ACEOF
34737
34738 cat >>$CONFIG_STATUS <<_ACEOF
34739 # Files that config.status was made for.
34740 config_files="$ac_config_files"
34741 config_headers="$ac_config_headers"
34742 config_commands="$ac_config_commands"
34743
34744 _ACEOF
34745
34746 cat >>$CONFIG_STATUS <<\_ACEOF
34747 ac_cs_usage="\
34748 \`$as_me' instantiates files from templates according to the
34749 current configuration.
34750
34751 Usage: $0 [OPTIONS] [FILE]...
34752
34753   -h, --help       print this help, then exit
34754   -V, --version    print version number, then exit
34755   -q, --quiet      do not print progress messages
34756   -d, --debug      don't remove temporary files
34757       --recheck    update $as_me by reconfiguring in the same conditions
34758   --file=FILE[:TEMPLATE]
34759                    instantiate the configuration file FILE
34760   --header=FILE[:TEMPLATE]
34761                    instantiate the configuration header FILE
34762
34763 Configuration files:
34764 $config_files
34765
34766 Configuration headers:
34767 $config_headers
34768
34769 Configuration commands:
34770 $config_commands
34771
34772 Report bugs to <bug-autoconf@gnu.org>."
34773
34774 _ACEOF
34775 cat >>$CONFIG_STATUS <<_ACEOF
34776 ac_cs_version="\\
34777 llvm config.status 2.4svn
34778 configured by $0, generated by GNU Autoconf 2.60,
34779   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34780
34781 Copyright (C) 2006 Free Software Foundation, Inc.
34782 This config.status script is free software; the Free Software Foundation
34783 gives unlimited permission to copy, distribute and modify it."
34784
34785 ac_pwd='$ac_pwd'
34786 srcdir='$srcdir'
34787 INSTALL='$INSTALL'
34788 _ACEOF
34789
34790 cat >>$CONFIG_STATUS <<\_ACEOF
34791 # If no file are specified by the user, then we need to provide default
34792 # value.  By we need to know if files were specified by the user.
34793 ac_need_defaults=:
34794 while test $# != 0
34795 do
34796   case $1 in
34797   --*=*)
34798     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34799     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34800     ac_shift=:
34801     ;;
34802   *)
34803     ac_option=$1
34804     ac_optarg=$2
34805     ac_shift=shift
34806     ;;
34807   esac
34808
34809   case $ac_option in
34810   # Handling of the options.
34811   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34812     ac_cs_recheck=: ;;
34813   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34814     echo "$ac_cs_version"; exit ;;
34815   --debug | --debu | --deb | --de | --d | -d )
34816     debug=: ;;
34817   --file | --fil | --fi | --f )
34818     $ac_shift
34819     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34820     ac_need_defaults=false;;
34821   --header | --heade | --head | --hea )
34822     $ac_shift
34823     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34824     ac_need_defaults=false;;
34825   --he | --h)
34826     # Conflict between --help and --header
34827     { echo "$as_me: error: ambiguous option: $1
34828 Try \`$0 --help' for more information." >&2
34829    { (exit 1); exit 1; }; };;
34830   --help | --hel | -h )
34831     echo "$ac_cs_usage"; exit ;;
34832   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34833   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34834     ac_cs_silent=: ;;
34835
34836   # This is an error.
34837   -*) { echo "$as_me: error: unrecognized option: $1
34838 Try \`$0 --help' for more information." >&2
34839    { (exit 1); exit 1; }; } ;;
34840
34841   *) ac_config_targets="$ac_config_targets $1"
34842      ac_need_defaults=false ;;
34843
34844   esac
34845   shift
34846 done
34847
34848 ac_configure_extra_args=
34849
34850 if $ac_cs_silent; then
34851   exec 6>/dev/null
34852   ac_configure_extra_args="$ac_configure_extra_args --silent"
34853 fi
34854
34855 _ACEOF
34856 cat >>$CONFIG_STATUS <<_ACEOF
34857 if \$ac_cs_recheck; then
34858   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34859   CONFIG_SHELL=$SHELL
34860   export CONFIG_SHELL
34861   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34862 fi
34863
34864 _ACEOF
34865 cat >>$CONFIG_STATUS <<\_ACEOF
34866 exec 5>>config.log
34867 {
34868   echo
34869   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34870 ## Running $as_me. ##
34871 _ASBOX
34872   echo "$ac_log"
34873 } >&5
34874
34875 _ACEOF
34876 cat >>$CONFIG_STATUS <<_ACEOF
34877 #
34878 # INIT-COMMANDS
34879 #
34880 llvm_src="${srcdir}"
34881
34882 _ACEOF
34883
34884 cat >>$CONFIG_STATUS <<\_ACEOF
34885
34886 # Handling of arguments.
34887 for ac_config_target in $ac_config_targets
34888 do
34889   case $ac_config_target in
34890     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34891     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34892     "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
34893     "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
34894     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34895     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34896     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34897     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34898     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34899     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34900     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34901     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34902     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34903     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34904     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34905     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34906     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34907     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34908     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34909     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34910     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34911     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34912
34913   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34914 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34915    { (exit 1); exit 1; }; };;
34916   esac
34917 done
34918
34919
34920 # If the user did not use the arguments to specify the items to instantiate,
34921 # then the envvar interface is used.  Set only those that are not.
34922 # We use the long form for the default assignment because of an extremely
34923 # bizarre bug on SunOS 4.1.3.
34924 if $ac_need_defaults; then
34925   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34926   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34927   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34928 fi
34929
34930 # Have a temporary directory for convenience.  Make it in the build tree
34931 # simply because there is no reason against having it here, and in addition,
34932 # creating and moving files from /tmp can sometimes cause problems.
34933 # Hook for its removal unless debugging.
34934 # Note that there is a small window in which the directory will not be cleaned:
34935 # after its creation but before its name has been assigned to `$tmp'.
34936 $debug ||
34937 {
34938   tmp=
34939   trap 'exit_status=$?
34940   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34941 ' 0
34942   trap '{ (exit 1); exit 1; }' 1 2 13 15
34943 }
34944 # Create a (secure) tmp directory for tmp files.
34945
34946 {
34947   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34948   test -n "$tmp" && test -d "$tmp"
34949 }  ||
34950 {
34951   tmp=./conf$$-$RANDOM
34952   (umask 077 && mkdir "$tmp")
34953 } ||
34954 {
34955    echo "$me: cannot create a temporary directory in ." >&2
34956    { (exit 1); exit 1; }
34957 }
34958
34959 #
34960 # Set up the sed scripts for CONFIG_FILES section.
34961 #
34962
34963 # No need to generate the scripts if there are no CONFIG_FILES.
34964 # This happens for instance when ./config.status config.h
34965 if test -n "$CONFIG_FILES"; then
34966
34967 _ACEOF
34968
34969
34970
34971 ac_delim='%!_!# '
34972 for ac_last_try in false false false false false :; do
34973   cat >conf$$subs.sed <<_ACEOF
34974 SHELL!$SHELL$ac_delim
34975 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34976 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34977 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34978 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34979 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34980 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34981 exec_prefix!$exec_prefix$ac_delim
34982 prefix!$prefix$ac_delim
34983 program_transform_name!$program_transform_name$ac_delim
34984 bindir!$bindir$ac_delim
34985 sbindir!$sbindir$ac_delim
34986 libexecdir!$libexecdir$ac_delim
34987 datarootdir!$datarootdir$ac_delim
34988 datadir!$datadir$ac_delim
34989 sysconfdir!$sysconfdir$ac_delim
34990 sharedstatedir!$sharedstatedir$ac_delim
34991 localstatedir!$localstatedir$ac_delim
34992 includedir!$includedir$ac_delim
34993 oldincludedir!$oldincludedir$ac_delim
34994 docdir!$docdir$ac_delim
34995 infodir!$infodir$ac_delim
34996 htmldir!$htmldir$ac_delim
34997 dvidir!$dvidir$ac_delim
34998 pdfdir!$pdfdir$ac_delim
34999 psdir!$psdir$ac_delim
35000 libdir!$libdir$ac_delim
35001 localedir!$localedir$ac_delim
35002 mandir!$mandir$ac_delim
35003 DEFS!$DEFS$ac_delim
35004 ECHO_C!$ECHO_C$ac_delim
35005 ECHO_N!$ECHO_N$ac_delim
35006 ECHO_T!$ECHO_T$ac_delim
35007 LIBS!$LIBS$ac_delim
35008 build_alias!$build_alias$ac_delim
35009 host_alias!$host_alias$ac_delim
35010 target_alias!$target_alias$ac_delim
35011 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35012 subdirs!$subdirs$ac_delim
35013 build!$build$ac_delim
35014 build_cpu!$build_cpu$ac_delim
35015 build_vendor!$build_vendor$ac_delim
35016 build_os!$build_os$ac_delim
35017 host!$host$ac_delim
35018 host_cpu!$host_cpu$ac_delim
35019 host_vendor!$host_vendor$ac_delim
35020 host_os!$host_os$ac_delim
35021 target!$target$ac_delim
35022 target_cpu!$target_cpu$ac_delim
35023 target_vendor!$target_vendor$ac_delim
35024 target_os!$target_os$ac_delim
35025 OS!$OS$ac_delim
35026 LINKALL!$LINKALL$ac_delim
35027 NOLINKALL!$NOLINKALL$ac_delim
35028 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35029 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35030 ARCH!$ARCH$ac_delim
35031 ENDIAN!$ENDIAN$ac_delim
35032 CC!$CC$ac_delim
35033 CFLAGS!$CFLAGS$ac_delim
35034 LDFLAGS!$LDFLAGS$ac_delim
35035 CPPFLAGS!$CPPFLAGS$ac_delim
35036 ac_ct_CC!$ac_ct_CC$ac_delim
35037 EXEEXT!$EXEEXT$ac_delim
35038 OBJEXT!$OBJEXT$ac_delim
35039 CPP!$CPP$ac_delim
35040 GREP!$GREP$ac_delim
35041 EGREP!$EGREP$ac_delim
35042 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35043 BUILD_CC!$BUILD_CC$ac_delim
35044 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35045 CVSBUILD!$CVSBUILD$ac_delim
35046 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35047 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35048 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35049 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35050 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35051 JIT!$JIT$ac_delim
35052 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35053 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35054 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35055 ENABLE_PIC!$ENABLE_PIC$ac_delim
35056 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35057 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35058 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35059 CXX!$CXX$ac_delim
35060 CXXFLAGS!$CXXFLAGS$ac_delim
35061 ac_ct_CXX!$ac_ct_CXX$ac_delim
35062 LEX!$LEX$ac_delim
35063 LEXLIB!$LEXLIB$ac_delim
35064 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35065 FLEX!$FLEX$ac_delim
35066 YACC!$YACC$ac_delim
35067 YFLAGS!$YFLAGS$ac_delim
35068 BISON!$BISON$ac_delim
35069 NM!$NM$ac_delim
35070 ifGNUmake!$ifGNUmake$ac_delim
35071 _ACEOF
35072
35073   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35074     break
35075   elif $ac_last_try; then
35076     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35077 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35078    { (exit 1); exit 1; }; }
35079   else
35080     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35081   fi
35082 done
35083
35084 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35085 if test -n "$ac_eof"; then
35086   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35087   ac_eof=`expr $ac_eof + 1`
35088 fi
35089
35090 cat >>$CONFIG_STATUS <<_ACEOF
35091 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35093 _ACEOF
35094 sed '
35095 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35096 s/^/s,@/; s/!/@,|#_!!_#|/
35097 :n
35098 t n
35099 s/'"$ac_delim"'$/,g/; t
35100 s/$/\\/; p
35101 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35102 ' >>$CONFIG_STATUS <conf$$subs.sed
35103 rm -f conf$$subs.sed
35104 cat >>$CONFIG_STATUS <<_ACEOF
35105 CEOF$ac_eof
35106 _ACEOF
35107
35108
35109 ac_delim='%!_!# '
35110 for ac_last_try in false false false false false :; do
35111   cat >conf$$subs.sed <<_ACEOF
35112 LN_S!$LN_S$ac_delim
35113 CMP!$CMP$ac_delim
35114 CP!$CP$ac_delim
35115 DATE!$DATE$ac_delim
35116 FIND!$FIND$ac_delim
35117 MKDIR!$MKDIR$ac_delim
35118 MV!$MV$ac_delim
35119 RANLIB!$RANLIB$ac_delim
35120 RM!$RM$ac_delim
35121 SED!$SED$ac_delim
35122 TAR!$TAR$ac_delim
35123 BINPWD!$BINPWD$ac_delim
35124 GRAPHVIZ!$GRAPHVIZ$ac_delim
35125 DOT!$DOT$ac_delim
35126 GV!$GV$ac_delim
35127 DOTTY!$DOTTY$ac_delim
35128 PERL!$PERL$ac_delim
35129 HAVE_PERL!$HAVE_PERL$ac_delim
35130 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35131 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35132 INSTALL_DATA!$INSTALL_DATA$ac_delim
35133 BZIP2!$BZIP2$ac_delim
35134 DOXYGEN!$DOXYGEN$ac_delim
35135 GROFF!$GROFF$ac_delim
35136 GZIP!$GZIP$ac_delim
35137 POD2HTML!$POD2HTML$ac_delim
35138 POD2MAN!$POD2MAN$ac_delim
35139 RUNTEST!$RUNTEST$ac_delim
35140 TCLSH!$TCLSH$ac_delim
35141 ZIP!$ZIP$ac_delim
35142 OCAMLC!$OCAMLC$ac_delim
35143 OCAMLOPT!$OCAMLOPT$ac_delim
35144 OCAMLDEP!$OCAMLDEP$ac_delim
35145 OCAMLDOC!$OCAMLDOC$ac_delim
35146 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35147 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35148 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35149 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35150 LIBADD_DL!$LIBADD_DL$ac_delim
35151 ECHO!$ECHO$ac_delim
35152 AR!$AR$ac_delim
35153 STRIP!$STRIP$ac_delim
35154 CXXCPP!$CXXCPP$ac_delim
35155 F77!$F77$ac_delim
35156 FFLAGS!$FFLAGS$ac_delim
35157 ac_ct_F77!$ac_ct_F77$ac_delim
35158 LIBTOOL!$LIBTOOL$ac_delim
35159 LLVMGCC!$LLVMGCC$ac_delim
35160 LLVMGXX!$LLVMGXX$ac_delim
35161 USE_UDIS86!$USE_UDIS86$ac_delim
35162 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35163 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35164 ALLOCA!$ALLOCA$ac_delim
35165 MMAP_FILE!$MMAP_FILE$ac_delim
35166 LLVMCC1!$LLVMCC1$ac_delim
35167 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35168 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35169 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35170 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35171 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35172 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35173 SHLIBEXT!$SHLIBEXT$ac_delim
35174 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35175 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35176 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35177 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35178 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35179 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35180 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35181 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35182 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35183 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35184 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35185 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35186 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35187 LIBOBJS!$LIBOBJS$ac_delim
35188 LTLIBOBJS!$LTLIBOBJS$ac_delim
35189 _ACEOF
35190
35191   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
35192     break
35193   elif $ac_last_try; then
35194     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35195 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35196    { (exit 1); exit 1; }; }
35197   else
35198     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35199   fi
35200 done
35201
35202 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35203 if test -n "$ac_eof"; then
35204   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35205   ac_eof=`expr $ac_eof + 1`
35206 fi
35207
35208 cat >>$CONFIG_STATUS <<_ACEOF
35209 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35211 _ACEOF
35212 sed '
35213 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35214 s/^/s,@/; s/!/@,|#_!!_#|/
35215 :n
35216 t n
35217 s/'"$ac_delim"'$/,g/; t
35218 s/$/\\/; p
35219 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35220 ' >>$CONFIG_STATUS <conf$$subs.sed
35221 rm -f conf$$subs.sed
35222 cat >>$CONFIG_STATUS <<_ACEOF
35223 :end
35224 s/|#_!!_#|//g
35225 CEOF$ac_eof
35226 _ACEOF
35227
35228
35229 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35230 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35231 # trailing colons and then remove the whole line if VPATH becomes empty
35232 # (actually we leave an empty line to preserve line numbers).
35233 if test "x$srcdir" = x.; then
35234   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35235 s/:*\$(srcdir):*/:/
35236 s/:*\${srcdir}:*/:/
35237 s/:*@srcdir@:*/:/
35238 s/^\([^=]*=[     ]*\):*/\1/
35239 s/:*$//
35240 s/^[^=]*=[       ]*$//
35241 }'
35242 fi
35243
35244 cat >>$CONFIG_STATUS <<\_ACEOF
35245 fi # test -n "$CONFIG_FILES"
35246
35247
35248 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35249 do
35250   case $ac_tag in
35251   :[FHLC]) ac_mode=$ac_tag; continue;;
35252   esac
35253   case $ac_mode$ac_tag in
35254   :[FHL]*:*);;
35255   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35256 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35257    { (exit 1); exit 1; }; };;
35258   :[FH]-) ac_tag=-:-;;
35259   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35260   esac
35261   ac_save_IFS=$IFS
35262   IFS=:
35263   set x $ac_tag
35264   IFS=$ac_save_IFS
35265   shift
35266   ac_file=$1
35267   shift
35268
35269   case $ac_mode in
35270   :L) ac_source=$1;;
35271   :[FH])
35272     ac_file_inputs=
35273     for ac_f
35274     do
35275       case $ac_f in
35276       -) ac_f="$tmp/stdin";;
35277       *) # Look for the file first in the build tree, then in the source tree
35278          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35279          # because $ac_f cannot contain `:'.
35280          test -f "$ac_f" ||
35281            case $ac_f in
35282            [\\/$]*) false;;
35283            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35284            esac ||
35285            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35286 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35287    { (exit 1); exit 1; }; };;
35288       esac
35289       ac_file_inputs="$ac_file_inputs $ac_f"
35290     done
35291
35292     # Let's still pretend it is `configure' which instantiates (i.e., don't
35293     # use $as_me), people would be surprised to read:
35294     #    /* config.h.  Generated by config.status.  */
35295     configure_input="Generated from "`IFS=:
35296           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35297     if test x"$ac_file" != x-; then
35298       configure_input="$ac_file.  $configure_input"
35299       { echo "$as_me:$LINENO: creating $ac_file" >&5
35300 echo "$as_me: creating $ac_file" >&6;}
35301     fi
35302
35303     case $ac_tag in
35304     *:-:* | *:-) cat >"$tmp/stdin";;
35305     esac
35306     ;;
35307   esac
35308
35309   ac_dir=`$as_dirname -- "$ac_file" ||
35310 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35311          X"$ac_file" : 'X\(//\)[^/]' \| \
35312          X"$ac_file" : 'X\(//\)$' \| \
35313          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35314 echo X"$ac_file" |
35315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35316             s//\1/
35317             q
35318           }
35319           /^X\(\/\/\)[^/].*/{
35320             s//\1/
35321             q
35322           }
35323           /^X\(\/\/\)$/{
35324             s//\1/
35325             q
35326           }
35327           /^X\(\/\).*/{
35328             s//\1/
35329             q
35330           }
35331           s/.*/./; q'`
35332   { as_dir="$ac_dir"
35333   case $as_dir in #(
35334   -*) as_dir=./$as_dir;;
35335   esac
35336   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35337     as_dirs=
35338     while :; do
35339       case $as_dir in #(
35340       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35341       *) as_qdir=$as_dir;;
35342       esac
35343       as_dirs="'$as_qdir' $as_dirs"
35344       as_dir=`$as_dirname -- "$as_dir" ||
35345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35346          X"$as_dir" : 'X\(//\)[^/]' \| \
35347          X"$as_dir" : 'X\(//\)$' \| \
35348          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35349 echo X"$as_dir" |
35350     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35351             s//\1/
35352             q
35353           }
35354           /^X\(\/\/\)[^/].*/{
35355             s//\1/
35356             q
35357           }
35358           /^X\(\/\/\)$/{
35359             s//\1/
35360             q
35361           }
35362           /^X\(\/\).*/{
35363             s//\1/
35364             q
35365           }
35366           s/.*/./; q'`
35367       test -d "$as_dir" && break
35368     done
35369     test -z "$as_dirs" || eval "mkdir $as_dirs"
35370   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35371 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35372    { (exit 1); exit 1; }; }; }
35373   ac_builddir=.
35374
35375 case "$ac_dir" in
35376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35377 *)
35378   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35379   # A ".." for each directory in $ac_dir_suffix.
35380   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35381   case $ac_top_builddir_sub in
35382   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35383   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35384   esac ;;
35385 esac
35386 ac_abs_top_builddir=$ac_pwd
35387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35388 # for backward compatibility:
35389 ac_top_builddir=$ac_top_build_prefix
35390
35391 case $srcdir in
35392   .)  # We are building in place.
35393     ac_srcdir=.
35394     ac_top_srcdir=$ac_top_builddir_sub
35395     ac_abs_top_srcdir=$ac_pwd ;;
35396   [\\/]* | ?:[\\/]* )  # Absolute name.
35397     ac_srcdir=$srcdir$ac_dir_suffix;
35398     ac_top_srcdir=$srcdir
35399     ac_abs_top_srcdir=$srcdir ;;
35400   *) # Relative name.
35401     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35402     ac_top_srcdir=$ac_top_build_prefix$srcdir
35403     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35404 esac
35405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35406
35407
35408   case $ac_mode in
35409   :F)
35410   #
35411   # CONFIG_FILE
35412   #
35413
35414   case $INSTALL in
35415   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35416   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35417   esac
35418 _ACEOF
35419
35420 cat >>$CONFIG_STATUS <<\_ACEOF
35421 # If the template does not know about datarootdir, expand it.
35422 # FIXME: This hack should be removed a few years after 2.60.
35423 ac_datarootdir_hack=; ac_datarootdir_seen=
35424
35425 case `sed -n '/datarootdir/ {
35426   p
35427   q
35428 }
35429 /@datadir@/p
35430 /@docdir@/p
35431 /@infodir@/p
35432 /@localedir@/p
35433 /@mandir@/p
35434 ' $ac_file_inputs` in
35435 *datarootdir*) ac_datarootdir_seen=yes;;
35436 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35437   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35438 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35439 _ACEOF
35440 cat >>$CONFIG_STATUS <<_ACEOF
35441   ac_datarootdir_hack='
35442   s&@datadir@&$datadir&g
35443   s&@docdir@&$docdir&g
35444   s&@infodir@&$infodir&g
35445   s&@localedir@&$localedir&g
35446   s&@mandir@&$mandir&g
35447     s&\\\${datarootdir}&$datarootdir&g' ;;
35448 esac
35449 _ACEOF
35450
35451 # Neutralize VPATH when `$srcdir' = `.'.
35452 # Shell code in configure.ac might set extrasub.
35453 # FIXME: do we really want to maintain this feature?
35454 cat >>$CONFIG_STATUS <<_ACEOF
35455   sed "$ac_vpsub
35456 $extrasub
35457 _ACEOF
35458 cat >>$CONFIG_STATUS <<\_ACEOF
35459 :t
35460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35461 s&@configure_input@&$configure_input&;t t
35462 s&@top_builddir@&$ac_top_builddir_sub&;t t
35463 s&@srcdir@&$ac_srcdir&;t t
35464 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35465 s&@top_srcdir@&$ac_top_srcdir&;t t
35466 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35467 s&@builddir@&$ac_builddir&;t t
35468 s&@abs_builddir@&$ac_abs_builddir&;t t
35469 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35470 s&@INSTALL@&$ac_INSTALL&;t t
35471 $ac_datarootdir_hack
35472 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35473
35474 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35475   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35476   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35477   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35478 which seems to be undefined.  Please make sure it is defined." >&5
35479 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35480 which seems to be undefined.  Please make sure it is defined." >&2;}
35481
35482   rm -f "$tmp/stdin"
35483   case $ac_file in
35484   -) cat "$tmp/out"; rm -f "$tmp/out";;
35485   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35486   esac
35487  ;;
35488   :H)
35489   #
35490   # CONFIG_HEADER
35491   #
35492 _ACEOF
35493
35494 # Transform confdefs.h into a sed script `conftest.defines', that
35495 # substitutes the proper values into config.h.in to produce config.h.
35496 rm -f conftest.defines conftest.tail
35497 # First, append a space to every undef/define line, to ease matching.
35498 echo 's/$/ /' >conftest.defines
35499 # Then, protect against being on the right side of a sed subst, or in
35500 # an unquoted here document, in config.status.  If some macros were
35501 # called several times there might be several #defines for the same
35502 # symbol, which is useless.  But do not sort them, since the last
35503 # AC_DEFINE must be honored.
35504 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35505 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35506 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35507 # PARAMS is the parameter list in the macro definition--in most cases, it's
35508 # just an empty string.
35509 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35510 ac_dB='\\)[      (].*,\\1define\\2'
35511 ac_dC=' '
35512 ac_dD=' ,'
35513
35514 uniq confdefs.h |
35515   sed -n '
35516         t rset
35517         :rset
35518         s/^[     ]*#[    ]*define[       ][      ]*//
35519         t ok
35520         d
35521         :ok
35522         s/[\\&,]/\\&/g
35523         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35524         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35525   ' >>conftest.defines
35526
35527 # Remove the space that was appended to ease matching.
35528 # Then replace #undef with comments.  This is necessary, for
35529 # example, in the case of _POSIX_SOURCE, which is predefined and required
35530 # on some systems where configure will not decide to define it.
35531 # (The regexp can be short, since the line contains either #define or #undef.)
35532 echo 's/ $//
35533 s,^[     #]*u.*,/* & */,' >>conftest.defines
35534
35535 # Break up conftest.defines:
35536 ac_max_sed_lines=50
35537
35538 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35539 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35540 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35541 # et cetera.
35542 ac_in='$ac_file_inputs'
35543 ac_out='"$tmp/out1"'
35544 ac_nxt='"$tmp/out2"'
35545
35546 while :
35547 do
35548   # Write a here document:
35549     cat >>$CONFIG_STATUS <<_ACEOF
35550     # First, check the format of the line:
35551     cat >"\$tmp/defines.sed" <<\\CEOF
35552 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35553 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35554 b
35555 :def
35556 _ACEOF
35557   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35558   echo 'CEOF
35559     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35560   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35561   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35562   grep . conftest.tail >/dev/null || break
35563   rm -f conftest.defines
35564   mv conftest.tail conftest.defines
35565 done
35566 rm -f conftest.defines conftest.tail
35567
35568 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35569 cat >>$CONFIG_STATUS <<\_ACEOF
35570   if test x"$ac_file" != x-; then
35571     echo "/* $configure_input  */" >"$tmp/config.h"
35572     cat "$ac_result" >>"$tmp/config.h"
35573     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35574       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35575 echo "$as_me: $ac_file is unchanged" >&6;}
35576     else
35577       rm -f $ac_file
35578       mv "$tmp/config.h" $ac_file
35579     fi
35580   else
35581     echo "/* $configure_input  */"
35582     cat "$ac_result"
35583   fi
35584   rm -f "$tmp/out12"
35585  ;;
35586
35587   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35588 echo "$as_me: executing $ac_file commands" >&6;}
35589  ;;
35590   esac
35591
35592
35593   case $ac_file$ac_mode in
35594     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35595    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35596     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35597    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35598     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35599    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35600     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35601    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35602     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35603    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35604     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35605    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35606     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35607    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35608     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35609    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35610     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35611    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35612     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35613    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35614     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35615    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35616     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35617    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35618
35619   esac
35620 done # for ac_tag
35621
35622
35623 { (exit 0); exit 0; }
35624 _ACEOF
35625 chmod +x $CONFIG_STATUS
35626 ac_clean_files=$ac_clean_files_save
35627
35628
35629 # configure is writing to config.log, and then calls config.status.
35630 # config.status does its own redirection, appending to config.log.
35631 # Unfortunately, on DOS this fails, as config.log is still kept open
35632 # by configure, so config.status won't be able to write to it; its
35633 # output is simply discarded.  So we exec the FD to /dev/null,
35634 # effectively closing config.log, so it can be properly (re)opened and
35635 # appended to by config.status.  When coming back to configure, we
35636 # need to make the FD available again.
35637 if test "$no_create" != yes; then
35638   ac_cs_success=:
35639   ac_config_status_args=
35640   test "$silent" = yes &&
35641     ac_config_status_args="$ac_config_status_args --quiet"
35642   exec 5>/dev/null
35643   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35644   exec 5>>config.log
35645   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35646   # would make configure fail if this is the last instruction.
35647   $ac_cs_success || { (exit 1); exit 1; }
35648 fi
35649
35650 #
35651 # CONFIG_SUBDIRS section.
35652 #
35653 if test "$no_recursion" != yes; then
35654
35655   # Remove --cache-file and --srcdir arguments so they do not pile up.
35656   ac_sub_configure_args=
35657   ac_prev=
35658   eval "set x $ac_configure_args"
35659   shift
35660   for ac_arg
35661   do
35662     if test -n "$ac_prev"; then
35663       ac_prev=
35664       continue
35665     fi
35666     case $ac_arg in
35667     -cache-file | --cache-file | --cache-fil | --cache-fi \
35668     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35669       ac_prev=cache_file ;;
35670     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35671     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35672     | --c=*)
35673       ;;
35674     --config-cache | -C)
35675       ;;
35676     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35677       ac_prev=srcdir ;;
35678     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35679       ;;
35680     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35681       ac_prev=prefix ;;
35682     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35683       ;;
35684     *)
35685       case $ac_arg in
35686       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35687       esac
35688       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35689     esac
35690   done
35691
35692   # Always prepend --prefix to ensure using the same prefix
35693   # in subdir configurations.
35694   ac_arg="--prefix=$prefix"
35695   case $ac_arg in
35696   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35697   esac
35698   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35699
35700   ac_popdir=`pwd`
35701   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35702
35703     # Do not complain, so a configure script can configure whichever
35704     # parts of a large source tree are present.
35705     test -d "$srcdir/$ac_dir" || continue
35706
35707     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35708     echo "$as_me:$LINENO: $ac_msg" >&5
35709     echo "$ac_msg" >&6
35710     { as_dir="$ac_dir"
35711   case $as_dir in #(
35712   -*) as_dir=./$as_dir;;
35713   esac
35714   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35715     as_dirs=
35716     while :; do
35717       case $as_dir in #(
35718       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35719       *) as_qdir=$as_dir;;
35720       esac
35721       as_dirs="'$as_qdir' $as_dirs"
35722       as_dir=`$as_dirname -- "$as_dir" ||
35723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35724          X"$as_dir" : 'X\(//\)[^/]' \| \
35725          X"$as_dir" : 'X\(//\)$' \| \
35726          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35727 echo X"$as_dir" |
35728     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35729             s//\1/
35730             q
35731           }
35732           /^X\(\/\/\)[^/].*/{
35733             s//\1/
35734             q
35735           }
35736           /^X\(\/\/\)$/{
35737             s//\1/
35738             q
35739           }
35740           /^X\(\/\).*/{
35741             s//\1/
35742             q
35743           }
35744           s/.*/./; q'`
35745       test -d "$as_dir" && break
35746     done
35747     test -z "$as_dirs" || eval "mkdir $as_dirs"
35748   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35749 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35750    { (exit 1); exit 1; }; }; }
35751     ac_builddir=.
35752
35753 case "$ac_dir" in
35754 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35755 *)
35756   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35757   # A ".." for each directory in $ac_dir_suffix.
35758   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35759   case $ac_top_builddir_sub in
35760   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35761   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35762   esac ;;
35763 esac
35764 ac_abs_top_builddir=$ac_pwd
35765 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35766 # for backward compatibility:
35767 ac_top_builddir=$ac_top_build_prefix
35768
35769 case $srcdir in
35770   .)  # We are building in place.
35771     ac_srcdir=.
35772     ac_top_srcdir=$ac_top_builddir_sub
35773     ac_abs_top_srcdir=$ac_pwd ;;
35774   [\\/]* | ?:[\\/]* )  # Absolute name.
35775     ac_srcdir=$srcdir$ac_dir_suffix;
35776     ac_top_srcdir=$srcdir
35777     ac_abs_top_srcdir=$srcdir ;;
35778   *) # Relative name.
35779     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35780     ac_top_srcdir=$ac_top_build_prefix$srcdir
35781     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35782 esac
35783 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35784
35785
35786     cd "$ac_dir"
35787
35788     # Check for guested configure; otherwise get Cygnus style configure.
35789     if test -f "$ac_srcdir/configure.gnu"; then
35790       ac_sub_configure=$ac_srcdir/configure.gnu
35791     elif test -f "$ac_srcdir/configure"; then
35792       ac_sub_configure=$ac_srcdir/configure
35793     elif test -f "$ac_srcdir/configure.in"; then
35794       # This should be Cygnus configure.
35795       ac_sub_configure=$ac_aux_dir/configure
35796     else
35797       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35798 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35799       ac_sub_configure=
35800     fi
35801
35802     # The recursion is here.
35803     if test -n "$ac_sub_configure"; then
35804       # Make the cache file name correct relative to the subdirectory.
35805       case $cache_file in
35806       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35807       *) # Relative name.
35808         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35809       esac
35810
35811       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35812 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35813       # The eval makes quoting arguments work.
35814       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35815            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35816         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35817 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35818    { (exit 1); exit 1; }; }
35819     fi
35820
35821     cd "$ac_popdir"
35822   done
35823 fi
35824