Regenerate.
[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.6svn.
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.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
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 CC
816 CFLAGS
817 LDFLAGS
818 CPPFLAGS
819 ac_ct_CC
820 EXEEXT
821 OBJEXT
822 ARCH
823 ENDIAN
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 BUILD_CXX
831 CVSBUILD
832 ENABLE_OPTIMIZED
833 DISABLE_ASSERTIONS
834 ENABLE_EXPENSIVE_CHECKS
835 EXPENSIVE_CHECKS
836 DEBUG_RUNTIME
837 JIT
838 TARGET_HAS_JIT
839 ENABLE_DOXYGEN
840 ENABLE_THREADS
841 ENABLE_PIC
842 TARGETS_TO_BUILD
843 ENABLE_CBE_PRINTF_A
844 EXTRA_OPTIONS
845 BINUTILS_INCDIR
846 CXX
847 CXXFLAGS
848 ac_ct_CXX
849 NM
850 ifGNUmake
851 LN_S
852 CMP
853 CP
854 DATE
855 FIND
856 MKDIR
857 MV
858 RANLIB
859 RM
860 SED
861 TAR
862 BINPWD
863 GRAPHVIZ
864 DOT
865 GV
866 DOTTY
867 PERL
868 HAVE_PERL
869 INSTALL_PROGRAM
870 INSTALL_SCRIPT
871 INSTALL_DATA
872 BZIP2
873 DOXYGEN
874 GROFF
875 GZIP
876 POD2HTML
877 POD2MAN
878 RUNTEST
879 TCLSH
880 ZIP
881 OCAMLC
882 OCAMLOPT
883 OCAMLDEP
884 OCAMLDOC
885 GAS
886 INSTALL_LTDL_TRUE
887 INSTALL_LTDL_FALSE
888 CONVENIENCE_LTDL_TRUE
889 CONVENIENCE_LTDL_FALSE
890 LIBADD_DL
891 ECHO
892 AR
893 STRIP
894 CXXCPP
895 F77
896 FFLAGS
897 ac_ct_F77
898 LIBTOOL
899 LLVMGCC
900 LLVMGXX
901 USE_UDIS86
902 HAVE_PTHREAD
903 HAVE_FFI
904 HUGE_VAL_SANITY
905 ALLOCA
906 MMAP_FILE
907 LLVMCC1
908 LLVMCC1PLUS
909 LLVMGCCDIR
910 LLVMGCCLIBEXEC
911 LLVMGCC_VERSION
912 LLVMGCC_MAJVERS
913 LLVMGCC_LANGS
914 SHLIBEXT
915 LLVM_PREFIX
916 LLVM_BINDIR
917 LLVM_LIBDIR
918 LLVM_DATADIR
919 LLVM_DOCSDIR
920 LLVM_ETCDIR
921 LLVM_INCLUDEDIR
922 LLVM_INFODIR
923 LLVM_MANDIR
924 LLVM_CONFIGTIME
925 BINDINGS_TO_BUILD
926 ALL_BINDINGS
927 OCAML_LIBDIR
928 ENABLE_VISIBILITY_INLINES_HIDDEN
929 RPATH
930 RDYNAMIC
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 CXXCPP
946 F77
947 FFLAGS'
948 ac_subdirs_all='projects/sample
949 projects/privbracket
950 projects/llvm-stacker
951 projects/llvm-test
952 projects/test-suite
953 projects/llvm-reopt
954 projects/llvm-gcc
955 projects/llvm-java
956 projects/llvm-tv
957 projects/llvm-poolalloc
958 projects/poolalloc
959 projects/llvm-kernel'
960
961 # Initialize some variables set by options.
962 ac_init_help=
963 ac_init_version=false
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
966 cache_file=/dev/null
967 exec_prefix=NONE
968 no_create=
969 no_recursion=
970 prefix=NONE
971 program_prefix=NONE
972 program_suffix=NONE
973 program_transform_name=s,x,x,
974 silent=
975 site=
976 srcdir=
977 verbose=
978 x_includes=NONE
979 x_libraries=NONE
980
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998 infodir='${datarootdir}/info'
999 htmldir='${docdir}'
1000 dvidir='${docdir}'
1001 pdfdir='${docdir}'
1002 psdir='${docdir}'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1006
1007 ac_prev=
1008 ac_dashdash=
1009 for ac_option
1010 do
1011   # If the previous option needs an argument, assign it.
1012   if test -n "$ac_prev"; then
1013     eval $ac_prev=\$ac_option
1014     ac_prev=
1015     continue
1016   fi
1017
1018   case $ac_option in
1019   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020   *)    ac_optarg=yes ;;
1021   esac
1022
1023   # Accept the important Cygnus configure options, so we can diagnose typos.
1024
1025   case $ac_dashdash$ac_option in
1026   --)
1027     ac_dashdash=yes ;;
1028
1029   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030     ac_prev=bindir ;;
1031   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032     bindir=$ac_optarg ;;
1033
1034   -build | --build | --buil | --bui | --bu)
1035     ac_prev=build_alias ;;
1036   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037     build_alias=$ac_optarg ;;
1038
1039   -cache-file | --cache-file | --cache-fil | --cache-fi \
1040   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041     ac_prev=cache_file ;;
1042   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044     cache_file=$ac_optarg ;;
1045
1046   --config-cache | -C)
1047     cache_file=config.cache ;;
1048
1049   -datadir | --datadir | --datadi | --datad)
1050     ac_prev=datadir ;;
1051   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052     datadir=$ac_optarg ;;
1053
1054   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055   | --dataroo | --dataro | --datar)
1056     ac_prev=datarootdir ;;
1057   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059     datarootdir=$ac_optarg ;;
1060
1061   -disable-* | --disable-*)
1062     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063     # Reject names that are not valid shell variable names.
1064     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1065       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066    { (exit 1); exit 1; }; }
1067     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1068     eval enable_$ac_feature=no ;;
1069
1070   -docdir | --docdir | --docdi | --doc | --do)
1071     ac_prev=docdir ;;
1072   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073     docdir=$ac_optarg ;;
1074
1075   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076     ac_prev=dvidir ;;
1077   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078     dvidir=$ac_optarg ;;
1079
1080   -enable-* | --enable-*)
1081     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082     # Reject names that are not valid shell variable names.
1083     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1084       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085    { (exit 1); exit 1; }; }
1086     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1087     eval enable_$ac_feature=\$ac_optarg ;;
1088
1089   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091   | --exec | --exe | --ex)
1092     ac_prev=exec_prefix ;;
1093   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095   | --exec=* | --exe=* | --ex=*)
1096     exec_prefix=$ac_optarg ;;
1097
1098   -gas | --gas | --ga | --g)
1099     # Obsolete; use --with-gas.
1100     with_gas=yes ;;
1101
1102   -help | --help | --hel | --he | -h)
1103     ac_init_help=long ;;
1104   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105     ac_init_help=recursive ;;
1106   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107     ac_init_help=short ;;
1108
1109   -host | --host | --hos | --ho)
1110     ac_prev=host_alias ;;
1111   -host=* | --host=* | --hos=* | --ho=*)
1112     host_alias=$ac_optarg ;;
1113
1114   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115     ac_prev=htmldir ;;
1116   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117   | --ht=*)
1118     htmldir=$ac_optarg ;;
1119
1120   -includedir | --includedir | --includedi | --included | --include \
1121   | --includ | --inclu | --incl | --inc)
1122     ac_prev=includedir ;;
1123   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124   | --includ=* | --inclu=* | --incl=* | --inc=*)
1125     includedir=$ac_optarg ;;
1126
1127   -infodir | --infodir | --infodi | --infod | --info | --inf)
1128     ac_prev=infodir ;;
1129   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130     infodir=$ac_optarg ;;
1131
1132   -libdir | --libdir | --libdi | --libd)
1133     ac_prev=libdir ;;
1134   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135     libdir=$ac_optarg ;;
1136
1137   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138   | --libexe | --libex | --libe)
1139     ac_prev=libexecdir ;;
1140   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141   | --libexe=* | --libex=* | --libe=*)
1142     libexecdir=$ac_optarg ;;
1143
1144   -localedir | --localedir | --localedi | --localed | --locale)
1145     ac_prev=localedir ;;
1146   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147     localedir=$ac_optarg ;;
1148
1149   -localstatedir | --localstatedir | --localstatedi | --localstated \
1150   | --localstate | --localstat | --localsta | --localst | --locals)
1151     ac_prev=localstatedir ;;
1152   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154     localstatedir=$ac_optarg ;;
1155
1156   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157     ac_prev=mandir ;;
1158   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159     mandir=$ac_optarg ;;
1160
1161   -nfp | --nfp | --nf)
1162     # Obsolete; use --without-fp.
1163     with_fp=no ;;
1164
1165   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166   | --no-cr | --no-c | -n)
1167     no_create=yes ;;
1168
1169   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171     no_recursion=yes ;;
1172
1173   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175   | --oldin | --oldi | --old | --ol | --o)
1176     ac_prev=oldincludedir ;;
1177   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180     oldincludedir=$ac_optarg ;;
1181
1182   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183     ac_prev=prefix ;;
1184   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185     prefix=$ac_optarg ;;
1186
1187   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188   | --program-pre | --program-pr | --program-p)
1189     ac_prev=program_prefix ;;
1190   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192     program_prefix=$ac_optarg ;;
1193
1194   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195   | --program-suf | --program-su | --program-s)
1196     ac_prev=program_suffix ;;
1197   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199     program_suffix=$ac_optarg ;;
1200
1201   -program-transform-name | --program-transform-name \
1202   | --program-transform-nam | --program-transform-na \
1203   | --program-transform-n | --program-transform- \
1204   | --program-transform | --program-transfor \
1205   | --program-transfo | --program-transf \
1206   | --program-trans | --program-tran \
1207   | --progr-tra | --program-tr | --program-t)
1208     ac_prev=program_transform_name ;;
1209   -program-transform-name=* | --program-transform-name=* \
1210   | --program-transform-nam=* | --program-transform-na=* \
1211   | --program-transform-n=* | --program-transform-=* \
1212   | --program-transform=* | --program-transfor=* \
1213   | --program-transfo=* | --program-transf=* \
1214   | --program-trans=* | --program-tran=* \
1215   | --progr-tra=* | --program-tr=* | --program-t=*)
1216     program_transform_name=$ac_optarg ;;
1217
1218   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219     ac_prev=pdfdir ;;
1220   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221     pdfdir=$ac_optarg ;;
1222
1223   -psdir | --psdir | --psdi | --psd | --ps)
1224     ac_prev=psdir ;;
1225   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226     psdir=$ac_optarg ;;
1227
1228   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229   | -silent | --silent | --silen | --sile | --sil)
1230     silent=yes ;;
1231
1232   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233     ac_prev=sbindir ;;
1234   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235   | --sbi=* | --sb=*)
1236     sbindir=$ac_optarg ;;
1237
1238   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240   | --sharedst | --shareds | --shared | --share | --shar \
1241   | --sha | --sh)
1242     ac_prev=sharedstatedir ;;
1243   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246   | --sha=* | --sh=*)
1247     sharedstatedir=$ac_optarg ;;
1248
1249   -site | --site | --sit)
1250     ac_prev=site ;;
1251   -site=* | --site=* | --sit=*)
1252     site=$ac_optarg ;;
1253
1254   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255     ac_prev=srcdir ;;
1256   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257     srcdir=$ac_optarg ;;
1258
1259   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260   | --syscon | --sysco | --sysc | --sys | --sy)
1261     ac_prev=sysconfdir ;;
1262   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264     sysconfdir=$ac_optarg ;;
1265
1266   -target | --target | --targe | --targ | --tar | --ta | --t)
1267     ac_prev=target_alias ;;
1268   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269     target_alias=$ac_optarg ;;
1270
1271   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272     verbose=yes ;;
1273
1274   -version | --version | --versio | --versi | --vers | -V)
1275     ac_init_version=: ;;
1276
1277   -with-* | --with-*)
1278     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279     # Reject names that are not valid shell variable names.
1280     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1281       { echo "$as_me: error: invalid package name: $ac_package" >&2
1282    { (exit 1); exit 1; }; }
1283     ac_package=`echo $ac_package| sed 's/-/_/g'`
1284     eval with_$ac_package=\$ac_optarg ;;
1285
1286   -without-* | --without-*)
1287     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288     # Reject names that are not valid shell variable names.
1289     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1290       { echo "$as_me: error: invalid package name: $ac_package" >&2
1291    { (exit 1); exit 1; }; }
1292     ac_package=`echo $ac_package | sed 's/-/_/g'`
1293     eval with_$ac_package=no ;;
1294
1295   --x)
1296     # Obsolete; use --with-x.
1297     with_x=yes ;;
1298
1299   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300   | --x-incl | --x-inc | --x-in | --x-i)
1301     ac_prev=x_includes ;;
1302   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304     x_includes=$ac_optarg ;;
1305
1306   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308     ac_prev=x_libraries ;;
1309   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311     x_libraries=$ac_optarg ;;
1312
1313   -*) { echo "$as_me: error: unrecognized option: $ac_option
1314 Try \`$0 --help' for more information." >&2
1315    { (exit 1); exit 1; }; }
1316     ;;
1317
1318   *=*)
1319     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320     # Reject names that are not valid shell variable names.
1321     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323    { (exit 1); exit 1; }; }
1324     eval $ac_envvar=\$ac_optarg
1325     export $ac_envvar ;;
1326
1327   *)
1328     # FIXME: should be removed in autoconf 3.0.
1329     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333     ;;
1334
1335   esac
1336 done
1337
1338 if test -n "$ac_prev"; then
1339   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340   { echo "$as_me: error: missing argument to $ac_option" >&2
1341    { (exit 1); exit 1; }; }
1342 fi
1343
1344 # Be sure to have absolute directory names.
1345 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346                 datadir sysconfdir sharedstatedir localstatedir includedir \
1347                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348                 libdir localedir mandir
1349 do
1350   eval ac_val=\$$ac_var
1351   case $ac_val in
1352     [\\/$]* | ?:[\\/]* )  continue;;
1353     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354   esac
1355   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356    { (exit 1); exit 1; }; }
1357 done
1358
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1362 build=$build_alias
1363 host=$host_alias
1364 target=$target_alias
1365
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368   if test "x$build_alias" = x; then
1369     cross_compiling=maybe
1370     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371     If a cross compiler is detected then cross compile mode will be used." >&2
1372   elif test "x$build_alias" != "x$host_alias"; then
1373     cross_compiling=yes
1374   fi
1375 fi
1376
1377 ac_tool_prefix=
1378 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380 test "$silent" = yes && exec 6>/dev/null
1381
1382
1383 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di=`ls -di .` &&
1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386   { echo "$as_me: error: Working directory cannot be determined" >&2
1387    { (exit 1); exit 1; }; }
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389   { echo "$as_me: error: pwd does not report name of working directory" >&2
1390    { (exit 1); exit 1; }; }
1391
1392
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395   ac_srcdir_defaulted=yes
1396   # Try the directory containing this script, then the parent directory.
1397   ac_confdir=`$as_dirname -- "$0" ||
1398 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399          X"$0" : 'X\(//\)[^/]' \| \
1400          X"$0" : 'X\(//\)$' \| \
1401          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1402 echo X"$0" |
1403     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404             s//\1/
1405             q
1406           }
1407           /^X\(\/\/\)[^/].*/{
1408             s//\1/
1409             q
1410           }
1411           /^X\(\/\/\)$/{
1412             s//\1/
1413             q
1414           }
1415           /^X\(\/\).*/{
1416             s//\1/
1417             q
1418           }
1419           s/.*/./; q'`
1420   srcdir=$ac_confdir
1421   if test ! -r "$srcdir/$ac_unique_file"; then
1422     srcdir=..
1423   fi
1424 else
1425   ac_srcdir_defaulted=no
1426 fi
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1430    { (exit 1); exit 1; }; }
1431 fi
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 ac_abs_confdir=`(
1434         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1435    { (exit 1); exit 1; }; }
1436         pwd)`
1437 # When building in place, set srcdir=.
1438 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439   srcdir=.
1440 fi
1441 # Remove unnecessary trailing slashes from srcdir.
1442 # Double slashes in file names in object file debugging info
1443 # mess up M-x gdb in Emacs.
1444 case $srcdir in
1445 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446 esac
1447 for ac_var in $ac_precious_vars; do
1448   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449   eval ac_env_${ac_var}_value=\$${ac_var}
1450   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452 done
1453
1454 #
1455 # Report the --help message.
1456 #
1457 if test "$ac_init_help" = "long"; then
1458   # Omit some internal or obsolete options to make the list less imposing.
1459   # This message is too long to be a string in the A/UX 3.1 sh.
1460   cat <<_ACEOF
1461 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1462
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE.  See below for descriptions of some of the useful variables.
1467
1468 Defaults for the options are specified in brackets.
1469
1470 Configuration:
1471   -h, --help              display this help and exit
1472       --help=short        display options specific to this package
1473       --help=recursive    display the short help of all the included packages
1474   -V, --version           display version information and exit
1475   -q, --quiet, --silent   do not print \`checking...' messages
1476       --cache-file=FILE   cache test results in FILE [disabled]
1477   -C, --config-cache      alias for \`--cache-file=config.cache'
1478   -n, --no-create         do not create output files
1479       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1480
1481 Installation directories:
1482   --prefix=PREFIX         install architecture-independent files in PREFIX
1483                           [$ac_default_prefix]
1484   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1485                           [PREFIX]
1486
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1491
1492 For better control, use the options below.
1493
1494 Fine tuning of the installation directories:
1495   --bindir=DIR           user executables [EPREFIX/bin]
1496   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1497   --libexecdir=DIR       program executables [EPREFIX/libexec]
1498   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1499   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1500   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1501   --libdir=DIR           object code libraries [EPREFIX/lib]
1502   --includedir=DIR       C header files [PREFIX/include]
1503   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1504   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1505   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1506   --infodir=DIR          info documentation [DATAROOTDIR/info]
1507   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1508   --mandir=DIR           man documentation [DATAROOTDIR/man]
1509   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1510   --htmldir=DIR          html documentation [DOCDIR]
1511   --dvidir=DIR           dvi documentation [DOCDIR]
1512   --pdfdir=DIR           pdf documentation [DOCDIR]
1513   --psdir=DIR            ps documentation [DOCDIR]
1514 _ACEOF
1515
1516   cat <<\_ACEOF
1517
1518 System types:
1519   --build=BUILD     configure for building on BUILD [guessed]
1520   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1521   --target=TARGET   configure for building compilers for TARGET [HOST]
1522 _ACEOF
1523 fi
1524
1525 if test -n "$ac_init_help"; then
1526   case $ac_init_help in
1527      short | recursive ) echo "Configuration of llvm 2.6svn:";;
1528    esac
1529   cat <<\_ACEOF
1530
1531 Optional Features:
1532   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1533   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1534   --enable-optimized
1535   --enable-assertions
1536   --enable-expensive-checks
1537
1538   --enable-debug-runtime
1539   --enable-jit            Enable Just In Time Compiling (default is YES)
1540   --enable-doxygen        Build doxygen documentation (default is NO)
1541   --enable-threads        Use threads if available (default is YES)
1542   --enable-pic            Build LLVM with Position Independent Code (default
1543                           is YES)
1544   --enable-targets        Build specific host targets:
1545                           all,host-only,{target-name} (default=all)
1546   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1547                           %a (default is YES)
1548   --enable-bindings       Build specific language bindings:
1549                           all,auto,none,{binding-name} (default=auto)
1550   --enable-ltdl-install   install libltdl
1551   --enable-shared[=PKGS]  build shared libraries
1552                           [default=yes]
1553   --enable-static[=PKGS]  build static libraries
1554                           [default=yes]
1555   --enable-fast-install[=PKGS]
1556                           optimize for fast installation
1557                           [default=yes]
1558   --disable-libtool-lock  avoid locking (might break parallel builds)
1559
1560 Optional Packages:
1561   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1562   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1563   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1564                           searches PATH)
1565   --with-llvmgcc          Specify location of llvm-gcc driver (default
1566                           searches PATH)
1567   --with-llvmgxx          Specify location of llvm-g++ driver (default
1568                           searches PATH)
1569   --with-extra-options    Specify addtional options to compile LLVM with
1570   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1571                           is stdlib)
1572   --with-binutils-include Specify path to binutils/include/ containing
1573                           plugin-api.h file for gold plugin.
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   CXXCPP      C++ preprocessor
1592   F77         Fortran 77 compiler command
1593   FFLAGS      Fortran 77 compiler flags
1594
1595 Use these variables to override the choices made by `configure' or to help
1596 it to find libraries and programs with nonstandard names/locations.
1597
1598 Report bugs to <llvmbugs@cs.uiuc.edu>.
1599 _ACEOF
1600 ac_status=$?
1601 fi
1602
1603 if test "$ac_init_help" = "recursive"; then
1604   # If there are subdirs, report their specific --help.
1605   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1606     test -d "$ac_dir" || continue
1607     ac_builddir=.
1608
1609 case "$ac_dir" in
1610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *)
1612   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1613   # A ".." for each directory in $ac_dir_suffix.
1614   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1615   case $ac_top_builddir_sub in
1616   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618   esac ;;
1619 esac
1620 ac_abs_top_builddir=$ac_pwd
1621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622 # for backward compatibility:
1623 ac_top_builddir=$ac_top_build_prefix
1624
1625 case $srcdir in
1626   .)  # We are building in place.
1627     ac_srcdir=.
1628     ac_top_srcdir=$ac_top_builddir_sub
1629     ac_abs_top_srcdir=$ac_pwd ;;
1630   [\\/]* | ?:[\\/]* )  # Absolute name.
1631     ac_srcdir=$srcdir$ac_dir_suffix;
1632     ac_top_srcdir=$srcdir
1633     ac_abs_top_srcdir=$srcdir ;;
1634   *) # Relative name.
1635     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636     ac_top_srcdir=$ac_top_build_prefix$srcdir
1637     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638 esac
1639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640
1641     cd "$ac_dir" || { ac_status=$?; continue; }
1642     # Check for guested configure.
1643     if test -f "$ac_srcdir/configure.gnu"; then
1644       echo &&
1645       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646     elif test -f "$ac_srcdir/configure"; then
1647       echo &&
1648       $SHELL "$ac_srcdir/configure" --help=recursive
1649     else
1650       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651     fi || ac_status=$?
1652     cd "$ac_pwd" || { ac_status=$?; break; }
1653   done
1654 fi
1655
1656 test -n "$ac_init_help" && exit $ac_status
1657 if $ac_init_version; then
1658   cat <<\_ACEOF
1659 llvm configure 2.6svn
1660 generated by GNU Autoconf 2.60
1661
1662 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1663 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1664 This configure script is free software; the Free Software Foundation
1665 gives unlimited permission to copy, distribute and modify it.
1666
1667 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1668 _ACEOF
1669   exit
1670 fi
1671 cat >config.log <<_ACEOF
1672 This file contains any messages produced by compilers while
1673 running configure, to aid debugging if configure makes a mistake.
1674
1675 It was created by llvm $as_me 2.6svn, which was
1676 generated by GNU Autoconf 2.60.  Invocation command line was
1677
1678   $ $0 $@
1679
1680 _ACEOF
1681 exec 5>>config.log
1682 {
1683 cat <<_ASUNAME
1684 ## --------- ##
1685 ## Platform. ##
1686 ## --------- ##
1687
1688 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1689 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1690 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1691 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1692 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1693
1694 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1695 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1696
1697 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1698 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1699 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1700 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1701 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1702 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1703 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1704
1705 _ASUNAME
1706
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 for as_dir in $PATH
1709 do
1710   IFS=$as_save_IFS
1711   test -z "$as_dir" && as_dir=.
1712   echo "PATH: $as_dir"
1713 done
1714 IFS=$as_save_IFS
1715
1716 } >&5
1717
1718 cat >&5 <<_ACEOF
1719
1720
1721 ## ----------- ##
1722 ## Core tests. ##
1723 ## ----------- ##
1724
1725 _ACEOF
1726
1727
1728 # Keep a trace of the command line.
1729 # Strip out --no-create and --no-recursion so they do not pile up.
1730 # Strip out --silent because we don't want to record it for future runs.
1731 # Also quote any args containing shell meta-characters.
1732 # Make two passes to allow for proper duplicate-argument suppression.
1733 ac_configure_args=
1734 ac_configure_args0=
1735 ac_configure_args1=
1736 ac_must_keep_next=false
1737 for ac_pass in 1 2
1738 do
1739   for ac_arg
1740   do
1741     case $ac_arg in
1742     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1743     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1744     | -silent | --silent | --silen | --sile | --sil)
1745       continue ;;
1746     *\'*)
1747       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1748     esac
1749     case $ac_pass in
1750     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1751     2)
1752       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1753       if test $ac_must_keep_next = true; then
1754         ac_must_keep_next=false # Got value, back to normal.
1755       else
1756         case $ac_arg in
1757           *=* | --config-cache | -C | -disable-* | --disable-* \
1758           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1759           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1760           | -with-* | --with-* | -without-* | --without-* | --x)
1761             case "$ac_configure_args0 " in
1762               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1763             esac
1764             ;;
1765           -* ) ac_must_keep_next=true ;;
1766         esac
1767       fi
1768       ac_configure_args="$ac_configure_args '$ac_arg'"
1769       ;;
1770     esac
1771   done
1772 done
1773 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1774 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1775
1776 # When interrupted or exit'd, cleanup temporary files, and complete
1777 # config.log.  We remove comments because anyway the quotes in there
1778 # would cause problems or look ugly.
1779 # WARNING: Use '\'' to represent an apostrophe within the trap.
1780 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1781 trap 'exit_status=$?
1782   # Save into config.log some information that might help in debugging.
1783   {
1784     echo
1785
1786     cat <<\_ASBOX
1787 ## ---------------- ##
1788 ## Cache variables. ##
1789 ## ---------------- ##
1790 _ASBOX
1791     echo
1792     # The following way of writing the cache mishandles newlines in values,
1793 (
1794   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1795     eval ac_val=\$$ac_var
1796     case $ac_val in #(
1797     *${as_nl}*)
1798       case $ac_var in #(
1799       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1800 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1801       esac
1802       case $ac_var in #(
1803       _ | IFS | as_nl) ;; #(
1804       *) $as_unset $ac_var ;;
1805       esac ;;
1806     esac
1807   done
1808   (set) 2>&1 |
1809     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1810     *${as_nl}ac_space=\ *)
1811       sed -n \
1812         "s/'\''/'\''\\\\'\'''\''/g;
1813           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1814       ;; #(
1815     *)
1816       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1817       ;;
1818     esac |
1819     sort
1820 )
1821     echo
1822
1823     cat <<\_ASBOX
1824 ## ----------------- ##
1825 ## Output variables. ##
1826 ## ----------------- ##
1827 _ASBOX
1828     echo
1829     for ac_var in $ac_subst_vars
1830     do
1831       eval ac_val=\$$ac_var
1832       case $ac_val in
1833       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834       esac
1835       echo "$ac_var='\''$ac_val'\''"
1836     done | sort
1837     echo
1838
1839     if test -n "$ac_subst_files"; then
1840       cat <<\_ASBOX
1841 ## ------------------- ##
1842 ## File substitutions. ##
1843 ## ------------------- ##
1844 _ASBOX
1845       echo
1846       for ac_var in $ac_subst_files
1847       do
1848         eval ac_val=\$$ac_var
1849         case $ac_val in
1850         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1851         esac
1852         echo "$ac_var='\''$ac_val'\''"
1853       done | sort
1854       echo
1855     fi
1856
1857     if test -s confdefs.h; then
1858       cat <<\_ASBOX
1859 ## ----------- ##
1860 ## confdefs.h. ##
1861 ## ----------- ##
1862 _ASBOX
1863       echo
1864       cat confdefs.h
1865       echo
1866     fi
1867     test "$ac_signal" != 0 &&
1868       echo "$as_me: caught signal $ac_signal"
1869     echo "$as_me: exit $exit_status"
1870   } >&5
1871   rm -f core *.core core.conftest.* &&
1872     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1873     exit $exit_status
1874 ' 0
1875 for ac_signal in 1 2 13 15; do
1876   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1877 done
1878 ac_signal=0
1879
1880 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1881 rm -f -r conftest* confdefs.h
1882
1883 # Predefined preprocessor variables.
1884
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_NAME "$PACKAGE_NAME"
1887 _ACEOF
1888
1889
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1892 _ACEOF
1893
1894
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1897 _ACEOF
1898
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_STRING "$PACKAGE_STRING"
1902 _ACEOF
1903
1904
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1907 _ACEOF
1908
1909
1910 # Let the site file select an alternate cache file if it wants to.
1911 # Prefer explicitly selected file to automatically selected ones.
1912 if test -n "$CONFIG_SITE"; then
1913   set x "$CONFIG_SITE"
1914 elif test "x$prefix" != xNONE; then
1915   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1916 else
1917   set x "$ac_default_prefix/share/config.site" \
1918         "$ac_default_prefix/etc/config.site"
1919 fi
1920 shift
1921 for ac_site_file
1922 do
1923   if test -r "$ac_site_file"; then
1924     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1925 echo "$as_me: loading site script $ac_site_file" >&6;}
1926     sed 's/^/| /' "$ac_site_file" >&5
1927     . "$ac_site_file"
1928   fi
1929 done
1930
1931 if test -r "$cache_file"; then
1932   # Some versions of bash will fail to source /dev/null (special
1933   # files actually), so we avoid doing that.
1934   if test -f "$cache_file"; then
1935     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1936 echo "$as_me: loading cache $cache_file" >&6;}
1937     case $cache_file in
1938       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1939       *)                      . "./$cache_file";;
1940     esac
1941   fi
1942 else
1943   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1944 echo "$as_me: creating cache $cache_file" >&6;}
1945   >$cache_file
1946 fi
1947
1948 # Check that the precious variables saved in the cache have kept the same
1949 # value.
1950 ac_cache_corrupted=false
1951 for ac_var in $ac_precious_vars; do
1952   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1953   eval ac_new_set=\$ac_env_${ac_var}_set
1954   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1955   eval ac_new_val=\$ac_env_${ac_var}_value
1956   case $ac_old_set,$ac_new_set in
1957     set,)
1958       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1959 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1960       ac_cache_corrupted=: ;;
1961     ,set)
1962       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1963 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1964       ac_cache_corrupted=: ;;
1965     ,);;
1966     *)
1967       if test "x$ac_old_val" != "x$ac_new_val"; then
1968         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1969 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1970         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1971 echo "$as_me:   former value:  $ac_old_val" >&2;}
1972         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1973 echo "$as_me:   current value: $ac_new_val" >&2;}
1974         ac_cache_corrupted=:
1975       fi;;
1976   esac
1977   # Pass precious variables to config.status.
1978   if test "$ac_new_set" = set; then
1979     case $ac_new_val in
1980     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1981     *) ac_arg=$ac_var=$ac_new_val ;;
1982     esac
1983     case " $ac_configure_args " in
1984       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1985       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1986     esac
1987   fi
1988 done
1989 if $ac_cache_corrupted; then
1990   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1991 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1992   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1993 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1994    { (exit 1); exit 1; }; }
1995 fi
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021 ac_ext=c
2022 ac_cpp='$CPP $CPPFLAGS'
2023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2026
2027
2028
2029 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2030
2031
2032
2033
2034
2035
2036
2037 ac_aux_dir=
2038 for ac_dir in autoconf "$srcdir"/autoconf; do
2039   if test -f "$ac_dir/install-sh"; then
2040     ac_aux_dir=$ac_dir
2041     ac_install_sh="$ac_aux_dir/install-sh -c"
2042     break
2043   elif test -f "$ac_dir/install.sh"; then
2044     ac_aux_dir=$ac_dir
2045     ac_install_sh="$ac_aux_dir/install.sh -c"
2046     break
2047   elif test -f "$ac_dir/shtool"; then
2048     ac_aux_dir=$ac_dir
2049     ac_install_sh="$ac_aux_dir/shtool install -c"
2050     break
2051   fi
2052 done
2053 if test -z "$ac_aux_dir"; then
2054   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2055 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2056    { (exit 1); exit 1; }; }
2057 fi
2058
2059 # These three variables are undocumented and unsupported,
2060 # and are intended to be withdrawn in a future Autoconf release.
2061 # They can cause serious problems if a builder's source tree is in a directory
2062 # whose full name contains unusual characters.
2063 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2064 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2065 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2066
2067
2068
2069 if test ${srcdir} != "." ; then
2070   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2071     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2072 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2073    { (exit 1); exit 1; }; }
2074   fi
2075 fi
2076
2077 for i in `ls ${srcdir}/projects`
2078 do
2079   if test -d ${srcdir}/projects/${i} ; then
2080     case ${i} in
2081       CVS) ;;
2082       sample)       subdirs="$subdirs projects/sample"
2083     ;;
2084       privbracket)  subdirs="$subdirs projects/privbracket"
2085  ;;
2086       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2087  ;;
2088       # llvm-test is the old name of the test-suite, kept here for backwards
2089       # compatibility
2090       llvm-test)    subdirs="$subdirs projects/llvm-test"
2091  ;;
2092       test-suite)   subdirs="$subdirs projects/test-suite"
2093  ;;
2094       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2095 ;;
2096       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2097   ;;
2098       llvm-java)    subdirs="$subdirs projects/llvm-java"
2099  ;;
2100       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2101    ;;
2102       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2103  ;;
2104       poolalloc)    subdirs="$subdirs projects/poolalloc"
2105  ;;
2106       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2107  ;;
2108       *)
2109         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2110 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2111         ;;
2112     esac
2113   fi
2114 done
2115
2116
2117 # Make sure we can run config.sub.
2118 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2119   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2120 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2121    { (exit 1); exit 1; }; }
2122
2123 { echo "$as_me:$LINENO: checking build system type" >&5
2124 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2125 if test "${ac_cv_build+set}" = set; then
2126   echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128   ac_build_alias=$build_alias
2129 test "x$ac_build_alias" = x &&
2130   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2131 test "x$ac_build_alias" = x &&
2132   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2133 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2134    { (exit 1); exit 1; }; }
2135 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2136   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2137 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2138    { (exit 1); exit 1; }; }
2139
2140 fi
2141 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2142 echo "${ECHO_T}$ac_cv_build" >&6; }
2143 case $ac_cv_build in
2144 *-*-*) ;;
2145 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2146 echo "$as_me: error: invalid value of canonical build" >&2;}
2147    { (exit 1); exit 1; }; };;
2148 esac
2149 build=$ac_cv_build
2150 ac_save_IFS=$IFS; IFS='-'
2151 set x $ac_cv_build
2152 shift
2153 build_cpu=$1
2154 build_vendor=$2
2155 shift; shift
2156 # Remember, the first character of IFS is used to create $*,
2157 # except with old shells:
2158 build_os=$*
2159 IFS=$ac_save_IFS
2160 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2161
2162
2163 { echo "$as_me:$LINENO: checking host system type" >&5
2164 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2165 if test "${ac_cv_host+set}" = set; then
2166   echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168   if test "x$host_alias" = x; then
2169   ac_cv_host=$ac_cv_build
2170 else
2171   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2172     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2173 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2174    { (exit 1); exit 1; }; }
2175 fi
2176
2177 fi
2178 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2179 echo "${ECHO_T}$ac_cv_host" >&6; }
2180 case $ac_cv_host in
2181 *-*-*) ;;
2182 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2183 echo "$as_me: error: invalid value of canonical host" >&2;}
2184    { (exit 1); exit 1; }; };;
2185 esac
2186 host=$ac_cv_host
2187 ac_save_IFS=$IFS; IFS='-'
2188 set x $ac_cv_host
2189 shift
2190 host_cpu=$1
2191 host_vendor=$2
2192 shift; shift
2193 # Remember, the first character of IFS is used to create $*,
2194 # except with old shells:
2195 host_os=$*
2196 IFS=$ac_save_IFS
2197 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2198
2199
2200 { echo "$as_me:$LINENO: checking target system type" >&5
2201 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2202 if test "${ac_cv_target+set}" = set; then
2203   echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205   if test "x$target_alias" = x; then
2206   ac_cv_target=$ac_cv_host
2207 else
2208   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2209     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2210 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2211    { (exit 1); exit 1; }; }
2212 fi
2213
2214 fi
2215 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2216 echo "${ECHO_T}$ac_cv_target" >&6; }
2217 case $ac_cv_target in
2218 *-*-*) ;;
2219 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2220 echo "$as_me: error: invalid value of canonical target" >&2;}
2221    { (exit 1); exit 1; }; };;
2222 esac
2223 target=$ac_cv_target
2224 ac_save_IFS=$IFS; IFS='-'
2225 set x $ac_cv_target
2226 shift
2227 target_cpu=$1
2228 target_vendor=$2
2229 shift; shift
2230 # Remember, the first character of IFS is used to create $*,
2231 # except with old shells:
2232 target_os=$*
2233 IFS=$ac_save_IFS
2234 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2235
2236
2237 # The aliases save the names the user supplied, while $host etc.
2238 # will get canonicalized.
2239 test -n "$target_alias" &&
2240   test "$program_prefix$program_suffix$program_transform_name" = \
2241     NONENONEs,x,x, &&
2242   program_prefix=${target_alias}-
2243
2244 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2245 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2246 if test "${llvm_cv_os_type+set}" = set; then
2247   echo $ECHO_N "(cached) $ECHO_C" >&6
2248 else
2249   case $host in
2250   *-*-aix*)
2251     llvm_cv_link_all_option="-Wl,--whole-archive"
2252     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253     llvm_cv_os_type="AIX"
2254     llvm_cv_platform_type="Unix" ;;
2255   *-*-irix*)
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="IRIX"
2259     llvm_cv_platform_type="Unix" ;;
2260   *-*-cygwin*)
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="Cygwin"
2264     llvm_cv_platform_type="Unix" ;;
2265   *-*-darwin*)
2266     llvm_cv_link_all_option="-Wl,-all_load"
2267     llvm_cv_no_link_all_option="-Wl,-noall_load"
2268     llvm_cv_os_type="Darwin"
2269     llvm_cv_platform_type="Unix" ;;
2270   *-*-freebsd*)
2271     llvm_cv_link_all_option="-Wl,--whole-archive"
2272     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273     llvm_cv_os_type="FreeBSD"
2274     llvm_cv_platform_type="Unix" ;;
2275   *-*-openbsd*)
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="OpenBSD"
2279     llvm_cv_platform_type="Unix" ;;
2280   *-*-netbsd*)
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="NetBSD"
2284     llvm_cv_platform_type="Unix" ;;
2285   *-*-dragonfly*)
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="DragonFly"
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   xcore-*)                llvm_cv_target_arch="XCore" ;;
2385   *)                      llvm_cv_target_arch="Unknown" ;;
2386 esac
2387 fi
2388 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2389 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2390
2391 if test "$llvm_cv_target_arch" = "Unknown" ; then
2392   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2393 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2394 fi
2395
2396 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
2397   ac_ext=c
2398 ac_cpp='$CPP $CPPFLAGS'
2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402 if test -n "$ac_tool_prefix"; then
2403   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2404 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_CC+set}" = set; then
2408   echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410   if test -n "$CC"; then
2411   ac_cv_prog_CC="$CC" # Let the user override the test.
2412 else
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2415 do
2416   IFS=$as_save_IFS
2417   test -z "$as_dir" && as_dir=.
2418   for ac_exec_ext in '' $ac_executable_extensions; do
2419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2420     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422     break 2
2423   fi
2424 done
2425 done
2426 IFS=$as_save_IFS
2427
2428 fi
2429 fi
2430 CC=$ac_cv_prog_CC
2431 if test -n "$CC"; then
2432   { echo "$as_me:$LINENO: result: $CC" >&5
2433 echo "${ECHO_T}$CC" >&6; }
2434 else
2435   { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2437 fi
2438
2439
2440 fi
2441 if test -z "$ac_cv_prog_CC"; then
2442   ac_ct_CC=$CC
2443   # Extract the first word of "gcc", so it can be a program name with args.
2444 set dummy gcc; ac_word=$2
2445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2448   echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450   if test -n "$ac_ct_CC"; then
2451   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2455 do
2456   IFS=$as_save_IFS
2457   test -z "$as_dir" && as_dir=.
2458   for ac_exec_ext in '' $ac_executable_extensions; do
2459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2460     ac_cv_prog_ac_ct_CC="gcc"
2461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462     break 2
2463   fi
2464 done
2465 done
2466 IFS=$as_save_IFS
2467
2468 fi
2469 fi
2470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2471 if test -n "$ac_ct_CC"; then
2472   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2473 echo "${ECHO_T}$ac_ct_CC" >&6; }
2474 else
2475   { echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6; }
2477 fi
2478
2479   if test "x$ac_ct_CC" = x; then
2480     CC=""
2481   else
2482     case $cross_compiling:$ac_tool_warned in
2483 yes:)
2484 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2485 whose name does not start with the host triplet.  If you think this
2486 configuration is useful to you, please write to autoconf@gnu.org." >&5
2487 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2488 whose name does not start with the host triplet.  If you think this
2489 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2490 ac_tool_warned=yes ;;
2491 esac
2492     CC=$ac_ct_CC
2493   fi
2494 else
2495   CC="$ac_cv_prog_CC"
2496 fi
2497
2498 if test -z "$CC"; then
2499           if test -n "$ac_tool_prefix"; then
2500     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2501 set dummy ${ac_tool_prefix}cc; ac_word=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_CC+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   if test -n "$CC"; then
2508   ac_cv_prog_CC="$CC" # Let the user override the test.
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513   IFS=$as_save_IFS
2514   test -z "$as_dir" && as_dir=.
2515   for ac_exec_ext in '' $ac_executable_extensions; do
2516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2517     ac_cv_prog_CC="${ac_tool_prefix}cc"
2518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519     break 2
2520   fi
2521 done
2522 done
2523 IFS=$as_save_IFS
2524
2525 fi
2526 fi
2527 CC=$ac_cv_prog_CC
2528 if test -n "$CC"; then
2529   { echo "$as_me:$LINENO: result: $CC" >&5
2530 echo "${ECHO_T}$CC" >&6; }
2531 else
2532   { echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6; }
2534 fi
2535
2536
2537   fi
2538 fi
2539 if test -z "$CC"; then
2540   # Extract the first word of "cc", so it can be a program name with args.
2541 set dummy cc; ac_word=$2
2542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2544 if test "${ac_cv_prog_CC+set}" = set; then
2545   echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547   if test -n "$CC"; then
2548   ac_cv_prog_CC="$CC" # Let the user override the test.
2549 else
2550   ac_prog_rejected=no
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2553 do
2554   IFS=$as_save_IFS
2555   test -z "$as_dir" && as_dir=.
2556   for ac_exec_ext in '' $ac_executable_extensions; do
2557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2558     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2559        ac_prog_rejected=yes
2560        continue
2561      fi
2562     ac_cv_prog_CC="cc"
2563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564     break 2
2565   fi
2566 done
2567 done
2568 IFS=$as_save_IFS
2569
2570 if test $ac_prog_rejected = yes; then
2571   # We found a bogon in the path, so make sure we never use it.
2572   set dummy $ac_cv_prog_CC
2573   shift
2574   if test $# != 0; then
2575     # We chose a different compiler from the bogus one.
2576     # However, it has the same basename, so the bogon will be chosen
2577     # first if we set CC to just the basename; use the full file name.
2578     shift
2579     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2580   fi
2581 fi
2582 fi
2583 fi
2584 CC=$ac_cv_prog_CC
2585 if test -n "$CC"; then
2586   { echo "$as_me:$LINENO: result: $CC" >&5
2587 echo "${ECHO_T}$CC" >&6; }
2588 else
2589   { echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6; }
2591 fi
2592
2593
2594 fi
2595 if test -z "$CC"; then
2596   if test -n "$ac_tool_prefix"; then
2597   for ac_prog in cl.exe
2598   do
2599     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2603 if test "${ac_cv_prog_CC+set}" = set; then
2604   echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606   if test -n "$CC"; then
2607   ac_cv_prog_CC="$CC" # Let the user override the test.
2608 else
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2611 do
2612   IFS=$as_save_IFS
2613   test -z "$as_dir" && as_dir=.
2614   for ac_exec_ext in '' $ac_executable_extensions; do
2615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2616     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618     break 2
2619   fi
2620 done
2621 done
2622 IFS=$as_save_IFS
2623
2624 fi
2625 fi
2626 CC=$ac_cv_prog_CC
2627 if test -n "$CC"; then
2628   { echo "$as_me:$LINENO: result: $CC" >&5
2629 echo "${ECHO_T}$CC" >&6; }
2630 else
2631   { echo "$as_me:$LINENO: result: no" >&5
2632 echo "${ECHO_T}no" >&6; }
2633 fi
2634
2635
2636     test -n "$CC" && break
2637   done
2638 fi
2639 if test -z "$CC"; then
2640   ac_ct_CC=$CC
2641   for ac_prog in cl.exe
2642 do
2643   # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2648   echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650   if test -n "$ac_ct_CC"; then
2651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658   for ac_exec_ext in '' $ac_executable_extensions; do
2659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2660     ac_cv_prog_ac_ct_CC="$ac_prog"
2661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665 done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2671 if test -n "$ac_ct_CC"; then
2672   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2673 echo "${ECHO_T}$ac_ct_CC" >&6; }
2674 else
2675   { echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6; }
2677 fi
2678
2679
2680   test -n "$ac_ct_CC" && break
2681 done
2682
2683   if test "x$ac_ct_CC" = x; then
2684     CC=""
2685   else
2686     case $cross_compiling:$ac_tool_warned in
2687 yes:)
2688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2689 whose name does not start with the host triplet.  If you think this
2690 configuration is useful to you, please write to autoconf@gnu.org." >&5
2691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2692 whose name does not start with the host triplet.  If you think this
2693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2694 ac_tool_warned=yes ;;
2695 esac
2696     CC=$ac_ct_CC
2697   fi
2698 fi
2699
2700 fi
2701
2702
2703 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2704 See \`config.log' for more details." >&5
2705 echo "$as_me: error: no acceptable C compiler found in \$PATH
2706 See \`config.log' for more details." >&2;}
2707    { (exit 1); exit 1; }; }
2708
2709 # Provide some information about the compiler.
2710 echo "$as_me:$LINENO: checking for C compiler version" >&5
2711 ac_compiler=`set X $ac_compile; echo $2`
2712 { (ac_try="$ac_compiler --version >&5"
2713 case "(($ac_try" in
2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715   *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718   (eval "$ac_compiler --version >&5") 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }
2722 { (ac_try="$ac_compiler -v >&5"
2723 case "(($ac_try" in
2724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725   *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728   (eval "$ac_compiler -v >&5") 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }
2732 { (ac_try="$ac_compiler -V >&5"
2733 case "(($ac_try" in
2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735   *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738   (eval "$ac_compiler -V >&5") 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }
2742
2743 cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h.  */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h.  */
2749
2750 int
2751 main ()
2752 {
2753
2754   ;
2755   return 0;
2756 }
2757 _ACEOF
2758 ac_clean_files_save=$ac_clean_files
2759 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2760 # Try to create an executable without -o first, disregard a.out.
2761 # It will help us diagnose broken compilers, and finding out an intuition
2762 # of exeext.
2763 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2764 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2765 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2766 #
2767 # List of possible output files, starting from the most likely.
2768 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2769 # only as a last resort.  b.out is created by i960 compilers.
2770 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2771 #
2772 # The IRIX 6 linker writes into existing files which may not be
2773 # executable, retaining their permissions.  Remove them first so a
2774 # subsequent execution test works.
2775 ac_rmfiles=
2776 for ac_file in $ac_files
2777 do
2778   case $ac_file in
2779     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2780     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2781   esac
2782 done
2783 rm -f $ac_rmfiles
2784
2785 if { (ac_try="$ac_link_default"
2786 case "(($ac_try" in
2787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788   *) ac_try_echo=$ac_try;;
2789 esac
2790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791   (eval "$ac_link_default") 2>&5
2792   ac_status=$?
2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794   (exit $ac_status); }; then
2795   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2796 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2797 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2798 # so that the user can short-circuit this test for compilers unknown to
2799 # Autoconf.
2800 for ac_file in $ac_files
2801 do
2802   test -f "$ac_file" || continue
2803   case $ac_file in
2804     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2805         ;;
2806     [ab].out )
2807         # We found the default executable, but exeext='' is most
2808         # certainly right.
2809         break;;
2810     *.* )
2811         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2812         then :; else
2813            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2814         fi
2815         # We set ac_cv_exeext here because the later test for it is not
2816         # safe: cross compilers may not add the suffix if given an `-o'
2817         # argument, so we may need to know it at that point already.
2818         # Even if this section looks crufty: it has the advantage of
2819         # actually working.
2820         break;;
2821     * )
2822         break;;
2823   esac
2824 done
2825 test "$ac_cv_exeext" = no && ac_cv_exeext=
2826
2827 else
2828   echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2830
2831 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2832 See \`config.log' for more details." >&5
2833 echo "$as_me: error: C compiler cannot create executables
2834 See \`config.log' for more details." >&2;}
2835    { (exit 77); exit 77; }; }
2836 fi
2837
2838 ac_exeext=$ac_cv_exeext
2839 { echo "$as_me:$LINENO: result: $ac_file" >&5
2840 echo "${ECHO_T}$ac_file" >&6; }
2841
2842 # Check that the compiler produces executables we can run.  If not, either
2843 # the compiler is broken, or we cross compile.
2844 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2845 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2846 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2847 # If not cross compiling, check that we can run a simple program.
2848 if test "$cross_compiling" != yes; then
2849   if { ac_try='./$ac_file'
2850   { (case "(($ac_try" in
2851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852   *) ac_try_echo=$ac_try;;
2853 esac
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855   (eval "$ac_try") 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; }; then
2859     cross_compiling=no
2860   else
2861     if test "$cross_compiling" = maybe; then
2862         cross_compiling=yes
2863     else
2864         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2865 If you meant to cross compile, use \`--host'.
2866 See \`config.log' for more details." >&5
2867 echo "$as_me: error: cannot run C compiled programs.
2868 If you meant to cross compile, use \`--host'.
2869 See \`config.log' for more details." >&2;}
2870    { (exit 1); exit 1; }; }
2871     fi
2872   fi
2873 fi
2874 { echo "$as_me:$LINENO: result: yes" >&5
2875 echo "${ECHO_T}yes" >&6; }
2876
2877 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2878 ac_clean_files=$ac_clean_files_save
2879 # Check that the compiler produces executables we can run.  If not, either
2880 # the compiler is broken, or we cross compile.
2881 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2882 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2883 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2884 echo "${ECHO_T}$cross_compiling" >&6; }
2885
2886 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2887 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2888 if { (ac_try="$ac_link"
2889 case "(($ac_try" in
2890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891   *) ac_try_echo=$ac_try;;
2892 esac
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894   (eval "$ac_link") 2>&5
2895   ac_status=$?
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); }; then
2898   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2899 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2900 # work properly (i.e., refer to `conftest.exe'), while it won't with
2901 # `rm'.
2902 for ac_file in conftest.exe conftest conftest.*; do
2903   test -f "$ac_file" || continue
2904   case $ac_file in
2905     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2906     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2907           break;;
2908     * ) break;;
2909   esac
2910 done
2911 else
2912   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2913 See \`config.log' for more details." >&5
2914 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2915 See \`config.log' for more details." >&2;}
2916    { (exit 1); exit 1; }; }
2917 fi
2918
2919 rm -f conftest$ac_cv_exeext
2920 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2921 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2922
2923 rm -f conftest.$ac_ext
2924 EXEEXT=$ac_cv_exeext
2925 ac_exeext=$EXEEXT
2926 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2927 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2928 if test "${ac_cv_objext+set}" = set; then
2929   echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931   cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937
2938 int
2939 main ()
2940 {
2941
2942   ;
2943   return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.o conftest.obj
2947 if { (ac_try="$ac_compile"
2948 case "(($ac_try" in
2949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950   *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953   (eval "$ac_compile") 2>&5
2954   ac_status=$?
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); }; then
2957   for ac_file in conftest.o conftest.obj conftest.*; do
2958   test -f "$ac_file" || continue;
2959   case $ac_file in
2960     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2961     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2962        break;;
2963   esac
2964 done
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2970 See \`config.log' for more details." >&5
2971 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2972 See \`config.log' for more details." >&2;}
2973    { (exit 1); exit 1; }; }
2974 fi
2975
2976 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2977 fi
2978 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2979 echo "${ECHO_T}$ac_cv_objext" >&6; }
2980 OBJEXT=$ac_cv_objext
2981 ac_objext=$OBJEXT
2982 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2983 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2984 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   cat >conftest.$ac_ext <<_ACEOF
2988 /* confdefs.h.  */
2989 _ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h.  */
2993
2994 int
2995 main ()
2996 {
2997 #ifndef __GNUC__
2998        choke me
2999 #endif
3000
3001   ;
3002   return 0;
3003 }
3004 _ACEOF
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012   (eval "$ac_compile") 2>conftest.er1
3013   ac_status=$?
3014   grep -v '^ *+' conftest.er1 >conftest.err
3015   rm -f conftest.er1
3016   cat conftest.err >&5
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); } &&
3019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3020   { (case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025   (eval "$ac_try") 2>&5
3026   ac_status=$?
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); }; } &&
3029          { ac_try='test -s conftest.$ac_objext'
3030   { (case "(($ac_try" in
3031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032   *) ac_try_echo=$ac_try;;
3033 esac
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035   (eval "$ac_try") 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); }; }; then
3039   ac_compiler_gnu=yes
3040 else
3041   echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044         ac_compiler_gnu=no
3045 fi
3046
3047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3049
3050 fi
3051 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3052 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3053 GCC=`test $ac_compiler_gnu = yes && echo yes`
3054 ac_test_CFLAGS=${CFLAGS+set}
3055 ac_save_CFLAGS=$CFLAGS
3056 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3057 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3058 if test "${ac_cv_prog_cc_g+set}" = set; then
3059   echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061   ac_save_c_werror_flag=$ac_c_werror_flag
3062    ac_c_werror_flag=yes
3063    ac_cv_prog_cc_g=no
3064    CFLAGS="-g"
3065    cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h.  */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h.  */
3071
3072 int
3073 main ()
3074 {
3075
3076   ;
3077   return 0;
3078 }
3079 _ACEOF
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3082 case "(($ac_try" in
3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084   *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087   (eval "$ac_compile") 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } &&
3094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3095   { (case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100   (eval "$ac_try") 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; } &&
3104          { ac_try='test -s conftest.$ac_objext'
3105   { (case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110   (eval "$ac_try") 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }; }; then
3114   ac_cv_prog_cc_g=yes
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119         CFLAGS=""
3120       cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h.  */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h.  */
3126
3127 int
3128 main ()
3129 {
3130
3131   ;
3132   return 0;
3133 }
3134 _ACEOF
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3137 case "(($ac_try" in
3138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139   *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142   (eval "$ac_compile") 2>conftest.er1
3143   ac_status=$?
3144   grep -v '^ *+' conftest.er1 >conftest.err
3145   rm -f conftest.er1
3146   cat conftest.err >&5
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); } &&
3149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3150   { (case "(($ac_try" in
3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152   *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155   (eval "$ac_try") 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }; } &&
3159          { ac_try='test -s conftest.$ac_objext'
3160   { (case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165   (eval "$ac_try") 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); }; }; then
3169   :
3170 else
3171   echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174         ac_c_werror_flag=$ac_save_c_werror_flag
3175          CFLAGS="-g"
3176          cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h.  */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h.  */
3182
3183 int
3184 main ()
3185 {
3186
3187   ;
3188   return 0;
3189 }
3190 _ACEOF
3191 rm -f conftest.$ac_objext
3192 if { (ac_try="$ac_compile"
3193 case "(($ac_try" in
3194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195   *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198   (eval "$ac_compile") 2>conftest.er1
3199   ac_status=$?
3200   grep -v '^ *+' conftest.er1 >conftest.err
3201   rm -f conftest.er1
3202   cat conftest.err >&5
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); } &&
3205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3206   { (case "(($ac_try" in
3207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208   *) ac_try_echo=$ac_try;;
3209 esac
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211   (eval "$ac_try") 2>&5
3212   ac_status=$?
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); }; } &&
3215          { ac_try='test -s conftest.$ac_objext'
3216   { (case "(($ac_try" in
3217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218   *) ac_try_echo=$ac_try;;
3219 esac
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221   (eval "$ac_try") 2>&5
3222   ac_status=$?
3223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224   (exit $ac_status); }; }; then
3225   ac_cv_prog_cc_g=yes
3226 else
3227   echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3229
3230
3231 fi
3232
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 fi
3235
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 fi
3238
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240    ac_c_werror_flag=$ac_save_c_werror_flag
3241 fi
3242 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3243 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3244 if test "$ac_test_CFLAGS" = set; then
3245   CFLAGS=$ac_save_CFLAGS
3246 elif test $ac_cv_prog_cc_g = yes; then
3247   if test "$GCC" = yes; then
3248     CFLAGS="-g -O2"
3249   else
3250     CFLAGS="-g"
3251   fi
3252 else
3253   if test "$GCC" = yes; then
3254     CFLAGS="-O2"
3255   else
3256     CFLAGS=
3257   fi
3258 fi
3259 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3260 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3261 if test "${ac_cv_prog_cc_c89+set}" = set; then
3262   echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
3264   ac_cv_prog_cc_c89=no
3265 ac_save_CC=$CC
3266 cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #include <stdarg.h>
3273 #include <stdio.h>
3274 #include <sys/types.h>
3275 #include <sys/stat.h>
3276 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3277 struct buf { int x; };
3278 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3279 static char *e (p, i)
3280      char **p;
3281      int i;
3282 {
3283   return p[i];
3284 }
3285 static char *f (char * (*g) (char **, int), char **p, ...)
3286 {
3287   char *s;
3288   va_list v;
3289   va_start (v,p);
3290   s = g (p, va_arg (v,int));
3291   va_end (v);
3292   return s;
3293 }
3294
3295 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3296    function prototypes and stuff, but not '\xHH' hex character constants.
3297    These don't provoke an error unfortunately, instead are silently treated
3298    as 'x'.  The following induces an error, until -std is added to get
3299    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3300    array size at least.  It's necessary to write '\x00'==0 to get something
3301    that's true only with -std.  */
3302 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3303
3304 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3305    inside strings and character constants.  */
3306 #define FOO(x) 'x'
3307 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3308
3309 int test (int i, double x);
3310 struct s1 {int (*f) (int a);};
3311 struct s2 {int (*f) (double a);};
3312 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3313 int argc;
3314 char **argv;
3315 int
3316 main ()
3317 {
3318 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3319   ;
3320   return 0;
3321 }
3322 _ACEOF
3323 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3324         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3325 do
3326   CC="$ac_save_CC $ac_arg"
3327   rm -f conftest.$ac_objext
3328 if { (ac_try="$ac_compile"
3329 case "(($ac_try" in
3330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331   *) ac_try_echo=$ac_try;;
3332 esac
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334   (eval "$ac_compile") 2>conftest.er1
3335   ac_status=$?
3336   grep -v '^ *+' conftest.er1 >conftest.err
3337   rm -f conftest.er1
3338   cat conftest.err >&5
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); } &&
3341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3342   { (case "(($ac_try" in
3343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344   *) ac_try_echo=$ac_try;;
3345 esac
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347   (eval "$ac_try") 2>&5
3348   ac_status=$?
3349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); }; } &&
3351          { ac_try='test -s conftest.$ac_objext'
3352   { (case "(($ac_try" in
3353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354   *) ac_try_echo=$ac_try;;
3355 esac
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357   (eval "$ac_try") 2>&5
3358   ac_status=$?
3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360   (exit $ac_status); }; }; then
3361   ac_cv_prog_cc_c89=$ac_arg
3362 else
3363   echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3365
3366
3367 fi
3368
3369 rm -f core conftest.err conftest.$ac_objext
3370   test "x$ac_cv_prog_cc_c89" != "xno" && break
3371 done
3372 rm -f conftest.$ac_ext
3373 CC=$ac_save_CC
3374
3375 fi
3376 # AC_CACHE_VAL
3377 case "x$ac_cv_prog_cc_c89" in
3378   x)
3379     { echo "$as_me:$LINENO: result: none needed" >&5
3380 echo "${ECHO_T}none needed" >&6; } ;;
3381   xno)
3382     { echo "$as_me:$LINENO: result: unsupported" >&5
3383 echo "${ECHO_T}unsupported" >&6; } ;;
3384   *)
3385     CC="$CC $ac_cv_prog_cc_c89"
3386     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3387 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3388 esac
3389
3390
3391 ac_ext=c
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396
3397
3398 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
3399 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
3400 if test "${llvm_cv_linux_mixed+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403    ac_ext=c
3404 ac_cpp='$CPP $CPPFLAGS'
3405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408
3409   cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h.  */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h.  */
3415 #ifndef __x86_64__
3416        error: Not x86-64 even if uname says so!
3417       #endif
3418
3419 int
3420 main ()
3421 {
3422
3423   ;
3424   return 0;
3425 }
3426 _ACEOF
3427 rm -f conftest.$ac_objext
3428 if { (ac_try="$ac_compile"
3429 case "(($ac_try" in
3430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431   *) ac_try_echo=$ac_try;;
3432 esac
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434   (eval "$ac_compile") 2>conftest.er1
3435   ac_status=$?
3436   grep -v '^ *+' conftest.er1 >conftest.err
3437   rm -f conftest.er1
3438   cat conftest.err >&5
3439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440   (exit $ac_status); } &&
3441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3442   { (case "(($ac_try" in
3443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444   *) ac_try_echo=$ac_try;;
3445 esac
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447   (eval "$ac_try") 2>&5
3448   ac_status=$?
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); }; } &&
3451          { ac_try='test -s conftest.$ac_objext'
3452   { (case "(($ac_try" in
3453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454   *) ac_try_echo=$ac_try;;
3455 esac
3456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457   (eval "$ac_try") 2>&5
3458   ac_status=$?
3459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460   (exit $ac_status); }; }; then
3461   llvm_cv_linux_mixed=no
3462 else
3463   echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3465
3466         llvm_cv_linux_mixed=yes
3467 fi
3468
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470   ac_ext=c
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475
3476
3477 fi
3478 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
3479 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
3480
3481   if test "$llvm_cv_linux_mixed" = "yes"; then
3482     llvm_cv_target_arch="x86"
3483   fi
3484 fi
3485
3486 ARCH=$llvm_cv_target_arch
3487
3488
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3495 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3496 # On Suns, sometimes $CPP names a directory.
3497 if test -n "$CPP" && test -d "$CPP"; then
3498   CPP=
3499 fi
3500 if test -z "$CPP"; then
3501   if test "${ac_cv_prog_CPP+set}" = set; then
3502   echo $ECHO_N "(cached) $ECHO_C" >&6
3503 else
3504       # Double quotes because CPP needs to be expanded
3505     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3506     do
3507       ac_preproc_ok=false
3508 for ac_c_preproc_warn_flag in '' yes
3509 do
3510   # Use a header file that comes with gcc, so configuring glibc
3511   # with a fresh cross-compiler works.
3512   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3513   # <limits.h> exists even on freestanding compilers.
3514   # On the NeXT, cc -E runs the code through the compiler's parser,
3515   # not just through cpp. "Syntax error" is here to catch this case.
3516   cat >conftest.$ac_ext <<_ACEOF
3517 /* confdefs.h.  */
3518 _ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h.  */
3522 #ifdef __STDC__
3523 # include <limits.h>
3524 #else
3525 # include <assert.h>
3526 #endif
3527                      Syntax error
3528 _ACEOF
3529 if { (ac_try="$ac_cpp conftest.$ac_ext"
3530 case "(($ac_try" in
3531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532   *) ac_try_echo=$ac_try;;
3533 esac
3534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3536   ac_status=$?
3537   grep -v '^ *+' conftest.er1 >conftest.err
3538   rm -f conftest.er1
3539   cat conftest.err >&5
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); } >/dev/null; then
3542   if test -s conftest.err; then
3543     ac_cpp_err=$ac_c_preproc_warn_flag
3544     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3545   else
3546     ac_cpp_err=
3547   fi
3548 else
3549   ac_cpp_err=yes
3550 fi
3551 if test -z "$ac_cpp_err"; then
3552   :
3553 else
3554   echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557   # Broken: fails on valid input.
3558 continue
3559 fi
3560
3561 rm -f conftest.err conftest.$ac_ext
3562
3563   # OK, works on sane cases.  Now check whether nonexistent headers
3564   # can be detected and how.
3565   cat >conftest.$ac_ext <<_ACEOF
3566 /* confdefs.h.  */
3567 _ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h.  */
3571 #include <ac_nonexistent.h>
3572 _ACEOF
3573 if { (ac_try="$ac_cpp conftest.$ac_ext"
3574 case "(($ac_try" in
3575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576   *) ac_try_echo=$ac_try;;
3577 esac
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3580   ac_status=$?
3581   grep -v '^ *+' conftest.er1 >conftest.err
3582   rm -f conftest.er1
3583   cat conftest.err >&5
3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585   (exit $ac_status); } >/dev/null; then
3586   if test -s conftest.err; then
3587     ac_cpp_err=$ac_c_preproc_warn_flag
3588     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3589   else
3590     ac_cpp_err=
3591   fi
3592 else
3593   ac_cpp_err=yes
3594 fi
3595 if test -z "$ac_cpp_err"; then
3596   # Broken: success on invalid input.
3597 continue
3598 else
3599   echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3601
3602   # Passes both tests.
3603 ac_preproc_ok=:
3604 break
3605 fi
3606
3607 rm -f conftest.err conftest.$ac_ext
3608
3609 done
3610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3611 rm -f conftest.err conftest.$ac_ext
3612 if $ac_preproc_ok; then
3613   break
3614 fi
3615
3616     done
3617     ac_cv_prog_CPP=$CPP
3618
3619 fi
3620   CPP=$ac_cv_prog_CPP
3621 else
3622   ac_cv_prog_CPP=$CPP
3623 fi
3624 { echo "$as_me:$LINENO: result: $CPP" >&5
3625 echo "${ECHO_T}$CPP" >&6; }
3626 ac_preproc_ok=false
3627 for ac_c_preproc_warn_flag in '' yes
3628 do
3629   # Use a header file that comes with gcc, so configuring glibc
3630   # with a fresh cross-compiler works.
3631   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3632   # <limits.h> exists even on freestanding compilers.
3633   # On the NeXT, cc -E runs the code through the compiler's parser,
3634   # not just through cpp. "Syntax error" is here to catch this case.
3635   cat >conftest.$ac_ext <<_ACEOF
3636 /* confdefs.h.  */
3637 _ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h.  */
3641 #ifdef __STDC__
3642 # include <limits.h>
3643 #else
3644 # include <assert.h>
3645 #endif
3646                      Syntax error
3647 _ACEOF
3648 if { (ac_try="$ac_cpp conftest.$ac_ext"
3649 case "(($ac_try" in
3650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651   *) ac_try_echo=$ac_try;;
3652 esac
3653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3655   ac_status=$?
3656   grep -v '^ *+' conftest.er1 >conftest.err
3657   rm -f conftest.er1
3658   cat conftest.err >&5
3659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660   (exit $ac_status); } >/dev/null; then
3661   if test -s conftest.err; then
3662     ac_cpp_err=$ac_c_preproc_warn_flag
3663     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3664   else
3665     ac_cpp_err=
3666   fi
3667 else
3668   ac_cpp_err=yes
3669 fi
3670 if test -z "$ac_cpp_err"; then
3671   :
3672 else
3673   echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3675
3676   # Broken: fails on valid input.
3677 continue
3678 fi
3679
3680 rm -f conftest.err conftest.$ac_ext
3681
3682   # OK, works on sane cases.  Now check whether nonexistent headers
3683   # can be detected and how.
3684   cat >conftest.$ac_ext <<_ACEOF
3685 /* confdefs.h.  */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h.  */
3690 #include <ac_nonexistent.h>
3691 _ACEOF
3692 if { (ac_try="$ac_cpp conftest.$ac_ext"
3693 case "(($ac_try" in
3694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695   *) ac_try_echo=$ac_try;;
3696 esac
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3699   ac_status=$?
3700   grep -v '^ *+' conftest.er1 >conftest.err
3701   rm -f conftest.er1
3702   cat conftest.err >&5
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); } >/dev/null; then
3705   if test -s conftest.err; then
3706     ac_cpp_err=$ac_c_preproc_warn_flag
3707     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3708   else
3709     ac_cpp_err=
3710   fi
3711 else
3712   ac_cpp_err=yes
3713 fi
3714 if test -z "$ac_cpp_err"; then
3715   # Broken: success on invalid input.
3716 continue
3717 else
3718   echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3720
3721   # Passes both tests.
3722 ac_preproc_ok=:
3723 break
3724 fi
3725
3726 rm -f conftest.err conftest.$ac_ext
3727
3728 done
3729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3730 rm -f conftest.err conftest.$ac_ext
3731 if $ac_preproc_ok; then
3732   :
3733 else
3734   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3735 See \`config.log' for more details." >&5
3736 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3737 See \`config.log' for more details." >&2;}
3738    { (exit 1); exit 1; }; }
3739 fi
3740
3741 ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746
3747
3748 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3749 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3750 if test "${ac_cv_path_GREP+set}" = set; then
3751   echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753   # Extract the first word of "grep ggrep" to use in msg output
3754 if test -z "$GREP"; then
3755 set dummy grep ggrep; ac_prog_name=$2
3756 if test "${ac_cv_path_GREP+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   ac_path_GREP_found=false
3760 # Loop through the user's path and test for each of PROGNAME-LIST
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3763 do
3764   IFS=$as_save_IFS
3765   test -z "$as_dir" && as_dir=.
3766   for ac_prog in grep ggrep; do
3767   for ac_exec_ext in '' $ac_executable_extensions; do
3768     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3769     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3770     # Check for GNU ac_path_GREP and select it if it is found.
3771   # Check for GNU $ac_path_GREP
3772 case `"$ac_path_GREP" --version 2>&1` in
3773 *GNU*)
3774   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3775 *)
3776   ac_count=0
3777   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3778   while :
3779   do
3780     cat "conftest.in" "conftest.in" >"conftest.tmp"
3781     mv "conftest.tmp" "conftest.in"
3782     cp "conftest.in" "conftest.nl"
3783     echo 'GREP' >> "conftest.nl"
3784     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3785     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3786     ac_count=`expr $ac_count + 1`
3787     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3788       # Best one so far, save it but keep looking for a better one
3789       ac_cv_path_GREP="$ac_path_GREP"
3790       ac_path_GREP_max=$ac_count
3791     fi
3792     # 10*(2^10) chars as input seems more than enough
3793     test $ac_count -gt 10 && break
3794   done
3795   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3796 esac
3797
3798
3799     $ac_path_GREP_found && break 3
3800   done
3801 done
3802
3803 done
3804 IFS=$as_save_IFS
3805
3806
3807 fi
3808
3809 GREP="$ac_cv_path_GREP"
3810 if test -z "$GREP"; then
3811   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3812 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3813    { (exit 1); exit 1; }; }
3814 fi
3815
3816 else
3817   ac_cv_path_GREP=$GREP
3818 fi
3819
3820
3821 fi
3822 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3823 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3824  GREP="$ac_cv_path_GREP"
3825
3826
3827 { echo "$as_me:$LINENO: checking for egrep" >&5
3828 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3829 if test "${ac_cv_path_EGREP+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3833    then ac_cv_path_EGREP="$GREP -E"
3834    else
3835      # Extract the first word of "egrep" to use in msg output
3836 if test -z "$EGREP"; then
3837 set dummy egrep; ac_prog_name=$2
3838 if test "${ac_cv_path_EGREP+set}" = set; then
3839   echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841   ac_path_EGREP_found=false
3842 # Loop through the user's path and test for each of PROGNAME-LIST
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3845 do
3846   IFS=$as_save_IFS
3847   test -z "$as_dir" && as_dir=.
3848   for ac_prog in egrep; do
3849   for ac_exec_ext in '' $ac_executable_extensions; do
3850     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3851     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3852     # Check for GNU ac_path_EGREP and select it if it is found.
3853   # Check for GNU $ac_path_EGREP
3854 case `"$ac_path_EGREP" --version 2>&1` in
3855 *GNU*)
3856   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3857 *)
3858   ac_count=0
3859   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3860   while :
3861   do
3862     cat "conftest.in" "conftest.in" >"conftest.tmp"
3863     mv "conftest.tmp" "conftest.in"
3864     cp "conftest.in" "conftest.nl"
3865     echo 'EGREP' >> "conftest.nl"
3866     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3867     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3868     ac_count=`expr $ac_count + 1`
3869     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3870       # Best one so far, save it but keep looking for a better one
3871       ac_cv_path_EGREP="$ac_path_EGREP"
3872       ac_path_EGREP_max=$ac_count
3873     fi
3874     # 10*(2^10) chars as input seems more than enough
3875     test $ac_count -gt 10 && break
3876   done
3877   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3878 esac
3879
3880
3881     $ac_path_EGREP_found && break 3
3882   done
3883 done
3884
3885 done
3886 IFS=$as_save_IFS
3887
3888
3889 fi
3890
3891 EGREP="$ac_cv_path_EGREP"
3892 if test -z "$EGREP"; then
3893   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3894 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3895    { (exit 1); exit 1; }; }
3896 fi
3897
3898 else
3899   ac_cv_path_EGREP=$EGREP
3900 fi
3901
3902
3903    fi
3904 fi
3905 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3906 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3907  EGREP="$ac_cv_path_EGREP"
3908
3909
3910 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3911 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3912 if test "${ac_cv_header_stdc+set}" = set; then
3913   echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915   cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h.  */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h.  */
3921 #include <stdlib.h>
3922 #include <stdarg.h>
3923 #include <string.h>
3924 #include <float.h>
3925
3926 int
3927 main ()
3928 {
3929
3930   ;
3931   return 0;
3932 }
3933 _ACEOF
3934 rm -f conftest.$ac_objext
3935 if { (ac_try="$ac_compile"
3936 case "(($ac_try" in
3937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938   *) ac_try_echo=$ac_try;;
3939 esac
3940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941   (eval "$ac_compile") 2>conftest.er1
3942   ac_status=$?
3943   grep -v '^ *+' conftest.er1 >conftest.err
3944   rm -f conftest.er1
3945   cat conftest.err >&5
3946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947   (exit $ac_status); } &&
3948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3949   { (case "(($ac_try" in
3950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951   *) ac_try_echo=$ac_try;;
3952 esac
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954   (eval "$ac_try") 2>&5
3955   ac_status=$?
3956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); }; } &&
3958          { ac_try='test -s conftest.$ac_objext'
3959   { (case "(($ac_try" in
3960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961   *) ac_try_echo=$ac_try;;
3962 esac
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964   (eval "$ac_try") 2>&5
3965   ac_status=$?
3966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967   (exit $ac_status); }; }; then
3968   ac_cv_header_stdc=yes
3969 else
3970   echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3972
3973         ac_cv_header_stdc=no
3974 fi
3975
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977
3978 if test $ac_cv_header_stdc = yes; then
3979   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3980   cat >conftest.$ac_ext <<_ACEOF
3981 /* confdefs.h.  */
3982 _ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h.  */
3986 #include <string.h>
3987
3988 _ACEOF
3989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3990   $EGREP "memchr" >/dev/null 2>&1; then
3991   :
3992 else
3993   ac_cv_header_stdc=no
3994 fi
3995 rm -f conftest*
3996
3997 fi
3998
3999 if test $ac_cv_header_stdc = yes; then
4000   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4001   cat >conftest.$ac_ext <<_ACEOF
4002 /* confdefs.h.  */
4003 _ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h.  */
4007 #include <stdlib.h>
4008
4009 _ACEOF
4010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4011   $EGREP "free" >/dev/null 2>&1; then
4012   :
4013 else
4014   ac_cv_header_stdc=no
4015 fi
4016 rm -f conftest*
4017
4018 fi
4019
4020 if test $ac_cv_header_stdc = yes; then
4021   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4022   if test "$cross_compiling" = yes; then
4023   :
4024 else
4025   cat >conftest.$ac_ext <<_ACEOF
4026 /* confdefs.h.  */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h.  */
4031 #include <ctype.h>
4032 #include <stdlib.h>
4033 #if ((' ' & 0x0FF) == 0x020)
4034 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4035 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4036 #else
4037 # define ISLOWER(c) \
4038                    (('a' <= (c) && (c) <= 'i') \
4039                      || ('j' <= (c) && (c) <= 'r') \
4040                      || ('s' <= (c) && (c) <= 'z'))
4041 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4042 #endif
4043
4044 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4045 int
4046 main ()
4047 {
4048   int i;
4049   for (i = 0; i < 256; i++)
4050     if (XOR (islower (i), ISLOWER (i))
4051         || toupper (i) != TOUPPER (i))
4052       return 2;
4053   return 0;
4054 }
4055 _ACEOF
4056 rm -f conftest$ac_exeext
4057 if { (ac_try="$ac_link"
4058 case "(($ac_try" in
4059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060   *) ac_try_echo=$ac_try;;
4061 esac
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063   (eval "$ac_link") 2>&5
4064   ac_status=$?
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4067   { (case "(($ac_try" in
4068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069   *) ac_try_echo=$ac_try;;
4070 esac
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072   (eval "$ac_try") 2>&5
4073   ac_status=$?
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); }; }; then
4076   :
4077 else
4078   echo "$as_me: program exited with status $ac_status" >&5
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4081
4082 ( exit $ac_status )
4083 ac_cv_header_stdc=no
4084 fi
4085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4086 fi
4087
4088
4089 fi
4090 fi
4091 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4092 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4093 if test $ac_cv_header_stdc = yes; then
4094
4095 cat >>confdefs.h <<\_ACEOF
4096 #define STDC_HEADERS 1
4097 _ACEOF
4098
4099 fi
4100
4101 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4112                   inttypes.h stdint.h unistd.h
4113 do
4114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4118   echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120   cat >conftest.$ac_ext <<_ACEOF
4121 /* confdefs.h.  */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h.  */
4126 $ac_includes_default
4127
4128 #include <$ac_header>
4129 _ACEOF
4130 rm -f conftest.$ac_objext
4131 if { (ac_try="$ac_compile"
4132 case "(($ac_try" in
4133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134   *) ac_try_echo=$ac_try;;
4135 esac
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137   (eval "$ac_compile") 2>conftest.er1
4138   ac_status=$?
4139   grep -v '^ *+' conftest.er1 >conftest.err
4140   rm -f conftest.er1
4141   cat conftest.err >&5
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); } &&
4144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4145   { (case "(($ac_try" in
4146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147   *) ac_try_echo=$ac_try;;
4148 esac
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150   (eval "$ac_try") 2>&5
4151   ac_status=$?
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); }; } &&
4154          { ac_try='test -s conftest.$ac_objext'
4155   { (case "(($ac_try" in
4156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157   *) ac_try_echo=$ac_try;;
4158 esac
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160   (eval "$ac_try") 2>&5
4161   ac_status=$?
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); }; }; then
4164   eval "$as_ac_Header=yes"
4165 else
4166   echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4168
4169         eval "$as_ac_Header=no"
4170 fi
4171
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173 fi
4174 ac_res=`eval echo '${'$as_ac_Header'}'`
4175                { echo "$as_me:$LINENO: result: $ac_res" >&5
4176 echo "${ECHO_T}$ac_res" >&6; }
4177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4178   cat >>confdefs.h <<_ACEOF
4179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4180 _ACEOF
4181
4182 fi
4183
4184 done
4185
4186
4187 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4188 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4189 if test "${ac_cv_c_bigendian+set}" = set; then
4190   echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192   # See if sys/param.h defines the BYTE_ORDER macro.
4193 cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h.  */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h.  */
4199 #include <sys/types.h>
4200 #include <sys/param.h>
4201
4202 int
4203 main ()
4204 {
4205 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4206  bogus endian macros
4207 #endif
4208
4209   ;
4210   return 0;
4211 }
4212 _ACEOF
4213 rm -f conftest.$ac_objext
4214 if { (ac_try="$ac_compile"
4215 case "(($ac_try" in
4216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217   *) ac_try_echo=$ac_try;;
4218 esac
4219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220   (eval "$ac_compile") 2>conftest.er1
4221   ac_status=$?
4222   grep -v '^ *+' conftest.er1 >conftest.err
4223   rm -f conftest.er1
4224   cat conftest.err >&5
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); } &&
4227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4228   { (case "(($ac_try" in
4229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230   *) ac_try_echo=$ac_try;;
4231 esac
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233   (eval "$ac_try") 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); }; } &&
4237          { ac_try='test -s conftest.$ac_objext'
4238   { (case "(($ac_try" in
4239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240   *) ac_try_echo=$ac_try;;
4241 esac
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243   (eval "$ac_try") 2>&5
4244   ac_status=$?
4245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246   (exit $ac_status); }; }; then
4247   # It does; now see whether it defined to BIG_ENDIAN or not.
4248 cat >conftest.$ac_ext <<_ACEOF
4249 /* confdefs.h.  */
4250 _ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h.  */
4254 #include <sys/types.h>
4255 #include <sys/param.h>
4256
4257 int
4258 main ()
4259 {
4260 #if BYTE_ORDER != BIG_ENDIAN
4261  not big endian
4262 #endif
4263
4264   ;
4265   return 0;
4266 }
4267 _ACEOF
4268 rm -f conftest.$ac_objext
4269 if { (ac_try="$ac_compile"
4270 case "(($ac_try" in
4271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272   *) ac_try_echo=$ac_try;;
4273 esac
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275   (eval "$ac_compile") 2>conftest.er1
4276   ac_status=$?
4277   grep -v '^ *+' conftest.er1 >conftest.err
4278   rm -f conftest.er1
4279   cat conftest.err >&5
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); } &&
4282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4283   { (case "(($ac_try" in
4284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285   *) ac_try_echo=$ac_try;;
4286 esac
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288   (eval "$ac_try") 2>&5
4289   ac_status=$?
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); }; } &&
4292          { ac_try='test -s conftest.$ac_objext'
4293   { (case "(($ac_try" in
4294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295   *) ac_try_echo=$ac_try;;
4296 esac
4297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298   (eval "$ac_try") 2>&5
4299   ac_status=$?
4300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301   (exit $ac_status); }; }; then
4302   ac_cv_c_bigendian=yes
4303 else
4304   echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4306
4307         ac_cv_c_bigendian=no
4308 fi
4309
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 else
4312   echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4314
4315         # It does not; compile a test program.
4316 if test "$cross_compiling" = yes; then
4317   # try to guess the endianness by grepping values into an object file
4318   ac_cv_c_bigendian=unknown
4319   cat >conftest.$ac_ext <<_ACEOF
4320 /* confdefs.h.  */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h.  */
4325 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4326 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4327 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4328 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4329 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4330 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4331 int
4332 main ()
4333 {
4334  _ascii (); _ebcdic ();
4335   ;
4336   return 0;
4337 }
4338 _ACEOF
4339 rm -f conftest.$ac_objext
4340 if { (ac_try="$ac_compile"
4341 case "(($ac_try" in
4342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343   *) ac_try_echo=$ac_try;;
4344 esac
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346   (eval "$ac_compile") 2>conftest.er1
4347   ac_status=$?
4348   grep -v '^ *+' conftest.er1 >conftest.err
4349   rm -f conftest.er1
4350   cat conftest.err >&5
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); } &&
4353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354   { (case "(($ac_try" in
4355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356   *) ac_try_echo=$ac_try;;
4357 esac
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359   (eval "$ac_try") 2>&5
4360   ac_status=$?
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); }; } &&
4363          { ac_try='test -s conftest.$ac_objext'
4364   { (case "(($ac_try" in
4365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366   *) ac_try_echo=$ac_try;;
4367 esac
4368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369   (eval "$ac_try") 2>&5
4370   ac_status=$?
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); }; }; then
4373   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4374   ac_cv_c_bigendian=yes
4375 fi
4376 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4377   if test "$ac_cv_c_bigendian" = unknown; then
4378     ac_cv_c_bigendian=no
4379   else
4380     # finding both strings is unlikely to happen, but who knows?
4381     ac_cv_c_bigendian=unknown
4382   fi
4383 fi
4384 else
4385   echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4387
4388
4389 fi
4390
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392 else
4393   cat >conftest.$ac_ext <<_ACEOF
4394 /* confdefs.h.  */
4395 _ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h.  */
4399 $ac_includes_default
4400 int
4401 main ()
4402 {
4403
4404   /* Are we little or big endian?  From Harbison&Steele.  */
4405   union
4406   {
4407     long int l;
4408     char c[sizeof (long int)];
4409   } u;
4410   u.l = 1;
4411   return u.c[sizeof (long int) - 1] == 1;
4412
4413   ;
4414   return 0;
4415 }
4416 _ACEOF
4417 rm -f conftest$ac_exeext
4418 if { (ac_try="$ac_link"
4419 case "(($ac_try" in
4420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421   *) ac_try_echo=$ac_try;;
4422 esac
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424   (eval "$ac_link") 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4428   { (case "(($ac_try" in
4429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430   *) ac_try_echo=$ac_try;;
4431 esac
4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433   (eval "$ac_try") 2>&5
4434   ac_status=$?
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); }; }; then
4437   ac_cv_c_bigendian=no
4438 else
4439   echo "$as_me: program exited with status $ac_status" >&5
4440 echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4442
4443 ( exit $ac_status )
4444 ac_cv_c_bigendian=yes
4445 fi
4446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4447 fi
4448
4449
4450 fi
4451
4452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453 fi
4454 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4455 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4456 case $ac_cv_c_bigendian in
4457   yes)
4458     ENDIAN=big
4459  ;;
4460   no)
4461     ENDIAN=little
4462  ;;
4463   *)
4464     { { echo "$as_me:$LINENO: error: unknown endianness
4465 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4466 echo "$as_me: error: unknown endianness
4467 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4468    { (exit 1); exit 1; }; } ;;
4469 esac
4470
4471
4472 if test "$cross_compiling" = yes; then
4473   LLVM_CROSS_COMPILING=1
4474
4475
4476 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4477 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4478 if test "${ac_cv_build_exeext+set}" = set; then
4479   echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4482   ac_cv_build_exeext=.exe
4483 else
4484   ac_build_prefix=${build_alias}-
4485
4486   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4487 set dummy ${ac_build_prefix}gcc; ac_word=$2
4488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4490 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4491   echo $ECHO_N "(cached) $ECHO_C" >&6
4492 else
4493   if test -n "$BUILD_CC"; then
4494   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4495 else
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH
4498 do
4499   IFS=$as_save_IFS
4500   test -z "$as_dir" && as_dir=.
4501   for ac_exec_ext in '' $ac_executable_extensions; do
4502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4503     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4505     break 2
4506   fi
4507 done
4508 done
4509 IFS=$as_save_IFS
4510
4511 fi
4512 fi
4513 BUILD_CC=$ac_cv_prog_BUILD_CC
4514 if test -n "$BUILD_CC"; then
4515   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4516 echo "${ECHO_T}$BUILD_CC" >&6; }
4517 else
4518   { echo "$as_me:$LINENO: result: no" >&5
4519 echo "${ECHO_T}no" >&6; }
4520 fi
4521
4522
4523   if test -z "$BUILD_CC"; then
4524      # Extract the first word of "gcc", so it can be a program name with args.
4525 set dummy gcc; ac_word=$2
4526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4529   echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531   if test -n "$BUILD_CC"; then
4532   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4533 else
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4536 do
4537   IFS=$as_save_IFS
4538   test -z "$as_dir" && as_dir=.
4539   for ac_exec_ext in '' $ac_executable_extensions; do
4540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4541     ac_cv_prog_BUILD_CC="gcc"
4542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543     break 2
4544   fi
4545 done
4546 done
4547 IFS=$as_save_IFS
4548
4549 fi
4550 fi
4551 BUILD_CC=$ac_cv_prog_BUILD_CC
4552 if test -n "$BUILD_CC"; then
4553   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4554 echo "${ECHO_T}$BUILD_CC" >&6; }
4555 else
4556   { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4558 fi
4559
4560
4561      if test -z "$BUILD_CC"; then
4562        # Extract the first word of "cc", so it can be a program name with args.
4563 set dummy cc; ac_word=$2
4564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4567   echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569   if test -n "$BUILD_CC"; then
4570   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4571 else
4572   ac_prog_rejected=no
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH
4575 do
4576   IFS=$as_save_IFS
4577   test -z "$as_dir" && as_dir=.
4578   for ac_exec_ext in '' $ac_executable_extensions; do
4579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4580     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4581        ac_prog_rejected=yes
4582        continue
4583      fi
4584     ac_cv_prog_BUILD_CC="cc"
4585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586     break 2
4587   fi
4588 done
4589 done
4590 IFS=$as_save_IFS
4591
4592 if test $ac_prog_rejected = yes; then
4593   # We found a bogon in the path, so make sure we never use it.
4594   set dummy $ac_cv_prog_BUILD_CC
4595   shift
4596   if test $# != 0; then
4597     # We chose a different compiler from the bogus one.
4598     # However, it has the same basename, so the bogon will be chosen
4599     # first if we set BUILD_CC to just the basename; use the full file name.
4600     shift
4601     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4602   fi
4603 fi
4604 fi
4605 fi
4606 BUILD_CC=$ac_cv_prog_BUILD_CC
4607 if test -n "$BUILD_CC"; then
4608   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4609 echo "${ECHO_T}$BUILD_CC" >&6; }
4610 else
4611   { echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6; }
4613 fi
4614
4615
4616      fi
4617   fi
4618   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4619 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4620    { (exit 1); exit 1; }; }
4621   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4622   rm -f conftest*
4623   echo 'int main () { return 0; }' > conftest.$ac_ext
4624   ac_cv_build_exeext=
4625   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4626   (eval $ac_build_link) 2>&5
4627   ac_status=$?
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); }; then
4630     for file in conftest.*; do
4631       case $file in
4632       *.c | *.o | *.obj | *.dSYM) ;;
4633       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4634       esac
4635     done
4636   else
4637     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4638 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4639    { (exit 1); exit 1; }; }
4640   fi
4641   rm -f conftest*
4642   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4643 fi
4644 fi
4645
4646 BUILD_EXEEXT=""
4647 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4648 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4649 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4650 ac_build_exeext=$BUILD_EXEEXT
4651
4652   ac_build_prefix=${build_alias}-
4653   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4654 set dummy ${ac_build_prefix}g++; ac_word=$2
4655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4657 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4658   echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660   if test -n "$BUILD_CXX"; then
4661   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4662 else
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666   IFS=$as_save_IFS
4667   test -z "$as_dir" && as_dir=.
4668   for ac_exec_ext in '' $ac_executable_extensions; do
4669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4670     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672     break 2
4673   fi
4674 done
4675 done
4676 IFS=$as_save_IFS
4677
4678 fi
4679 fi
4680 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4681 if test -n "$BUILD_CXX"; then
4682   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4683 echo "${ECHO_T}$BUILD_CXX" >&6; }
4684 else
4685   { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4687 fi
4688
4689
4690   if test -z "$BUILD_CXX"; then
4691      # Extract the first word of "g++", so it can be a program name with args.
4692 set dummy g++; ac_word=$2
4693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4695 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4696   echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698   if test -n "$BUILD_CXX"; then
4699   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704   IFS=$as_save_IFS
4705   test -z "$as_dir" && as_dir=.
4706   for ac_exec_ext in '' $ac_executable_extensions; do
4707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4708     ac_cv_prog_BUILD_CXX="g++"
4709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710     break 2
4711   fi
4712 done
4713 done
4714 IFS=$as_save_IFS
4715
4716 fi
4717 fi
4718 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4719 if test -n "$BUILD_CXX"; then
4720   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4721 echo "${ECHO_T}$BUILD_CXX" >&6; }
4722 else
4723   { echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6; }
4725 fi
4726
4727
4728      if test -z "$BUILD_CXX"; then
4729        # Extract the first word of "c++", so it can be a program name with args.
4730 set dummy c++; ac_word=$2
4731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4733 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4734   echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736   if test -n "$BUILD_CXX"; then
4737   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4738 else
4739   ac_prog_rejected=no
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH
4742 do
4743   IFS=$as_save_IFS
4744   test -z "$as_dir" && as_dir=.
4745   for ac_exec_ext in '' $ac_executable_extensions; do
4746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4747     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4748        ac_prog_rejected=yes
4749        continue
4750      fi
4751     ac_cv_prog_BUILD_CXX="c++"
4752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753     break 2
4754   fi
4755 done
4756 done
4757 IFS=$as_save_IFS
4758
4759 if test $ac_prog_rejected = yes; then
4760   # We found a bogon in the path, so make sure we never use it.
4761   set dummy $ac_cv_prog_BUILD_CXX
4762   shift
4763   if test $# != 0; then
4764     # We chose a different compiler from the bogus one.
4765     # However, it has the same basename, so the bogon will be chosen
4766     # first if we set BUILD_CXX to just the basename; use the full file name.
4767     shift
4768     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4769   fi
4770 fi
4771 fi
4772 fi
4773 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4774 if test -n "$BUILD_CXX"; then
4775   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4776 echo "${ECHO_T}$BUILD_CXX" >&6; }
4777 else
4778   { echo "$as_me:$LINENO: result: no" >&5
4779 echo "${ECHO_T}no" >&6; }
4780 fi
4781
4782
4783      fi
4784   fi
4785 else
4786   LLVM_CROSS_COMPILING=0
4787
4788 fi
4789
4790 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4791   cvsbuild="yes"
4792   optimize="no"
4793   CVSBUILD=CVSBUILD=1
4794
4795 else
4796   cvsbuild="no"
4797   optimize="yes"
4798 fi
4799
4800
4801 # Check whether --enable-optimized was given.
4802 if test "${enable_optimized+set}" = set; then
4803   enableval=$enable_optimized;
4804 else
4805   enableval=$optimize
4806 fi
4807
4808 if test ${enableval} = "no" ; then
4809   ENABLE_OPTIMIZED=
4810
4811 else
4812   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4813
4814 fi
4815
4816 # Check whether --enable-assertions was given.
4817 if test "${enable_assertions+set}" = set; then
4818   enableval=$enable_assertions;
4819 else
4820   enableval="yes"
4821 fi
4822
4823 if test ${enableval} = "yes" ; then
4824   DISABLE_ASSERTIONS=
4825
4826 else
4827   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4828
4829 fi
4830
4831 # Check whether --enable-expensive-checks was given.
4832 if test "${enable_expensive_checks+set}" = set; then
4833   enableval=$enable_expensive_checks;
4834 else
4835   enableval="no"
4836 fi
4837
4838 if test ${enableval} = "yes" ; then
4839   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4840
4841   EXPENSIVE_CHECKS=yes
4842
4843 else
4844   ENABLE_EXPENSIVE_CHECKS=
4845
4846   EXPENSIVE_CHECKS=no
4847
4848 fi
4849
4850 # Check whether --enable-debug-runtime was given.
4851 if test "${enable_debug_runtime+set}" = set; then
4852   enableval=$enable_debug_runtime;
4853 else
4854   enableval=no
4855 fi
4856
4857 if test ${enableval} = "no" ; then
4858   DEBUG_RUNTIME=
4859
4860 else
4861   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4862
4863 fi
4864
4865 # Check whether --enable-jit was given.
4866 if test "${enable_jit+set}" = set; then
4867   enableval=$enable_jit;
4868 else
4869   enableval=default
4870 fi
4871
4872 if test ${enableval} = "no"
4873 then
4874   JIT=
4875
4876 else
4877   case "$llvm_cv_target_arch" in
4878     x86)     TARGET_HAS_JIT=1
4879  ;;
4880     Sparc)   TARGET_HAS_JIT=0
4881  ;;
4882     PowerPC) TARGET_HAS_JIT=1
4883  ;;
4884     x86_64)  TARGET_HAS_JIT=1
4885  ;;
4886     Alpha)   TARGET_HAS_JIT=1
4887  ;;
4888     IA64)    TARGET_HAS_JIT=0
4889  ;;
4890     ARM)     TARGET_HAS_JIT=0
4891  ;;
4892     Mips)    TARGET_HAS_JIT=0
4893  ;;
4894     PIC16)   TARGET_HAS_JIT=0
4895  ;;
4896     XCore)   TARGET_HAS_JIT=0
4897  ;;
4898     *)       TARGET_HAS_JIT=0
4899  ;;
4900   esac
4901 fi
4902
4903 # Check whether --enable-doxygen was given.
4904 if test "${enable_doxygen+set}" = set; then
4905   enableval=$enable_doxygen;
4906 else
4907   enableval=default
4908 fi
4909
4910 case "$enableval" in
4911   yes) ENABLE_DOXYGEN=1
4912  ;;
4913   no)  ENABLE_DOXYGEN=0
4914  ;;
4915   default) ENABLE_DOXYGEN=0
4916  ;;
4917   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4918 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4919    { (exit 1); exit 1; }; } ;;
4920 esac
4921
4922 # Check whether --enable-threads was given.
4923 if test "${enable_threads+set}" = set; then
4924   enableval=$enable_threads;
4925 else
4926   enableval=default
4927 fi
4928
4929 case "$enableval" in
4930   yes) ENABLE_THREADS=1
4931  ;;
4932   no)  ENABLE_THREADS=0
4933  ;;
4934   default) ENABLE_THREADS=1
4935  ;;
4936   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4937 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4938    { (exit 1); exit 1; }; } ;;
4939 esac
4940
4941 cat >>confdefs.h <<_ACEOF
4942 #define ENABLE_THREADS $ENABLE_THREADS
4943 _ACEOF
4944
4945
4946 # Check whether --enable-pic was given.
4947 if test "${enable_pic+set}" = set; then
4948   enableval=$enable_pic;
4949 else
4950   enableval=default
4951 fi
4952
4953 case "$enableval" in
4954   yes) ENABLE_PIC=1
4955  ;;
4956   no)  ENABLE_PIC=0
4957  ;;
4958   default) ENABLE_PIC=1
4959  ;;
4960   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4961 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4962    { (exit 1); exit 1; }; } ;;
4963 esac
4964
4965 cat >>confdefs.h <<_ACEOF
4966 #define ENABLE_PIC $ENABLE_PIC
4967 _ACEOF
4968
4969
4970 TARGETS_TO_BUILD=""
4971 # Check whether --enable-targets was given.
4972 if test "${enable_targets+set}" = set; then
4973   enableval=$enable_targets;
4974 else
4975   enableval=all
4976 fi
4977
4978 case "$enableval" in
4979   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4980   host-only)
4981     case "$llvm_cv_target_arch" in
4982       x86)     TARGETS_TO_BUILD="X86" ;;
4983       x86_64)  TARGETS_TO_BUILD="X86" ;;
4984       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4985       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4986       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4987       IA64)    TARGETS_TO_BUILD="IA64" ;;
4988       ARM)     TARGETS_TO_BUILD="ARM" ;;
4989       Mips)    TARGETS_TO_BUILD="Mips" ;;
4990       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4991       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4992       XCore)   TARGETS_TO_BUILD="XCore" ;;
4993       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4994 echo "$as_me: error: Can not set target to build" >&2;}
4995    { (exit 1); exit 1; }; } ;;
4996     esac
4997     ;;
4998   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4999       case "$a_target" in
5000         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5001         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5002         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5003         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5004         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5005         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
5006         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5007         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5008         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5009         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5010         xcore)   TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5011         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5012         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5013         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5014         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5015 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5016    { (exit 1); exit 1; }; } ;;
5017       esac
5018   done
5019   ;;
5020 esac
5021 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5022
5023
5024 # Check whether --enable-cbe-printf-a was given.
5025 if test "${enable_cbe_printf_a+set}" = set; then
5026   enableval=$enable_cbe_printf_a;
5027 else
5028   enableval=default
5029 fi
5030
5031 case "$enableval" in
5032   yes) ENABLE_CBE_PRINTF_A=1
5033  ;;
5034   no)  ENABLE_CBE_PRINTF_A=0
5035  ;;
5036   default)  ENABLE_CBE_PRINTF_A=1
5037  ;;
5038   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5039 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5040    { (exit 1); exit 1; }; } ;;
5041 esac
5042
5043 cat >>confdefs.h <<_ACEOF
5044 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5045 _ACEOF
5046
5047
5048
5049 # Check whether --with-llvmgccdir was given.
5050 if test "${with_llvmgccdir+set}" = set; then
5051   withval=$with_llvmgccdir;
5052 else
5053   withval=default
5054 fi
5055
5056 case "$withval" in
5057   default) WITH_LLVMGCCDIR=default ;;
5058   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5059   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5060 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5061    { (exit 1); exit 1; }; } ;;
5062 esac
5063
5064
5065 # Check whether --with-llvmgcc was given.
5066 if test "${with_llvmgcc+set}" = set; then
5067   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5068       WITH_LLVMGCCDIR=""
5069 fi
5070
5071
5072
5073 # Check whether --with-llvmgxx was given.
5074 if test "${with_llvmgxx+set}" = set; then
5075   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5076     WITH_LLVMGCCDIR=""
5077 fi
5078
5079
5080 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5081    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5082 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5083    { (exit 1); exit 1; }; };
5084 fi
5085
5086 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5087    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5088 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5089    { (exit 1); exit 1; }; };
5090 fi
5091
5092
5093 # Check whether --with-extra-options was given.
5094 if test "${with_extra_options+set}" = set; then
5095   withval=$with_extra_options;
5096 else
5097   withval=default
5098 fi
5099
5100 case "$withval" in
5101   default) EXTRA_OPTIONS= ;;
5102   *) EXTRA_OPTIONS=$withval ;;
5103 esac
5104 EXTRA_OPTIONS=$EXTRA_OPTIONS
5105
5106
5107 # Check whether --enable-bindings was given.
5108 if test "${enable_bindings+set}" = set; then
5109   enableval=$enable_bindings;
5110 else
5111   enableval=default
5112 fi
5113
5114 BINDINGS_TO_BUILD=""
5115 case "$enableval" in
5116   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5117   all ) BINDINGS_TO_BUILD="ocaml" ;;
5118   none | no) BINDINGS_TO_BUILD="" ;;
5119   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5120       case "$a_binding" in
5121         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5122         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5123 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5124    { (exit 1); exit 1; }; } ;;
5125       esac
5126   done
5127   ;;
5128 esac
5129
5130
5131 # Check whether --with-ocaml-libdir was given.
5132 if test "${with_ocaml_libdir+set}" = set; then
5133   withval=$with_ocaml_libdir;
5134 else
5135   withval=auto
5136 fi
5137
5138 case "$withval" in
5139   auto) with_ocaml_libdir="$withval" ;;
5140   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5141   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5142 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5143    { (exit 1); exit 1; }; } ;;
5144 esac
5145
5146
5147 # Check whether --with-binutils-include was given.
5148 if test "${with_binutils_include+set}" = set; then
5149   withval=$with_binutils_include;
5150 else
5151   withval=default
5152 fi
5153
5154 case "$withval" in
5155   default) WITH_BINUTILS_INCDIR=default ;;
5156   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5157   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5158 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5159    { (exit 1); exit 1; }; } ;;
5160 esac
5161 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5162   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5163
5164   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5165      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5166      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5167 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5168    { (exit 1); exit 1; }; };
5169   fi
5170 fi
5171
5172
5173 ac_ext=c
5174 ac_cpp='$CPP $CPPFLAGS'
5175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5178 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5179 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5180 # On Suns, sometimes $CPP names a directory.
5181 if test -n "$CPP" && test -d "$CPP"; then
5182   CPP=
5183 fi
5184 if test -z "$CPP"; then
5185   if test "${ac_cv_prog_CPP+set}" = set; then
5186   echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188       # Double quotes because CPP needs to be expanded
5189     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5190     do
5191       ac_preproc_ok=false
5192 for ac_c_preproc_warn_flag in '' yes
5193 do
5194   # Use a header file that comes with gcc, so configuring glibc
5195   # with a fresh cross-compiler works.
5196   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5197   # <limits.h> exists even on freestanding compilers.
5198   # On the NeXT, cc -E runs the code through the compiler's parser,
5199   # not just through cpp. "Syntax error" is here to catch this case.
5200   cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h.  */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h.  */
5206 #ifdef __STDC__
5207 # include <limits.h>
5208 #else
5209 # include <assert.h>
5210 #endif
5211                      Syntax error
5212 _ACEOF
5213 if { (ac_try="$ac_cpp conftest.$ac_ext"
5214 case "(($ac_try" in
5215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216   *) ac_try_echo=$ac_try;;
5217 esac
5218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5220   ac_status=$?
5221   grep -v '^ *+' conftest.er1 >conftest.err
5222   rm -f conftest.er1
5223   cat conftest.err >&5
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); } >/dev/null; then
5226   if test -s conftest.err; then
5227     ac_cpp_err=$ac_c_preproc_warn_flag
5228     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5229   else
5230     ac_cpp_err=
5231   fi
5232 else
5233   ac_cpp_err=yes
5234 fi
5235 if test -z "$ac_cpp_err"; then
5236   :
5237 else
5238   echo "$as_me: failed program was:" >&5
5239 sed 's/^/| /' conftest.$ac_ext >&5
5240
5241   # Broken: fails on valid input.
5242 continue
5243 fi
5244
5245 rm -f conftest.err conftest.$ac_ext
5246
5247   # OK, works on sane cases.  Now check whether nonexistent headers
5248   # can be detected and how.
5249   cat >conftest.$ac_ext <<_ACEOF
5250 /* confdefs.h.  */
5251 _ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h.  */
5255 #include <ac_nonexistent.h>
5256 _ACEOF
5257 if { (ac_try="$ac_cpp conftest.$ac_ext"
5258 case "(($ac_try" in
5259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260   *) ac_try_echo=$ac_try;;
5261 esac
5262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5264   ac_status=$?
5265   grep -v '^ *+' conftest.er1 >conftest.err
5266   rm -f conftest.er1
5267   cat conftest.err >&5
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); } >/dev/null; then
5270   if test -s conftest.err; then
5271     ac_cpp_err=$ac_c_preproc_warn_flag
5272     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5273   else
5274     ac_cpp_err=
5275   fi
5276 else
5277   ac_cpp_err=yes
5278 fi
5279 if test -z "$ac_cpp_err"; then
5280   # Broken: success on invalid input.
5281 continue
5282 else
5283   echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5285
5286   # Passes both tests.
5287 ac_preproc_ok=:
5288 break
5289 fi
5290
5291 rm -f conftest.err conftest.$ac_ext
5292
5293 done
5294 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5295 rm -f conftest.err conftest.$ac_ext
5296 if $ac_preproc_ok; then
5297   break
5298 fi
5299
5300     done
5301     ac_cv_prog_CPP=$CPP
5302
5303 fi
5304   CPP=$ac_cv_prog_CPP
5305 else
5306   ac_cv_prog_CPP=$CPP
5307 fi
5308 { echo "$as_me:$LINENO: result: $CPP" >&5
5309 echo "${ECHO_T}$CPP" >&6; }
5310 ac_preproc_ok=false
5311 for ac_c_preproc_warn_flag in '' yes
5312 do
5313   # Use a header file that comes with gcc, so configuring glibc
5314   # with a fresh cross-compiler works.
5315   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5316   # <limits.h> exists even on freestanding compilers.
5317   # On the NeXT, cc -E runs the code through the compiler's parser,
5318   # not just through cpp. "Syntax error" is here to catch this case.
5319   cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h.  */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h.  */
5325 #ifdef __STDC__
5326 # include <limits.h>
5327 #else
5328 # include <assert.h>
5329 #endif
5330                      Syntax error
5331 _ACEOF
5332 if { (ac_try="$ac_cpp conftest.$ac_ext"
5333 case "(($ac_try" in
5334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335   *) ac_try_echo=$ac_try;;
5336 esac
5337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5339   ac_status=$?
5340   grep -v '^ *+' conftest.er1 >conftest.err
5341   rm -f conftest.er1
5342   cat conftest.err >&5
5343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344   (exit $ac_status); } >/dev/null; then
5345   if test -s conftest.err; then
5346     ac_cpp_err=$ac_c_preproc_warn_flag
5347     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5348   else
5349     ac_cpp_err=
5350   fi
5351 else
5352   ac_cpp_err=yes
5353 fi
5354 if test -z "$ac_cpp_err"; then
5355   :
5356 else
5357   echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5359
5360   # Broken: fails on valid input.
5361 continue
5362 fi
5363
5364 rm -f conftest.err conftest.$ac_ext
5365
5366   # OK, works on sane cases.  Now check whether nonexistent headers
5367   # can be detected and how.
5368   cat >conftest.$ac_ext <<_ACEOF
5369 /* confdefs.h.  */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h.  */
5374 #include <ac_nonexistent.h>
5375 _ACEOF
5376 if { (ac_try="$ac_cpp conftest.$ac_ext"
5377 case "(($ac_try" in
5378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379   *) ac_try_echo=$ac_try;;
5380 esac
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5383   ac_status=$?
5384   grep -v '^ *+' conftest.er1 >conftest.err
5385   rm -f conftest.er1
5386   cat conftest.err >&5
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); } >/dev/null; then
5389   if test -s conftest.err; then
5390     ac_cpp_err=$ac_c_preproc_warn_flag
5391     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5392   else
5393     ac_cpp_err=
5394   fi
5395 else
5396   ac_cpp_err=yes
5397 fi
5398 if test -z "$ac_cpp_err"; then
5399   # Broken: success on invalid input.
5400 continue
5401 else
5402   echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5404
5405   # Passes both tests.
5406 ac_preproc_ok=:
5407 break
5408 fi
5409
5410 rm -f conftest.err conftest.$ac_ext
5411
5412 done
5413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5414 rm -f conftest.err conftest.$ac_ext
5415 if $ac_preproc_ok; then
5416   :
5417 else
5418   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5419 See \`config.log' for more details." >&5
5420 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5421 See \`config.log' for more details." >&2;}
5422    { (exit 1); exit 1; }; }
5423 fi
5424
5425 ac_ext=c
5426 ac_cpp='$CPP $CPPFLAGS'
5427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5430
5431 ac_ext=c
5432 ac_cpp='$CPP $CPPFLAGS'
5433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5436 if test -n "$ac_tool_prefix"; then
5437   for ac_prog in gcc
5438   do
5439     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5440 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5443 if test "${ac_cv_prog_CC+set}" = set; then
5444   echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446   if test -n "$CC"; then
5447   ac_cv_prog_CC="$CC" # Let the user override the test.
5448 else
5449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 for as_dir in $PATH
5451 do
5452   IFS=$as_save_IFS
5453   test -z "$as_dir" && as_dir=.
5454   for ac_exec_ext in '' $ac_executable_extensions; do
5455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5456     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5458     break 2
5459   fi
5460 done
5461 done
5462 IFS=$as_save_IFS
5463
5464 fi
5465 fi
5466 CC=$ac_cv_prog_CC
5467 if test -n "$CC"; then
5468   { echo "$as_me:$LINENO: result: $CC" >&5
5469 echo "${ECHO_T}$CC" >&6; }
5470 else
5471   { echo "$as_me:$LINENO: result: no" >&5
5472 echo "${ECHO_T}no" >&6; }
5473 fi
5474
5475
5476     test -n "$CC" && break
5477   done
5478 fi
5479 if test -z "$CC"; then
5480   ac_ct_CC=$CC
5481   for ac_prog in gcc
5482 do
5483   # Extract the first word of "$ac_prog", so it can be a program name with args.
5484 set dummy $ac_prog; ac_word=$2
5485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5488   echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490   if test -n "$ac_ct_CC"; then
5491   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5492 else
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496   IFS=$as_save_IFS
5497   test -z "$as_dir" && as_dir=.
5498   for ac_exec_ext in '' $ac_executable_extensions; do
5499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5500     ac_cv_prog_ac_ct_CC="$ac_prog"
5501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5502     break 2
5503   fi
5504 done
5505 done
5506 IFS=$as_save_IFS
5507
5508 fi
5509 fi
5510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5511 if test -n "$ac_ct_CC"; then
5512   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5513 echo "${ECHO_T}$ac_ct_CC" >&6; }
5514 else
5515   { echo "$as_me:$LINENO: result: no" >&5
5516 echo "${ECHO_T}no" >&6; }
5517 fi
5518
5519
5520   test -n "$ac_ct_CC" && break
5521 done
5522
5523   if test "x$ac_ct_CC" = x; then
5524     CC=""
5525   else
5526     case $cross_compiling:$ac_tool_warned in
5527 yes:)
5528 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5529 whose name does not start with the host triplet.  If you think this
5530 configuration is useful to you, please write to autoconf@gnu.org." >&5
5531 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5532 whose name does not start with the host triplet.  If you think this
5533 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5534 ac_tool_warned=yes ;;
5535 esac
5536     CC=$ac_ct_CC
5537   fi
5538 fi
5539
5540
5541 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5542 See \`config.log' for more details." >&5
5543 echo "$as_me: error: no acceptable C compiler found in \$PATH
5544 See \`config.log' for more details." >&2;}
5545    { (exit 1); exit 1; }; }
5546
5547 # Provide some information about the compiler.
5548 echo "$as_me:$LINENO: checking for C compiler version" >&5
5549 ac_compiler=`set X $ac_compile; echo $2`
5550 { (ac_try="$ac_compiler --version >&5"
5551 case "(($ac_try" in
5552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553   *) ac_try_echo=$ac_try;;
5554 esac
5555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556   (eval "$ac_compiler --version >&5") 2>&5
5557   ac_status=$?
5558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559   (exit $ac_status); }
5560 { (ac_try="$ac_compiler -v >&5"
5561 case "(($ac_try" in
5562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563   *) ac_try_echo=$ac_try;;
5564 esac
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566   (eval "$ac_compiler -v >&5") 2>&5
5567   ac_status=$?
5568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569   (exit $ac_status); }
5570 { (ac_try="$ac_compiler -V >&5"
5571 case "(($ac_try" in
5572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573   *) ac_try_echo=$ac_try;;
5574 esac
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576   (eval "$ac_compiler -V >&5") 2>&5
5577   ac_status=$?
5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); }
5580
5581 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5582 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5583 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5584   echo $ECHO_N "(cached) $ECHO_C" >&6
5585 else
5586   cat >conftest.$ac_ext <<_ACEOF
5587 /* confdefs.h.  */
5588 _ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h.  */
5592
5593 int
5594 main ()
5595 {
5596 #ifndef __GNUC__
5597        choke me
5598 #endif
5599
5600   ;
5601   return 0;
5602 }
5603 _ACEOF
5604 rm -f conftest.$ac_objext
5605 if { (ac_try="$ac_compile"
5606 case "(($ac_try" in
5607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608   *) ac_try_echo=$ac_try;;
5609 esac
5610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611   (eval "$ac_compile") 2>conftest.er1
5612   ac_status=$?
5613   grep -v '^ *+' conftest.er1 >conftest.err
5614   rm -f conftest.er1
5615   cat conftest.err >&5
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); } &&
5618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5619   { (case "(($ac_try" in
5620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621   *) ac_try_echo=$ac_try;;
5622 esac
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624   (eval "$ac_try") 2>&5
5625   ac_status=$?
5626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627   (exit $ac_status); }; } &&
5628          { ac_try='test -s conftest.$ac_objext'
5629   { (case "(($ac_try" in
5630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631   *) ac_try_echo=$ac_try;;
5632 esac
5633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634   (eval "$ac_try") 2>&5
5635   ac_status=$?
5636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637   (exit $ac_status); }; }; then
5638   ac_compiler_gnu=yes
5639 else
5640   echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5642
5643         ac_compiler_gnu=no
5644 fi
5645
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5648
5649 fi
5650 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5651 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5652 GCC=`test $ac_compiler_gnu = yes && echo yes`
5653 ac_test_CFLAGS=${CFLAGS+set}
5654 ac_save_CFLAGS=$CFLAGS
5655 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5656 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5657 if test "${ac_cv_prog_cc_g+set}" = set; then
5658   echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660   ac_save_c_werror_flag=$ac_c_werror_flag
5661    ac_c_werror_flag=yes
5662    ac_cv_prog_cc_g=no
5663    CFLAGS="-g"
5664    cat >conftest.$ac_ext <<_ACEOF
5665 /* confdefs.h.  */
5666 _ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h.  */
5670
5671 int
5672 main ()
5673 {
5674
5675   ;
5676   return 0;
5677 }
5678 _ACEOF
5679 rm -f conftest.$ac_objext
5680 if { (ac_try="$ac_compile"
5681 case "(($ac_try" in
5682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683   *) ac_try_echo=$ac_try;;
5684 esac
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686   (eval "$ac_compile") 2>conftest.er1
5687   ac_status=$?
5688   grep -v '^ *+' conftest.er1 >conftest.err
5689   rm -f conftest.er1
5690   cat conftest.err >&5
5691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692   (exit $ac_status); } &&
5693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5694   { (case "(($ac_try" in
5695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696   *) ac_try_echo=$ac_try;;
5697 esac
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699   (eval "$ac_try") 2>&5
5700   ac_status=$?
5701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702   (exit $ac_status); }; } &&
5703          { ac_try='test -s conftest.$ac_objext'
5704   { (case "(($ac_try" in
5705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706   *) ac_try_echo=$ac_try;;
5707 esac
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709   (eval "$ac_try") 2>&5
5710   ac_status=$?
5711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712   (exit $ac_status); }; }; then
5713   ac_cv_prog_cc_g=yes
5714 else
5715   echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5717
5718         CFLAGS=""
5719       cat >conftest.$ac_ext <<_ACEOF
5720 /* confdefs.h.  */
5721 _ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h.  */
5725
5726 int
5727 main ()
5728 {
5729
5730   ;
5731   return 0;
5732 }
5733 _ACEOF
5734 rm -f conftest.$ac_objext
5735 if { (ac_try="$ac_compile"
5736 case "(($ac_try" in
5737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738   *) ac_try_echo=$ac_try;;
5739 esac
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741   (eval "$ac_compile") 2>conftest.er1
5742   ac_status=$?
5743   grep -v '^ *+' conftest.er1 >conftest.err
5744   rm -f conftest.er1
5745   cat conftest.err >&5
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); } &&
5748          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5749   { (case "(($ac_try" in
5750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751   *) ac_try_echo=$ac_try;;
5752 esac
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754   (eval "$ac_try") 2>&5
5755   ac_status=$?
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); }; } &&
5758          { ac_try='test -s conftest.$ac_objext'
5759   { (case "(($ac_try" in
5760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761   *) ac_try_echo=$ac_try;;
5762 esac
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764   (eval "$ac_try") 2>&5
5765   ac_status=$?
5766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767   (exit $ac_status); }; }; then
5768   :
5769 else
5770   echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773         ac_c_werror_flag=$ac_save_c_werror_flag
5774          CFLAGS="-g"
5775          cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h.  */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h.  */
5781
5782 int
5783 main ()
5784 {
5785
5786   ;
5787   return 0;
5788 }
5789 _ACEOF
5790 rm -f conftest.$ac_objext
5791 if { (ac_try="$ac_compile"
5792 case "(($ac_try" in
5793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794   *) ac_try_echo=$ac_try;;
5795 esac
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797   (eval "$ac_compile") 2>conftest.er1
5798   ac_status=$?
5799   grep -v '^ *+' conftest.er1 >conftest.err
5800   rm -f conftest.er1
5801   cat conftest.err >&5
5802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803   (exit $ac_status); } &&
5804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5805   { (case "(($ac_try" in
5806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807   *) ac_try_echo=$ac_try;;
5808 esac
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810   (eval "$ac_try") 2>&5
5811   ac_status=$?
5812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813   (exit $ac_status); }; } &&
5814          { ac_try='test -s conftest.$ac_objext'
5815   { (case "(($ac_try" in
5816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817   *) ac_try_echo=$ac_try;;
5818 esac
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820   (eval "$ac_try") 2>&5
5821   ac_status=$?
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); }; }; then
5824   ac_cv_prog_cc_g=yes
5825 else
5826   echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829
5830 fi
5831
5832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833 fi
5834
5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836 fi
5837
5838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839    ac_c_werror_flag=$ac_save_c_werror_flag
5840 fi
5841 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5842 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5843 if test "$ac_test_CFLAGS" = set; then
5844   CFLAGS=$ac_save_CFLAGS
5845 elif test $ac_cv_prog_cc_g = yes; then
5846   if test "$GCC" = yes; then
5847     CFLAGS="-g -O2"
5848   else
5849     CFLAGS="-g"
5850   fi
5851 else
5852   if test "$GCC" = yes; then
5853     CFLAGS="-O2"
5854   else
5855     CFLAGS=
5856   fi
5857 fi
5858 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5859 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5860 if test "${ac_cv_prog_cc_c89+set}" = set; then
5861   echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863   ac_cv_prog_cc_c89=no
5864 ac_save_CC=$CC
5865 cat >conftest.$ac_ext <<_ACEOF
5866 /* confdefs.h.  */
5867 _ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h.  */
5871 #include <stdarg.h>
5872 #include <stdio.h>
5873 #include <sys/types.h>
5874 #include <sys/stat.h>
5875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5876 struct buf { int x; };
5877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5878 static char *e (p, i)
5879      char **p;
5880      int i;
5881 {
5882   return p[i];
5883 }
5884 static char *f (char * (*g) (char **, int), char **p, ...)
5885 {
5886   char *s;
5887   va_list v;
5888   va_start (v,p);
5889   s = g (p, va_arg (v,int));
5890   va_end (v);
5891   return s;
5892 }
5893
5894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5895    function prototypes and stuff, but not '\xHH' hex character constants.
5896    These don't provoke an error unfortunately, instead are silently treated
5897    as 'x'.  The following induces an error, until -std is added to get
5898    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5899    array size at least.  It's necessary to write '\x00'==0 to get something
5900    that's true only with -std.  */
5901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5902
5903 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5904    inside strings and character constants.  */
5905 #define FOO(x) 'x'
5906 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5907
5908 int test (int i, double x);
5909 struct s1 {int (*f) (int a);};
5910 struct s2 {int (*f) (double a);};
5911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5912 int argc;
5913 char **argv;
5914 int
5915 main ()
5916 {
5917 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5918   ;
5919   return 0;
5920 }
5921 _ACEOF
5922 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5923         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5924 do
5925   CC="$ac_save_CC $ac_arg"
5926   rm -f conftest.$ac_objext
5927 if { (ac_try="$ac_compile"
5928 case "(($ac_try" in
5929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930   *) ac_try_echo=$ac_try;;
5931 esac
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933   (eval "$ac_compile") 2>conftest.er1
5934   ac_status=$?
5935   grep -v '^ *+' conftest.er1 >conftest.err
5936   rm -f conftest.er1
5937   cat conftest.err >&5
5938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939   (exit $ac_status); } &&
5940          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5941   { (case "(($ac_try" in
5942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943   *) ac_try_echo=$ac_try;;
5944 esac
5945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946   (eval "$ac_try") 2>&5
5947   ac_status=$?
5948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949   (exit $ac_status); }; } &&
5950          { ac_try='test -s conftest.$ac_objext'
5951   { (case "(($ac_try" in
5952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953   *) ac_try_echo=$ac_try;;
5954 esac
5955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956   (eval "$ac_try") 2>&5
5957   ac_status=$?
5958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959   (exit $ac_status); }; }; then
5960   ac_cv_prog_cc_c89=$ac_arg
5961 else
5962   echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5964
5965
5966 fi
5967
5968 rm -f core conftest.err conftest.$ac_objext
5969   test "x$ac_cv_prog_cc_c89" != "xno" && break
5970 done
5971 rm -f conftest.$ac_ext
5972 CC=$ac_save_CC
5973
5974 fi
5975 # AC_CACHE_VAL
5976 case "x$ac_cv_prog_cc_c89" in
5977   x)
5978     { echo "$as_me:$LINENO: result: none needed" >&5
5979 echo "${ECHO_T}none needed" >&6; } ;;
5980   xno)
5981     { echo "$as_me:$LINENO: result: unsupported" >&5
5982 echo "${ECHO_T}unsupported" >&6; } ;;
5983   *)
5984     CC="$CC $ac_cv_prog_cc_c89"
5985     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5986 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5987 esac
5988
5989
5990 ac_ext=c
5991 ac_cpp='$CPP $CPPFLAGS'
5992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5995
5996 ac_ext=cpp
5997 ac_cpp='$CXXCPP $CPPFLAGS'
5998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6001 if test -z "$CXX"; then
6002   if test -n "$CCC"; then
6003     CXX=$CCC
6004   else
6005     if test -n "$ac_tool_prefix"; then
6006   for ac_prog in g++
6007   do
6008     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6012 if test "${ac_cv_prog_CXX+set}" = set; then
6013   echo $ECHO_N "(cached) $ECHO_C" >&6
6014 else
6015   if test -n "$CXX"; then
6016   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6017 else
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6020 do
6021   IFS=$as_save_IFS
6022   test -z "$as_dir" && as_dir=.
6023   for ac_exec_ext in '' $ac_executable_extensions; do
6024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6025     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6027     break 2
6028   fi
6029 done
6030 done
6031 IFS=$as_save_IFS
6032
6033 fi
6034 fi
6035 CXX=$ac_cv_prog_CXX
6036 if test -n "$CXX"; then
6037   { echo "$as_me:$LINENO: result: $CXX" >&5
6038 echo "${ECHO_T}$CXX" >&6; }
6039 else
6040   { echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6; }
6042 fi
6043
6044
6045     test -n "$CXX" && break
6046   done
6047 fi
6048 if test -z "$CXX"; then
6049   ac_ct_CXX=$CXX
6050   for ac_prog in g++
6051 do
6052   # Extract the first word of "$ac_prog", so it can be a program name with args.
6053 set dummy $ac_prog; ac_word=$2
6054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6056 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059   if test -n "$ac_ct_CXX"; then
6060   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065   IFS=$as_save_IFS
6066   test -z "$as_dir" && as_dir=.
6067   for ac_exec_ext in '' $ac_executable_extensions; do
6068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6069     ac_cv_prog_ac_ct_CXX="$ac_prog"
6070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071     break 2
6072   fi
6073 done
6074 done
6075 IFS=$as_save_IFS
6076
6077 fi
6078 fi
6079 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6080 if test -n "$ac_ct_CXX"; then
6081   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6082 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6083 else
6084   { echo "$as_me:$LINENO: result: no" >&5
6085 echo "${ECHO_T}no" >&6; }
6086 fi
6087
6088
6089   test -n "$ac_ct_CXX" && break
6090 done
6091
6092   if test "x$ac_ct_CXX" = x; then
6093     CXX="g++"
6094   else
6095     case $cross_compiling:$ac_tool_warned in
6096 yes:)
6097 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6098 whose name does not start with the host triplet.  If you think this
6099 configuration is useful to you, please write to autoconf@gnu.org." >&5
6100 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6101 whose name does not start with the host triplet.  If you think this
6102 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6103 ac_tool_warned=yes ;;
6104 esac
6105     CXX=$ac_ct_CXX
6106   fi
6107 fi
6108
6109   fi
6110 fi
6111 # Provide some information about the compiler.
6112 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6113 ac_compiler=`set X $ac_compile; echo $2`
6114 { (ac_try="$ac_compiler --version >&5"
6115 case "(($ac_try" in
6116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117   *) ac_try_echo=$ac_try;;
6118 esac
6119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120   (eval "$ac_compiler --version >&5") 2>&5
6121   ac_status=$?
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); }
6124 { (ac_try="$ac_compiler -v >&5"
6125 case "(($ac_try" in
6126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127   *) ac_try_echo=$ac_try;;
6128 esac
6129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130   (eval "$ac_compiler -v >&5") 2>&5
6131   ac_status=$?
6132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133   (exit $ac_status); }
6134 { (ac_try="$ac_compiler -V >&5"
6135 case "(($ac_try" in
6136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137   *) ac_try_echo=$ac_try;;
6138 esac
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140   (eval "$ac_compiler -V >&5") 2>&5
6141   ac_status=$?
6142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143   (exit $ac_status); }
6144
6145 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6146 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6147 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6148   echo $ECHO_N "(cached) $ECHO_C" >&6
6149 else
6150   cat >conftest.$ac_ext <<_ACEOF
6151 /* confdefs.h.  */
6152 _ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h.  */
6156
6157 int
6158 main ()
6159 {
6160 #ifndef __GNUC__
6161        choke me
6162 #endif
6163
6164   ;
6165   return 0;
6166 }
6167 _ACEOF
6168 rm -f conftest.$ac_objext
6169 if { (ac_try="$ac_compile"
6170 case "(($ac_try" in
6171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172   *) ac_try_echo=$ac_try;;
6173 esac
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175   (eval "$ac_compile") 2>conftest.er1
6176   ac_status=$?
6177   grep -v '^ *+' conftest.er1 >conftest.err
6178   rm -f conftest.er1
6179   cat conftest.err >&5
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); } &&
6182          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6183   { (case "(($ac_try" in
6184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185   *) ac_try_echo=$ac_try;;
6186 esac
6187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6188   (eval "$ac_try") 2>&5
6189   ac_status=$?
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); }; } &&
6192          { ac_try='test -s conftest.$ac_objext'
6193   { (case "(($ac_try" in
6194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195   *) ac_try_echo=$ac_try;;
6196 esac
6197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198   (eval "$ac_try") 2>&5
6199   ac_status=$?
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); }; }; then
6202   ac_compiler_gnu=yes
6203 else
6204   echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6206
6207         ac_compiler_gnu=no
6208 fi
6209
6210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6212
6213 fi
6214 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6215 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6216 GXX=`test $ac_compiler_gnu = yes && echo yes`
6217 ac_test_CXXFLAGS=${CXXFLAGS+set}
6218 ac_save_CXXFLAGS=$CXXFLAGS
6219 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6220 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6221 if test "${ac_cv_prog_cxx_g+set}" = set; then
6222   echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6224   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6225    ac_cxx_werror_flag=yes
6226    ac_cv_prog_cxx_g=no
6227    CXXFLAGS="-g"
6228    cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h.  */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h.  */
6234
6235 int
6236 main ()
6237 {
6238
6239   ;
6240   return 0;
6241 }
6242 _ACEOF
6243 rm -f conftest.$ac_objext
6244 if { (ac_try="$ac_compile"
6245 case "(($ac_try" in
6246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247   *) ac_try_echo=$ac_try;;
6248 esac
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250   (eval "$ac_compile") 2>conftest.er1
6251   ac_status=$?
6252   grep -v '^ *+' conftest.er1 >conftest.err
6253   rm -f conftest.er1
6254   cat conftest.err >&5
6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256   (exit $ac_status); } &&
6257          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6258   { (case "(($ac_try" in
6259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260   *) ac_try_echo=$ac_try;;
6261 esac
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263   (eval "$ac_try") 2>&5
6264   ac_status=$?
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); }; } &&
6267          { ac_try='test -s conftest.$ac_objext'
6268   { (case "(($ac_try" in
6269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270   *) ac_try_echo=$ac_try;;
6271 esac
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273   (eval "$ac_try") 2>&5
6274   ac_status=$?
6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276   (exit $ac_status); }; }; then
6277   ac_cv_prog_cxx_g=yes
6278 else
6279   echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6281
6282         CXXFLAGS=""
6283       cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h.  */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h.  */
6289
6290 int
6291 main ()
6292 {
6293
6294   ;
6295   return 0;
6296 }
6297 _ACEOF
6298 rm -f conftest.$ac_objext
6299 if { (ac_try="$ac_compile"
6300 case "(($ac_try" in
6301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302   *) ac_try_echo=$ac_try;;
6303 esac
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305   (eval "$ac_compile") 2>conftest.er1
6306   ac_status=$?
6307   grep -v '^ *+' conftest.er1 >conftest.err
6308   rm -f conftest.er1
6309   cat conftest.err >&5
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); } &&
6312          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6313   { (case "(($ac_try" in
6314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315   *) ac_try_echo=$ac_try;;
6316 esac
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318   (eval "$ac_try") 2>&5
6319   ac_status=$?
6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); }; } &&
6322          { ac_try='test -s conftest.$ac_objext'
6323   { (case "(($ac_try" in
6324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325   *) ac_try_echo=$ac_try;;
6326 esac
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328   (eval "$ac_try") 2>&5
6329   ac_status=$?
6330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331   (exit $ac_status); }; }; then
6332   :
6333 else
6334   echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6336
6337         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6338          CXXFLAGS="-g"
6339          cat >conftest.$ac_ext <<_ACEOF
6340 /* confdefs.h.  */
6341 _ACEOF
6342 cat confdefs.h >>conftest.$ac_ext
6343 cat >>conftest.$ac_ext <<_ACEOF
6344 /* end confdefs.h.  */
6345
6346 int
6347 main ()
6348 {
6349
6350   ;
6351   return 0;
6352 }
6353 _ACEOF
6354 rm -f conftest.$ac_objext
6355 if { (ac_try="$ac_compile"
6356 case "(($ac_try" in
6357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358   *) ac_try_echo=$ac_try;;
6359 esac
6360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361   (eval "$ac_compile") 2>conftest.er1
6362   ac_status=$?
6363   grep -v '^ *+' conftest.er1 >conftest.err
6364   rm -f conftest.er1
6365   cat conftest.err >&5
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); } &&
6368          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6369   { (case "(($ac_try" in
6370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6371   *) ac_try_echo=$ac_try;;
6372 esac
6373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6374   (eval "$ac_try") 2>&5
6375   ac_status=$?
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); }; } &&
6378          { ac_try='test -s conftest.$ac_objext'
6379   { (case "(($ac_try" in
6380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381   *) ac_try_echo=$ac_try;;
6382 esac
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384   (eval "$ac_try") 2>&5
6385   ac_status=$?
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); }; }; then
6388   ac_cv_prog_cxx_g=yes
6389 else
6390   echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6392
6393
6394 fi
6395
6396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397 fi
6398
6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 fi
6401
6402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6404 fi
6405 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6406 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6407 if test "$ac_test_CXXFLAGS" = set; then
6408   CXXFLAGS=$ac_save_CXXFLAGS
6409 elif test $ac_cv_prog_cxx_g = yes; then
6410   if test "$GXX" = yes; then
6411     CXXFLAGS="-g -O2"
6412   else
6413     CXXFLAGS="-g"
6414   fi
6415 else
6416   if test "$GXX" = yes; then
6417     CXXFLAGS="-O2"
6418   else
6419     CXXFLAGS=
6420   fi
6421 fi
6422 ac_ext=c
6423 ac_cpp='$CPP $CPPFLAGS'
6424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6427
6428
6429 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6430 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6431 if test "${lt_cv_path_NM+set}" = set; then
6432   echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434   if test -n "$NM"; then
6435   # Let the user override the test.
6436   lt_cv_path_NM="$NM"
6437 else
6438   lt_nm_to_check="${ac_tool_prefix}nm"
6439   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6440     lt_nm_to_check="$lt_nm_to_check nm"
6441   fi
6442   for lt_tmp_nm in $lt_nm_to_check; do
6443     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6444     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6445       IFS="$lt_save_ifs"
6446       test -z "$ac_dir" && ac_dir=.
6447       tmp_nm="$ac_dir/$lt_tmp_nm"
6448       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6449         # Check to see if the nm accepts a BSD-compat flag.
6450         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6451         #   nm: unknown option "B" ignored
6452         # Tru64's nm complains that /dev/null is an invalid object file
6453         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6454         */dev/null* | *'Invalid file or object type'*)
6455           lt_cv_path_NM="$tmp_nm -B"
6456           break
6457           ;;
6458         *)
6459           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6460           */dev/null*)
6461             lt_cv_path_NM="$tmp_nm -p"
6462             break
6463             ;;
6464           *)
6465             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6466             continue # so that we can try to find one that supports BSD flags
6467             ;;
6468           esac
6469           ;;
6470         esac
6471       fi
6472     done
6473     IFS="$lt_save_ifs"
6474   done
6475   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6476 fi
6477 fi
6478 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6479 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6480 NM="$lt_cv_path_NM"
6481
6482
6483
6484 { echo "$as_me:$LINENO: checking for GNU make" >&5
6485 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6486 if test "${llvm_cv_gnu_make_command+set}" = set; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   llvm_cv_gnu_make_command=''
6490  for a in "$MAKE" make gmake gnumake ; do
6491   if test -z "$a" ; then continue ; fi ;
6492   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6493   then
6494    llvm_cv_gnu_make_command=$a ;
6495    break;
6496   fi
6497  done
6498 fi
6499 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6500 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6501  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6502    ifGNUmake='' ;
6503  else
6504    ifGNUmake='#' ;
6505    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6506 echo "${ECHO_T}\"Not found\"" >&6; };
6507  fi
6508
6509
6510 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6511 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6512 LN_S=$as_ln_s
6513 if test "$LN_S" = "ln -s"; then
6514   { echo "$as_me:$LINENO: result: yes" >&5
6515 echo "${ECHO_T}yes" >&6; }
6516 else
6517   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6518 echo "${ECHO_T}no, using $LN_S" >&6; }
6519 fi
6520
6521 # Extract the first word of "cmp", so it can be a program name with args.
6522 set dummy cmp; 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_path_CMP+set}" = set; then
6526   echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528   case $CMP in
6529   [\\/]* | ?:[\\/]*)
6530   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6531   ;;
6532   *)
6533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 for as_dir in $PATH
6535 do
6536   IFS=$as_save_IFS
6537   test -z "$as_dir" && as_dir=.
6538   for ac_exec_ext in '' $ac_executable_extensions; do
6539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6540     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6542     break 2
6543   fi
6544 done
6545 done
6546 IFS=$as_save_IFS
6547
6548   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6549   ;;
6550 esac
6551 fi
6552 CMP=$ac_cv_path_CMP
6553 if test -n "$CMP"; then
6554   { echo "$as_me:$LINENO: result: $CMP" >&5
6555 echo "${ECHO_T}$CMP" >&6; }
6556 else
6557   { echo "$as_me:$LINENO: result: no" >&5
6558 echo "${ECHO_T}no" >&6; }
6559 fi
6560
6561
6562 # Extract the first word of "cp", so it can be a program name with args.
6563 set dummy cp; ac_word=$2
6564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566 if test "${ac_cv_path_CP+set}" = set; then
6567   echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569   case $CP in
6570   [\\/]* | ?:[\\/]*)
6571   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6572   ;;
6573   *)
6574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577   IFS=$as_save_IFS
6578   test -z "$as_dir" && as_dir=.
6579   for ac_exec_ext in '' $ac_executable_extensions; do
6580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6581     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583     break 2
6584   fi
6585 done
6586 done
6587 IFS=$as_save_IFS
6588
6589   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6590   ;;
6591 esac
6592 fi
6593 CP=$ac_cv_path_CP
6594 if test -n "$CP"; then
6595   { echo "$as_me:$LINENO: result: $CP" >&5
6596 echo "${ECHO_T}$CP" >&6; }
6597 else
6598   { echo "$as_me:$LINENO: result: no" >&5
6599 echo "${ECHO_T}no" >&6; }
6600 fi
6601
6602
6603 # Extract the first word of "date", so it can be a program name with args.
6604 set dummy date; ac_word=$2
6605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6607 if test "${ac_cv_path_DATE+set}" = set; then
6608   echo $ECHO_N "(cached) $ECHO_C" >&6
6609 else
6610   case $DATE in
6611   [\\/]* | ?:[\\/]*)
6612   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6613   ;;
6614   *)
6615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 for as_dir in $PATH
6617 do
6618   IFS=$as_save_IFS
6619   test -z "$as_dir" && as_dir=.
6620   for ac_exec_ext in '' $ac_executable_extensions; do
6621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6622     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624     break 2
6625   fi
6626 done
6627 done
6628 IFS=$as_save_IFS
6629
6630   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6631   ;;
6632 esac
6633 fi
6634 DATE=$ac_cv_path_DATE
6635 if test -n "$DATE"; then
6636   { echo "$as_me:$LINENO: result: $DATE" >&5
6637 echo "${ECHO_T}$DATE" >&6; }
6638 else
6639   { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6641 fi
6642
6643
6644 # Extract the first word of "find", so it can be a program name with args.
6645 set dummy find; ac_word=$2
6646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6648 if test "${ac_cv_path_FIND+set}" = set; then
6649   echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651   case $FIND in
6652   [\\/]* | ?:[\\/]*)
6653   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6654   ;;
6655   *)
6656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 for as_dir in $PATH
6658 do
6659   IFS=$as_save_IFS
6660   test -z "$as_dir" && as_dir=.
6661   for ac_exec_ext in '' $ac_executable_extensions; do
6662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6663     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6665     break 2
6666   fi
6667 done
6668 done
6669 IFS=$as_save_IFS
6670
6671   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6672   ;;
6673 esac
6674 fi
6675 FIND=$ac_cv_path_FIND
6676 if test -n "$FIND"; then
6677   { echo "$as_me:$LINENO: result: $FIND" >&5
6678 echo "${ECHO_T}$FIND" >&6; }
6679 else
6680   { echo "$as_me:$LINENO: result: no" >&5
6681 echo "${ECHO_T}no" >&6; }
6682 fi
6683
6684
6685 # Extract the first word of "grep", so it can be a program name with args.
6686 set dummy grep; ac_word=$2
6687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689 if test "${ac_cv_path_GREP+set}" = set; then
6690   echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692   case $GREP in
6693   [\\/]* | ?:[\\/]*)
6694   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6695   ;;
6696   *)
6697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 for as_dir in $PATH
6699 do
6700   IFS=$as_save_IFS
6701   test -z "$as_dir" && as_dir=.
6702   for ac_exec_ext in '' $ac_executable_extensions; do
6703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6704     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706     break 2
6707   fi
6708 done
6709 done
6710 IFS=$as_save_IFS
6711
6712   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6713   ;;
6714 esac
6715 fi
6716 GREP=$ac_cv_path_GREP
6717 if test -n "$GREP"; then
6718   { echo "$as_me:$LINENO: result: $GREP" >&5
6719 echo "${ECHO_T}$GREP" >&6; }
6720 else
6721   { echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6; }
6723 fi
6724
6725
6726 # Extract the first word of "mkdir", so it can be a program name with args.
6727 set dummy mkdir; ac_word=$2
6728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730 if test "${ac_cv_path_MKDIR+set}" = set; then
6731   echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733   case $MKDIR in
6734   [\\/]* | ?:[\\/]*)
6735   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6736   ;;
6737   *)
6738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741   IFS=$as_save_IFS
6742   test -z "$as_dir" && as_dir=.
6743   for ac_exec_ext in '' $ac_executable_extensions; do
6744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6745     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747     break 2
6748   fi
6749 done
6750 done
6751 IFS=$as_save_IFS
6752
6753   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6754   ;;
6755 esac
6756 fi
6757 MKDIR=$ac_cv_path_MKDIR
6758 if test -n "$MKDIR"; then
6759   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6760 echo "${ECHO_T}$MKDIR" >&6; }
6761 else
6762   { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6764 fi
6765
6766
6767 # Extract the first word of "mv", so it can be a program name with args.
6768 set dummy mv; ac_word=$2
6769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6771 if test "${ac_cv_path_MV+set}" = set; then
6772   echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774   case $MV in
6775   [\\/]* | ?:[\\/]*)
6776   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6777   ;;
6778   *)
6779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782   IFS=$as_save_IFS
6783   test -z "$as_dir" && as_dir=.
6784   for ac_exec_ext in '' $ac_executable_extensions; do
6785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6786     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788     break 2
6789   fi
6790 done
6791 done
6792 IFS=$as_save_IFS
6793
6794   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6795   ;;
6796 esac
6797 fi
6798 MV=$ac_cv_path_MV
6799 if test -n "$MV"; then
6800   { echo "$as_me:$LINENO: result: $MV" >&5
6801 echo "${ECHO_T}$MV" >&6; }
6802 else
6803   { echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6; }
6805 fi
6806
6807
6808 if test -n "$ac_tool_prefix"; then
6809   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813 if test "${ac_cv_prog_RANLIB+set}" = set; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   if test -n "$RANLIB"; then
6817   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822   IFS=$as_save_IFS
6823   test -z "$as_dir" && as_dir=.
6824   for ac_exec_ext in '' $ac_executable_extensions; do
6825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828     break 2
6829   fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834 fi
6835 fi
6836 RANLIB=$ac_cv_prog_RANLIB
6837 if test -n "$RANLIB"; then
6838   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6839 echo "${ECHO_T}$RANLIB" >&6; }
6840 else
6841   { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6843 fi
6844
6845
6846 fi
6847 if test -z "$ac_cv_prog_RANLIB"; then
6848   ac_ct_RANLIB=$RANLIB
6849   # Extract the first word of "ranlib", so it can be a program name with args.
6850 set dummy ranlib; ac_word=$2
6851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6854   echo $ECHO_N "(cached) $ECHO_C" >&6
6855 else
6856   if test -n "$ac_ct_RANLIB"; then
6857   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862   IFS=$as_save_IFS
6863   test -z "$as_dir" && as_dir=.
6864   for ac_exec_ext in '' $ac_executable_extensions; do
6865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866     ac_cv_prog_ac_ct_RANLIB="ranlib"
6867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868     break 2
6869   fi
6870 done
6871 done
6872 IFS=$as_save_IFS
6873
6874 fi
6875 fi
6876 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6877 if test -n "$ac_ct_RANLIB"; then
6878   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6879 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6880 else
6881   { echo "$as_me:$LINENO: result: no" >&5
6882 echo "${ECHO_T}no" >&6; }
6883 fi
6884
6885   if test "x$ac_ct_RANLIB" = x; then
6886     RANLIB=":"
6887   else
6888     case $cross_compiling:$ac_tool_warned in
6889 yes:)
6890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6891 whose name does not start with the host triplet.  If you think this
6892 configuration is useful to you, please write to autoconf@gnu.org." >&5
6893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6894 whose name does not start with the host triplet.  If you think this
6895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6896 ac_tool_warned=yes ;;
6897 esac
6898     RANLIB=$ac_ct_RANLIB
6899   fi
6900 else
6901   RANLIB="$ac_cv_prog_RANLIB"
6902 fi
6903
6904 # Extract the first word of "rm", so it can be a program name with args.
6905 set dummy rm; ac_word=$2
6906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908 if test "${ac_cv_path_RM+set}" = set; then
6909   echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911   case $RM in
6912   [\\/]* | ?:[\\/]*)
6913   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6914   ;;
6915   *)
6916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6918 do
6919   IFS=$as_save_IFS
6920   test -z "$as_dir" && as_dir=.
6921   for ac_exec_ext in '' $ac_executable_extensions; do
6922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6923     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925     break 2
6926   fi
6927 done
6928 done
6929 IFS=$as_save_IFS
6930
6931   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6932   ;;
6933 esac
6934 fi
6935 RM=$ac_cv_path_RM
6936 if test -n "$RM"; then
6937   { echo "$as_me:$LINENO: result: $RM" >&5
6938 echo "${ECHO_T}$RM" >&6; }
6939 else
6940   { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6942 fi
6943
6944
6945 # Extract the first word of "sed", so it can be a program name with args.
6946 set dummy sed; ac_word=$2
6947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949 if test "${ac_cv_path_SED+set}" = set; then
6950   echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952   case $SED in
6953   [\\/]* | ?:[\\/]*)
6954   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6955   ;;
6956   *)
6957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6959 do
6960   IFS=$as_save_IFS
6961   test -z "$as_dir" && as_dir=.
6962   for ac_exec_ext in '' $ac_executable_extensions; do
6963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6964     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966     break 2
6967   fi
6968 done
6969 done
6970 IFS=$as_save_IFS
6971
6972   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6973   ;;
6974 esac
6975 fi
6976 SED=$ac_cv_path_SED
6977 if test -n "$SED"; then
6978   { echo "$as_me:$LINENO: result: $SED" >&5
6979 echo "${ECHO_T}$SED" >&6; }
6980 else
6981   { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6983 fi
6984
6985
6986 # Extract the first word of "tar", so it can be a program name with args.
6987 set dummy tar; ac_word=$2
6988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990 if test "${ac_cv_path_TAR+set}" = set; then
6991   echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993   case $TAR in
6994   [\\/]* | ?:[\\/]*)
6995   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6996   ;;
6997   *)
6998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001   IFS=$as_save_IFS
7002   test -z "$as_dir" && as_dir=.
7003   for ac_exec_ext in '' $ac_executable_extensions; do
7004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7005     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007     break 2
7008   fi
7009 done
7010 done
7011 IFS=$as_save_IFS
7012
7013   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7014   ;;
7015 esac
7016 fi
7017 TAR=$ac_cv_path_TAR
7018 if test -n "$TAR"; then
7019   { echo "$as_me:$LINENO: result: $TAR" >&5
7020 echo "${ECHO_T}$TAR" >&6; }
7021 else
7022   { echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6; }
7024 fi
7025
7026
7027 # Extract the first word of "pwd", so it can be a program name with args.
7028 set dummy pwd; ac_word=$2
7029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7031 if test "${ac_cv_path_BINPWD+set}" = set; then
7032   echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034   case $BINPWD in
7035   [\\/]* | ?:[\\/]*)
7036   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7037   ;;
7038   *)
7039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042   IFS=$as_save_IFS
7043   test -z "$as_dir" && as_dir=.
7044   for ac_exec_ext in '' $ac_executable_extensions; do
7045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7046     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048     break 2
7049   fi
7050 done
7051 done
7052 IFS=$as_save_IFS
7053
7054   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7055   ;;
7056 esac
7057 fi
7058 BINPWD=$ac_cv_path_BINPWD
7059 if test -n "$BINPWD"; then
7060   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7061 echo "${ECHO_T}$BINPWD" >&6; }
7062 else
7063   { echo "$as_me:$LINENO: result: no" >&5
7064 echo "${ECHO_T}no" >&6; }
7065 fi
7066
7067
7068
7069 # Extract the first word of "Graphviz", so it can be a program name with args.
7070 set dummy Graphviz; ac_word=$2
7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7074   echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076   case $GRAPHVIZ in
7077   [\\/]* | ?:[\\/]*)
7078   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7079   ;;
7080   *)
7081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7083 do
7084   IFS=$as_save_IFS
7085   test -z "$as_dir" && as_dir=.
7086   for ac_exec_ext in '' $ac_executable_extensions; do
7087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7088     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090     break 2
7091   fi
7092 done
7093 done
7094 IFS=$as_save_IFS
7095
7096   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7097   ;;
7098 esac
7099 fi
7100 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7101 if test -n "$GRAPHVIZ"; then
7102   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7103 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7104 else
7105   { echo "$as_me:$LINENO: result: no" >&5
7106 echo "${ECHO_T}no" >&6; }
7107 fi
7108
7109
7110 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7111
7112 cat >>confdefs.h <<\_ACEOF
7113 #define HAVE_GRAPHVIZ 1
7114 _ACEOF
7115
7116     if test "$llvm_cv_os_type" = "MingW" ; then
7117     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7118   fi
7119
7120 cat >>confdefs.h <<_ACEOF
7121 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7122 _ACEOF
7123
7124 fi
7125 # Extract the first word of "dot", so it can be a program name with args.
7126 set dummy dot; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_path_DOT+set}" = set; then
7130   echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132   case $DOT in
7133   [\\/]* | ?:[\\/]*)
7134   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7135   ;;
7136   *)
7137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7139 do
7140   IFS=$as_save_IFS
7141   test -z "$as_dir" && as_dir=.
7142   for ac_exec_ext in '' $ac_executable_extensions; do
7143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7144     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146     break 2
7147   fi
7148 done
7149 done
7150 IFS=$as_save_IFS
7151
7152   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7153   ;;
7154 esac
7155 fi
7156 DOT=$ac_cv_path_DOT
7157 if test -n "$DOT"; then
7158   { echo "$as_me:$LINENO: result: $DOT" >&5
7159 echo "${ECHO_T}$DOT" >&6; }
7160 else
7161   { echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6; }
7163 fi
7164
7165
7166 if test "$DOT" != "echo dot" ; then
7167
7168 cat >>confdefs.h <<\_ACEOF
7169 #define HAVE_DOT 1
7170 _ACEOF
7171
7172     if test "$llvm_cv_os_type" = "MingW" ; then
7173     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7174   fi
7175
7176 cat >>confdefs.h <<_ACEOF
7177 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7178 _ACEOF
7179
7180 fi
7181 for ac_prog in gv gsview32
7182 do
7183   # Extract the first word of "$ac_prog", so it can be a program name with args.
7184 set dummy $ac_prog; ac_word=$2
7185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7187 if test "${ac_cv_path_GV+set}" = set; then
7188   echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190   case $GV in
7191   [\\/]* | ?:[\\/]*)
7192   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7193   ;;
7194   *)
7195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH
7197 do
7198   IFS=$as_save_IFS
7199   test -z "$as_dir" && as_dir=.
7200   for ac_exec_ext in '' $ac_executable_extensions; do
7201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7202     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204     break 2
7205   fi
7206 done
7207 done
7208 IFS=$as_save_IFS
7209
7210   ;;
7211 esac
7212 fi
7213 GV=$ac_cv_path_GV
7214 if test -n "$GV"; then
7215   { echo "$as_me:$LINENO: result: $GV" >&5
7216 echo "${ECHO_T}$GV" >&6; }
7217 else
7218   { echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6; }
7220 fi
7221
7222
7223   test -n "$GV" && break
7224 done
7225 test -n "$GV" || GV="echo gv"
7226
7227 if test "$GV" != "echo gv" ; then
7228
7229 cat >>confdefs.h <<\_ACEOF
7230 #define HAVE_GV 1
7231 _ACEOF
7232
7233     if test "$llvm_cv_os_type" = "MingW" ; then
7234     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7235   fi
7236
7237 cat >>confdefs.h <<_ACEOF
7238 #define LLVM_PATH_GV "$GV${EXEEXT}"
7239 _ACEOF
7240
7241 fi
7242 # Extract the first word of "dotty", so it can be a program name with args.
7243 set dummy dotty; ac_word=$2
7244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246 if test "${ac_cv_path_DOTTY+set}" = set; then
7247   echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249   case $DOTTY in
7250   [\\/]* | ?:[\\/]*)
7251   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7252   ;;
7253   *)
7254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7256 do
7257   IFS=$as_save_IFS
7258   test -z "$as_dir" && as_dir=.
7259   for ac_exec_ext in '' $ac_executable_extensions; do
7260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7261     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263     break 2
7264   fi
7265 done
7266 done
7267 IFS=$as_save_IFS
7268
7269   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7270   ;;
7271 esac
7272 fi
7273 DOTTY=$ac_cv_path_DOTTY
7274 if test -n "$DOTTY"; then
7275   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7276 echo "${ECHO_T}$DOTTY" >&6; }
7277 else
7278   { echo "$as_me:$LINENO: result: no" >&5
7279 echo "${ECHO_T}no" >&6; }
7280 fi
7281
7282
7283 if test "$DOTTY" != "echo dotty" ; then
7284
7285 cat >>confdefs.h <<\_ACEOF
7286 #define HAVE_DOTTY 1
7287 _ACEOF
7288
7289     if test "$llvm_cv_os_type" = "MingW" ; then
7290     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7291   fi
7292
7293 cat >>confdefs.h <<_ACEOF
7294 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7295 _ACEOF
7296
7297 fi
7298
7299
7300 # Extract the first word of "perl", so it can be a program name with args.
7301 set dummy perl; ac_word=$2
7302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304 if test "${ac_cv_path_PERL+set}" = set; then
7305   echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
7307   case $PERL in
7308   [\\/]* | ?:[\\/]*)
7309   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7310   ;;
7311   *)
7312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315   IFS=$as_save_IFS
7316   test -z "$as_dir" && as_dir=.
7317   for ac_exec_ext in '' $ac_executable_extensions; do
7318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7319     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321     break 2
7322   fi
7323 done
7324 done
7325 IFS=$as_save_IFS
7326
7327   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7328   ;;
7329 esac
7330 fi
7331 PERL=$ac_cv_path_PERL
7332 if test -n "$PERL"; then
7333   { echo "$as_me:$LINENO: result: $PERL" >&5
7334 echo "${ECHO_T}$PERL" >&6; }
7335 else
7336   { echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6; }
7338 fi
7339
7340
7341 if test "$PERL" != "none"; then
7342   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7343 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7344   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7345     { echo "$as_me:$LINENO: result: yes" >&5
7346 echo "${ECHO_T}yes" >&6; }
7347   else
7348     PERL=none
7349     { echo "$as_me:$LINENO: result: not found" >&5
7350 echo "${ECHO_T}not found" >&6; }
7351   fi
7352 fi
7353
7354
7355 if test x"$PERL" = xnone; then
7356    HAVE_PERL=0
7357
7358    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7359 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7360    { (exit 1); exit 1; }; }
7361 else
7362    HAVE_PERL=1
7363
7364 fi
7365
7366 # Find a good install program.  We prefer a C program (faster),
7367 # so one script is as good as another.  But avoid the broken or
7368 # incompatible versions:
7369 # SysV /etc/install, /usr/sbin/install
7370 # SunOS /usr/etc/install
7371 # IRIX /sbin/install
7372 # AIX /bin/install
7373 # AmigaOS /C/install, which installs bootblocks on floppy discs
7374 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7375 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7376 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7377 # OS/2's system install, which has a completely different semantic
7378 # ./install, which can be erroneously created by make from ./install.sh.
7379 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7380 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7381 if test -z "$INSTALL"; then
7382 if test "${ac_cv_path_install+set}" = set; then
7383   echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else
7385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7387 do
7388   IFS=$as_save_IFS
7389   test -z "$as_dir" && as_dir=.
7390   # Account for people who put trailing slashes in PATH elements.
7391 case $as_dir/ in
7392   ./ | .// | /cC/* | \
7393   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7394   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7395   /usr/ucb/* ) ;;
7396   *)
7397     # OSF1 and SCO ODT 3.0 have their own names for install.
7398     # Don't use installbsd from OSF since it installs stuff as root
7399     # by default.
7400     for ac_prog in ginstall scoinst install; do
7401       for ac_exec_ext in '' $ac_executable_extensions; do
7402         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7403           if test $ac_prog = install &&
7404             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7405             # AIX install.  It has an incompatible calling convention.
7406             :
7407           elif test $ac_prog = install &&
7408             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7409             # program-specific install script used by HP pwplus--don't use.
7410             :
7411           else
7412             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7413             break 3
7414           fi
7415         fi
7416       done
7417     done
7418     ;;
7419 esac
7420 done
7421 IFS=$as_save_IFS
7422
7423
7424 fi
7425   if test "${ac_cv_path_install+set}" = set; then
7426     INSTALL=$ac_cv_path_install
7427   else
7428     # As a last resort, use the slow shell script.  Don't cache a
7429     # value for INSTALL within a source directory, because that will
7430     # break other packages using the cache if that directory is
7431     # removed, or if the value is a relative name.
7432     INSTALL=$ac_install_sh
7433   fi
7434 fi
7435 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7436 echo "${ECHO_T}$INSTALL" >&6; }
7437
7438 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7439 # It thinks the first close brace ends the variable substitution.
7440 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7441
7442 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7443
7444 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7445
7446
7447 # Extract the first word of "bzip2", so it can be a program name with args.
7448 set dummy bzip2; ac_word=$2
7449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451 if test "${ac_cv_path_BZIP2+set}" = set; then
7452   echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454   case $BZIP2 in
7455   [\\/]* | ?:[\\/]*)
7456   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7457   ;;
7458   *)
7459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462   IFS=$as_save_IFS
7463   test -z "$as_dir" && as_dir=.
7464   for ac_exec_ext in '' $ac_executable_extensions; do
7465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7466     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468     break 2
7469   fi
7470 done
7471 done
7472 IFS=$as_save_IFS
7473
7474   ;;
7475 esac
7476 fi
7477 BZIP2=$ac_cv_path_BZIP2
7478 if test -n "$BZIP2"; then
7479   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7480 echo "${ECHO_T}$BZIP2" >&6; }
7481 else
7482   { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7484 fi
7485
7486
7487 # Extract the first word of "doxygen", so it can be a program name with args.
7488 set dummy doxygen; ac_word=$2
7489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7491 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7492   echo $ECHO_N "(cached) $ECHO_C" >&6
7493 else
7494   case $DOXYGEN in
7495   [\\/]* | ?:[\\/]*)
7496   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7497   ;;
7498   *)
7499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500 for as_dir in $PATH
7501 do
7502   IFS=$as_save_IFS
7503   test -z "$as_dir" && as_dir=.
7504   for ac_exec_ext in '' $ac_executable_extensions; do
7505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7506     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7508     break 2
7509   fi
7510 done
7511 done
7512 IFS=$as_save_IFS
7513
7514   ;;
7515 esac
7516 fi
7517 DOXYGEN=$ac_cv_path_DOXYGEN
7518 if test -n "$DOXYGEN"; then
7519   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7520 echo "${ECHO_T}$DOXYGEN" >&6; }
7521 else
7522   { echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6; }
7524 fi
7525
7526
7527 # Extract the first word of "groff", so it can be a program name with args.
7528 set dummy groff; ac_word=$2
7529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531 if test "${ac_cv_path_GROFF+set}" = set; then
7532   echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534   case $GROFF in
7535   [\\/]* | ?:[\\/]*)
7536   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7537   ;;
7538   *)
7539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7541 do
7542   IFS=$as_save_IFS
7543   test -z "$as_dir" && as_dir=.
7544   for ac_exec_ext in '' $ac_executable_extensions; do
7545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7546     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7548     break 2
7549   fi
7550 done
7551 done
7552 IFS=$as_save_IFS
7553
7554   ;;
7555 esac
7556 fi
7557 GROFF=$ac_cv_path_GROFF
7558 if test -n "$GROFF"; then
7559   { echo "$as_me:$LINENO: result: $GROFF" >&5
7560 echo "${ECHO_T}$GROFF" >&6; }
7561 else
7562   { echo "$as_me:$LINENO: result: no" >&5
7563 echo "${ECHO_T}no" >&6; }
7564 fi
7565
7566
7567 # Extract the first word of "gzip", so it can be a program name with args.
7568 set dummy gzip; ac_word=$2
7569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7571 if test "${ac_cv_path_GZIP+set}" = set; then
7572   echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574   case $GZIP in
7575   [\\/]* | ?:[\\/]*)
7576   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7577   ;;
7578   *)
7579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 for as_dir in $PATH
7581 do
7582   IFS=$as_save_IFS
7583   test -z "$as_dir" && as_dir=.
7584   for ac_exec_ext in '' $ac_executable_extensions; do
7585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7586     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7588     break 2
7589   fi
7590 done
7591 done
7592 IFS=$as_save_IFS
7593
7594   ;;
7595 esac
7596 fi
7597 GZIP=$ac_cv_path_GZIP
7598 if test -n "$GZIP"; then
7599   { echo "$as_me:$LINENO: result: $GZIP" >&5
7600 echo "${ECHO_T}$GZIP" >&6; }
7601 else
7602   { echo "$as_me:$LINENO: result: no" >&5
7603 echo "${ECHO_T}no" >&6; }
7604 fi
7605
7606
7607 # Extract the first word of "pod2html", so it can be a program name with args.
7608 set dummy pod2html; ac_word=$2
7609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7611 if test "${ac_cv_path_POD2HTML+set}" = set; then
7612   echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614   case $POD2HTML in
7615   [\\/]* | ?:[\\/]*)
7616   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7617   ;;
7618   *)
7619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 for as_dir in $PATH
7621 do
7622   IFS=$as_save_IFS
7623   test -z "$as_dir" && as_dir=.
7624   for ac_exec_ext in '' $ac_executable_extensions; do
7625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7626     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7628     break 2
7629   fi
7630 done
7631 done
7632 IFS=$as_save_IFS
7633
7634   ;;
7635 esac
7636 fi
7637 POD2HTML=$ac_cv_path_POD2HTML
7638 if test -n "$POD2HTML"; then
7639   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7640 echo "${ECHO_T}$POD2HTML" >&6; }
7641 else
7642   { echo "$as_me:$LINENO: result: no" >&5
7643 echo "${ECHO_T}no" >&6; }
7644 fi
7645
7646
7647 # Extract the first word of "pod2man", so it can be a program name with args.
7648 set dummy pod2man; ac_word=$2
7649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7651 if test "${ac_cv_path_POD2MAN+set}" = set; then
7652   echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654   case $POD2MAN in
7655   [\\/]* | ?:[\\/]*)
7656   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7657   ;;
7658   *)
7659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 for as_dir in $PATH
7661 do
7662   IFS=$as_save_IFS
7663   test -z "$as_dir" && as_dir=.
7664   for ac_exec_ext in '' $ac_executable_extensions; do
7665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7666     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7668     break 2
7669   fi
7670 done
7671 done
7672 IFS=$as_save_IFS
7673
7674   ;;
7675 esac
7676 fi
7677 POD2MAN=$ac_cv_path_POD2MAN
7678 if test -n "$POD2MAN"; then
7679   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7680 echo "${ECHO_T}$POD2MAN" >&6; }
7681 else
7682   { echo "$as_me:$LINENO: result: no" >&5
7683 echo "${ECHO_T}no" >&6; }
7684 fi
7685
7686
7687 # Extract the first word of "runtest", so it can be a program name with args.
7688 set dummy runtest; ac_word=$2
7689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7691 if test "${ac_cv_path_RUNTEST+set}" = set; then
7692   echo $ECHO_N "(cached) $ECHO_C" >&6
7693 else
7694   case $RUNTEST in
7695   [\\/]* | ?:[\\/]*)
7696   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7697   ;;
7698   *)
7699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 for as_dir in $PATH
7701 do
7702   IFS=$as_save_IFS
7703   test -z "$as_dir" && as_dir=.
7704   for ac_exec_ext in '' $ac_executable_extensions; do
7705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7706     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708     break 2
7709   fi
7710 done
7711 done
7712 IFS=$as_save_IFS
7713
7714   ;;
7715 esac
7716 fi
7717 RUNTEST=$ac_cv_path_RUNTEST
7718 if test -n "$RUNTEST"; then
7719   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7720 echo "${ECHO_T}$RUNTEST" >&6; }
7721 else
7722   { echo "$as_me:$LINENO: result: no" >&5
7723 echo "${ECHO_T}no" >&6; }
7724 fi
7725
7726
7727
7728 no_itcl=true
7729 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7730 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7731
7732 # Check whether --with-tclinclude was given.
7733 if test "${with_tclinclude+set}" = set; then
7734   withval=$with_tclinclude; with_tclinclude=${withval}
7735 else
7736   with_tclinclude=''
7737 fi
7738
7739 if test "${ac_cv_path_tclsh+set}" = set; then
7740   echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742
7743 if test x"${with_tclinclude}" != x ; then
7744   if test -f ${with_tclinclude}/tclsh ; then
7745     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7746   elif test -f ${with_tclinclude}/src/tclsh ; then
7747     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7748   else
7749     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7750 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7751    { (exit 1); exit 1; }; }
7752   fi
7753 fi
7754
7755 if test x"${ac_cv_path_tclsh}" = x ; then
7756   { echo "$as_me:$LINENO: result: none" >&5
7757 echo "${ECHO_T}none" >&6; }
7758   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
7759 do
7760   # Extract the first word of "$ac_prog", so it can be a program name with args.
7761 set dummy $ac_prog; ac_word=$2
7762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7764 if test "${ac_cv_path_TCLSH+set}" = set; then
7765   echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
7767   case $TCLSH in
7768   [\\/]* | ?:[\\/]*)
7769   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7770   ;;
7771   *)
7772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7774 do
7775   IFS=$as_save_IFS
7776   test -z "$as_dir" && as_dir=.
7777   for ac_exec_ext in '' $ac_executable_extensions; do
7778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7779     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7781     break 2
7782   fi
7783 done
7784 done
7785 IFS=$as_save_IFS
7786
7787   ;;
7788 esac
7789 fi
7790 TCLSH=$ac_cv_path_TCLSH
7791 if test -n "$TCLSH"; then
7792   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7793 echo "${ECHO_T}$TCLSH" >&6; }
7794 else
7795   { echo "$as_me:$LINENO: result: no" >&5
7796 echo "${ECHO_T}no" >&6; }
7797 fi
7798
7799
7800   test -n "$TCLSH" && break
7801 done
7802
7803   if test x"${TCLSH}" = x ; then
7804     ac_cv_path_tclsh='';
7805   else
7806     ac_cv_path_tclsh="${TCLSH}";
7807   fi
7808 else
7809   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7810 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7811   TCLSH="${ac_cv_path_tclsh}"
7812
7813 fi
7814
7815 fi
7816
7817 # Extract the first word of "zip", so it can be a program name with args.
7818 set dummy zip; ac_word=$2
7819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7821 if test "${ac_cv_path_ZIP+set}" = set; then
7822   echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824   case $ZIP in
7825   [\\/]* | ?:[\\/]*)
7826   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7827   ;;
7828   *)
7829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 for as_dir in $PATH
7831 do
7832   IFS=$as_save_IFS
7833   test -z "$as_dir" && as_dir=.
7834   for ac_exec_ext in '' $ac_executable_extensions; do
7835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7836     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7838     break 2
7839   fi
7840 done
7841 done
7842 IFS=$as_save_IFS
7843
7844   ;;
7845 esac
7846 fi
7847 ZIP=$ac_cv_path_ZIP
7848 if test -n "$ZIP"; then
7849   { echo "$as_me:$LINENO: result: $ZIP" >&5
7850 echo "${ECHO_T}$ZIP" >&6; }
7851 else
7852   { echo "$as_me:$LINENO: result: no" >&5
7853 echo "${ECHO_T}no" >&6; }
7854 fi
7855
7856
7857 for ac_prog in ocamlc
7858 do
7859   # Extract the first word of "$ac_prog", so it can be a program name with args.
7860 set dummy $ac_prog; ac_word=$2
7861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7863 if test "${ac_cv_path_OCAMLC+set}" = set; then
7864   echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866   case $OCAMLC in
7867   [\\/]* | ?:[\\/]*)
7868   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7869   ;;
7870   *)
7871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 for as_dir in $PATH
7873 do
7874   IFS=$as_save_IFS
7875   test -z "$as_dir" && as_dir=.
7876   for ac_exec_ext in '' $ac_executable_extensions; do
7877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7878     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7880     break 2
7881   fi
7882 done
7883 done
7884 IFS=$as_save_IFS
7885
7886   ;;
7887 esac
7888 fi
7889 OCAMLC=$ac_cv_path_OCAMLC
7890 if test -n "$OCAMLC"; then
7891   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7892 echo "${ECHO_T}$OCAMLC" >&6; }
7893 else
7894   { echo "$as_me:$LINENO: result: no" >&5
7895 echo "${ECHO_T}no" >&6; }
7896 fi
7897
7898
7899   test -n "$OCAMLC" && break
7900 done
7901
7902 for ac_prog in ocamlopt
7903 do
7904   # Extract the first word of "$ac_prog", so it can be a program name with args.
7905 set dummy $ac_prog; ac_word=$2
7906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7908 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7909   echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911   case $OCAMLOPT in
7912   [\\/]* | ?:[\\/]*)
7913   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7914   ;;
7915   *)
7916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7918 do
7919   IFS=$as_save_IFS
7920   test -z "$as_dir" && as_dir=.
7921   for ac_exec_ext in '' $ac_executable_extensions; do
7922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7923     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7925     break 2
7926   fi
7927 done
7928 done
7929 IFS=$as_save_IFS
7930
7931   ;;
7932 esac
7933 fi
7934 OCAMLOPT=$ac_cv_path_OCAMLOPT
7935 if test -n "$OCAMLOPT"; then
7936   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7937 echo "${ECHO_T}$OCAMLOPT" >&6; }
7938 else
7939   { echo "$as_me:$LINENO: result: no" >&5
7940 echo "${ECHO_T}no" >&6; }
7941 fi
7942
7943
7944   test -n "$OCAMLOPT" && break
7945 done
7946
7947 for ac_prog in ocamldep
7948 do
7949   # Extract the first word of "$ac_prog", so it can be a program name with args.
7950 set dummy $ac_prog; ac_word=$2
7951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7953 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7954   echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956   case $OCAMLDEP in
7957   [\\/]* | ?:[\\/]*)
7958   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7959   ;;
7960   *)
7961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 for as_dir in $PATH
7963 do
7964   IFS=$as_save_IFS
7965   test -z "$as_dir" && as_dir=.
7966   for ac_exec_ext in '' $ac_executable_extensions; do
7967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7968     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7970     break 2
7971   fi
7972 done
7973 done
7974 IFS=$as_save_IFS
7975
7976   ;;
7977 esac
7978 fi
7979 OCAMLDEP=$ac_cv_path_OCAMLDEP
7980 if test -n "$OCAMLDEP"; then
7981   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7982 echo "${ECHO_T}$OCAMLDEP" >&6; }
7983 else
7984   { echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6; }
7986 fi
7987
7988
7989   test -n "$OCAMLDEP" && break
7990 done
7991
7992 for ac_prog in ocamldoc
7993 do
7994   # Extract the first word of "$ac_prog", so it can be a program name with args.
7995 set dummy $ac_prog; ac_word=$2
7996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7998 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7999   echo $ECHO_N "(cached) $ECHO_C" >&6
8000 else
8001   case $OCAMLDOC in
8002   [\\/]* | ?:[\\/]*)
8003   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8004   ;;
8005   *)
8006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 for as_dir in $PATH
8008 do
8009   IFS=$as_save_IFS
8010   test -z "$as_dir" && as_dir=.
8011   for ac_exec_ext in '' $ac_executable_extensions; do
8012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8013     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8015     break 2
8016   fi
8017 done
8018 done
8019 IFS=$as_save_IFS
8020
8021   ;;
8022 esac
8023 fi
8024 OCAMLDOC=$ac_cv_path_OCAMLDOC
8025 if test -n "$OCAMLDOC"; then
8026   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8027 echo "${ECHO_T}$OCAMLDOC" >&6; }
8028 else
8029   { echo "$as_me:$LINENO: result: no" >&5
8030 echo "${ECHO_T}no" >&6; }
8031 fi
8032
8033
8034   test -n "$OCAMLDOC" && break
8035 done
8036
8037 for ac_prog in gas as
8038 do
8039   # Extract the first word of "$ac_prog", so it can be a program name with args.
8040 set dummy $ac_prog; ac_word=$2
8041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8043 if test "${ac_cv_path_GAS+set}" = set; then
8044   echo $ECHO_N "(cached) $ECHO_C" >&6
8045 else
8046   case $GAS in
8047   [\\/]* | ?:[\\/]*)
8048   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8049   ;;
8050   *)
8051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 for as_dir in $PATH
8053 do
8054   IFS=$as_save_IFS
8055   test -z "$as_dir" && as_dir=.
8056   for ac_exec_ext in '' $ac_executable_extensions; do
8057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8058     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8060     break 2
8061   fi
8062 done
8063 done
8064 IFS=$as_save_IFS
8065
8066   ;;
8067 esac
8068 fi
8069 GAS=$ac_cv_path_GAS
8070 if test -n "$GAS"; then
8071   { echo "$as_me:$LINENO: result: $GAS" >&5
8072 echo "${ECHO_T}$GAS" >&6; }
8073 else
8074   { echo "$as_me:$LINENO: result: no" >&5
8075 echo "${ECHO_T}no" >&6; }
8076 fi
8077
8078
8079   test -n "$GAS" && break
8080 done
8081
8082
8083 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8084 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8085 if test "${llvm_cv_link_use_r+set}" = set; then
8086   echo $ECHO_N "(cached) $ECHO_C" >&6
8087 else
8088    ac_ext=c
8089 ac_cpp='$CPP $CPPFLAGS'
8090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8093
8094   oldcflags="$CFLAGS"
8095   CFLAGS="$CFLAGS -Wl,-R."
8096   cat >conftest.$ac_ext <<_ACEOF
8097 /* confdefs.h.  */
8098 _ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h.  */
8102
8103 int
8104 main ()
8105 {
8106 int main() { return 0; }
8107   ;
8108   return 0;
8109 }
8110 _ACEOF
8111 rm -f conftest.$ac_objext conftest$ac_exeext
8112 if { (ac_try="$ac_link"
8113 case "(($ac_try" in
8114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115   *) ac_try_echo=$ac_try;;
8116 esac
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118   (eval "$ac_link") 2>conftest.er1
8119   ac_status=$?
8120   grep -v '^ *+' conftest.er1 >conftest.err
8121   rm -f conftest.er1
8122   cat conftest.err >&5
8123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); } &&
8125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8126   { (case "(($ac_try" in
8127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128   *) ac_try_echo=$ac_try;;
8129 esac
8130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131   (eval "$ac_try") 2>&5
8132   ac_status=$?
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); }; } &&
8135          { ac_try='test -s conftest$ac_exeext'
8136   { (case "(($ac_try" in
8137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138   *) ac_try_echo=$ac_try;;
8139 esac
8140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141   (eval "$ac_try") 2>&5
8142   ac_status=$?
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); }; }; then
8145   llvm_cv_link_use_r=yes
8146 else
8147   echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8149
8150         llvm_cv_link_use_r=no
8151 fi
8152
8153 rm -f core conftest.err conftest.$ac_objext \
8154       conftest$ac_exeext conftest.$ac_ext
8155   CFLAGS="$oldcflags"
8156   ac_ext=c
8157 ac_cpp='$CPP $CPPFLAGS'
8158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8161
8162
8163 fi
8164 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8165 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8166 if test "$llvm_cv_link_use_r" = yes ; then
8167
8168 cat >>confdefs.h <<\_ACEOF
8169 #define HAVE_LINK_R 1
8170 _ACEOF
8171
8172   fi
8173
8174
8175 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8176 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8177 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8178   echo $ECHO_N "(cached) $ECHO_C" >&6
8179 else
8180    ac_ext=c
8181 ac_cpp='$CPP $CPPFLAGS'
8182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8185
8186   oldcflags="$CFLAGS"
8187   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8188   cat >conftest.$ac_ext <<_ACEOF
8189 /* confdefs.h.  */
8190 _ACEOF
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h.  */
8194
8195 int
8196 main ()
8197 {
8198 int main() { return 0; }
8199   ;
8200   return 0;
8201 }
8202 _ACEOF
8203 rm -f conftest.$ac_objext conftest$ac_exeext
8204 if { (ac_try="$ac_link"
8205 case "(($ac_try" in
8206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207   *) ac_try_echo=$ac_try;;
8208 esac
8209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210   (eval "$ac_link") 2>conftest.er1
8211   ac_status=$?
8212   grep -v '^ *+' conftest.er1 >conftest.err
8213   rm -f conftest.er1
8214   cat conftest.err >&5
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); } &&
8217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8218   { (case "(($ac_try" in
8219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220   *) ac_try_echo=$ac_try;;
8221 esac
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223   (eval "$ac_try") 2>&5
8224   ac_status=$?
8225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226   (exit $ac_status); }; } &&
8227          { ac_try='test -s conftest$ac_exeext'
8228   { (case "(($ac_try" in
8229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230   *) ac_try_echo=$ac_try;;
8231 esac
8232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233   (eval "$ac_try") 2>&5
8234   ac_status=$?
8235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236   (exit $ac_status); }; }; then
8237   llvm_cv_link_use_export_dynamic=yes
8238 else
8239   echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8241
8242         llvm_cv_link_use_export_dynamic=no
8243 fi
8244
8245 rm -f core conftest.err conftest.$ac_objext \
8246       conftest$ac_exeext conftest.$ac_ext
8247   CFLAGS="$oldcflags"
8248   ac_ext=c
8249 ac_cpp='$CPP $CPPFLAGS'
8250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8253
8254
8255 fi
8256 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8257 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8258 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8259
8260 cat >>confdefs.h <<\_ACEOF
8261 #define HAVE_LINK_EXPORT_DYNAMIC 1
8262 _ACEOF
8263
8264   fi
8265
8266
8267
8268
8269 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8270 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8271 if test "${ac_cv_c_const+set}" = set; then
8272   echo $ECHO_N "(cached) $ECHO_C" >&6
8273 else
8274   cat >conftest.$ac_ext <<_ACEOF
8275 /* confdefs.h.  */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h.  */
8280
8281 int
8282 main ()
8283 {
8284 /* FIXME: Include the comments suggested by Paul. */
8285 #ifndef __cplusplus
8286   /* Ultrix mips cc rejects this.  */
8287   typedef int charset[2];
8288   const charset x;
8289   /* SunOS 4.1.1 cc rejects this.  */
8290   char const *const *ccp;
8291   char **p;
8292   /* NEC SVR4.0.2 mips cc rejects this.  */
8293   struct point {int x, y;};
8294   static struct point const zero = {0,0};
8295   /* AIX XL C 1.02.0.0 rejects this.
8296      It does not let you subtract one const X* pointer from another in
8297      an arm of an if-expression whose if-part is not a constant
8298      expression */
8299   const char *g = "string";
8300   ccp = &g + (g ? g-g : 0);
8301   /* HPUX 7.0 cc rejects these. */
8302   ++ccp;
8303   p = (char**) ccp;
8304   ccp = (char const *const *) p;
8305   { /* SCO 3.2v4 cc rejects this.  */
8306     char *t;
8307     char const *s = 0 ? (char *) 0 : (char const *) 0;
8308
8309     *t++ = 0;
8310     if (s) return 0;
8311   }
8312   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8313     int x[] = {25, 17};
8314     const int *foo = &x[0];
8315     ++foo;
8316   }
8317   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8318     typedef const int *iptr;
8319     iptr p = 0;
8320     ++p;
8321   }
8322   { /* AIX XL C 1.02.0.0 rejects this saying
8323        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8324     struct s { int j; const int *ap[3]; };
8325     struct s *b; b->j = 5;
8326   }
8327   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8328     const int foo = 10;
8329     if (!foo) return 0;
8330   }
8331   return !x[0] && !zero.x;
8332 #endif
8333
8334   ;
8335   return 0;
8336 }
8337 _ACEOF
8338 rm -f conftest.$ac_objext
8339 if { (ac_try="$ac_compile"
8340 case "(($ac_try" in
8341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342   *) ac_try_echo=$ac_try;;
8343 esac
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345   (eval "$ac_compile") 2>conftest.er1
8346   ac_status=$?
8347   grep -v '^ *+' conftest.er1 >conftest.err
8348   rm -f conftest.er1
8349   cat conftest.err >&5
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); } &&
8352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8353   { (case "(($ac_try" in
8354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355   *) ac_try_echo=$ac_try;;
8356 esac
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358   (eval "$ac_try") 2>&5
8359   ac_status=$?
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); }; } &&
8362          { ac_try='test -s conftest.$ac_objext'
8363   { (case "(($ac_try" in
8364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365   *) ac_try_echo=$ac_try;;
8366 esac
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368   (eval "$ac_try") 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); }; }; then
8372   ac_cv_c_const=yes
8373 else
8374   echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8376
8377         ac_cv_c_const=no
8378 fi
8379
8380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8381 fi
8382 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8383 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8384 if test $ac_cv_c_const = no; then
8385
8386 cat >>confdefs.h <<\_ACEOF
8387 #define const
8388 _ACEOF
8389
8390 fi
8391
8392
8393
8394
8395
8396
8397 ac_header_dirent=no
8398 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8399   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8400 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8401 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8403   echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405   cat >conftest.$ac_ext <<_ACEOF
8406 /* confdefs.h.  */
8407 _ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h.  */
8411 #include <sys/types.h>
8412 #include <$ac_hdr>
8413
8414 int
8415 main ()
8416 {
8417 if ((DIR *) 0)
8418 return 0;
8419   ;
8420   return 0;
8421 }
8422 _ACEOF
8423 rm -f conftest.$ac_objext
8424 if { (ac_try="$ac_compile"
8425 case "(($ac_try" in
8426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427   *) ac_try_echo=$ac_try;;
8428 esac
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430   (eval "$ac_compile") 2>conftest.er1
8431   ac_status=$?
8432   grep -v '^ *+' conftest.er1 >conftest.err
8433   rm -f conftest.er1
8434   cat conftest.err >&5
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); } &&
8437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8438   { (case "(($ac_try" in
8439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440   *) ac_try_echo=$ac_try;;
8441 esac
8442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443   (eval "$ac_try") 2>&5
8444   ac_status=$?
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); }; } &&
8447          { ac_try='test -s conftest.$ac_objext'
8448   { (case "(($ac_try" in
8449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450   *) ac_try_echo=$ac_try;;
8451 esac
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453   (eval "$ac_try") 2>&5
8454   ac_status=$?
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); }; }; then
8457   eval "$as_ac_Header=yes"
8458 else
8459   echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8461
8462         eval "$as_ac_Header=no"
8463 fi
8464
8465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466 fi
8467 ac_res=`eval echo '${'$as_ac_Header'}'`
8468                { echo "$as_me:$LINENO: result: $ac_res" >&5
8469 echo "${ECHO_T}$ac_res" >&6; }
8470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8471   cat >>confdefs.h <<_ACEOF
8472 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8473 _ACEOF
8474
8475 ac_header_dirent=$ac_hdr; break
8476 fi
8477
8478 done
8479 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8480 if test $ac_header_dirent = dirent.h; then
8481   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8482 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8483 if test "${ac_cv_search_opendir+set}" = set; then
8484   echo $ECHO_N "(cached) $ECHO_C" >&6
8485 else
8486   ac_func_search_save_LIBS=$LIBS
8487 cat >conftest.$ac_ext <<_ACEOF
8488 /* confdefs.h.  */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h.  */
8493
8494 /* Override any GCC internal prototype to avoid an error.
8495    Use char because int might match the return type of a GCC
8496    builtin and then its argument prototype would still apply.  */
8497 #ifdef __cplusplus
8498 extern "C"
8499 #endif
8500 char opendir ();
8501 int
8502 main ()
8503 {
8504 return opendir ();
8505   ;
8506   return 0;
8507 }
8508 _ACEOF
8509 for ac_lib in '' dir; do
8510   if test -z "$ac_lib"; then
8511     ac_res="none required"
8512   else
8513     ac_res=-l$ac_lib
8514     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8515   fi
8516   rm -f conftest.$ac_objext conftest$ac_exeext
8517 if { (ac_try="$ac_link"
8518 case "(($ac_try" in
8519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520   *) ac_try_echo=$ac_try;;
8521 esac
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523   (eval "$ac_link") 2>conftest.er1
8524   ac_status=$?
8525   grep -v '^ *+' conftest.er1 >conftest.err
8526   rm -f conftest.er1
8527   cat conftest.err >&5
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); } &&
8530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8531   { (case "(($ac_try" in
8532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533   *) ac_try_echo=$ac_try;;
8534 esac
8535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8536   (eval "$ac_try") 2>&5
8537   ac_status=$?
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); }; } &&
8540          { ac_try='test -s conftest$ac_exeext'
8541   { (case "(($ac_try" in
8542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543   *) ac_try_echo=$ac_try;;
8544 esac
8545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546   (eval "$ac_try") 2>&5
8547   ac_status=$?
8548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549   (exit $ac_status); }; }; then
8550   ac_cv_search_opendir=$ac_res
8551 else
8552   echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8554
8555
8556 fi
8557
8558 rm -f core conftest.err conftest.$ac_objext \
8559       conftest$ac_exeext
8560   if test "${ac_cv_search_opendir+set}" = set; then
8561   break
8562 fi
8563 done
8564 if test "${ac_cv_search_opendir+set}" = set; then
8565   :
8566 else
8567   ac_cv_search_opendir=no
8568 fi
8569 rm conftest.$ac_ext
8570 LIBS=$ac_func_search_save_LIBS
8571 fi
8572 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8573 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8574 ac_res=$ac_cv_search_opendir
8575 if test "$ac_res" != no; then
8576   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8577
8578 fi
8579
8580 else
8581   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8582 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8583 if test "${ac_cv_search_opendir+set}" = set; then
8584   echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586   ac_func_search_save_LIBS=$LIBS
8587 cat >conftest.$ac_ext <<_ACEOF
8588 /* confdefs.h.  */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h.  */
8593
8594 /* Override any GCC internal prototype to avoid an error.
8595    Use char because int might match the return type of a GCC
8596    builtin and then its argument prototype would still apply.  */
8597 #ifdef __cplusplus
8598 extern "C"
8599 #endif
8600 char opendir ();
8601 int
8602 main ()
8603 {
8604 return opendir ();
8605   ;
8606   return 0;
8607 }
8608 _ACEOF
8609 for ac_lib in '' x; do
8610   if test -z "$ac_lib"; then
8611     ac_res="none required"
8612   else
8613     ac_res=-l$ac_lib
8614     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8615   fi
8616   rm -f conftest.$ac_objext conftest$ac_exeext
8617 if { (ac_try="$ac_link"
8618 case "(($ac_try" in
8619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620   *) ac_try_echo=$ac_try;;
8621 esac
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623   (eval "$ac_link") 2>conftest.er1
8624   ac_status=$?
8625   grep -v '^ *+' conftest.er1 >conftest.err
8626   rm -f conftest.er1
8627   cat conftest.err >&5
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); } &&
8630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8631   { (case "(($ac_try" in
8632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633   *) ac_try_echo=$ac_try;;
8634 esac
8635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636   (eval "$ac_try") 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); }; } &&
8640          { ac_try='test -s conftest$ac_exeext'
8641   { (case "(($ac_try" in
8642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643   *) ac_try_echo=$ac_try;;
8644 esac
8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646   (eval "$ac_try") 2>&5
8647   ac_status=$?
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); }; }; then
8650   ac_cv_search_opendir=$ac_res
8651 else
8652   echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8654
8655
8656 fi
8657
8658 rm -f core conftest.err conftest.$ac_objext \
8659       conftest$ac_exeext
8660   if test "${ac_cv_search_opendir+set}" = set; then
8661   break
8662 fi
8663 done
8664 if test "${ac_cv_search_opendir+set}" = set; then
8665   :
8666 else
8667   ac_cv_search_opendir=no
8668 fi
8669 rm conftest.$ac_ext
8670 LIBS=$ac_func_search_save_LIBS
8671 fi
8672 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8673 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8674 ac_res=$ac_cv_search_opendir
8675 if test "$ac_res" != no; then
8676   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8677
8678 fi
8679
8680 fi
8681
8682
8683 for ac_header in dlfcn.h
8684 do
8685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8687   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8690   echo $ECHO_N "(cached) $ECHO_C" >&6
8691 fi
8692 ac_res=`eval echo '${'$as_ac_Header'}'`
8693                { echo "$as_me:$LINENO: result: $ac_res" >&5
8694 echo "${ECHO_T}$ac_res" >&6; }
8695 else
8696   # Is the header compilable?
8697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8699 cat >conftest.$ac_ext <<_ACEOF
8700 /* confdefs.h.  */
8701 _ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h.  */
8705 $ac_includes_default
8706 #include <$ac_header>
8707 _ACEOF
8708 rm -f conftest.$ac_objext
8709 if { (ac_try="$ac_compile"
8710 case "(($ac_try" in
8711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8712   *) ac_try_echo=$ac_try;;
8713 esac
8714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8715   (eval "$ac_compile") 2>conftest.er1
8716   ac_status=$?
8717   grep -v '^ *+' conftest.er1 >conftest.err
8718   rm -f conftest.er1
8719   cat conftest.err >&5
8720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721   (exit $ac_status); } &&
8722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8723   { (case "(($ac_try" in
8724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725   *) ac_try_echo=$ac_try;;
8726 esac
8727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728   (eval "$ac_try") 2>&5
8729   ac_status=$?
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); }; } &&
8732          { ac_try='test -s conftest.$ac_objext'
8733   { (case "(($ac_try" in
8734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735   *) ac_try_echo=$ac_try;;
8736 esac
8737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738   (eval "$ac_try") 2>&5
8739   ac_status=$?
8740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741   (exit $ac_status); }; }; then
8742   ac_header_compiler=yes
8743 else
8744   echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8746
8747         ac_header_compiler=no
8748 fi
8749
8750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8752 echo "${ECHO_T}$ac_header_compiler" >&6; }
8753
8754 # Is the header present?
8755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8757 cat >conftest.$ac_ext <<_ACEOF
8758 /* confdefs.h.  */
8759 _ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h.  */
8763 #include <$ac_header>
8764 _ACEOF
8765 if { (ac_try="$ac_cpp conftest.$ac_ext"
8766 case "(($ac_try" in
8767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768   *) ac_try_echo=$ac_try;;
8769 esac
8770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8772   ac_status=$?
8773   grep -v '^ *+' conftest.er1 >conftest.err
8774   rm -f conftest.er1
8775   cat conftest.err >&5
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); } >/dev/null; then
8778   if test -s conftest.err; then
8779     ac_cpp_err=$ac_c_preproc_warn_flag
8780     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8781   else
8782     ac_cpp_err=
8783   fi
8784 else
8785   ac_cpp_err=yes
8786 fi
8787 if test -z "$ac_cpp_err"; then
8788   ac_header_preproc=yes
8789 else
8790   echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8792
8793   ac_header_preproc=no
8794 fi
8795
8796 rm -f conftest.err conftest.$ac_ext
8797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8798 echo "${ECHO_T}$ac_header_preproc" >&6; }
8799
8800 # So?  What about this header?
8801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8802   yes:no: )
8803     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8807     ac_header_preproc=yes
8808     ;;
8809   no:yes:* )
8810     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8812     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8813 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8814     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8816     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8817 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8820     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8822     ( cat <<\_ASBOX
8823 ## ----------------------------------- ##
8824 ## Report this to llvmbugs@cs.uiuc.edu ##
8825 ## ----------------------------------- ##
8826 _ASBOX
8827      ) | sed "s/^/$as_me: WARNING:     /" >&2
8828     ;;
8829 esac
8830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8833   echo $ECHO_N "(cached) $ECHO_C" >&6
8834 else
8835   eval "$as_ac_Header=\$ac_header_preproc"
8836 fi
8837 ac_res=`eval echo '${'$as_ac_Header'}'`
8838                { echo "$as_me:$LINENO: result: $ac_res" >&5
8839 echo "${ECHO_T}$ac_res" >&6; }
8840
8841 fi
8842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8843   cat >>confdefs.h <<_ACEOF
8844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8845 _ACEOF
8846
8847 fi
8848
8849 done
8850
8851 # Check whether --enable-ltdl-install was given.
8852 if test "${enable_ltdl_install+set}" = set; then
8853   enableval=$enable_ltdl_install;
8854 fi
8855
8856
8857
8858
8859 if test x"${enable_ltdl_install-no}" != xno; then
8860   INSTALL_LTDL_TRUE=
8861   INSTALL_LTDL_FALSE='#'
8862 else
8863   INSTALL_LTDL_TRUE='#'
8864   INSTALL_LTDL_FALSE=
8865 fi
8866
8867
8868
8869 if test x"${enable_ltdl_convenience-no}" != xno; then
8870   CONVENIENCE_LTDL_TRUE=
8871   CONVENIENCE_LTDL_FALSE='#'
8872 else
8873   CONVENIENCE_LTDL_TRUE='#'
8874   CONVENIENCE_LTDL_FALSE=
8875 fi
8876
8877
8878 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8879 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8880 library_names_spec=
8881 libname_spec='lib$name'
8882 soname_spec=
8883 shrext_cmds=".so"
8884 postinstall_cmds=
8885 postuninstall_cmds=
8886 finish_cmds=
8887 finish_eval=
8888 shlibpath_var=
8889 shlibpath_overrides_runpath=unknown
8890 version_type=none
8891 dynamic_linker="$host_os ld.so"
8892 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8893 if test "$GCC" = yes; then
8894   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8895   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8896     # if the path contains ";" then we assume it to be the separator
8897     # otherwise default to the standard path separator (i.e. ":") - it is
8898     # assumed that no part of a normal pathname contains ";" but that should
8899     # okay in the real world where ";" in dirpaths is itself problematic.
8900     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8901   else
8902     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8903   fi
8904 else
8905   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8906 fi
8907 need_lib_prefix=unknown
8908 hardcode_into_libs=no
8909
8910 # when you set need_version to no, make sure it does not cause -set_version
8911 # flags to be left without arguments
8912 need_version=unknown
8913
8914 case $host_os in
8915 aix3*)
8916   version_type=linux
8917   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8918   shlibpath_var=LIBPATH
8919
8920   # AIX 3 has no versioning support, so we append a major version to the name.
8921   soname_spec='${libname}${release}${shared_ext}$major'
8922   ;;
8923
8924 aix4* | aix5*)
8925   version_type=linux
8926   need_lib_prefix=no
8927   need_version=no
8928   hardcode_into_libs=yes
8929   if test "$host_cpu" = ia64; then
8930     # AIX 5 supports IA64
8931     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8932     shlibpath_var=LD_LIBRARY_PATH
8933   else
8934     # With GCC up to 2.95.x, collect2 would create an import file
8935     # for dependence libraries.  The import file would start with
8936     # the line `#! .'.  This would cause the generated library to
8937     # depend on `.', always an invalid library.  This was fixed in
8938     # development snapshots of GCC prior to 3.0.
8939     case $host_os in
8940       aix4 | aix4.[01] | aix4.[01].*)
8941       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8942            echo ' yes '
8943            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8944         :
8945       else
8946         can_build_shared=no
8947       fi
8948       ;;
8949     esac
8950     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8951     # soname into executable. Probably we can add versioning support to
8952     # collect2, so additional links can be useful in future.
8953     if test "$aix_use_runtimelinking" = yes; then
8954       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8955       # instead of lib<name>.a to let people know that these are not
8956       # typical AIX shared libraries.
8957       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958     else
8959       # We preserve .a as extension for shared libraries through AIX4.2
8960       # and later when we are not doing run time linking.
8961       library_names_spec='${libname}${release}.a $libname.a'
8962       soname_spec='${libname}${release}${shared_ext}$major'
8963     fi
8964     shlibpath_var=LIBPATH
8965   fi
8966   ;;
8967
8968 amigaos*)
8969   library_names_spec='$libname.ixlibrary $libname.a'
8970   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8971   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'
8972   ;;
8973
8974 beos*)
8975   library_names_spec='${libname}${shared_ext}'
8976   dynamic_linker="$host_os ld.so"
8977   shlibpath_var=LIBRARY_PATH
8978   ;;
8979
8980 bsdi[45]*)
8981   version_type=linux
8982   need_version=no
8983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8984   soname_spec='${libname}${release}${shared_ext}$major'
8985   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8986   shlibpath_var=LD_LIBRARY_PATH
8987   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8988   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8989   # the default ld.so.conf also contains /usr/contrib/lib and
8990   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8991   # libtool to hard-code these into programs
8992   ;;
8993
8994 cygwin* | mingw* | pw32*)
8995   version_type=windows
8996   shrext_cmds=".dll"
8997   need_version=no
8998   need_lib_prefix=no
8999
9000   case $GCC,$host_os in
9001   yes,cygwin* | yes,mingw* | yes,pw32*)
9002     library_names_spec='$libname.dll.a'
9003     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9004     postinstall_cmds='base_file=`basename \${file}`~
9005       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9006       dldir=$destdir/`dirname \$dlpath`~
9007       test -d \$dldir || mkdir -p \$dldir~
9008       $install_prog $dir/$dlname \$dldir/$dlname~
9009       chmod a+x \$dldir/$dlname'
9010     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9011       dlpath=$dir/\$dldll~
9012        $rm \$dlpath'
9013     shlibpath_overrides_runpath=yes
9014
9015     case $host_os in
9016     cygwin*)
9017       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9018       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9019       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9020       ;;
9021     mingw*)
9022       # MinGW DLLs use traditional 'lib' prefix
9023       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9024       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9025       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9026         # It is most probably a Windows format PATH printed by
9027         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9028         # path with ; separators, and with drive letters. We can handle the
9029         # drive letters (cygwin fileutils understands them), so leave them,
9030         # especially as we might pass files found there to a mingw objdump,
9031         # which wouldn't understand a cygwinified path. Ahh.
9032         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9033       else
9034         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9035       fi
9036       ;;
9037     pw32*)
9038       # pw32 DLLs use 'pw' prefix rather than 'lib'
9039       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9040       ;;
9041     esac
9042     ;;
9043
9044   *)
9045     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9046     ;;
9047   esac
9048   dynamic_linker='Win32 ld.exe'
9049   # FIXME: first we should search . and the directory the executable is in
9050   shlibpath_var=PATH
9051   ;;
9052
9053 darwin* | rhapsody*)
9054   dynamic_linker="$host_os dyld"
9055   version_type=darwin
9056   need_lib_prefix=no
9057   need_version=no
9058   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9059   soname_spec='${libname}${release}${major}$shared_ext'
9060   shlibpath_overrides_runpath=yes
9061   shlibpath_var=DYLD_LIBRARY_PATH
9062   shrext_cmds='.dylib'
9063   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9064   if test "$GCC" = yes; then
9065     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"`
9066   else
9067     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9068   fi
9069   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9070   ;;
9071
9072 dgux*)
9073   version_type=linux
9074   need_lib_prefix=no
9075   need_version=no
9076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9077   soname_spec='${libname}${release}${shared_ext}$major'
9078   shlibpath_var=LD_LIBRARY_PATH
9079   ;;
9080
9081 freebsd1*)
9082   dynamic_linker=no
9083   ;;
9084
9085 kfreebsd*-gnu)
9086   version_type=linux
9087   need_lib_prefix=no
9088   need_version=no
9089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9090   soname_spec='${libname}${release}${shared_ext}$major'
9091   shlibpath_var=LD_LIBRARY_PATH
9092   shlibpath_overrides_runpath=no
9093   hardcode_into_libs=yes
9094   dynamic_linker='GNU ld.so'
9095   ;;
9096
9097 freebsd* | dragonfly*)
9098   # DragonFly does not have aout.  When/if they implement a new
9099   # versioning mechanism, adjust this.
9100   if test -x /usr/bin/objformat; then
9101     objformat=`/usr/bin/objformat`
9102   else
9103     case $host_os in
9104     freebsd[123]*) objformat=aout ;;
9105     *) objformat=elf ;;
9106     esac
9107   fi
9108   version_type=freebsd-$objformat
9109   case $version_type in
9110     freebsd-elf*)
9111       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9112       need_version=no
9113       need_lib_prefix=no
9114       ;;
9115     freebsd-*)
9116       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9117       need_version=yes
9118       ;;
9119   esac
9120   shlibpath_var=LD_LIBRARY_PATH
9121   case $host_os in
9122   freebsd2*)
9123     shlibpath_overrides_runpath=yes
9124     ;;
9125   freebsd3.[01]* | freebsdelf3.[01]*)
9126     shlibpath_overrides_runpath=yes
9127     hardcode_into_libs=yes
9128     ;;
9129   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9130   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9131     shlibpath_overrides_runpath=no
9132     hardcode_into_libs=yes
9133     ;;
9134   freebsd*) # from 4.6 on
9135     shlibpath_overrides_runpath=yes
9136     hardcode_into_libs=yes
9137     ;;
9138   esac
9139   ;;
9140
9141 gnu*)
9142   version_type=linux
9143   need_lib_prefix=no
9144   need_version=no
9145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9146   soname_spec='${libname}${release}${shared_ext}$major'
9147   shlibpath_var=LD_LIBRARY_PATH
9148   hardcode_into_libs=yes
9149   ;;
9150
9151 hpux9* | hpux10* | hpux11*)
9152   # Give a soname corresponding to the major version so that dld.sl refuses to
9153   # link against other versions.
9154   version_type=sunos
9155   need_lib_prefix=no
9156   need_version=no
9157   case $host_cpu in
9158   ia64*)
9159     shrext_cmds='.so'
9160     hardcode_into_libs=yes
9161     dynamic_linker="$host_os dld.so"
9162     shlibpath_var=LD_LIBRARY_PATH
9163     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9164     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9165     soname_spec='${libname}${release}${shared_ext}$major'
9166     if test "X$HPUX_IA64_MODE" = X32; then
9167       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9168     else
9169       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9170     fi
9171     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9172     ;;
9173    hppa*64*)
9174      shrext_cmds='.sl'
9175      hardcode_into_libs=yes
9176      dynamic_linker="$host_os dld.sl"
9177      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9178      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9179      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9180      soname_spec='${libname}${release}${shared_ext}$major'
9181      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9182      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9183      ;;
9184    *)
9185     shrext_cmds='.sl'
9186     dynamic_linker="$host_os dld.sl"
9187     shlibpath_var=SHLIB_PATH
9188     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190     soname_spec='${libname}${release}${shared_ext}$major'
9191     ;;
9192   esac
9193   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9194   postinstall_cmds='chmod 555 $lib'
9195   ;;
9196
9197 interix3*)
9198   version_type=linux
9199   need_lib_prefix=no
9200   need_version=no
9201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9202   soname_spec='${libname}${release}${shared_ext}$major'
9203   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9204   shlibpath_var=LD_LIBRARY_PATH
9205   shlibpath_overrides_runpath=no
9206   hardcode_into_libs=yes
9207   ;;
9208
9209 irix5* | irix6* | nonstopux*)
9210   case $host_os in
9211     nonstopux*) version_type=nonstopux ;;
9212     *)
9213         if test "$lt_cv_prog_gnu_ld" = yes; then
9214                 version_type=linux
9215         else
9216                 version_type=irix
9217         fi ;;
9218   esac
9219   need_lib_prefix=no
9220   need_version=no
9221   soname_spec='${libname}${release}${shared_ext}$major'
9222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9223   case $host_os in
9224   irix5* | nonstopux*)
9225     libsuff= shlibsuff=
9226     ;;
9227   *)
9228     case $LD in # libtool.m4 will add one of these switches to LD
9229     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9230       libsuff= shlibsuff= libmagic=32-bit;;
9231     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9232       libsuff=32 shlibsuff=N32 libmagic=N32;;
9233     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9234       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9235     *) libsuff= shlibsuff= libmagic=never-match;;
9236     esac
9237     ;;
9238   esac
9239   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9240   shlibpath_overrides_runpath=no
9241   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9242   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9243   hardcode_into_libs=yes
9244   ;;
9245
9246 # No shared lib support for Linux oldld, aout, or coff.
9247 linux*oldld* | linux*aout* | linux*coff*)
9248   dynamic_linker=no
9249   ;;
9250
9251 # This must be Linux ELF.
9252 linux*)
9253   version_type=linux
9254   need_lib_prefix=no
9255   need_version=no
9256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9257   soname_spec='${libname}${release}${shared_ext}$major'
9258   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9259   shlibpath_var=LD_LIBRARY_PATH
9260   shlibpath_overrides_runpath=no
9261   # This implies no fast_install, which is unacceptable.
9262   # Some rework will be needed to allow for fast_install
9263   # before this can be enabled.
9264   hardcode_into_libs=yes
9265
9266   # Append ld.so.conf contents to the search path
9267   if test -f /etc/ld.so.conf; then
9268     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' ' '`
9269     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9270   fi
9271
9272   # We used to test for /lib/ld.so.1 and disable shared libraries on
9273   # powerpc, because MkLinux only supported shared libraries with the
9274   # GNU dynamic linker.  Since this was broken with cross compilers,
9275   # most powerpc-linux boxes support dynamic linking these days and
9276   # people can always --disable-shared, the test was removed, and we
9277   # assume the GNU/Linux dynamic linker is in use.
9278   dynamic_linker='GNU/Linux ld.so'
9279   ;;
9280
9281 knetbsd*-gnu)
9282   version_type=linux
9283   need_lib_prefix=no
9284   need_version=no
9285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9286   soname_spec='${libname}${release}${shared_ext}$major'
9287   shlibpath_var=LD_LIBRARY_PATH
9288   shlibpath_overrides_runpath=no
9289   hardcode_into_libs=yes
9290   dynamic_linker='GNU ld.so'
9291   ;;
9292
9293 netbsd*)
9294   version_type=sunos
9295   need_lib_prefix=no
9296   need_version=no
9297   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9298     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9299     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9300     dynamic_linker='NetBSD (a.out) ld.so'
9301   else
9302     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9303     soname_spec='${libname}${release}${shared_ext}$major'
9304     dynamic_linker='NetBSD ld.elf_so'
9305   fi
9306   shlibpath_var=LD_LIBRARY_PATH
9307   shlibpath_overrides_runpath=yes
9308   hardcode_into_libs=yes
9309   ;;
9310
9311 newsos6)
9312   version_type=linux
9313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314   shlibpath_var=LD_LIBRARY_PATH
9315   shlibpath_overrides_runpath=yes
9316   ;;
9317
9318 nto-qnx*)
9319   version_type=linux
9320   need_lib_prefix=no
9321   need_version=no
9322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323   soname_spec='${libname}${release}${shared_ext}$major'
9324   shlibpath_var=LD_LIBRARY_PATH
9325   shlibpath_overrides_runpath=yes
9326   ;;
9327
9328 openbsd*)
9329   version_type=sunos
9330   sys_lib_dlsearch_path_spec="/usr/lib"
9331   need_lib_prefix=no
9332   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9333   case $host_os in
9334     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9335     *)                         need_version=no  ;;
9336   esac
9337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9338   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9339   shlibpath_var=LD_LIBRARY_PATH
9340   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9341     case $host_os in
9342       openbsd2.[89] | openbsd2.[89].*)
9343         shlibpath_overrides_runpath=no
9344         ;;
9345       *)
9346         shlibpath_overrides_runpath=yes
9347         ;;
9348       esac
9349   else
9350     shlibpath_overrides_runpath=yes
9351   fi
9352   ;;
9353
9354 os2*)
9355   libname_spec='$name'
9356   shrext_cmds=".dll"
9357   need_lib_prefix=no
9358   library_names_spec='$libname${shared_ext} $libname.a'
9359   dynamic_linker='OS/2 ld.exe'
9360   shlibpath_var=LIBPATH
9361   ;;
9362
9363 osf3* | osf4* | osf5*)
9364   version_type=osf
9365   need_lib_prefix=no
9366   need_version=no
9367   soname_spec='${libname}${release}${shared_ext}$major'
9368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369   shlibpath_var=LD_LIBRARY_PATH
9370   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9371   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9372   ;;
9373
9374 solaris*)
9375   version_type=linux
9376   need_lib_prefix=no
9377   need_version=no
9378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9379   soname_spec='${libname}${release}${shared_ext}$major'
9380   shlibpath_var=LD_LIBRARY_PATH
9381   shlibpath_overrides_runpath=yes
9382   hardcode_into_libs=yes
9383   # ldd complains unless libraries are executable
9384   postinstall_cmds='chmod +x $lib'
9385   ;;
9386
9387 sunos4*)
9388   version_type=sunos
9389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9390   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9391   shlibpath_var=LD_LIBRARY_PATH
9392   shlibpath_overrides_runpath=yes
9393   if test "$with_gnu_ld" = yes; then
9394     need_lib_prefix=no
9395   fi
9396   need_version=yes
9397   ;;
9398
9399 sysv4 | sysv4.3*)
9400   version_type=linux
9401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9402   soname_spec='${libname}${release}${shared_ext}$major'
9403   shlibpath_var=LD_LIBRARY_PATH
9404   case $host_vendor in
9405     sni)
9406       shlibpath_overrides_runpath=no
9407       need_lib_prefix=no
9408       export_dynamic_flag_spec='${wl}-Blargedynsym'
9409       runpath_var=LD_RUN_PATH
9410       ;;
9411     siemens)
9412       need_lib_prefix=no
9413       ;;
9414     motorola)
9415       need_lib_prefix=no
9416       need_version=no
9417       shlibpath_overrides_runpath=no
9418       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9419       ;;
9420   esac
9421   ;;
9422
9423 sysv4*MP*)
9424   if test -d /usr/nec ;then
9425     version_type=linux
9426     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9427     soname_spec='$libname${shared_ext}.$major'
9428     shlibpath_var=LD_LIBRARY_PATH
9429   fi
9430   ;;
9431
9432 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9433   version_type=freebsd-elf
9434   need_lib_prefix=no
9435   need_version=no
9436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9437   soname_spec='${libname}${release}${shared_ext}$major'
9438   shlibpath_var=LD_LIBRARY_PATH
9439   hardcode_into_libs=yes
9440   if test "$with_gnu_ld" = yes; then
9441     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9442     shlibpath_overrides_runpath=no
9443   else
9444     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9445     shlibpath_overrides_runpath=yes
9446     case $host_os in
9447       sco3.2v5*)
9448         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9449         ;;
9450     esac
9451   fi
9452   sys_lib_dlsearch_path_spec='/usr/lib'
9453   ;;
9454
9455 uts4*)
9456   version_type=linux
9457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458   soname_spec='${libname}${release}${shared_ext}$major'
9459   shlibpath_var=LD_LIBRARY_PATH
9460   ;;
9461
9462 *)
9463   dynamic_linker=no
9464   ;;
9465 esac
9466 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9467 echo "${ECHO_T}$dynamic_linker" >&6; }
9468 test "$dynamic_linker" = no && can_build_shared=no
9469
9470 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9471 if test "$GCC" = yes; then
9472   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9473 fi
9474
9475
9476 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9477 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9478 if test "${libltdl_cv_shlibext+set}" = set; then
9479   echo $ECHO_N "(cached) $ECHO_C" >&6
9480 else
9481
9482 module=yes
9483 eval libltdl_cv_shlibext=$shrext_cmds
9484
9485 fi
9486 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9487 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9488 if test -n "$libltdl_cv_shlibext"; then
9489
9490 cat >>confdefs.h <<_ACEOF
9491 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9492 _ACEOF
9493
9494 fi
9495
9496
9497 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9498 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9499 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9500   echo $ECHO_N "(cached) $ECHO_C" >&6
9501 else
9502   libltdl_cv_shlibpath_var="$shlibpath_var"
9503 fi
9504 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9505 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9506 if test -n "$libltdl_cv_shlibpath_var"; then
9507
9508 cat >>confdefs.h <<_ACEOF
9509 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9510 _ACEOF
9511
9512 fi
9513
9514
9515 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9516 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9517 if test "${libltdl_cv_sys_search_path+set}" = set; then
9518   echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9521 fi
9522 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9523 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9524 if test -n "$libltdl_cv_sys_search_path"; then
9525   sys_search_path=
9526   for dir in $libltdl_cv_sys_search_path; do
9527     if test -z "$sys_search_path"; then
9528       sys_search_path="$dir"
9529     else
9530       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9531     fi
9532   done
9533
9534 cat >>confdefs.h <<_ACEOF
9535 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9536 _ACEOF
9537
9538 fi
9539
9540 { echo "$as_me:$LINENO: checking for objdir" >&5
9541 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9542 if test "${libltdl_cv_objdir+set}" = set; then
9543   echo $ECHO_N "(cached) $ECHO_C" >&6
9544 else
9545   libltdl_cv_objdir="$objdir"
9546   if test -n "$objdir"; then
9547     :
9548   else
9549     rm -f .libs 2>/dev/null
9550     mkdir .libs 2>/dev/null
9551     if test -d .libs; then
9552       libltdl_cv_objdir=.libs
9553     else
9554       # MS-DOS does not allow filenames that begin with a dot.
9555       libltdl_cv_objdir=_libs
9556     fi
9557   rmdir .libs 2>/dev/null
9558   fi
9559
9560 fi
9561 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9562 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9563
9564 cat >>confdefs.h <<_ACEOF
9565 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9566 _ACEOF
9567
9568
9569
9570
9571
9572
9573 # Check for command to grab the raw symbol name followed by C symbol from nm.
9574 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9575 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9576 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9577   echo $ECHO_N "(cached) $ECHO_C" >&6
9578 else
9579
9580 # These are sane defaults that work on at least a few old systems.
9581 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9582
9583 # Character class describing NM global symbol codes.
9584 symcode='[BCDEGRST]'
9585
9586 # Regexp to match symbols that can be accessed directly from C.
9587 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9588
9589 # Transform an extracted symbol line into a proper C declaration
9590 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9591
9592 # Transform an extracted symbol line into symbol name and symbol address
9593 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'"
9594
9595 # Define system-specific variables.
9596 case $host_os in
9597 aix*)
9598   symcode='[BCDT]'
9599   ;;
9600 cygwin* | mingw* | pw32*)
9601   symcode='[ABCDGISTW]'
9602   ;;
9603 hpux*) # Its linker distinguishes data from code symbols
9604   if test "$host_cpu" = ia64; then
9605     symcode='[ABCDEGRST]'
9606   fi
9607   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9608   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'"
9609   ;;
9610 linux*)
9611   if test "$host_cpu" = ia64; then
9612     symcode='[ABCDGIRSTW]'
9613     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9614     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9615   fi
9616   ;;
9617 irix* | nonstopux*)
9618   symcode='[BCDEGRST]'
9619   ;;
9620 osf*)
9621   symcode='[BCDEGQRST]'
9622   ;;
9623 solaris*)
9624   symcode='[BDRT]'
9625   ;;
9626 sco3.2v5*)
9627   symcode='[DT]'
9628   ;;
9629 sysv4.2uw2*)
9630   symcode='[DT]'
9631   ;;
9632 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9633   symcode='[ABDT]'
9634   ;;
9635 sysv4)
9636   symcode='[DFNSTU]'
9637   ;;
9638 esac
9639
9640 # Handle CRLF in mingw tool chain
9641 opt_cr=
9642 case $build_os in
9643 mingw*)
9644   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9645   ;;
9646 esac
9647
9648 # If we're using GNU nm, then use its standard symbol codes.
9649 case `$NM -V 2>&1` in
9650 *GNU* | *'with BFD'*)
9651   symcode='[ABCDGIRSTW]' ;;
9652 esac
9653
9654 # Try without a prefix undercore, then with it.
9655 for ac_symprfx in "" "_"; do
9656
9657   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9658   symxfrm="\\1 $ac_symprfx\\2 \\2"
9659
9660   # Write the raw and C identifiers.
9661   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9662
9663   # Check to see that the pipe works correctly.
9664   pipe_works=no
9665
9666   rm -f conftest*
9667   cat > conftest.$ac_ext <<EOF
9668 #ifdef __cplusplus
9669 extern "C" {
9670 #endif
9671 char nm_test_var;
9672 void nm_test_func(){}
9673 #ifdef __cplusplus
9674 }
9675 #endif
9676 int main(){nm_test_var='a';nm_test_func();return(0);}
9677 EOF
9678
9679   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9680   (eval $ac_compile) 2>&5
9681   ac_status=$?
9682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683   (exit $ac_status); }; then
9684     # Now try to grab the symbols.
9685     nlist=conftest.nm
9686     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9687   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9688   ac_status=$?
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); } && test -s "$nlist"; then
9691       # Try sorting and uniquifying the output.
9692       if sort "$nlist" | uniq > "$nlist"T; then
9693         mv -f "$nlist"T "$nlist"
9694       else
9695         rm -f "$nlist"T
9696       fi
9697
9698       # Make sure that we snagged all the symbols we need.
9699       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9700         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9701           cat <<EOF > conftest.$ac_ext
9702 #ifdef __cplusplus
9703 extern "C" {
9704 #endif
9705
9706 EOF
9707           # Now generate the symbol file.
9708           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9709
9710           cat <<EOF >> conftest.$ac_ext
9711 #if defined (__STDC__) && __STDC__
9712 # define lt_ptr_t void *
9713 #else
9714 # define lt_ptr_t char *
9715 # define const
9716 #endif
9717
9718 /* The mapping between symbol names and symbols. */
9719 const struct {
9720   const char *name;
9721   lt_ptr_t address;
9722 }
9723 lt_preloaded_symbols[] =
9724 {
9725 EOF
9726           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9727           cat <<\EOF >> conftest.$ac_ext
9728   {0, (lt_ptr_t) 0}
9729 };
9730
9731 #ifdef __cplusplus
9732 }
9733 #endif
9734 EOF
9735           # Now try linking the two files.
9736           mv conftest.$ac_objext conftstm.$ac_objext
9737           lt_save_LIBS="$LIBS"
9738           lt_save_CFLAGS="$CFLAGS"
9739           LIBS="conftstm.$ac_objext"
9740           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9741           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9742   (eval $ac_link) 2>&5
9743   ac_status=$?
9744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9746             pipe_works=yes
9747           fi
9748           LIBS="$lt_save_LIBS"
9749           CFLAGS="$lt_save_CFLAGS"
9750         else
9751           echo "cannot find nm_test_func in $nlist" >&5
9752         fi
9753       else
9754         echo "cannot find nm_test_var in $nlist" >&5
9755       fi
9756     else
9757       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9758     fi
9759   else
9760     echo "$progname: failed program was:" >&5
9761     cat conftest.$ac_ext >&5
9762   fi
9763   rm -f conftest* conftst*
9764
9765   # Do not use the global_symbol_pipe unless it works.
9766   if test "$pipe_works" = yes; then
9767     break
9768   else
9769     lt_cv_sys_global_symbol_pipe=
9770   fi
9771 done
9772
9773 fi
9774
9775 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9776   lt_cv_sys_global_symbol_to_cdecl=
9777 fi
9778 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9779   { echo "$as_me:$LINENO: result: failed" >&5
9780 echo "${ECHO_T}failed" >&6; }
9781 else
9782   { echo "$as_me:$LINENO: result: ok" >&5
9783 echo "${ECHO_T}ok" >&6; }
9784 fi
9785
9786
9787 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9788 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9789 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9790   echo $ECHO_N "(cached) $ECHO_C" >&6
9791 else
9792   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9793     libltdl_cv_preloaded_symbols=yes
9794   else
9795     libltdl_cv_preloaded_symbols=no
9796   fi
9797
9798 fi
9799 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9800 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9801 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9802
9803 cat >>confdefs.h <<\_ACEOF
9804 #define HAVE_PRELOADED_SYMBOLS 1
9805 _ACEOF
9806
9807 fi
9808
9809 LIBADD_DL=
9810
9811 ac_ext=c
9812 ac_cpp='$CPP $CPPFLAGS'
9813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9816
9817
9818 { echo "$as_me:$LINENO: checking for shl_load" >&5
9819 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9820 if test "${ac_cv_func_shl_load+set}" = set; then
9821   echo $ECHO_N "(cached) $ECHO_C" >&6
9822 else
9823   cat >conftest.$ac_ext <<_ACEOF
9824 /* confdefs.h.  */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h.  */
9829 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9831 #define shl_load innocuous_shl_load
9832
9833 /* System header to define __stub macros and hopefully few prototypes,
9834     which can conflict with char shl_load (); below.
9835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9836     <limits.h> exists even on freestanding compilers.  */
9837
9838 #ifdef __STDC__
9839 # include <limits.h>
9840 #else
9841 # include <assert.h>
9842 #endif
9843
9844 #undef shl_load
9845
9846 /* Override any GCC internal prototype to avoid an error.
9847    Use char because int might match the return type of a GCC
9848    builtin and then its argument prototype would still apply.  */
9849 #ifdef __cplusplus
9850 extern "C"
9851 #endif
9852 char shl_load ();
9853 /* The GNU C library defines this for functions which it implements
9854     to always fail with ENOSYS.  Some functions are actually named
9855     something starting with __ and the normal name is an alias.  */
9856 #if defined __stub_shl_load || defined __stub___shl_load
9857 choke me
9858 #endif
9859
9860 int
9861 main ()
9862 {
9863 return shl_load ();
9864   ;
9865   return 0;
9866 }
9867 _ACEOF
9868 rm -f conftest.$ac_objext conftest$ac_exeext
9869 if { (ac_try="$ac_link"
9870 case "(($ac_try" in
9871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872   *) ac_try_echo=$ac_try;;
9873 esac
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875   (eval "$ac_link") 2>conftest.er1
9876   ac_status=$?
9877   grep -v '^ *+' conftest.er1 >conftest.err
9878   rm -f conftest.er1
9879   cat conftest.err >&5
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); } &&
9882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9883   { (case "(($ac_try" in
9884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885   *) ac_try_echo=$ac_try;;
9886 esac
9887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888   (eval "$ac_try") 2>&5
9889   ac_status=$?
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); }; } &&
9892          { ac_try='test -s conftest$ac_exeext'
9893   { (case "(($ac_try" in
9894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895   *) ac_try_echo=$ac_try;;
9896 esac
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898   (eval "$ac_try") 2>&5
9899   ac_status=$?
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); }; }; then
9902   ac_cv_func_shl_load=yes
9903 else
9904   echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9906
9907         ac_cv_func_shl_load=no
9908 fi
9909
9910 rm -f core conftest.err conftest.$ac_objext \
9911       conftest$ac_exeext conftest.$ac_ext
9912 fi
9913 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9914 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9915 if test $ac_cv_func_shl_load = yes; then
9916
9917 cat >>confdefs.h <<\_ACEOF
9918 #define HAVE_SHL_LOAD 1
9919 _ACEOF
9920
9921 else
9922   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9923 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9924 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9925   echo $ECHO_N "(cached) $ECHO_C" >&6
9926 else
9927   ac_check_lib_save_LIBS=$LIBS
9928 LIBS="-ldld  $LIBS"
9929 cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h.  */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h.  */
9935
9936 /* Override any GCC internal prototype to avoid an error.
9937    Use char because int might match the return type of a GCC
9938    builtin and then its argument prototype would still apply.  */
9939 #ifdef __cplusplus
9940 extern "C"
9941 #endif
9942 char shl_load ();
9943 int
9944 main ()
9945 {
9946 return shl_load ();
9947   ;
9948   return 0;
9949 }
9950 _ACEOF
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (ac_try="$ac_link"
9953 case "(($ac_try" in
9954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955   *) ac_try_echo=$ac_try;;
9956 esac
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958   (eval "$ac_link") 2>conftest.er1
9959   ac_status=$?
9960   grep -v '^ *+' conftest.er1 >conftest.err
9961   rm -f conftest.er1
9962   cat conftest.err >&5
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); } &&
9965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9966   { (case "(($ac_try" in
9967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968   *) ac_try_echo=$ac_try;;
9969 esac
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971   (eval "$ac_try") 2>&5
9972   ac_status=$?
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); }; } &&
9975          { ac_try='test -s conftest$ac_exeext'
9976   { (case "(($ac_try" in
9977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978   *) ac_try_echo=$ac_try;;
9979 esac
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981   (eval "$ac_try") 2>&5
9982   ac_status=$?
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); }; }; then
9985   ac_cv_lib_dld_shl_load=yes
9986 else
9987   echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9989
9990         ac_cv_lib_dld_shl_load=no
9991 fi
9992
9993 rm -f core conftest.err conftest.$ac_objext \
9994       conftest$ac_exeext conftest.$ac_ext
9995 LIBS=$ac_check_lib_save_LIBS
9996 fi
9997 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9998 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9999 if test $ac_cv_lib_dld_shl_load = yes; then
10000
10001 cat >>confdefs.h <<\_ACEOF
10002 #define HAVE_SHL_LOAD 1
10003 _ACEOF
10004
10005         LIBADD_DL="$LIBADD_DL -ldld"
10006 else
10007   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10008 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10009 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10010   echo $ECHO_N "(cached) $ECHO_C" >&6
10011 else
10012   ac_check_lib_save_LIBS=$LIBS
10013 LIBS="-ldl  $LIBS"
10014 cat >conftest.$ac_ext <<_ACEOF
10015 /* confdefs.h.  */
10016 _ACEOF
10017 cat confdefs.h >>conftest.$ac_ext
10018 cat >>conftest.$ac_ext <<_ACEOF
10019 /* end confdefs.h.  */
10020
10021 /* Override any GCC internal prototype to avoid an error.
10022    Use char because int might match the return type of a GCC
10023    builtin and then its argument prototype would still apply.  */
10024 #ifdef __cplusplus
10025 extern "C"
10026 #endif
10027 char dlopen ();
10028 int
10029 main ()
10030 {
10031 return dlopen ();
10032   ;
10033   return 0;
10034 }
10035 _ACEOF
10036 rm -f conftest.$ac_objext conftest$ac_exeext
10037 if { (ac_try="$ac_link"
10038 case "(($ac_try" in
10039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040   *) ac_try_echo=$ac_try;;
10041 esac
10042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043   (eval "$ac_link") 2>conftest.er1
10044   ac_status=$?
10045   grep -v '^ *+' conftest.er1 >conftest.err
10046   rm -f conftest.er1
10047   cat conftest.err >&5
10048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); } &&
10050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10051   { (case "(($ac_try" in
10052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053   *) ac_try_echo=$ac_try;;
10054 esac
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056   (eval "$ac_try") 2>&5
10057   ac_status=$?
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); }; } &&
10060          { ac_try='test -s conftest$ac_exeext'
10061   { (case "(($ac_try" in
10062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063   *) ac_try_echo=$ac_try;;
10064 esac
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066   (eval "$ac_try") 2>&5
10067   ac_status=$?
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); }; }; then
10070   ac_cv_lib_dl_dlopen=yes
10071 else
10072   echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.$ac_ext >&5
10074
10075         ac_cv_lib_dl_dlopen=no
10076 fi
10077
10078 rm -f core conftest.err conftest.$ac_objext \
10079       conftest$ac_exeext conftest.$ac_ext
10080 LIBS=$ac_check_lib_save_LIBS
10081 fi
10082 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10083 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10084 if test $ac_cv_lib_dl_dlopen = yes; then
10085
10086 cat >>confdefs.h <<\_ACEOF
10087 #define HAVE_LIBDL 1
10088 _ACEOF
10089
10090                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10091 else
10092   cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h.  */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h.  */
10098 #if HAVE_DLFCN_H
10099 #  include <dlfcn.h>
10100 #endif
10101
10102 int
10103 main ()
10104 {
10105 dlopen(0, 0);
10106   ;
10107   return 0;
10108 }
10109 _ACEOF
10110 rm -f conftest.$ac_objext conftest$ac_exeext
10111 if { (ac_try="$ac_link"
10112 case "(($ac_try" in
10113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114   *) ac_try_echo=$ac_try;;
10115 esac
10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117   (eval "$ac_link") 2>conftest.er1
10118   ac_status=$?
10119   grep -v '^ *+' conftest.er1 >conftest.err
10120   rm -f conftest.er1
10121   cat conftest.err >&5
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); } &&
10124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10125   { (case "(($ac_try" in
10126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127   *) ac_try_echo=$ac_try;;
10128 esac
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130   (eval "$ac_try") 2>&5
10131   ac_status=$?
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); }; } &&
10134          { ac_try='test -s conftest$ac_exeext'
10135   { (case "(($ac_try" in
10136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137   *) ac_try_echo=$ac_try;;
10138 esac
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140   (eval "$ac_try") 2>&5
10141   ac_status=$?
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); }; }; then
10144
10145 cat >>confdefs.h <<\_ACEOF
10146 #define HAVE_LIBDL 1
10147 _ACEOF
10148  libltdl_cv_func_dlopen="yes"
10149 else
10150   echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10152
10153         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10154 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10155 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10156   echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158   ac_check_lib_save_LIBS=$LIBS
10159 LIBS="-lsvld  $LIBS"
10160 cat >conftest.$ac_ext <<_ACEOF
10161 /* confdefs.h.  */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h.  */
10166
10167 /* Override any GCC internal prototype to avoid an error.
10168    Use char because int might match the return type of a GCC
10169    builtin and then its argument prototype would still apply.  */
10170 #ifdef __cplusplus
10171 extern "C"
10172 #endif
10173 char dlopen ();
10174 int
10175 main ()
10176 {
10177 return dlopen ();
10178   ;
10179   return 0;
10180 }
10181 _ACEOF
10182 rm -f conftest.$ac_objext conftest$ac_exeext
10183 if { (ac_try="$ac_link"
10184 case "(($ac_try" in
10185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186   *) ac_try_echo=$ac_try;;
10187 esac
10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189   (eval "$ac_link") 2>conftest.er1
10190   ac_status=$?
10191   grep -v '^ *+' conftest.er1 >conftest.err
10192   rm -f conftest.er1
10193   cat conftest.err >&5
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); } &&
10196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10197   { (case "(($ac_try" in
10198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199   *) ac_try_echo=$ac_try;;
10200 esac
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202   (eval "$ac_try") 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); }; } &&
10206          { ac_try='test -s conftest$ac_exeext'
10207   { (case "(($ac_try" in
10208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209   *) ac_try_echo=$ac_try;;
10210 esac
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212   (eval "$ac_try") 2>&5
10213   ac_status=$?
10214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215   (exit $ac_status); }; }; then
10216   ac_cv_lib_svld_dlopen=yes
10217 else
10218   echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.$ac_ext >&5
10220
10221         ac_cv_lib_svld_dlopen=no
10222 fi
10223
10224 rm -f core conftest.err conftest.$ac_objext \
10225       conftest$ac_exeext conftest.$ac_ext
10226 LIBS=$ac_check_lib_save_LIBS
10227 fi
10228 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10229 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10230 if test $ac_cv_lib_svld_dlopen = yes; then
10231
10232 cat >>confdefs.h <<\_ACEOF
10233 #define HAVE_LIBDL 1
10234 _ACEOF
10235
10236                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10237 else
10238   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10239 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10240 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10241   echo $ECHO_N "(cached) $ECHO_C" >&6
10242 else
10243   ac_check_lib_save_LIBS=$LIBS
10244 LIBS="-ldld  $LIBS"
10245 cat >conftest.$ac_ext <<_ACEOF
10246 /* confdefs.h.  */
10247 _ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h.  */
10251
10252 /* Override any GCC internal prototype to avoid an error.
10253    Use char because int might match the return type of a GCC
10254    builtin and then its argument prototype would still apply.  */
10255 #ifdef __cplusplus
10256 extern "C"
10257 #endif
10258 char dld_link ();
10259 int
10260 main ()
10261 {
10262 return dld_link ();
10263   ;
10264   return 0;
10265 }
10266 _ACEOF
10267 rm -f conftest.$ac_objext conftest$ac_exeext
10268 if { (ac_try="$ac_link"
10269 case "(($ac_try" in
10270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271   *) ac_try_echo=$ac_try;;
10272 esac
10273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10274   (eval "$ac_link") 2>conftest.er1
10275   ac_status=$?
10276   grep -v '^ *+' conftest.er1 >conftest.err
10277   rm -f conftest.er1
10278   cat conftest.err >&5
10279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280   (exit $ac_status); } &&
10281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10282   { (case "(($ac_try" in
10283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284   *) ac_try_echo=$ac_try;;
10285 esac
10286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287   (eval "$ac_try") 2>&5
10288   ac_status=$?
10289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290   (exit $ac_status); }; } &&
10291          { ac_try='test -s conftest$ac_exeext'
10292   { (case "(($ac_try" in
10293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294   *) ac_try_echo=$ac_try;;
10295 esac
10296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297   (eval "$ac_try") 2>&5
10298   ac_status=$?
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); }; }; then
10301   ac_cv_lib_dld_dld_link=yes
10302 else
10303   echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10305
10306         ac_cv_lib_dld_dld_link=no
10307 fi
10308
10309 rm -f core conftest.err conftest.$ac_objext \
10310       conftest$ac_exeext conftest.$ac_ext
10311 LIBS=$ac_check_lib_save_LIBS
10312 fi
10313 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10314 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10315 if test $ac_cv_lib_dld_dld_link = yes; then
10316
10317 cat >>confdefs.h <<\_ACEOF
10318 #define HAVE_DLD 1
10319 _ACEOF
10320
10321                 LIBADD_DL="$LIBADD_DL -ldld"
10322 else
10323   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10324 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10325 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10326   echo $ECHO_N "(cached) $ECHO_C" >&6
10327 else
10328   cat >conftest.$ac_ext <<_ACEOF
10329 /* confdefs.h.  */
10330 _ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h.  */
10334 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10336 #define _dyld_func_lookup innocuous__dyld_func_lookup
10337
10338 /* System header to define __stub macros and hopefully few prototypes,
10339     which can conflict with char _dyld_func_lookup (); below.
10340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10341     <limits.h> exists even on freestanding compilers.  */
10342
10343 #ifdef __STDC__
10344 # include <limits.h>
10345 #else
10346 # include <assert.h>
10347 #endif
10348
10349 #undef _dyld_func_lookup
10350
10351 /* Override any GCC internal prototype to avoid an error.
10352    Use char because int might match the return type of a GCC
10353    builtin and then its argument prototype would still apply.  */
10354 #ifdef __cplusplus
10355 extern "C"
10356 #endif
10357 char _dyld_func_lookup ();
10358 /* The GNU C library defines this for functions which it implements
10359     to always fail with ENOSYS.  Some functions are actually named
10360     something starting with __ and the normal name is an alias.  */
10361 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10362 choke me
10363 #endif
10364
10365 int
10366 main ()
10367 {
10368 return _dyld_func_lookup ();
10369   ;
10370   return 0;
10371 }
10372 _ACEOF
10373 rm -f conftest.$ac_objext conftest$ac_exeext
10374 if { (ac_try="$ac_link"
10375 case "(($ac_try" in
10376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377   *) ac_try_echo=$ac_try;;
10378 esac
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380   (eval "$ac_link") 2>conftest.er1
10381   ac_status=$?
10382   grep -v '^ *+' conftest.er1 >conftest.err
10383   rm -f conftest.er1
10384   cat conftest.err >&5
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); } &&
10387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10388   { (case "(($ac_try" in
10389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390   *) ac_try_echo=$ac_try;;
10391 esac
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393   (eval "$ac_try") 2>&5
10394   ac_status=$?
10395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396   (exit $ac_status); }; } &&
10397          { ac_try='test -s conftest$ac_exeext'
10398   { (case "(($ac_try" in
10399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400   *) ac_try_echo=$ac_try;;
10401 esac
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403   (eval "$ac_try") 2>&5
10404   ac_status=$?
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); }; }; then
10407   ac_cv_func__dyld_func_lookup=yes
10408 else
10409   echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10411
10412         ac_cv_func__dyld_func_lookup=no
10413 fi
10414
10415 rm -f core conftest.err conftest.$ac_objext \
10416       conftest$ac_exeext conftest.$ac_ext
10417 fi
10418 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10419 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10420 if test $ac_cv_func__dyld_func_lookup = yes; then
10421
10422 cat >>confdefs.h <<\_ACEOF
10423 #define HAVE_DYLD 1
10424 _ACEOF
10425
10426 fi
10427
10428
10429 fi
10430
10431
10432 fi
10433
10434
10435 fi
10436
10437 rm -f core conftest.err conftest.$ac_objext \
10438       conftest$ac_exeext conftest.$ac_ext
10439
10440 fi
10441
10442
10443 fi
10444
10445
10446 fi
10447
10448
10449 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10450 then
10451   lt_save_LIBS="$LIBS"
10452   LIBS="$LIBS $LIBADD_DL"
10453
10454 for ac_func in dlerror
10455 do
10456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10460   echo $ECHO_N "(cached) $ECHO_C" >&6
10461 else
10462   cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h.  */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h.  */
10468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10470 #define $ac_func innocuous_$ac_func
10471
10472 /* System header to define __stub macros and hopefully few prototypes,
10473     which can conflict with char $ac_func (); below.
10474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10475     <limits.h> exists even on freestanding compilers.  */
10476
10477 #ifdef __STDC__
10478 # include <limits.h>
10479 #else
10480 # include <assert.h>
10481 #endif
10482
10483 #undef $ac_func
10484
10485 /* Override any GCC internal prototype to avoid an error.
10486    Use char because int might match the return type of a GCC
10487    builtin and then its argument prototype would still apply.  */
10488 #ifdef __cplusplus
10489 extern "C"
10490 #endif
10491 char $ac_func ();
10492 /* The GNU C library defines this for functions which it implements
10493     to always fail with ENOSYS.  Some functions are actually named
10494     something starting with __ and the normal name is an alias.  */
10495 #if defined __stub_$ac_func || defined __stub___$ac_func
10496 choke me
10497 #endif
10498
10499 int
10500 main ()
10501 {
10502 return $ac_func ();
10503   ;
10504   return 0;
10505 }
10506 _ACEOF
10507 rm -f conftest.$ac_objext conftest$ac_exeext
10508 if { (ac_try="$ac_link"
10509 case "(($ac_try" in
10510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511   *) ac_try_echo=$ac_try;;
10512 esac
10513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514   (eval "$ac_link") 2>conftest.er1
10515   ac_status=$?
10516   grep -v '^ *+' conftest.er1 >conftest.err
10517   rm -f conftest.er1
10518   cat conftest.err >&5
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); } &&
10521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10522   { (case "(($ac_try" in
10523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524   *) ac_try_echo=$ac_try;;
10525 esac
10526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527   (eval "$ac_try") 2>&5
10528   ac_status=$?
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); }; } &&
10531          { ac_try='test -s conftest$ac_exeext'
10532   { (case "(($ac_try" in
10533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534   *) ac_try_echo=$ac_try;;
10535 esac
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537   (eval "$ac_try") 2>&5
10538   ac_status=$?
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); }; }; then
10541   eval "$as_ac_var=yes"
10542 else
10543   echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10545
10546         eval "$as_ac_var=no"
10547 fi
10548
10549 rm -f core conftest.err conftest.$ac_objext \
10550       conftest$ac_exeext conftest.$ac_ext
10551 fi
10552 ac_res=`eval echo '${'$as_ac_var'}'`
10553                { echo "$as_me:$LINENO: result: $ac_res" >&5
10554 echo "${ECHO_T}$ac_res" >&6; }
10555 if test `eval echo '${'$as_ac_var'}'` = yes; then
10556   cat >>confdefs.h <<_ACEOF
10557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10558 _ACEOF
10559
10560 fi
10561 done
10562
10563   LIBS="$lt_save_LIBS"
10564 fi
10565 ac_ext=c
10566 ac_cpp='$CPP $CPPFLAGS'
10567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10570
10571
10572
10573 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10574 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10575 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10576   echo $ECHO_N "(cached) $ECHO_C" >&6
10577 else
10578   ac_cv_sys_symbol_underscore=no
10579   cat > conftest.$ac_ext <<EOF
10580 void nm_test_func(){}
10581 int main(){nm_test_func;return 0;}
10582 EOF
10583   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10584   (eval $ac_compile) 2>&5
10585   ac_status=$?
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); }; then
10588     # Now try to grab the symbols.
10589     ac_nlist=conftest.nm
10590     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10591   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10592   ac_status=$?
10593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594   (exit $ac_status); } && test -s "$ac_nlist"; then
10595       # See whether the symbols have a leading underscore.
10596       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10597         ac_cv_sys_symbol_underscore=yes
10598       else
10599         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10600           :
10601         else
10602           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10603         fi
10604       fi
10605     else
10606       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10607     fi
10608   else
10609     echo "configure: failed program was:" >&5
10610     cat conftest.c >&5
10611   fi
10612   rm -rf conftest*
10613
10614 fi
10615 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10616 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10617
10618
10619 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10620   if test x"$libltdl_cv_func_dlopen" = xyes ||
10621      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10622         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10623 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10624 if test "${libltdl_cv_need_uscore+set}" = set; then
10625   echo $ECHO_N "(cached) $ECHO_C" >&6
10626 else
10627   libltdl_cv_need_uscore=unknown
10628           save_LIBS="$LIBS"
10629           LIBS="$LIBS $LIBADD_DL"
10630           if test "$cross_compiling" = yes; then :
10631   libltdl_cv_need_uscore=cross
10632 else
10633   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10634   lt_status=$lt_dlunknown
10635   cat > conftest.$ac_ext <<EOF
10636 #line 10636 "configure"
10637 #include "confdefs.h"
10638
10639 #if HAVE_DLFCN_H
10640 #include <dlfcn.h>
10641 #endif
10642
10643 #include <stdio.h>
10644
10645 #ifdef RTLD_GLOBAL
10646 #  define LT_DLGLOBAL           RTLD_GLOBAL
10647 #else
10648 #  ifdef DL_GLOBAL
10649 #    define LT_DLGLOBAL         DL_GLOBAL
10650 #  else
10651 #    define LT_DLGLOBAL         0
10652 #  endif
10653 #endif
10654
10655 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10656    find out it does not work in some platform. */
10657 #ifndef LT_DLLAZY_OR_NOW
10658 #  ifdef RTLD_LAZY
10659 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10660 #  else
10661 #    ifdef DL_LAZY
10662 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10663 #    else
10664 #      ifdef RTLD_NOW
10665 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10666 #      else
10667 #        ifdef DL_NOW
10668 #          define LT_DLLAZY_OR_NOW      DL_NOW
10669 #        else
10670 #          define LT_DLLAZY_OR_NOW      0
10671 #        endif
10672 #      endif
10673 #    endif
10674 #  endif
10675 #endif
10676
10677 #ifdef __cplusplus
10678 extern "C" void exit (int);
10679 #endif
10680
10681 void fnord() { int i=42;}
10682 int main ()
10683 {
10684   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10685   int status = $lt_dlunknown;
10686
10687   if (self)
10688     {
10689       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10690       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10691       /* dlclose (self); */
10692     }
10693   else
10694     puts (dlerror ());
10695
10696     exit (status);
10697 }
10698 EOF
10699   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10700   (eval $ac_link) 2>&5
10701   ac_status=$?
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10704     (./conftest; exit; ) >&5 2>/dev/null
10705     lt_status=$?
10706     case x$lt_status in
10707       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10708       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10709       x$lt_dlunknown|x*)  ;;
10710     esac
10711   else :
10712     # compilation failed
10713
10714   fi
10715 fi
10716 rm -fr conftest*
10717
10718           LIBS="$save_LIBS"
10719
10720 fi
10721 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10722 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10723   fi
10724 fi
10725
10726 if test x"$libltdl_cv_need_uscore" = xyes; then
10727
10728 cat >>confdefs.h <<\_ACEOF
10729 #define NEED_USCORE 1
10730 _ACEOF
10731
10732 fi
10733
10734
10735 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10736 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10737 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10738   echo $ECHO_N "(cached) $ECHO_C" >&6
10739 else
10740   # PORTME does your system automatically load deplibs for dlopen?
10741   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10742   # For now, we just catch OSes we know something about -- in the
10743   # future, we'll try test this programmatically.
10744   libltdl_cv_sys_dlopen_deplibs=unknown
10745   case "$host_os" in
10746   aix3*|aix4.1.*|aix4.2.*)
10747     # Unknown whether this is true for these versions of AIX, but
10748     # we want this `case' here to explicitly catch those versions.
10749     libltdl_cv_sys_dlopen_deplibs=unknown
10750     ;;
10751   aix[45]*)
10752     libltdl_cv_sys_dlopen_deplibs=yes
10753     ;;
10754   darwin*)
10755     # Assuming the user has installed a libdl from somewhere, this is true
10756     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10757     libltdl_cv_sys_dlopen_deplibs=yes
10758     ;;
10759   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10760     # GNU and its variants, using gnu ld.so (Glibc)
10761     libltdl_cv_sys_dlopen_deplibs=yes
10762     ;;
10763   hpux10*|hpux11*)
10764     libltdl_cv_sys_dlopen_deplibs=yes
10765     ;;
10766   interix*)
10767     libltdl_cv_sys_dlopen_deplibs=yes
10768     ;;
10769   irix[12345]*|irix6.[01]*)
10770     # Catch all versions of IRIX before 6.2, and indicate that we don't
10771     # know how it worked for any of those versions.
10772     libltdl_cv_sys_dlopen_deplibs=unknown
10773     ;;
10774   irix*)
10775     # The case above catches anything before 6.2, and it's known that
10776     # at 6.2 and later dlopen does load deplibs.
10777     libltdl_cv_sys_dlopen_deplibs=yes
10778     ;;
10779   netbsd*)
10780     libltdl_cv_sys_dlopen_deplibs=yes
10781     ;;
10782   openbsd*)
10783     libltdl_cv_sys_dlopen_deplibs=yes
10784     ;;
10785   osf[1234]*)
10786     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10787     # it did *not* use an RPATH in a shared library to find objects the
10788     # library depends on, so we explictly say `no'.
10789     libltdl_cv_sys_dlopen_deplibs=no
10790     ;;
10791   osf5.0|osf5.0a|osf5.1)
10792     # dlopen *does* load deplibs and with the right loader patch applied
10793     # it even uses RPATH in a shared library to search for shared objects
10794     # that the library depends on, but there's no easy way to know if that
10795     # patch is installed.  Since this is the case, all we can really
10796     # say is unknown -- it depends on the patch being installed.  If
10797     # it is, this changes to `yes'.  Without it, it would be `no'.
10798     libltdl_cv_sys_dlopen_deplibs=unknown
10799     ;;
10800   osf*)
10801     # the two cases above should catch all versions of osf <= 5.1.  Read
10802     # the comments above for what we know about them.
10803     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10804     # is used to find them so we can finally say `yes'.
10805     libltdl_cv_sys_dlopen_deplibs=yes
10806     ;;
10807   solaris*)
10808     libltdl_cv_sys_dlopen_deplibs=yes
10809     ;;
10810   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10811     libltdl_cv_sys_dlopen_deplibs=yes
10812     ;;
10813   esac
10814
10815 fi
10816 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10817 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10818 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10819
10820 cat >>confdefs.h <<\_ACEOF
10821 #define LTDL_DLOPEN_DEPLIBS 1
10822 _ACEOF
10823
10824 fi
10825
10826
10827 for ac_header in argz.h
10828 do
10829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10831   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10834   echo $ECHO_N "(cached) $ECHO_C" >&6
10835 fi
10836 ac_res=`eval echo '${'$as_ac_Header'}'`
10837                { echo "$as_me:$LINENO: result: $ac_res" >&5
10838 echo "${ECHO_T}$ac_res" >&6; }
10839 else
10840   # Is the header compilable?
10841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10843 cat >conftest.$ac_ext <<_ACEOF
10844 /* confdefs.h.  */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h.  */
10849 $ac_includes_default
10850 #include <$ac_header>
10851 _ACEOF
10852 rm -f conftest.$ac_objext
10853 if { (ac_try="$ac_compile"
10854 case "(($ac_try" in
10855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856   *) ac_try_echo=$ac_try;;
10857 esac
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859   (eval "$ac_compile") 2>conftest.er1
10860   ac_status=$?
10861   grep -v '^ *+' conftest.er1 >conftest.err
10862   rm -f conftest.er1
10863   cat conftest.err >&5
10864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865   (exit $ac_status); } &&
10866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10867   { (case "(($ac_try" in
10868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869   *) ac_try_echo=$ac_try;;
10870 esac
10871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872   (eval "$ac_try") 2>&5
10873   ac_status=$?
10874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875   (exit $ac_status); }; } &&
10876          { ac_try='test -s conftest.$ac_objext'
10877   { (case "(($ac_try" in
10878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879   *) ac_try_echo=$ac_try;;
10880 esac
10881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882   (eval "$ac_try") 2>&5
10883   ac_status=$?
10884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885   (exit $ac_status); }; }; then
10886   ac_header_compiler=yes
10887 else
10888   echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10890
10891         ac_header_compiler=no
10892 fi
10893
10894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10896 echo "${ECHO_T}$ac_header_compiler" >&6; }
10897
10898 # Is the header present?
10899 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10901 cat >conftest.$ac_ext <<_ACEOF
10902 /* confdefs.h.  */
10903 _ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h.  */
10907 #include <$ac_header>
10908 _ACEOF
10909 if { (ac_try="$ac_cpp conftest.$ac_ext"
10910 case "(($ac_try" in
10911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912   *) ac_try_echo=$ac_try;;
10913 esac
10914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10916   ac_status=$?
10917   grep -v '^ *+' conftest.er1 >conftest.err
10918   rm -f conftest.er1
10919   cat conftest.err >&5
10920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921   (exit $ac_status); } >/dev/null; then
10922   if test -s conftest.err; then
10923     ac_cpp_err=$ac_c_preproc_warn_flag
10924     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10925   else
10926     ac_cpp_err=
10927   fi
10928 else
10929   ac_cpp_err=yes
10930 fi
10931 if test -z "$ac_cpp_err"; then
10932   ac_header_preproc=yes
10933 else
10934   echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10936
10937   ac_header_preproc=no
10938 fi
10939
10940 rm -f conftest.err conftest.$ac_ext
10941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10942 echo "${ECHO_T}$ac_header_preproc" >&6; }
10943
10944 # So?  What about this header?
10945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10946   yes:no: )
10947     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10949     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10951     ac_header_preproc=yes
10952     ;;
10953   no:yes:* )
10954     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10956     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10957 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10958     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10960     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10961 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10964     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10966     ( cat <<\_ASBOX
10967 ## ----------------------------------- ##
10968 ## Report this to llvmbugs@cs.uiuc.edu ##
10969 ## ----------------------------------- ##
10970 _ASBOX
10971      ) | sed "s/^/$as_me: WARNING:     /" >&2
10972     ;;
10973 esac
10974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10977   echo $ECHO_N "(cached) $ECHO_C" >&6
10978 else
10979   eval "$as_ac_Header=\$ac_header_preproc"
10980 fi
10981 ac_res=`eval echo '${'$as_ac_Header'}'`
10982                { echo "$as_me:$LINENO: result: $ac_res" >&5
10983 echo "${ECHO_T}$ac_res" >&6; }
10984
10985 fi
10986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10987   cat >>confdefs.h <<_ACEOF
10988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10989 _ACEOF
10990
10991 fi
10992
10993 done
10994
10995
10996 { echo "$as_me:$LINENO: checking for error_t" >&5
10997 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10998 if test "${ac_cv_type_error_t+set}" = set; then
10999   echo $ECHO_N "(cached) $ECHO_C" >&6
11000 else
11001   cat >conftest.$ac_ext <<_ACEOF
11002 /* confdefs.h.  */
11003 _ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h.  */
11007 #if HAVE_ARGZ_H
11008 #  include <argz.h>
11009 #endif
11010
11011 typedef error_t ac__type_new_;
11012 int
11013 main ()
11014 {
11015 if ((ac__type_new_ *) 0)
11016   return 0;
11017 if (sizeof (ac__type_new_))
11018   return 0;
11019   ;
11020   return 0;
11021 }
11022 _ACEOF
11023 rm -f conftest.$ac_objext
11024 if { (ac_try="$ac_compile"
11025 case "(($ac_try" in
11026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027   *) ac_try_echo=$ac_try;;
11028 esac
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030   (eval "$ac_compile") 2>conftest.er1
11031   ac_status=$?
11032   grep -v '^ *+' conftest.er1 >conftest.err
11033   rm -f conftest.er1
11034   cat conftest.err >&5
11035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); } &&
11037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11038   { (case "(($ac_try" in
11039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040   *) ac_try_echo=$ac_try;;
11041 esac
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043   (eval "$ac_try") 2>&5
11044   ac_status=$?
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); }; } &&
11047          { ac_try='test -s conftest.$ac_objext'
11048   { (case "(($ac_try" in
11049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050   *) ac_try_echo=$ac_try;;
11051 esac
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053   (eval "$ac_try") 2>&5
11054   ac_status=$?
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); }; }; then
11057   ac_cv_type_error_t=yes
11058 else
11059   echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11061
11062         ac_cv_type_error_t=no
11063 fi
11064
11065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11066 fi
11067 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11068 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11069 if test $ac_cv_type_error_t = yes; then
11070
11071 cat >>confdefs.h <<_ACEOF
11072 #define HAVE_ERROR_T 1
11073 _ACEOF
11074
11075
11076 else
11077
11078 cat >>confdefs.h <<\_ACEOF
11079 #define error_t int
11080 _ACEOF
11081
11082 fi
11083
11084
11085
11086
11087
11088
11089
11090 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11091 do
11092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11096   echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098   cat >conftest.$ac_ext <<_ACEOF
11099 /* confdefs.h.  */
11100 _ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h.  */
11104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11105    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11106 #define $ac_func innocuous_$ac_func
11107
11108 /* System header to define __stub macros and hopefully few prototypes,
11109     which can conflict with char $ac_func (); below.
11110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11111     <limits.h> exists even on freestanding compilers.  */
11112
11113 #ifdef __STDC__
11114 # include <limits.h>
11115 #else
11116 # include <assert.h>
11117 #endif
11118
11119 #undef $ac_func
11120
11121 /* Override any GCC internal prototype to avoid an error.
11122    Use char because int might match the return type of a GCC
11123    builtin and then its argument prototype would still apply.  */
11124 #ifdef __cplusplus
11125 extern "C"
11126 #endif
11127 char $ac_func ();
11128 /* The GNU C library defines this for functions which it implements
11129     to always fail with ENOSYS.  Some functions are actually named
11130     something starting with __ and the normal name is an alias.  */
11131 #if defined __stub_$ac_func || defined __stub___$ac_func
11132 choke me
11133 #endif
11134
11135 int
11136 main ()
11137 {
11138 return $ac_func ();
11139   ;
11140   return 0;
11141 }
11142 _ACEOF
11143 rm -f conftest.$ac_objext conftest$ac_exeext
11144 if { (ac_try="$ac_link"
11145 case "(($ac_try" in
11146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147   *) ac_try_echo=$ac_try;;
11148 esac
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150   (eval "$ac_link") 2>conftest.er1
11151   ac_status=$?
11152   grep -v '^ *+' conftest.er1 >conftest.err
11153   rm -f conftest.er1
11154   cat conftest.err >&5
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); } &&
11157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11158   { (case "(($ac_try" in
11159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160   *) ac_try_echo=$ac_try;;
11161 esac
11162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163   (eval "$ac_try") 2>&5
11164   ac_status=$?
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); }; } &&
11167          { ac_try='test -s conftest$ac_exeext'
11168   { (case "(($ac_try" in
11169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170   *) ac_try_echo=$ac_try;;
11171 esac
11172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173   (eval "$ac_try") 2>&5
11174   ac_status=$?
11175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176   (exit $ac_status); }; }; then
11177   eval "$as_ac_var=yes"
11178 else
11179   echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11181
11182         eval "$as_ac_var=no"
11183 fi
11184
11185 rm -f core conftest.err conftest.$ac_objext \
11186       conftest$ac_exeext conftest.$ac_ext
11187 fi
11188 ac_res=`eval echo '${'$as_ac_var'}'`
11189                { echo "$as_me:$LINENO: result: $ac_res" >&5
11190 echo "${ECHO_T}$ac_res" >&6; }
11191 if test `eval echo '${'$as_ac_var'}'` = yes; then
11192   cat >>confdefs.h <<_ACEOF
11193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11194 _ACEOF
11195
11196 fi
11197 done
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11227                   stdio.h unistd.h
11228 do
11229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234   echo $ECHO_N "(cached) $ECHO_C" >&6
11235 fi
11236 ac_res=`eval echo '${'$as_ac_Header'}'`
11237                { echo "$as_me:$LINENO: result: $ac_res" >&5
11238 echo "${ECHO_T}$ac_res" >&6; }
11239 else
11240   # Is the header compilable?
11241 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11243 cat >conftest.$ac_ext <<_ACEOF
11244 /* confdefs.h.  */
11245 _ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h.  */
11249 $ac_includes_default
11250 #include <$ac_header>
11251 _ACEOF
11252 rm -f conftest.$ac_objext
11253 if { (ac_try="$ac_compile"
11254 case "(($ac_try" in
11255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256   *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259   (eval "$ac_compile") 2>conftest.er1
11260   ac_status=$?
11261   grep -v '^ *+' conftest.er1 >conftest.err
11262   rm -f conftest.er1
11263   cat conftest.err >&5
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); } &&
11266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267   { (case "(($ac_try" in
11268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269   *) ac_try_echo=$ac_try;;
11270 esac
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272   (eval "$ac_try") 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; } &&
11276          { ac_try='test -s conftest.$ac_objext'
11277   { (case "(($ac_try" in
11278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279   *) ac_try_echo=$ac_try;;
11280 esac
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282   (eval "$ac_try") 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); }; }; then
11286   ac_header_compiler=yes
11287 else
11288   echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291         ac_header_compiler=no
11292 fi
11293
11294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11296 echo "${ECHO_T}$ac_header_compiler" >&6; }
11297
11298 # Is the header present?
11299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11301 cat >conftest.$ac_ext <<_ACEOF
11302 /* confdefs.h.  */
11303 _ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h.  */
11307 #include <$ac_header>
11308 _ACEOF
11309 if { (ac_try="$ac_cpp conftest.$ac_ext"
11310 case "(($ac_try" in
11311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312   *) ac_try_echo=$ac_try;;
11313 esac
11314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11316   ac_status=$?
11317   grep -v '^ *+' conftest.er1 >conftest.err
11318   rm -f conftest.er1
11319   cat conftest.err >&5
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); } >/dev/null; then
11322   if test -s conftest.err; then
11323     ac_cpp_err=$ac_c_preproc_warn_flag
11324     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11325   else
11326     ac_cpp_err=
11327   fi
11328 else
11329   ac_cpp_err=yes
11330 fi
11331 if test -z "$ac_cpp_err"; then
11332   ac_header_preproc=yes
11333 else
11334   echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11336
11337   ac_header_preproc=no
11338 fi
11339
11340 rm -f conftest.err conftest.$ac_ext
11341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11342 echo "${ECHO_T}$ac_header_preproc" >&6; }
11343
11344 # So?  What about this header?
11345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11346   yes:no: )
11347     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11351     ac_header_preproc=yes
11352     ;;
11353   no:yes:* )
11354     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11356     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11357 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11358     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11360     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11361 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11364     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11366     ( cat <<\_ASBOX
11367 ## ----------------------------------- ##
11368 ## Report this to llvmbugs@cs.uiuc.edu ##
11369 ## ----------------------------------- ##
11370 _ASBOX
11371      ) | sed "s/^/$as_me: WARNING:     /" >&2
11372     ;;
11373 esac
11374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11377   echo $ECHO_N "(cached) $ECHO_C" >&6
11378 else
11379   eval "$as_ac_Header=\$ac_header_preproc"
11380 fi
11381 ac_res=`eval echo '${'$as_ac_Header'}'`
11382                { echo "$as_me:$LINENO: result: $ac_res" >&5
11383 echo "${ECHO_T}$ac_res" >&6; }
11384
11385 fi
11386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11387   cat >>confdefs.h <<_ACEOF
11388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11389 _ACEOF
11390
11391 fi
11392
11393 done
11394
11395
11396
11397
11398
11399 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11400 do
11401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11406   echo $ECHO_N "(cached) $ECHO_C" >&6
11407 fi
11408 ac_res=`eval echo '${'$as_ac_Header'}'`
11409                { echo "$as_me:$LINENO: result: $ac_res" >&5
11410 echo "${ECHO_T}$ac_res" >&6; }
11411 else
11412   # Is the header compilable?
11413 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h.  */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h.  */
11421 $ac_includes_default
11422 #include <$ac_header>
11423 _ACEOF
11424 rm -f conftest.$ac_objext
11425 if { (ac_try="$ac_compile"
11426 case "(($ac_try" in
11427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428   *) ac_try_echo=$ac_try;;
11429 esac
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431   (eval "$ac_compile") 2>conftest.er1
11432   ac_status=$?
11433   grep -v '^ *+' conftest.er1 >conftest.err
11434   rm -f conftest.er1
11435   cat conftest.err >&5
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); } &&
11438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11439   { (case "(($ac_try" in
11440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441   *) ac_try_echo=$ac_try;;
11442 esac
11443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444   (eval "$ac_try") 2>&5
11445   ac_status=$?
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); }; } &&
11448          { ac_try='test -s conftest.$ac_objext'
11449   { (case "(($ac_try" in
11450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451   *) ac_try_echo=$ac_try;;
11452 esac
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454   (eval "$ac_try") 2>&5
11455   ac_status=$?
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); }; }; then
11458   ac_header_compiler=yes
11459 else
11460   echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11462
11463         ac_header_compiler=no
11464 fi
11465
11466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11468 echo "${ECHO_T}$ac_header_compiler" >&6; }
11469
11470 # Is the header present?
11471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11473 cat >conftest.$ac_ext <<_ACEOF
11474 /* confdefs.h.  */
11475 _ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h.  */
11479 #include <$ac_header>
11480 _ACEOF
11481 if { (ac_try="$ac_cpp conftest.$ac_ext"
11482 case "(($ac_try" in
11483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484   *) ac_try_echo=$ac_try;;
11485 esac
11486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11488   ac_status=$?
11489   grep -v '^ *+' conftest.er1 >conftest.err
11490   rm -f conftest.er1
11491   cat conftest.err >&5
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); } >/dev/null; then
11494   if test -s conftest.err; then
11495     ac_cpp_err=$ac_c_preproc_warn_flag
11496     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11497   else
11498     ac_cpp_err=
11499   fi
11500 else
11501   ac_cpp_err=yes
11502 fi
11503 if test -z "$ac_cpp_err"; then
11504   ac_header_preproc=yes
11505 else
11506   echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509   ac_header_preproc=no
11510 fi
11511
11512 rm -f conftest.err conftest.$ac_ext
11513 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11514 echo "${ECHO_T}$ac_header_preproc" >&6; }
11515
11516 # So?  What about this header?
11517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11518   yes:no: )
11519     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11523     ac_header_preproc=yes
11524     ;;
11525   no:yes:* )
11526     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11528     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11529 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11530     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11532     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11533 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11536     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11538     ( cat <<\_ASBOX
11539 ## ----------------------------------- ##
11540 ## Report this to llvmbugs@cs.uiuc.edu ##
11541 ## ----------------------------------- ##
11542 _ASBOX
11543      ) | sed "s/^/$as_me: WARNING:     /" >&2
11544     ;;
11545 esac
11546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11549   echo $ECHO_N "(cached) $ECHO_C" >&6
11550 else
11551   eval "$as_ac_Header=\$ac_header_preproc"
11552 fi
11553 ac_res=`eval echo '${'$as_ac_Header'}'`
11554                { echo "$as_me:$LINENO: result: $ac_res" >&5
11555 echo "${ECHO_T}$ac_res" >&6; }
11556
11557 fi
11558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11559   cat >>confdefs.h <<_ACEOF
11560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11561 _ACEOF
11562
11563 fi
11564
11565 done
11566
11567
11568
11569 for ac_header in string.h strings.h
11570 do
11571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11573   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576   echo $ECHO_N "(cached) $ECHO_C" >&6
11577 fi
11578 ac_res=`eval echo '${'$as_ac_Header'}'`
11579                { echo "$as_me:$LINENO: result: $ac_res" >&5
11580 echo "${ECHO_T}$ac_res" >&6; }
11581 else
11582   # Is the header compilable?
11583 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11585 cat >conftest.$ac_ext <<_ACEOF
11586 /* confdefs.h.  */
11587 _ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h.  */
11591 $ac_includes_default
11592 #include <$ac_header>
11593 _ACEOF
11594 rm -f conftest.$ac_objext
11595 if { (ac_try="$ac_compile"
11596 case "(($ac_try" in
11597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598   *) ac_try_echo=$ac_try;;
11599 esac
11600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601   (eval "$ac_compile") 2>conftest.er1
11602   ac_status=$?
11603   grep -v '^ *+' conftest.er1 >conftest.err
11604   rm -f conftest.er1
11605   cat conftest.err >&5
11606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607   (exit $ac_status); } &&
11608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11609   { (case "(($ac_try" in
11610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611   *) ac_try_echo=$ac_try;;
11612 esac
11613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614   (eval "$ac_try") 2>&5
11615   ac_status=$?
11616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); }; } &&
11618          { ac_try='test -s conftest.$ac_objext'
11619   { (case "(($ac_try" in
11620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621   *) ac_try_echo=$ac_try;;
11622 esac
11623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624   (eval "$ac_try") 2>&5
11625   ac_status=$?
11626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627   (exit $ac_status); }; }; then
11628   ac_header_compiler=yes
11629 else
11630   echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11632
11633         ac_header_compiler=no
11634 fi
11635
11636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11637 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11638 echo "${ECHO_T}$ac_header_compiler" >&6; }
11639
11640 # Is the header present?
11641 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11643 cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h.  */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h.  */
11649 #include <$ac_header>
11650 _ACEOF
11651 if { (ac_try="$ac_cpp conftest.$ac_ext"
11652 case "(($ac_try" in
11653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654   *) ac_try_echo=$ac_try;;
11655 esac
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11658   ac_status=$?
11659   grep -v '^ *+' conftest.er1 >conftest.err
11660   rm -f conftest.er1
11661   cat conftest.err >&5
11662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663   (exit $ac_status); } >/dev/null; then
11664   if test -s conftest.err; then
11665     ac_cpp_err=$ac_c_preproc_warn_flag
11666     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11667   else
11668     ac_cpp_err=
11669   fi
11670 else
11671   ac_cpp_err=yes
11672 fi
11673 if test -z "$ac_cpp_err"; then
11674   ac_header_preproc=yes
11675 else
11676   echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11678
11679   ac_header_preproc=no
11680 fi
11681
11682 rm -f conftest.err conftest.$ac_ext
11683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11684 echo "${ECHO_T}$ac_header_preproc" >&6; }
11685
11686 # So?  What about this header?
11687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11688   yes:no: )
11689     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11693     ac_header_preproc=yes
11694     ;;
11695   no:yes:* )
11696     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11698     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11699 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11700     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11702     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11703 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11706     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11708     ( cat <<\_ASBOX
11709 ## ----------------------------------- ##
11710 ## Report this to llvmbugs@cs.uiuc.edu ##
11711 ## ----------------------------------- ##
11712 _ASBOX
11713      ) | sed "s/^/$as_me: WARNING:     /" >&2
11714     ;;
11715 esac
11716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11719   echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721   eval "$as_ac_Header=\$ac_header_preproc"
11722 fi
11723 ac_res=`eval echo '${'$as_ac_Header'}'`
11724                { echo "$as_me:$LINENO: result: $ac_res" >&5
11725 echo "${ECHO_T}$ac_res" >&6; }
11726
11727 fi
11728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11729   cat >>confdefs.h <<_ACEOF
11730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11731 _ACEOF
11732  break
11733 fi
11734
11735 done
11736
11737
11738
11739
11740 for ac_func in strchr index
11741 do
11742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11746   echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748   cat >conftest.$ac_ext <<_ACEOF
11749 /* confdefs.h.  */
11750 _ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h.  */
11754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11756 #define $ac_func innocuous_$ac_func
11757
11758 /* System header to define __stub macros and hopefully few prototypes,
11759     which can conflict with char $ac_func (); below.
11760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11761     <limits.h> exists even on freestanding compilers.  */
11762
11763 #ifdef __STDC__
11764 # include <limits.h>
11765 #else
11766 # include <assert.h>
11767 #endif
11768
11769 #undef $ac_func
11770
11771 /* Override any GCC internal prototype to avoid an error.
11772    Use char because int might match the return type of a GCC
11773    builtin and then its argument prototype would still apply.  */
11774 #ifdef __cplusplus
11775 extern "C"
11776 #endif
11777 char $ac_func ();
11778 /* The GNU C library defines this for functions which it implements
11779     to always fail with ENOSYS.  Some functions are actually named
11780     something starting with __ and the normal name is an alias.  */
11781 #if defined __stub_$ac_func || defined __stub___$ac_func
11782 choke me
11783 #endif
11784
11785 int
11786 main ()
11787 {
11788 return $ac_func ();
11789   ;
11790   return 0;
11791 }
11792 _ACEOF
11793 rm -f conftest.$ac_objext conftest$ac_exeext
11794 if { (ac_try="$ac_link"
11795 case "(($ac_try" in
11796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797   *) ac_try_echo=$ac_try;;
11798 esac
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800   (eval "$ac_link") 2>conftest.er1
11801   ac_status=$?
11802   grep -v '^ *+' conftest.er1 >conftest.err
11803   rm -f conftest.er1
11804   cat conftest.err >&5
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); } &&
11807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11808   { (case "(($ac_try" in
11809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810   *) ac_try_echo=$ac_try;;
11811 esac
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813   (eval "$ac_try") 2>&5
11814   ac_status=$?
11815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816   (exit $ac_status); }; } &&
11817          { ac_try='test -s conftest$ac_exeext'
11818   { (case "(($ac_try" in
11819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820   *) ac_try_echo=$ac_try;;
11821 esac
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823   (eval "$ac_try") 2>&5
11824   ac_status=$?
11825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826   (exit $ac_status); }; }; then
11827   eval "$as_ac_var=yes"
11828 else
11829   echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11831
11832         eval "$as_ac_var=no"
11833 fi
11834
11835 rm -f core conftest.err conftest.$ac_objext \
11836       conftest$ac_exeext conftest.$ac_ext
11837 fi
11838 ac_res=`eval echo '${'$as_ac_var'}'`
11839                { echo "$as_me:$LINENO: result: $ac_res" >&5
11840 echo "${ECHO_T}$ac_res" >&6; }
11841 if test `eval echo '${'$as_ac_var'}'` = yes; then
11842   cat >>confdefs.h <<_ACEOF
11843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11844 _ACEOF
11845  break
11846 fi
11847 done
11848
11849
11850
11851 for ac_func in strrchr rindex
11852 do
11853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11857   echo $ECHO_N "(cached) $ECHO_C" >&6
11858 else
11859   cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h.  */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h.  */
11865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11867 #define $ac_func innocuous_$ac_func
11868
11869 /* System header to define __stub macros and hopefully few prototypes,
11870     which can conflict with char $ac_func (); below.
11871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11872     <limits.h> exists even on freestanding compilers.  */
11873
11874 #ifdef __STDC__
11875 # include <limits.h>
11876 #else
11877 # include <assert.h>
11878 #endif
11879
11880 #undef $ac_func
11881
11882 /* Override any GCC internal prototype to avoid an error.
11883    Use char because int might match the return type of a GCC
11884    builtin and then its argument prototype would still apply.  */
11885 #ifdef __cplusplus
11886 extern "C"
11887 #endif
11888 char $ac_func ();
11889 /* The GNU C library defines this for functions which it implements
11890     to always fail with ENOSYS.  Some functions are actually named
11891     something starting with __ and the normal name is an alias.  */
11892 #if defined __stub_$ac_func || defined __stub___$ac_func
11893 choke me
11894 #endif
11895
11896 int
11897 main ()
11898 {
11899 return $ac_func ();
11900   ;
11901   return 0;
11902 }
11903 _ACEOF
11904 rm -f conftest.$ac_objext conftest$ac_exeext
11905 if { (ac_try="$ac_link"
11906 case "(($ac_try" in
11907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908   *) ac_try_echo=$ac_try;;
11909 esac
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911   (eval "$ac_link") 2>conftest.er1
11912   ac_status=$?
11913   grep -v '^ *+' conftest.er1 >conftest.err
11914   rm -f conftest.er1
11915   cat conftest.err >&5
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); } &&
11918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11919   { (case "(($ac_try" in
11920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921   *) ac_try_echo=$ac_try;;
11922 esac
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924   (eval "$ac_try") 2>&5
11925   ac_status=$?
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); }; } &&
11928          { ac_try='test -s conftest$ac_exeext'
11929   { (case "(($ac_try" in
11930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931   *) ac_try_echo=$ac_try;;
11932 esac
11933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934   (eval "$ac_try") 2>&5
11935   ac_status=$?
11936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); }; }; then
11938   eval "$as_ac_var=yes"
11939 else
11940   echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11942
11943         eval "$as_ac_var=no"
11944 fi
11945
11946 rm -f core conftest.err conftest.$ac_objext \
11947       conftest$ac_exeext conftest.$ac_ext
11948 fi
11949 ac_res=`eval echo '${'$as_ac_var'}'`
11950                { echo "$as_me:$LINENO: result: $ac_res" >&5
11951 echo "${ECHO_T}$ac_res" >&6; }
11952 if test `eval echo '${'$as_ac_var'}'` = yes; then
11953   cat >>confdefs.h <<_ACEOF
11954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11955 _ACEOF
11956  break
11957 fi
11958 done
11959
11960
11961
11962 for ac_func in memcpy bcopy
11963 do
11964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11965 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11968   echo $ECHO_N "(cached) $ECHO_C" >&6
11969 else
11970   cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h.  */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h.  */
11976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11978 #define $ac_func innocuous_$ac_func
11979
11980 /* System header to define __stub macros and hopefully few prototypes,
11981     which can conflict with char $ac_func (); below.
11982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11983     <limits.h> exists even on freestanding compilers.  */
11984
11985 #ifdef __STDC__
11986 # include <limits.h>
11987 #else
11988 # include <assert.h>
11989 #endif
11990
11991 #undef $ac_func
11992
11993 /* Override any GCC internal prototype to avoid an error.
11994    Use char because int might match the return type of a GCC
11995    builtin and then its argument prototype would still apply.  */
11996 #ifdef __cplusplus
11997 extern "C"
11998 #endif
11999 char $ac_func ();
12000 /* The GNU C library defines this for functions which it implements
12001     to always fail with ENOSYS.  Some functions are actually named
12002     something starting with __ and the normal name is an alias.  */
12003 #if defined __stub_$ac_func || defined __stub___$ac_func
12004 choke me
12005 #endif
12006
12007 int
12008 main ()
12009 {
12010 return $ac_func ();
12011   ;
12012   return 0;
12013 }
12014 _ACEOF
12015 rm -f conftest.$ac_objext conftest$ac_exeext
12016 if { (ac_try="$ac_link"
12017 case "(($ac_try" in
12018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019   *) ac_try_echo=$ac_try;;
12020 esac
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022   (eval "$ac_link") 2>conftest.er1
12023   ac_status=$?
12024   grep -v '^ *+' conftest.er1 >conftest.err
12025   rm -f conftest.er1
12026   cat conftest.err >&5
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); } &&
12029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12030   { (case "(($ac_try" in
12031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032   *) ac_try_echo=$ac_try;;
12033 esac
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035   (eval "$ac_try") 2>&5
12036   ac_status=$?
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); }; } &&
12039          { ac_try='test -s conftest$ac_exeext'
12040   { (case "(($ac_try" in
12041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042   *) ac_try_echo=$ac_try;;
12043 esac
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045   (eval "$ac_try") 2>&5
12046   ac_status=$?
12047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048   (exit $ac_status); }; }; then
12049   eval "$as_ac_var=yes"
12050 else
12051   echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12053
12054         eval "$as_ac_var=no"
12055 fi
12056
12057 rm -f core conftest.err conftest.$ac_objext \
12058       conftest$ac_exeext conftest.$ac_ext
12059 fi
12060 ac_res=`eval echo '${'$as_ac_var'}'`
12061                { echo "$as_me:$LINENO: result: $ac_res" >&5
12062 echo "${ECHO_T}$ac_res" >&6; }
12063 if test `eval echo '${'$as_ac_var'}'` = yes; then
12064   cat >>confdefs.h <<_ACEOF
12065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12066 _ACEOF
12067  break
12068 fi
12069 done
12070
12071
12072
12073 for ac_func in memmove strcmp
12074 do
12075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12076 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12078 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12079   echo $ECHO_N "(cached) $ECHO_C" >&6
12080 else
12081   cat >conftest.$ac_ext <<_ACEOF
12082 /* confdefs.h.  */
12083 _ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h.  */
12087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12089 #define $ac_func innocuous_$ac_func
12090
12091 /* System header to define __stub macros and hopefully few prototypes,
12092     which can conflict with char $ac_func (); below.
12093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12094     <limits.h> exists even on freestanding compilers.  */
12095
12096 #ifdef __STDC__
12097 # include <limits.h>
12098 #else
12099 # include <assert.h>
12100 #endif
12101
12102 #undef $ac_func
12103
12104 /* Override any GCC internal prototype to avoid an error.
12105    Use char because int might match the return type of a GCC
12106    builtin and then its argument prototype would still apply.  */
12107 #ifdef __cplusplus
12108 extern "C"
12109 #endif
12110 char $ac_func ();
12111 /* The GNU C library defines this for functions which it implements
12112     to always fail with ENOSYS.  Some functions are actually named
12113     something starting with __ and the normal name is an alias.  */
12114 #if defined __stub_$ac_func || defined __stub___$ac_func
12115 choke me
12116 #endif
12117
12118 int
12119 main ()
12120 {
12121 return $ac_func ();
12122   ;
12123   return 0;
12124 }
12125 _ACEOF
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (ac_try="$ac_link"
12128 case "(($ac_try" in
12129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130   *) ac_try_echo=$ac_try;;
12131 esac
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133   (eval "$ac_link") 2>conftest.er1
12134   ac_status=$?
12135   grep -v '^ *+' conftest.er1 >conftest.err
12136   rm -f conftest.er1
12137   cat conftest.err >&5
12138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139   (exit $ac_status); } &&
12140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12141   { (case "(($ac_try" in
12142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143   *) ac_try_echo=$ac_try;;
12144 esac
12145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146   (eval "$ac_try") 2>&5
12147   ac_status=$?
12148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149   (exit $ac_status); }; } &&
12150          { ac_try='test -s conftest$ac_exeext'
12151   { (case "(($ac_try" in
12152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153   *) ac_try_echo=$ac_try;;
12154 esac
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156   (eval "$ac_try") 2>&5
12157   ac_status=$?
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); }; }; then
12160   eval "$as_ac_var=yes"
12161 else
12162   echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12164
12165         eval "$as_ac_var=no"
12166 fi
12167
12168 rm -f core conftest.err conftest.$ac_objext \
12169       conftest$ac_exeext conftest.$ac_ext
12170 fi
12171 ac_res=`eval echo '${'$as_ac_var'}'`
12172                { echo "$as_me:$LINENO: result: $ac_res" >&5
12173 echo "${ECHO_T}$ac_res" >&6; }
12174 if test `eval echo '${'$as_ac_var'}'` = yes; then
12175   cat >>confdefs.h <<_ACEOF
12176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12177 _ACEOF
12178
12179 fi
12180 done
12181
12182
12183
12184
12185 for ac_func in closedir opendir readdir
12186 do
12187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12191   echo $ECHO_N "(cached) $ECHO_C" >&6
12192 else
12193   cat >conftest.$ac_ext <<_ACEOF
12194 /* confdefs.h.  */
12195 _ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h.  */
12199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12201 #define $ac_func innocuous_$ac_func
12202
12203 /* System header to define __stub macros and hopefully few prototypes,
12204     which can conflict with char $ac_func (); below.
12205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12206     <limits.h> exists even on freestanding compilers.  */
12207
12208 #ifdef __STDC__
12209 # include <limits.h>
12210 #else
12211 # include <assert.h>
12212 #endif
12213
12214 #undef $ac_func
12215
12216 /* Override any GCC internal prototype to avoid an error.
12217    Use char because int might match the return type of a GCC
12218    builtin and then its argument prototype would still apply.  */
12219 #ifdef __cplusplus
12220 extern "C"
12221 #endif
12222 char $ac_func ();
12223 /* The GNU C library defines this for functions which it implements
12224     to always fail with ENOSYS.  Some functions are actually named
12225     something starting with __ and the normal name is an alias.  */
12226 #if defined __stub_$ac_func || defined __stub___$ac_func
12227 choke me
12228 #endif
12229
12230 int
12231 main ()
12232 {
12233 return $ac_func ();
12234   ;
12235   return 0;
12236 }
12237 _ACEOF
12238 rm -f conftest.$ac_objext conftest$ac_exeext
12239 if { (ac_try="$ac_link"
12240 case "(($ac_try" in
12241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12242   *) ac_try_echo=$ac_try;;
12243 esac
12244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245   (eval "$ac_link") 2>conftest.er1
12246   ac_status=$?
12247   grep -v '^ *+' conftest.er1 >conftest.err
12248   rm -f conftest.er1
12249   cat conftest.err >&5
12250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251   (exit $ac_status); } &&
12252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12253   { (case "(($ac_try" in
12254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255   *) ac_try_echo=$ac_try;;
12256 esac
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258   (eval "$ac_try") 2>&5
12259   ac_status=$?
12260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261   (exit $ac_status); }; } &&
12262          { ac_try='test -s conftest$ac_exeext'
12263   { (case "(($ac_try" in
12264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265   *) ac_try_echo=$ac_try;;
12266 esac
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268   (eval "$ac_try") 2>&5
12269   ac_status=$?
12270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271   (exit $ac_status); }; }; then
12272   eval "$as_ac_var=yes"
12273 else
12274   echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.$ac_ext >&5
12276
12277         eval "$as_ac_var=no"
12278 fi
12279
12280 rm -f core conftest.err conftest.$ac_objext \
12281       conftest$ac_exeext conftest.$ac_ext
12282 fi
12283 ac_res=`eval echo '${'$as_ac_var'}'`
12284                { echo "$as_me:$LINENO: result: $ac_res" >&5
12285 echo "${ECHO_T}$ac_res" >&6; }
12286 if test `eval echo '${'$as_ac_var'}'` = yes; then
12287   cat >>confdefs.h <<_ACEOF
12288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12289 _ACEOF
12290
12291 fi
12292 done
12293
12294
12295 # Check whether --enable-shared was given.
12296 if test "${enable_shared+set}" = set; then
12297   enableval=$enable_shared; p=${PACKAGE-default}
12298     case $enableval in
12299     yes) enable_shared=yes ;;
12300     no) enable_shared=no ;;
12301     *)
12302       enable_shared=no
12303       # Look at the argument we got.  We use all the common list separators.
12304       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12305       for pkg in $enableval; do
12306         IFS="$lt_save_ifs"
12307         if test "X$pkg" = "X$p"; then
12308           enable_shared=yes
12309         fi
12310       done
12311       IFS="$lt_save_ifs"
12312       ;;
12313     esac
12314 else
12315   enable_shared=yes
12316 fi
12317
12318
12319 # Check whether --enable-static was given.
12320 if test "${enable_static+set}" = set; then
12321   enableval=$enable_static; p=${PACKAGE-default}
12322     case $enableval in
12323     yes) enable_static=yes ;;
12324     no) enable_static=no ;;
12325     *)
12326      enable_static=no
12327       # Look at the argument we got.  We use all the common list separators.
12328       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12329       for pkg in $enableval; do
12330         IFS="$lt_save_ifs"
12331         if test "X$pkg" = "X$p"; then
12332           enable_static=yes
12333         fi
12334       done
12335       IFS="$lt_save_ifs"
12336       ;;
12337     esac
12338 else
12339   enable_static=yes
12340 fi
12341
12342
12343 # Check whether --enable-fast-install was given.
12344 if test "${enable_fast_install+set}" = set; then
12345   enableval=$enable_fast_install; p=${PACKAGE-default}
12346     case $enableval in
12347     yes) enable_fast_install=yes ;;
12348     no) enable_fast_install=no ;;
12349     *)
12350       enable_fast_install=no
12351       # Look at the argument we got.  We use all the common list separators.
12352       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12353       for pkg in $enableval; do
12354         IFS="$lt_save_ifs"
12355         if test "X$pkg" = "X$p"; then
12356           enable_fast_install=yes
12357         fi
12358       done
12359       IFS="$lt_save_ifs"
12360       ;;
12361     esac
12362 else
12363   enable_fast_install=yes
12364 fi
12365
12366
12367 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12368 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12369 if test "${lt_cv_path_SED+set}" = set; then
12370   echo $ECHO_N "(cached) $ECHO_C" >&6
12371 else
12372   # Loop through the user's path and test for sed and gsed.
12373 # Then use that list of sed's as ones to test for truncation.
12374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375 for as_dir in $PATH
12376 do
12377   IFS=$as_save_IFS
12378   test -z "$as_dir" && as_dir=.
12379   for lt_ac_prog in sed gsed; do
12380     for ac_exec_ext in '' $ac_executable_extensions; do
12381       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12382         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12383       fi
12384     done
12385   done
12386 done
12387 lt_ac_max=0
12388 lt_ac_count=0
12389 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12390 # along with /bin/sed that truncates output.
12391 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12392   test ! -f $lt_ac_sed && continue
12393   cat /dev/null > conftest.in
12394   lt_ac_count=0
12395   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12396   # Check for GNU sed and select it if it is found.
12397   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12398     lt_cv_path_SED=$lt_ac_sed
12399     break
12400   fi
12401   while true; do
12402     cat conftest.in conftest.in >conftest.tmp
12403     mv conftest.tmp conftest.in
12404     cp conftest.in conftest.nl
12405     echo >>conftest.nl
12406     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12407     cmp -s conftest.out conftest.nl || break
12408     # 10000 chars as input seems more than enough
12409     test $lt_ac_count -gt 10 && break
12410     lt_ac_count=`expr $lt_ac_count + 1`
12411     if test $lt_ac_count -gt $lt_ac_max; then
12412       lt_ac_max=$lt_ac_count
12413       lt_cv_path_SED=$lt_ac_sed
12414     fi
12415   done
12416 done
12417
12418 fi
12419
12420 SED=$lt_cv_path_SED
12421 { echo "$as_me:$LINENO: result: $SED" >&5
12422 echo "${ECHO_T}$SED" >&6; }
12423
12424
12425 # Check whether --with-gnu-ld was given.
12426 if test "${with_gnu_ld+set}" = set; then
12427   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12428 else
12429   with_gnu_ld=no
12430 fi
12431
12432 ac_prog=ld
12433 if test "$GCC" = yes; then
12434   # Check if gcc -print-prog-name=ld gives a path.
12435   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12436 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12437   case $host in
12438   *-*-mingw*)
12439     # gcc leaves a trailing carriage return which upsets mingw
12440     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12441   *)
12442     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12443   esac
12444   case $ac_prog in
12445     # Accept absolute paths.
12446     [\\/]* | ?:[\\/]*)
12447       re_direlt='/[^/][^/]*/\.\./'
12448       # Canonicalize the pathname of ld
12449       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12450       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12451         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12452       done
12453       test -z "$LD" && LD="$ac_prog"
12454       ;;
12455   "")
12456     # If it fails, then pretend we aren't using GCC.
12457     ac_prog=ld
12458     ;;
12459   *)
12460     # If it is relative, then search for the first ld in PATH.
12461     with_gnu_ld=unknown
12462     ;;
12463   esac
12464 elif test "$with_gnu_ld" = yes; then
12465   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12466 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12467 else
12468   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12469 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12470 fi
12471 if test "${lt_cv_path_LD+set}" = set; then
12472   echo $ECHO_N "(cached) $ECHO_C" >&6
12473 else
12474   if test -z "$LD"; then
12475   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12476   for ac_dir in $PATH; do
12477     IFS="$lt_save_ifs"
12478     test -z "$ac_dir" && ac_dir=.
12479     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12480       lt_cv_path_LD="$ac_dir/$ac_prog"
12481       # Check to see if the program is GNU ld.  I'd rather use --version,
12482       # but apparently some variants of GNU ld only accept -v.
12483       # Break only if it was the GNU/non-GNU ld that we prefer.
12484       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12485       *GNU* | *'with BFD'*)
12486         test "$with_gnu_ld" != no && break
12487         ;;
12488       *)
12489         test "$with_gnu_ld" != yes && break
12490         ;;
12491       esac
12492     fi
12493   done
12494   IFS="$lt_save_ifs"
12495 else
12496   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12497 fi
12498 fi
12499
12500 LD="$lt_cv_path_LD"
12501 if test -n "$LD"; then
12502   { echo "$as_me:$LINENO: result: $LD" >&5
12503 echo "${ECHO_T}$LD" >&6; }
12504 else
12505   { echo "$as_me:$LINENO: result: no" >&5
12506 echo "${ECHO_T}no" >&6; }
12507 fi
12508 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12509 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12510    { (exit 1); exit 1; }; }
12511 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12512 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12513 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12514   echo $ECHO_N "(cached) $ECHO_C" >&6
12515 else
12516   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12517 case `$LD -v 2>&1 </dev/null` in
12518 *GNU* | *'with BFD'*)
12519   lt_cv_prog_gnu_ld=yes
12520   ;;
12521 *)
12522   lt_cv_prog_gnu_ld=no
12523   ;;
12524 esac
12525 fi
12526 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12527 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12528 with_gnu_ld=$lt_cv_prog_gnu_ld
12529
12530
12531 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12532 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12533 if test "${lt_cv_ld_reload_flag+set}" = set; then
12534   echo $ECHO_N "(cached) $ECHO_C" >&6
12535 else
12536   lt_cv_ld_reload_flag='-r'
12537 fi
12538 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12539 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12540 reload_flag=$lt_cv_ld_reload_flag
12541 case $reload_flag in
12542 "" | " "*) ;;
12543 *) reload_flag=" $reload_flag" ;;
12544 esac
12545 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12546 case $host_os in
12547   darwin*)
12548     if test "$GCC" = yes; then
12549       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12550     else
12551       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12552     fi
12553     ;;
12554 esac
12555
12556 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12557 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12558 if test "${lt_cv_deplibs_check_method+set}" = set; then
12559   echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561   lt_cv_file_magic_cmd='$MAGIC_CMD'
12562 lt_cv_file_magic_test_file=
12563 lt_cv_deplibs_check_method='unknown'
12564 # Need to set the preceding variable on all platforms that support
12565 # interlibrary dependencies.
12566 # 'none' -- dependencies not supported.
12567 # `unknown' -- same as none, but documents that we really don't know.
12568 # 'pass_all' -- all dependencies passed with no checks.
12569 # 'test_compile' -- check by making test program.
12570 # 'file_magic [[regex]]' -- check by looking for files in library path
12571 # which responds to the $file_magic_cmd with a given extended regex.
12572 # If you have `file' or equivalent on your system and you're not sure
12573 # whether `pass_all' will *always* work, you probably want this one.
12574
12575 case $host_os in
12576 aix4* | aix5*)
12577   lt_cv_deplibs_check_method=pass_all
12578   ;;
12579
12580 beos*)
12581   lt_cv_deplibs_check_method=pass_all
12582   ;;
12583
12584 bsdi[45]*)
12585   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12586   lt_cv_file_magic_cmd='/usr/bin/file -L'
12587   lt_cv_file_magic_test_file=/shlib/libc.so
12588   ;;
12589
12590 cygwin*)
12591   # func_win32_libid is a shell function defined in ltmain.sh
12592   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12593   lt_cv_file_magic_cmd='func_win32_libid'
12594   ;;
12595
12596 mingw* | pw32*)
12597   # Base MSYS/MinGW do not provide the 'file' command needed by
12598   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12599   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12600   lt_cv_file_magic_cmd='$OBJDUMP -f'
12601   ;;
12602
12603 darwin* | rhapsody*)
12604   lt_cv_deplibs_check_method=pass_all
12605   ;;
12606
12607 freebsd* | kfreebsd*-gnu | dragonfly*)
12608   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12609     case $host_cpu in
12610     i*86 )
12611       # Not sure whether the presence of OpenBSD here was a mistake.
12612       # Let's accept both of them until this is cleared up.
12613       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12614       lt_cv_file_magic_cmd=/usr/bin/file
12615       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12616       ;;
12617     esac
12618   else
12619     lt_cv_deplibs_check_method=pass_all
12620   fi
12621   ;;
12622
12623 gnu*)
12624   lt_cv_deplibs_check_method=pass_all
12625   ;;
12626
12627 hpux10.20* | hpux11*)
12628   lt_cv_file_magic_cmd=/usr/bin/file
12629   case $host_cpu in
12630   ia64*)
12631     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12632     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12633     ;;
12634   hppa*64*)
12635     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]'
12636     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12637     ;;
12638   *)
12639     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12640     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12641     ;;
12642   esac
12643   ;;
12644
12645 interix3*)
12646   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12647   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12648   ;;
12649
12650 irix5* | irix6* | nonstopux*)
12651   case $LD in
12652   *-32|*"-32 ") libmagic=32-bit;;
12653   *-n32|*"-n32 ") libmagic=N32;;
12654   *-64|*"-64 ") libmagic=64-bit;;
12655   *) libmagic=never-match;;
12656   esac
12657   lt_cv_deplibs_check_method=pass_all
12658   ;;
12659
12660 # This must be Linux ELF.
12661 linux*)
12662   lt_cv_deplibs_check_method=pass_all
12663   ;;
12664
12665 netbsd*)
12666   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12667     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12668   else
12669     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12670   fi
12671   ;;
12672
12673 newos6*)
12674   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12675   lt_cv_file_magic_cmd=/usr/bin/file
12676   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12677   ;;
12678
12679 nto-qnx*)
12680   lt_cv_deplibs_check_method=unknown
12681   ;;
12682
12683 openbsd*)
12684   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12685     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12686   else
12687     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12688   fi
12689   ;;
12690
12691 osf3* | osf4* | osf5*)
12692   lt_cv_deplibs_check_method=pass_all
12693   ;;
12694
12695 solaris*)
12696   lt_cv_deplibs_check_method=pass_all
12697   ;;
12698
12699 sysv4 | sysv4.3*)
12700   case $host_vendor in
12701   motorola)
12702     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]'
12703     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12704     ;;
12705   ncr)
12706     lt_cv_deplibs_check_method=pass_all
12707     ;;
12708   sequent)
12709     lt_cv_file_magic_cmd='/bin/file'
12710     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12711     ;;
12712   sni)
12713     lt_cv_file_magic_cmd='/bin/file'
12714     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12715     lt_cv_file_magic_test_file=/lib/libc.so
12716     ;;
12717   siemens)
12718     lt_cv_deplibs_check_method=pass_all
12719     ;;
12720   pc)
12721     lt_cv_deplibs_check_method=pass_all
12722     ;;
12723   esac
12724   ;;
12725
12726 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12727   lt_cv_deplibs_check_method=pass_all
12728   ;;
12729 esac
12730
12731 fi
12732 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12733 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12734 file_magic_cmd=$lt_cv_file_magic_cmd
12735 deplibs_check_method=$lt_cv_deplibs_check_method
12736 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12737
12738
12739
12740 # If no C compiler was specified, use CC.
12741 LTCC=${LTCC-"$CC"}
12742
12743 # If no C compiler flags were specified, use CFLAGS.
12744 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12745
12746 # Allow CC to be a program name with arguments.
12747 compiler=$CC
12748
12749 # Check whether --enable-libtool-lock was given.
12750 if test "${enable_libtool_lock+set}" = set; then
12751   enableval=$enable_libtool_lock;
12752 fi
12753
12754 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12755
12756 # Some flags need to be propagated to the compiler or linker for good
12757 # libtool support.
12758 case $host in
12759 ia64-*-hpux*)
12760   # Find out which ABI we are using.
12761   echo 'int i;' > conftest.$ac_ext
12762   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12763   (eval $ac_compile) 2>&5
12764   ac_status=$?
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); }; then
12767     case `/usr/bin/file conftest.$ac_objext` in
12768     *ELF-32*)
12769       HPUX_IA64_MODE="32"
12770       ;;
12771     *ELF-64*)
12772       HPUX_IA64_MODE="64"
12773       ;;
12774     esac
12775   fi
12776   rm -rf conftest*
12777   ;;
12778 *-*-irix6*)
12779   # Find out which ABI we are using.
12780   echo '#line 12780 "configure"' > conftest.$ac_ext
12781   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12782   (eval $ac_compile) 2>&5
12783   ac_status=$?
12784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785   (exit $ac_status); }; then
12786    if test "$lt_cv_prog_gnu_ld" = yes; then
12787     case `/usr/bin/file conftest.$ac_objext` in
12788     *32-bit*)
12789       LD="${LD-ld} -melf32bsmip"
12790       ;;
12791     *N32*)
12792       LD="${LD-ld} -melf32bmipn32"
12793       ;;
12794     *64-bit*)
12795       LD="${LD-ld} -melf64bmip"
12796       ;;
12797     esac
12798    else
12799     case `/usr/bin/file conftest.$ac_objext` in
12800     *32-bit*)
12801       LD="${LD-ld} -32"
12802       ;;
12803     *N32*)
12804       LD="${LD-ld} -n32"
12805       ;;
12806     *64-bit*)
12807       LD="${LD-ld} -64"
12808       ;;
12809     esac
12810    fi
12811   fi
12812   rm -rf conftest*
12813   ;;
12814
12815 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12816   # Find out which ABI we are using.
12817   echo 'int i;' > conftest.$ac_ext
12818   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12819   (eval $ac_compile) 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); }; then
12823     case `/usr/bin/file conftest.o` in
12824     *32-bit*)
12825       case $host in
12826         x86_64-*linux*)
12827           LD="${LD-ld} -m elf_i386"
12828           ;;
12829         ppc64-*linux*|powerpc64-*linux*)
12830           LD="${LD-ld} -m elf32ppclinux"
12831           ;;
12832         s390x-*linux*)
12833           LD="${LD-ld} -m elf_s390"
12834           ;;
12835         sparc64-*linux*)
12836           LD="${LD-ld} -m elf32_sparc"
12837           ;;
12838       esac
12839       ;;
12840     *64-bit*)
12841       case $host in
12842         x86_64-*linux*)
12843           LD="${LD-ld} -m elf_x86_64"
12844           ;;
12845         ppc*-*linux*|powerpc*-*linux*)
12846           LD="${LD-ld} -m elf64ppc"
12847           ;;
12848         s390*-*linux*)
12849           LD="${LD-ld} -m elf64_s390"
12850           ;;
12851         sparc*-*linux*)
12852           LD="${LD-ld} -m elf64_sparc"
12853           ;;
12854       esac
12855       ;;
12856     esac
12857   fi
12858   rm -rf conftest*
12859   ;;
12860
12861 *-*-sco3.2v5*)
12862   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12863   SAVE_CFLAGS="$CFLAGS"
12864   CFLAGS="$CFLAGS -belf"
12865   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12866 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12867 if test "${lt_cv_cc_needs_belf+set}" = set; then
12868   echo $ECHO_N "(cached) $ECHO_C" >&6
12869 else
12870   ac_ext=c
12871 ac_cpp='$CPP $CPPFLAGS'
12872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12875
12876      cat >conftest.$ac_ext <<_ACEOF
12877 /* confdefs.h.  */
12878 _ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h.  */
12882
12883 int
12884 main ()
12885 {
12886
12887   ;
12888   return 0;
12889 }
12890 _ACEOF
12891 rm -f conftest.$ac_objext conftest$ac_exeext
12892 if { (ac_try="$ac_link"
12893 case "(($ac_try" in
12894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895   *) ac_try_echo=$ac_try;;
12896 esac
12897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12898   (eval "$ac_link") 2>conftest.er1
12899   ac_status=$?
12900   grep -v '^ *+' conftest.er1 >conftest.err
12901   rm -f conftest.er1
12902   cat conftest.err >&5
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); } &&
12905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12906   { (case "(($ac_try" in
12907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908   *) ac_try_echo=$ac_try;;
12909 esac
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911   (eval "$ac_try") 2>&5
12912   ac_status=$?
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); }; } &&
12915          { ac_try='test -s conftest$ac_exeext'
12916   { (case "(($ac_try" in
12917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918   *) ac_try_echo=$ac_try;;
12919 esac
12920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921   (eval "$ac_try") 2>&5
12922   ac_status=$?
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); }; }; then
12925   lt_cv_cc_needs_belf=yes
12926 else
12927   echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12929
12930         lt_cv_cc_needs_belf=no
12931 fi
12932
12933 rm -f core conftest.err conftest.$ac_objext \
12934       conftest$ac_exeext conftest.$ac_ext
12935      ac_ext=c
12936 ac_cpp='$CPP $CPPFLAGS'
12937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12940
12941 fi
12942 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12943 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12944   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12945     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12946     CFLAGS="$SAVE_CFLAGS"
12947   fi
12948   ;;
12949 sparc*-*solaris*)
12950   # Find out which ABI we are using.
12951   echo 'int i;' > conftest.$ac_ext
12952   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953   (eval $ac_compile) 2>&5
12954   ac_status=$?
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); }; then
12957     case `/usr/bin/file conftest.o` in
12958     *64-bit*)
12959       case $lt_cv_prog_gnu_ld in
12960       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12961       *)    LD="${LD-ld} -64" ;;
12962       esac
12963       ;;
12964     esac
12965   fi
12966   rm -rf conftest*
12967   ;;
12968
12969
12970 esac
12971
12972 need_locks="$enable_libtool_lock"
12973
12974
12975
12976
12977 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12978     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12979     (test "X$CXX" != "Xg++"))) ; then
12980   ac_ext=cpp
12981 ac_cpp='$CXXCPP $CPPFLAGS'
12982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12985 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12986 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12987 if test -z "$CXXCPP"; then
12988   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12989   echo $ECHO_N "(cached) $ECHO_C" >&6
12990 else
12991       # Double quotes because CXXCPP needs to be expanded
12992     for CXXCPP in "$CXX -E" "/lib/cpp"
12993     do
12994       ac_preproc_ok=false
12995 for ac_cxx_preproc_warn_flag in '' yes
12996 do
12997   # Use a header file that comes with gcc, so configuring glibc
12998   # with a fresh cross-compiler works.
12999   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13000   # <limits.h> exists even on freestanding compilers.
13001   # On the NeXT, cc -E runs the code through the compiler's parser,
13002   # not just through cpp. "Syntax error" is here to catch this case.
13003   cat >conftest.$ac_ext <<_ACEOF
13004 /* confdefs.h.  */
13005 _ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h.  */
13009 #ifdef __STDC__
13010 # include <limits.h>
13011 #else
13012 # include <assert.h>
13013 #endif
13014                      Syntax error
13015 _ACEOF
13016 if { (ac_try="$ac_cpp conftest.$ac_ext"
13017 case "(($ac_try" in
13018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019   *) ac_try_echo=$ac_try;;
13020 esac
13021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13023   ac_status=$?
13024   grep -v '^ *+' conftest.er1 >conftest.err
13025   rm -f conftest.er1
13026   cat conftest.err >&5
13027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028   (exit $ac_status); } >/dev/null; then
13029   if test -s conftest.err; then
13030     ac_cpp_err=$ac_cxx_preproc_warn_flag
13031     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13032   else
13033     ac_cpp_err=
13034   fi
13035 else
13036   ac_cpp_err=yes
13037 fi
13038 if test -z "$ac_cpp_err"; then
13039   :
13040 else
13041   echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13043
13044   # Broken: fails on valid input.
13045 continue
13046 fi
13047
13048 rm -f conftest.err conftest.$ac_ext
13049
13050   # OK, works on sane cases.  Now check whether nonexistent headers
13051   # can be detected and how.
13052   cat >conftest.$ac_ext <<_ACEOF
13053 /* confdefs.h.  */
13054 _ACEOF
13055 cat confdefs.h >>conftest.$ac_ext
13056 cat >>conftest.$ac_ext <<_ACEOF
13057 /* end confdefs.h.  */
13058 #include <ac_nonexistent.h>
13059 _ACEOF
13060 if { (ac_try="$ac_cpp conftest.$ac_ext"
13061 case "(($ac_try" in
13062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063   *) ac_try_echo=$ac_try;;
13064 esac
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13067   ac_status=$?
13068   grep -v '^ *+' conftest.er1 >conftest.err
13069   rm -f conftest.er1
13070   cat conftest.err >&5
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); } >/dev/null; then
13073   if test -s conftest.err; then
13074     ac_cpp_err=$ac_cxx_preproc_warn_flag
13075     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13076   else
13077     ac_cpp_err=
13078   fi
13079 else
13080   ac_cpp_err=yes
13081 fi
13082 if test -z "$ac_cpp_err"; then
13083   # Broken: success on invalid input.
13084 continue
13085 else
13086   echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13088
13089   # Passes both tests.
13090 ac_preproc_ok=:
13091 break
13092 fi
13093
13094 rm -f conftest.err conftest.$ac_ext
13095
13096 done
13097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13098 rm -f conftest.err conftest.$ac_ext
13099 if $ac_preproc_ok; then
13100   break
13101 fi
13102
13103     done
13104     ac_cv_prog_CXXCPP=$CXXCPP
13105
13106 fi
13107   CXXCPP=$ac_cv_prog_CXXCPP
13108 else
13109   ac_cv_prog_CXXCPP=$CXXCPP
13110 fi
13111 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13112 echo "${ECHO_T}$CXXCPP" >&6; }
13113 ac_preproc_ok=false
13114 for ac_cxx_preproc_warn_flag in '' yes
13115 do
13116   # Use a header file that comes with gcc, so configuring glibc
13117   # with a fresh cross-compiler works.
13118   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13119   # <limits.h> exists even on freestanding compilers.
13120   # On the NeXT, cc -E runs the code through the compiler's parser,
13121   # not just through cpp. "Syntax error" is here to catch this case.
13122   cat >conftest.$ac_ext <<_ACEOF
13123 /* confdefs.h.  */
13124 _ACEOF
13125 cat confdefs.h >>conftest.$ac_ext
13126 cat >>conftest.$ac_ext <<_ACEOF
13127 /* end confdefs.h.  */
13128 #ifdef __STDC__
13129 # include <limits.h>
13130 #else
13131 # include <assert.h>
13132 #endif
13133                      Syntax error
13134 _ACEOF
13135 if { (ac_try="$ac_cpp conftest.$ac_ext"
13136 case "(($ac_try" in
13137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138   *) ac_try_echo=$ac_try;;
13139 esac
13140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13142   ac_status=$?
13143   grep -v '^ *+' conftest.er1 >conftest.err
13144   rm -f conftest.er1
13145   cat conftest.err >&5
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); } >/dev/null; then
13148   if test -s conftest.err; then
13149     ac_cpp_err=$ac_cxx_preproc_warn_flag
13150     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13151   else
13152     ac_cpp_err=
13153   fi
13154 else
13155   ac_cpp_err=yes
13156 fi
13157 if test -z "$ac_cpp_err"; then
13158   :
13159 else
13160   echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13162
13163   # Broken: fails on valid input.
13164 continue
13165 fi
13166
13167 rm -f conftest.err conftest.$ac_ext
13168
13169   # OK, works on sane cases.  Now check whether nonexistent headers
13170   # can be detected and how.
13171   cat >conftest.$ac_ext <<_ACEOF
13172 /* confdefs.h.  */
13173 _ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h.  */
13177 #include <ac_nonexistent.h>
13178 _ACEOF
13179 if { (ac_try="$ac_cpp conftest.$ac_ext"
13180 case "(($ac_try" in
13181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182   *) ac_try_echo=$ac_try;;
13183 esac
13184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13186   ac_status=$?
13187   grep -v '^ *+' conftest.er1 >conftest.err
13188   rm -f conftest.er1
13189   cat conftest.err >&5
13190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191   (exit $ac_status); } >/dev/null; then
13192   if test -s conftest.err; then
13193     ac_cpp_err=$ac_cxx_preproc_warn_flag
13194     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13195   else
13196     ac_cpp_err=
13197   fi
13198 else
13199   ac_cpp_err=yes
13200 fi
13201 if test -z "$ac_cpp_err"; then
13202   # Broken: success on invalid input.
13203 continue
13204 else
13205   echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13207
13208   # Passes both tests.
13209 ac_preproc_ok=:
13210 break
13211 fi
13212
13213 rm -f conftest.err conftest.$ac_ext
13214
13215 done
13216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13217 rm -f conftest.err conftest.$ac_ext
13218 if $ac_preproc_ok; then
13219   :
13220 else
13221   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13222 See \`config.log' for more details." >&5
13223 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13224 See \`config.log' for more details." >&2;}
13225    { (exit 1); exit 1; }; }
13226 fi
13227
13228 ac_ext=cpp
13229 ac_cpp='$CXXCPP $CPPFLAGS'
13230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13233
13234 fi
13235
13236
13237 ac_ext=f
13238 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13239 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13240 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13241 if test -n "$ac_tool_prefix"; then
13242   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
13243   do
13244     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13248 if test "${ac_cv_prog_F77+set}" = set; then
13249   echo $ECHO_N "(cached) $ECHO_C" >&6
13250 else
13251   if test -n "$F77"; then
13252   ac_cv_prog_F77="$F77" # Let the user override the test.
13253 else
13254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13255 for as_dir in $PATH
13256 do
13257   IFS=$as_save_IFS
13258   test -z "$as_dir" && as_dir=.
13259   for ac_exec_ext in '' $ac_executable_extensions; do
13260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13261     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13263     break 2
13264   fi
13265 done
13266 done
13267 IFS=$as_save_IFS
13268
13269 fi
13270 fi
13271 F77=$ac_cv_prog_F77
13272 if test -n "$F77"; then
13273   { echo "$as_me:$LINENO: result: $F77" >&5
13274 echo "${ECHO_T}$F77" >&6; }
13275 else
13276   { echo "$as_me:$LINENO: result: no" >&5
13277 echo "${ECHO_T}no" >&6; }
13278 fi
13279
13280
13281     test -n "$F77" && break
13282   done
13283 fi
13284 if test -z "$F77"; then
13285   ac_ct_F77=$F77
13286   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
13287 do
13288   # Extract the first word of "$ac_prog", so it can be a program name with args.
13289 set dummy $ac_prog; ac_word=$2
13290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13292 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13293   echo $ECHO_N "(cached) $ECHO_C" >&6
13294 else
13295   if test -n "$ac_ct_F77"; then
13296   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13297 else
13298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299 for as_dir in $PATH
13300 do
13301   IFS=$as_save_IFS
13302   test -z "$as_dir" && as_dir=.
13303   for ac_exec_ext in '' $ac_executable_extensions; do
13304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13305     ac_cv_prog_ac_ct_F77="$ac_prog"
13306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13307     break 2
13308   fi
13309 done
13310 done
13311 IFS=$as_save_IFS
13312
13313 fi
13314 fi
13315 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13316 if test -n "$ac_ct_F77"; then
13317   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13318 echo "${ECHO_T}$ac_ct_F77" >&6; }
13319 else
13320   { echo "$as_me:$LINENO: result: no" >&5
13321 echo "${ECHO_T}no" >&6; }
13322 fi
13323
13324
13325   test -n "$ac_ct_F77" && break
13326 done
13327
13328   if test "x$ac_ct_F77" = x; then
13329     F77=""
13330   else
13331     case $cross_compiling:$ac_tool_warned in
13332 yes:)
13333 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13334 whose name does not start with the host triplet.  If you think this
13335 configuration is useful to you, please write to autoconf@gnu.org." >&5
13336 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13337 whose name does not start with the host triplet.  If you think this
13338 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13339 ac_tool_warned=yes ;;
13340 esac
13341     F77=$ac_ct_F77
13342   fi
13343 fi
13344
13345
13346 # Provide some information about the compiler.
13347 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13348 ac_compiler=`set X $ac_compile; echo $2`
13349 { (ac_try="$ac_compiler --version >&5"
13350 case "(($ac_try" in
13351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352   *) ac_try_echo=$ac_try;;
13353 esac
13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355   (eval "$ac_compiler --version >&5") 2>&5
13356   ac_status=$?
13357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358   (exit $ac_status); }
13359 { (ac_try="$ac_compiler -v >&5"
13360 case "(($ac_try" in
13361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362   *) ac_try_echo=$ac_try;;
13363 esac
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365   (eval "$ac_compiler -v >&5") 2>&5
13366   ac_status=$?
13367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368   (exit $ac_status); }
13369 { (ac_try="$ac_compiler -V >&5"
13370 case "(($ac_try" in
13371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372   *) ac_try_echo=$ac_try;;
13373 esac
13374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375   (eval "$ac_compiler -V >&5") 2>&5
13376   ac_status=$?
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); }
13379 rm -f a.out
13380
13381 # If we don't use `.F' as extension, the preprocessor is not run on the
13382 # input file.  (Note that this only needs to work for GNU compilers.)
13383 ac_save_ext=$ac_ext
13384 ac_ext=F
13385 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13386 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13387 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13388   echo $ECHO_N "(cached) $ECHO_C" >&6
13389 else
13390   cat >conftest.$ac_ext <<_ACEOF
13391       program main
13392 #ifndef __GNUC__
13393        choke me
13394 #endif
13395
13396       end
13397 _ACEOF
13398 rm -f conftest.$ac_objext
13399 if { (ac_try="$ac_compile"
13400 case "(($ac_try" in
13401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402   *) ac_try_echo=$ac_try;;
13403 esac
13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405   (eval "$ac_compile") 2>conftest.er1
13406   ac_status=$?
13407   grep -v '^ *+' conftest.er1 >conftest.err
13408   rm -f conftest.er1
13409   cat conftest.err >&5
13410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411   (exit $ac_status); } &&
13412          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13413   { (case "(($ac_try" in
13414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415   *) ac_try_echo=$ac_try;;
13416 esac
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418   (eval "$ac_try") 2>&5
13419   ac_status=$?
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); }; } &&
13422          { ac_try='test -s conftest.$ac_objext'
13423   { (case "(($ac_try" in
13424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425   *) ac_try_echo=$ac_try;;
13426 esac
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428   (eval "$ac_try") 2>&5
13429   ac_status=$?
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); }; }; then
13432   ac_compiler_gnu=yes
13433 else
13434   echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13436
13437         ac_compiler_gnu=no
13438 fi
13439
13440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13442
13443 fi
13444 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13445 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13446 ac_ext=$ac_save_ext
13447 ac_test_FFLAGS=${FFLAGS+set}
13448 ac_save_FFLAGS=$FFLAGS
13449 FFLAGS=
13450 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13451 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13452 if test "${ac_cv_prog_f77_g+set}" = set; then
13453   echo $ECHO_N "(cached) $ECHO_C" >&6
13454 else
13455   FFLAGS=-g
13456 cat >conftest.$ac_ext <<_ACEOF
13457       program main
13458
13459       end
13460 _ACEOF
13461 rm -f conftest.$ac_objext
13462 if { (ac_try="$ac_compile"
13463 case "(($ac_try" in
13464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13465   *) ac_try_echo=$ac_try;;
13466 esac
13467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13468   (eval "$ac_compile") 2>conftest.er1
13469   ac_status=$?
13470   grep -v '^ *+' conftest.er1 >conftest.err
13471   rm -f conftest.er1
13472   cat conftest.err >&5
13473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474   (exit $ac_status); } &&
13475          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13476   { (case "(($ac_try" in
13477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478   *) ac_try_echo=$ac_try;;
13479 esac
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481   (eval "$ac_try") 2>&5
13482   ac_status=$?
13483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484   (exit $ac_status); }; } &&
13485          { ac_try='test -s conftest.$ac_objext'
13486   { (case "(($ac_try" in
13487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13488   *) ac_try_echo=$ac_try;;
13489 esac
13490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13491   (eval "$ac_try") 2>&5
13492   ac_status=$?
13493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494   (exit $ac_status); }; }; then
13495   ac_cv_prog_f77_g=yes
13496 else
13497   echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13499
13500         ac_cv_prog_f77_g=no
13501 fi
13502
13503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13504
13505 fi
13506 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13507 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13508 if test "$ac_test_FFLAGS" = set; then
13509   FFLAGS=$ac_save_FFLAGS
13510 elif test $ac_cv_prog_f77_g = yes; then
13511   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13512     FFLAGS="-g -O2"
13513   else
13514     FFLAGS="-g"
13515   fi
13516 else
13517   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13518     FFLAGS="-O2"
13519   else
13520     FFLAGS=
13521   fi
13522 fi
13523
13524 G77=`test $ac_compiler_gnu = yes && echo yes`
13525 ac_ext=c
13526 ac_cpp='$CPP $CPPFLAGS'
13527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13530
13531
13532
13533 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13534
13535 # find the maximum length of command line arguments
13536 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13537 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13538 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13539   echo $ECHO_N "(cached) $ECHO_C" >&6
13540 else
13541     i=0
13542   teststring="ABCD"
13543
13544   case $build_os in
13545   msdosdjgpp*)
13546     # On DJGPP, this test can blow up pretty badly due to problems in libc
13547     # (any single argument exceeding 2000 bytes causes a buffer overrun
13548     # during glob expansion).  Even if it were fixed, the result of this
13549     # check would be larger than it should be.
13550     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13551     ;;
13552
13553   gnu*)
13554     # Under GNU Hurd, this test is not required because there is
13555     # no limit to the length of command line arguments.
13556     # Libtool will interpret -1 as no limit whatsoever
13557     lt_cv_sys_max_cmd_len=-1;
13558     ;;
13559
13560   cygwin* | mingw*)
13561     # On Win9x/ME, this test blows up -- it succeeds, but takes
13562     # about 5 minutes as the teststring grows exponentially.
13563     # Worse, since 9x/ME are not pre-emptively multitasking,
13564     # you end up with a "frozen" computer, even though with patience
13565     # the test eventually succeeds (with a max line length of 256k).
13566     # Instead, let's just punt: use the minimum linelength reported by
13567     # all of the supported platforms: 8192 (on NT/2K/XP).
13568     lt_cv_sys_max_cmd_len=8192;
13569     ;;
13570
13571   amigaos*)
13572     # On AmigaOS with pdksh, this test takes hours, literally.
13573     # So we just punt and use a minimum line length of 8192.
13574     lt_cv_sys_max_cmd_len=8192;
13575     ;;
13576
13577   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13578     # This has been around since 386BSD, at least.  Likely further.
13579     if test -x /sbin/sysctl; then
13580       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13581     elif test -x /usr/sbin/sysctl; then
13582       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13583     else
13584       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13585     fi
13586     # And add a safety zone
13587     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13588     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13589     ;;
13590
13591   interix*)
13592     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13593     lt_cv_sys_max_cmd_len=196608
13594     ;;
13595
13596   osf*)
13597     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13598     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13599     # nice to cause kernel panics so lets avoid the loop below.
13600     # First set a reasonable default.
13601     lt_cv_sys_max_cmd_len=16384
13602     #
13603     if test -x /sbin/sysconfig; then
13604       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13605         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13606       esac
13607     fi
13608     ;;
13609   sco3.2v5*)
13610     lt_cv_sys_max_cmd_len=102400
13611     ;;
13612   sysv5* | sco5v6* | sysv4.2uw2*)
13613     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13614     if test -n "$kargmax"; then
13615       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13616     else
13617       lt_cv_sys_max_cmd_len=32768
13618     fi
13619     ;;
13620   *)
13621     # If test is not a shell built-in, we'll probably end up computing a
13622     # maximum length that is only half of the actual maximum length, but
13623     # we can't tell.
13624     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13625     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13626                = "XX$teststring") >/dev/null 2>&1 &&
13627             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13628             lt_cv_sys_max_cmd_len=$new_result &&
13629             test $i != 17 # 1/2 MB should be enough
13630     do
13631       i=`expr $i + 1`
13632       teststring=$teststring$teststring
13633     done
13634     teststring=
13635     # Add a significant safety factor because C++ compilers can tack on massive
13636     # amounts of additional arguments before passing them to the linker.
13637     # It appears as though 1/2 is a usable value.
13638     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13639     ;;
13640   esac
13641
13642 fi
13643
13644 if test -n $lt_cv_sys_max_cmd_len ; then
13645   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13646 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13647 else
13648   { echo "$as_me:$LINENO: result: none" >&5
13649 echo "${ECHO_T}none" >&6; }
13650 fi
13651
13652
13653
13654
13655 # Check for command to grab the raw symbol name followed by C symbol from nm.
13656 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13657 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13658 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13659   echo $ECHO_N "(cached) $ECHO_C" >&6
13660 else
13661
13662 # These are sane defaults that work on at least a few old systems.
13663 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13664
13665 # Character class describing NM global symbol codes.
13666 symcode='[BCDEGRST]'
13667
13668 # Regexp to match symbols that can be accessed directly from C.
13669 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13670
13671 # Transform an extracted symbol line into a proper C declaration
13672 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13673
13674 # Transform an extracted symbol line into symbol name and symbol address
13675 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'"
13676
13677 # Define system-specific variables.
13678 case $host_os in
13679 aix*)
13680   symcode='[BCDT]'
13681   ;;
13682 cygwin* | mingw* | pw32*)
13683   symcode='[ABCDGISTW]'
13684   ;;
13685 hpux*) # Its linker distinguishes data from code symbols
13686   if test "$host_cpu" = ia64; then
13687     symcode='[ABCDEGRST]'
13688   fi
13689   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13690   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'"
13691   ;;
13692 linux*)
13693   if test "$host_cpu" = ia64; then
13694     symcode='[ABCDGIRSTW]'
13695     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13696     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
13697   fi
13698   ;;
13699 irix* | nonstopux*)
13700   symcode='[BCDEGRST]'
13701   ;;
13702 osf*)
13703   symcode='[BCDEGQRST]'
13704   ;;
13705 solaris*)
13706   symcode='[BDRT]'
13707   ;;
13708 sco3.2v5*)
13709   symcode='[DT]'
13710   ;;
13711 sysv4.2uw2*)
13712   symcode='[DT]'
13713   ;;
13714 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13715   symcode='[ABDT]'
13716   ;;
13717 sysv4)
13718   symcode='[DFNSTU]'
13719   ;;
13720 esac
13721
13722 # Handle CRLF in mingw tool chain
13723 opt_cr=
13724 case $build_os in
13725 mingw*)
13726   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13727   ;;
13728 esac
13729
13730 # If we're using GNU nm, then use its standard symbol codes.
13731 case `$NM -V 2>&1` in
13732 *GNU* | *'with BFD'*)
13733   symcode='[ABCDGIRSTW]' ;;
13734 esac
13735
13736 # Try without a prefix undercore, then with it.
13737 for ac_symprfx in "" "_"; do
13738
13739   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13740   symxfrm="\\1 $ac_symprfx\\2 \\2"
13741
13742   # Write the raw and C identifiers.
13743   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13744
13745   # Check to see that the pipe works correctly.
13746   pipe_works=no
13747
13748   rm -f conftest*
13749   cat > conftest.$ac_ext <<EOF
13750 #ifdef __cplusplus
13751 extern "C" {
13752 #endif
13753 char nm_test_var;
13754 void nm_test_func(){}
13755 #ifdef __cplusplus
13756 }
13757 #endif
13758 int main(){nm_test_var='a';nm_test_func();return(0);}
13759 EOF
13760
13761   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13762   (eval $ac_compile) 2>&5
13763   ac_status=$?
13764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765   (exit $ac_status); }; then
13766     # Now try to grab the symbols.
13767     nlist=conftest.nm
13768     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13769   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13770   ac_status=$?
13771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772   (exit $ac_status); } && test -s "$nlist"; then
13773       # Try sorting and uniquifying the output.
13774       if sort "$nlist" | uniq > "$nlist"T; then
13775         mv -f "$nlist"T "$nlist"
13776       else
13777         rm -f "$nlist"T
13778       fi
13779
13780       # Make sure that we snagged all the symbols we need.
13781       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13782         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13783           cat <<EOF > conftest.$ac_ext
13784 #ifdef __cplusplus
13785 extern "C" {
13786 #endif
13787
13788 EOF
13789           # Now generate the symbol file.
13790           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13791
13792           cat <<EOF >> conftest.$ac_ext
13793 #if defined (__STDC__) && __STDC__
13794 # define lt_ptr_t void *
13795 #else
13796 # define lt_ptr_t char *
13797 # define const
13798 #endif
13799
13800 /* The mapping between symbol names and symbols. */
13801 const struct {
13802   const char *name;
13803   lt_ptr_t address;
13804 }
13805 lt_preloaded_symbols[] =
13806 {
13807 EOF
13808           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13809           cat <<\EOF >> conftest.$ac_ext
13810   {0, (lt_ptr_t) 0}
13811 };
13812
13813 #ifdef __cplusplus
13814 }
13815 #endif
13816 EOF
13817           # Now try linking the two files.
13818           mv conftest.$ac_objext conftstm.$ac_objext
13819           lt_save_LIBS="$LIBS"
13820           lt_save_CFLAGS="$CFLAGS"
13821           LIBS="conftstm.$ac_objext"
13822           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13823           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13824   (eval $ac_link) 2>&5
13825   ac_status=$?
13826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13828             pipe_works=yes
13829           fi
13830           LIBS="$lt_save_LIBS"
13831           CFLAGS="$lt_save_CFLAGS"
13832         else
13833           echo "cannot find nm_test_func in $nlist" >&5
13834         fi
13835       else
13836         echo "cannot find nm_test_var in $nlist" >&5
13837       fi
13838     else
13839       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13840     fi
13841   else
13842     echo "$progname: failed program was:" >&5
13843     cat conftest.$ac_ext >&5
13844   fi
13845   rm -f conftest* conftst*
13846
13847   # Do not use the global_symbol_pipe unless it works.
13848   if test "$pipe_works" = yes; then
13849     break
13850   else
13851     lt_cv_sys_global_symbol_pipe=
13852   fi
13853 done
13854
13855 fi
13856
13857 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13858   lt_cv_sys_global_symbol_to_cdecl=
13859 fi
13860 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13861   { echo "$as_me:$LINENO: result: failed" >&5
13862 echo "${ECHO_T}failed" >&6; }
13863 else
13864   { echo "$as_me:$LINENO: result: ok" >&5
13865 echo "${ECHO_T}ok" >&6; }
13866 fi
13867
13868 { echo "$as_me:$LINENO: checking for objdir" >&5
13869 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13870 if test "${lt_cv_objdir+set}" = set; then
13871   echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873   rm -f .libs 2>/dev/null
13874 mkdir .libs 2>/dev/null
13875 if test -d .libs; then
13876   lt_cv_objdir=.libs
13877 else
13878   # MS-DOS does not allow filenames that begin with a dot.
13879   lt_cv_objdir=_libs
13880 fi
13881 rmdir .libs 2>/dev/null
13882 fi
13883 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13884 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13885 objdir=$lt_cv_objdir
13886
13887
13888
13889
13890
13891 case $host_os in
13892 aix3*)
13893   # AIX sometimes has problems with the GCC collect2 program.  For some
13894   # reason, if we set the COLLECT_NAMES environment variable, the problems
13895   # vanish in a puff of smoke.
13896   if test "X${COLLECT_NAMES+set}" != Xset; then
13897     COLLECT_NAMES=
13898     export COLLECT_NAMES
13899   fi
13900   ;;
13901 esac
13902
13903 # Sed substitution that helps us do robust quoting.  It backslashifies
13904 # metacharacters that are still active within double-quoted strings.
13905 Xsed='sed -e 1s/^X//'
13906 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13907
13908 # Same as above, but do not quote variable references.
13909 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13910
13911 # Sed substitution to delay expansion of an escaped shell variable in a
13912 # double_quote_subst'ed string.
13913 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13914
13915 # Sed substitution to avoid accidental globbing in evaled expressions
13916 no_glob_subst='s/\*/\\\*/g'
13917
13918 # Constants:
13919 rm="rm -f"
13920
13921 # Global variables:
13922 default_ofile=mklib
13923 can_build_shared=yes
13924
13925 # All known linkers require a `.a' archive for static linking (except MSVC,
13926 # which needs '.lib').
13927 libext=a
13928 ltmain="$ac_aux_dir/ltmain.sh"
13929 ofile="$default_ofile"
13930 with_gnu_ld="$lt_cv_prog_gnu_ld"
13931
13932 if test -n "$ac_tool_prefix"; then
13933   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13934 set dummy ${ac_tool_prefix}ar; ac_word=$2
13935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13937 if test "${ac_cv_prog_AR+set}" = set; then
13938   echo $ECHO_N "(cached) $ECHO_C" >&6
13939 else
13940   if test -n "$AR"; then
13941   ac_cv_prog_AR="$AR" # Let the user override the test.
13942 else
13943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13944 for as_dir in $PATH
13945 do
13946   IFS=$as_save_IFS
13947   test -z "$as_dir" && as_dir=.
13948   for ac_exec_ext in '' $ac_executable_extensions; do
13949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13950     ac_cv_prog_AR="${ac_tool_prefix}ar"
13951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13952     break 2
13953   fi
13954 done
13955 done
13956 IFS=$as_save_IFS
13957
13958 fi
13959 fi
13960 AR=$ac_cv_prog_AR
13961 if test -n "$AR"; then
13962   { echo "$as_me:$LINENO: result: $AR" >&5
13963 echo "${ECHO_T}$AR" >&6; }
13964 else
13965   { echo "$as_me:$LINENO: result: no" >&5
13966 echo "${ECHO_T}no" >&6; }
13967 fi
13968
13969
13970 fi
13971 if test -z "$ac_cv_prog_AR"; then
13972   ac_ct_AR=$AR
13973   # Extract the first word of "ar", so it can be a program name with args.
13974 set dummy ar; ac_word=$2
13975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13977 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13978   echo $ECHO_N "(cached) $ECHO_C" >&6
13979 else
13980   if test -n "$ac_ct_AR"; then
13981   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13982 else
13983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13984 for as_dir in $PATH
13985 do
13986   IFS=$as_save_IFS
13987   test -z "$as_dir" && as_dir=.
13988   for ac_exec_ext in '' $ac_executable_extensions; do
13989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13990     ac_cv_prog_ac_ct_AR="ar"
13991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13992     break 2
13993   fi
13994 done
13995 done
13996 IFS=$as_save_IFS
13997
13998 fi
13999 fi
14000 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14001 if test -n "$ac_ct_AR"; then
14002   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14003 echo "${ECHO_T}$ac_ct_AR" >&6; }
14004 else
14005   { echo "$as_me:$LINENO: result: no" >&5
14006 echo "${ECHO_T}no" >&6; }
14007 fi
14008
14009   if test "x$ac_ct_AR" = x; then
14010     AR="false"
14011   else
14012     case $cross_compiling:$ac_tool_warned in
14013 yes:)
14014 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14015 whose name does not start with the host triplet.  If you think this
14016 configuration is useful to you, please write to autoconf@gnu.org." >&5
14017 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14018 whose name does not start with the host triplet.  If you think this
14019 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14020 ac_tool_warned=yes ;;
14021 esac
14022     AR=$ac_ct_AR
14023   fi
14024 else
14025   AR="$ac_cv_prog_AR"
14026 fi
14027
14028 if test -n "$ac_tool_prefix"; then
14029   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14030 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14033 if test "${ac_cv_prog_RANLIB+set}" = set; then
14034   echo $ECHO_N "(cached) $ECHO_C" >&6
14035 else
14036   if test -n "$RANLIB"; then
14037   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14038 else
14039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14040 for as_dir in $PATH
14041 do
14042   IFS=$as_save_IFS
14043   test -z "$as_dir" && as_dir=.
14044   for ac_exec_ext in '' $ac_executable_extensions; do
14045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14046     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14048     break 2
14049   fi
14050 done
14051 done
14052 IFS=$as_save_IFS
14053
14054 fi
14055 fi
14056 RANLIB=$ac_cv_prog_RANLIB
14057 if test -n "$RANLIB"; then
14058   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14059 echo "${ECHO_T}$RANLIB" >&6; }
14060 else
14061   { echo "$as_me:$LINENO: result: no" >&5
14062 echo "${ECHO_T}no" >&6; }
14063 fi
14064
14065
14066 fi
14067 if test -z "$ac_cv_prog_RANLIB"; then
14068   ac_ct_RANLIB=$RANLIB
14069   # Extract the first word of "ranlib", so it can be a program name with args.
14070 set dummy ranlib; ac_word=$2
14071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14073 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14074   echo $ECHO_N "(cached) $ECHO_C" >&6
14075 else
14076   if test -n "$ac_ct_RANLIB"; then
14077   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14078 else
14079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14080 for as_dir in $PATH
14081 do
14082   IFS=$as_save_IFS
14083   test -z "$as_dir" && as_dir=.
14084   for ac_exec_ext in '' $ac_executable_extensions; do
14085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14086     ac_cv_prog_ac_ct_RANLIB="ranlib"
14087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14088     break 2
14089   fi
14090 done
14091 done
14092 IFS=$as_save_IFS
14093
14094 fi
14095 fi
14096 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14097 if test -n "$ac_ct_RANLIB"; then
14098   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14099 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14100 else
14101   { echo "$as_me:$LINENO: result: no" >&5
14102 echo "${ECHO_T}no" >&6; }
14103 fi
14104
14105   if test "x$ac_ct_RANLIB" = x; then
14106     RANLIB=":"
14107   else
14108     case $cross_compiling:$ac_tool_warned in
14109 yes:)
14110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14111 whose name does not start with the host triplet.  If you think this
14112 configuration is useful to you, please write to autoconf@gnu.org." >&5
14113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14114 whose name does not start with the host triplet.  If you think this
14115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14116 ac_tool_warned=yes ;;
14117 esac
14118     RANLIB=$ac_ct_RANLIB
14119   fi
14120 else
14121   RANLIB="$ac_cv_prog_RANLIB"
14122 fi
14123
14124 if test -n "$ac_tool_prefix"; then
14125   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14126 set dummy ${ac_tool_prefix}strip; ac_word=$2
14127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14129 if test "${ac_cv_prog_STRIP+set}" = set; then
14130   echo $ECHO_N "(cached) $ECHO_C" >&6
14131 else
14132   if test -n "$STRIP"; then
14133   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14134 else
14135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14136 for as_dir in $PATH
14137 do
14138   IFS=$as_save_IFS
14139   test -z "$as_dir" && as_dir=.
14140   for ac_exec_ext in '' $ac_executable_extensions; do
14141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14142     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14144     break 2
14145   fi
14146 done
14147 done
14148 IFS=$as_save_IFS
14149
14150 fi
14151 fi
14152 STRIP=$ac_cv_prog_STRIP
14153 if test -n "$STRIP"; then
14154   { echo "$as_me:$LINENO: result: $STRIP" >&5
14155 echo "${ECHO_T}$STRIP" >&6; }
14156 else
14157   { echo "$as_me:$LINENO: result: no" >&5
14158 echo "${ECHO_T}no" >&6; }
14159 fi
14160
14161
14162 fi
14163 if test -z "$ac_cv_prog_STRIP"; then
14164   ac_ct_STRIP=$STRIP
14165   # Extract the first word of "strip", so it can be a program name with args.
14166 set dummy strip; ac_word=$2
14167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14169 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14170   echo $ECHO_N "(cached) $ECHO_C" >&6
14171 else
14172   if test -n "$ac_ct_STRIP"; then
14173   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14174 else
14175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176 for as_dir in $PATH
14177 do
14178   IFS=$as_save_IFS
14179   test -z "$as_dir" && as_dir=.
14180   for ac_exec_ext in '' $ac_executable_extensions; do
14181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14182     ac_cv_prog_ac_ct_STRIP="strip"
14183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14184     break 2
14185   fi
14186 done
14187 done
14188 IFS=$as_save_IFS
14189
14190 fi
14191 fi
14192 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14193 if test -n "$ac_ct_STRIP"; then
14194   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14195 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14196 else
14197   { echo "$as_me:$LINENO: result: no" >&5
14198 echo "${ECHO_T}no" >&6; }
14199 fi
14200
14201   if test "x$ac_ct_STRIP" = x; then
14202     STRIP=":"
14203   else
14204     case $cross_compiling:$ac_tool_warned in
14205 yes:)
14206 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14207 whose name does not start with the host triplet.  If you think this
14208 configuration is useful to you, please write to autoconf@gnu.org." >&5
14209 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14210 whose name does not start with the host triplet.  If you think this
14211 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14212 ac_tool_warned=yes ;;
14213 esac
14214     STRIP=$ac_ct_STRIP
14215   fi
14216 else
14217   STRIP="$ac_cv_prog_STRIP"
14218 fi
14219
14220
14221 old_CC="$CC"
14222 old_CFLAGS="$CFLAGS"
14223
14224 # Set sane defaults for various variables
14225 test -z "$AR" && AR=ar
14226 test -z "$AR_FLAGS" && AR_FLAGS=cru
14227 test -z "$AS" && AS=as
14228 test -z "$CC" && CC=cc
14229 test -z "$LTCC" && LTCC=$CC
14230 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14231 test -z "$DLLTOOL" && DLLTOOL=dlltool
14232 test -z "$LD" && LD=ld
14233 test -z "$LN_S" && LN_S="ln -s"
14234 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14235 test -z "$NM" && NM=nm
14236 test -z "$SED" && SED=sed
14237 test -z "$OBJDUMP" && OBJDUMP=objdump
14238 test -z "$RANLIB" && RANLIB=:
14239 test -z "$STRIP" && STRIP=:
14240 test -z "$ac_objext" && ac_objext=o
14241
14242 # Determine commands to create old-style static archives.
14243 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14244 old_postinstall_cmds='chmod 644 $oldlib'
14245 old_postuninstall_cmds=
14246
14247 if test -n "$RANLIB"; then
14248   case $host_os in
14249   openbsd*)
14250     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14251     ;;
14252   *)
14253     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14254     ;;
14255   esac
14256   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14257 fi
14258
14259 for cc_temp in $compiler""; do
14260   case $cc_temp in
14261     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14262     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14263     \-*) ;;
14264     *) break;;
14265   esac
14266 done
14267 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14268
14269
14270 # Only perform the check for file, if the check method requires it
14271 case $deplibs_check_method in
14272 file_magic*)
14273   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14274     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14275 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14276 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14277   echo $ECHO_N "(cached) $ECHO_C" >&6
14278 else
14279   case $MAGIC_CMD in
14280 [\\/*] |  ?:[\\/]*)
14281   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14282   ;;
14283 *)
14284   lt_save_MAGIC_CMD="$MAGIC_CMD"
14285   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14286   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14287   for ac_dir in $ac_dummy; do
14288     IFS="$lt_save_ifs"
14289     test -z "$ac_dir" && ac_dir=.
14290     if test -f $ac_dir/${ac_tool_prefix}file; then
14291       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14292       if test -n "$file_magic_test_file"; then
14293         case $deplibs_check_method in
14294         "file_magic "*)
14295           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14296           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14297           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14298             $EGREP "$file_magic_regex" > /dev/null; then
14299             :
14300           else
14301             cat <<EOF 1>&2
14302
14303 *** Warning: the command libtool uses to detect shared libraries,
14304 *** $file_magic_cmd, produces output that libtool cannot recognize.
14305 *** The result is that libtool may fail to recognize shared libraries
14306 *** as such.  This will affect the creation of libtool libraries that
14307 *** depend on shared libraries, but programs linked with such libtool
14308 *** libraries will work regardless of this problem.  Nevertheless, you
14309 *** may want to report the problem to your system manager and/or to
14310 *** bug-libtool@gnu.org
14311
14312 EOF
14313           fi ;;
14314         esac
14315       fi
14316       break
14317     fi
14318   done
14319   IFS="$lt_save_ifs"
14320   MAGIC_CMD="$lt_save_MAGIC_CMD"
14321   ;;
14322 esac
14323 fi
14324
14325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14326 if test -n "$MAGIC_CMD"; then
14327   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14328 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14329 else
14330   { echo "$as_me:$LINENO: result: no" >&5
14331 echo "${ECHO_T}no" >&6; }
14332 fi
14333
14334 if test -z "$lt_cv_path_MAGIC_CMD"; then
14335   if test -n "$ac_tool_prefix"; then
14336     { echo "$as_me:$LINENO: checking for file" >&5
14337 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14338 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14339   echo $ECHO_N "(cached) $ECHO_C" >&6
14340 else
14341   case $MAGIC_CMD in
14342 [\\/*] |  ?:[\\/]*)
14343   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14344   ;;
14345 *)
14346   lt_save_MAGIC_CMD="$MAGIC_CMD"
14347   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14348   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14349   for ac_dir in $ac_dummy; do
14350     IFS="$lt_save_ifs"
14351     test -z "$ac_dir" && ac_dir=.
14352     if test -f $ac_dir/file; then
14353       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14354       if test -n "$file_magic_test_file"; then
14355         case $deplibs_check_method in
14356         "file_magic "*)
14357           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14358           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14359           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14360             $EGREP "$file_magic_regex" > /dev/null; then
14361             :
14362           else
14363             cat <<EOF 1>&2
14364
14365 *** Warning: the command libtool uses to detect shared libraries,
14366 *** $file_magic_cmd, produces output that libtool cannot recognize.
14367 *** The result is that libtool may fail to recognize shared libraries
14368 *** as such.  This will affect the creation of libtool libraries that
14369 *** depend on shared libraries, but programs linked with such libtool
14370 *** libraries will work regardless of this problem.  Nevertheless, you
14371 *** may want to report the problem to your system manager and/or to
14372 *** bug-libtool@gnu.org
14373
14374 EOF
14375           fi ;;
14376         esac
14377       fi
14378       break
14379     fi
14380   done
14381   IFS="$lt_save_ifs"
14382   MAGIC_CMD="$lt_save_MAGIC_CMD"
14383   ;;
14384 esac
14385 fi
14386
14387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14388 if test -n "$MAGIC_CMD"; then
14389   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14390 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14391 else
14392   { echo "$as_me:$LINENO: result: no" >&5
14393 echo "${ECHO_T}no" >&6; }
14394 fi
14395
14396   else
14397     MAGIC_CMD=:
14398   fi
14399 fi
14400
14401   fi
14402   ;;
14403 esac
14404
14405 enable_dlopen=yes
14406 enable_win32_dll=no
14407
14408 # Check whether --enable-libtool-lock was given.
14409 if test "${enable_libtool_lock+set}" = set; then
14410   enableval=$enable_libtool_lock;
14411 fi
14412
14413 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14414
14415
14416 # Check whether --with-pic was given.
14417 if test "${with_pic+set}" = set; then
14418   withval=$with_pic; pic_mode="$withval"
14419 else
14420   pic_mode=default
14421 fi
14422
14423 test -z "$pic_mode" && pic_mode=default
14424
14425 # Use C for the default configuration in the libtool script
14426 tagname=
14427 lt_save_CC="$CC"
14428 ac_ext=c
14429 ac_cpp='$CPP $CPPFLAGS'
14430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14433
14434
14435 # Source file extension for C test sources.
14436 ac_ext=c
14437
14438 # Object file extension for compiled C test sources.
14439 objext=o
14440 objext=$objext
14441
14442 # Code to be used in simple compile tests
14443 lt_simple_compile_test_code="int some_variable = 0;\n"
14444
14445 # Code to be used in simple link tests
14446 lt_simple_link_test_code='int main(){return(0);}\n'
14447
14448
14449 # If no C compiler was specified, use CC.
14450 LTCC=${LTCC-"$CC"}
14451
14452 # If no C compiler flags were specified, use CFLAGS.
14453 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14454
14455 # Allow CC to be a program name with arguments.
14456 compiler=$CC
14457
14458
14459 # save warnings/boilerplate of simple test code
14460 ac_outfile=conftest.$ac_objext
14461 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14462 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14463 _lt_compiler_boilerplate=`cat conftest.err`
14464 $rm conftest*
14465
14466 ac_outfile=conftest.$ac_objext
14467 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14468 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14469 _lt_linker_boilerplate=`cat conftest.err`
14470 $rm conftest*
14471
14472
14473
14474 lt_prog_compiler_no_builtin_flag=
14475
14476 if test "$GCC" = yes; then
14477   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14478
14479
14480 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14481 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14482 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14483   echo $ECHO_N "(cached) $ECHO_C" >&6
14484 else
14485   lt_cv_prog_compiler_rtti_exceptions=no
14486   ac_outfile=conftest.$ac_objext
14487    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14488    lt_compiler_flag="-fno-rtti -fno-exceptions"
14489    # Insert the option either (1) after the last *FLAGS variable, or
14490    # (2) before a word containing "conftest.", or (3) at the end.
14491    # Note that $ac_compile itself does not contain backslashes and begins
14492    # with a dollar sign (not a hyphen), so the echo should work correctly.
14493    # The option is referenced via a variable to avoid confusing sed.
14494    lt_compile=`echo "$ac_compile" | $SED \
14495    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14496    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14497    -e 's:$: $lt_compiler_flag:'`
14498    (eval echo "\"\$as_me:14498: $lt_compile\"" >&5)
14499    (eval "$lt_compile" 2>conftest.err)
14500    ac_status=$?
14501    cat conftest.err >&5
14502    echo "$as_me:14502: \$? = $ac_status" >&5
14503    if (exit $ac_status) && test -s "$ac_outfile"; then
14504      # The compiler can only warn and ignore the option if not recognized
14505      # So say no if there are warnings other than the usual output.
14506      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14507      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14508      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14509        lt_cv_prog_compiler_rtti_exceptions=yes
14510      fi
14511    fi
14512    $rm conftest*
14513
14514 fi
14515 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14516 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14517
14518 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14519     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14520 else
14521     :
14522 fi
14523
14524 fi
14525
14526 lt_prog_compiler_wl=
14527 lt_prog_compiler_pic=
14528 lt_prog_compiler_static=
14529
14530 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14531 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14532
14533   if test "$GCC" = yes; then
14534     lt_prog_compiler_wl='-Wl,'
14535     lt_prog_compiler_static='-static'
14536
14537     case $host_os in
14538       aix*)
14539       # All AIX code is PIC.
14540       if test "$host_cpu" = ia64; then
14541         # AIX 5 now supports IA64 processor
14542         lt_prog_compiler_static='-Bstatic'
14543       fi
14544       ;;
14545
14546     amigaos*)
14547       # FIXME: we need at least 68020 code to build shared libraries, but
14548       # adding the `-m68020' flag to GCC prevents building anything better,
14549       # like `-m68040'.
14550       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14551       ;;
14552
14553     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14554       # PIC is the default for these OSes.
14555       ;;
14556
14557     mingw* | pw32* | os2*)
14558       # This hack is so that the source file can tell whether it is being
14559       # built for inclusion in a dll (and should export symbols for example).
14560       lt_prog_compiler_pic='-DDLL_EXPORT'
14561       ;;
14562
14563     darwin* | rhapsody*)
14564       # PIC is the default on this platform
14565       # Common symbols not allowed in MH_DYLIB files
14566       lt_prog_compiler_pic='-fno-common'
14567       ;;
14568
14569     interix3*)
14570       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14571       # Instead, we relocate shared libraries at runtime.
14572       ;;
14573
14574     msdosdjgpp*)
14575       # Just because we use GCC doesn't mean we suddenly get shared libraries
14576       # on systems that don't support them.
14577       lt_prog_compiler_can_build_shared=no
14578       enable_shared=no
14579       ;;
14580
14581     sysv4*MP*)
14582       if test -d /usr/nec; then
14583         lt_prog_compiler_pic=-Kconform_pic
14584       fi
14585       ;;
14586
14587     hpux*)
14588       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14589       # not for PA HP-UX.
14590       case $host_cpu in
14591       hppa*64*|ia64*)
14592         # +Z the default
14593         ;;
14594       *)
14595         lt_prog_compiler_pic='-fPIC'
14596         ;;
14597       esac
14598       ;;
14599
14600     *)
14601       lt_prog_compiler_pic='-fPIC'
14602       ;;
14603     esac
14604   else
14605     # PORTME Check for flag to pass linker flags through the system compiler.
14606     case $host_os in
14607     aix*)
14608       lt_prog_compiler_wl='-Wl,'
14609       if test "$host_cpu" = ia64; then
14610         # AIX 5 now supports IA64 processor
14611         lt_prog_compiler_static='-Bstatic'
14612       else
14613         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14614       fi
14615       ;;
14616       darwin*)
14617         # PIC is the default on this platform
14618         # Common symbols not allowed in MH_DYLIB files
14619        case $cc_basename in
14620          xlc*)
14621          lt_prog_compiler_pic='-qnocommon'
14622          lt_prog_compiler_wl='-Wl,'
14623          ;;
14624        esac
14625        ;;
14626
14627     mingw* | pw32* | os2*)
14628       # This hack is so that the source file can tell whether it is being
14629       # built for inclusion in a dll (and should export symbols for example).
14630       lt_prog_compiler_pic='-DDLL_EXPORT'
14631       ;;
14632
14633     hpux9* | hpux10* | hpux11*)
14634       lt_prog_compiler_wl='-Wl,'
14635       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14636       # not for PA HP-UX.
14637       case $host_cpu in
14638       hppa*64*|ia64*)
14639         # +Z the default
14640         ;;
14641       *)
14642         lt_prog_compiler_pic='+Z'
14643         ;;
14644       esac
14645       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14646       lt_prog_compiler_static='${wl}-a ${wl}archive'
14647       ;;
14648
14649     irix5* | irix6* | nonstopux*)
14650       lt_prog_compiler_wl='-Wl,'
14651       # PIC (with -KPIC) is the default.
14652       lt_prog_compiler_static='-non_shared'
14653       ;;
14654
14655     newsos6)
14656       lt_prog_compiler_pic='-KPIC'
14657       lt_prog_compiler_static='-Bstatic'
14658       ;;
14659
14660     linux*)
14661       case $cc_basename in
14662       icc* | ecc*)
14663         lt_prog_compiler_wl='-Wl,'
14664         lt_prog_compiler_pic='-KPIC'
14665         lt_prog_compiler_static='-static'
14666         ;;
14667       pgcc* | pgf77* | pgf90* | pgf95*)
14668         # Portland Group compilers (*not* the Pentium gcc compiler,
14669         # which looks to be a dead project)
14670         lt_prog_compiler_wl='-Wl,'
14671         lt_prog_compiler_pic='-fpic'
14672         lt_prog_compiler_static='-Bstatic'
14673         ;;
14674       ccc*)
14675         lt_prog_compiler_wl='-Wl,'
14676         # All Alpha code is PIC.
14677         lt_prog_compiler_static='-non_shared'
14678         ;;
14679       esac
14680       ;;
14681
14682     osf3* | osf4* | osf5*)
14683       lt_prog_compiler_wl='-Wl,'
14684       # All OSF/1 code is PIC.
14685       lt_prog_compiler_static='-non_shared'
14686       ;;
14687
14688     solaris*)
14689       lt_prog_compiler_pic='-KPIC'
14690       lt_prog_compiler_static='-Bstatic'
14691       case $cc_basename in
14692       f77* | f90* | f95*)
14693         lt_prog_compiler_wl='-Qoption ld ';;
14694       *)
14695         lt_prog_compiler_wl='-Wl,';;
14696       esac
14697       ;;
14698
14699     sunos4*)
14700       lt_prog_compiler_wl='-Qoption ld '
14701       lt_prog_compiler_pic='-PIC'
14702       lt_prog_compiler_static='-Bstatic'
14703       ;;
14704
14705     sysv4 | sysv4.2uw2* | sysv4.3*)
14706       lt_prog_compiler_wl='-Wl,'
14707       lt_prog_compiler_pic='-KPIC'
14708       lt_prog_compiler_static='-Bstatic'
14709       ;;
14710
14711     sysv4*MP*)
14712       if test -d /usr/nec ;then
14713         lt_prog_compiler_pic='-Kconform_pic'
14714         lt_prog_compiler_static='-Bstatic'
14715       fi
14716       ;;
14717
14718     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14719       lt_prog_compiler_wl='-Wl,'
14720       lt_prog_compiler_pic='-KPIC'
14721       lt_prog_compiler_static='-Bstatic'
14722       ;;
14723
14724     unicos*)
14725       lt_prog_compiler_wl='-Wl,'
14726       lt_prog_compiler_can_build_shared=no
14727       ;;
14728
14729     uts4*)
14730       lt_prog_compiler_pic='-pic'
14731       lt_prog_compiler_static='-Bstatic'
14732       ;;
14733
14734     *)
14735       lt_prog_compiler_can_build_shared=no
14736       ;;
14737     esac
14738   fi
14739
14740 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14741 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14742
14743 #
14744 # Check to make sure the PIC flag actually works.
14745 #
14746 if test -n "$lt_prog_compiler_pic"; then
14747
14748 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14749 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14750 if test "${lt_prog_compiler_pic_works+set}" = set; then
14751   echo $ECHO_N "(cached) $ECHO_C" >&6
14752 else
14753   lt_prog_compiler_pic_works=no
14754   ac_outfile=conftest.$ac_objext
14755    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14756    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14757    # Insert the option either (1) after the last *FLAGS variable, or
14758    # (2) before a word containing "conftest.", or (3) at the end.
14759    # Note that $ac_compile itself does not contain backslashes and begins
14760    # with a dollar sign (not a hyphen), so the echo should work correctly.
14761    # The option is referenced via a variable to avoid confusing sed.
14762    lt_compile=`echo "$ac_compile" | $SED \
14763    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14764    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14765    -e 's:$: $lt_compiler_flag:'`
14766    (eval echo "\"\$as_me:14766: $lt_compile\"" >&5)
14767    (eval "$lt_compile" 2>conftest.err)
14768    ac_status=$?
14769    cat conftest.err >&5
14770    echo "$as_me:14770: \$? = $ac_status" >&5
14771    if (exit $ac_status) && test -s "$ac_outfile"; then
14772      # The compiler can only warn and ignore the option if not recognized
14773      # So say no if there are warnings other than the usual output.
14774      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14775      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14776      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14777        lt_prog_compiler_pic_works=yes
14778      fi
14779    fi
14780    $rm conftest*
14781
14782 fi
14783 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14784 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14785
14786 if test x"$lt_prog_compiler_pic_works" = xyes; then
14787     case $lt_prog_compiler_pic in
14788      "" | " "*) ;;
14789      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14790      esac
14791 else
14792     lt_prog_compiler_pic=
14793      lt_prog_compiler_can_build_shared=no
14794 fi
14795
14796 fi
14797 case $host_os in
14798   # For platforms which do not support PIC, -DPIC is meaningless:
14799   *djgpp*)
14800     lt_prog_compiler_pic=
14801     ;;
14802   *)
14803     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14804     ;;
14805 esac
14806
14807 #
14808 # Check to make sure the static flag actually works.
14809 #
14810 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14811 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14812 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14813 if test "${lt_prog_compiler_static_works+set}" = set; then
14814   echo $ECHO_N "(cached) $ECHO_C" >&6
14815 else
14816   lt_prog_compiler_static_works=no
14817    save_LDFLAGS="$LDFLAGS"
14818    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14819    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14820    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14821      # The linker can only warn and ignore the option if not recognized
14822      # So say no if there are warnings
14823      if test -s conftest.err; then
14824        # Append any errors to the config.log.
14825        cat conftest.err 1>&5
14826        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14827        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14828        if diff conftest.exp conftest.er2 >/dev/null; then
14829          lt_prog_compiler_static_works=yes
14830        fi
14831      else
14832        lt_prog_compiler_static_works=yes
14833      fi
14834    fi
14835    $rm conftest*
14836    LDFLAGS="$save_LDFLAGS"
14837
14838 fi
14839 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14840 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14841
14842 if test x"$lt_prog_compiler_static_works" = xyes; then
14843     :
14844 else
14845     lt_prog_compiler_static=
14846 fi
14847
14848
14849 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14850 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14851 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14852   echo $ECHO_N "(cached) $ECHO_C" >&6
14853 else
14854   lt_cv_prog_compiler_c_o=no
14855    $rm -r conftest 2>/dev/null
14856    mkdir conftest
14857    cd conftest
14858    mkdir out
14859    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14860
14861    lt_compiler_flag="-o out/conftest2.$ac_objext"
14862    # Insert the option either (1) after the last *FLAGS variable, or
14863    # (2) before a word containing "conftest.", or (3) at the end.
14864    # Note that $ac_compile itself does not contain backslashes and begins
14865    # with a dollar sign (not a hyphen), so the echo should work correctly.
14866    lt_compile=`echo "$ac_compile" | $SED \
14867    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14868    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14869    -e 's:$: $lt_compiler_flag:'`
14870    (eval echo "\"\$as_me:14870: $lt_compile\"" >&5)
14871    (eval "$lt_compile" 2>out/conftest.err)
14872    ac_status=$?
14873    cat out/conftest.err >&5
14874    echo "$as_me:14874: \$? = $ac_status" >&5
14875    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14876    then
14877      # The compiler can only warn and ignore the option if not recognized
14878      # So say no if there are warnings
14879      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14880      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14881      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14882        lt_cv_prog_compiler_c_o=yes
14883      fi
14884    fi
14885    chmod u+w . 2>&5
14886    $rm conftest*
14887    # SGI C++ compiler will create directory out/ii_files/ for
14888    # template instantiation
14889    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14890    $rm out/* && rmdir out
14891    cd ..
14892    rmdir conftest
14893    $rm conftest*
14894
14895 fi
14896 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14897 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14898
14899
14900 hard_links="nottested"
14901 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14902   # do not overwrite the value of need_locks provided by the user
14903   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14904 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14905   hard_links=yes
14906   $rm conftest*
14907   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14908   touch conftest.a
14909   ln conftest.a conftest.b 2>&5 || hard_links=no
14910   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14911   { echo "$as_me:$LINENO: result: $hard_links" >&5
14912 echo "${ECHO_T}$hard_links" >&6; }
14913   if test "$hard_links" = no; then
14914     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14915 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14916     need_locks=warn
14917   fi
14918 else
14919   need_locks=no
14920 fi
14921
14922 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14923 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14924
14925   runpath_var=
14926   allow_undefined_flag=
14927   enable_shared_with_static_runtimes=no
14928   archive_cmds=
14929   archive_expsym_cmds=
14930   old_archive_From_new_cmds=
14931   old_archive_from_expsyms_cmds=
14932   export_dynamic_flag_spec=
14933   whole_archive_flag_spec=
14934   thread_safe_flag_spec=
14935   hardcode_libdir_flag_spec=
14936   hardcode_libdir_flag_spec_ld=
14937   hardcode_libdir_separator=
14938   hardcode_direct=no
14939   hardcode_minus_L=no
14940   hardcode_shlibpath_var=unsupported
14941   link_all_deplibs=unknown
14942   hardcode_automatic=no
14943   module_cmds=
14944   module_expsym_cmds=
14945   always_export_symbols=no
14946   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14947   # include_expsyms should be a list of space-separated symbols to be *always*
14948   # included in the symbol list
14949   include_expsyms=
14950   # exclude_expsyms can be an extended regexp of symbols to exclude
14951   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14952   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14953   # as well as any symbol that contains `d'.
14954   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14955   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14956   # platforms (ab)use it in PIC code, but their linkers get confused if
14957   # the symbol is explicitly referenced.  Since portable code cannot
14958   # rely on this symbol name, it's probably fine to never include it in
14959   # preloaded symbol tables.
14960   extract_expsyms_cmds=
14961   # Just being paranoid about ensuring that cc_basename is set.
14962   for cc_temp in $compiler""; do
14963   case $cc_temp in
14964     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14965     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14966     \-*) ;;
14967     *) break;;
14968   esac
14969 done
14970 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14971
14972   case $host_os in
14973   cygwin* | mingw* | pw32*)
14974     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14975     # When not using gcc, we currently assume that we are using
14976     # Microsoft Visual C++.
14977     if test "$GCC" != yes; then
14978       with_gnu_ld=no
14979     fi
14980     ;;
14981   interix*)
14982     # we just hope/assume this is gcc and not c89 (= MSVC++)
14983     with_gnu_ld=yes
14984     ;;
14985   openbsd*)
14986     with_gnu_ld=no
14987     ;;
14988   esac
14989
14990   ld_shlibs=yes
14991   if test "$with_gnu_ld" = yes; then
14992     # If archive_cmds runs LD, not CC, wlarc should be empty
14993     wlarc='${wl}'
14994
14995     # Set some defaults for GNU ld with shared library support. These
14996     # are reset later if shared libraries are not supported. Putting them
14997     # here allows them to be overridden if necessary.
14998     runpath_var=LD_RUN_PATH
14999     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15000     export_dynamic_flag_spec='${wl}--export-dynamic'
15001     # ancient GNU ld didn't support --whole-archive et. al.
15002     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15003         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15004       else
15005         whole_archive_flag_spec=
15006     fi
15007     supports_anon_versioning=no
15008     case `$LD -v 2>/dev/null` in
15009       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15010       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15011       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15012       *\ 2.11.*) ;; # other 2.11 versions
15013       *) supports_anon_versioning=yes ;;
15014     esac
15015
15016     # See if GNU ld supports shared libraries.
15017     case $host_os in
15018     aix3* | aix4* | aix5*)
15019       # On AIX/PPC, the GNU linker is very broken
15020       if test "$host_cpu" != ia64; then
15021         ld_shlibs=no
15022         cat <<EOF 1>&2
15023
15024 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15025 *** to be unable to reliably create shared libraries on AIX.
15026 *** Therefore, libtool is disabling shared libraries support.  If you
15027 *** really care for shared libraries, you may want to modify your PATH
15028 *** so that a non-GNU linker is found, and then restart.
15029
15030 EOF
15031       fi
15032       ;;
15033
15034     amigaos*)
15035       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)'
15036       hardcode_libdir_flag_spec='-L$libdir'
15037       hardcode_minus_L=yes
15038
15039       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15040       # that the semantics of dynamic libraries on AmigaOS, at least up
15041       # to version 4, is to share data among multiple programs linked
15042       # with the same dynamic library.  Since this doesn't match the
15043       # behavior of shared libraries on other platforms, we can't use
15044       # them.
15045       ld_shlibs=no
15046       ;;
15047
15048     beos*)
15049       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15050         allow_undefined_flag=unsupported
15051         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15052         # support --undefined.  This deserves some investigation.  FIXME
15053         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15054       else
15055         ld_shlibs=no
15056       fi
15057       ;;
15058
15059     cygwin* | mingw* | pw32*)
15060       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15061       # as there is no search path for DLLs.
15062       hardcode_libdir_flag_spec='-L$libdir'
15063       allow_undefined_flag=unsupported
15064       always_export_symbols=no
15065       enable_shared_with_static_runtimes=yes
15066       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15067
15068       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15069         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15070         # If the export-symbols file already is a .def file (1st line
15071         # is EXPORTS), use it as is; otherwise, prepend...
15072         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15073           cp $export_symbols $output_objdir/$soname.def;
15074         else
15075           echo EXPORTS > $output_objdir/$soname.def;
15076           cat $export_symbols >> $output_objdir/$soname.def;
15077         fi~
15078         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15079       else
15080         ld_shlibs=no
15081       fi
15082       ;;
15083
15084     interix3*)
15085       hardcode_direct=no
15086       hardcode_shlibpath_var=no
15087       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15088       export_dynamic_flag_spec='${wl}-E'
15089       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15090       # Instead, shared libraries are loaded at an image base (0x10000000 by
15091       # default) and relocated if they conflict, which is a slow very memory
15092       # consuming and fragmenting process.  To avoid this, we pick a random,
15093       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15094       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15095       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15096       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'
15097       ;;
15098
15099     linux*)
15100       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15101         tmp_addflag=
15102         case $cc_basename,$host_cpu in
15103         pgcc*)                          # Portland Group C compiler
15104           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'
15105           tmp_addflag=' $pic_flag'
15106           ;;
15107         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15108           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'
15109           tmp_addflag=' $pic_flag -Mnomain' ;;
15110         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15111           tmp_addflag=' -i_dynamic' ;;
15112         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15113           tmp_addflag=' -i_dynamic -nofor_main' ;;
15114         ifc* | ifort*)                  # Intel Fortran compiler
15115           tmp_addflag=' -nofor_main' ;;
15116         esac
15117         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15118
15119         if test $supports_anon_versioning = yes; then
15120           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15121   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15122   $echo "local: *; };" >> $output_objdir/$libname.ver~
15123           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15124         fi
15125       else
15126         ld_shlibs=no
15127       fi
15128       ;;
15129
15130     netbsd*)
15131       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15132         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15133         wlarc=
15134       else
15135         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15136         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15137       fi
15138       ;;
15139
15140     solaris*)
15141       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15142         ld_shlibs=no
15143         cat <<EOF 1>&2
15144
15145 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15146 *** create shared libraries on Solaris systems.  Therefore, libtool
15147 *** is disabling shared libraries support.  We urge you to upgrade GNU
15148 *** binutils to release 2.9.1 or newer.  Another option is to modify
15149 *** your PATH or compiler configuration so that the native linker is
15150 *** used, and then restart.
15151
15152 EOF
15153       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15154         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15155         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15156       else
15157         ld_shlibs=no
15158       fi
15159       ;;
15160
15161     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15162       case `$LD -v 2>&1` in
15163         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15164         ld_shlibs=no
15165         cat <<_LT_EOF 1>&2
15166
15167 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15168 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15169 *** is disabling shared libraries support.  We urge you to upgrade GNU
15170 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15171 *** your PATH or compiler configuration so that the native linker is
15172 *** used, and then restart.
15173
15174 _LT_EOF
15175         ;;
15176         *)
15177           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15178             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15179             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15180             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15181           else
15182             ld_shlibs=no
15183           fi
15184         ;;
15185       esac
15186       ;;
15187
15188     sunos4*)
15189       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15190       wlarc=
15191       hardcode_direct=yes
15192       hardcode_shlibpath_var=no
15193       ;;
15194
15195     *)
15196       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15197         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15198         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15199       else
15200         ld_shlibs=no
15201       fi
15202       ;;
15203     esac
15204
15205     if test "$ld_shlibs" = no; then
15206       runpath_var=
15207       hardcode_libdir_flag_spec=
15208       export_dynamic_flag_spec=
15209       whole_archive_flag_spec=
15210     fi
15211   else
15212     # PORTME fill in a description of your system's linker (not GNU ld)
15213     case $host_os in
15214     aix3*)
15215       allow_undefined_flag=unsupported
15216       always_export_symbols=yes
15217       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'
15218       # Note: this linker hardcodes the directories in LIBPATH if there
15219       # are no directories specified by -L.
15220       hardcode_minus_L=yes
15221       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15222         # Neither direct hardcoding nor static linking is supported with a
15223         # broken collect2.
15224         hardcode_direct=unsupported
15225       fi
15226       ;;
15227
15228     aix4* | aix5*)
15229       if test "$host_cpu" = ia64; then
15230         # On IA64, the linker does run time linking by default, so we don't
15231         # have to do anything special.
15232         aix_use_runtimelinking=no
15233         exp_sym_flag='-Bexport'
15234         no_entry_flag=""
15235       else
15236         # If we're using GNU nm, then we don't want the "-C" option.
15237         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15238         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15239           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'
15240         else
15241           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'
15242         fi
15243         aix_use_runtimelinking=no
15244
15245         # Test if we are trying to use run time linking or normal
15246         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15247         # need to do runtime linking.
15248         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15249           for ld_flag in $LDFLAGS; do
15250           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15251             aix_use_runtimelinking=yes
15252             break
15253           fi
15254           done
15255           ;;
15256         esac
15257
15258         exp_sym_flag='-bexport'
15259         no_entry_flag='-bnoentry'
15260       fi
15261
15262       # When large executables or shared objects are built, AIX ld can
15263       # have problems creating the table of contents.  If linking a library
15264       # or program results in "error TOC overflow" add -mminimal-toc to
15265       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15266       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15267
15268       archive_cmds=''
15269       hardcode_direct=yes
15270       hardcode_libdir_separator=':'
15271       link_all_deplibs=yes
15272
15273       if test "$GCC" = yes; then
15274         case $host_os in aix4.[012]|aix4.[012].*)
15275         # We only want to do this on AIX 4.2 and lower, the check
15276         # below for broken collect2 doesn't work under 4.3+
15277           collect2name=`${CC} -print-prog-name=collect2`
15278           if test -f "$collect2name" && \
15279            strings "$collect2name" | grep resolve_lib_name >/dev/null
15280           then
15281           # We have reworked collect2
15282           hardcode_direct=yes
15283           else
15284           # We have old collect2
15285           hardcode_direct=unsupported
15286           # It fails to find uninstalled libraries when the uninstalled
15287           # path is not listed in the libpath.  Setting hardcode_minus_L
15288           # to unsupported forces relinking
15289           hardcode_minus_L=yes
15290           hardcode_libdir_flag_spec='-L$libdir'
15291           hardcode_libdir_separator=
15292           fi
15293           ;;
15294         esac
15295         shared_flag='-shared'
15296         if test "$aix_use_runtimelinking" = yes; then
15297           shared_flag="$shared_flag "'${wl}-G'
15298         fi
15299       else
15300         # not using gcc
15301         if test "$host_cpu" = ia64; then
15302         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15303         # chokes on -Wl,-G. The following line is correct:
15304           shared_flag='-G'
15305         else
15306           if test "$aix_use_runtimelinking" = yes; then
15307             shared_flag='${wl}-G'
15308           else
15309             shared_flag='${wl}-bM:SRE'
15310           fi
15311         fi
15312       fi
15313
15314       # It seems that -bexpall does not export symbols beginning with
15315       # underscore (_), so it is better to generate a list of symbols to export.
15316       always_export_symbols=yes
15317       if test "$aix_use_runtimelinking" = yes; then
15318         # Warning - without using the other runtime loading flags (-brtl),
15319         # -berok will link without error, but may produce a broken library.
15320         allow_undefined_flag='-berok'
15321        # Determine the default libpath from the value encoded in an empty executable.
15322        cat >conftest.$ac_ext <<_ACEOF
15323 /* confdefs.h.  */
15324 _ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h.  */
15328
15329 int
15330 main ()
15331 {
15332
15333   ;
15334   return 0;
15335 }
15336 _ACEOF
15337 rm -f conftest.$ac_objext conftest$ac_exeext
15338 if { (ac_try="$ac_link"
15339 case "(($ac_try" in
15340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341   *) ac_try_echo=$ac_try;;
15342 esac
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344   (eval "$ac_link") 2>conftest.er1
15345   ac_status=$?
15346   grep -v '^ *+' conftest.er1 >conftest.err
15347   rm -f conftest.er1
15348   cat conftest.err >&5
15349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350   (exit $ac_status); } &&
15351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15352   { (case "(($ac_try" in
15353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354   *) ac_try_echo=$ac_try;;
15355 esac
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357   (eval "$ac_try") 2>&5
15358   ac_status=$?
15359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360   (exit $ac_status); }; } &&
15361          { ac_try='test -s conftest$ac_exeext'
15362   { (case "(($ac_try" in
15363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364   *) ac_try_echo=$ac_try;;
15365 esac
15366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15367   (eval "$ac_try") 2>&5
15368   ac_status=$?
15369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370   (exit $ac_status); }; }; then
15371
15372 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15373 }'`
15374 # Check for a 64-bit object if we didn't find anything.
15375 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; }
15376 }'`; fi
15377 else
15378   echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15380
15381
15382 fi
15383
15384 rm -f core conftest.err conftest.$ac_objext \
15385       conftest$ac_exeext conftest.$ac_ext
15386 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15387
15388        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15389         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"
15390        else
15391         if test "$host_cpu" = ia64; then
15392           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15393           allow_undefined_flag="-z nodefs"
15394           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"
15395         else
15396          # Determine the default libpath from the value encoded in an empty executable.
15397          cat >conftest.$ac_ext <<_ACEOF
15398 /* confdefs.h.  */
15399 _ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h.  */
15403
15404 int
15405 main ()
15406 {
15407
15408   ;
15409   return 0;
15410 }
15411 _ACEOF
15412 rm -f conftest.$ac_objext conftest$ac_exeext
15413 if { (ac_try="$ac_link"
15414 case "(($ac_try" in
15415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416   *) ac_try_echo=$ac_try;;
15417 esac
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419   (eval "$ac_link") 2>conftest.er1
15420   ac_status=$?
15421   grep -v '^ *+' conftest.er1 >conftest.err
15422   rm -f conftest.er1
15423   cat conftest.err >&5
15424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425   (exit $ac_status); } &&
15426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15427   { (case "(($ac_try" in
15428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429   *) ac_try_echo=$ac_try;;
15430 esac
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432   (eval "$ac_try") 2>&5
15433   ac_status=$?
15434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); }; } &&
15436          { ac_try='test -s conftest$ac_exeext'
15437   { (case "(($ac_try" in
15438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15439   *) ac_try_echo=$ac_try;;
15440 esac
15441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15442   (eval "$ac_try") 2>&5
15443   ac_status=$?
15444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445   (exit $ac_status); }; }; then
15446
15447 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15448 }'`
15449 # Check for a 64-bit object if we didn't find anything.
15450 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; }
15451 }'`; fi
15452 else
15453   echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15455
15456
15457 fi
15458
15459 rm -f core conftest.err conftest.$ac_objext \
15460       conftest$ac_exeext conftest.$ac_ext
15461 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15462
15463          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15464           # Warning - without using the other run time loading flags,
15465           # -berok will link without error, but may produce a broken library.
15466           no_undefined_flag=' ${wl}-bernotok'
15467           allow_undefined_flag=' ${wl}-berok'
15468           # Exported symbols can be pulled into shared objects from archives
15469           whole_archive_flag_spec='$convenience'
15470           archive_cmds_need_lc=yes
15471           # This is similar to how AIX traditionally builds its shared libraries.
15472           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'
15473         fi
15474       fi
15475       ;;
15476
15477     amigaos*)
15478       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)'
15479       hardcode_libdir_flag_spec='-L$libdir'
15480       hardcode_minus_L=yes
15481       # see comment about different semantics on the GNU ld section
15482       ld_shlibs=no
15483       ;;
15484
15485     bsdi[45]*)
15486       export_dynamic_flag_spec=-rdynamic
15487       ;;
15488
15489     cygwin* | mingw* | pw32*)
15490       # When not using gcc, we currently assume that we are using
15491       # Microsoft Visual C++.
15492       # hardcode_libdir_flag_spec is actually meaningless, as there is
15493       # no search path for DLLs.
15494       hardcode_libdir_flag_spec=' '
15495       allow_undefined_flag=unsupported
15496       # Tell ltmain to make .lib files, not .a files.
15497       libext=lib
15498       # Tell ltmain to make .dll files, not .so files.
15499       shrext_cmds=".dll"
15500       # FIXME: Setting linknames here is a bad hack.
15501       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15502       # The linker will automatically build a .lib file if we build a DLL.
15503       old_archive_From_new_cmds='true'
15504       # FIXME: Should let the user specify the lib program.
15505       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15506       fix_srcfile_path='`cygpath -w "$srcfile"`'
15507       enable_shared_with_static_runtimes=yes
15508       ;;
15509
15510     darwin* | rhapsody*)
15511       case $host_os in
15512         rhapsody* | darwin1.[012])
15513          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15514          ;;
15515        *) # Darwin 1.3 on
15516          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15517            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15518          else
15519            case ${MACOSX_DEPLOYMENT_TARGET} in
15520              10.[012])
15521                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15522                ;;
15523              10.*)
15524                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15525                ;;
15526            esac
15527          fi
15528          ;;
15529       esac
15530       archive_cmds_need_lc=no
15531       hardcode_direct=no
15532       hardcode_automatic=yes
15533       hardcode_shlibpath_var=unsupported
15534       whole_archive_flag_spec=''
15535       link_all_deplibs=yes
15536     if test "$GCC" = yes ; then
15537         output_verbose_link_cmd='echo'
15538         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15539       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15540       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15541       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}'
15542       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}'
15543     else
15544       case $cc_basename in
15545         xlc*)
15546          output_verbose_link_cmd='echo'
15547          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15548          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15549           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15550          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}'
15551           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}'
15552           ;;
15553        *)
15554          ld_shlibs=no
15555           ;;
15556       esac
15557     fi
15558       ;;
15559
15560     dgux*)
15561       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15562       hardcode_libdir_flag_spec='-L$libdir'
15563       hardcode_shlibpath_var=no
15564       ;;
15565
15566     freebsd1*)
15567       ld_shlibs=no
15568       ;;
15569
15570     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15571     # support.  Future versions do this automatically, but an explicit c++rt0.o
15572     # does not break anything, and helps significantly (at the cost of a little
15573     # extra space).
15574     freebsd2.2*)
15575       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15576       hardcode_libdir_flag_spec='-R$libdir'
15577       hardcode_direct=yes
15578       hardcode_shlibpath_var=no
15579       ;;
15580
15581     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15582     freebsd2*)
15583       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15584       hardcode_direct=yes
15585       hardcode_minus_L=yes
15586       hardcode_shlibpath_var=no
15587       ;;
15588
15589     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15590     freebsd* | kfreebsd*-gnu | dragonfly*)
15591       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15592       hardcode_libdir_flag_spec='-R$libdir'
15593       hardcode_direct=yes
15594       hardcode_shlibpath_var=no
15595       ;;
15596
15597     hpux9*)
15598       if test "$GCC" = yes; then
15599         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'
15600       else
15601         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'
15602       fi
15603       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15604       hardcode_libdir_separator=:
15605       hardcode_direct=yes
15606
15607       # hardcode_minus_L: Not really in the search PATH,
15608       # but as the default location of the library.
15609       hardcode_minus_L=yes
15610       export_dynamic_flag_spec='${wl}-E'
15611       ;;
15612
15613     hpux10*)
15614       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15615         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15616       else
15617         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15618       fi
15619       if test "$with_gnu_ld" = no; then
15620         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15621         hardcode_libdir_separator=:
15622
15623         hardcode_direct=yes
15624         export_dynamic_flag_spec='${wl}-E'
15625
15626         # hardcode_minus_L: Not really in the search PATH,
15627         # but as the default location of the library.
15628         hardcode_minus_L=yes
15629       fi
15630       ;;
15631
15632     hpux11*)
15633       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15634         case $host_cpu in
15635         hppa*64*)
15636           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15637           ;;
15638         ia64*)
15639           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15640           ;;
15641         *)
15642           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15643           ;;
15644         esac
15645       else
15646         case $host_cpu in
15647         hppa*64*)
15648           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15649           ;;
15650         ia64*)
15651           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15652           ;;
15653         *)
15654           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15655           ;;
15656         esac
15657       fi
15658       if test "$with_gnu_ld" = no; then
15659         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15660         hardcode_libdir_separator=:
15661
15662         case $host_cpu in
15663         hppa*64*|ia64*)
15664           hardcode_libdir_flag_spec_ld='+b $libdir'
15665           hardcode_direct=no
15666           hardcode_shlibpath_var=no
15667           ;;
15668         *)
15669           hardcode_direct=yes
15670           export_dynamic_flag_spec='${wl}-E'
15671
15672           # hardcode_minus_L: Not really in the search PATH,
15673           # but as the default location of the library.
15674           hardcode_minus_L=yes
15675           ;;
15676         esac
15677       fi
15678       ;;
15679
15680     irix5* | irix6* | nonstopux*)
15681       if test "$GCC" = yes; then
15682         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'
15683       else
15684         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'
15685         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15686       fi
15687       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15688       hardcode_libdir_separator=:
15689       link_all_deplibs=yes
15690       ;;
15691
15692     netbsd*)
15693       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15694         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15695       else
15696         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15697       fi
15698       hardcode_libdir_flag_spec='-R$libdir'
15699       hardcode_direct=yes
15700       hardcode_shlibpath_var=no
15701       ;;
15702
15703     newsos6)
15704       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15705       hardcode_direct=yes
15706       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15707       hardcode_libdir_separator=:
15708       hardcode_shlibpath_var=no
15709       ;;
15710
15711     openbsd*)
15712       hardcode_direct=yes
15713       hardcode_shlibpath_var=no
15714       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15715         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15716         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15717         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15718         export_dynamic_flag_spec='${wl}-E'
15719       else
15720        case $host_os in
15721          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15722            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15723            hardcode_libdir_flag_spec='-R$libdir'
15724            ;;
15725          *)
15726            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15727            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15728            ;;
15729        esac
15730       fi
15731       ;;
15732
15733     os2*)
15734       hardcode_libdir_flag_spec='-L$libdir'
15735       hardcode_minus_L=yes
15736       allow_undefined_flag=unsupported
15737       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'
15738       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15739       ;;
15740
15741     osf3*)
15742       if test "$GCC" = yes; then
15743         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15744         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'
15745       else
15746         allow_undefined_flag=' -expect_unresolved \*'
15747         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'
15748       fi
15749       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15750       hardcode_libdir_separator=:
15751       ;;
15752
15753     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15754       if test "$GCC" = yes; then
15755         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15756         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'
15757         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15758       else
15759         allow_undefined_flag=' -expect_unresolved \*'
15760         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'
15761         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15762         $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'
15763
15764         # Both c and cxx compiler support -rpath directly
15765         hardcode_libdir_flag_spec='-rpath $libdir'
15766       fi
15767       hardcode_libdir_separator=:
15768       ;;
15769
15770     solaris*)
15771       no_undefined_flag=' -z text'
15772       if test "$GCC" = yes; then
15773         wlarc='${wl}'
15774         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15775         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15776           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15777       else
15778         wlarc=''
15779         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15780         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15781         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15782       fi
15783       hardcode_libdir_flag_spec='-R$libdir'
15784       hardcode_shlibpath_var=no
15785       case $host_os in
15786       solaris2.[0-5] | solaris2.[0-5].*) ;;
15787       *)
15788         # The compiler driver will combine linker options so we
15789         # cannot just pass the convience library names through
15790         # without $wl, iff we do not link with $LD.
15791         # Luckily, gcc supports the same syntax we need for Sun Studio.
15792         # Supported since Solaris 2.6 (maybe 2.5.1?)
15793         case $wlarc in
15794         '')
15795           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15796         *)
15797           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' ;;
15798         esac ;;
15799       esac
15800       link_all_deplibs=yes
15801       ;;
15802
15803     sunos4*)
15804       if test "x$host_vendor" = xsequent; then
15805         # Use $CC to link under sequent, because it throws in some extra .o
15806         # files that make .init and .fini sections work.
15807         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15808       else
15809         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15810       fi
15811       hardcode_libdir_flag_spec='-L$libdir'
15812       hardcode_direct=yes
15813       hardcode_minus_L=yes
15814       hardcode_shlibpath_var=no
15815       ;;
15816
15817     sysv4)
15818       case $host_vendor in
15819         sni)
15820           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15821           hardcode_direct=yes # is this really true???
15822         ;;
15823         siemens)
15824           ## LD is ld it makes a PLAMLIB
15825           ## CC just makes a GrossModule.
15826           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15827           reload_cmds='$CC -r -o $output$reload_objs'
15828           hardcode_direct=no
15829         ;;
15830         motorola)
15831           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15832           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15833         ;;
15834       esac
15835       runpath_var='LD_RUN_PATH'
15836       hardcode_shlibpath_var=no
15837       ;;
15838
15839     sysv4.3*)
15840       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15841       hardcode_shlibpath_var=no
15842       export_dynamic_flag_spec='-Bexport'
15843       ;;
15844
15845     sysv4*MP*)
15846       if test -d /usr/nec; then
15847         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15848         hardcode_shlibpath_var=no
15849         runpath_var=LD_RUN_PATH
15850         hardcode_runpath_var=yes
15851         ld_shlibs=yes
15852       fi
15853       ;;
15854
15855     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15856       no_undefined_flag='${wl}-z,text'
15857       archive_cmds_need_lc=no
15858       hardcode_shlibpath_var=no
15859       runpath_var='LD_RUN_PATH'
15860
15861       if test "$GCC" = yes; then
15862         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15863         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15864       else
15865         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15866         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15867       fi
15868       ;;
15869
15870     sysv5* | sco3.2v5* | sco5v6*)
15871       # Note: We can NOT use -z defs as we might desire, because we do not
15872       # link with -lc, and that would cause any symbols used from libc to
15873       # always be unresolved, which means just about no library would
15874       # ever link correctly.  If we're not using GNU ld we use -z text
15875       # though, which does catch some bad symbols but isn't as heavy-handed
15876       # as -z defs.
15877       no_undefined_flag='${wl}-z,text'
15878       allow_undefined_flag='${wl}-z,nodefs'
15879       archive_cmds_need_lc=no
15880       hardcode_shlibpath_var=no
15881       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15882       hardcode_libdir_separator=':'
15883       link_all_deplibs=yes
15884       export_dynamic_flag_spec='${wl}-Bexport'
15885       runpath_var='LD_RUN_PATH'
15886
15887       if test "$GCC" = yes; then
15888         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15889         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15890       else
15891         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15892         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15893       fi
15894       ;;
15895
15896     uts4*)
15897       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15898       hardcode_libdir_flag_spec='-L$libdir'
15899       hardcode_shlibpath_var=no
15900       ;;
15901
15902     *)
15903       ld_shlibs=no
15904       ;;
15905     esac
15906   fi
15907
15908 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15909 echo "${ECHO_T}$ld_shlibs" >&6; }
15910 test "$ld_shlibs" = no && can_build_shared=no
15911
15912 #
15913 # Do we need to explicitly link libc?
15914 #
15915 case "x$archive_cmds_need_lc" in
15916 x|xyes)
15917   # Assume -lc should be added
15918   archive_cmds_need_lc=yes
15919
15920   if test "$enable_shared" = yes && test "$GCC" = yes; then
15921     case $archive_cmds in
15922     *'~'*)
15923       # FIXME: we may have to deal with multi-command sequences.
15924       ;;
15925     '$CC '*)
15926       # Test whether the compiler implicitly links with -lc since on some
15927       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15928       # to ld, don't add -lc before -lgcc.
15929       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15930 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15931       $rm conftest*
15932       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15933
15934       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15935   (eval $ac_compile) 2>&5
15936   ac_status=$?
15937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938   (exit $ac_status); } 2>conftest.err; then
15939         soname=conftest
15940         lib=conftest
15941         libobjs=conftest.$ac_objext
15942         deplibs=
15943         wl=$lt_prog_compiler_wl
15944         pic_flag=$lt_prog_compiler_pic
15945         compiler_flags=-v
15946         linker_flags=-v
15947         verstring=
15948         output_objdir=.
15949         libname=conftest
15950         lt_save_allow_undefined_flag=$allow_undefined_flag
15951         allow_undefined_flag=
15952         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15953   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15954   ac_status=$?
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); }
15957         then
15958           archive_cmds_need_lc=no
15959         else
15960           archive_cmds_need_lc=yes
15961         fi
15962         allow_undefined_flag=$lt_save_allow_undefined_flag
15963       else
15964         cat conftest.err 1>&5
15965       fi
15966       $rm conftest*
15967       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15968 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15969       ;;
15970     esac
15971   fi
15972   ;;
15973 esac
15974
15975 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15976 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15977 library_names_spec=
15978 libname_spec='lib$name'
15979 soname_spec=
15980 shrext_cmds=".so"
15981 postinstall_cmds=
15982 postuninstall_cmds=
15983 finish_cmds=
15984 finish_eval=
15985 shlibpath_var=
15986 shlibpath_overrides_runpath=unknown
15987 version_type=none
15988 dynamic_linker="$host_os ld.so"
15989 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15990 if test "$GCC" = yes; then
15991   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15992   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15993     # if the path contains ";" then we assume it to be the separator
15994     # otherwise default to the standard path separator (i.e. ":") - it is
15995     # assumed that no part of a normal pathname contains ";" but that should
15996     # okay in the real world where ";" in dirpaths is itself problematic.
15997     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15998   else
15999     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16000   fi
16001 else
16002   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16003 fi
16004 need_lib_prefix=unknown
16005 hardcode_into_libs=no
16006
16007 # when you set need_version to no, make sure it does not cause -set_version
16008 # flags to be left without arguments
16009 need_version=unknown
16010
16011 case $host_os in
16012 aix3*)
16013   version_type=linux
16014   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16015   shlibpath_var=LIBPATH
16016
16017   # AIX 3 has no versioning support, so we append a major version to the name.
16018   soname_spec='${libname}${release}${shared_ext}$major'
16019   ;;
16020
16021 aix4* | aix5*)
16022   version_type=linux
16023   need_lib_prefix=no
16024   need_version=no
16025   hardcode_into_libs=yes
16026   if test "$host_cpu" = ia64; then
16027     # AIX 5 supports IA64
16028     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16029     shlibpath_var=LD_LIBRARY_PATH
16030   else
16031     # With GCC up to 2.95.x, collect2 would create an import file
16032     # for dependence libraries.  The import file would start with
16033     # the line `#! .'.  This would cause the generated library to
16034     # depend on `.', always an invalid library.  This was fixed in
16035     # development snapshots of GCC prior to 3.0.
16036     case $host_os in
16037       aix4 | aix4.[01] | aix4.[01].*)
16038       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16039            echo ' yes '
16040            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16041         :
16042       else
16043         can_build_shared=no
16044       fi
16045       ;;
16046     esac
16047     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16048     # soname into executable. Probably we can add versioning support to
16049     # collect2, so additional links can be useful in future.
16050     if test "$aix_use_runtimelinking" = yes; then
16051       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16052       # instead of lib<name>.a to let people know that these are not
16053       # typical AIX shared libraries.
16054       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16055     else
16056       # We preserve .a as extension for shared libraries through AIX4.2
16057       # and later when we are not doing run time linking.
16058       library_names_spec='${libname}${release}.a $libname.a'
16059       soname_spec='${libname}${release}${shared_ext}$major'
16060     fi
16061     shlibpath_var=LIBPATH
16062   fi
16063   ;;
16064
16065 amigaos*)
16066   library_names_spec='$libname.ixlibrary $libname.a'
16067   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16068   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'
16069   ;;
16070
16071 beos*)
16072   library_names_spec='${libname}${shared_ext}'
16073   dynamic_linker="$host_os ld.so"
16074   shlibpath_var=LIBRARY_PATH
16075   ;;
16076
16077 bsdi[45]*)
16078   version_type=linux
16079   need_version=no
16080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081   soname_spec='${libname}${release}${shared_ext}$major'
16082   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16083   shlibpath_var=LD_LIBRARY_PATH
16084   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16085   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16086   # the default ld.so.conf also contains /usr/contrib/lib and
16087   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16088   # libtool to hard-code these into programs
16089   ;;
16090
16091 cygwin* | mingw* | pw32*)
16092   version_type=windows
16093   shrext_cmds=".dll"
16094   need_version=no
16095   need_lib_prefix=no
16096
16097   case $GCC,$host_os in
16098   yes,cygwin* | yes,mingw* | yes,pw32*)
16099     library_names_spec='$libname.dll.a'
16100     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16101     postinstall_cmds='base_file=`basename \${file}`~
16102       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16103       dldir=$destdir/`dirname \$dlpath`~
16104       test -d \$dldir || mkdir -p \$dldir~
16105       $install_prog $dir/$dlname \$dldir/$dlname~
16106       chmod a+x \$dldir/$dlname'
16107     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16108       dlpath=$dir/\$dldll~
16109        $rm \$dlpath'
16110     shlibpath_overrides_runpath=yes
16111
16112     case $host_os in
16113     cygwin*)
16114       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16115       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16116       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16117       ;;
16118     mingw*)
16119       # MinGW DLLs use traditional 'lib' prefix
16120       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16121       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16122       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16123         # It is most probably a Windows format PATH printed by
16124         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16125         # path with ; separators, and with drive letters. We can handle the
16126         # drive letters (cygwin fileutils understands them), so leave them,
16127         # especially as we might pass files found there to a mingw objdump,
16128         # which wouldn't understand a cygwinified path. Ahh.
16129         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16130       else
16131         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16132       fi
16133       ;;
16134     pw32*)
16135       # pw32 DLLs use 'pw' prefix rather than 'lib'
16136       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16137       ;;
16138     esac
16139     ;;
16140
16141   *)
16142     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16143     ;;
16144   esac
16145   dynamic_linker='Win32 ld.exe'
16146   # FIXME: first we should search . and the directory the executable is in
16147   shlibpath_var=PATH
16148   ;;
16149
16150 darwin* | rhapsody*)
16151   dynamic_linker="$host_os dyld"
16152   version_type=darwin
16153   need_lib_prefix=no
16154   need_version=no
16155   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16156   soname_spec='${libname}${release}${major}$shared_ext'
16157   shlibpath_overrides_runpath=yes
16158   shlibpath_var=DYLD_LIBRARY_PATH
16159   shrext_cmds='.dylib'
16160   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16161   if test "$GCC" = yes; then
16162     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"`
16163   else
16164     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16165   fi
16166   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16167   ;;
16168
16169 dgux*)
16170   version_type=linux
16171   need_lib_prefix=no
16172   need_version=no
16173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16174   soname_spec='${libname}${release}${shared_ext}$major'
16175   shlibpath_var=LD_LIBRARY_PATH
16176   ;;
16177
16178 freebsd1*)
16179   dynamic_linker=no
16180   ;;
16181
16182 kfreebsd*-gnu)
16183   version_type=linux
16184   need_lib_prefix=no
16185   need_version=no
16186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16187   soname_spec='${libname}${release}${shared_ext}$major'
16188   shlibpath_var=LD_LIBRARY_PATH
16189   shlibpath_overrides_runpath=no
16190   hardcode_into_libs=yes
16191   dynamic_linker='GNU ld.so'
16192   ;;
16193
16194 freebsd* | dragonfly*)
16195   # DragonFly does not have aout.  When/if they implement a new
16196   # versioning mechanism, adjust this.
16197   if test -x /usr/bin/objformat; then
16198     objformat=`/usr/bin/objformat`
16199   else
16200     case $host_os in
16201     freebsd[123]*) objformat=aout ;;
16202     *) objformat=elf ;;
16203     esac
16204   fi
16205   version_type=freebsd-$objformat
16206   case $version_type in
16207     freebsd-elf*)
16208       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16209       need_version=no
16210       need_lib_prefix=no
16211       ;;
16212     freebsd-*)
16213       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16214       need_version=yes
16215       ;;
16216   esac
16217   shlibpath_var=LD_LIBRARY_PATH
16218   case $host_os in
16219   freebsd2*)
16220     shlibpath_overrides_runpath=yes
16221     ;;
16222   freebsd3.[01]* | freebsdelf3.[01]*)
16223     shlibpath_overrides_runpath=yes
16224     hardcode_into_libs=yes
16225     ;;
16226   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16227   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16228     shlibpath_overrides_runpath=no
16229     hardcode_into_libs=yes
16230     ;;
16231   freebsd*) # from 4.6 on
16232     shlibpath_overrides_runpath=yes
16233     hardcode_into_libs=yes
16234     ;;
16235   esac
16236   ;;
16237
16238 gnu*)
16239   version_type=linux
16240   need_lib_prefix=no
16241   need_version=no
16242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16243   soname_spec='${libname}${release}${shared_ext}$major'
16244   shlibpath_var=LD_LIBRARY_PATH
16245   hardcode_into_libs=yes
16246   ;;
16247
16248 hpux9* | hpux10* | hpux11*)
16249   # Give a soname corresponding to the major version so that dld.sl refuses to
16250   # link against other versions.
16251   version_type=sunos
16252   need_lib_prefix=no
16253   need_version=no
16254   case $host_cpu in
16255   ia64*)
16256     shrext_cmds='.so'
16257     hardcode_into_libs=yes
16258     dynamic_linker="$host_os dld.so"
16259     shlibpath_var=LD_LIBRARY_PATH
16260     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16261     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262     soname_spec='${libname}${release}${shared_ext}$major'
16263     if test "X$HPUX_IA64_MODE" = X32; then
16264       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16265     else
16266       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16267     fi
16268     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16269     ;;
16270    hppa*64*)
16271      shrext_cmds='.sl'
16272      hardcode_into_libs=yes
16273      dynamic_linker="$host_os dld.sl"
16274      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16275      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16276      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16277      soname_spec='${libname}${release}${shared_ext}$major'
16278      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16279      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16280      ;;
16281    *)
16282     shrext_cmds='.sl'
16283     dynamic_linker="$host_os dld.sl"
16284     shlibpath_var=SHLIB_PATH
16285     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16286     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287     soname_spec='${libname}${release}${shared_ext}$major'
16288     ;;
16289   esac
16290   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16291   postinstall_cmds='chmod 555 $lib'
16292   ;;
16293
16294 interix3*)
16295   version_type=linux
16296   need_lib_prefix=no
16297   need_version=no
16298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16299   soname_spec='${libname}${release}${shared_ext}$major'
16300   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16301   shlibpath_var=LD_LIBRARY_PATH
16302   shlibpath_overrides_runpath=no
16303   hardcode_into_libs=yes
16304   ;;
16305
16306 irix5* | irix6* | nonstopux*)
16307   case $host_os in
16308     nonstopux*) version_type=nonstopux ;;
16309     *)
16310         if test "$lt_cv_prog_gnu_ld" = yes; then
16311                 version_type=linux
16312         else
16313                 version_type=irix
16314         fi ;;
16315   esac
16316   need_lib_prefix=no
16317   need_version=no
16318   soname_spec='${libname}${release}${shared_ext}$major'
16319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16320   case $host_os in
16321   irix5* | nonstopux*)
16322     libsuff= shlibsuff=
16323     ;;
16324   *)
16325     case $LD in # libtool.m4 will add one of these switches to LD
16326     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16327       libsuff= shlibsuff= libmagic=32-bit;;
16328     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16329       libsuff=32 shlibsuff=N32 libmagic=N32;;
16330     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16331       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16332     *) libsuff= shlibsuff= libmagic=never-match;;
16333     esac
16334     ;;
16335   esac
16336   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16337   shlibpath_overrides_runpath=no
16338   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16339   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16340   hardcode_into_libs=yes
16341   ;;
16342
16343 # No shared lib support for Linux oldld, aout, or coff.
16344 linux*oldld* | linux*aout* | linux*coff*)
16345   dynamic_linker=no
16346   ;;
16347
16348 # This must be Linux ELF.
16349 linux*)
16350   version_type=linux
16351   need_lib_prefix=no
16352   need_version=no
16353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16354   soname_spec='${libname}${release}${shared_ext}$major'
16355   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16356   shlibpath_var=LD_LIBRARY_PATH
16357   shlibpath_overrides_runpath=no
16358   # This implies no fast_install, which is unacceptable.
16359   # Some rework will be needed to allow for fast_install
16360   # before this can be enabled.
16361   hardcode_into_libs=yes
16362
16363   # Append ld.so.conf contents to the search path
16364   if test -f /etc/ld.so.conf; then
16365     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' ' '`
16366     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16367   fi
16368
16369   # We used to test for /lib/ld.so.1 and disable shared libraries on
16370   # powerpc, because MkLinux only supported shared libraries with the
16371   # GNU dynamic linker.  Since this was broken with cross compilers,
16372   # most powerpc-linux boxes support dynamic linking these days and
16373   # people can always --disable-shared, the test was removed, and we
16374   # assume the GNU/Linux dynamic linker is in use.
16375   dynamic_linker='GNU/Linux ld.so'
16376   ;;
16377
16378 knetbsd*-gnu)
16379   version_type=linux
16380   need_lib_prefix=no
16381   need_version=no
16382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16383   soname_spec='${libname}${release}${shared_ext}$major'
16384   shlibpath_var=LD_LIBRARY_PATH
16385   shlibpath_overrides_runpath=no
16386   hardcode_into_libs=yes
16387   dynamic_linker='GNU ld.so'
16388   ;;
16389
16390 netbsd*)
16391   version_type=sunos
16392   need_lib_prefix=no
16393   need_version=no
16394   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16395     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16396     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16397     dynamic_linker='NetBSD (a.out) ld.so'
16398   else
16399     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16400     soname_spec='${libname}${release}${shared_ext}$major'
16401     dynamic_linker='NetBSD ld.elf_so'
16402   fi
16403   shlibpath_var=LD_LIBRARY_PATH
16404   shlibpath_overrides_runpath=yes
16405   hardcode_into_libs=yes
16406   ;;
16407
16408 newsos6)
16409   version_type=linux
16410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16411   shlibpath_var=LD_LIBRARY_PATH
16412   shlibpath_overrides_runpath=yes
16413   ;;
16414
16415 nto-qnx*)
16416   version_type=linux
16417   need_lib_prefix=no
16418   need_version=no
16419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420   soname_spec='${libname}${release}${shared_ext}$major'
16421   shlibpath_var=LD_LIBRARY_PATH
16422   shlibpath_overrides_runpath=yes
16423   ;;
16424
16425 openbsd*)
16426   version_type=sunos
16427   sys_lib_dlsearch_path_spec="/usr/lib"
16428   need_lib_prefix=no
16429   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16430   case $host_os in
16431     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16432     *)                         need_version=no  ;;
16433   esac
16434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16435   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16436   shlibpath_var=LD_LIBRARY_PATH
16437   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16438     case $host_os in
16439       openbsd2.[89] | openbsd2.[89].*)
16440         shlibpath_overrides_runpath=no
16441         ;;
16442       *)
16443         shlibpath_overrides_runpath=yes
16444         ;;
16445       esac
16446   else
16447     shlibpath_overrides_runpath=yes
16448   fi
16449   ;;
16450
16451 os2*)
16452   libname_spec='$name'
16453   shrext_cmds=".dll"
16454   need_lib_prefix=no
16455   library_names_spec='$libname${shared_ext} $libname.a'
16456   dynamic_linker='OS/2 ld.exe'
16457   shlibpath_var=LIBPATH
16458   ;;
16459
16460 osf3* | osf4* | osf5*)
16461   version_type=osf
16462   need_lib_prefix=no
16463   need_version=no
16464   soname_spec='${libname}${release}${shared_ext}$major'
16465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16466   shlibpath_var=LD_LIBRARY_PATH
16467   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16468   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16469   ;;
16470
16471 solaris*)
16472   version_type=linux
16473   need_lib_prefix=no
16474   need_version=no
16475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476   soname_spec='${libname}${release}${shared_ext}$major'
16477   shlibpath_var=LD_LIBRARY_PATH
16478   shlibpath_overrides_runpath=yes
16479   hardcode_into_libs=yes
16480   # ldd complains unless libraries are executable
16481   postinstall_cmds='chmod +x $lib'
16482   ;;
16483
16484 sunos4*)
16485   version_type=sunos
16486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16487   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16488   shlibpath_var=LD_LIBRARY_PATH
16489   shlibpath_overrides_runpath=yes
16490   if test "$with_gnu_ld" = yes; then
16491     need_lib_prefix=no
16492   fi
16493   need_version=yes
16494   ;;
16495
16496 sysv4 | sysv4.3*)
16497   version_type=linux
16498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16499   soname_spec='${libname}${release}${shared_ext}$major'
16500   shlibpath_var=LD_LIBRARY_PATH
16501   case $host_vendor in
16502     sni)
16503       shlibpath_overrides_runpath=no
16504       need_lib_prefix=no
16505       export_dynamic_flag_spec='${wl}-Blargedynsym'
16506       runpath_var=LD_RUN_PATH
16507       ;;
16508     siemens)
16509       need_lib_prefix=no
16510       ;;
16511     motorola)
16512       need_lib_prefix=no
16513       need_version=no
16514       shlibpath_overrides_runpath=no
16515       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16516       ;;
16517   esac
16518   ;;
16519
16520 sysv4*MP*)
16521   if test -d /usr/nec ;then
16522     version_type=linux
16523     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16524     soname_spec='$libname${shared_ext}.$major'
16525     shlibpath_var=LD_LIBRARY_PATH
16526   fi
16527   ;;
16528
16529 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16530   version_type=freebsd-elf
16531   need_lib_prefix=no
16532   need_version=no
16533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16534   soname_spec='${libname}${release}${shared_ext}$major'
16535   shlibpath_var=LD_LIBRARY_PATH
16536   hardcode_into_libs=yes
16537   if test "$with_gnu_ld" = yes; then
16538     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16539     shlibpath_overrides_runpath=no
16540   else
16541     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16542     shlibpath_overrides_runpath=yes
16543     case $host_os in
16544       sco3.2v5*)
16545         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16546         ;;
16547     esac
16548   fi
16549   sys_lib_dlsearch_path_spec='/usr/lib'
16550   ;;
16551
16552 uts4*)
16553   version_type=linux
16554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16555   soname_spec='${libname}${release}${shared_ext}$major'
16556   shlibpath_var=LD_LIBRARY_PATH
16557   ;;
16558
16559 *)
16560   dynamic_linker=no
16561   ;;
16562 esac
16563 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16564 echo "${ECHO_T}$dynamic_linker" >&6; }
16565 test "$dynamic_linker" = no && can_build_shared=no
16566
16567 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16568 if test "$GCC" = yes; then
16569   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16570 fi
16571
16572 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16573 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16574 hardcode_action=
16575 if test -n "$hardcode_libdir_flag_spec" || \
16576    test -n "$runpath_var" || \
16577    test "X$hardcode_automatic" = "Xyes" ; then
16578
16579   # We can hardcode non-existant directories.
16580   if test "$hardcode_direct" != no &&
16581      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16582      # have to relink, otherwise we might link with an installed library
16583      # when we should be linking with a yet-to-be-installed one
16584      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16585      test "$hardcode_minus_L" != no; then
16586     # Linking always hardcodes the temporary library directory.
16587     hardcode_action=relink
16588   else
16589     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16590     hardcode_action=immediate
16591   fi
16592 else
16593   # We cannot hardcode anything, or else we can only hardcode existing
16594   # directories.
16595   hardcode_action=unsupported
16596 fi
16597 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16598 echo "${ECHO_T}$hardcode_action" >&6; }
16599
16600 if test "$hardcode_action" = relink; then
16601   # Fast installation is not supported
16602   enable_fast_install=no
16603 elif test "$shlibpath_overrides_runpath" = yes ||
16604      test "$enable_shared" = no; then
16605   # Fast installation is not necessary
16606   enable_fast_install=needless
16607 fi
16608
16609 striplib=
16610 old_striplib=
16611 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16612 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16613 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16614   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16615   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16616   { echo "$as_me:$LINENO: result: yes" >&5
16617 echo "${ECHO_T}yes" >&6; }
16618 else
16619 # FIXME - insert some real tests, host_os isn't really good enough
16620   case $host_os in
16621    darwin*)
16622        if test -n "$STRIP" ; then
16623          striplib="$STRIP -x"
16624          { echo "$as_me:$LINENO: result: yes" >&5
16625 echo "${ECHO_T}yes" >&6; }
16626        else
16627   { echo "$as_me:$LINENO: result: no" >&5
16628 echo "${ECHO_T}no" >&6; }
16629 fi
16630        ;;
16631    *)
16632   { echo "$as_me:$LINENO: result: no" >&5
16633 echo "${ECHO_T}no" >&6; }
16634     ;;
16635   esac
16636 fi
16637
16638 if test "x$enable_dlopen" != xyes; then
16639   enable_dlopen=unknown
16640   enable_dlopen_self=unknown
16641   enable_dlopen_self_static=unknown
16642 else
16643   lt_cv_dlopen=no
16644   lt_cv_dlopen_libs=
16645
16646   case $host_os in
16647   beos*)
16648     lt_cv_dlopen="load_add_on"
16649     lt_cv_dlopen_libs=
16650     lt_cv_dlopen_self=yes
16651     ;;
16652
16653   mingw* | pw32*)
16654     lt_cv_dlopen="LoadLibrary"
16655     lt_cv_dlopen_libs=
16656    ;;
16657
16658   cygwin*)
16659     lt_cv_dlopen="dlopen"
16660     lt_cv_dlopen_libs=
16661    ;;
16662
16663   darwin*)
16664   # if libdl is installed we need to link against it
16665     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16666 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16667 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16668   echo $ECHO_N "(cached) $ECHO_C" >&6
16669 else
16670   ac_check_lib_save_LIBS=$LIBS
16671 LIBS="-ldl  $LIBS"
16672 cat >conftest.$ac_ext <<_ACEOF
16673 /* confdefs.h.  */
16674 _ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h.  */
16678
16679 /* Override any GCC internal prototype to avoid an error.
16680    Use char because int might match the return type of a GCC
16681    builtin and then its argument prototype would still apply.  */
16682 #ifdef __cplusplus
16683 extern "C"
16684 #endif
16685 char dlopen ();
16686 int
16687 main ()
16688 {
16689 return dlopen ();
16690   ;
16691   return 0;
16692 }
16693 _ACEOF
16694 rm -f conftest.$ac_objext conftest$ac_exeext
16695 if { (ac_try="$ac_link"
16696 case "(($ac_try" in
16697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698   *) ac_try_echo=$ac_try;;
16699 esac
16700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701   (eval "$ac_link") 2>conftest.er1
16702   ac_status=$?
16703   grep -v '^ *+' conftest.er1 >conftest.err
16704   rm -f conftest.er1
16705   cat conftest.err >&5
16706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707   (exit $ac_status); } &&
16708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16709   { (case "(($ac_try" in
16710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711   *) ac_try_echo=$ac_try;;
16712 esac
16713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714   (eval "$ac_try") 2>&5
16715   ac_status=$?
16716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717   (exit $ac_status); }; } &&
16718          { ac_try='test -s conftest$ac_exeext'
16719   { (case "(($ac_try" in
16720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721   *) ac_try_echo=$ac_try;;
16722 esac
16723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16724   (eval "$ac_try") 2>&5
16725   ac_status=$?
16726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727   (exit $ac_status); }; }; then
16728   ac_cv_lib_dl_dlopen=yes
16729 else
16730   echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16732
16733         ac_cv_lib_dl_dlopen=no
16734 fi
16735
16736 rm -f core conftest.err conftest.$ac_objext \
16737       conftest$ac_exeext conftest.$ac_ext
16738 LIBS=$ac_check_lib_save_LIBS
16739 fi
16740 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16741 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16742 if test $ac_cv_lib_dl_dlopen = yes; then
16743   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16744 else
16745
16746     lt_cv_dlopen="dyld"
16747     lt_cv_dlopen_libs=
16748     lt_cv_dlopen_self=yes
16749
16750 fi
16751
16752    ;;
16753
16754   *)
16755     { echo "$as_me:$LINENO: checking for shl_load" >&5
16756 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16757 if test "${ac_cv_func_shl_load+set}" = set; then
16758   echo $ECHO_N "(cached) $ECHO_C" >&6
16759 else
16760   cat >conftest.$ac_ext <<_ACEOF
16761 /* confdefs.h.  */
16762 _ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h.  */
16766 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16768 #define shl_load innocuous_shl_load
16769
16770 /* System header to define __stub macros and hopefully few prototypes,
16771     which can conflict with char shl_load (); below.
16772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16773     <limits.h> exists even on freestanding compilers.  */
16774
16775 #ifdef __STDC__
16776 # include <limits.h>
16777 #else
16778 # include <assert.h>
16779 #endif
16780
16781 #undef shl_load
16782
16783 /* Override any GCC internal prototype to avoid an error.
16784    Use char because int might match the return type of a GCC
16785    builtin and then its argument prototype would still apply.  */
16786 #ifdef __cplusplus
16787 extern "C"
16788 #endif
16789 char shl_load ();
16790 /* The GNU C library defines this for functions which it implements
16791     to always fail with ENOSYS.  Some functions are actually named
16792     something starting with __ and the normal name is an alias.  */
16793 #if defined __stub_shl_load || defined __stub___shl_load
16794 choke me
16795 #endif
16796
16797 int
16798 main ()
16799 {
16800 return shl_load ();
16801   ;
16802   return 0;
16803 }
16804 _ACEOF
16805 rm -f conftest.$ac_objext conftest$ac_exeext
16806 if { (ac_try="$ac_link"
16807 case "(($ac_try" in
16808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809   *) ac_try_echo=$ac_try;;
16810 esac
16811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812   (eval "$ac_link") 2>conftest.er1
16813   ac_status=$?
16814   grep -v '^ *+' conftest.er1 >conftest.err
16815   rm -f conftest.er1
16816   cat conftest.err >&5
16817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818   (exit $ac_status); } &&
16819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16820   { (case "(($ac_try" in
16821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822   *) ac_try_echo=$ac_try;;
16823 esac
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825   (eval "$ac_try") 2>&5
16826   ac_status=$?
16827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828   (exit $ac_status); }; } &&
16829          { ac_try='test -s conftest$ac_exeext'
16830   { (case "(($ac_try" in
16831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832   *) ac_try_echo=$ac_try;;
16833 esac
16834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835   (eval "$ac_try") 2>&5
16836   ac_status=$?
16837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838   (exit $ac_status); }; }; then
16839   ac_cv_func_shl_load=yes
16840 else
16841   echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16843
16844         ac_cv_func_shl_load=no
16845 fi
16846
16847 rm -f core conftest.err conftest.$ac_objext \
16848       conftest$ac_exeext conftest.$ac_ext
16849 fi
16850 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16851 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16852 if test $ac_cv_func_shl_load = yes; then
16853   lt_cv_dlopen="shl_load"
16854 else
16855   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16856 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16857 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16858   echo $ECHO_N "(cached) $ECHO_C" >&6
16859 else
16860   ac_check_lib_save_LIBS=$LIBS
16861 LIBS="-ldld  $LIBS"
16862 cat >conftest.$ac_ext <<_ACEOF
16863 /* confdefs.h.  */
16864 _ACEOF
16865 cat confdefs.h >>conftest.$ac_ext
16866 cat >>conftest.$ac_ext <<_ACEOF
16867 /* end confdefs.h.  */
16868
16869 /* Override any GCC internal prototype to avoid an error.
16870    Use char because int might match the return type of a GCC
16871    builtin and then its argument prototype would still apply.  */
16872 #ifdef __cplusplus
16873 extern "C"
16874 #endif
16875 char shl_load ();
16876 int
16877 main ()
16878 {
16879 return shl_load ();
16880   ;
16881   return 0;
16882 }
16883 _ACEOF
16884 rm -f conftest.$ac_objext conftest$ac_exeext
16885 if { (ac_try="$ac_link"
16886 case "(($ac_try" in
16887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888   *) ac_try_echo=$ac_try;;
16889 esac
16890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891   (eval "$ac_link") 2>conftest.er1
16892   ac_status=$?
16893   grep -v '^ *+' conftest.er1 >conftest.err
16894   rm -f conftest.er1
16895   cat conftest.err >&5
16896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897   (exit $ac_status); } &&
16898          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16899   { (case "(($ac_try" in
16900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901   *) ac_try_echo=$ac_try;;
16902 esac
16903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904   (eval "$ac_try") 2>&5
16905   ac_status=$?
16906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907   (exit $ac_status); }; } &&
16908          { ac_try='test -s conftest$ac_exeext'
16909   { (case "(($ac_try" in
16910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911   *) ac_try_echo=$ac_try;;
16912 esac
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914   (eval "$ac_try") 2>&5
16915   ac_status=$?
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); }; }; then
16918   ac_cv_lib_dld_shl_load=yes
16919 else
16920   echo "$as_me: failed program was:" >&5
16921 sed 's/^/| /' conftest.$ac_ext >&5
16922
16923         ac_cv_lib_dld_shl_load=no
16924 fi
16925
16926 rm -f core conftest.err conftest.$ac_objext \
16927       conftest$ac_exeext conftest.$ac_ext
16928 LIBS=$ac_check_lib_save_LIBS
16929 fi
16930 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16931 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16932 if test $ac_cv_lib_dld_shl_load = yes; then
16933   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16934 else
16935   { echo "$as_me:$LINENO: checking for dlopen" >&5
16936 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16937 if test "${ac_cv_func_dlopen+set}" = set; then
16938   echo $ECHO_N "(cached) $ECHO_C" >&6
16939 else
16940   cat >conftest.$ac_ext <<_ACEOF
16941 /* confdefs.h.  */
16942 _ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h.  */
16946 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16948 #define dlopen innocuous_dlopen
16949
16950 /* System header to define __stub macros and hopefully few prototypes,
16951     which can conflict with char dlopen (); below.
16952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16953     <limits.h> exists even on freestanding compilers.  */
16954
16955 #ifdef __STDC__
16956 # include <limits.h>
16957 #else
16958 # include <assert.h>
16959 #endif
16960
16961 #undef dlopen
16962
16963 /* Override any GCC internal prototype to avoid an error.
16964    Use char because int might match the return type of a GCC
16965    builtin and then its argument prototype would still apply.  */
16966 #ifdef __cplusplus
16967 extern "C"
16968 #endif
16969 char dlopen ();
16970 /* The GNU C library defines this for functions which it implements
16971     to always fail with ENOSYS.  Some functions are actually named
16972     something starting with __ and the normal name is an alias.  */
16973 #if defined __stub_dlopen || defined __stub___dlopen
16974 choke me
16975 #endif
16976
16977 int
16978 main ()
16979 {
16980 return dlopen ();
16981   ;
16982   return 0;
16983 }
16984 _ACEOF
16985 rm -f conftest.$ac_objext conftest$ac_exeext
16986 if { (ac_try="$ac_link"
16987 case "(($ac_try" in
16988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989   *) ac_try_echo=$ac_try;;
16990 esac
16991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992   (eval "$ac_link") 2>conftest.er1
16993   ac_status=$?
16994   grep -v '^ *+' conftest.er1 >conftest.err
16995   rm -f conftest.er1
16996   cat conftest.err >&5
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); } &&
16999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17000   { (case "(($ac_try" in
17001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002   *) ac_try_echo=$ac_try;;
17003 esac
17004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005   (eval "$ac_try") 2>&5
17006   ac_status=$?
17007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008   (exit $ac_status); }; } &&
17009          { ac_try='test -s conftest$ac_exeext'
17010   { (case "(($ac_try" in
17011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012   *) ac_try_echo=$ac_try;;
17013 esac
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015   (eval "$ac_try") 2>&5
17016   ac_status=$?
17017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018   (exit $ac_status); }; }; then
17019   ac_cv_func_dlopen=yes
17020 else
17021   echo "$as_me: failed program was:" >&5
17022 sed 's/^/| /' conftest.$ac_ext >&5
17023
17024         ac_cv_func_dlopen=no
17025 fi
17026
17027 rm -f core conftest.err conftest.$ac_objext \
17028       conftest$ac_exeext conftest.$ac_ext
17029 fi
17030 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17031 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17032 if test $ac_cv_func_dlopen = yes; then
17033   lt_cv_dlopen="dlopen"
17034 else
17035   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17036 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17037 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17038   echo $ECHO_N "(cached) $ECHO_C" >&6
17039 else
17040   ac_check_lib_save_LIBS=$LIBS
17041 LIBS="-ldl  $LIBS"
17042 cat >conftest.$ac_ext <<_ACEOF
17043 /* confdefs.h.  */
17044 _ACEOF
17045 cat confdefs.h >>conftest.$ac_ext
17046 cat >>conftest.$ac_ext <<_ACEOF
17047 /* end confdefs.h.  */
17048
17049 /* Override any GCC internal prototype to avoid an error.
17050    Use char because int might match the return type of a GCC
17051    builtin and then its argument prototype would still apply.  */
17052 #ifdef __cplusplus
17053 extern "C"
17054 #endif
17055 char dlopen ();
17056 int
17057 main ()
17058 {
17059 return dlopen ();
17060   ;
17061   return 0;
17062 }
17063 _ACEOF
17064 rm -f conftest.$ac_objext conftest$ac_exeext
17065 if { (ac_try="$ac_link"
17066 case "(($ac_try" in
17067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068   *) ac_try_echo=$ac_try;;
17069 esac
17070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071   (eval "$ac_link") 2>conftest.er1
17072   ac_status=$?
17073   grep -v '^ *+' conftest.er1 >conftest.err
17074   rm -f conftest.er1
17075   cat conftest.err >&5
17076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077   (exit $ac_status); } &&
17078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17079   { (case "(($ac_try" in
17080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081   *) ac_try_echo=$ac_try;;
17082 esac
17083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084   (eval "$ac_try") 2>&5
17085   ac_status=$?
17086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087   (exit $ac_status); }; } &&
17088          { ac_try='test -s conftest$ac_exeext'
17089   { (case "(($ac_try" in
17090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091   *) ac_try_echo=$ac_try;;
17092 esac
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094   (eval "$ac_try") 2>&5
17095   ac_status=$?
17096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097   (exit $ac_status); }; }; then
17098   ac_cv_lib_dl_dlopen=yes
17099 else
17100   echo "$as_me: failed program was:" >&5
17101 sed 's/^/| /' conftest.$ac_ext >&5
17102
17103         ac_cv_lib_dl_dlopen=no
17104 fi
17105
17106 rm -f core conftest.err conftest.$ac_objext \
17107       conftest$ac_exeext conftest.$ac_ext
17108 LIBS=$ac_check_lib_save_LIBS
17109 fi
17110 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17111 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17112 if test $ac_cv_lib_dl_dlopen = yes; then
17113   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17114 else
17115   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17116 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17117 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17118   echo $ECHO_N "(cached) $ECHO_C" >&6
17119 else
17120   ac_check_lib_save_LIBS=$LIBS
17121 LIBS="-lsvld  $LIBS"
17122 cat >conftest.$ac_ext <<_ACEOF
17123 /* confdefs.h.  */
17124 _ACEOF
17125 cat confdefs.h >>conftest.$ac_ext
17126 cat >>conftest.$ac_ext <<_ACEOF
17127 /* end confdefs.h.  */
17128
17129 /* Override any GCC internal prototype to avoid an error.
17130    Use char because int might match the return type of a GCC
17131    builtin and then its argument prototype would still apply.  */
17132 #ifdef __cplusplus
17133 extern "C"
17134 #endif
17135 char dlopen ();
17136 int
17137 main ()
17138 {
17139 return dlopen ();
17140   ;
17141   return 0;
17142 }
17143 _ACEOF
17144 rm -f conftest.$ac_objext conftest$ac_exeext
17145 if { (ac_try="$ac_link"
17146 case "(($ac_try" in
17147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148   *) ac_try_echo=$ac_try;;
17149 esac
17150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17151   (eval "$ac_link") 2>conftest.er1
17152   ac_status=$?
17153   grep -v '^ *+' conftest.er1 >conftest.err
17154   rm -f conftest.er1
17155   cat conftest.err >&5
17156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157   (exit $ac_status); } &&
17158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17159   { (case "(($ac_try" in
17160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161   *) ac_try_echo=$ac_try;;
17162 esac
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164   (eval "$ac_try") 2>&5
17165   ac_status=$?
17166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167   (exit $ac_status); }; } &&
17168          { ac_try='test -s conftest$ac_exeext'
17169   { (case "(($ac_try" in
17170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171   *) ac_try_echo=$ac_try;;
17172 esac
17173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174   (eval "$ac_try") 2>&5
17175   ac_status=$?
17176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177   (exit $ac_status); }; }; then
17178   ac_cv_lib_svld_dlopen=yes
17179 else
17180   echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17182
17183         ac_cv_lib_svld_dlopen=no
17184 fi
17185
17186 rm -f core conftest.err conftest.$ac_objext \
17187       conftest$ac_exeext conftest.$ac_ext
17188 LIBS=$ac_check_lib_save_LIBS
17189 fi
17190 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17191 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17192 if test $ac_cv_lib_svld_dlopen = yes; then
17193   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17194 else
17195   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17196 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17197 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17198   echo $ECHO_N "(cached) $ECHO_C" >&6
17199 else
17200   ac_check_lib_save_LIBS=$LIBS
17201 LIBS="-ldld  $LIBS"
17202 cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h.  */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h.  */
17208
17209 /* Override any GCC internal prototype to avoid an error.
17210    Use char because int might match the return type of a GCC
17211    builtin and then its argument prototype would still apply.  */
17212 #ifdef __cplusplus
17213 extern "C"
17214 #endif
17215 char dld_link ();
17216 int
17217 main ()
17218 {
17219 return dld_link ();
17220   ;
17221   return 0;
17222 }
17223 _ACEOF
17224 rm -f conftest.$ac_objext conftest$ac_exeext
17225 if { (ac_try="$ac_link"
17226 case "(($ac_try" in
17227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228   *) ac_try_echo=$ac_try;;
17229 esac
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231   (eval "$ac_link") 2>conftest.er1
17232   ac_status=$?
17233   grep -v '^ *+' conftest.er1 >conftest.err
17234   rm -f conftest.er1
17235   cat conftest.err >&5
17236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237   (exit $ac_status); } &&
17238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17239   { (case "(($ac_try" in
17240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241   *) ac_try_echo=$ac_try;;
17242 esac
17243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244   (eval "$ac_try") 2>&5
17245   ac_status=$?
17246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247   (exit $ac_status); }; } &&
17248          { ac_try='test -s conftest$ac_exeext'
17249   { (case "(($ac_try" in
17250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251   *) ac_try_echo=$ac_try;;
17252 esac
17253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254   (eval "$ac_try") 2>&5
17255   ac_status=$?
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); }; }; then
17258   ac_cv_lib_dld_dld_link=yes
17259 else
17260   echo "$as_me: failed program was:" >&5
17261 sed 's/^/| /' conftest.$ac_ext >&5
17262
17263         ac_cv_lib_dld_dld_link=no
17264 fi
17265
17266 rm -f core conftest.err conftest.$ac_objext \
17267       conftest$ac_exeext conftest.$ac_ext
17268 LIBS=$ac_check_lib_save_LIBS
17269 fi
17270 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17271 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17272 if test $ac_cv_lib_dld_dld_link = yes; then
17273   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17274 fi
17275
17276
17277 fi
17278
17279
17280 fi
17281
17282
17283 fi
17284
17285
17286 fi
17287
17288
17289 fi
17290
17291     ;;
17292   esac
17293
17294   if test "x$lt_cv_dlopen" != xno; then
17295     enable_dlopen=yes
17296   else
17297     enable_dlopen=no
17298   fi
17299
17300   case $lt_cv_dlopen in
17301   dlopen)
17302     save_CPPFLAGS="$CPPFLAGS"
17303     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17304
17305     save_LDFLAGS="$LDFLAGS"
17306     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17307
17308     save_LIBS="$LIBS"
17309     LIBS="$lt_cv_dlopen_libs $LIBS"
17310
17311     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17312 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17313 if test "${lt_cv_dlopen_self+set}" = set; then
17314   echo $ECHO_N "(cached) $ECHO_C" >&6
17315 else
17316           if test "$cross_compiling" = yes; then :
17317   lt_cv_dlopen_self=cross
17318 else
17319   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17320   lt_status=$lt_dlunknown
17321   cat > conftest.$ac_ext <<EOF
17322 #line 17322 "configure"
17323 #include "confdefs.h"
17324
17325 #if HAVE_DLFCN_H
17326 #include <dlfcn.h>
17327 #endif
17328
17329 #include <stdio.h>
17330
17331 #ifdef RTLD_GLOBAL
17332 #  define LT_DLGLOBAL           RTLD_GLOBAL
17333 #else
17334 #  ifdef DL_GLOBAL
17335 #    define LT_DLGLOBAL         DL_GLOBAL
17336 #  else
17337 #    define LT_DLGLOBAL         0
17338 #  endif
17339 #endif
17340
17341 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17342    find out it does not work in some platform. */
17343 #ifndef LT_DLLAZY_OR_NOW
17344 #  ifdef RTLD_LAZY
17345 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17346 #  else
17347 #    ifdef DL_LAZY
17348 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17349 #    else
17350 #      ifdef RTLD_NOW
17351 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17352 #      else
17353 #        ifdef DL_NOW
17354 #          define LT_DLLAZY_OR_NOW      DL_NOW
17355 #        else
17356 #          define LT_DLLAZY_OR_NOW      0
17357 #        endif
17358 #      endif
17359 #    endif
17360 #  endif
17361 #endif
17362
17363 #ifdef __cplusplus
17364 extern "C" void exit (int);
17365 #endif
17366
17367 void fnord() { int i=42;}
17368 int main ()
17369 {
17370   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17371   int status = $lt_dlunknown;
17372
17373   if (self)
17374     {
17375       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17376       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17377       /* dlclose (self); */
17378     }
17379   else
17380     puts (dlerror ());
17381
17382     exit (status);
17383 }
17384 EOF
17385   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17386   (eval $ac_link) 2>&5
17387   ac_status=$?
17388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17390     (./conftest; exit; ) >&5 2>/dev/null
17391     lt_status=$?
17392     case x$lt_status in
17393       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17394       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17395       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17396     esac
17397   else :
17398     # compilation failed
17399     lt_cv_dlopen_self=no
17400   fi
17401 fi
17402 rm -fr conftest*
17403
17404
17405 fi
17406 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17407 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17408
17409     if test "x$lt_cv_dlopen_self" = xyes; then
17410       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17411       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17412 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17413 if test "${lt_cv_dlopen_self_static+set}" = set; then
17414   echo $ECHO_N "(cached) $ECHO_C" >&6
17415 else
17416           if test "$cross_compiling" = yes; then :
17417   lt_cv_dlopen_self_static=cross
17418 else
17419   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17420   lt_status=$lt_dlunknown
17421   cat > conftest.$ac_ext <<EOF
17422 #line 17422 "configure"
17423 #include "confdefs.h"
17424
17425 #if HAVE_DLFCN_H
17426 #include <dlfcn.h>
17427 #endif
17428
17429 #include <stdio.h>
17430
17431 #ifdef RTLD_GLOBAL
17432 #  define LT_DLGLOBAL           RTLD_GLOBAL
17433 #else
17434 #  ifdef DL_GLOBAL
17435 #    define LT_DLGLOBAL         DL_GLOBAL
17436 #  else
17437 #    define LT_DLGLOBAL         0
17438 #  endif
17439 #endif
17440
17441 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17442    find out it does not work in some platform. */
17443 #ifndef LT_DLLAZY_OR_NOW
17444 #  ifdef RTLD_LAZY
17445 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17446 #  else
17447 #    ifdef DL_LAZY
17448 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17449 #    else
17450 #      ifdef RTLD_NOW
17451 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17452 #      else
17453 #        ifdef DL_NOW
17454 #          define LT_DLLAZY_OR_NOW      DL_NOW
17455 #        else
17456 #          define LT_DLLAZY_OR_NOW      0
17457 #        endif
17458 #      endif
17459 #    endif
17460 #  endif
17461 #endif
17462
17463 #ifdef __cplusplus
17464 extern "C" void exit (int);
17465 #endif
17466
17467 void fnord() { int i=42;}
17468 int main ()
17469 {
17470   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17471   int status = $lt_dlunknown;
17472
17473   if (self)
17474     {
17475       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17476       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17477       /* dlclose (self); */
17478     }
17479   else
17480     puts (dlerror ());
17481
17482     exit (status);
17483 }
17484 EOF
17485   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17486   (eval $ac_link) 2>&5
17487   ac_status=$?
17488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17490     (./conftest; exit; ) >&5 2>/dev/null
17491     lt_status=$?
17492     case x$lt_status in
17493       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17494       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17495       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17496     esac
17497   else :
17498     # compilation failed
17499     lt_cv_dlopen_self_static=no
17500   fi
17501 fi
17502 rm -fr conftest*
17503
17504
17505 fi
17506 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17507 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17508     fi
17509
17510     CPPFLAGS="$save_CPPFLAGS"
17511     LDFLAGS="$save_LDFLAGS"
17512     LIBS="$save_LIBS"
17513     ;;
17514   esac
17515
17516   case $lt_cv_dlopen_self in
17517   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17518   *) enable_dlopen_self=unknown ;;
17519   esac
17520
17521   case $lt_cv_dlopen_self_static in
17522   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17523   *) enable_dlopen_self_static=unknown ;;
17524   esac
17525 fi
17526
17527
17528 # Report which library types will actually be built
17529 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17530 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17531 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17532 echo "${ECHO_T}$can_build_shared" >&6; }
17533
17534 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17535 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17536 test "$can_build_shared" = "no" && enable_shared=no
17537
17538 # On AIX, shared libraries and static libraries use the same namespace, and
17539 # are all built from PIC.
17540 case $host_os in
17541 aix3*)
17542   test "$enable_shared" = yes && enable_static=no
17543   if test -n "$RANLIB"; then
17544     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17545     postinstall_cmds='$RANLIB $lib'
17546   fi
17547   ;;
17548
17549 aix4* | aix5*)
17550   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17551     test "$enable_shared" = yes && enable_static=no
17552   fi
17553     ;;
17554 esac
17555 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17556 echo "${ECHO_T}$enable_shared" >&6; }
17557
17558 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17559 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17560 # Make sure either enable_shared or enable_static is yes.
17561 test "$enable_shared" = yes || enable_static=yes
17562 { echo "$as_me:$LINENO: result: $enable_static" >&5
17563 echo "${ECHO_T}$enable_static" >&6; }
17564
17565 # The else clause should only fire when bootstrapping the
17566 # libtool distribution, otherwise you forgot to ship ltmain.sh
17567 # with your package, and you will get complaints that there are
17568 # no rules to generate ltmain.sh.
17569 if test -f "$ltmain"; then
17570   # See if we are running on zsh, and set the options which allow our commands through
17571   # without removal of \ escapes.
17572   if test -n "${ZSH_VERSION+set}" ; then
17573     setopt NO_GLOB_SUBST
17574   fi
17575   # Now quote all the things that may contain metacharacters while being
17576   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17577   # variables and quote the copies for generation of the libtool script.
17578   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17579     SED SHELL STRIP \
17580     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17581     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17582     deplibs_check_method reload_flag reload_cmds need_locks \
17583     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17584     lt_cv_sys_global_symbol_to_c_name_address \
17585     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17586     old_postinstall_cmds old_postuninstall_cmds \
17587     compiler \
17588     CC \
17589     LD \
17590     lt_prog_compiler_wl \
17591     lt_prog_compiler_pic \
17592     lt_prog_compiler_static \
17593     lt_prog_compiler_no_builtin_flag \
17594     export_dynamic_flag_spec \
17595     thread_safe_flag_spec \
17596     whole_archive_flag_spec \
17597     enable_shared_with_static_runtimes \
17598     old_archive_cmds \
17599     old_archive_from_new_cmds \
17600     predep_objects \
17601     postdep_objects \
17602     predeps \
17603     postdeps \
17604     compiler_lib_search_path \
17605     archive_cmds \
17606     archive_expsym_cmds \
17607     postinstall_cmds \
17608     postuninstall_cmds \
17609     old_archive_from_expsyms_cmds \
17610     allow_undefined_flag \
17611     no_undefined_flag \
17612     export_symbols_cmds \
17613     hardcode_libdir_flag_spec \
17614     hardcode_libdir_flag_spec_ld \
17615     hardcode_libdir_separator \
17616     hardcode_automatic \
17617     module_cmds \
17618     module_expsym_cmds \
17619     lt_cv_prog_compiler_c_o \
17620     exclude_expsyms \
17621     include_expsyms; do
17622
17623     case $var in
17624     old_archive_cmds | \
17625     old_archive_from_new_cmds | \
17626     archive_cmds | \
17627     archive_expsym_cmds | \
17628     module_cmds | \
17629     module_expsym_cmds | \
17630     old_archive_from_expsyms_cmds | \
17631     export_symbols_cmds | \
17632     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17633     postinstall_cmds | postuninstall_cmds | \
17634     old_postinstall_cmds | old_postuninstall_cmds | \
17635     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17636       # Double-quote double-evaled strings.
17637       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17638       ;;
17639     *)
17640       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17641       ;;
17642     esac
17643   done
17644
17645   case $lt_echo in
17646   *'\$0 --fallback-echo"')
17647     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17648     ;;
17649   esac
17650
17651 cfgfile="${ofile}T"
17652   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17653   $rm -f "$cfgfile"
17654   { echo "$as_me:$LINENO: creating $ofile" >&5
17655 echo "$as_me: creating $ofile" >&6;}
17656
17657   cat <<__EOF__ >> "$cfgfile"
17658 #! $SHELL
17659
17660 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17661 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17662 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17663 #
17664 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17665 # Free Software Foundation, Inc.
17666 #
17667 # This file is part of GNU Libtool:
17668 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17669 #
17670 # This program is free software; you can redistribute it and/or modify
17671 # it under the terms of the GNU General Public License as published by
17672 # the Free Software Foundation; either version 2 of the License, or
17673 # (at your option) any later version.
17674 #
17675 # This program is distributed in the hope that it will be useful, but
17676 # WITHOUT ANY WARRANTY; without even the implied warranty of
17677 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17678 # General Public License for more details.
17679 #
17680 # You should have received a copy of the GNU General Public License
17681 # along with this program; if not, write to the Free Software
17682 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17683 #
17684 # As a special exception to the GNU General Public License, if you
17685 # distribute this file as part of a program that contains a
17686 # configuration script generated by Autoconf, you may include it under
17687 # the same distribution terms that you use for the rest of that program.
17688
17689 # A sed program that does not truncate output.
17690 SED=$lt_SED
17691
17692 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17693 Xsed="$SED -e 1s/^X//"
17694
17695 # The HP-UX ksh and POSIX shell print the target directory to stdout
17696 # if CDPATH is set.
17697 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17698
17699 # The names of the tagged configurations supported by this script.
17700 available_tags=
17701
17702 # ### BEGIN LIBTOOL CONFIG
17703
17704 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17705
17706 # Shell to use when invoking shell scripts.
17707 SHELL=$lt_SHELL
17708
17709 # Whether or not to build shared libraries.
17710 build_libtool_libs=$enable_shared
17711
17712 # Whether or not to build static libraries.
17713 build_old_libs=$enable_static
17714
17715 # Whether or not to add -lc for building shared libraries.
17716 build_libtool_need_lc=$archive_cmds_need_lc
17717
17718 # Whether or not to disallow shared libs when runtime libs are static
17719 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17720
17721 # Whether or not to optimize for fast installation.
17722 fast_install=$enable_fast_install
17723
17724 # The host system.
17725 host_alias=$host_alias
17726 host=$host
17727 host_os=$host_os
17728
17729 # The build system.
17730 build_alias=$build_alias
17731 build=$build
17732 build_os=$build_os
17733
17734 # An echo program that does not interpret backslashes.
17735 echo=$lt_echo
17736
17737 # The archiver.
17738 AR=$lt_AR
17739 AR_FLAGS=$lt_AR_FLAGS
17740
17741 # A C compiler.
17742 LTCC=$lt_LTCC
17743
17744 # LTCC compiler flags.
17745 LTCFLAGS=$lt_LTCFLAGS
17746
17747 # A language-specific compiler.
17748 CC=$lt_compiler
17749
17750 # Is the compiler the GNU C compiler?
17751 with_gcc=$GCC
17752
17753 # An ERE matcher.
17754 EGREP=$lt_EGREP
17755
17756 # The linker used to build libraries.
17757 LD=$lt_LD
17758
17759 # Whether we need hard or soft links.
17760 LN_S=$lt_LN_S
17761
17762 # A BSD-compatible nm program.
17763 NM=$lt_NM
17764
17765 # A symbol stripping program
17766 STRIP=$lt_STRIP
17767
17768 # Used to examine libraries when file_magic_cmd begins "file"
17769 MAGIC_CMD=$MAGIC_CMD
17770
17771 # Used on cygwin: DLL creation program.
17772 DLLTOOL="$DLLTOOL"
17773
17774 # Used on cygwin: object dumper.
17775 OBJDUMP="$OBJDUMP"
17776
17777 # Used on cygwin: assembler.
17778 AS="$AS"
17779
17780 # The name of the directory that contains temporary libtool files.
17781 objdir=$objdir
17782
17783 # How to create reloadable object files.
17784 reload_flag=$lt_reload_flag
17785 reload_cmds=$lt_reload_cmds
17786
17787 # How to pass a linker flag through the compiler.
17788 wl=$lt_lt_prog_compiler_wl
17789
17790 # Object file suffix (normally "o").
17791 objext="$ac_objext"
17792
17793 # Old archive suffix (normally "a").
17794 libext="$libext"
17795
17796 # Shared library suffix (normally ".so").
17797 shrext_cmds='$shrext_cmds'
17798
17799 # Executable file suffix (normally "").
17800 exeext="$exeext"
17801
17802 # Additional compiler flags for building library objects.
17803 pic_flag=$lt_lt_prog_compiler_pic
17804 pic_mode=$pic_mode
17805
17806 # What is the maximum length of a command?
17807 max_cmd_len=$lt_cv_sys_max_cmd_len
17808
17809 # Does compiler simultaneously support -c and -o options?
17810 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17811
17812 # Must we lock files when doing compilation?
17813 need_locks=$lt_need_locks
17814
17815 # Do we need the lib prefix for modules?
17816 need_lib_prefix=$need_lib_prefix
17817
17818 # Do we need a version for libraries?
17819 need_version=$need_version
17820
17821 # Whether dlopen is supported.
17822 dlopen_support=$enable_dlopen
17823
17824 # Whether dlopen of programs is supported.
17825 dlopen_self=$enable_dlopen_self
17826
17827 # Whether dlopen of statically linked programs is supported.
17828 dlopen_self_static=$enable_dlopen_self_static
17829
17830 # Compiler flag to prevent dynamic linking.
17831 link_static_flag=$lt_lt_prog_compiler_static
17832
17833 # Compiler flag to turn off builtin functions.
17834 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17835
17836 # Compiler flag to allow reflexive dlopens.
17837 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17838
17839 # Compiler flag to generate shared objects directly from archives.
17840 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17841
17842 # Compiler flag to generate thread-safe objects.
17843 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17844
17845 # Library versioning type.
17846 version_type=$version_type
17847
17848 # Format of library name prefix.
17849 libname_spec=$lt_libname_spec
17850
17851 # List of archive names.  First name is the real one, the rest are links.
17852 # The last name is the one that the linker finds with -lNAME.
17853 library_names_spec=$lt_library_names_spec
17854
17855 # The coded name of the library, if different from the real name.
17856 soname_spec=$lt_soname_spec
17857
17858 # Commands used to build and install an old-style archive.
17859 RANLIB=$lt_RANLIB
17860 old_archive_cmds=$lt_old_archive_cmds
17861 old_postinstall_cmds=$lt_old_postinstall_cmds
17862 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17863
17864 # Create an old-style archive from a shared archive.
17865 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17866
17867 # Create a temporary old-style archive to link instead of a shared archive.
17868 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17869
17870 # Commands used to build and install a shared archive.
17871 archive_cmds=$lt_archive_cmds
17872 archive_expsym_cmds=$lt_archive_expsym_cmds
17873 postinstall_cmds=$lt_postinstall_cmds
17874 postuninstall_cmds=$lt_postuninstall_cmds
17875
17876 # Commands used to build a loadable module (assumed same as above if empty)
17877 module_cmds=$lt_module_cmds
17878 module_expsym_cmds=$lt_module_expsym_cmds
17879
17880 # Commands to strip libraries.
17881 old_striplib=$lt_old_striplib
17882 striplib=$lt_striplib
17883
17884 # Dependencies to place before the objects being linked to create a
17885 # shared library.
17886 predep_objects=$lt_predep_objects
17887
17888 # Dependencies to place after the objects being linked to create a
17889 # shared library.
17890 postdep_objects=$lt_postdep_objects
17891
17892 # Dependencies to place before the objects being linked to create a
17893 # shared library.
17894 predeps=$lt_predeps
17895
17896 # Dependencies to place after the objects being linked to create a
17897 # shared library.
17898 postdeps=$lt_postdeps
17899
17900 # The library search path used internally by the compiler when linking
17901 # a shared library.
17902 compiler_lib_search_path=$lt_compiler_lib_search_path
17903
17904 # Method to check whether dependent libraries are shared objects.
17905 deplibs_check_method=$lt_deplibs_check_method
17906
17907 # Command to use when deplibs_check_method == file_magic.
17908 file_magic_cmd=$lt_file_magic_cmd
17909
17910 # Flag that allows shared libraries with undefined symbols to be built.
17911 allow_undefined_flag=$lt_allow_undefined_flag
17912
17913 # Flag that forces no undefined symbols.
17914 no_undefined_flag=$lt_no_undefined_flag
17915
17916 # Commands used to finish a libtool library installation in a directory.
17917 finish_cmds=$lt_finish_cmds
17918
17919 # Same as above, but a single script fragment to be evaled but not shown.
17920 finish_eval=$lt_finish_eval
17921
17922 # Take the output of nm and produce a listing of raw symbols and C names.
17923 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17924
17925 # Transform the output of nm in a proper C declaration
17926 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17927
17928 # Transform the output of nm in a C name address pair
17929 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17930
17931 # This is the shared library runtime path variable.
17932 runpath_var=$runpath_var
17933
17934 # This is the shared library path variable.
17935 shlibpath_var=$shlibpath_var
17936
17937 # Is shlibpath searched before the hard-coded library search path?
17938 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17939
17940 # How to hardcode a shared library path into an executable.
17941 hardcode_action=$hardcode_action
17942
17943 # Whether we should hardcode library paths into libraries.
17944 hardcode_into_libs=$hardcode_into_libs
17945
17946 # Flag to hardcode \$libdir into a binary during linking.
17947 # This must work even if \$libdir does not exist.
17948 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17949
17950 # If ld is used when linking, flag to hardcode \$libdir into
17951 # a binary during linking. This must work even if \$libdir does
17952 # not exist.
17953 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17954
17955 # Whether we need a single -rpath flag with a separated argument.
17956 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17957
17958 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17959 # resulting binary.
17960 hardcode_direct=$hardcode_direct
17961
17962 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17963 # resulting binary.
17964 hardcode_minus_L=$hardcode_minus_L
17965
17966 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17967 # the resulting binary.
17968 hardcode_shlibpath_var=$hardcode_shlibpath_var
17969
17970 # Set to yes if building a shared library automatically hardcodes DIR into the library
17971 # and all subsequent libraries and executables linked against it.
17972 hardcode_automatic=$hardcode_automatic
17973
17974 # Variables whose values should be saved in libtool wrapper scripts and
17975 # restored at relink time.
17976 variables_saved_for_relink="$variables_saved_for_relink"
17977
17978 # Whether libtool must link a program against all its dependency libraries.
17979 link_all_deplibs=$link_all_deplibs
17980
17981 # Compile-time system search path for libraries
17982 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17983
17984 # Run-time system search path for libraries
17985 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17986
17987 # Fix the shell variable \$srcfile for the compiler.
17988 fix_srcfile_path="$fix_srcfile_path"
17989
17990 # Set to yes if exported symbols are required.
17991 always_export_symbols=$always_export_symbols
17992
17993 # The commands to list exported symbols.
17994 export_symbols_cmds=$lt_export_symbols_cmds
17995
17996 # The commands to extract the exported symbol list from a shared archive.
17997 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17998
17999 # Symbols that should not be listed in the preloaded symbols.
18000 exclude_expsyms=$lt_exclude_expsyms
18001
18002 # Symbols that must always be exported.
18003 include_expsyms=$lt_include_expsyms
18004
18005 # ### END LIBTOOL CONFIG
18006
18007 __EOF__
18008
18009
18010   case $host_os in
18011   aix3*)
18012     cat <<\EOF >> "$cfgfile"
18013
18014 # AIX sometimes has problems with the GCC collect2 program.  For some
18015 # reason, if we set the COLLECT_NAMES environment variable, the problems
18016 # vanish in a puff of smoke.
18017 if test "X${COLLECT_NAMES+set}" != Xset; then
18018   COLLECT_NAMES=
18019   export COLLECT_NAMES
18020 fi
18021 EOF
18022     ;;
18023   esac
18024
18025   # We use sed instead of cat because bash on DJGPP gets confused if
18026   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18027   # text mode, it properly converts lines to CR/LF.  This bash problem
18028   # is reportedly fixed, but why not run on old versions too?
18029   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18030
18031   mv -f "$cfgfile" "$ofile" || \
18032     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18033   chmod +x "$ofile"
18034
18035 else
18036   # If there is no Makefile yet, we rely on a make rule to execute
18037   # `config.status --recheck' to rerun these tests and create the
18038   # libtool script then.
18039   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18040   if test -f "$ltmain_in"; then
18041     test -f Makefile && make "$ltmain"
18042   fi
18043 fi
18044
18045
18046 ac_ext=c
18047 ac_cpp='$CPP $CPPFLAGS'
18048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18051
18052 CC="$lt_save_CC"
18053
18054
18055 # Check whether --with-tags was given.
18056 if test "${with_tags+set}" = set; then
18057   withval=$with_tags; tagnames="$withval"
18058 fi
18059
18060
18061 if test -f "$ltmain" && test -n "$tagnames"; then
18062   if test ! -f "${ofile}"; then
18063     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18064 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18065   fi
18066
18067   if test -z "$LTCC"; then
18068     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18069     if test -z "$LTCC"; then
18070       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18071 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18072     else
18073       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18074 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18075     fi
18076   fi
18077   if test -z "$LTCFLAGS"; then
18078     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18079   fi
18080
18081   # Extract list of available tagged configurations in $ofile.
18082   # Note that this assumes the entire list is on one line.
18083   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18084
18085   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18086   for tagname in $tagnames; do
18087     IFS="$lt_save_ifs"
18088     # Check whether tagname contains only valid characters
18089     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18090     "") ;;
18091     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18092 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18093    { (exit 1); exit 1; }; }
18094         ;;
18095     esac
18096
18097     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18098     then
18099       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18100 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18101    { (exit 1); exit 1; }; }
18102     fi
18103
18104     # Update the list of available tags.
18105     if test -n "$tagname"; then
18106       echo appending configuration tag \"$tagname\" to $ofile
18107
18108       case $tagname in
18109       CXX)
18110         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18111             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18112             (test "X$CXX" != "Xg++"))) ; then
18113           ac_ext=cpp
18114 ac_cpp='$CXXCPP $CPPFLAGS'
18115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18118
18119
18120
18121
18122 archive_cmds_need_lc_CXX=no
18123 allow_undefined_flag_CXX=
18124 always_export_symbols_CXX=no
18125 archive_expsym_cmds_CXX=
18126 export_dynamic_flag_spec_CXX=
18127 hardcode_direct_CXX=no
18128 hardcode_libdir_flag_spec_CXX=
18129 hardcode_libdir_flag_spec_ld_CXX=
18130 hardcode_libdir_separator_CXX=
18131 hardcode_minus_L_CXX=no
18132 hardcode_shlibpath_var_CXX=unsupported
18133 hardcode_automatic_CXX=no
18134 module_cmds_CXX=
18135 module_expsym_cmds_CXX=
18136 link_all_deplibs_CXX=unknown
18137 old_archive_cmds_CXX=$old_archive_cmds
18138 no_undefined_flag_CXX=
18139 whole_archive_flag_spec_CXX=
18140 enable_shared_with_static_runtimes_CXX=no
18141
18142 # Dependencies to place before and after the object being linked:
18143 predep_objects_CXX=
18144 postdep_objects_CXX=
18145 predeps_CXX=
18146 postdeps_CXX=
18147 compiler_lib_search_path_CXX=
18148
18149 # Source file extension for C++ test sources.
18150 ac_ext=cpp
18151
18152 # Object file extension for compiled C++ test sources.
18153 objext=o
18154 objext_CXX=$objext
18155
18156 # Code to be used in simple compile tests
18157 lt_simple_compile_test_code="int some_variable = 0;\n"
18158
18159 # Code to be used in simple link tests
18160 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18161
18162 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18163
18164 # If no C compiler was specified, use CC.
18165 LTCC=${LTCC-"$CC"}
18166
18167 # If no C compiler flags were specified, use CFLAGS.
18168 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18169
18170 # Allow CC to be a program name with arguments.
18171 compiler=$CC
18172
18173
18174 # save warnings/boilerplate of simple test code
18175 ac_outfile=conftest.$ac_objext
18176 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18177 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18178 _lt_compiler_boilerplate=`cat conftest.err`
18179 $rm conftest*
18180
18181 ac_outfile=conftest.$ac_objext
18182 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18183 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18184 _lt_linker_boilerplate=`cat conftest.err`
18185 $rm conftest*
18186
18187
18188 # Allow CC to be a program name with arguments.
18189 lt_save_CC=$CC
18190 lt_save_LD=$LD
18191 lt_save_GCC=$GCC
18192 GCC=$GXX
18193 lt_save_with_gnu_ld=$with_gnu_ld
18194 lt_save_path_LD=$lt_cv_path_LD
18195 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18196   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18197 else
18198   $as_unset lt_cv_prog_gnu_ld
18199 fi
18200 if test -n "${lt_cv_path_LDCXX+set}"; then
18201   lt_cv_path_LD=$lt_cv_path_LDCXX
18202 else
18203   $as_unset lt_cv_path_LD
18204 fi
18205 test -z "${LDCXX+set}" || LD=$LDCXX
18206 CC=${CXX-"c++"}
18207 compiler=$CC
18208 compiler_CXX=$CC
18209 for cc_temp in $compiler""; do
18210   case $cc_temp in
18211     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18212     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18213     \-*) ;;
18214     *) break;;
18215   esac
18216 done
18217 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18218
18219
18220 # We don't want -fno-exception wen compiling C++ code, so set the
18221 # no_builtin_flag separately
18222 if test "$GXX" = yes; then
18223   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18224 else
18225   lt_prog_compiler_no_builtin_flag_CXX=
18226 fi
18227
18228 if test "$GXX" = yes; then
18229   # Set up default GNU C++ configuration
18230
18231
18232 # Check whether --with-gnu-ld was given.
18233 if test "${with_gnu_ld+set}" = set; then
18234   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18235 else
18236   with_gnu_ld=no
18237 fi
18238
18239 ac_prog=ld
18240 if test "$GCC" = yes; then
18241   # Check if gcc -print-prog-name=ld gives a path.
18242   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18243 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18244   case $host in
18245   *-*-mingw*)
18246     # gcc leaves a trailing carriage return which upsets mingw
18247     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18248   *)
18249     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18250   esac
18251   case $ac_prog in
18252     # Accept absolute paths.
18253     [\\/]* | ?:[\\/]*)
18254       re_direlt='/[^/][^/]*/\.\./'
18255       # Canonicalize the pathname of ld
18256       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18257       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18258         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18259       done
18260       test -z "$LD" && LD="$ac_prog"
18261       ;;
18262   "")
18263     # If it fails, then pretend we aren't using GCC.
18264     ac_prog=ld
18265     ;;
18266   *)
18267     # If it is relative, then search for the first ld in PATH.
18268     with_gnu_ld=unknown
18269     ;;
18270   esac
18271 elif test "$with_gnu_ld" = yes; then
18272   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18273 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18274 else
18275   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18276 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18277 fi
18278 if test "${lt_cv_path_LD+set}" = set; then
18279   echo $ECHO_N "(cached) $ECHO_C" >&6
18280 else
18281   if test -z "$LD"; then
18282   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18283   for ac_dir in $PATH; do
18284     IFS="$lt_save_ifs"
18285     test -z "$ac_dir" && ac_dir=.
18286     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18287       lt_cv_path_LD="$ac_dir/$ac_prog"
18288       # Check to see if the program is GNU ld.  I'd rather use --version,
18289       # but apparently some variants of GNU ld only accept -v.
18290       # Break only if it was the GNU/non-GNU ld that we prefer.
18291       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18292       *GNU* | *'with BFD'*)
18293         test "$with_gnu_ld" != no && break
18294         ;;
18295       *)
18296         test "$with_gnu_ld" != yes && break
18297         ;;
18298       esac
18299     fi
18300   done
18301   IFS="$lt_save_ifs"
18302 else
18303   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18304 fi
18305 fi
18306
18307 LD="$lt_cv_path_LD"
18308 if test -n "$LD"; then
18309   { echo "$as_me:$LINENO: result: $LD" >&5
18310 echo "${ECHO_T}$LD" >&6; }
18311 else
18312   { echo "$as_me:$LINENO: result: no" >&5
18313 echo "${ECHO_T}no" >&6; }
18314 fi
18315 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18316 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18317    { (exit 1); exit 1; }; }
18318 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18319 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18320 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18321   echo $ECHO_N "(cached) $ECHO_C" >&6
18322 else
18323   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18324 case `$LD -v 2>&1 </dev/null` in
18325 *GNU* | *'with BFD'*)
18326   lt_cv_prog_gnu_ld=yes
18327   ;;
18328 *)
18329   lt_cv_prog_gnu_ld=no
18330   ;;
18331 esac
18332 fi
18333 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18334 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18335 with_gnu_ld=$lt_cv_prog_gnu_ld
18336
18337
18338
18339   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18340   # archiving commands below assume that GNU ld is being used.
18341   if test "$with_gnu_ld" = yes; then
18342     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18343     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'
18344
18345     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18346     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18347
18348     # If archive_cmds runs LD, not CC, wlarc should be empty
18349     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18350     #     investigate it a little bit more. (MM)
18351     wlarc='${wl}'
18352
18353     # ancient GNU ld didn't support --whole-archive et. al.
18354     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18355         grep 'no-whole-archive' > /dev/null; then
18356       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18357     else
18358       whole_archive_flag_spec_CXX=
18359     fi
18360   else
18361     with_gnu_ld=no
18362     wlarc=
18363
18364     # A generic and very simple default shared library creation
18365     # command for GNU C++ for the case where it uses the native
18366     # linker, instead of GNU ld.  If possible, this setting should
18367     # overridden to take advantage of the native linker features on
18368     # the platform it is being used on.
18369     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18370   fi
18371
18372   # Commands to make compiler produce verbose output that lists
18373   # what "hidden" libraries, object files and flags are used when
18374   # linking a shared library.
18375   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18376
18377 else
18378   GXX=no
18379   with_gnu_ld=no
18380   wlarc=
18381 fi
18382
18383 # PORTME: fill in a description of your system's C++ link characteristics
18384 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18385 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18386 ld_shlibs_CXX=yes
18387 case $host_os in
18388   aix3*)
18389     # FIXME: insert proper C++ library support
18390     ld_shlibs_CXX=no
18391     ;;
18392   aix4* | aix5*)
18393     if test "$host_cpu" = ia64; then
18394       # On IA64, the linker does run time linking by default, so we don't
18395       # have to do anything special.
18396       aix_use_runtimelinking=no
18397       exp_sym_flag='-Bexport'
18398       no_entry_flag=""
18399     else
18400       aix_use_runtimelinking=no
18401
18402       # Test if we are trying to use run time linking or normal
18403       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18404       # need to do runtime linking.
18405       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18406         for ld_flag in $LDFLAGS; do
18407           case $ld_flag in
18408           *-brtl*)
18409             aix_use_runtimelinking=yes
18410             break
18411             ;;
18412           esac
18413         done
18414         ;;
18415       esac
18416
18417       exp_sym_flag='-bexport'
18418       no_entry_flag='-bnoentry'
18419     fi
18420
18421     # When large executables or shared objects are built, AIX ld can
18422     # have problems creating the table of contents.  If linking a library
18423     # or program results in "error TOC overflow" add -mminimal-toc to
18424     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18425     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18426
18427     archive_cmds_CXX=''
18428     hardcode_direct_CXX=yes
18429     hardcode_libdir_separator_CXX=':'
18430     link_all_deplibs_CXX=yes
18431
18432     if test "$GXX" = yes; then
18433       case $host_os in aix4.[012]|aix4.[012].*)
18434       # We only want to do this on AIX 4.2 and lower, the check
18435       # below for broken collect2 doesn't work under 4.3+
18436         collect2name=`${CC} -print-prog-name=collect2`
18437         if test -f "$collect2name" && \
18438            strings "$collect2name" | grep resolve_lib_name >/dev/null
18439         then
18440           # We have reworked collect2
18441           hardcode_direct_CXX=yes
18442         else
18443           # We have old collect2
18444           hardcode_direct_CXX=unsupported
18445           # It fails to find uninstalled libraries when the uninstalled
18446           # path is not listed in the libpath.  Setting hardcode_minus_L
18447           # to unsupported forces relinking
18448           hardcode_minus_L_CXX=yes
18449           hardcode_libdir_flag_spec_CXX='-L$libdir'
18450           hardcode_libdir_separator_CXX=
18451         fi
18452         ;;
18453       esac
18454       shared_flag='-shared'
18455       if test "$aix_use_runtimelinking" = yes; then
18456         shared_flag="$shared_flag "'${wl}-G'
18457       fi
18458     else
18459       # not using gcc
18460       if test "$host_cpu" = ia64; then
18461         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18462         # chokes on -Wl,-G. The following line is correct:
18463         shared_flag='-G'
18464       else
18465         if test "$aix_use_runtimelinking" = yes; then
18466           shared_flag='${wl}-G'
18467         else
18468           shared_flag='${wl}-bM:SRE'
18469         fi
18470       fi
18471     fi
18472
18473     # It seems that -bexpall does not export symbols beginning with
18474     # underscore (_), so it is better to generate a list of symbols to export.
18475     always_export_symbols_CXX=yes
18476     if test "$aix_use_runtimelinking" = yes; then
18477       # Warning - without using the other runtime loading flags (-brtl),
18478       # -berok will link without error, but may produce a broken library.
18479       allow_undefined_flag_CXX='-berok'
18480       # Determine the default libpath from the value encoded in an empty executable.
18481       cat >conftest.$ac_ext <<_ACEOF
18482 /* confdefs.h.  */
18483 _ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h.  */
18487
18488 int
18489 main ()
18490 {
18491
18492   ;
18493   return 0;
18494 }
18495 _ACEOF
18496 rm -f conftest.$ac_objext conftest$ac_exeext
18497 if { (ac_try="$ac_link"
18498 case "(($ac_try" in
18499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500   *) ac_try_echo=$ac_try;;
18501 esac
18502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503   (eval "$ac_link") 2>conftest.er1
18504   ac_status=$?
18505   grep -v '^ *+' conftest.er1 >conftest.err
18506   rm -f conftest.er1
18507   cat conftest.err >&5
18508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509   (exit $ac_status); } &&
18510          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18511   { (case "(($ac_try" in
18512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513   *) ac_try_echo=$ac_try;;
18514 esac
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516   (eval "$ac_try") 2>&5
18517   ac_status=$?
18518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519   (exit $ac_status); }; } &&
18520          { ac_try='test -s conftest$ac_exeext'
18521   { (case "(($ac_try" in
18522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523   *) ac_try_echo=$ac_try;;
18524 esac
18525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526   (eval "$ac_try") 2>&5
18527   ac_status=$?
18528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529   (exit $ac_status); }; }; then
18530
18531 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18532 }'`
18533 # Check for a 64-bit object if we didn't find anything.
18534 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; }
18535 }'`; fi
18536 else
18537   echo "$as_me: failed program was:" >&5
18538 sed 's/^/| /' conftest.$ac_ext >&5
18539
18540
18541 fi
18542
18543 rm -f core conftest.err conftest.$ac_objext \
18544       conftest$ac_exeext conftest.$ac_ext
18545 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18546
18547       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18548
18549       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"
18550      else
18551       if test "$host_cpu" = ia64; then
18552         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18553         allow_undefined_flag_CXX="-z nodefs"
18554         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"
18555       else
18556         # Determine the default libpath from the value encoded in an empty executable.
18557         cat >conftest.$ac_ext <<_ACEOF
18558 /* confdefs.h.  */
18559 _ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h.  */
18563
18564 int
18565 main ()
18566 {
18567
18568   ;
18569   return 0;
18570 }
18571 _ACEOF
18572 rm -f conftest.$ac_objext conftest$ac_exeext
18573 if { (ac_try="$ac_link"
18574 case "(($ac_try" in
18575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18576   *) ac_try_echo=$ac_try;;
18577 esac
18578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18579   (eval "$ac_link") 2>conftest.er1
18580   ac_status=$?
18581   grep -v '^ *+' conftest.er1 >conftest.err
18582   rm -f conftest.er1
18583   cat conftest.err >&5
18584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585   (exit $ac_status); } &&
18586          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18587   { (case "(($ac_try" in
18588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589   *) ac_try_echo=$ac_try;;
18590 esac
18591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592   (eval "$ac_try") 2>&5
18593   ac_status=$?
18594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595   (exit $ac_status); }; } &&
18596          { ac_try='test -s conftest$ac_exeext'
18597   { (case "(($ac_try" in
18598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599   *) ac_try_echo=$ac_try;;
18600 esac
18601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18602   (eval "$ac_try") 2>&5
18603   ac_status=$?
18604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605   (exit $ac_status); }; }; then
18606
18607 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18608 }'`
18609 # Check for a 64-bit object if we didn't find anything.
18610 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; }
18611 }'`; fi
18612 else
18613   echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18615
18616
18617 fi
18618
18619 rm -f core conftest.err conftest.$ac_objext \
18620       conftest$ac_exeext conftest.$ac_ext
18621 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18622
18623         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18624         # Warning - without using the other run time loading flags,
18625         # -berok will link without error, but may produce a broken library.
18626         no_undefined_flag_CXX=' ${wl}-bernotok'
18627         allow_undefined_flag_CXX=' ${wl}-berok'
18628         # Exported symbols can be pulled into shared objects from archives
18629         whole_archive_flag_spec_CXX='$convenience'
18630         archive_cmds_need_lc_CXX=yes
18631         # This is similar to how AIX traditionally builds its shared libraries.
18632         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'
18633       fi
18634     fi
18635     ;;
18636
18637   beos*)
18638     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18639       allow_undefined_flag_CXX=unsupported
18640       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18641       # support --undefined.  This deserves some investigation.  FIXME
18642       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18643     else
18644       ld_shlibs_CXX=no
18645     fi
18646     ;;
18647
18648   chorus*)
18649     case $cc_basename in
18650       *)
18651         # FIXME: insert proper C++ library support
18652         ld_shlibs_CXX=no
18653         ;;
18654     esac
18655     ;;
18656
18657   cygwin* | mingw* | pw32*)
18658     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18659     # as there is no search path for DLLs.
18660     hardcode_libdir_flag_spec_CXX='-L$libdir'
18661     allow_undefined_flag_CXX=unsupported
18662     always_export_symbols_CXX=no
18663     enable_shared_with_static_runtimes_CXX=yes
18664
18665     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18666       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'
18667       # If the export-symbols file already is a .def file (1st line
18668       # is EXPORTS), use it as is; otherwise, prepend...
18669       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18670         cp $export_symbols $output_objdir/$soname.def;
18671       else
18672         echo EXPORTS > $output_objdir/$soname.def;
18673         cat $export_symbols >> $output_objdir/$soname.def;
18674       fi~
18675       $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'
18676     else
18677       ld_shlibs_CXX=no
18678     fi
18679   ;;
18680       darwin* | rhapsody*)
18681         case $host_os in
18682         rhapsody* | darwin1.[012])
18683          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18684          ;;
18685        *) # Darwin 1.3 on
18686          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18687            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18688          else
18689            case ${MACOSX_DEPLOYMENT_TARGET} in
18690              10.[012])
18691                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18692                ;;
18693              10.*)
18694                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18695                ;;
18696            esac
18697          fi
18698          ;;
18699         esac
18700       archive_cmds_need_lc_CXX=no
18701       hardcode_direct_CXX=no
18702       hardcode_automatic_CXX=yes
18703       hardcode_shlibpath_var_CXX=unsupported
18704       whole_archive_flag_spec_CXX=''
18705       link_all_deplibs_CXX=yes
18706
18707     if test "$GXX" = yes ; then
18708       lt_int_apple_cc_single_mod=no
18709       output_verbose_link_cmd='echo'
18710       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18711        lt_int_apple_cc_single_mod=yes
18712       fi
18713       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18714        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18715       else
18716           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'
18717         fi
18718         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18719         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18720           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18721             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}'
18722           else
18723             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}'
18724           fi
18725             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}'
18726       else
18727       case $cc_basename in
18728         xlc*)
18729          output_verbose_link_cmd='echo'
18730           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'
18731           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18732           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18733           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}'
18734           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}'
18735           ;;
18736        *)
18737          ld_shlibs_CXX=no
18738           ;;
18739       esac
18740       fi
18741         ;;
18742
18743   dgux*)
18744     case $cc_basename in
18745       ec++*)
18746         # FIXME: insert proper C++ library support
18747         ld_shlibs_CXX=no
18748         ;;
18749       ghcx*)
18750         # Green Hills C++ Compiler
18751         # FIXME: insert proper C++ library support
18752         ld_shlibs_CXX=no
18753         ;;
18754       *)
18755         # FIXME: insert proper C++ library support
18756         ld_shlibs_CXX=no
18757         ;;
18758     esac
18759     ;;
18760   freebsd[12]*)
18761     # C++ shared libraries reported to be fairly broken before switch to ELF
18762     ld_shlibs_CXX=no
18763     ;;
18764   freebsd-elf*)
18765     archive_cmds_need_lc_CXX=no
18766     ;;
18767   freebsd* | kfreebsd*-gnu | dragonfly*)
18768     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18769     # conventions
18770     ld_shlibs_CXX=yes
18771     ;;
18772   gnu*)
18773     ;;
18774   hpux9*)
18775     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18776     hardcode_libdir_separator_CXX=:
18777     export_dynamic_flag_spec_CXX='${wl}-E'
18778     hardcode_direct_CXX=yes
18779     hardcode_minus_L_CXX=yes # Not in the search PATH,
18780                                 # but as the default
18781                                 # location of the library.
18782
18783     case $cc_basename in
18784     CC*)
18785       # FIXME: insert proper C++ library support
18786       ld_shlibs_CXX=no
18787       ;;
18788     aCC*)
18789       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'
18790       # Commands to make compiler produce verbose output that lists
18791       # what "hidden" libraries, object files and flags are used when
18792       # linking a shared library.
18793       #
18794       # There doesn't appear to be a way to prevent this compiler from
18795       # explicitly linking system object files so we need to strip them
18796       # from the output so that they don't get included in the library
18797       # dependencies.
18798       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'
18799       ;;
18800     *)
18801       if test "$GXX" = yes; then
18802         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'
18803       else
18804         # FIXME: insert proper C++ library support
18805         ld_shlibs_CXX=no
18806       fi
18807       ;;
18808     esac
18809     ;;
18810   hpux10*|hpux11*)
18811     if test $with_gnu_ld = no; then
18812       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18813       hardcode_libdir_separator_CXX=:
18814
18815       case $host_cpu in
18816       hppa*64*|ia64*)
18817         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18818         ;;
18819       *)
18820         export_dynamic_flag_spec_CXX='${wl}-E'
18821         ;;
18822       esac
18823     fi
18824     case $host_cpu in
18825     hppa*64*|ia64*)
18826       hardcode_direct_CXX=no
18827       hardcode_shlibpath_var_CXX=no
18828       ;;
18829     *)
18830       hardcode_direct_CXX=yes
18831       hardcode_minus_L_CXX=yes # Not in the search PATH,
18832                                               # but as the default
18833                                               # location of the library.
18834       ;;
18835     esac
18836
18837     case $cc_basename in
18838       CC*)
18839         # FIXME: insert proper C++ library support
18840         ld_shlibs_CXX=no
18841         ;;
18842       aCC*)
18843         case $host_cpu in
18844         hppa*64*)
18845           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18846           ;;
18847         ia64*)
18848           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18849           ;;
18850         *)
18851           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18852           ;;
18853         esac
18854         # Commands to make compiler produce verbose output that lists
18855         # what "hidden" libraries, object files and flags are used when
18856         # linking a shared library.
18857         #
18858         # There doesn't appear to be a way to prevent this compiler from
18859         # explicitly linking system object files so we need to strip them
18860         # from the output so that they don't get included in the library
18861         # dependencies.
18862         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'
18863         ;;
18864       *)
18865         if test "$GXX" = yes; then
18866           if test $with_gnu_ld = no; then
18867             case $host_cpu in
18868             hppa*64*)
18869               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18870               ;;
18871             ia64*)
18872               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18873               ;;
18874             *)
18875               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'
18876               ;;
18877             esac
18878           fi
18879         else
18880           # FIXME: insert proper C++ library support
18881           ld_shlibs_CXX=no
18882         fi
18883         ;;
18884     esac
18885     ;;
18886   interix3*)
18887     hardcode_direct_CXX=no
18888     hardcode_shlibpath_var_CXX=no
18889     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18890     export_dynamic_flag_spec_CXX='${wl}-E'
18891     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18892     # Instead, shared libraries are loaded at an image base (0x10000000 by
18893     # default) and relocated if they conflict, which is a slow very memory
18894     # consuming and fragmenting process.  To avoid this, we pick a random,
18895     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18896     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18897     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'
18898     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'
18899     ;;
18900   irix5* | irix6*)
18901     case $cc_basename in
18902       CC*)
18903         # SGI C++
18904         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'
18905
18906         # Archives containing C++ object files must be created using
18907         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18908         # necessary to make sure instantiated templates are included
18909         # in the archive.
18910         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18911         ;;
18912       *)
18913         if test "$GXX" = yes; then
18914           if test "$with_gnu_ld" = no; then
18915             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'
18916           else
18917             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'
18918           fi
18919         fi
18920         link_all_deplibs_CXX=yes
18921         ;;
18922     esac
18923     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18924     hardcode_libdir_separator_CXX=:
18925     ;;
18926   linux*)
18927     case $cc_basename in
18928       KCC*)
18929         # Kuck and Associates, Inc. (KAI) C++ Compiler
18930
18931         # KCC will only create a shared library if the output file
18932         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18933         # to its proper name (with version) after linking.
18934         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'
18935         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'
18936         # Commands to make compiler produce verbose output that lists
18937         # what "hidden" libraries, object files and flags are used when
18938         # linking a shared library.
18939         #
18940         # There doesn't appear to be a way to prevent this compiler from
18941         # explicitly linking system object files so we need to strip them
18942         # from the output so that they don't get included in the library
18943         # dependencies.
18944         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'
18945
18946         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18947         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18948
18949         # Archives containing C++ object files must be created using
18950         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18951         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18952         ;;
18953       icpc*)
18954         # Intel C++
18955         with_gnu_ld=yes
18956         # version 8.0 and above of icpc choke on multiply defined symbols
18957         # if we add $predep_objects and $postdep_objects, however 7.1 and
18958         # earlier do not add the objects themselves.
18959         case `$CC -V 2>&1` in
18960         *"Version 7."*)
18961           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18962           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'
18963           ;;
18964         *)  # Version 8.0 or newer
18965           tmp_idyn=
18966           case $host_cpu in
18967             ia64*) tmp_idyn=' -i_dynamic';;
18968           esac
18969           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18970           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'
18971           ;;
18972         esac
18973         archive_cmds_need_lc_CXX=no
18974         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18975         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18976         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18977         ;;
18978       pgCC*)
18979         # Portland Group C++ compiler
18980         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18981         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'
18982
18983         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18984         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18985         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'
18986         ;;
18987       cxx*)
18988         # Compaq C++
18989         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18990         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'
18991
18992         runpath_var=LD_RUN_PATH
18993         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18994         hardcode_libdir_separator_CXX=:
18995
18996         # Commands to make compiler produce verbose output that lists
18997         # what "hidden" libraries, object files and flags are used when
18998         # linking a shared library.
18999         #
19000         # There doesn't appear to be a way to prevent this compiler from
19001         # explicitly linking system object files so we need to strip them
19002         # from the output so that they don't get included in the library
19003         # dependencies.
19004         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'
19005         ;;
19006     esac
19007     ;;
19008   lynxos*)
19009     # FIXME: insert proper C++ library support
19010     ld_shlibs_CXX=no
19011     ;;
19012   m88k*)
19013     # FIXME: insert proper C++ library support
19014     ld_shlibs_CXX=no
19015     ;;
19016   mvs*)
19017     case $cc_basename in
19018       cxx*)
19019         # FIXME: insert proper C++ library support
19020         ld_shlibs_CXX=no
19021         ;;
19022       *)
19023         # FIXME: insert proper C++ library support
19024         ld_shlibs_CXX=no
19025         ;;
19026     esac
19027     ;;
19028   netbsd*)
19029     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19030       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19031       wlarc=
19032       hardcode_libdir_flag_spec_CXX='-R$libdir'
19033       hardcode_direct_CXX=yes
19034       hardcode_shlibpath_var_CXX=no
19035     fi
19036     # Workaround some broken pre-1.5 toolchains
19037     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19038     ;;
19039   openbsd2*)
19040     # C++ shared libraries are fairly broken
19041     ld_shlibs_CXX=no
19042     ;;
19043   openbsd*)
19044     hardcode_direct_CXX=yes
19045     hardcode_shlibpath_var_CXX=no
19046     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19047     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19048     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19049       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19050       export_dynamic_flag_spec_CXX='${wl}-E'
19051       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19052     fi
19053     output_verbose_link_cmd='echo'
19054     ;;
19055   osf3*)
19056     case $cc_basename in
19057       KCC*)
19058         # Kuck and Associates, Inc. (KAI) C++ Compiler
19059
19060         # KCC will only create a shared library if the output file
19061         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19062         # to its proper name (with version) after linking.
19063         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'
19064
19065         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19066         hardcode_libdir_separator_CXX=:
19067
19068         # Archives containing C++ object files must be created using
19069         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19070         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19071
19072         ;;
19073       RCC*)
19074         # Rational C++ 2.4.1
19075         # FIXME: insert proper C++ library support
19076         ld_shlibs_CXX=no
19077         ;;
19078       cxx*)
19079         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19080         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'
19081
19082         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19083         hardcode_libdir_separator_CXX=:
19084
19085         # Commands to make compiler produce verbose output that lists
19086         # what "hidden" libraries, object files and flags are used when
19087         # linking a shared library.
19088         #
19089         # There doesn't appear to be a way to prevent this compiler from
19090         # explicitly linking system object files so we need to strip them
19091         # from the output so that they don't get included in the library
19092         # dependencies.
19093         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'
19094         ;;
19095       *)
19096         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19097           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19098           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'
19099
19100           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19101           hardcode_libdir_separator_CXX=:
19102
19103           # Commands to make compiler produce verbose output that lists
19104           # what "hidden" libraries, object files and flags are used when
19105           # linking a shared library.
19106           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19107
19108         else
19109           # FIXME: insert proper C++ library support
19110           ld_shlibs_CXX=no
19111         fi
19112         ;;
19113     esac
19114     ;;
19115   osf4* | osf5*)
19116     case $cc_basename in
19117       KCC*)
19118         # Kuck and Associates, Inc. (KAI) C++ Compiler
19119
19120         # KCC will only create a shared library if the output file
19121         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19122         # to its proper name (with version) after linking.
19123         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'
19124
19125         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19126         hardcode_libdir_separator_CXX=:
19127
19128         # Archives containing C++ object files must be created using
19129         # the KAI C++ compiler.
19130         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19131         ;;
19132       RCC*)
19133         # Rational C++ 2.4.1
19134         # FIXME: insert proper C++ library support
19135         ld_shlibs_CXX=no
19136         ;;
19137       cxx*)
19138         allow_undefined_flag_CXX=' -expect_unresolved \*'
19139         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'
19140         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19141           echo "-hidden">> $lib.exp~
19142           $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~
19143           $rm $lib.exp'
19144
19145         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19146         hardcode_libdir_separator_CXX=:
19147
19148         # Commands to make compiler produce verbose output that lists
19149         # what "hidden" libraries, object files and flags are used when
19150         # linking a shared library.
19151         #
19152         # There doesn't appear to be a way to prevent this compiler from
19153         # explicitly linking system object files so we need to strip them
19154         # from the output so that they don't get included in the library
19155         # dependencies.
19156         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'
19157         ;;
19158       *)
19159         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19160           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19161          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'
19162
19163           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19164           hardcode_libdir_separator_CXX=:
19165
19166           # Commands to make compiler produce verbose output that lists
19167           # what "hidden" libraries, object files and flags are used when
19168           # linking a shared library.
19169           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19170
19171         else
19172           # FIXME: insert proper C++ library support
19173           ld_shlibs_CXX=no
19174         fi
19175         ;;
19176     esac
19177     ;;
19178   psos*)
19179     # FIXME: insert proper C++ library support
19180     ld_shlibs_CXX=no
19181     ;;
19182   sunos4*)
19183     case $cc_basename in
19184       CC*)
19185         # Sun C++ 4.x
19186         # FIXME: insert proper C++ library support
19187         ld_shlibs_CXX=no
19188         ;;
19189       lcc*)
19190         # Lucid
19191         # FIXME: insert proper C++ library support
19192         ld_shlibs_CXX=no
19193         ;;
19194       *)
19195         # FIXME: insert proper C++ library support
19196         ld_shlibs_CXX=no
19197         ;;
19198     esac
19199     ;;
19200   solaris*)
19201     case $cc_basename in
19202       CC*)
19203         # Sun C++ 4.2, 5.x and Centerline C++
19204         archive_cmds_need_lc_CXX=yes
19205         no_undefined_flag_CXX=' -zdefs'
19206         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19207         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19208         $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'
19209
19210         hardcode_libdir_flag_spec_CXX='-R$libdir'
19211         hardcode_shlibpath_var_CXX=no
19212         case $host_os in
19213           solaris2.[0-5] | solaris2.[0-5].*) ;;
19214           *)
19215             # The C++ compiler is used as linker so we must use $wl
19216             # flag to pass the commands to the underlying system
19217             # linker. We must also pass each convience library through
19218             # to the system linker between allextract/defaultextract.
19219             # The C++ compiler will combine linker options so we
19220             # cannot just pass the convience library names through
19221             # without $wl.
19222             # Supported since Solaris 2.6 (maybe 2.5.1?)
19223             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'
19224             ;;
19225         esac
19226         link_all_deplibs_CXX=yes
19227
19228         output_verbose_link_cmd='echo'
19229
19230         # Archives containing C++ object files must be created using
19231         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19232         # necessary to make sure instantiated templates are included
19233         # in the archive.
19234         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19235         ;;
19236       gcx*)
19237         # Green Hills C++ Compiler
19238         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19239
19240         # The C++ compiler must be used to create the archive.
19241         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19242         ;;
19243       *)
19244         # GNU C++ compiler with Solaris linker
19245         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19246           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19247           if $CC --version | grep -v '^2\.7' > /dev/null; then
19248             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19249             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19250                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19251
19252             # Commands to make compiler produce verbose output that lists
19253             # what "hidden" libraries, object files and flags are used when
19254             # linking a shared library.
19255             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19256           else
19257             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19258             # platform.
19259             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19260             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19261                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19262
19263             # Commands to make compiler produce verbose output that lists
19264             # what "hidden" libraries, object files and flags are used when
19265             # linking a shared library.
19266             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19267           fi
19268
19269           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19270         fi
19271         ;;
19272     esac
19273     ;;
19274   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19275     no_undefined_flag_CXX='${wl}-z,text'
19276     archive_cmds_need_lc_CXX=no
19277     hardcode_shlibpath_var_CXX=no
19278     runpath_var='LD_RUN_PATH'
19279
19280     case $cc_basename in
19281       CC*)
19282         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19283         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19284         ;;
19285       *)
19286         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19287         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19288         ;;
19289     esac
19290     ;;
19291   sysv5* | sco3.2v5* | sco5v6*)
19292     # Note: We can NOT use -z defs as we might desire, because we do not
19293     # link with -lc, and that would cause any symbols used from libc to
19294     # always be unresolved, which means just about no library would
19295     # ever link correctly.  If we're not using GNU ld we use -z text
19296     # though, which does catch some bad symbols but isn't as heavy-handed
19297     # as -z defs.
19298     # For security reasons, it is highly recommended that you always
19299     # use absolute paths for naming shared libraries, and exclude the
19300     # DT_RUNPATH tag from executables and libraries.  But doing so
19301     # requires that you compile everything twice, which is a pain.
19302     # So that behaviour is only enabled if SCOABSPATH is set to a
19303     # non-empty value in the environment.  Most likely only useful for
19304     # creating official distributions of packages.
19305     # This is a hack until libtool officially supports absolute path
19306     # names for shared libraries.
19307     no_undefined_flag_CXX='${wl}-z,text'
19308     allow_undefined_flag_CXX='${wl}-z,nodefs'
19309     archive_cmds_need_lc_CXX=no
19310     hardcode_shlibpath_var_CXX=no
19311     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19312     hardcode_libdir_separator_CXX=':'
19313     link_all_deplibs_CXX=yes
19314     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19315     runpath_var='LD_RUN_PATH'
19316
19317     case $cc_basename in
19318       CC*)
19319         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19320         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19321         ;;
19322       *)
19323         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19324         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19325         ;;
19326     esac
19327     ;;
19328   tandem*)
19329     case $cc_basename in
19330       NCC*)
19331         # NonStop-UX NCC 3.20
19332         # FIXME: insert proper C++ library support
19333         ld_shlibs_CXX=no
19334         ;;
19335       *)
19336         # FIXME: insert proper C++ library support
19337         ld_shlibs_CXX=no
19338         ;;
19339     esac
19340     ;;
19341   vxworks*)
19342     # FIXME: insert proper C++ library support
19343     ld_shlibs_CXX=no
19344     ;;
19345   *)
19346     # FIXME: insert proper C++ library support
19347     ld_shlibs_CXX=no
19348     ;;
19349 esac
19350 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19351 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19352 test "$ld_shlibs_CXX" = no && can_build_shared=no
19353
19354 GCC_CXX="$GXX"
19355 LD_CXX="$LD"
19356
19357
19358 cat > conftest.$ac_ext <<EOF
19359 class Foo
19360 {
19361 public:
19362   Foo (void) { a = 0; }
19363 private:
19364   int a;
19365 };
19366 EOF
19367
19368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19369   (eval $ac_compile) 2>&5
19370   ac_status=$?
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); }; then
19373   # Parse the compiler output and extract the necessary
19374   # objects, libraries and library flags.
19375
19376   # Sentinel used to keep track of whether or not we are before
19377   # the conftest object file.
19378   pre_test_object_deps_done=no
19379
19380   # The `*' in the case matches for architectures that use `case' in
19381   # $output_verbose_cmd can trigger glob expansion during the loop
19382   # eval without this substitution.
19383   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19384
19385   for p in `eval $output_verbose_link_cmd`; do
19386     case $p in
19387
19388     -L* | -R* | -l*)
19389        # Some compilers place space between "-{L,R}" and the path.
19390        # Remove the space.
19391        if test $p = "-L" \
19392           || test $p = "-R"; then
19393          prev=$p
19394          continue
19395        else
19396          prev=
19397        fi
19398
19399        if test "$pre_test_object_deps_done" = no; then
19400          case $p in
19401          -L* | -R*)
19402            # Internal compiler library paths should come after those
19403            # provided the user.  The postdeps already come after the
19404            # user supplied libs so there is no need to process them.
19405            if test -z "$compiler_lib_search_path_CXX"; then
19406              compiler_lib_search_path_CXX="${prev}${p}"
19407            else
19408              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19409            fi
19410            ;;
19411          # The "-l" case would never come before the object being
19412          # linked, so don't bother handling this case.
19413          esac
19414        else
19415          if test -z "$postdeps_CXX"; then
19416            postdeps_CXX="${prev}${p}"
19417          else
19418            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19419          fi
19420        fi
19421        ;;
19422
19423     *.$objext)
19424        # This assumes that the test object file only shows up
19425        # once in the compiler output.
19426        if test "$p" = "conftest.$objext"; then
19427          pre_test_object_deps_done=yes
19428          continue
19429        fi
19430
19431        if test "$pre_test_object_deps_done" = no; then
19432          if test -z "$predep_objects_CXX"; then
19433            predep_objects_CXX="$p"
19434          else
19435            predep_objects_CXX="$predep_objects_CXX $p"
19436          fi
19437        else
19438          if test -z "$postdep_objects_CXX"; then
19439            postdep_objects_CXX="$p"
19440          else
19441            postdep_objects_CXX="$postdep_objects_CXX $p"
19442          fi
19443        fi
19444        ;;
19445
19446     *) ;; # Ignore the rest.
19447
19448     esac
19449   done
19450
19451   # Clean up.
19452   rm -f a.out a.exe
19453 else
19454   echo "libtool.m4: error: problem compiling CXX test program"
19455 fi
19456
19457 $rm -f confest.$objext
19458
19459 # PORTME: override above test on systems where it is broken
19460 case $host_os in
19461 interix3*)
19462   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19463   # hack all around it, let's just trust "g++" to DTRT.
19464   predep_objects_CXX=
19465   postdep_objects_CXX=
19466   postdeps_CXX=
19467   ;;
19468
19469 solaris*)
19470   case $cc_basename in
19471   CC*)
19472     # Adding this requires a known-good setup of shared libraries for
19473     # Sun compiler versions before 5.6, else PIC objects from an old
19474     # archive will be linked into the output, leading to subtle bugs.
19475     postdeps_CXX='-lCstd -lCrun'
19476     ;;
19477   esac
19478   ;;
19479 esac
19480
19481
19482 case " $postdeps_CXX " in
19483 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19484 esac
19485
19486 lt_prog_compiler_wl_CXX=
19487 lt_prog_compiler_pic_CXX=
19488 lt_prog_compiler_static_CXX=
19489
19490 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19491 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19492
19493   # C++ specific cases for pic, static, wl, etc.
19494   if test "$GXX" = yes; then
19495     lt_prog_compiler_wl_CXX='-Wl,'
19496     lt_prog_compiler_static_CXX='-static'
19497
19498     case $host_os in
19499     aix*)
19500       # All AIX code is PIC.
19501       if test "$host_cpu" = ia64; then
19502         # AIX 5 now supports IA64 processor
19503         lt_prog_compiler_static_CXX='-Bstatic'
19504       fi
19505       ;;
19506     amigaos*)
19507       # FIXME: we need at least 68020 code to build shared libraries, but
19508       # adding the `-m68020' flag to GCC prevents building anything better,
19509       # like `-m68040'.
19510       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19511       ;;
19512     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19513       # PIC is the default for these OSes.
19514       ;;
19515     mingw* | os2* | pw32*)
19516       # This hack is so that the source file can tell whether it is being
19517       # built for inclusion in a dll (and should export symbols for example).
19518       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19519       ;;
19520     darwin* | rhapsody*)
19521       # PIC is the default on this platform
19522       # Common symbols not allowed in MH_DYLIB files
19523       lt_prog_compiler_pic_CXX='-fno-common'
19524       ;;
19525     *djgpp*)
19526       # DJGPP does not support shared libraries at all
19527       lt_prog_compiler_pic_CXX=
19528       ;;
19529     interix3*)
19530       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19531       # Instead, we relocate shared libraries at runtime.
19532       ;;
19533     sysv4*MP*)
19534       if test -d /usr/nec; then
19535         lt_prog_compiler_pic_CXX=-Kconform_pic
19536       fi
19537       ;;
19538     hpux*)
19539       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19540       # not for PA HP-UX.
19541       case $host_cpu in
19542       hppa*64*|ia64*)
19543         ;;
19544       *)
19545         lt_prog_compiler_pic_CXX='-fPIC'
19546         ;;
19547       esac
19548       ;;
19549     *)
19550       lt_prog_compiler_pic_CXX='-fPIC'
19551       ;;
19552     esac
19553   else
19554     case $host_os in
19555       aix4* | aix5*)
19556         # All AIX code is PIC.
19557         if test "$host_cpu" = ia64; then
19558           # AIX 5 now supports IA64 processor
19559           lt_prog_compiler_static_CXX='-Bstatic'
19560         else
19561           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19562         fi
19563         ;;
19564       chorus*)
19565         case $cc_basename in
19566         cxch68*)
19567           # Green Hills C++ Compiler
19568           # _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"
19569           ;;
19570         esac
19571         ;;
19572        darwin*)
19573          # PIC is the default on this platform
19574          # Common symbols not allowed in MH_DYLIB files
19575          case $cc_basename in
19576            xlc*)
19577            lt_prog_compiler_pic_CXX='-qnocommon'
19578            lt_prog_compiler_wl_CXX='-Wl,'
19579            ;;
19580          esac
19581        ;;
19582       dgux*)
19583         case $cc_basename in
19584           ec++*)
19585             lt_prog_compiler_pic_CXX='-KPIC'
19586             ;;
19587           ghcx*)
19588             # Green Hills C++ Compiler
19589             lt_prog_compiler_pic_CXX='-pic'
19590             ;;
19591           *)
19592             ;;
19593         esac
19594         ;;
19595       freebsd* | kfreebsd*-gnu | dragonfly*)
19596         # FreeBSD uses GNU C++
19597         ;;
19598       hpux9* | hpux10* | hpux11*)
19599         case $cc_basename in
19600           CC*)
19601             lt_prog_compiler_wl_CXX='-Wl,'
19602             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19603             if test "$host_cpu" != ia64; then
19604               lt_prog_compiler_pic_CXX='+Z'
19605             fi
19606             ;;
19607           aCC*)
19608             lt_prog_compiler_wl_CXX='-Wl,'
19609             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19610             case $host_cpu in
19611             hppa*64*|ia64*)
19612               # +Z the default
19613               ;;
19614             *)
19615               lt_prog_compiler_pic_CXX='+Z'
19616               ;;
19617             esac
19618             ;;
19619           *)
19620             ;;
19621         esac
19622         ;;
19623       interix*)
19624         # This is c89, which is MS Visual C++ (no shared libs)
19625         # Anyone wants to do a port?
19626         ;;
19627       irix5* | irix6* | nonstopux*)
19628         case $cc_basename in
19629           CC*)
19630             lt_prog_compiler_wl_CXX='-Wl,'
19631             lt_prog_compiler_static_CXX='-non_shared'
19632             # CC pic flag -KPIC is the default.
19633             ;;
19634           *)
19635             ;;
19636         esac
19637         ;;
19638       linux*)
19639         case $cc_basename in
19640           KCC*)
19641             # KAI C++ Compiler
19642             lt_prog_compiler_wl_CXX='--backend -Wl,'
19643             lt_prog_compiler_pic_CXX='-fPIC'
19644             ;;
19645           icpc* | ecpc*)
19646             # Intel C++
19647             lt_prog_compiler_wl_CXX='-Wl,'
19648             lt_prog_compiler_pic_CXX='-KPIC'
19649             lt_prog_compiler_static_CXX='-static'
19650             ;;
19651           pgCC*)
19652             # Portland Group C++ compiler.
19653             lt_prog_compiler_wl_CXX='-Wl,'
19654             lt_prog_compiler_pic_CXX='-fpic'
19655             lt_prog_compiler_static_CXX='-Bstatic'
19656             ;;
19657           cxx*)
19658             # Compaq C++
19659             # Make sure the PIC flag is empty.  It appears that all Alpha
19660             # Linux and Compaq Tru64 Unix objects are PIC.
19661             lt_prog_compiler_pic_CXX=
19662             lt_prog_compiler_static_CXX='-non_shared'
19663             ;;
19664           *)
19665             ;;
19666         esac
19667         ;;
19668       lynxos*)
19669         ;;
19670       m88k*)
19671         ;;
19672       mvs*)
19673         case $cc_basename in
19674           cxx*)
19675             lt_prog_compiler_pic_CXX='-W c,exportall'
19676             ;;
19677           *)
19678             ;;
19679         esac
19680         ;;
19681       netbsd*)
19682         ;;
19683       osf3* | osf4* | osf5*)
19684         case $cc_basename in
19685           KCC*)
19686             lt_prog_compiler_wl_CXX='--backend -Wl,'
19687             ;;
19688           RCC*)
19689             # Rational C++ 2.4.1
19690             lt_prog_compiler_pic_CXX='-pic'
19691             ;;
19692           cxx*)
19693             # Digital/Compaq C++
19694             lt_prog_compiler_wl_CXX='-Wl,'
19695             # Make sure the PIC flag is empty.  It appears that all Alpha
19696             # Linux and Compaq Tru64 Unix objects are PIC.
19697             lt_prog_compiler_pic_CXX=
19698             lt_prog_compiler_static_CXX='-non_shared'
19699             ;;
19700           *)
19701             ;;
19702         esac
19703         ;;
19704       psos*)
19705         ;;
19706       solaris*)
19707         case $cc_basename in
19708           CC*)
19709             # Sun C++ 4.2, 5.x and Centerline C++
19710             lt_prog_compiler_pic_CXX='-KPIC'
19711             lt_prog_compiler_static_CXX='-Bstatic'
19712             lt_prog_compiler_wl_CXX='-Qoption ld '
19713             ;;
19714           gcx*)
19715             # Green Hills C++ Compiler
19716             lt_prog_compiler_pic_CXX='-PIC'
19717             ;;
19718           *)
19719             ;;
19720         esac
19721         ;;
19722       sunos4*)
19723         case $cc_basename in
19724           CC*)
19725             # Sun C++ 4.x
19726             lt_prog_compiler_pic_CXX='-pic'
19727             lt_prog_compiler_static_CXX='-Bstatic'
19728             ;;
19729           lcc*)
19730             # Lucid
19731             lt_prog_compiler_pic_CXX='-pic'
19732             ;;
19733           *)
19734             ;;
19735         esac
19736         ;;
19737       tandem*)
19738         case $cc_basename in
19739           NCC*)
19740             # NonStop-UX NCC 3.20
19741             lt_prog_compiler_pic_CXX='-KPIC'
19742             ;;
19743           *)
19744             ;;
19745         esac
19746         ;;
19747       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19748         case $cc_basename in
19749           CC*)
19750             lt_prog_compiler_wl_CXX='-Wl,'
19751             lt_prog_compiler_pic_CXX='-KPIC'
19752             lt_prog_compiler_static_CXX='-Bstatic'
19753             ;;
19754         esac
19755         ;;
19756       vxworks*)
19757         ;;
19758       *)
19759         lt_prog_compiler_can_build_shared_CXX=no
19760         ;;
19761     esac
19762   fi
19763
19764 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19765 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19766
19767 #
19768 # Check to make sure the PIC flag actually works.
19769 #
19770 if test -n "$lt_prog_compiler_pic_CXX"; then
19771
19772 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19773 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19774 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19775   echo $ECHO_N "(cached) $ECHO_C" >&6
19776 else
19777   lt_prog_compiler_pic_works_CXX=no
19778   ac_outfile=conftest.$ac_objext
19779    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19780    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19781    # Insert the option either (1) after the last *FLAGS variable, or
19782    # (2) before a word containing "conftest.", or (3) at the end.
19783    # Note that $ac_compile itself does not contain backslashes and begins
19784    # with a dollar sign (not a hyphen), so the echo should work correctly.
19785    # The option is referenced via a variable to avoid confusing sed.
19786    lt_compile=`echo "$ac_compile" | $SED \
19787    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19788    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19789    -e 's:$: $lt_compiler_flag:'`
19790    (eval echo "\"\$as_me:19790: $lt_compile\"" >&5)
19791    (eval "$lt_compile" 2>conftest.err)
19792    ac_status=$?
19793    cat conftest.err >&5
19794    echo "$as_me:19794: \$? = $ac_status" >&5
19795    if (exit $ac_status) && test -s "$ac_outfile"; then
19796      # The compiler can only warn and ignore the option if not recognized
19797      # So say no if there are warnings other than the usual output.
19798      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19799      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19800      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19801        lt_prog_compiler_pic_works_CXX=yes
19802      fi
19803    fi
19804    $rm conftest*
19805
19806 fi
19807 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19808 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19809
19810 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19811     case $lt_prog_compiler_pic_CXX in
19812      "" | " "*) ;;
19813      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19814      esac
19815 else
19816     lt_prog_compiler_pic_CXX=
19817      lt_prog_compiler_can_build_shared_CXX=no
19818 fi
19819
19820 fi
19821 case $host_os in
19822   # For platforms which do not support PIC, -DPIC is meaningless:
19823   *djgpp*)
19824     lt_prog_compiler_pic_CXX=
19825     ;;
19826   *)
19827     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19828     ;;
19829 esac
19830
19831 #
19832 # Check to make sure the static flag actually works.
19833 #
19834 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19835 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19836 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19837 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19838   echo $ECHO_N "(cached) $ECHO_C" >&6
19839 else
19840   lt_prog_compiler_static_works_CXX=no
19841    save_LDFLAGS="$LDFLAGS"
19842    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19843    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19844    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19845      # The linker can only warn and ignore the option if not recognized
19846      # So say no if there are warnings
19847      if test -s conftest.err; then
19848        # Append any errors to the config.log.
19849        cat conftest.err 1>&5
19850        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19851        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19852        if diff conftest.exp conftest.er2 >/dev/null; then
19853          lt_prog_compiler_static_works_CXX=yes
19854        fi
19855      else
19856        lt_prog_compiler_static_works_CXX=yes
19857      fi
19858    fi
19859    $rm conftest*
19860    LDFLAGS="$save_LDFLAGS"
19861
19862 fi
19863 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19864 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19865
19866 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19867     :
19868 else
19869     lt_prog_compiler_static_CXX=
19870 fi
19871
19872
19873 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19874 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19875 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19876   echo $ECHO_N "(cached) $ECHO_C" >&6
19877 else
19878   lt_cv_prog_compiler_c_o_CXX=no
19879    $rm -r conftest 2>/dev/null
19880    mkdir conftest
19881    cd conftest
19882    mkdir out
19883    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19884
19885    lt_compiler_flag="-o out/conftest2.$ac_objext"
19886    # Insert the option either (1) after the last *FLAGS variable, or
19887    # (2) before a word containing "conftest.", or (3) at the end.
19888    # Note that $ac_compile itself does not contain backslashes and begins
19889    # with a dollar sign (not a hyphen), so the echo should work correctly.
19890    lt_compile=`echo "$ac_compile" | $SED \
19891    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19892    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19893    -e 's:$: $lt_compiler_flag:'`
19894    (eval echo "\"\$as_me:19894: $lt_compile\"" >&5)
19895    (eval "$lt_compile" 2>out/conftest.err)
19896    ac_status=$?
19897    cat out/conftest.err >&5
19898    echo "$as_me:19898: \$? = $ac_status" >&5
19899    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19900    then
19901      # The compiler can only warn and ignore the option if not recognized
19902      # So say no if there are warnings
19903      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19904      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19905      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19906        lt_cv_prog_compiler_c_o_CXX=yes
19907      fi
19908    fi
19909    chmod u+w . 2>&5
19910    $rm conftest*
19911    # SGI C++ compiler will create directory out/ii_files/ for
19912    # template instantiation
19913    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19914    $rm out/* && rmdir out
19915    cd ..
19916    rmdir conftest
19917    $rm conftest*
19918
19919 fi
19920 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19921 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19922
19923
19924 hard_links="nottested"
19925 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19926   # do not overwrite the value of need_locks provided by the user
19927   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19928 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19929   hard_links=yes
19930   $rm conftest*
19931   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19932   touch conftest.a
19933   ln conftest.a conftest.b 2>&5 || hard_links=no
19934   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19935   { echo "$as_me:$LINENO: result: $hard_links" >&5
19936 echo "${ECHO_T}$hard_links" >&6; }
19937   if test "$hard_links" = no; then
19938     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19939 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19940     need_locks=warn
19941   fi
19942 else
19943   need_locks=no
19944 fi
19945
19946 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19947 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19948
19949   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19950   case $host_os in
19951   aix4* | aix5*)
19952     # If we're using GNU nm, then we don't want the "-C" option.
19953     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19954     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19955       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'
19956     else
19957       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'
19958     fi
19959     ;;
19960   pw32*)
19961     export_symbols_cmds_CXX="$ltdll_cmds"
19962   ;;
19963   cygwin* | mingw*)
19964     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'
19965   ;;
19966   *)
19967     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19968   ;;
19969   esac
19970
19971 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19972 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19973 test "$ld_shlibs_CXX" = no && can_build_shared=no
19974
19975 #
19976 # Do we need to explicitly link libc?
19977 #
19978 case "x$archive_cmds_need_lc_CXX" in
19979 x|xyes)
19980   # Assume -lc should be added
19981   archive_cmds_need_lc_CXX=yes
19982
19983   if test "$enable_shared" = yes && test "$GCC" = yes; then
19984     case $archive_cmds_CXX in
19985     *'~'*)
19986       # FIXME: we may have to deal with multi-command sequences.
19987       ;;
19988     '$CC '*)
19989       # Test whether the compiler implicitly links with -lc since on some
19990       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19991       # to ld, don't add -lc before -lgcc.
19992       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19993 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19994       $rm conftest*
19995       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19996
19997       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19998   (eval $ac_compile) 2>&5
19999   ac_status=$?
20000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001   (exit $ac_status); } 2>conftest.err; then
20002         soname=conftest
20003         lib=conftest
20004         libobjs=conftest.$ac_objext
20005         deplibs=
20006         wl=$lt_prog_compiler_wl_CXX
20007         pic_flag=$lt_prog_compiler_pic_CXX
20008         compiler_flags=-v
20009         linker_flags=-v
20010         verstring=
20011         output_objdir=.
20012         libname=conftest
20013         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20014         allow_undefined_flag_CXX=
20015         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20016   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20017   ac_status=$?
20018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019   (exit $ac_status); }
20020         then
20021           archive_cmds_need_lc_CXX=no
20022         else
20023           archive_cmds_need_lc_CXX=yes
20024         fi
20025         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20026       else
20027         cat conftest.err 1>&5
20028       fi
20029       $rm conftest*
20030       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20031 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20032       ;;
20033     esac
20034   fi
20035   ;;
20036 esac
20037
20038 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20039 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20040 library_names_spec=
20041 libname_spec='lib$name'
20042 soname_spec=
20043 shrext_cmds=".so"
20044 postinstall_cmds=
20045 postuninstall_cmds=
20046 finish_cmds=
20047 finish_eval=
20048 shlibpath_var=
20049 shlibpath_overrides_runpath=unknown
20050 version_type=none
20051 dynamic_linker="$host_os ld.so"
20052 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20053 if test "$GCC" = yes; then
20054   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20055   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20056     # if the path contains ";" then we assume it to be the separator
20057     # otherwise default to the standard path separator (i.e. ":") - it is
20058     # assumed that no part of a normal pathname contains ";" but that should
20059     # okay in the real world where ";" in dirpaths is itself problematic.
20060     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20061   else
20062     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20063   fi
20064 else
20065   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20066 fi
20067 need_lib_prefix=unknown
20068 hardcode_into_libs=no
20069
20070 # when you set need_version to no, make sure it does not cause -set_version
20071 # flags to be left without arguments
20072 need_version=unknown
20073
20074 case $host_os in
20075 aix3*)
20076   version_type=linux
20077   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20078   shlibpath_var=LIBPATH
20079
20080   # AIX 3 has no versioning support, so we append a major version to the name.
20081   soname_spec='${libname}${release}${shared_ext}$major'
20082   ;;
20083
20084 aix4* | aix5*)
20085   version_type=linux
20086   need_lib_prefix=no
20087   need_version=no
20088   hardcode_into_libs=yes
20089   if test "$host_cpu" = ia64; then
20090     # AIX 5 supports IA64
20091     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20092     shlibpath_var=LD_LIBRARY_PATH
20093   else
20094     # With GCC up to 2.95.x, collect2 would create an import file
20095     # for dependence libraries.  The import file would start with
20096     # the line `#! .'.  This would cause the generated library to
20097     # depend on `.', always an invalid library.  This was fixed in
20098     # development snapshots of GCC prior to 3.0.
20099     case $host_os in
20100       aix4 | aix4.[01] | aix4.[01].*)
20101       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20102            echo ' yes '
20103            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20104         :
20105       else
20106         can_build_shared=no
20107       fi
20108       ;;
20109     esac
20110     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20111     # soname into executable. Probably we can add versioning support to
20112     # collect2, so additional links can be useful in future.
20113     if test "$aix_use_runtimelinking" = yes; then
20114       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20115       # instead of lib<name>.a to let people know that these are not
20116       # typical AIX shared libraries.
20117       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20118     else
20119       # We preserve .a as extension for shared libraries through AIX4.2
20120       # and later when we are not doing run time linking.
20121       library_names_spec='${libname}${release}.a $libname.a'
20122       soname_spec='${libname}${release}${shared_ext}$major'
20123     fi
20124     shlibpath_var=LIBPATH
20125   fi
20126   ;;
20127
20128 amigaos*)
20129   library_names_spec='$libname.ixlibrary $libname.a'
20130   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20131   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'
20132   ;;
20133
20134 beos*)
20135   library_names_spec='${libname}${shared_ext}'
20136   dynamic_linker="$host_os ld.so"
20137   shlibpath_var=LIBRARY_PATH
20138   ;;
20139
20140 bsdi[45]*)
20141   version_type=linux
20142   need_version=no
20143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20144   soname_spec='${libname}${release}${shared_ext}$major'
20145   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20146   shlibpath_var=LD_LIBRARY_PATH
20147   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20148   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20149   # the default ld.so.conf also contains /usr/contrib/lib and
20150   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20151   # libtool to hard-code these into programs
20152   ;;
20153
20154 cygwin* | mingw* | pw32*)
20155   version_type=windows
20156   shrext_cmds=".dll"
20157   need_version=no
20158   need_lib_prefix=no
20159
20160   case $GCC,$host_os in
20161   yes,cygwin* | yes,mingw* | yes,pw32*)
20162     library_names_spec='$libname.dll.a'
20163     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20164     postinstall_cmds='base_file=`basename \${file}`~
20165       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20166       dldir=$destdir/`dirname \$dlpath`~
20167       test -d \$dldir || mkdir -p \$dldir~
20168       $install_prog $dir/$dlname \$dldir/$dlname~
20169       chmod a+x \$dldir/$dlname'
20170     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20171       dlpath=$dir/\$dldll~
20172        $rm \$dlpath'
20173     shlibpath_overrides_runpath=yes
20174
20175     case $host_os in
20176     cygwin*)
20177       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20178       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20179       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20180       ;;
20181     mingw*)
20182       # MinGW DLLs use traditional 'lib' prefix
20183       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20184       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20185       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20186         # It is most probably a Windows format PATH printed by
20187         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20188         # path with ; separators, and with drive letters. We can handle the
20189         # drive letters (cygwin fileutils understands them), so leave them,
20190         # especially as we might pass files found there to a mingw objdump,
20191         # which wouldn't understand a cygwinified path. Ahh.
20192         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20193       else
20194         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20195       fi
20196       ;;
20197     pw32*)
20198       # pw32 DLLs use 'pw' prefix rather than 'lib'
20199       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20200       ;;
20201     esac
20202     ;;
20203
20204   *)
20205     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20206     ;;
20207   esac
20208   dynamic_linker='Win32 ld.exe'
20209   # FIXME: first we should search . and the directory the executable is in
20210   shlibpath_var=PATH
20211   ;;
20212
20213 darwin* | rhapsody*)
20214   dynamic_linker="$host_os dyld"
20215   version_type=darwin
20216   need_lib_prefix=no
20217   need_version=no
20218   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20219   soname_spec='${libname}${release}${major}$shared_ext'
20220   shlibpath_overrides_runpath=yes
20221   shlibpath_var=DYLD_LIBRARY_PATH
20222   shrext_cmds='.dylib'
20223   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20224   if test "$GCC" = yes; then
20225     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"`
20226   else
20227     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20228   fi
20229   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20230   ;;
20231
20232 dgux*)
20233   version_type=linux
20234   need_lib_prefix=no
20235   need_version=no
20236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20237   soname_spec='${libname}${release}${shared_ext}$major'
20238   shlibpath_var=LD_LIBRARY_PATH
20239   ;;
20240
20241 freebsd1*)
20242   dynamic_linker=no
20243   ;;
20244
20245 kfreebsd*-gnu)
20246   version_type=linux
20247   need_lib_prefix=no
20248   need_version=no
20249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20250   soname_spec='${libname}${release}${shared_ext}$major'
20251   shlibpath_var=LD_LIBRARY_PATH
20252   shlibpath_overrides_runpath=no
20253   hardcode_into_libs=yes
20254   dynamic_linker='GNU ld.so'
20255   ;;
20256
20257 freebsd* | dragonfly*)
20258   # DragonFly does not have aout.  When/if they implement a new
20259   # versioning mechanism, adjust this.
20260   if test -x /usr/bin/objformat; then
20261     objformat=`/usr/bin/objformat`
20262   else
20263     case $host_os in
20264     freebsd[123]*) objformat=aout ;;
20265     *) objformat=elf ;;
20266     esac
20267   fi
20268   version_type=freebsd-$objformat
20269   case $version_type in
20270     freebsd-elf*)
20271       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20272       need_version=no
20273       need_lib_prefix=no
20274       ;;
20275     freebsd-*)
20276       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20277       need_version=yes
20278       ;;
20279   esac
20280   shlibpath_var=LD_LIBRARY_PATH
20281   case $host_os in
20282   freebsd2*)
20283     shlibpath_overrides_runpath=yes
20284     ;;
20285   freebsd3.[01]* | freebsdelf3.[01]*)
20286     shlibpath_overrides_runpath=yes
20287     hardcode_into_libs=yes
20288     ;;
20289   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20290   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20291     shlibpath_overrides_runpath=no
20292     hardcode_into_libs=yes
20293     ;;
20294   freebsd*) # from 4.6 on
20295     shlibpath_overrides_runpath=yes
20296     hardcode_into_libs=yes
20297     ;;
20298   esac
20299   ;;
20300
20301 gnu*)
20302   version_type=linux
20303   need_lib_prefix=no
20304   need_version=no
20305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20306   soname_spec='${libname}${release}${shared_ext}$major'
20307   shlibpath_var=LD_LIBRARY_PATH
20308   hardcode_into_libs=yes
20309   ;;
20310
20311 hpux9* | hpux10* | hpux11*)
20312   # Give a soname corresponding to the major version so that dld.sl refuses to
20313   # link against other versions.
20314   version_type=sunos
20315   need_lib_prefix=no
20316   need_version=no
20317   case $host_cpu in
20318   ia64*)
20319     shrext_cmds='.so'
20320     hardcode_into_libs=yes
20321     dynamic_linker="$host_os dld.so"
20322     shlibpath_var=LD_LIBRARY_PATH
20323     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20324     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20325     soname_spec='${libname}${release}${shared_ext}$major'
20326     if test "X$HPUX_IA64_MODE" = X32; then
20327       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20328     else
20329       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20330     fi
20331     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20332     ;;
20333    hppa*64*)
20334      shrext_cmds='.sl'
20335      hardcode_into_libs=yes
20336      dynamic_linker="$host_os dld.sl"
20337      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20338      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20339      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20340      soname_spec='${libname}${release}${shared_ext}$major'
20341      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20342      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20343      ;;
20344    *)
20345     shrext_cmds='.sl'
20346     dynamic_linker="$host_os dld.sl"
20347     shlibpath_var=SHLIB_PATH
20348     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20349     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20350     soname_spec='${libname}${release}${shared_ext}$major'
20351     ;;
20352   esac
20353   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20354   postinstall_cmds='chmod 555 $lib'
20355   ;;
20356
20357 interix3*)
20358   version_type=linux
20359   need_lib_prefix=no
20360   need_version=no
20361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20362   soname_spec='${libname}${release}${shared_ext}$major'
20363   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20364   shlibpath_var=LD_LIBRARY_PATH
20365   shlibpath_overrides_runpath=no
20366   hardcode_into_libs=yes
20367   ;;
20368
20369 irix5* | irix6* | nonstopux*)
20370   case $host_os in
20371     nonstopux*) version_type=nonstopux ;;
20372     *)
20373         if test "$lt_cv_prog_gnu_ld" = yes; then
20374                 version_type=linux
20375         else
20376                 version_type=irix
20377         fi ;;
20378   esac
20379   need_lib_prefix=no
20380   need_version=no
20381   soname_spec='${libname}${release}${shared_ext}$major'
20382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20383   case $host_os in
20384   irix5* | nonstopux*)
20385     libsuff= shlibsuff=
20386     ;;
20387   *)
20388     case $LD in # libtool.m4 will add one of these switches to LD
20389     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20390       libsuff= shlibsuff= libmagic=32-bit;;
20391     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20392       libsuff=32 shlibsuff=N32 libmagic=N32;;
20393     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20394       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20395     *) libsuff= shlibsuff= libmagic=never-match;;
20396     esac
20397     ;;
20398   esac
20399   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20400   shlibpath_overrides_runpath=no
20401   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20402   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20403   hardcode_into_libs=yes
20404   ;;
20405
20406 # No shared lib support for Linux oldld, aout, or coff.
20407 linux*oldld* | linux*aout* | linux*coff*)
20408   dynamic_linker=no
20409   ;;
20410
20411 # This must be Linux ELF.
20412 linux*)
20413   version_type=linux
20414   need_lib_prefix=no
20415   need_version=no
20416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20417   soname_spec='${libname}${release}${shared_ext}$major'
20418   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20419   shlibpath_var=LD_LIBRARY_PATH
20420   shlibpath_overrides_runpath=no
20421   # This implies no fast_install, which is unacceptable.
20422   # Some rework will be needed to allow for fast_install
20423   # before this can be enabled.
20424   hardcode_into_libs=yes
20425
20426   # Append ld.so.conf contents to the search path
20427   if test -f /etc/ld.so.conf; then
20428     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' ' '`
20429     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20430   fi
20431
20432   # We used to test for /lib/ld.so.1 and disable shared libraries on
20433   # powerpc, because MkLinux only supported shared libraries with the
20434   # GNU dynamic linker.  Since this was broken with cross compilers,
20435   # most powerpc-linux boxes support dynamic linking these days and
20436   # people can always --disable-shared, the test was removed, and we
20437   # assume the GNU/Linux dynamic linker is in use.
20438   dynamic_linker='GNU/Linux ld.so'
20439   ;;
20440
20441 knetbsd*-gnu)
20442   version_type=linux
20443   need_lib_prefix=no
20444   need_version=no
20445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20446   soname_spec='${libname}${release}${shared_ext}$major'
20447   shlibpath_var=LD_LIBRARY_PATH
20448   shlibpath_overrides_runpath=no
20449   hardcode_into_libs=yes
20450   dynamic_linker='GNU ld.so'
20451   ;;
20452
20453 netbsd*)
20454   version_type=sunos
20455   need_lib_prefix=no
20456   need_version=no
20457   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20458     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20459     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20460     dynamic_linker='NetBSD (a.out) ld.so'
20461   else
20462     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20463     soname_spec='${libname}${release}${shared_ext}$major'
20464     dynamic_linker='NetBSD ld.elf_so'
20465   fi
20466   shlibpath_var=LD_LIBRARY_PATH
20467   shlibpath_overrides_runpath=yes
20468   hardcode_into_libs=yes
20469   ;;
20470
20471 newsos6)
20472   version_type=linux
20473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20474   shlibpath_var=LD_LIBRARY_PATH
20475   shlibpath_overrides_runpath=yes
20476   ;;
20477
20478 nto-qnx*)
20479   version_type=linux
20480   need_lib_prefix=no
20481   need_version=no
20482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20483   soname_spec='${libname}${release}${shared_ext}$major'
20484   shlibpath_var=LD_LIBRARY_PATH
20485   shlibpath_overrides_runpath=yes
20486   ;;
20487
20488 openbsd*)
20489   version_type=sunos
20490   sys_lib_dlsearch_path_spec="/usr/lib"
20491   need_lib_prefix=no
20492   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20493   case $host_os in
20494     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20495     *)                         need_version=no  ;;
20496   esac
20497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20498   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20499   shlibpath_var=LD_LIBRARY_PATH
20500   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20501     case $host_os in
20502       openbsd2.[89] | openbsd2.[89].*)
20503         shlibpath_overrides_runpath=no
20504         ;;
20505       *)
20506         shlibpath_overrides_runpath=yes
20507         ;;
20508       esac
20509   else
20510     shlibpath_overrides_runpath=yes
20511   fi
20512   ;;
20513
20514 os2*)
20515   libname_spec='$name'
20516   shrext_cmds=".dll"
20517   need_lib_prefix=no
20518   library_names_spec='$libname${shared_ext} $libname.a'
20519   dynamic_linker='OS/2 ld.exe'
20520   shlibpath_var=LIBPATH
20521   ;;
20522
20523 osf3* | osf4* | osf5*)
20524   version_type=osf
20525   need_lib_prefix=no
20526   need_version=no
20527   soname_spec='${libname}${release}${shared_ext}$major'
20528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20529   shlibpath_var=LD_LIBRARY_PATH
20530   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20531   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20532   ;;
20533
20534 solaris*)
20535   version_type=linux
20536   need_lib_prefix=no
20537   need_version=no
20538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20539   soname_spec='${libname}${release}${shared_ext}$major'
20540   shlibpath_var=LD_LIBRARY_PATH
20541   shlibpath_overrides_runpath=yes
20542   hardcode_into_libs=yes
20543   # ldd complains unless libraries are executable
20544   postinstall_cmds='chmod +x $lib'
20545   ;;
20546
20547 sunos4*)
20548   version_type=sunos
20549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20550   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20551   shlibpath_var=LD_LIBRARY_PATH
20552   shlibpath_overrides_runpath=yes
20553   if test "$with_gnu_ld" = yes; then
20554     need_lib_prefix=no
20555   fi
20556   need_version=yes
20557   ;;
20558
20559 sysv4 | sysv4.3*)
20560   version_type=linux
20561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20562   soname_spec='${libname}${release}${shared_ext}$major'
20563   shlibpath_var=LD_LIBRARY_PATH
20564   case $host_vendor in
20565     sni)
20566       shlibpath_overrides_runpath=no
20567       need_lib_prefix=no
20568       export_dynamic_flag_spec='${wl}-Blargedynsym'
20569       runpath_var=LD_RUN_PATH
20570       ;;
20571     siemens)
20572       need_lib_prefix=no
20573       ;;
20574     motorola)
20575       need_lib_prefix=no
20576       need_version=no
20577       shlibpath_overrides_runpath=no
20578       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20579       ;;
20580   esac
20581   ;;
20582
20583 sysv4*MP*)
20584   if test -d /usr/nec ;then
20585     version_type=linux
20586     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20587     soname_spec='$libname${shared_ext}.$major'
20588     shlibpath_var=LD_LIBRARY_PATH
20589   fi
20590   ;;
20591
20592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20593   version_type=freebsd-elf
20594   need_lib_prefix=no
20595   need_version=no
20596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20597   soname_spec='${libname}${release}${shared_ext}$major'
20598   shlibpath_var=LD_LIBRARY_PATH
20599   hardcode_into_libs=yes
20600   if test "$with_gnu_ld" = yes; then
20601     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20602     shlibpath_overrides_runpath=no
20603   else
20604     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20605     shlibpath_overrides_runpath=yes
20606     case $host_os in
20607       sco3.2v5*)
20608         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20609         ;;
20610     esac
20611   fi
20612   sys_lib_dlsearch_path_spec='/usr/lib'
20613   ;;
20614
20615 uts4*)
20616   version_type=linux
20617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20618   soname_spec='${libname}${release}${shared_ext}$major'
20619   shlibpath_var=LD_LIBRARY_PATH
20620   ;;
20621
20622 *)
20623   dynamic_linker=no
20624   ;;
20625 esac
20626 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20627 echo "${ECHO_T}$dynamic_linker" >&6; }
20628 test "$dynamic_linker" = no && can_build_shared=no
20629
20630 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20631 if test "$GCC" = yes; then
20632   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20633 fi
20634
20635 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20636 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20637 hardcode_action_CXX=
20638 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20639    test -n "$runpath_var_CXX" || \
20640    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20641
20642   # We can hardcode non-existant directories.
20643   if test "$hardcode_direct_CXX" != no &&
20644      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20645      # have to relink, otherwise we might link with an installed library
20646      # when we should be linking with a yet-to-be-installed one
20647      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20648      test "$hardcode_minus_L_CXX" != no; then
20649     # Linking always hardcodes the temporary library directory.
20650     hardcode_action_CXX=relink
20651   else
20652     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20653     hardcode_action_CXX=immediate
20654   fi
20655 else
20656   # We cannot hardcode anything, or else we can only hardcode existing
20657   # directories.
20658   hardcode_action_CXX=unsupported
20659 fi
20660 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20661 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20662
20663 if test "$hardcode_action_CXX" = relink; then
20664   # Fast installation is not supported
20665   enable_fast_install=no
20666 elif test "$shlibpath_overrides_runpath" = yes ||
20667      test "$enable_shared" = no; then
20668   # Fast installation is not necessary
20669   enable_fast_install=needless
20670 fi
20671
20672
20673 # The else clause should only fire when bootstrapping the
20674 # libtool distribution, otherwise you forgot to ship ltmain.sh
20675 # with your package, and you will get complaints that there are
20676 # no rules to generate ltmain.sh.
20677 if test -f "$ltmain"; then
20678   # See if we are running on zsh, and set the options which allow our commands through
20679   # without removal of \ escapes.
20680   if test -n "${ZSH_VERSION+set}" ; then
20681     setopt NO_GLOB_SUBST
20682   fi
20683   # Now quote all the things that may contain metacharacters while being
20684   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20685   # variables and quote the copies for generation of the libtool script.
20686   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20687     SED SHELL STRIP \
20688     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20689     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20690     deplibs_check_method reload_flag reload_cmds need_locks \
20691     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20692     lt_cv_sys_global_symbol_to_c_name_address \
20693     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20694     old_postinstall_cmds old_postuninstall_cmds \
20695     compiler_CXX \
20696     CC_CXX \
20697     LD_CXX \
20698     lt_prog_compiler_wl_CXX \
20699     lt_prog_compiler_pic_CXX \
20700     lt_prog_compiler_static_CXX \
20701     lt_prog_compiler_no_builtin_flag_CXX \
20702     export_dynamic_flag_spec_CXX \
20703     thread_safe_flag_spec_CXX \
20704     whole_archive_flag_spec_CXX \
20705     enable_shared_with_static_runtimes_CXX \
20706     old_archive_cmds_CXX \
20707     old_archive_from_new_cmds_CXX \
20708     predep_objects_CXX \
20709     postdep_objects_CXX \
20710     predeps_CXX \
20711     postdeps_CXX \
20712     compiler_lib_search_path_CXX \
20713     archive_cmds_CXX \
20714     archive_expsym_cmds_CXX \
20715     postinstall_cmds_CXX \
20716     postuninstall_cmds_CXX \
20717     old_archive_from_expsyms_cmds_CXX \
20718     allow_undefined_flag_CXX \
20719     no_undefined_flag_CXX \
20720     export_symbols_cmds_CXX \
20721     hardcode_libdir_flag_spec_CXX \
20722     hardcode_libdir_flag_spec_ld_CXX \
20723     hardcode_libdir_separator_CXX \
20724     hardcode_automatic_CXX \
20725     module_cmds_CXX \
20726     module_expsym_cmds_CXX \
20727     lt_cv_prog_compiler_c_o_CXX \
20728     exclude_expsyms_CXX \
20729     include_expsyms_CXX; do
20730
20731     case $var in
20732     old_archive_cmds_CXX | \
20733     old_archive_from_new_cmds_CXX | \
20734     archive_cmds_CXX | \
20735     archive_expsym_cmds_CXX | \
20736     module_cmds_CXX | \
20737     module_expsym_cmds_CXX | \
20738     old_archive_from_expsyms_cmds_CXX | \
20739     export_symbols_cmds_CXX | \
20740     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20741     postinstall_cmds | postuninstall_cmds | \
20742     old_postinstall_cmds | old_postuninstall_cmds | \
20743     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20744       # Double-quote double-evaled strings.
20745       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20746       ;;
20747     *)
20748       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20749       ;;
20750     esac
20751   done
20752
20753   case $lt_echo in
20754   *'\$0 --fallback-echo"')
20755     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20756     ;;
20757   esac
20758
20759 cfgfile="$ofile"
20760
20761   cat <<__EOF__ >> "$cfgfile"
20762 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20763
20764 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20765
20766 # Shell to use when invoking shell scripts.
20767 SHELL=$lt_SHELL
20768
20769 # Whether or not to build shared libraries.
20770 build_libtool_libs=$enable_shared
20771
20772 # Whether or not to build static libraries.
20773 build_old_libs=$enable_static
20774
20775 # Whether or not to add -lc for building shared libraries.
20776 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20777
20778 # Whether or not to disallow shared libs when runtime libs are static
20779 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20780
20781 # Whether or not to optimize for fast installation.
20782 fast_install=$enable_fast_install
20783
20784 # The host system.
20785 host_alias=$host_alias
20786 host=$host
20787 host_os=$host_os
20788
20789 # The build system.
20790 build_alias=$build_alias
20791 build=$build
20792 build_os=$build_os
20793
20794 # An echo program that does not interpret backslashes.
20795 echo=$lt_echo
20796
20797 # The archiver.
20798 AR=$lt_AR
20799 AR_FLAGS=$lt_AR_FLAGS
20800
20801 # A C compiler.
20802 LTCC=$lt_LTCC
20803
20804 # LTCC compiler flags.
20805 LTCFLAGS=$lt_LTCFLAGS
20806
20807 # A language-specific compiler.
20808 CC=$lt_compiler_CXX
20809
20810 # Is the compiler the GNU C compiler?
20811 with_gcc=$GCC_CXX
20812
20813 # An ERE matcher.
20814 EGREP=$lt_EGREP
20815
20816 # The linker used to build libraries.
20817 LD=$lt_LD_CXX
20818
20819 # Whether we need hard or soft links.
20820 LN_S=$lt_LN_S
20821
20822 # A BSD-compatible nm program.
20823 NM=$lt_NM
20824
20825 # A symbol stripping program
20826 STRIP=$lt_STRIP
20827
20828 # Used to examine libraries when file_magic_cmd begins "file"
20829 MAGIC_CMD=$MAGIC_CMD
20830
20831 # Used on cygwin: DLL creation program.
20832 DLLTOOL="$DLLTOOL"
20833
20834 # Used on cygwin: object dumper.
20835 OBJDUMP="$OBJDUMP"
20836
20837 # Used on cygwin: assembler.
20838 AS="$AS"
20839
20840 # The name of the directory that contains temporary libtool files.
20841 objdir=$objdir
20842
20843 # How to create reloadable object files.
20844 reload_flag=$lt_reload_flag
20845 reload_cmds=$lt_reload_cmds
20846
20847 # How to pass a linker flag through the compiler.
20848 wl=$lt_lt_prog_compiler_wl_CXX
20849
20850 # Object file suffix (normally "o").
20851 objext="$ac_objext"
20852
20853 # Old archive suffix (normally "a").
20854 libext="$libext"
20855
20856 # Shared library suffix (normally ".so").
20857 shrext_cmds='$shrext_cmds'
20858
20859 # Executable file suffix (normally "").
20860 exeext="$exeext"
20861
20862 # Additional compiler flags for building library objects.
20863 pic_flag=$lt_lt_prog_compiler_pic_CXX
20864 pic_mode=$pic_mode
20865
20866 # What is the maximum length of a command?
20867 max_cmd_len=$lt_cv_sys_max_cmd_len
20868
20869 # Does compiler simultaneously support -c and -o options?
20870 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20871
20872 # Must we lock files when doing compilation?
20873 need_locks=$lt_need_locks
20874
20875 # Do we need the lib prefix for modules?
20876 need_lib_prefix=$need_lib_prefix
20877
20878 # Do we need a version for libraries?
20879 need_version=$need_version
20880
20881 # Whether dlopen is supported.
20882 dlopen_support=$enable_dlopen
20883
20884 # Whether dlopen of programs is supported.
20885 dlopen_self=$enable_dlopen_self
20886
20887 # Whether dlopen of statically linked programs is supported.
20888 dlopen_self_static=$enable_dlopen_self_static
20889
20890 # Compiler flag to prevent dynamic linking.
20891 link_static_flag=$lt_lt_prog_compiler_static_CXX
20892
20893 # Compiler flag to turn off builtin functions.
20894 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20895
20896 # Compiler flag to allow reflexive dlopens.
20897 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20898
20899 # Compiler flag to generate shared objects directly from archives.
20900 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20901
20902 # Compiler flag to generate thread-safe objects.
20903 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20904
20905 # Library versioning type.
20906 version_type=$version_type
20907
20908 # Format of library name prefix.
20909 libname_spec=$lt_libname_spec
20910
20911 # List of archive names.  First name is the real one, the rest are links.
20912 # The last name is the one that the linker finds with -lNAME.
20913 library_names_spec=$lt_library_names_spec
20914
20915 # The coded name of the library, if different from the real name.
20916 soname_spec=$lt_soname_spec
20917
20918 # Commands used to build and install an old-style archive.
20919 RANLIB=$lt_RANLIB
20920 old_archive_cmds=$lt_old_archive_cmds_CXX
20921 old_postinstall_cmds=$lt_old_postinstall_cmds
20922 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20923
20924 # Create an old-style archive from a shared archive.
20925 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20926
20927 # Create a temporary old-style archive to link instead of a shared archive.
20928 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20929
20930 # Commands used to build and install a shared archive.
20931 archive_cmds=$lt_archive_cmds_CXX
20932 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20933 postinstall_cmds=$lt_postinstall_cmds
20934 postuninstall_cmds=$lt_postuninstall_cmds
20935
20936 # Commands used to build a loadable module (assumed same as above if empty)
20937 module_cmds=$lt_module_cmds_CXX
20938 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20939
20940 # Commands to strip libraries.
20941 old_striplib=$lt_old_striplib
20942 striplib=$lt_striplib
20943
20944 # Dependencies to place before the objects being linked to create a
20945 # shared library.
20946 predep_objects=$lt_predep_objects_CXX
20947
20948 # Dependencies to place after the objects being linked to create a
20949 # shared library.
20950 postdep_objects=$lt_postdep_objects_CXX
20951
20952 # Dependencies to place before the objects being linked to create a
20953 # shared library.
20954 predeps=$lt_predeps_CXX
20955
20956 # Dependencies to place after the objects being linked to create a
20957 # shared library.
20958 postdeps=$lt_postdeps_CXX
20959
20960 # The library search path used internally by the compiler when linking
20961 # a shared library.
20962 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20963
20964 # Method to check whether dependent libraries are shared objects.
20965 deplibs_check_method=$lt_deplibs_check_method
20966
20967 # Command to use when deplibs_check_method == file_magic.
20968 file_magic_cmd=$lt_file_magic_cmd
20969
20970 # Flag that allows shared libraries with undefined symbols to be built.
20971 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20972
20973 # Flag that forces no undefined symbols.
20974 no_undefined_flag=$lt_no_undefined_flag_CXX
20975
20976 # Commands used to finish a libtool library installation in a directory.
20977 finish_cmds=$lt_finish_cmds
20978
20979 # Same as above, but a single script fragment to be evaled but not shown.
20980 finish_eval=$lt_finish_eval
20981
20982 # Take the output of nm and produce a listing of raw symbols and C names.
20983 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20984
20985 # Transform the output of nm in a proper C declaration
20986 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20987
20988 # Transform the output of nm in a C name address pair
20989 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20990
20991 # This is the shared library runtime path variable.
20992 runpath_var=$runpath_var
20993
20994 # This is the shared library path variable.
20995 shlibpath_var=$shlibpath_var
20996
20997 # Is shlibpath searched before the hard-coded library search path?
20998 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20999
21000 # How to hardcode a shared library path into an executable.
21001 hardcode_action=$hardcode_action_CXX
21002
21003 # Whether we should hardcode library paths into libraries.
21004 hardcode_into_libs=$hardcode_into_libs
21005
21006 # Flag to hardcode \$libdir into a binary during linking.
21007 # This must work even if \$libdir does not exist.
21008 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21009
21010 # If ld is used when linking, flag to hardcode \$libdir into
21011 # a binary during linking. This must work even if \$libdir does
21012 # not exist.
21013 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21014
21015 # Whether we need a single -rpath flag with a separated argument.
21016 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21017
21018 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21019 # resulting binary.
21020 hardcode_direct=$hardcode_direct_CXX
21021
21022 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21023 # resulting binary.
21024 hardcode_minus_L=$hardcode_minus_L_CXX
21025
21026 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21027 # the resulting binary.
21028 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21029
21030 # Set to yes if building a shared library automatically hardcodes DIR into the library
21031 # and all subsequent libraries and executables linked against it.
21032 hardcode_automatic=$hardcode_automatic_CXX
21033
21034 # Variables whose values should be saved in libtool wrapper scripts and
21035 # restored at relink time.
21036 variables_saved_for_relink="$variables_saved_for_relink"
21037
21038 # Whether libtool must link a program against all its dependency libraries.
21039 link_all_deplibs=$link_all_deplibs_CXX
21040
21041 # Compile-time system search path for libraries
21042 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21043
21044 # Run-time system search path for libraries
21045 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21046
21047 # Fix the shell variable \$srcfile for the compiler.
21048 fix_srcfile_path="$fix_srcfile_path_CXX"
21049
21050 # Set to yes if exported symbols are required.
21051 always_export_symbols=$always_export_symbols_CXX
21052
21053 # The commands to list exported symbols.
21054 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21055
21056 # The commands to extract the exported symbol list from a shared archive.
21057 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21058
21059 # Symbols that should not be listed in the preloaded symbols.
21060 exclude_expsyms=$lt_exclude_expsyms_CXX
21061
21062 # Symbols that must always be exported.
21063 include_expsyms=$lt_include_expsyms_CXX
21064
21065 # ### END LIBTOOL TAG CONFIG: $tagname
21066
21067 __EOF__
21068
21069
21070 else
21071   # If there is no Makefile yet, we rely on a make rule to execute
21072   # `config.status --recheck' to rerun these tests and create the
21073   # libtool script then.
21074   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21075   if test -f "$ltmain_in"; then
21076     test -f Makefile && make "$ltmain"
21077   fi
21078 fi
21079
21080
21081 ac_ext=c
21082 ac_cpp='$CPP $CPPFLAGS'
21083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21086
21087 CC=$lt_save_CC
21088 LDCXX=$LD
21089 LD=$lt_save_LD
21090 GCC=$lt_save_GCC
21091 with_gnu_ldcxx=$with_gnu_ld
21092 with_gnu_ld=$lt_save_with_gnu_ld
21093 lt_cv_path_LDCXX=$lt_cv_path_LD
21094 lt_cv_path_LD=$lt_save_path_LD
21095 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21096 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21097
21098         else
21099           tagname=""
21100         fi
21101         ;;
21102
21103       F77)
21104         if test -n "$F77" && test "X$F77" != "Xno"; then
21105
21106 ac_ext=f
21107 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21108 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21109 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21110
21111
21112 archive_cmds_need_lc_F77=no
21113 allow_undefined_flag_F77=
21114 always_export_symbols_F77=no
21115 archive_expsym_cmds_F77=
21116 export_dynamic_flag_spec_F77=
21117 hardcode_direct_F77=no
21118 hardcode_libdir_flag_spec_F77=
21119 hardcode_libdir_flag_spec_ld_F77=
21120 hardcode_libdir_separator_F77=
21121 hardcode_minus_L_F77=no
21122 hardcode_automatic_F77=no
21123 module_cmds_F77=
21124 module_expsym_cmds_F77=
21125 link_all_deplibs_F77=unknown
21126 old_archive_cmds_F77=$old_archive_cmds
21127 no_undefined_flag_F77=
21128 whole_archive_flag_spec_F77=
21129 enable_shared_with_static_runtimes_F77=no
21130
21131 # Source file extension for f77 test sources.
21132 ac_ext=f
21133
21134 # Object file extension for compiled f77 test sources.
21135 objext=o
21136 objext_F77=$objext
21137
21138 # Code to be used in simple compile tests
21139 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21140
21141 # Code to be used in simple link tests
21142 lt_simple_link_test_code="      program t\n      end\n"
21143
21144 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21145
21146 # If no C compiler was specified, use CC.
21147 LTCC=${LTCC-"$CC"}
21148
21149 # If no C compiler flags were specified, use CFLAGS.
21150 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21151
21152 # Allow CC to be a program name with arguments.
21153 compiler=$CC
21154
21155
21156 # save warnings/boilerplate of simple test code
21157 ac_outfile=conftest.$ac_objext
21158 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21159 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21160 _lt_compiler_boilerplate=`cat conftest.err`
21161 $rm conftest*
21162
21163 ac_outfile=conftest.$ac_objext
21164 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21165 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21166 _lt_linker_boilerplate=`cat conftest.err`
21167 $rm conftest*
21168
21169
21170 # Allow CC to be a program name with arguments.
21171 lt_save_CC="$CC"
21172 CC=${F77-"f77"}
21173 compiler=$CC
21174 compiler_F77=$CC
21175 for cc_temp in $compiler""; do
21176   case $cc_temp in
21177     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21178     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21179     \-*) ;;
21180     *) break;;
21181   esac
21182 done
21183 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21184
21185
21186 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21187 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21188 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21189 echo "${ECHO_T}$can_build_shared" >&6; }
21190
21191 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21192 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21193 test "$can_build_shared" = "no" && enable_shared=no
21194
21195 # On AIX, shared libraries and static libraries use the same namespace, and
21196 # are all built from PIC.
21197 case $host_os in
21198 aix3*)
21199   test "$enable_shared" = yes && enable_static=no
21200   if test -n "$RANLIB"; then
21201     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21202     postinstall_cmds='$RANLIB $lib'
21203   fi
21204   ;;
21205 aix4* | aix5*)
21206   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21207     test "$enable_shared" = yes && enable_static=no
21208   fi
21209   ;;
21210 esac
21211 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21212 echo "${ECHO_T}$enable_shared" >&6; }
21213
21214 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21215 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21216 # Make sure either enable_shared or enable_static is yes.
21217 test "$enable_shared" = yes || enable_static=yes
21218 { echo "$as_me:$LINENO: result: $enable_static" >&5
21219 echo "${ECHO_T}$enable_static" >&6; }
21220
21221 GCC_F77="$G77"
21222 LD_F77="$LD"
21223
21224 lt_prog_compiler_wl_F77=
21225 lt_prog_compiler_pic_F77=
21226 lt_prog_compiler_static_F77=
21227
21228 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21229 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21230
21231   if test "$GCC" = yes; then
21232     lt_prog_compiler_wl_F77='-Wl,'
21233     lt_prog_compiler_static_F77='-static'
21234
21235     case $host_os in
21236       aix*)
21237       # All AIX code is PIC.
21238       if test "$host_cpu" = ia64; then
21239         # AIX 5 now supports IA64 processor
21240         lt_prog_compiler_static_F77='-Bstatic'
21241       fi
21242       ;;
21243
21244     amigaos*)
21245       # FIXME: we need at least 68020 code to build shared libraries, but
21246       # adding the `-m68020' flag to GCC prevents building anything better,
21247       # like `-m68040'.
21248       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21249       ;;
21250
21251     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21252       # PIC is the default for these OSes.
21253       ;;
21254
21255     mingw* | pw32* | os2*)
21256       # This hack is so that the source file can tell whether it is being
21257       # built for inclusion in a dll (and should export symbols for example).
21258       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21259       ;;
21260
21261     darwin* | rhapsody*)
21262       # PIC is the default on this platform
21263       # Common symbols not allowed in MH_DYLIB files
21264       lt_prog_compiler_pic_F77='-fno-common'
21265       ;;
21266
21267     interix3*)
21268       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21269       # Instead, we relocate shared libraries at runtime.
21270       ;;
21271
21272     msdosdjgpp*)
21273       # Just because we use GCC doesn't mean we suddenly get shared libraries
21274       # on systems that don't support them.
21275       lt_prog_compiler_can_build_shared_F77=no
21276       enable_shared=no
21277       ;;
21278
21279     sysv4*MP*)
21280       if test -d /usr/nec; then
21281         lt_prog_compiler_pic_F77=-Kconform_pic
21282       fi
21283       ;;
21284
21285     hpux*)
21286       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21287       # not for PA HP-UX.
21288       case $host_cpu in
21289       hppa*64*|ia64*)
21290         # +Z the default
21291         ;;
21292       *)
21293         lt_prog_compiler_pic_F77='-fPIC'
21294         ;;
21295       esac
21296       ;;
21297
21298     *)
21299       lt_prog_compiler_pic_F77='-fPIC'
21300       ;;
21301     esac
21302   else
21303     # PORTME Check for flag to pass linker flags through the system compiler.
21304     case $host_os in
21305     aix*)
21306       lt_prog_compiler_wl_F77='-Wl,'
21307       if test "$host_cpu" = ia64; then
21308         # AIX 5 now supports IA64 processor
21309         lt_prog_compiler_static_F77='-Bstatic'
21310       else
21311         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21312       fi
21313       ;;
21314       darwin*)
21315         # PIC is the default on this platform
21316         # Common symbols not allowed in MH_DYLIB files
21317        case $cc_basename in
21318          xlc*)
21319          lt_prog_compiler_pic_F77='-qnocommon'
21320          lt_prog_compiler_wl_F77='-Wl,'
21321          ;;
21322        esac
21323        ;;
21324
21325     mingw* | pw32* | os2*)
21326       # This hack is so that the source file can tell whether it is being
21327       # built for inclusion in a dll (and should export symbols for example).
21328       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21329       ;;
21330
21331     hpux9* | hpux10* | hpux11*)
21332       lt_prog_compiler_wl_F77='-Wl,'
21333       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21334       # not for PA HP-UX.
21335       case $host_cpu in
21336       hppa*64*|ia64*)
21337         # +Z the default
21338         ;;
21339       *)
21340         lt_prog_compiler_pic_F77='+Z'
21341         ;;
21342       esac
21343       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21344       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21345       ;;
21346
21347     irix5* | irix6* | nonstopux*)
21348       lt_prog_compiler_wl_F77='-Wl,'
21349       # PIC (with -KPIC) is the default.
21350       lt_prog_compiler_static_F77='-non_shared'
21351       ;;
21352
21353     newsos6)
21354       lt_prog_compiler_pic_F77='-KPIC'
21355       lt_prog_compiler_static_F77='-Bstatic'
21356       ;;
21357
21358     linux*)
21359       case $cc_basename in
21360       icc* | ecc*)
21361         lt_prog_compiler_wl_F77='-Wl,'
21362         lt_prog_compiler_pic_F77='-KPIC'
21363         lt_prog_compiler_static_F77='-static'
21364         ;;
21365       pgcc* | pgf77* | pgf90* | pgf95*)
21366         # Portland Group compilers (*not* the Pentium gcc compiler,
21367         # which looks to be a dead project)
21368         lt_prog_compiler_wl_F77='-Wl,'
21369         lt_prog_compiler_pic_F77='-fpic'
21370         lt_prog_compiler_static_F77='-Bstatic'
21371         ;;
21372       ccc*)
21373         lt_prog_compiler_wl_F77='-Wl,'
21374         # All Alpha code is PIC.
21375         lt_prog_compiler_static_F77='-non_shared'
21376         ;;
21377       esac
21378       ;;
21379
21380     osf3* | osf4* | osf5*)
21381       lt_prog_compiler_wl_F77='-Wl,'
21382       # All OSF/1 code is PIC.
21383       lt_prog_compiler_static_F77='-non_shared'
21384       ;;
21385
21386     solaris*)
21387       lt_prog_compiler_pic_F77='-KPIC'
21388       lt_prog_compiler_static_F77='-Bstatic'
21389       case $cc_basename in
21390       f77* | f90* | f95*)
21391         lt_prog_compiler_wl_F77='-Qoption ld ';;
21392       *)
21393         lt_prog_compiler_wl_F77='-Wl,';;
21394       esac
21395       ;;
21396
21397     sunos4*)
21398       lt_prog_compiler_wl_F77='-Qoption ld '
21399       lt_prog_compiler_pic_F77='-PIC'
21400       lt_prog_compiler_static_F77='-Bstatic'
21401       ;;
21402
21403     sysv4 | sysv4.2uw2* | sysv4.3*)
21404       lt_prog_compiler_wl_F77='-Wl,'
21405       lt_prog_compiler_pic_F77='-KPIC'
21406       lt_prog_compiler_static_F77='-Bstatic'
21407       ;;
21408
21409     sysv4*MP*)
21410       if test -d /usr/nec ;then
21411         lt_prog_compiler_pic_F77='-Kconform_pic'
21412         lt_prog_compiler_static_F77='-Bstatic'
21413       fi
21414       ;;
21415
21416     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21417       lt_prog_compiler_wl_F77='-Wl,'
21418       lt_prog_compiler_pic_F77='-KPIC'
21419       lt_prog_compiler_static_F77='-Bstatic'
21420       ;;
21421
21422     unicos*)
21423       lt_prog_compiler_wl_F77='-Wl,'
21424       lt_prog_compiler_can_build_shared_F77=no
21425       ;;
21426
21427     uts4*)
21428       lt_prog_compiler_pic_F77='-pic'
21429       lt_prog_compiler_static_F77='-Bstatic'
21430       ;;
21431
21432     *)
21433       lt_prog_compiler_can_build_shared_F77=no
21434       ;;
21435     esac
21436   fi
21437
21438 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21439 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21440
21441 #
21442 # Check to make sure the PIC flag actually works.
21443 #
21444 if test -n "$lt_prog_compiler_pic_F77"; then
21445
21446 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21447 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21448 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21449   echo $ECHO_N "(cached) $ECHO_C" >&6
21450 else
21451   lt_prog_compiler_pic_works_F77=no
21452   ac_outfile=conftest.$ac_objext
21453    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21454    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21455    # Insert the option either (1) after the last *FLAGS variable, or
21456    # (2) before a word containing "conftest.", or (3) at the end.
21457    # Note that $ac_compile itself does not contain backslashes and begins
21458    # with a dollar sign (not a hyphen), so the echo should work correctly.
21459    # The option is referenced via a variable to avoid confusing sed.
21460    lt_compile=`echo "$ac_compile" | $SED \
21461    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21462    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21463    -e 's:$: $lt_compiler_flag:'`
21464    (eval echo "\"\$as_me:21464: $lt_compile\"" >&5)
21465    (eval "$lt_compile" 2>conftest.err)
21466    ac_status=$?
21467    cat conftest.err >&5
21468    echo "$as_me:21468: \$? = $ac_status" >&5
21469    if (exit $ac_status) && test -s "$ac_outfile"; then
21470      # The compiler can only warn and ignore the option if not recognized
21471      # So say no if there are warnings other than the usual output.
21472      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21473      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21474      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21475        lt_prog_compiler_pic_works_F77=yes
21476      fi
21477    fi
21478    $rm conftest*
21479
21480 fi
21481 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21482 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21483
21484 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21485     case $lt_prog_compiler_pic_F77 in
21486      "" | " "*) ;;
21487      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21488      esac
21489 else
21490     lt_prog_compiler_pic_F77=
21491      lt_prog_compiler_can_build_shared_F77=no
21492 fi
21493
21494 fi
21495 case $host_os in
21496   # For platforms which do not support PIC, -DPIC is meaningless:
21497   *djgpp*)
21498     lt_prog_compiler_pic_F77=
21499     ;;
21500   *)
21501     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21502     ;;
21503 esac
21504
21505 #
21506 # Check to make sure the static flag actually works.
21507 #
21508 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21509 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21510 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21511 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21512   echo $ECHO_N "(cached) $ECHO_C" >&6
21513 else
21514   lt_prog_compiler_static_works_F77=no
21515    save_LDFLAGS="$LDFLAGS"
21516    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21517    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21518    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21519      # The linker can only warn and ignore the option if not recognized
21520      # So say no if there are warnings
21521      if test -s conftest.err; then
21522        # Append any errors to the config.log.
21523        cat conftest.err 1>&5
21524        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21525        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21526        if diff conftest.exp conftest.er2 >/dev/null; then
21527          lt_prog_compiler_static_works_F77=yes
21528        fi
21529      else
21530        lt_prog_compiler_static_works_F77=yes
21531      fi
21532    fi
21533    $rm conftest*
21534    LDFLAGS="$save_LDFLAGS"
21535
21536 fi
21537 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21538 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21539
21540 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21541     :
21542 else
21543     lt_prog_compiler_static_F77=
21544 fi
21545
21546
21547 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21548 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21549 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21550   echo $ECHO_N "(cached) $ECHO_C" >&6
21551 else
21552   lt_cv_prog_compiler_c_o_F77=no
21553    $rm -r conftest 2>/dev/null
21554    mkdir conftest
21555    cd conftest
21556    mkdir out
21557    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21558
21559    lt_compiler_flag="-o out/conftest2.$ac_objext"
21560    # Insert the option either (1) after the last *FLAGS variable, or
21561    # (2) before a word containing "conftest.", or (3) at the end.
21562    # Note that $ac_compile itself does not contain backslashes and begins
21563    # with a dollar sign (not a hyphen), so the echo should work correctly.
21564    lt_compile=`echo "$ac_compile" | $SED \
21565    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21566    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21567    -e 's:$: $lt_compiler_flag:'`
21568    (eval echo "\"\$as_me:21568: $lt_compile\"" >&5)
21569    (eval "$lt_compile" 2>out/conftest.err)
21570    ac_status=$?
21571    cat out/conftest.err >&5
21572    echo "$as_me:21572: \$? = $ac_status" >&5
21573    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21574    then
21575      # The compiler can only warn and ignore the option if not recognized
21576      # So say no if there are warnings
21577      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21578      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21579      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21580        lt_cv_prog_compiler_c_o_F77=yes
21581      fi
21582    fi
21583    chmod u+w . 2>&5
21584    $rm conftest*
21585    # SGI C++ compiler will create directory out/ii_files/ for
21586    # template instantiation
21587    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21588    $rm out/* && rmdir out
21589    cd ..
21590    rmdir conftest
21591    $rm conftest*
21592
21593 fi
21594 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21595 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21596
21597
21598 hard_links="nottested"
21599 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21600   # do not overwrite the value of need_locks provided by the user
21601   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21602 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21603   hard_links=yes
21604   $rm conftest*
21605   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21606   touch conftest.a
21607   ln conftest.a conftest.b 2>&5 || hard_links=no
21608   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21609   { echo "$as_me:$LINENO: result: $hard_links" >&5
21610 echo "${ECHO_T}$hard_links" >&6; }
21611   if test "$hard_links" = no; then
21612     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21613 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21614     need_locks=warn
21615   fi
21616 else
21617   need_locks=no
21618 fi
21619
21620 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21621 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21622
21623   runpath_var=
21624   allow_undefined_flag_F77=
21625   enable_shared_with_static_runtimes_F77=no
21626   archive_cmds_F77=
21627   archive_expsym_cmds_F77=
21628   old_archive_From_new_cmds_F77=
21629   old_archive_from_expsyms_cmds_F77=
21630   export_dynamic_flag_spec_F77=
21631   whole_archive_flag_spec_F77=
21632   thread_safe_flag_spec_F77=
21633   hardcode_libdir_flag_spec_F77=
21634   hardcode_libdir_flag_spec_ld_F77=
21635   hardcode_libdir_separator_F77=
21636   hardcode_direct_F77=no
21637   hardcode_minus_L_F77=no
21638   hardcode_shlibpath_var_F77=unsupported
21639   link_all_deplibs_F77=unknown
21640   hardcode_automatic_F77=no
21641   module_cmds_F77=
21642   module_expsym_cmds_F77=
21643   always_export_symbols_F77=no
21644   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21645   # include_expsyms should be a list of space-separated symbols to be *always*
21646   # included in the symbol list
21647   include_expsyms_F77=
21648   # exclude_expsyms can be an extended regexp of symbols to exclude
21649   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21650   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21651   # as well as any symbol that contains `d'.
21652   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21653   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21654   # platforms (ab)use it in PIC code, but their linkers get confused if
21655   # the symbol is explicitly referenced.  Since portable code cannot
21656   # rely on this symbol name, it's probably fine to never include it in
21657   # preloaded symbol tables.
21658   extract_expsyms_cmds=
21659   # Just being paranoid about ensuring that cc_basename is set.
21660   for cc_temp in $compiler""; do
21661   case $cc_temp in
21662     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21663     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21664     \-*) ;;
21665     *) break;;
21666   esac
21667 done
21668 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21669
21670   case $host_os in
21671   cygwin* | mingw* | pw32*)
21672     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21673     # When not using gcc, we currently assume that we are using
21674     # Microsoft Visual C++.
21675     if test "$GCC" != yes; then
21676       with_gnu_ld=no
21677     fi
21678     ;;
21679   interix*)
21680     # we just hope/assume this is gcc and not c89 (= MSVC++)
21681     with_gnu_ld=yes
21682     ;;
21683   openbsd*)
21684     with_gnu_ld=no
21685     ;;
21686   esac
21687
21688   ld_shlibs_F77=yes
21689   if test "$with_gnu_ld" = yes; then
21690     # If archive_cmds runs LD, not CC, wlarc should be empty
21691     wlarc='${wl}'
21692
21693     # Set some defaults for GNU ld with shared library support. These
21694     # are reset later if shared libraries are not supported. Putting them
21695     # here allows them to be overridden if necessary.
21696     runpath_var=LD_RUN_PATH
21697     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21698     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21699     # ancient GNU ld didn't support --whole-archive et. al.
21700     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21701         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21702       else
21703         whole_archive_flag_spec_F77=
21704     fi
21705     supports_anon_versioning=no
21706     case `$LD -v 2>/dev/null` in
21707       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21708       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21709       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21710       *\ 2.11.*) ;; # other 2.11 versions
21711       *) supports_anon_versioning=yes ;;
21712     esac
21713
21714     # See if GNU ld supports shared libraries.
21715     case $host_os in
21716     aix3* | aix4* | aix5*)
21717       # On AIX/PPC, the GNU linker is very broken
21718       if test "$host_cpu" != ia64; then
21719         ld_shlibs_F77=no
21720         cat <<EOF 1>&2
21721
21722 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21723 *** to be unable to reliably create shared libraries on AIX.
21724 *** Therefore, libtool is disabling shared libraries support.  If you
21725 *** really care for shared libraries, you may want to modify your PATH
21726 *** so that a non-GNU linker is found, and then restart.
21727
21728 EOF
21729       fi
21730       ;;
21731
21732     amigaos*)
21733       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)'
21734       hardcode_libdir_flag_spec_F77='-L$libdir'
21735       hardcode_minus_L_F77=yes
21736
21737       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21738       # that the semantics of dynamic libraries on AmigaOS, at least up
21739       # to version 4, is to share data among multiple programs linked
21740       # with the same dynamic library.  Since this doesn't match the
21741       # behavior of shared libraries on other platforms, we can't use
21742       # them.
21743       ld_shlibs_F77=no
21744       ;;
21745
21746     beos*)
21747       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21748         allow_undefined_flag_F77=unsupported
21749         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21750         # support --undefined.  This deserves some investigation.  FIXME
21751         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21752       else
21753         ld_shlibs_F77=no
21754       fi
21755       ;;
21756
21757     cygwin* | mingw* | pw32*)
21758       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21759       # as there is no search path for DLLs.
21760       hardcode_libdir_flag_spec_F77='-L$libdir'
21761       allow_undefined_flag_F77=unsupported
21762       always_export_symbols_F77=no
21763       enable_shared_with_static_runtimes_F77=yes
21764       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21765
21766       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21767         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21768         # If the export-symbols file already is a .def file (1st line
21769         # is EXPORTS), use it as is; otherwise, prepend...
21770         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21771           cp $export_symbols $output_objdir/$soname.def;
21772         else
21773           echo EXPORTS > $output_objdir/$soname.def;
21774           cat $export_symbols >> $output_objdir/$soname.def;
21775         fi~
21776         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21777       else
21778         ld_shlibs_F77=no
21779       fi
21780       ;;
21781
21782     interix3*)
21783       hardcode_direct_F77=no
21784       hardcode_shlibpath_var_F77=no
21785       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21786       export_dynamic_flag_spec_F77='${wl}-E'
21787       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21788       # Instead, shared libraries are loaded at an image base (0x10000000 by
21789       # default) and relocated if they conflict, which is a slow very memory
21790       # consuming and fragmenting process.  To avoid this, we pick a random,
21791       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21792       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21793       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'
21794       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'
21795       ;;
21796
21797     linux*)
21798       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21799         tmp_addflag=
21800         case $cc_basename,$host_cpu in
21801         pgcc*)                          # Portland Group C compiler
21802           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'
21803           tmp_addflag=' $pic_flag'
21804           ;;
21805         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21806           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'
21807           tmp_addflag=' $pic_flag -Mnomain' ;;
21808         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21809           tmp_addflag=' -i_dynamic' ;;
21810         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21811           tmp_addflag=' -i_dynamic -nofor_main' ;;
21812         ifc* | ifort*)                  # Intel Fortran compiler
21813           tmp_addflag=' -nofor_main' ;;
21814         esac
21815         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21816
21817         if test $supports_anon_versioning = yes; then
21818           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21819   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21820   $echo "local: *; };" >> $output_objdir/$libname.ver~
21821           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21822         fi
21823       else
21824         ld_shlibs_F77=no
21825       fi
21826       ;;
21827
21828     netbsd*)
21829       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21830         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21831         wlarc=
21832       else
21833         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21834         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21835       fi
21836       ;;
21837
21838     solaris*)
21839       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21840         ld_shlibs_F77=no
21841         cat <<EOF 1>&2
21842
21843 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21844 *** create shared libraries on Solaris systems.  Therefore, libtool
21845 *** is disabling shared libraries support.  We urge you to upgrade GNU
21846 *** binutils to release 2.9.1 or newer.  Another option is to modify
21847 *** your PATH or compiler configuration so that the native linker is
21848 *** used, and then restart.
21849
21850 EOF
21851       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21852         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21853         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21854       else
21855         ld_shlibs_F77=no
21856       fi
21857       ;;
21858
21859     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21860       case `$LD -v 2>&1` in
21861         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21862         ld_shlibs_F77=no
21863         cat <<_LT_EOF 1>&2
21864
21865 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21866 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21867 *** is disabling shared libraries support.  We urge you to upgrade GNU
21868 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21869 *** your PATH or compiler configuration so that the native linker is
21870 *** used, and then restart.
21871
21872 _LT_EOF
21873         ;;
21874         *)
21875           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21876             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21877             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21878             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21879           else
21880             ld_shlibs_F77=no
21881           fi
21882         ;;
21883       esac
21884       ;;
21885
21886     sunos4*)
21887       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21888       wlarc=
21889       hardcode_direct_F77=yes
21890       hardcode_shlibpath_var_F77=no
21891       ;;
21892
21893     *)
21894       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21895         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21896         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21897       else
21898         ld_shlibs_F77=no
21899       fi
21900       ;;
21901     esac
21902
21903     if test "$ld_shlibs_F77" = no; then
21904       runpath_var=
21905       hardcode_libdir_flag_spec_F77=
21906       export_dynamic_flag_spec_F77=
21907       whole_archive_flag_spec_F77=
21908     fi
21909   else
21910     # PORTME fill in a description of your system's linker (not GNU ld)
21911     case $host_os in
21912     aix3*)
21913       allow_undefined_flag_F77=unsupported
21914       always_export_symbols_F77=yes
21915       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'
21916       # Note: this linker hardcodes the directories in LIBPATH if there
21917       # are no directories specified by -L.
21918       hardcode_minus_L_F77=yes
21919       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21920         # Neither direct hardcoding nor static linking is supported with a
21921         # broken collect2.
21922         hardcode_direct_F77=unsupported
21923       fi
21924       ;;
21925
21926     aix4* | aix5*)
21927       if test "$host_cpu" = ia64; then
21928         # On IA64, the linker does run time linking by default, so we don't
21929         # have to do anything special.
21930         aix_use_runtimelinking=no
21931         exp_sym_flag='-Bexport'
21932         no_entry_flag=""
21933       else
21934         # If we're using GNU nm, then we don't want the "-C" option.
21935         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21936         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21937           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'
21938         else
21939           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'
21940         fi
21941         aix_use_runtimelinking=no
21942
21943         # Test if we are trying to use run time linking or normal
21944         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21945         # need to do runtime linking.
21946         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21947           for ld_flag in $LDFLAGS; do
21948           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21949             aix_use_runtimelinking=yes
21950             break
21951           fi
21952           done
21953           ;;
21954         esac
21955
21956         exp_sym_flag='-bexport'
21957         no_entry_flag='-bnoentry'
21958       fi
21959
21960       # When large executables or shared objects are built, AIX ld can
21961       # have problems creating the table of contents.  If linking a library
21962       # or program results in "error TOC overflow" add -mminimal-toc to
21963       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21964       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21965
21966       archive_cmds_F77=''
21967       hardcode_direct_F77=yes
21968       hardcode_libdir_separator_F77=':'
21969       link_all_deplibs_F77=yes
21970
21971       if test "$GCC" = yes; then
21972         case $host_os in aix4.[012]|aix4.[012].*)
21973         # We only want to do this on AIX 4.2 and lower, the check
21974         # below for broken collect2 doesn't work under 4.3+
21975           collect2name=`${CC} -print-prog-name=collect2`
21976           if test -f "$collect2name" && \
21977            strings "$collect2name" | grep resolve_lib_name >/dev/null
21978           then
21979           # We have reworked collect2
21980           hardcode_direct_F77=yes
21981           else
21982           # We have old collect2
21983           hardcode_direct_F77=unsupported
21984           # It fails to find uninstalled libraries when the uninstalled
21985           # path is not listed in the libpath.  Setting hardcode_minus_L
21986           # to unsupported forces relinking
21987           hardcode_minus_L_F77=yes
21988           hardcode_libdir_flag_spec_F77='-L$libdir'
21989           hardcode_libdir_separator_F77=
21990           fi
21991           ;;
21992         esac
21993         shared_flag='-shared'
21994         if test "$aix_use_runtimelinking" = yes; then
21995           shared_flag="$shared_flag "'${wl}-G'
21996         fi
21997       else
21998         # not using gcc
21999         if test "$host_cpu" = ia64; then
22000         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22001         # chokes on -Wl,-G. The following line is correct:
22002           shared_flag='-G'
22003         else
22004           if test "$aix_use_runtimelinking" = yes; then
22005             shared_flag='${wl}-G'
22006           else
22007             shared_flag='${wl}-bM:SRE'
22008           fi
22009         fi
22010       fi
22011
22012       # It seems that -bexpall does not export symbols beginning with
22013       # underscore (_), so it is better to generate a list of symbols to export.
22014       always_export_symbols_F77=yes
22015       if test "$aix_use_runtimelinking" = yes; then
22016         # Warning - without using the other runtime loading flags (-brtl),
22017         # -berok will link without error, but may produce a broken library.
22018         allow_undefined_flag_F77='-berok'
22019        # Determine the default libpath from the value encoded in an empty executable.
22020        cat >conftest.$ac_ext <<_ACEOF
22021       program main
22022
22023       end
22024 _ACEOF
22025 rm -f conftest.$ac_objext conftest$ac_exeext
22026 if { (ac_try="$ac_link"
22027 case "(($ac_try" in
22028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029   *) ac_try_echo=$ac_try;;
22030 esac
22031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22032   (eval "$ac_link") 2>conftest.er1
22033   ac_status=$?
22034   grep -v '^ *+' conftest.er1 >conftest.err
22035   rm -f conftest.er1
22036   cat conftest.err >&5
22037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038   (exit $ac_status); } &&
22039          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22040   { (case "(($ac_try" in
22041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042   *) ac_try_echo=$ac_try;;
22043 esac
22044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22045   (eval "$ac_try") 2>&5
22046   ac_status=$?
22047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048   (exit $ac_status); }; } &&
22049          { ac_try='test -s conftest$ac_exeext'
22050   { (case "(($ac_try" in
22051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22052   *) ac_try_echo=$ac_try;;
22053 esac
22054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22055   (eval "$ac_try") 2>&5
22056   ac_status=$?
22057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058   (exit $ac_status); }; }; then
22059
22060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22061 }'`
22062 # Check for a 64-bit object if we didn't find anything.
22063 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; }
22064 }'`; fi
22065 else
22066   echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22068
22069
22070 fi
22071
22072 rm -f core conftest.err conftest.$ac_objext \
22073       conftest$ac_exeext conftest.$ac_ext
22074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22075
22076        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22077         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"
22078        else
22079         if test "$host_cpu" = ia64; then
22080           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22081           allow_undefined_flag_F77="-z nodefs"
22082           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"
22083         else
22084          # Determine the default libpath from the value encoded in an empty executable.
22085          cat >conftest.$ac_ext <<_ACEOF
22086       program main
22087
22088       end
22089 _ACEOF
22090 rm -f conftest.$ac_objext conftest$ac_exeext
22091 if { (ac_try="$ac_link"
22092 case "(($ac_try" in
22093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22094   *) ac_try_echo=$ac_try;;
22095 esac
22096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22097   (eval "$ac_link") 2>conftest.er1
22098   ac_status=$?
22099   grep -v '^ *+' conftest.er1 >conftest.err
22100   rm -f conftest.er1
22101   cat conftest.err >&5
22102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103   (exit $ac_status); } &&
22104          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22105   { (case "(($ac_try" in
22106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22107   *) ac_try_echo=$ac_try;;
22108 esac
22109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22110   (eval "$ac_try") 2>&5
22111   ac_status=$?
22112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113   (exit $ac_status); }; } &&
22114          { ac_try='test -s conftest$ac_exeext'
22115   { (case "(($ac_try" in
22116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117   *) ac_try_echo=$ac_try;;
22118 esac
22119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120   (eval "$ac_try") 2>&5
22121   ac_status=$?
22122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123   (exit $ac_status); }; }; then
22124
22125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22126 }'`
22127 # Check for a 64-bit object if we didn't find anything.
22128 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; }
22129 }'`; fi
22130 else
22131   echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22133
22134
22135 fi
22136
22137 rm -f core conftest.err conftest.$ac_objext \
22138       conftest$ac_exeext conftest.$ac_ext
22139 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22140
22141          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22142           # Warning - without using the other run time loading flags,
22143           # -berok will link without error, but may produce a broken library.
22144           no_undefined_flag_F77=' ${wl}-bernotok'
22145           allow_undefined_flag_F77=' ${wl}-berok'
22146           # Exported symbols can be pulled into shared objects from archives
22147           whole_archive_flag_spec_F77='$convenience'
22148           archive_cmds_need_lc_F77=yes
22149           # This is similar to how AIX traditionally builds its shared libraries.
22150           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'
22151         fi
22152       fi
22153       ;;
22154
22155     amigaos*)
22156       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)'
22157       hardcode_libdir_flag_spec_F77='-L$libdir'
22158       hardcode_minus_L_F77=yes
22159       # see comment about different semantics on the GNU ld section
22160       ld_shlibs_F77=no
22161       ;;
22162
22163     bsdi[45]*)
22164       export_dynamic_flag_spec_F77=-rdynamic
22165       ;;
22166
22167     cygwin* | mingw* | pw32*)
22168       # When not using gcc, we currently assume that we are using
22169       # Microsoft Visual C++.
22170       # hardcode_libdir_flag_spec is actually meaningless, as there is
22171       # no search path for DLLs.
22172       hardcode_libdir_flag_spec_F77=' '
22173       allow_undefined_flag_F77=unsupported
22174       # Tell ltmain to make .lib files, not .a files.
22175       libext=lib
22176       # Tell ltmain to make .dll files, not .so files.
22177       shrext_cmds=".dll"
22178       # FIXME: Setting linknames here is a bad hack.
22179       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22180       # The linker will automatically build a .lib file if we build a DLL.
22181       old_archive_From_new_cmds_F77='true'
22182       # FIXME: Should let the user specify the lib program.
22183       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22184       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22185       enable_shared_with_static_runtimes_F77=yes
22186       ;;
22187
22188     darwin* | rhapsody*)
22189       case $host_os in
22190         rhapsody* | darwin1.[012])
22191          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22192          ;;
22193        *) # Darwin 1.3 on
22194          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22195            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22196          else
22197            case ${MACOSX_DEPLOYMENT_TARGET} in
22198              10.[012])
22199                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22200                ;;
22201              10.*)
22202                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22203                ;;
22204            esac
22205          fi
22206          ;;
22207       esac
22208       archive_cmds_need_lc_F77=no
22209       hardcode_direct_F77=no
22210       hardcode_automatic_F77=yes
22211       hardcode_shlibpath_var_F77=unsupported
22212       whole_archive_flag_spec_F77=''
22213       link_all_deplibs_F77=yes
22214     if test "$GCC" = yes ; then
22215         output_verbose_link_cmd='echo'
22216         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22217       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22218       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22219       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}'
22220       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}'
22221     else
22222       case $cc_basename in
22223         xlc*)
22224          output_verbose_link_cmd='echo'
22225          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22226          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22227           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22228          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}'
22229           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}'
22230           ;;
22231        *)
22232          ld_shlibs_F77=no
22233           ;;
22234       esac
22235     fi
22236       ;;
22237
22238     dgux*)
22239       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22240       hardcode_libdir_flag_spec_F77='-L$libdir'
22241       hardcode_shlibpath_var_F77=no
22242       ;;
22243
22244     freebsd1*)
22245       ld_shlibs_F77=no
22246       ;;
22247
22248     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22249     # support.  Future versions do this automatically, but an explicit c++rt0.o
22250     # does not break anything, and helps significantly (at the cost of a little
22251     # extra space).
22252     freebsd2.2*)
22253       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22254       hardcode_libdir_flag_spec_F77='-R$libdir'
22255       hardcode_direct_F77=yes
22256       hardcode_shlibpath_var_F77=no
22257       ;;
22258
22259     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22260     freebsd2*)
22261       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22262       hardcode_direct_F77=yes
22263       hardcode_minus_L_F77=yes
22264       hardcode_shlibpath_var_F77=no
22265       ;;
22266
22267     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22268     freebsd* | kfreebsd*-gnu | dragonfly*)
22269       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22270       hardcode_libdir_flag_spec_F77='-R$libdir'
22271       hardcode_direct_F77=yes
22272       hardcode_shlibpath_var_F77=no
22273       ;;
22274
22275     hpux9*)
22276       if test "$GCC" = yes; then
22277         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'
22278       else
22279         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'
22280       fi
22281       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22282       hardcode_libdir_separator_F77=:
22283       hardcode_direct_F77=yes
22284
22285       # hardcode_minus_L: Not really in the search PATH,
22286       # but as the default location of the library.
22287       hardcode_minus_L_F77=yes
22288       export_dynamic_flag_spec_F77='${wl}-E'
22289       ;;
22290
22291     hpux10*)
22292       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22293         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22294       else
22295         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22296       fi
22297       if test "$with_gnu_ld" = no; then
22298         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22299         hardcode_libdir_separator_F77=:
22300
22301         hardcode_direct_F77=yes
22302         export_dynamic_flag_spec_F77='${wl}-E'
22303
22304         # hardcode_minus_L: Not really in the search PATH,
22305         # but as the default location of the library.
22306         hardcode_minus_L_F77=yes
22307       fi
22308       ;;
22309
22310     hpux11*)
22311       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22312         case $host_cpu in
22313         hppa*64*)
22314           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22315           ;;
22316         ia64*)
22317           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22318           ;;
22319         *)
22320           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22321           ;;
22322         esac
22323       else
22324         case $host_cpu in
22325         hppa*64*)
22326           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22327           ;;
22328         ia64*)
22329           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22330           ;;
22331         *)
22332           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22333           ;;
22334         esac
22335       fi
22336       if test "$with_gnu_ld" = no; then
22337         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22338         hardcode_libdir_separator_F77=:
22339
22340         case $host_cpu in
22341         hppa*64*|ia64*)
22342           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22343           hardcode_direct_F77=no
22344           hardcode_shlibpath_var_F77=no
22345           ;;
22346         *)
22347           hardcode_direct_F77=yes
22348           export_dynamic_flag_spec_F77='${wl}-E'
22349
22350           # hardcode_minus_L: Not really in the search PATH,
22351           # but as the default location of the library.
22352           hardcode_minus_L_F77=yes
22353           ;;
22354         esac
22355       fi
22356       ;;
22357
22358     irix5* | irix6* | nonstopux*)
22359       if test "$GCC" = yes; then
22360         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'
22361       else
22362         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'
22363         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22364       fi
22365       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22366       hardcode_libdir_separator_F77=:
22367       link_all_deplibs_F77=yes
22368       ;;
22369
22370     netbsd*)
22371       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22372         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22373       else
22374         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22375       fi
22376       hardcode_libdir_flag_spec_F77='-R$libdir'
22377       hardcode_direct_F77=yes
22378       hardcode_shlibpath_var_F77=no
22379       ;;
22380
22381     newsos6)
22382       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22383       hardcode_direct_F77=yes
22384       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22385       hardcode_libdir_separator_F77=:
22386       hardcode_shlibpath_var_F77=no
22387       ;;
22388
22389     openbsd*)
22390       hardcode_direct_F77=yes
22391       hardcode_shlibpath_var_F77=no
22392       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22393         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22394         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22395         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22396         export_dynamic_flag_spec_F77='${wl}-E'
22397       else
22398        case $host_os in
22399          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22400            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22401            hardcode_libdir_flag_spec_F77='-R$libdir'
22402            ;;
22403          *)
22404            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22405            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22406            ;;
22407        esac
22408       fi
22409       ;;
22410
22411     os2*)
22412       hardcode_libdir_flag_spec_F77='-L$libdir'
22413       hardcode_minus_L_F77=yes
22414       allow_undefined_flag_F77=unsupported
22415       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'
22416       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22417       ;;
22418
22419     osf3*)
22420       if test "$GCC" = yes; then
22421         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22422         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'
22423       else
22424         allow_undefined_flag_F77=' -expect_unresolved \*'
22425         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'
22426       fi
22427       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22428       hardcode_libdir_separator_F77=:
22429       ;;
22430
22431     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22432       if test "$GCC" = yes; then
22433         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22434         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'
22435         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22436       else
22437         allow_undefined_flag_F77=' -expect_unresolved \*'
22438         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'
22439         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~
22440         $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'
22441
22442         # Both c and cxx compiler support -rpath directly
22443         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22444       fi
22445       hardcode_libdir_separator_F77=:
22446       ;;
22447
22448     solaris*)
22449       no_undefined_flag_F77=' -z text'
22450       if test "$GCC" = yes; then
22451         wlarc='${wl}'
22452         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22453         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22454           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22455       else
22456         wlarc=''
22457         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22458         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22459         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22460       fi
22461       hardcode_libdir_flag_spec_F77='-R$libdir'
22462       hardcode_shlibpath_var_F77=no
22463       case $host_os in
22464       solaris2.[0-5] | solaris2.[0-5].*) ;;
22465       *)
22466         # The compiler driver will combine linker options so we
22467         # cannot just pass the convience library names through
22468         # without $wl, iff we do not link with $LD.
22469         # Luckily, gcc supports the same syntax we need for Sun Studio.
22470         # Supported since Solaris 2.6 (maybe 2.5.1?)
22471         case $wlarc in
22472         '')
22473           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22474         *)
22475           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' ;;
22476         esac ;;
22477       esac
22478       link_all_deplibs_F77=yes
22479       ;;
22480
22481     sunos4*)
22482       if test "x$host_vendor" = xsequent; then
22483         # Use $CC to link under sequent, because it throws in some extra .o
22484         # files that make .init and .fini sections work.
22485         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22486       else
22487         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22488       fi
22489       hardcode_libdir_flag_spec_F77='-L$libdir'
22490       hardcode_direct_F77=yes
22491       hardcode_minus_L_F77=yes
22492       hardcode_shlibpath_var_F77=no
22493       ;;
22494
22495     sysv4)
22496       case $host_vendor in
22497         sni)
22498           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22499           hardcode_direct_F77=yes # is this really true???
22500         ;;
22501         siemens)
22502           ## LD is ld it makes a PLAMLIB
22503           ## CC just makes a GrossModule.
22504           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22505           reload_cmds_F77='$CC -r -o $output$reload_objs'
22506           hardcode_direct_F77=no
22507         ;;
22508         motorola)
22509           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22510           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22511         ;;
22512       esac
22513       runpath_var='LD_RUN_PATH'
22514       hardcode_shlibpath_var_F77=no
22515       ;;
22516
22517     sysv4.3*)
22518       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22519       hardcode_shlibpath_var_F77=no
22520       export_dynamic_flag_spec_F77='-Bexport'
22521       ;;
22522
22523     sysv4*MP*)
22524       if test -d /usr/nec; then
22525         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22526         hardcode_shlibpath_var_F77=no
22527         runpath_var=LD_RUN_PATH
22528         hardcode_runpath_var=yes
22529         ld_shlibs_F77=yes
22530       fi
22531       ;;
22532
22533     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22534       no_undefined_flag_F77='${wl}-z,text'
22535       archive_cmds_need_lc_F77=no
22536       hardcode_shlibpath_var_F77=no
22537       runpath_var='LD_RUN_PATH'
22538
22539       if test "$GCC" = yes; then
22540         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22541         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22542       else
22543         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22544         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22545       fi
22546       ;;
22547
22548     sysv5* | sco3.2v5* | sco5v6*)
22549       # Note: We can NOT use -z defs as we might desire, because we do not
22550       # link with -lc, and that would cause any symbols used from libc to
22551       # always be unresolved, which means just about no library would
22552       # ever link correctly.  If we're not using GNU ld we use -z text
22553       # though, which does catch some bad symbols but isn't as heavy-handed
22554       # as -z defs.
22555       no_undefined_flag_F77='${wl}-z,text'
22556       allow_undefined_flag_F77='${wl}-z,nodefs'
22557       archive_cmds_need_lc_F77=no
22558       hardcode_shlibpath_var_F77=no
22559       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22560       hardcode_libdir_separator_F77=':'
22561       link_all_deplibs_F77=yes
22562       export_dynamic_flag_spec_F77='${wl}-Bexport'
22563       runpath_var='LD_RUN_PATH'
22564
22565       if test "$GCC" = yes; then
22566         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22567         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22568       else
22569         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22570         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22571       fi
22572       ;;
22573
22574     uts4*)
22575       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22576       hardcode_libdir_flag_spec_F77='-L$libdir'
22577       hardcode_shlibpath_var_F77=no
22578       ;;
22579
22580     *)
22581       ld_shlibs_F77=no
22582       ;;
22583     esac
22584   fi
22585
22586 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22587 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22588 test "$ld_shlibs_F77" = no && can_build_shared=no
22589
22590 #
22591 # Do we need to explicitly link libc?
22592 #
22593 case "x$archive_cmds_need_lc_F77" in
22594 x|xyes)
22595   # Assume -lc should be added
22596   archive_cmds_need_lc_F77=yes
22597
22598   if test "$enable_shared" = yes && test "$GCC" = yes; then
22599     case $archive_cmds_F77 in
22600     *'~'*)
22601       # FIXME: we may have to deal with multi-command sequences.
22602       ;;
22603     '$CC '*)
22604       # Test whether the compiler implicitly links with -lc since on some
22605       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22606       # to ld, don't add -lc before -lgcc.
22607       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22608 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22609       $rm conftest*
22610       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22611
22612       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22613   (eval $ac_compile) 2>&5
22614   ac_status=$?
22615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616   (exit $ac_status); } 2>conftest.err; then
22617         soname=conftest
22618         lib=conftest
22619         libobjs=conftest.$ac_objext
22620         deplibs=
22621         wl=$lt_prog_compiler_wl_F77
22622         pic_flag=$lt_prog_compiler_pic_F77
22623         compiler_flags=-v
22624         linker_flags=-v
22625         verstring=
22626         output_objdir=.
22627         libname=conftest
22628         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22629         allow_undefined_flag_F77=
22630         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22631   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22632   ac_status=$?
22633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634   (exit $ac_status); }
22635         then
22636           archive_cmds_need_lc_F77=no
22637         else
22638           archive_cmds_need_lc_F77=yes
22639         fi
22640         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22641       else
22642         cat conftest.err 1>&5
22643       fi
22644       $rm conftest*
22645       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22646 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22647       ;;
22648     esac
22649   fi
22650   ;;
22651 esac
22652
22653 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22654 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22655 library_names_spec=
22656 libname_spec='lib$name'
22657 soname_spec=
22658 shrext_cmds=".so"
22659 postinstall_cmds=
22660 postuninstall_cmds=
22661 finish_cmds=
22662 finish_eval=
22663 shlibpath_var=
22664 shlibpath_overrides_runpath=unknown
22665 version_type=none
22666 dynamic_linker="$host_os ld.so"
22667 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22668 if test "$GCC" = yes; then
22669   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22670   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22671     # if the path contains ";" then we assume it to be the separator
22672     # otherwise default to the standard path separator (i.e. ":") - it is
22673     # assumed that no part of a normal pathname contains ";" but that should
22674     # okay in the real world where ";" in dirpaths is itself problematic.
22675     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22676   else
22677     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22678   fi
22679 else
22680   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22681 fi
22682 need_lib_prefix=unknown
22683 hardcode_into_libs=no
22684
22685 # when you set need_version to no, make sure it does not cause -set_version
22686 # flags to be left without arguments
22687 need_version=unknown
22688
22689 case $host_os in
22690 aix3*)
22691   version_type=linux
22692   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22693   shlibpath_var=LIBPATH
22694
22695   # AIX 3 has no versioning support, so we append a major version to the name.
22696   soname_spec='${libname}${release}${shared_ext}$major'
22697   ;;
22698
22699 aix4* | aix5*)
22700   version_type=linux
22701   need_lib_prefix=no
22702   need_version=no
22703   hardcode_into_libs=yes
22704   if test "$host_cpu" = ia64; then
22705     # AIX 5 supports IA64
22706     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22707     shlibpath_var=LD_LIBRARY_PATH
22708   else
22709     # With GCC up to 2.95.x, collect2 would create an import file
22710     # for dependence libraries.  The import file would start with
22711     # the line `#! .'.  This would cause the generated library to
22712     # depend on `.', always an invalid library.  This was fixed in
22713     # development snapshots of GCC prior to 3.0.
22714     case $host_os in
22715       aix4 | aix4.[01] | aix4.[01].*)
22716       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22717            echo ' yes '
22718            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22719         :
22720       else
22721         can_build_shared=no
22722       fi
22723       ;;
22724     esac
22725     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22726     # soname into executable. Probably we can add versioning support to
22727     # collect2, so additional links can be useful in future.
22728     if test "$aix_use_runtimelinking" = yes; then
22729       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22730       # instead of lib<name>.a to let people know that these are not
22731       # typical AIX shared libraries.
22732       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22733     else
22734       # We preserve .a as extension for shared libraries through AIX4.2
22735       # and later when we are not doing run time linking.
22736       library_names_spec='${libname}${release}.a $libname.a'
22737       soname_spec='${libname}${release}${shared_ext}$major'
22738     fi
22739     shlibpath_var=LIBPATH
22740   fi
22741   ;;
22742
22743 amigaos*)
22744   library_names_spec='$libname.ixlibrary $libname.a'
22745   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22746   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'
22747   ;;
22748
22749 beos*)
22750   library_names_spec='${libname}${shared_ext}'
22751   dynamic_linker="$host_os ld.so"
22752   shlibpath_var=LIBRARY_PATH
22753   ;;
22754
22755 bsdi[45]*)
22756   version_type=linux
22757   need_version=no
22758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22759   soname_spec='${libname}${release}${shared_ext}$major'
22760   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22761   shlibpath_var=LD_LIBRARY_PATH
22762   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22763   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22764   # the default ld.so.conf also contains /usr/contrib/lib and
22765   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22766   # libtool to hard-code these into programs
22767   ;;
22768
22769 cygwin* | mingw* | pw32*)
22770   version_type=windows
22771   shrext_cmds=".dll"
22772   need_version=no
22773   need_lib_prefix=no
22774
22775   case $GCC,$host_os in
22776   yes,cygwin* | yes,mingw* | yes,pw32*)
22777     library_names_spec='$libname.dll.a'
22778     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22779     postinstall_cmds='base_file=`basename \${file}`~
22780       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22781       dldir=$destdir/`dirname \$dlpath`~
22782       test -d \$dldir || mkdir -p \$dldir~
22783       $install_prog $dir/$dlname \$dldir/$dlname~
22784       chmod a+x \$dldir/$dlname'
22785     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22786       dlpath=$dir/\$dldll~
22787        $rm \$dlpath'
22788     shlibpath_overrides_runpath=yes
22789
22790     case $host_os in
22791     cygwin*)
22792       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22793       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22794       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22795       ;;
22796     mingw*)
22797       # MinGW DLLs use traditional 'lib' prefix
22798       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22799       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22800       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22801         # It is most probably a Windows format PATH printed by
22802         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22803         # path with ; separators, and with drive letters. We can handle the
22804         # drive letters (cygwin fileutils understands them), so leave them,
22805         # especially as we might pass files found there to a mingw objdump,
22806         # which wouldn't understand a cygwinified path. Ahh.
22807         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22808       else
22809         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22810       fi
22811       ;;
22812     pw32*)
22813       # pw32 DLLs use 'pw' prefix rather than 'lib'
22814       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22815       ;;
22816     esac
22817     ;;
22818
22819   *)
22820     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22821     ;;
22822   esac
22823   dynamic_linker='Win32 ld.exe'
22824   # FIXME: first we should search . and the directory the executable is in
22825   shlibpath_var=PATH
22826   ;;
22827
22828 darwin* | rhapsody*)
22829   dynamic_linker="$host_os dyld"
22830   version_type=darwin
22831   need_lib_prefix=no
22832   need_version=no
22833   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22834   soname_spec='${libname}${release}${major}$shared_ext'
22835   shlibpath_overrides_runpath=yes
22836   shlibpath_var=DYLD_LIBRARY_PATH
22837   shrext_cmds='.dylib'
22838   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22839   if test "$GCC" = yes; then
22840     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"`
22841   else
22842     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22843   fi
22844   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22845   ;;
22846
22847 dgux*)
22848   version_type=linux
22849   need_lib_prefix=no
22850   need_version=no
22851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22852   soname_spec='${libname}${release}${shared_ext}$major'
22853   shlibpath_var=LD_LIBRARY_PATH
22854   ;;
22855
22856 freebsd1*)
22857   dynamic_linker=no
22858   ;;
22859
22860 kfreebsd*-gnu)
22861   version_type=linux
22862   need_lib_prefix=no
22863   need_version=no
22864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22865   soname_spec='${libname}${release}${shared_ext}$major'
22866   shlibpath_var=LD_LIBRARY_PATH
22867   shlibpath_overrides_runpath=no
22868   hardcode_into_libs=yes
22869   dynamic_linker='GNU ld.so'
22870   ;;
22871
22872 freebsd* | dragonfly*)
22873   # DragonFly does not have aout.  When/if they implement a new
22874   # versioning mechanism, adjust this.
22875   if test -x /usr/bin/objformat; then
22876     objformat=`/usr/bin/objformat`
22877   else
22878     case $host_os in
22879     freebsd[123]*) objformat=aout ;;
22880     *) objformat=elf ;;
22881     esac
22882   fi
22883   version_type=freebsd-$objformat
22884   case $version_type in
22885     freebsd-elf*)
22886       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22887       need_version=no
22888       need_lib_prefix=no
22889       ;;
22890     freebsd-*)
22891       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22892       need_version=yes
22893       ;;
22894   esac
22895   shlibpath_var=LD_LIBRARY_PATH
22896   case $host_os in
22897   freebsd2*)
22898     shlibpath_overrides_runpath=yes
22899     ;;
22900   freebsd3.[01]* | freebsdelf3.[01]*)
22901     shlibpath_overrides_runpath=yes
22902     hardcode_into_libs=yes
22903     ;;
22904   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22905   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22906     shlibpath_overrides_runpath=no
22907     hardcode_into_libs=yes
22908     ;;
22909   freebsd*) # from 4.6 on
22910     shlibpath_overrides_runpath=yes
22911     hardcode_into_libs=yes
22912     ;;
22913   esac
22914   ;;
22915
22916 gnu*)
22917   version_type=linux
22918   need_lib_prefix=no
22919   need_version=no
22920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22921   soname_spec='${libname}${release}${shared_ext}$major'
22922   shlibpath_var=LD_LIBRARY_PATH
22923   hardcode_into_libs=yes
22924   ;;
22925
22926 hpux9* | hpux10* | hpux11*)
22927   # Give a soname corresponding to the major version so that dld.sl refuses to
22928   # link against other versions.
22929   version_type=sunos
22930   need_lib_prefix=no
22931   need_version=no
22932   case $host_cpu in
22933   ia64*)
22934     shrext_cmds='.so'
22935     hardcode_into_libs=yes
22936     dynamic_linker="$host_os dld.so"
22937     shlibpath_var=LD_LIBRARY_PATH
22938     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22939     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22940     soname_spec='${libname}${release}${shared_ext}$major'
22941     if test "X$HPUX_IA64_MODE" = X32; then
22942       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22943     else
22944       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22945     fi
22946     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22947     ;;
22948    hppa*64*)
22949      shrext_cmds='.sl'
22950      hardcode_into_libs=yes
22951      dynamic_linker="$host_os dld.sl"
22952      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22953      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22954      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22955      soname_spec='${libname}${release}${shared_ext}$major'
22956      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22957      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22958      ;;
22959    *)
22960     shrext_cmds='.sl'
22961     dynamic_linker="$host_os dld.sl"
22962     shlibpath_var=SHLIB_PATH
22963     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22964     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22965     soname_spec='${libname}${release}${shared_ext}$major'
22966     ;;
22967   esac
22968   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22969   postinstall_cmds='chmod 555 $lib'
22970   ;;
22971
22972 interix3*)
22973   version_type=linux
22974   need_lib_prefix=no
22975   need_version=no
22976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22977   soname_spec='${libname}${release}${shared_ext}$major'
22978   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22979   shlibpath_var=LD_LIBRARY_PATH
22980   shlibpath_overrides_runpath=no
22981   hardcode_into_libs=yes
22982   ;;
22983
22984 irix5* | irix6* | nonstopux*)
22985   case $host_os in
22986     nonstopux*) version_type=nonstopux ;;
22987     *)
22988         if test "$lt_cv_prog_gnu_ld" = yes; then
22989                 version_type=linux
22990         else
22991                 version_type=irix
22992         fi ;;
22993   esac
22994   need_lib_prefix=no
22995   need_version=no
22996   soname_spec='${libname}${release}${shared_ext}$major'
22997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22998   case $host_os in
22999   irix5* | nonstopux*)
23000     libsuff= shlibsuff=
23001     ;;
23002   *)
23003     case $LD in # libtool.m4 will add one of these switches to LD
23004     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23005       libsuff= shlibsuff= libmagic=32-bit;;
23006     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23007       libsuff=32 shlibsuff=N32 libmagic=N32;;
23008     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23009       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23010     *) libsuff= shlibsuff= libmagic=never-match;;
23011     esac
23012     ;;
23013   esac
23014   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23015   shlibpath_overrides_runpath=no
23016   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23017   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23018   hardcode_into_libs=yes
23019   ;;
23020
23021 # No shared lib support for Linux oldld, aout, or coff.
23022 linux*oldld* | linux*aout* | linux*coff*)
23023   dynamic_linker=no
23024   ;;
23025
23026 # This must be Linux ELF.
23027 linux*)
23028   version_type=linux
23029   need_lib_prefix=no
23030   need_version=no
23031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23032   soname_spec='${libname}${release}${shared_ext}$major'
23033   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23034   shlibpath_var=LD_LIBRARY_PATH
23035   shlibpath_overrides_runpath=no
23036   # This implies no fast_install, which is unacceptable.
23037   # Some rework will be needed to allow for fast_install
23038   # before this can be enabled.
23039   hardcode_into_libs=yes
23040
23041   # Append ld.so.conf contents to the search path
23042   if test -f /etc/ld.so.conf; then
23043     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' ' '`
23044     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23045   fi
23046
23047   # We used to test for /lib/ld.so.1 and disable shared libraries on
23048   # powerpc, because MkLinux only supported shared libraries with the
23049   # GNU dynamic linker.  Since this was broken with cross compilers,
23050   # most powerpc-linux boxes support dynamic linking these days and
23051   # people can always --disable-shared, the test was removed, and we
23052   # assume the GNU/Linux dynamic linker is in use.
23053   dynamic_linker='GNU/Linux ld.so'
23054   ;;
23055
23056 knetbsd*-gnu)
23057   version_type=linux
23058   need_lib_prefix=no
23059   need_version=no
23060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23061   soname_spec='${libname}${release}${shared_ext}$major'
23062   shlibpath_var=LD_LIBRARY_PATH
23063   shlibpath_overrides_runpath=no
23064   hardcode_into_libs=yes
23065   dynamic_linker='GNU ld.so'
23066   ;;
23067
23068 netbsd*)
23069   version_type=sunos
23070   need_lib_prefix=no
23071   need_version=no
23072   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23073     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23074     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23075     dynamic_linker='NetBSD (a.out) ld.so'
23076   else
23077     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23078     soname_spec='${libname}${release}${shared_ext}$major'
23079     dynamic_linker='NetBSD ld.elf_so'
23080   fi
23081   shlibpath_var=LD_LIBRARY_PATH
23082   shlibpath_overrides_runpath=yes
23083   hardcode_into_libs=yes
23084   ;;
23085
23086 newsos6)
23087   version_type=linux
23088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23089   shlibpath_var=LD_LIBRARY_PATH
23090   shlibpath_overrides_runpath=yes
23091   ;;
23092
23093 nto-qnx*)
23094   version_type=linux
23095   need_lib_prefix=no
23096   need_version=no
23097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23098   soname_spec='${libname}${release}${shared_ext}$major'
23099   shlibpath_var=LD_LIBRARY_PATH
23100   shlibpath_overrides_runpath=yes
23101   ;;
23102
23103 openbsd*)
23104   version_type=sunos
23105   sys_lib_dlsearch_path_spec="/usr/lib"
23106   need_lib_prefix=no
23107   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23108   case $host_os in
23109     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23110     *)                         need_version=no  ;;
23111   esac
23112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23113   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23114   shlibpath_var=LD_LIBRARY_PATH
23115   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23116     case $host_os in
23117       openbsd2.[89] | openbsd2.[89].*)
23118         shlibpath_overrides_runpath=no
23119         ;;
23120       *)
23121         shlibpath_overrides_runpath=yes
23122         ;;
23123       esac
23124   else
23125     shlibpath_overrides_runpath=yes
23126   fi
23127   ;;
23128
23129 os2*)
23130   libname_spec='$name'
23131   shrext_cmds=".dll"
23132   need_lib_prefix=no
23133   library_names_spec='$libname${shared_ext} $libname.a'
23134   dynamic_linker='OS/2 ld.exe'
23135   shlibpath_var=LIBPATH
23136   ;;
23137
23138 osf3* | osf4* | osf5*)
23139   version_type=osf
23140   need_lib_prefix=no
23141   need_version=no
23142   soname_spec='${libname}${release}${shared_ext}$major'
23143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23144   shlibpath_var=LD_LIBRARY_PATH
23145   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23146   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23147   ;;
23148
23149 solaris*)
23150   version_type=linux
23151   need_lib_prefix=no
23152   need_version=no
23153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23154   soname_spec='${libname}${release}${shared_ext}$major'
23155   shlibpath_var=LD_LIBRARY_PATH
23156   shlibpath_overrides_runpath=yes
23157   hardcode_into_libs=yes
23158   # ldd complains unless libraries are executable
23159   postinstall_cmds='chmod +x $lib'
23160   ;;
23161
23162 sunos4*)
23163   version_type=sunos
23164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23165   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23166   shlibpath_var=LD_LIBRARY_PATH
23167   shlibpath_overrides_runpath=yes
23168   if test "$with_gnu_ld" = yes; then
23169     need_lib_prefix=no
23170   fi
23171   need_version=yes
23172   ;;
23173
23174 sysv4 | sysv4.3*)
23175   version_type=linux
23176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23177   soname_spec='${libname}${release}${shared_ext}$major'
23178   shlibpath_var=LD_LIBRARY_PATH
23179   case $host_vendor in
23180     sni)
23181       shlibpath_overrides_runpath=no
23182       need_lib_prefix=no
23183       export_dynamic_flag_spec='${wl}-Blargedynsym'
23184       runpath_var=LD_RUN_PATH
23185       ;;
23186     siemens)
23187       need_lib_prefix=no
23188       ;;
23189     motorola)
23190       need_lib_prefix=no
23191       need_version=no
23192       shlibpath_overrides_runpath=no
23193       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23194       ;;
23195   esac
23196   ;;
23197
23198 sysv4*MP*)
23199   if test -d /usr/nec ;then
23200     version_type=linux
23201     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23202     soname_spec='$libname${shared_ext}.$major'
23203     shlibpath_var=LD_LIBRARY_PATH
23204   fi
23205   ;;
23206
23207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23208   version_type=freebsd-elf
23209   need_lib_prefix=no
23210   need_version=no
23211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23212   soname_spec='${libname}${release}${shared_ext}$major'
23213   shlibpath_var=LD_LIBRARY_PATH
23214   hardcode_into_libs=yes
23215   if test "$with_gnu_ld" = yes; then
23216     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23217     shlibpath_overrides_runpath=no
23218   else
23219     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23220     shlibpath_overrides_runpath=yes
23221     case $host_os in
23222       sco3.2v5*)
23223         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23224         ;;
23225     esac
23226   fi
23227   sys_lib_dlsearch_path_spec='/usr/lib'
23228   ;;
23229
23230 uts4*)
23231   version_type=linux
23232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23233   soname_spec='${libname}${release}${shared_ext}$major'
23234   shlibpath_var=LD_LIBRARY_PATH
23235   ;;
23236
23237 *)
23238   dynamic_linker=no
23239   ;;
23240 esac
23241 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23242 echo "${ECHO_T}$dynamic_linker" >&6; }
23243 test "$dynamic_linker" = no && can_build_shared=no
23244
23245 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23246 if test "$GCC" = yes; then
23247   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23248 fi
23249
23250 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23251 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23252 hardcode_action_F77=
23253 if test -n "$hardcode_libdir_flag_spec_F77" || \
23254    test -n "$runpath_var_F77" || \
23255    test "X$hardcode_automatic_F77" = "Xyes" ; then
23256
23257   # We can hardcode non-existant directories.
23258   if test "$hardcode_direct_F77" != no &&
23259      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23260      # have to relink, otherwise we might link with an installed library
23261      # when we should be linking with a yet-to-be-installed one
23262      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23263      test "$hardcode_minus_L_F77" != no; then
23264     # Linking always hardcodes the temporary library directory.
23265     hardcode_action_F77=relink
23266   else
23267     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23268     hardcode_action_F77=immediate
23269   fi
23270 else
23271   # We cannot hardcode anything, or else we can only hardcode existing
23272   # directories.
23273   hardcode_action_F77=unsupported
23274 fi
23275 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23276 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23277
23278 if test "$hardcode_action_F77" = relink; then
23279   # Fast installation is not supported
23280   enable_fast_install=no
23281 elif test "$shlibpath_overrides_runpath" = yes ||
23282      test "$enable_shared" = no; then
23283   # Fast installation is not necessary
23284   enable_fast_install=needless
23285 fi
23286
23287
23288 # The else clause should only fire when bootstrapping the
23289 # libtool distribution, otherwise you forgot to ship ltmain.sh
23290 # with your package, and you will get complaints that there are
23291 # no rules to generate ltmain.sh.
23292 if test -f "$ltmain"; then
23293   # See if we are running on zsh, and set the options which allow our commands through
23294   # without removal of \ escapes.
23295   if test -n "${ZSH_VERSION+set}" ; then
23296     setopt NO_GLOB_SUBST
23297   fi
23298   # Now quote all the things that may contain metacharacters while being
23299   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23300   # variables and quote the copies for generation of the libtool script.
23301   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23302     SED SHELL STRIP \
23303     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23304     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23305     deplibs_check_method reload_flag reload_cmds need_locks \
23306     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23307     lt_cv_sys_global_symbol_to_c_name_address \
23308     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23309     old_postinstall_cmds old_postuninstall_cmds \
23310     compiler_F77 \
23311     CC_F77 \
23312     LD_F77 \
23313     lt_prog_compiler_wl_F77 \
23314     lt_prog_compiler_pic_F77 \
23315     lt_prog_compiler_static_F77 \
23316     lt_prog_compiler_no_builtin_flag_F77 \
23317     export_dynamic_flag_spec_F77 \
23318     thread_safe_flag_spec_F77 \
23319     whole_archive_flag_spec_F77 \
23320     enable_shared_with_static_runtimes_F77 \
23321     old_archive_cmds_F77 \
23322     old_archive_from_new_cmds_F77 \
23323     predep_objects_F77 \
23324     postdep_objects_F77 \
23325     predeps_F77 \
23326     postdeps_F77 \
23327     compiler_lib_search_path_F77 \
23328     archive_cmds_F77 \
23329     archive_expsym_cmds_F77 \
23330     postinstall_cmds_F77 \
23331     postuninstall_cmds_F77 \
23332     old_archive_from_expsyms_cmds_F77 \
23333     allow_undefined_flag_F77 \
23334     no_undefined_flag_F77 \
23335     export_symbols_cmds_F77 \
23336     hardcode_libdir_flag_spec_F77 \
23337     hardcode_libdir_flag_spec_ld_F77 \
23338     hardcode_libdir_separator_F77 \
23339     hardcode_automatic_F77 \
23340     module_cmds_F77 \
23341     module_expsym_cmds_F77 \
23342     lt_cv_prog_compiler_c_o_F77 \
23343     exclude_expsyms_F77 \
23344     include_expsyms_F77; do
23345
23346     case $var in
23347     old_archive_cmds_F77 | \
23348     old_archive_from_new_cmds_F77 | \
23349     archive_cmds_F77 | \
23350     archive_expsym_cmds_F77 | \
23351     module_cmds_F77 | \
23352     module_expsym_cmds_F77 | \
23353     old_archive_from_expsyms_cmds_F77 | \
23354     export_symbols_cmds_F77 | \
23355     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23356     postinstall_cmds | postuninstall_cmds | \
23357     old_postinstall_cmds | old_postuninstall_cmds | \
23358     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23359       # Double-quote double-evaled strings.
23360       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23361       ;;
23362     *)
23363       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23364       ;;
23365     esac
23366   done
23367
23368   case $lt_echo in
23369   *'\$0 --fallback-echo"')
23370     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23371     ;;
23372   esac
23373
23374 cfgfile="$ofile"
23375
23376   cat <<__EOF__ >> "$cfgfile"
23377 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23378
23379 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23380
23381 # Shell to use when invoking shell scripts.
23382 SHELL=$lt_SHELL
23383
23384 # Whether or not to build shared libraries.
23385 build_libtool_libs=$enable_shared
23386
23387 # Whether or not to build static libraries.
23388 build_old_libs=$enable_static
23389
23390 # Whether or not to add -lc for building shared libraries.
23391 build_libtool_need_lc=$archive_cmds_need_lc_F77
23392
23393 # Whether or not to disallow shared libs when runtime libs are static
23394 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23395
23396 # Whether or not to optimize for fast installation.
23397 fast_install=$enable_fast_install
23398
23399 # The host system.
23400 host_alias=$host_alias
23401 host=$host
23402 host_os=$host_os
23403
23404 # The build system.
23405 build_alias=$build_alias
23406 build=$build
23407 build_os=$build_os
23408
23409 # An echo program that does not interpret backslashes.
23410 echo=$lt_echo
23411
23412 # The archiver.
23413 AR=$lt_AR
23414 AR_FLAGS=$lt_AR_FLAGS
23415
23416 # A C compiler.
23417 LTCC=$lt_LTCC
23418
23419 # LTCC compiler flags.
23420 LTCFLAGS=$lt_LTCFLAGS
23421
23422 # A language-specific compiler.
23423 CC=$lt_compiler_F77
23424
23425 # Is the compiler the GNU C compiler?
23426 with_gcc=$GCC_F77
23427
23428 # An ERE matcher.
23429 EGREP=$lt_EGREP
23430
23431 # The linker used to build libraries.
23432 LD=$lt_LD_F77
23433
23434 # Whether we need hard or soft links.
23435 LN_S=$lt_LN_S
23436
23437 # A BSD-compatible nm program.
23438 NM=$lt_NM
23439
23440 # A symbol stripping program
23441 STRIP=$lt_STRIP
23442
23443 # Used to examine libraries when file_magic_cmd begins "file"
23444 MAGIC_CMD=$MAGIC_CMD
23445
23446 # Used on cygwin: DLL creation program.
23447 DLLTOOL="$DLLTOOL"
23448
23449 # Used on cygwin: object dumper.
23450 OBJDUMP="$OBJDUMP"
23451
23452 # Used on cygwin: assembler.
23453 AS="$AS"
23454
23455 # The name of the directory that contains temporary libtool files.
23456 objdir=$objdir
23457
23458 # How to create reloadable object files.
23459 reload_flag=$lt_reload_flag
23460 reload_cmds=$lt_reload_cmds
23461
23462 # How to pass a linker flag through the compiler.
23463 wl=$lt_lt_prog_compiler_wl_F77
23464
23465 # Object file suffix (normally "o").
23466 objext="$ac_objext"
23467
23468 # Old archive suffix (normally "a").
23469 libext="$libext"
23470
23471 # Shared library suffix (normally ".so").
23472 shrext_cmds='$shrext_cmds'
23473
23474 # Executable file suffix (normally "").
23475 exeext="$exeext"
23476
23477 # Additional compiler flags for building library objects.
23478 pic_flag=$lt_lt_prog_compiler_pic_F77
23479 pic_mode=$pic_mode
23480
23481 # What is the maximum length of a command?
23482 max_cmd_len=$lt_cv_sys_max_cmd_len
23483
23484 # Does compiler simultaneously support -c and -o options?
23485 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23486
23487 # Must we lock files when doing compilation?
23488 need_locks=$lt_need_locks
23489
23490 # Do we need the lib prefix for modules?
23491 need_lib_prefix=$need_lib_prefix
23492
23493 # Do we need a version for libraries?
23494 need_version=$need_version
23495
23496 # Whether dlopen is supported.
23497 dlopen_support=$enable_dlopen
23498
23499 # Whether dlopen of programs is supported.
23500 dlopen_self=$enable_dlopen_self
23501
23502 # Whether dlopen of statically linked programs is supported.
23503 dlopen_self_static=$enable_dlopen_self_static
23504
23505 # Compiler flag to prevent dynamic linking.
23506 link_static_flag=$lt_lt_prog_compiler_static_F77
23507
23508 # Compiler flag to turn off builtin functions.
23509 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23510
23511 # Compiler flag to allow reflexive dlopens.
23512 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23513
23514 # Compiler flag to generate shared objects directly from archives.
23515 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23516
23517 # Compiler flag to generate thread-safe objects.
23518 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23519
23520 # Library versioning type.
23521 version_type=$version_type
23522
23523 # Format of library name prefix.
23524 libname_spec=$lt_libname_spec
23525
23526 # List of archive names.  First name is the real one, the rest are links.
23527 # The last name is the one that the linker finds with -lNAME.
23528 library_names_spec=$lt_library_names_spec
23529
23530 # The coded name of the library, if different from the real name.
23531 soname_spec=$lt_soname_spec
23532
23533 # Commands used to build and install an old-style archive.
23534 RANLIB=$lt_RANLIB
23535 old_archive_cmds=$lt_old_archive_cmds_F77
23536 old_postinstall_cmds=$lt_old_postinstall_cmds
23537 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23538
23539 # Create an old-style archive from a shared archive.
23540 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23541
23542 # Create a temporary old-style archive to link instead of a shared archive.
23543 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23544
23545 # Commands used to build and install a shared archive.
23546 archive_cmds=$lt_archive_cmds_F77
23547 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23548 postinstall_cmds=$lt_postinstall_cmds
23549 postuninstall_cmds=$lt_postuninstall_cmds
23550
23551 # Commands used to build a loadable module (assumed same as above if empty)
23552 module_cmds=$lt_module_cmds_F77
23553 module_expsym_cmds=$lt_module_expsym_cmds_F77
23554
23555 # Commands to strip libraries.
23556 old_striplib=$lt_old_striplib
23557 striplib=$lt_striplib
23558
23559 # Dependencies to place before the objects being linked to create a
23560 # shared library.
23561 predep_objects=$lt_predep_objects_F77
23562
23563 # Dependencies to place after the objects being linked to create a
23564 # shared library.
23565 postdep_objects=$lt_postdep_objects_F77
23566
23567 # Dependencies to place before the objects being linked to create a
23568 # shared library.
23569 predeps=$lt_predeps_F77
23570
23571 # Dependencies to place after the objects being linked to create a
23572 # shared library.
23573 postdeps=$lt_postdeps_F77
23574
23575 # The library search path used internally by the compiler when linking
23576 # a shared library.
23577 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23578
23579 # Method to check whether dependent libraries are shared objects.
23580 deplibs_check_method=$lt_deplibs_check_method
23581
23582 # Command to use when deplibs_check_method == file_magic.
23583 file_magic_cmd=$lt_file_magic_cmd
23584
23585 # Flag that allows shared libraries with undefined symbols to be built.
23586 allow_undefined_flag=$lt_allow_undefined_flag_F77
23587
23588 # Flag that forces no undefined symbols.
23589 no_undefined_flag=$lt_no_undefined_flag_F77
23590
23591 # Commands used to finish a libtool library installation in a directory.
23592 finish_cmds=$lt_finish_cmds
23593
23594 # Same as above, but a single script fragment to be evaled but not shown.
23595 finish_eval=$lt_finish_eval
23596
23597 # Take the output of nm and produce a listing of raw symbols and C names.
23598 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23599
23600 # Transform the output of nm in a proper C declaration
23601 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23602
23603 # Transform the output of nm in a C name address pair
23604 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23605
23606 # This is the shared library runtime path variable.
23607 runpath_var=$runpath_var
23608
23609 # This is the shared library path variable.
23610 shlibpath_var=$shlibpath_var
23611
23612 # Is shlibpath searched before the hard-coded library search path?
23613 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23614
23615 # How to hardcode a shared library path into an executable.
23616 hardcode_action=$hardcode_action_F77
23617
23618 # Whether we should hardcode library paths into libraries.
23619 hardcode_into_libs=$hardcode_into_libs
23620
23621 # Flag to hardcode \$libdir into a binary during linking.
23622 # This must work even if \$libdir does not exist.
23623 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23624
23625 # If ld is used when linking, flag to hardcode \$libdir into
23626 # a binary during linking. This must work even if \$libdir does
23627 # not exist.
23628 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23629
23630 # Whether we need a single -rpath flag with a separated argument.
23631 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23632
23633 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23634 # resulting binary.
23635 hardcode_direct=$hardcode_direct_F77
23636
23637 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23638 # resulting binary.
23639 hardcode_minus_L=$hardcode_minus_L_F77
23640
23641 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23642 # the resulting binary.
23643 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23644
23645 # Set to yes if building a shared library automatically hardcodes DIR into the library
23646 # and all subsequent libraries and executables linked against it.
23647 hardcode_automatic=$hardcode_automatic_F77
23648
23649 # Variables whose values should be saved in libtool wrapper scripts and
23650 # restored at relink time.
23651 variables_saved_for_relink="$variables_saved_for_relink"
23652
23653 # Whether libtool must link a program against all its dependency libraries.
23654 link_all_deplibs=$link_all_deplibs_F77
23655
23656 # Compile-time system search path for libraries
23657 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23658
23659 # Run-time system search path for libraries
23660 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23661
23662 # Fix the shell variable \$srcfile for the compiler.
23663 fix_srcfile_path="$fix_srcfile_path_F77"
23664
23665 # Set to yes if exported symbols are required.
23666 always_export_symbols=$always_export_symbols_F77
23667
23668 # The commands to list exported symbols.
23669 export_symbols_cmds=$lt_export_symbols_cmds_F77
23670
23671 # The commands to extract the exported symbol list from a shared archive.
23672 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23673
23674 # Symbols that should not be listed in the preloaded symbols.
23675 exclude_expsyms=$lt_exclude_expsyms_F77
23676
23677 # Symbols that must always be exported.
23678 include_expsyms=$lt_include_expsyms_F77
23679
23680 # ### END LIBTOOL TAG CONFIG: $tagname
23681
23682 __EOF__
23683
23684
23685 else
23686   # If there is no Makefile yet, we rely on a make rule to execute
23687   # `config.status --recheck' to rerun these tests and create the
23688   # libtool script then.
23689   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23690   if test -f "$ltmain_in"; then
23691     test -f Makefile && make "$ltmain"
23692   fi
23693 fi
23694
23695
23696 ac_ext=c
23697 ac_cpp='$CPP $CPPFLAGS'
23698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23701
23702 CC="$lt_save_CC"
23703
23704         else
23705           tagname=""
23706         fi
23707         ;;
23708
23709       GCJ)
23710         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23711           ac_ext=c
23712 ac_cpp='$CPP $CPPFLAGS'
23713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23716
23717
23718 # Source file extension for Java test sources.
23719 ac_ext=java
23720
23721 # Object file extension for compiled Java test sources.
23722 objext=o
23723 objext_GCJ=$objext
23724
23725 # Code to be used in simple compile tests
23726 lt_simple_compile_test_code="class foo {}\n"
23727
23728 # Code to be used in simple link tests
23729 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23730
23731 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23732
23733 # If no C compiler was specified, use CC.
23734 LTCC=${LTCC-"$CC"}
23735
23736 # If no C compiler flags were specified, use CFLAGS.
23737 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23738
23739 # Allow CC to be a program name with arguments.
23740 compiler=$CC
23741
23742
23743 # save warnings/boilerplate of simple test code
23744 ac_outfile=conftest.$ac_objext
23745 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23746 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23747 _lt_compiler_boilerplate=`cat conftest.err`
23748 $rm conftest*
23749
23750 ac_outfile=conftest.$ac_objext
23751 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23752 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23753 _lt_linker_boilerplate=`cat conftest.err`
23754 $rm conftest*
23755
23756
23757 # Allow CC to be a program name with arguments.
23758 lt_save_CC="$CC"
23759 CC=${GCJ-"gcj"}
23760 compiler=$CC
23761 compiler_GCJ=$CC
23762 for cc_temp in $compiler""; do
23763   case $cc_temp in
23764     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23765     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23766     \-*) ;;
23767     *) break;;
23768   esac
23769 done
23770 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23771
23772
23773 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23774 archive_cmds_need_lc_GCJ=no
23775
23776 old_archive_cmds_GCJ=$old_archive_cmds
23777
23778
23779 lt_prog_compiler_no_builtin_flag_GCJ=
23780
23781 if test "$GCC" = yes; then
23782   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23783
23784
23785 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23786 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23787 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23788   echo $ECHO_N "(cached) $ECHO_C" >&6
23789 else
23790   lt_cv_prog_compiler_rtti_exceptions=no
23791   ac_outfile=conftest.$ac_objext
23792    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23793    lt_compiler_flag="-fno-rtti -fno-exceptions"
23794    # Insert the option either (1) after the last *FLAGS variable, or
23795    # (2) before a word containing "conftest.", or (3) at the end.
23796    # Note that $ac_compile itself does not contain backslashes and begins
23797    # with a dollar sign (not a hyphen), so the echo should work correctly.
23798    # The option is referenced via a variable to avoid confusing sed.
23799    lt_compile=`echo "$ac_compile" | $SED \
23800    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23801    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23802    -e 's:$: $lt_compiler_flag:'`
23803    (eval echo "\"\$as_me:23803: $lt_compile\"" >&5)
23804    (eval "$lt_compile" 2>conftest.err)
23805    ac_status=$?
23806    cat conftest.err >&5
23807    echo "$as_me:23807: \$? = $ac_status" >&5
23808    if (exit $ac_status) && test -s "$ac_outfile"; then
23809      # The compiler can only warn and ignore the option if not recognized
23810      # So say no if there are warnings other than the usual output.
23811      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23812      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23813      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23814        lt_cv_prog_compiler_rtti_exceptions=yes
23815      fi
23816    fi
23817    $rm conftest*
23818
23819 fi
23820 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23821 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23822
23823 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23824     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23825 else
23826     :
23827 fi
23828
23829 fi
23830
23831 lt_prog_compiler_wl_GCJ=
23832 lt_prog_compiler_pic_GCJ=
23833 lt_prog_compiler_static_GCJ=
23834
23835 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23836 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23837
23838   if test "$GCC" = yes; then
23839     lt_prog_compiler_wl_GCJ='-Wl,'
23840     lt_prog_compiler_static_GCJ='-static'
23841
23842     case $host_os in
23843       aix*)
23844       # All AIX code is PIC.
23845       if test "$host_cpu" = ia64; then
23846         # AIX 5 now supports IA64 processor
23847         lt_prog_compiler_static_GCJ='-Bstatic'
23848       fi
23849       ;;
23850
23851     amigaos*)
23852       # FIXME: we need at least 68020 code to build shared libraries, but
23853       # adding the `-m68020' flag to GCC prevents building anything better,
23854       # like `-m68040'.
23855       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23856       ;;
23857
23858     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23859       # PIC is the default for these OSes.
23860       ;;
23861
23862     mingw* | pw32* | os2*)
23863       # This hack is so that the source file can tell whether it is being
23864       # built for inclusion in a dll (and should export symbols for example).
23865       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23866       ;;
23867
23868     darwin* | rhapsody*)
23869       # PIC is the default on this platform
23870       # Common symbols not allowed in MH_DYLIB files
23871       lt_prog_compiler_pic_GCJ='-fno-common'
23872       ;;
23873
23874     interix3*)
23875       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23876       # Instead, we relocate shared libraries at runtime.
23877       ;;
23878
23879     msdosdjgpp*)
23880       # Just because we use GCC doesn't mean we suddenly get shared libraries
23881       # on systems that don't support them.
23882       lt_prog_compiler_can_build_shared_GCJ=no
23883       enable_shared=no
23884       ;;
23885
23886     sysv4*MP*)
23887       if test -d /usr/nec; then
23888         lt_prog_compiler_pic_GCJ=-Kconform_pic
23889       fi
23890       ;;
23891
23892     hpux*)
23893       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23894       # not for PA HP-UX.
23895       case $host_cpu in
23896       hppa*64*|ia64*)
23897         # +Z the default
23898         ;;
23899       *)
23900         lt_prog_compiler_pic_GCJ='-fPIC'
23901         ;;
23902       esac
23903       ;;
23904
23905     *)
23906       lt_prog_compiler_pic_GCJ='-fPIC'
23907       ;;
23908     esac
23909   else
23910     # PORTME Check for flag to pass linker flags through the system compiler.
23911     case $host_os in
23912     aix*)
23913       lt_prog_compiler_wl_GCJ='-Wl,'
23914       if test "$host_cpu" = ia64; then
23915         # AIX 5 now supports IA64 processor
23916         lt_prog_compiler_static_GCJ='-Bstatic'
23917       else
23918         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23919       fi
23920       ;;
23921       darwin*)
23922         # PIC is the default on this platform
23923         # Common symbols not allowed in MH_DYLIB files
23924        case $cc_basename in
23925          xlc*)
23926          lt_prog_compiler_pic_GCJ='-qnocommon'
23927          lt_prog_compiler_wl_GCJ='-Wl,'
23928          ;;
23929        esac
23930        ;;
23931
23932     mingw* | pw32* | os2*)
23933       # This hack is so that the source file can tell whether it is being
23934       # built for inclusion in a dll (and should export symbols for example).
23935       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23936       ;;
23937
23938     hpux9* | hpux10* | hpux11*)
23939       lt_prog_compiler_wl_GCJ='-Wl,'
23940       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23941       # not for PA HP-UX.
23942       case $host_cpu in
23943       hppa*64*|ia64*)
23944         # +Z the default
23945         ;;
23946       *)
23947         lt_prog_compiler_pic_GCJ='+Z'
23948         ;;
23949       esac
23950       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23951       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23952       ;;
23953
23954     irix5* | irix6* | nonstopux*)
23955       lt_prog_compiler_wl_GCJ='-Wl,'
23956       # PIC (with -KPIC) is the default.
23957       lt_prog_compiler_static_GCJ='-non_shared'
23958       ;;
23959
23960     newsos6)
23961       lt_prog_compiler_pic_GCJ='-KPIC'
23962       lt_prog_compiler_static_GCJ='-Bstatic'
23963       ;;
23964
23965     linux*)
23966       case $cc_basename in
23967       icc* | ecc*)
23968         lt_prog_compiler_wl_GCJ='-Wl,'
23969         lt_prog_compiler_pic_GCJ='-KPIC'
23970         lt_prog_compiler_static_GCJ='-static'
23971         ;;
23972       pgcc* | pgf77* | pgf90* | pgf95*)
23973         # Portland Group compilers (*not* the Pentium gcc compiler,
23974         # which looks to be a dead project)
23975         lt_prog_compiler_wl_GCJ='-Wl,'
23976         lt_prog_compiler_pic_GCJ='-fpic'
23977         lt_prog_compiler_static_GCJ='-Bstatic'
23978         ;;
23979       ccc*)
23980         lt_prog_compiler_wl_GCJ='-Wl,'
23981         # All Alpha code is PIC.
23982         lt_prog_compiler_static_GCJ='-non_shared'
23983         ;;
23984       esac
23985       ;;
23986
23987     osf3* | osf4* | osf5*)
23988       lt_prog_compiler_wl_GCJ='-Wl,'
23989       # All OSF/1 code is PIC.
23990       lt_prog_compiler_static_GCJ='-non_shared'
23991       ;;
23992
23993     solaris*)
23994       lt_prog_compiler_pic_GCJ='-KPIC'
23995       lt_prog_compiler_static_GCJ='-Bstatic'
23996       case $cc_basename in
23997       f77* | f90* | f95*)
23998         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23999       *)
24000         lt_prog_compiler_wl_GCJ='-Wl,';;
24001       esac
24002       ;;
24003
24004     sunos4*)
24005       lt_prog_compiler_wl_GCJ='-Qoption ld '
24006       lt_prog_compiler_pic_GCJ='-PIC'
24007       lt_prog_compiler_static_GCJ='-Bstatic'
24008       ;;
24009
24010     sysv4 | sysv4.2uw2* | sysv4.3*)
24011       lt_prog_compiler_wl_GCJ='-Wl,'
24012       lt_prog_compiler_pic_GCJ='-KPIC'
24013       lt_prog_compiler_static_GCJ='-Bstatic'
24014       ;;
24015
24016     sysv4*MP*)
24017       if test -d /usr/nec ;then
24018         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24019         lt_prog_compiler_static_GCJ='-Bstatic'
24020       fi
24021       ;;
24022
24023     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24024       lt_prog_compiler_wl_GCJ='-Wl,'
24025       lt_prog_compiler_pic_GCJ='-KPIC'
24026       lt_prog_compiler_static_GCJ='-Bstatic'
24027       ;;
24028
24029     unicos*)
24030       lt_prog_compiler_wl_GCJ='-Wl,'
24031       lt_prog_compiler_can_build_shared_GCJ=no
24032       ;;
24033
24034     uts4*)
24035       lt_prog_compiler_pic_GCJ='-pic'
24036       lt_prog_compiler_static_GCJ='-Bstatic'
24037       ;;
24038
24039     *)
24040       lt_prog_compiler_can_build_shared_GCJ=no
24041       ;;
24042     esac
24043   fi
24044
24045 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24046 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24047
24048 #
24049 # Check to make sure the PIC flag actually works.
24050 #
24051 if test -n "$lt_prog_compiler_pic_GCJ"; then
24052
24053 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24054 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24055 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24056   echo $ECHO_N "(cached) $ECHO_C" >&6
24057 else
24058   lt_prog_compiler_pic_works_GCJ=no
24059   ac_outfile=conftest.$ac_objext
24060    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24061    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24062    # Insert the option either (1) after the last *FLAGS variable, or
24063    # (2) before a word containing "conftest.", or (3) at the end.
24064    # Note that $ac_compile itself does not contain backslashes and begins
24065    # with a dollar sign (not a hyphen), so the echo should work correctly.
24066    # The option is referenced via a variable to avoid confusing sed.
24067    lt_compile=`echo "$ac_compile" | $SED \
24068    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24069    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24070    -e 's:$: $lt_compiler_flag:'`
24071    (eval echo "\"\$as_me:24071: $lt_compile\"" >&5)
24072    (eval "$lt_compile" 2>conftest.err)
24073    ac_status=$?
24074    cat conftest.err >&5
24075    echo "$as_me:24075: \$? = $ac_status" >&5
24076    if (exit $ac_status) && test -s "$ac_outfile"; then
24077      # The compiler can only warn and ignore the option if not recognized
24078      # So say no if there are warnings other than the usual output.
24079      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24080      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24081      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24082        lt_prog_compiler_pic_works_GCJ=yes
24083      fi
24084    fi
24085    $rm conftest*
24086
24087 fi
24088 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24089 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24090
24091 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24092     case $lt_prog_compiler_pic_GCJ in
24093      "" | " "*) ;;
24094      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24095      esac
24096 else
24097     lt_prog_compiler_pic_GCJ=
24098      lt_prog_compiler_can_build_shared_GCJ=no
24099 fi
24100
24101 fi
24102 case $host_os in
24103   # For platforms which do not support PIC, -DPIC is meaningless:
24104   *djgpp*)
24105     lt_prog_compiler_pic_GCJ=
24106     ;;
24107   *)
24108     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24109     ;;
24110 esac
24111
24112 #
24113 # Check to make sure the static flag actually works.
24114 #
24115 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24116 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24117 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24118 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24119   echo $ECHO_N "(cached) $ECHO_C" >&6
24120 else
24121   lt_prog_compiler_static_works_GCJ=no
24122    save_LDFLAGS="$LDFLAGS"
24123    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24124    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24125    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24126      # The linker can only warn and ignore the option if not recognized
24127      # So say no if there are warnings
24128      if test -s conftest.err; then
24129        # Append any errors to the config.log.
24130        cat conftest.err 1>&5
24131        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24132        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24133        if diff conftest.exp conftest.er2 >/dev/null; then
24134          lt_prog_compiler_static_works_GCJ=yes
24135        fi
24136      else
24137        lt_prog_compiler_static_works_GCJ=yes
24138      fi
24139    fi
24140    $rm conftest*
24141    LDFLAGS="$save_LDFLAGS"
24142
24143 fi
24144 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24145 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24146
24147 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24148     :
24149 else
24150     lt_prog_compiler_static_GCJ=
24151 fi
24152
24153
24154 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24155 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24156 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24157   echo $ECHO_N "(cached) $ECHO_C" >&6
24158 else
24159   lt_cv_prog_compiler_c_o_GCJ=no
24160    $rm -r conftest 2>/dev/null
24161    mkdir conftest
24162    cd conftest
24163    mkdir out
24164    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24165
24166    lt_compiler_flag="-o out/conftest2.$ac_objext"
24167    # Insert the option either (1) after the last *FLAGS variable, or
24168    # (2) before a word containing "conftest.", or (3) at the end.
24169    # Note that $ac_compile itself does not contain backslashes and begins
24170    # with a dollar sign (not a hyphen), so the echo should work correctly.
24171    lt_compile=`echo "$ac_compile" | $SED \
24172    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24173    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24174    -e 's:$: $lt_compiler_flag:'`
24175    (eval echo "\"\$as_me:24175: $lt_compile\"" >&5)
24176    (eval "$lt_compile" 2>out/conftest.err)
24177    ac_status=$?
24178    cat out/conftest.err >&5
24179    echo "$as_me:24179: \$? = $ac_status" >&5
24180    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24181    then
24182      # The compiler can only warn and ignore the option if not recognized
24183      # So say no if there are warnings
24184      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24185      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24186      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24187        lt_cv_prog_compiler_c_o_GCJ=yes
24188      fi
24189    fi
24190    chmod u+w . 2>&5
24191    $rm conftest*
24192    # SGI C++ compiler will create directory out/ii_files/ for
24193    # template instantiation
24194    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24195    $rm out/* && rmdir out
24196    cd ..
24197    rmdir conftest
24198    $rm conftest*
24199
24200 fi
24201 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24202 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24203
24204
24205 hard_links="nottested"
24206 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24207   # do not overwrite the value of need_locks provided by the user
24208   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24209 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24210   hard_links=yes
24211   $rm conftest*
24212   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24213   touch conftest.a
24214   ln conftest.a conftest.b 2>&5 || hard_links=no
24215   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24216   { echo "$as_me:$LINENO: result: $hard_links" >&5
24217 echo "${ECHO_T}$hard_links" >&6; }
24218   if test "$hard_links" = no; then
24219     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24220 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24221     need_locks=warn
24222   fi
24223 else
24224   need_locks=no
24225 fi
24226
24227 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24228 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24229
24230   runpath_var=
24231   allow_undefined_flag_GCJ=
24232   enable_shared_with_static_runtimes_GCJ=no
24233   archive_cmds_GCJ=
24234   archive_expsym_cmds_GCJ=
24235   old_archive_From_new_cmds_GCJ=
24236   old_archive_from_expsyms_cmds_GCJ=
24237   export_dynamic_flag_spec_GCJ=
24238   whole_archive_flag_spec_GCJ=
24239   thread_safe_flag_spec_GCJ=
24240   hardcode_libdir_flag_spec_GCJ=
24241   hardcode_libdir_flag_spec_ld_GCJ=
24242   hardcode_libdir_separator_GCJ=
24243   hardcode_direct_GCJ=no
24244   hardcode_minus_L_GCJ=no
24245   hardcode_shlibpath_var_GCJ=unsupported
24246   link_all_deplibs_GCJ=unknown
24247   hardcode_automatic_GCJ=no
24248   module_cmds_GCJ=
24249   module_expsym_cmds_GCJ=
24250   always_export_symbols_GCJ=no
24251   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24252   # include_expsyms should be a list of space-separated symbols to be *always*
24253   # included in the symbol list
24254   include_expsyms_GCJ=
24255   # exclude_expsyms can be an extended regexp of symbols to exclude
24256   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24257   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24258   # as well as any symbol that contains `d'.
24259   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24260   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24261   # platforms (ab)use it in PIC code, but their linkers get confused if
24262   # the symbol is explicitly referenced.  Since portable code cannot
24263   # rely on this symbol name, it's probably fine to never include it in
24264   # preloaded symbol tables.
24265   extract_expsyms_cmds=
24266   # Just being paranoid about ensuring that cc_basename is set.
24267   for cc_temp in $compiler""; do
24268   case $cc_temp in
24269     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24270     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24271     \-*) ;;
24272     *) break;;
24273   esac
24274 done
24275 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24276
24277   case $host_os in
24278   cygwin* | mingw* | pw32*)
24279     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24280     # When not using gcc, we currently assume that we are using
24281     # Microsoft Visual C++.
24282     if test "$GCC" != yes; then
24283       with_gnu_ld=no
24284     fi
24285     ;;
24286   interix*)
24287     # we just hope/assume this is gcc and not c89 (= MSVC++)
24288     with_gnu_ld=yes
24289     ;;
24290   openbsd*)
24291     with_gnu_ld=no
24292     ;;
24293   esac
24294
24295   ld_shlibs_GCJ=yes
24296   if test "$with_gnu_ld" = yes; then
24297     # If archive_cmds runs LD, not CC, wlarc should be empty
24298     wlarc='${wl}'
24299
24300     # Set some defaults for GNU ld with shared library support. These
24301     # are reset later if shared libraries are not supported. Putting them
24302     # here allows them to be overridden if necessary.
24303     runpath_var=LD_RUN_PATH
24304     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24305     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24306     # ancient GNU ld didn't support --whole-archive et. al.
24307     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24308         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24309       else
24310         whole_archive_flag_spec_GCJ=
24311     fi
24312     supports_anon_versioning=no
24313     case `$LD -v 2>/dev/null` in
24314       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24315       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24316       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24317       *\ 2.11.*) ;; # other 2.11 versions
24318       *) supports_anon_versioning=yes ;;
24319     esac
24320
24321     # See if GNU ld supports shared libraries.
24322     case $host_os in
24323     aix3* | aix4* | aix5*)
24324       # On AIX/PPC, the GNU linker is very broken
24325       if test "$host_cpu" != ia64; then
24326         ld_shlibs_GCJ=no
24327         cat <<EOF 1>&2
24328
24329 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24330 *** to be unable to reliably create shared libraries on AIX.
24331 *** Therefore, libtool is disabling shared libraries support.  If you
24332 *** really care for shared libraries, you may want to modify your PATH
24333 *** so that a non-GNU linker is found, and then restart.
24334
24335 EOF
24336       fi
24337       ;;
24338
24339     amigaos*)
24340       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)'
24341       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24342       hardcode_minus_L_GCJ=yes
24343
24344       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24345       # that the semantics of dynamic libraries on AmigaOS, at least up
24346       # to version 4, is to share data among multiple programs linked
24347       # with the same dynamic library.  Since this doesn't match the
24348       # behavior of shared libraries on other platforms, we can't use
24349       # them.
24350       ld_shlibs_GCJ=no
24351       ;;
24352
24353     beos*)
24354       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24355         allow_undefined_flag_GCJ=unsupported
24356         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24357         # support --undefined.  This deserves some investigation.  FIXME
24358         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24359       else
24360         ld_shlibs_GCJ=no
24361       fi
24362       ;;
24363
24364     cygwin* | mingw* | pw32*)
24365       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24366       # as there is no search path for DLLs.
24367       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24368       allow_undefined_flag_GCJ=unsupported
24369       always_export_symbols_GCJ=no
24370       enable_shared_with_static_runtimes_GCJ=yes
24371       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24372
24373       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24374         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24375         # If the export-symbols file already is a .def file (1st line
24376         # is EXPORTS), use it as is; otherwise, prepend...
24377         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24378           cp $export_symbols $output_objdir/$soname.def;
24379         else
24380           echo EXPORTS > $output_objdir/$soname.def;
24381           cat $export_symbols >> $output_objdir/$soname.def;
24382         fi~
24383         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24384       else
24385         ld_shlibs_GCJ=no
24386       fi
24387       ;;
24388
24389     interix3*)
24390       hardcode_direct_GCJ=no
24391       hardcode_shlibpath_var_GCJ=no
24392       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24393       export_dynamic_flag_spec_GCJ='${wl}-E'
24394       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24395       # Instead, shared libraries are loaded at an image base (0x10000000 by
24396       # default) and relocated if they conflict, which is a slow very memory
24397       # consuming and fragmenting process.  To avoid this, we pick a random,
24398       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24399       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24400       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'
24401       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'
24402       ;;
24403
24404     linux*)
24405       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24406         tmp_addflag=
24407         case $cc_basename,$host_cpu in
24408         pgcc*)                          # Portland Group C compiler
24409           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'
24410           tmp_addflag=' $pic_flag'
24411           ;;
24412         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24413           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'
24414           tmp_addflag=' $pic_flag -Mnomain' ;;
24415         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24416           tmp_addflag=' -i_dynamic' ;;
24417         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24418           tmp_addflag=' -i_dynamic -nofor_main' ;;
24419         ifc* | ifort*)                  # Intel Fortran compiler
24420           tmp_addflag=' -nofor_main' ;;
24421         esac
24422         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24423
24424         if test $supports_anon_versioning = yes; then
24425           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24426   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24427   $echo "local: *; };" >> $output_objdir/$libname.ver~
24428           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24429         fi
24430       else
24431         ld_shlibs_GCJ=no
24432       fi
24433       ;;
24434
24435     netbsd*)
24436       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24437         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24438         wlarc=
24439       else
24440         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24441         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24442       fi
24443       ;;
24444
24445     solaris*)
24446       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24447         ld_shlibs_GCJ=no
24448         cat <<EOF 1>&2
24449
24450 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24451 *** create shared libraries on Solaris systems.  Therefore, libtool
24452 *** is disabling shared libraries support.  We urge you to upgrade GNU
24453 *** binutils to release 2.9.1 or newer.  Another option is to modify
24454 *** your PATH or compiler configuration so that the native linker is
24455 *** used, and then restart.
24456
24457 EOF
24458       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24459         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24460         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24461       else
24462         ld_shlibs_GCJ=no
24463       fi
24464       ;;
24465
24466     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24467       case `$LD -v 2>&1` in
24468         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24469         ld_shlibs_GCJ=no
24470         cat <<_LT_EOF 1>&2
24471
24472 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24473 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24474 *** is disabling shared libraries support.  We urge you to upgrade GNU
24475 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24476 *** your PATH or compiler configuration so that the native linker is
24477 *** used, and then restart.
24478
24479 _LT_EOF
24480         ;;
24481         *)
24482           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24483             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24484             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24485             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24486           else
24487             ld_shlibs_GCJ=no
24488           fi
24489         ;;
24490       esac
24491       ;;
24492
24493     sunos4*)
24494       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24495       wlarc=
24496       hardcode_direct_GCJ=yes
24497       hardcode_shlibpath_var_GCJ=no
24498       ;;
24499
24500     *)
24501       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24502         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24503         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24504       else
24505         ld_shlibs_GCJ=no
24506       fi
24507       ;;
24508     esac
24509
24510     if test "$ld_shlibs_GCJ" = no; then
24511       runpath_var=
24512       hardcode_libdir_flag_spec_GCJ=
24513       export_dynamic_flag_spec_GCJ=
24514       whole_archive_flag_spec_GCJ=
24515     fi
24516   else
24517     # PORTME fill in a description of your system's linker (not GNU ld)
24518     case $host_os in
24519     aix3*)
24520       allow_undefined_flag_GCJ=unsupported
24521       always_export_symbols_GCJ=yes
24522       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'
24523       # Note: this linker hardcodes the directories in LIBPATH if there
24524       # are no directories specified by -L.
24525       hardcode_minus_L_GCJ=yes
24526       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24527         # Neither direct hardcoding nor static linking is supported with a
24528         # broken collect2.
24529         hardcode_direct_GCJ=unsupported
24530       fi
24531       ;;
24532
24533     aix4* | aix5*)
24534       if test "$host_cpu" = ia64; then
24535         # On IA64, the linker does run time linking by default, so we don't
24536         # have to do anything special.
24537         aix_use_runtimelinking=no
24538         exp_sym_flag='-Bexport'
24539         no_entry_flag=""
24540       else
24541         # If we're using GNU nm, then we don't want the "-C" option.
24542         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24543         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24544           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'
24545         else
24546           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'
24547         fi
24548         aix_use_runtimelinking=no
24549
24550         # Test if we are trying to use run time linking or normal
24551         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24552         # need to do runtime linking.
24553         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24554           for ld_flag in $LDFLAGS; do
24555           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24556             aix_use_runtimelinking=yes
24557             break
24558           fi
24559           done
24560           ;;
24561         esac
24562
24563         exp_sym_flag='-bexport'
24564         no_entry_flag='-bnoentry'
24565       fi
24566
24567       # When large executables or shared objects are built, AIX ld can
24568       # have problems creating the table of contents.  If linking a library
24569       # or program results in "error TOC overflow" add -mminimal-toc to
24570       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24571       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24572
24573       archive_cmds_GCJ=''
24574       hardcode_direct_GCJ=yes
24575       hardcode_libdir_separator_GCJ=':'
24576       link_all_deplibs_GCJ=yes
24577
24578       if test "$GCC" = yes; then
24579         case $host_os in aix4.[012]|aix4.[012].*)
24580         # We only want to do this on AIX 4.2 and lower, the check
24581         # below for broken collect2 doesn't work under 4.3+
24582           collect2name=`${CC} -print-prog-name=collect2`
24583           if test -f "$collect2name" && \
24584            strings "$collect2name" | grep resolve_lib_name >/dev/null
24585           then
24586           # We have reworked collect2
24587           hardcode_direct_GCJ=yes
24588           else
24589           # We have old collect2
24590           hardcode_direct_GCJ=unsupported
24591           # It fails to find uninstalled libraries when the uninstalled
24592           # path is not listed in the libpath.  Setting hardcode_minus_L
24593           # to unsupported forces relinking
24594           hardcode_minus_L_GCJ=yes
24595           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24596           hardcode_libdir_separator_GCJ=
24597           fi
24598           ;;
24599         esac
24600         shared_flag='-shared'
24601         if test "$aix_use_runtimelinking" = yes; then
24602           shared_flag="$shared_flag "'${wl}-G'
24603         fi
24604       else
24605         # not using gcc
24606         if test "$host_cpu" = ia64; then
24607         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24608         # chokes on -Wl,-G. The following line is correct:
24609           shared_flag='-G'
24610         else
24611           if test "$aix_use_runtimelinking" = yes; then
24612             shared_flag='${wl}-G'
24613           else
24614             shared_flag='${wl}-bM:SRE'
24615           fi
24616         fi
24617       fi
24618
24619       # It seems that -bexpall does not export symbols beginning with
24620       # underscore (_), so it is better to generate a list of symbols to export.
24621       always_export_symbols_GCJ=yes
24622       if test "$aix_use_runtimelinking" = yes; then
24623         # Warning - without using the other runtime loading flags (-brtl),
24624         # -berok will link without error, but may produce a broken library.
24625         allow_undefined_flag_GCJ='-berok'
24626        # Determine the default libpath from the value encoded in an empty executable.
24627        cat >conftest.$ac_ext <<_ACEOF
24628 /* confdefs.h.  */
24629 _ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h.  */
24633
24634 int
24635 main ()
24636 {
24637
24638   ;
24639   return 0;
24640 }
24641 _ACEOF
24642 rm -f conftest.$ac_objext conftest$ac_exeext
24643 if { (ac_try="$ac_link"
24644 case "(($ac_try" in
24645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24646   *) ac_try_echo=$ac_try;;
24647 esac
24648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24649   (eval "$ac_link") 2>conftest.er1
24650   ac_status=$?
24651   grep -v '^ *+' conftest.er1 >conftest.err
24652   rm -f conftest.er1
24653   cat conftest.err >&5
24654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655   (exit $ac_status); } &&
24656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24657   { (case "(($ac_try" in
24658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24659   *) ac_try_echo=$ac_try;;
24660 esac
24661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24662   (eval "$ac_try") 2>&5
24663   ac_status=$?
24664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665   (exit $ac_status); }; } &&
24666          { ac_try='test -s conftest$ac_exeext'
24667   { (case "(($ac_try" in
24668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669   *) ac_try_echo=$ac_try;;
24670 esac
24671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672   (eval "$ac_try") 2>&5
24673   ac_status=$?
24674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675   (exit $ac_status); }; }; then
24676
24677 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24678 }'`
24679 # Check for a 64-bit object if we didn't find anything.
24680 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; }
24681 }'`; fi
24682 else
24683   echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.$ac_ext >&5
24685
24686
24687 fi
24688
24689 rm -f core conftest.err conftest.$ac_objext \
24690       conftest$ac_exeext conftest.$ac_ext
24691 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24692
24693        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24694         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"
24695        else
24696         if test "$host_cpu" = ia64; then
24697           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24698           allow_undefined_flag_GCJ="-z nodefs"
24699           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"
24700         else
24701          # Determine the default libpath from the value encoded in an empty executable.
24702          cat >conftest.$ac_ext <<_ACEOF
24703 /* confdefs.h.  */
24704 _ACEOF
24705 cat confdefs.h >>conftest.$ac_ext
24706 cat >>conftest.$ac_ext <<_ACEOF
24707 /* end confdefs.h.  */
24708
24709 int
24710 main ()
24711 {
24712
24713   ;
24714   return 0;
24715 }
24716 _ACEOF
24717 rm -f conftest.$ac_objext conftest$ac_exeext
24718 if { (ac_try="$ac_link"
24719 case "(($ac_try" in
24720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721   *) ac_try_echo=$ac_try;;
24722 esac
24723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24724   (eval "$ac_link") 2>conftest.er1
24725   ac_status=$?
24726   grep -v '^ *+' conftest.er1 >conftest.err
24727   rm -f conftest.er1
24728   cat conftest.err >&5
24729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730   (exit $ac_status); } &&
24731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24732   { (case "(($ac_try" in
24733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24734   *) ac_try_echo=$ac_try;;
24735 esac
24736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24737   (eval "$ac_try") 2>&5
24738   ac_status=$?
24739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740   (exit $ac_status); }; } &&
24741          { ac_try='test -s conftest$ac_exeext'
24742   { (case "(($ac_try" in
24743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24744   *) ac_try_echo=$ac_try;;
24745 esac
24746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24747   (eval "$ac_try") 2>&5
24748   ac_status=$?
24749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750   (exit $ac_status); }; }; then
24751
24752 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24753 }'`
24754 # Check for a 64-bit object if we didn't find anything.
24755 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; }
24756 }'`; fi
24757 else
24758   echo "$as_me: failed program was:" >&5
24759 sed 's/^/| /' conftest.$ac_ext >&5
24760
24761
24762 fi
24763
24764 rm -f core conftest.err conftest.$ac_objext \
24765       conftest$ac_exeext conftest.$ac_ext
24766 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24767
24768          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24769           # Warning - without using the other run time loading flags,
24770           # -berok will link without error, but may produce a broken library.
24771           no_undefined_flag_GCJ=' ${wl}-bernotok'
24772           allow_undefined_flag_GCJ=' ${wl}-berok'
24773           # Exported symbols can be pulled into shared objects from archives
24774           whole_archive_flag_spec_GCJ='$convenience'
24775           archive_cmds_need_lc_GCJ=yes
24776           # This is similar to how AIX traditionally builds its shared libraries.
24777           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'
24778         fi
24779       fi
24780       ;;
24781
24782     amigaos*)
24783       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)'
24784       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24785       hardcode_minus_L_GCJ=yes
24786       # see comment about different semantics on the GNU ld section
24787       ld_shlibs_GCJ=no
24788       ;;
24789
24790     bsdi[45]*)
24791       export_dynamic_flag_spec_GCJ=-rdynamic
24792       ;;
24793
24794     cygwin* | mingw* | pw32*)
24795       # When not using gcc, we currently assume that we are using
24796       # Microsoft Visual C++.
24797       # hardcode_libdir_flag_spec is actually meaningless, as there is
24798       # no search path for DLLs.
24799       hardcode_libdir_flag_spec_GCJ=' '
24800       allow_undefined_flag_GCJ=unsupported
24801       # Tell ltmain to make .lib files, not .a files.
24802       libext=lib
24803       # Tell ltmain to make .dll files, not .so files.
24804       shrext_cmds=".dll"
24805       # FIXME: Setting linknames here is a bad hack.
24806       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24807       # The linker will automatically build a .lib file if we build a DLL.
24808       old_archive_From_new_cmds_GCJ='true'
24809       # FIXME: Should let the user specify the lib program.
24810       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24811       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24812       enable_shared_with_static_runtimes_GCJ=yes
24813       ;;
24814
24815     darwin* | rhapsody*)
24816       case $host_os in
24817         rhapsody* | darwin1.[012])
24818          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24819          ;;
24820        *) # Darwin 1.3 on
24821          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24822            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24823          else
24824            case ${MACOSX_DEPLOYMENT_TARGET} in
24825              10.[012])
24826                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24827                ;;
24828              10.*)
24829                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24830                ;;
24831            esac
24832          fi
24833          ;;
24834       esac
24835       archive_cmds_need_lc_GCJ=no
24836       hardcode_direct_GCJ=no
24837       hardcode_automatic_GCJ=yes
24838       hardcode_shlibpath_var_GCJ=unsupported
24839       whole_archive_flag_spec_GCJ=''
24840       link_all_deplibs_GCJ=yes
24841     if test "$GCC" = yes ; then
24842         output_verbose_link_cmd='echo'
24843         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24844       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24845       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24846       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}'
24847       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}'
24848     else
24849       case $cc_basename in
24850         xlc*)
24851          output_verbose_link_cmd='echo'
24852          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24853          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24854           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24855          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}'
24856           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}'
24857           ;;
24858        *)
24859          ld_shlibs_GCJ=no
24860           ;;
24861       esac
24862     fi
24863       ;;
24864
24865     dgux*)
24866       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24867       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24868       hardcode_shlibpath_var_GCJ=no
24869       ;;
24870
24871     freebsd1*)
24872       ld_shlibs_GCJ=no
24873       ;;
24874
24875     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24876     # support.  Future versions do this automatically, but an explicit c++rt0.o
24877     # does not break anything, and helps significantly (at the cost of a little
24878     # extra space).
24879     freebsd2.2*)
24880       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24881       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24882       hardcode_direct_GCJ=yes
24883       hardcode_shlibpath_var_GCJ=no
24884       ;;
24885
24886     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24887     freebsd2*)
24888       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24889       hardcode_direct_GCJ=yes
24890       hardcode_minus_L_GCJ=yes
24891       hardcode_shlibpath_var_GCJ=no
24892       ;;
24893
24894     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24895     freebsd* | kfreebsd*-gnu | dragonfly*)
24896       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24897       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24898       hardcode_direct_GCJ=yes
24899       hardcode_shlibpath_var_GCJ=no
24900       ;;
24901
24902     hpux9*)
24903       if test "$GCC" = yes; then
24904         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'
24905       else
24906         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'
24907       fi
24908       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24909       hardcode_libdir_separator_GCJ=:
24910       hardcode_direct_GCJ=yes
24911
24912       # hardcode_minus_L: Not really in the search PATH,
24913       # but as the default location of the library.
24914       hardcode_minus_L_GCJ=yes
24915       export_dynamic_flag_spec_GCJ='${wl}-E'
24916       ;;
24917
24918     hpux10*)
24919       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24920         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24921       else
24922         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24923       fi
24924       if test "$with_gnu_ld" = no; then
24925         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24926         hardcode_libdir_separator_GCJ=:
24927
24928         hardcode_direct_GCJ=yes
24929         export_dynamic_flag_spec_GCJ='${wl}-E'
24930
24931         # hardcode_minus_L: Not really in the search PATH,
24932         # but as the default location of the library.
24933         hardcode_minus_L_GCJ=yes
24934       fi
24935       ;;
24936
24937     hpux11*)
24938       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24939         case $host_cpu in
24940         hppa*64*)
24941           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24942           ;;
24943         ia64*)
24944           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24945           ;;
24946         *)
24947           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24948           ;;
24949         esac
24950       else
24951         case $host_cpu in
24952         hppa*64*)
24953           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24954           ;;
24955         ia64*)
24956           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24957           ;;
24958         *)
24959           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24960           ;;
24961         esac
24962       fi
24963       if test "$with_gnu_ld" = no; then
24964         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24965         hardcode_libdir_separator_GCJ=:
24966
24967         case $host_cpu in
24968         hppa*64*|ia64*)
24969           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24970           hardcode_direct_GCJ=no
24971           hardcode_shlibpath_var_GCJ=no
24972           ;;
24973         *)
24974           hardcode_direct_GCJ=yes
24975           export_dynamic_flag_spec_GCJ='${wl}-E'
24976
24977           # hardcode_minus_L: Not really in the search PATH,
24978           # but as the default location of the library.
24979           hardcode_minus_L_GCJ=yes
24980           ;;
24981         esac
24982       fi
24983       ;;
24984
24985     irix5* | irix6* | nonstopux*)
24986       if test "$GCC" = yes; then
24987         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'
24988       else
24989         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'
24990         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24991       fi
24992       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24993       hardcode_libdir_separator_GCJ=:
24994       link_all_deplibs_GCJ=yes
24995       ;;
24996
24997     netbsd*)
24998       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24999         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25000       else
25001         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25002       fi
25003       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25004       hardcode_direct_GCJ=yes
25005       hardcode_shlibpath_var_GCJ=no
25006       ;;
25007
25008     newsos6)
25009       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25010       hardcode_direct_GCJ=yes
25011       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25012       hardcode_libdir_separator_GCJ=:
25013       hardcode_shlibpath_var_GCJ=no
25014       ;;
25015
25016     openbsd*)
25017       hardcode_direct_GCJ=yes
25018       hardcode_shlibpath_var_GCJ=no
25019       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25020         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25021         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25022         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25023         export_dynamic_flag_spec_GCJ='${wl}-E'
25024       else
25025        case $host_os in
25026          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25027            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25028            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25029            ;;
25030          *)
25031            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25032            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25033            ;;
25034        esac
25035       fi
25036       ;;
25037
25038     os2*)
25039       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25040       hardcode_minus_L_GCJ=yes
25041       allow_undefined_flag_GCJ=unsupported
25042       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'
25043       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25044       ;;
25045
25046     osf3*)
25047       if test "$GCC" = yes; then
25048         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25049         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'
25050       else
25051         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25052         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'
25053       fi
25054       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25055       hardcode_libdir_separator_GCJ=:
25056       ;;
25057
25058     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25059       if test "$GCC" = yes; then
25060         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25061         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'
25062         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25063       else
25064         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25065         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'
25066         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~
25067         $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'
25068
25069         # Both c and cxx compiler support -rpath directly
25070         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25071       fi
25072       hardcode_libdir_separator_GCJ=:
25073       ;;
25074
25075     solaris*)
25076       no_undefined_flag_GCJ=' -z text'
25077       if test "$GCC" = yes; then
25078         wlarc='${wl}'
25079         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25080         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25081           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25082       else
25083         wlarc=''
25084         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25085         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25086         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25087       fi
25088       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25089       hardcode_shlibpath_var_GCJ=no
25090       case $host_os in
25091       solaris2.[0-5] | solaris2.[0-5].*) ;;
25092       *)
25093         # The compiler driver will combine linker options so we
25094         # cannot just pass the convience library names through
25095         # without $wl, iff we do not link with $LD.
25096         # Luckily, gcc supports the same syntax we need for Sun Studio.
25097         # Supported since Solaris 2.6 (maybe 2.5.1?)
25098         case $wlarc in
25099         '')
25100           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25101         *)
25102           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' ;;
25103         esac ;;
25104       esac
25105       link_all_deplibs_GCJ=yes
25106       ;;
25107
25108     sunos4*)
25109       if test "x$host_vendor" = xsequent; then
25110         # Use $CC to link under sequent, because it throws in some extra .o
25111         # files that make .init and .fini sections work.
25112         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25113       else
25114         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25115       fi
25116       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25117       hardcode_direct_GCJ=yes
25118       hardcode_minus_L_GCJ=yes
25119       hardcode_shlibpath_var_GCJ=no
25120       ;;
25121
25122     sysv4)
25123       case $host_vendor in
25124         sni)
25125           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25126           hardcode_direct_GCJ=yes # is this really true???
25127         ;;
25128         siemens)
25129           ## LD is ld it makes a PLAMLIB
25130           ## CC just makes a GrossModule.
25131           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25132           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25133           hardcode_direct_GCJ=no
25134         ;;
25135         motorola)
25136           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25137           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25138         ;;
25139       esac
25140       runpath_var='LD_RUN_PATH'
25141       hardcode_shlibpath_var_GCJ=no
25142       ;;
25143
25144     sysv4.3*)
25145       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25146       hardcode_shlibpath_var_GCJ=no
25147       export_dynamic_flag_spec_GCJ='-Bexport'
25148       ;;
25149
25150     sysv4*MP*)
25151       if test -d /usr/nec; then
25152         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25153         hardcode_shlibpath_var_GCJ=no
25154         runpath_var=LD_RUN_PATH
25155         hardcode_runpath_var=yes
25156         ld_shlibs_GCJ=yes
25157       fi
25158       ;;
25159
25160     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25161       no_undefined_flag_GCJ='${wl}-z,text'
25162       archive_cmds_need_lc_GCJ=no
25163       hardcode_shlibpath_var_GCJ=no
25164       runpath_var='LD_RUN_PATH'
25165
25166       if test "$GCC" = yes; then
25167         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25168         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25169       else
25170         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25171         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25172       fi
25173       ;;
25174
25175     sysv5* | sco3.2v5* | sco5v6*)
25176       # Note: We can NOT use -z defs as we might desire, because we do not
25177       # link with -lc, and that would cause any symbols used from libc to
25178       # always be unresolved, which means just about no library would
25179       # ever link correctly.  If we're not using GNU ld we use -z text
25180       # though, which does catch some bad symbols but isn't as heavy-handed
25181       # as -z defs.
25182       no_undefined_flag_GCJ='${wl}-z,text'
25183       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25184       archive_cmds_need_lc_GCJ=no
25185       hardcode_shlibpath_var_GCJ=no
25186       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25187       hardcode_libdir_separator_GCJ=':'
25188       link_all_deplibs_GCJ=yes
25189       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25190       runpath_var='LD_RUN_PATH'
25191
25192       if test "$GCC" = yes; then
25193         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25194         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25195       else
25196         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25197         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25198       fi
25199       ;;
25200
25201     uts4*)
25202       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25203       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25204       hardcode_shlibpath_var_GCJ=no
25205       ;;
25206
25207     *)
25208       ld_shlibs_GCJ=no
25209       ;;
25210     esac
25211   fi
25212
25213 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25214 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25215 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25216
25217 #
25218 # Do we need to explicitly link libc?
25219 #
25220 case "x$archive_cmds_need_lc_GCJ" in
25221 x|xyes)
25222   # Assume -lc should be added
25223   archive_cmds_need_lc_GCJ=yes
25224
25225   if test "$enable_shared" = yes && test "$GCC" = yes; then
25226     case $archive_cmds_GCJ in
25227     *'~'*)
25228       # FIXME: we may have to deal with multi-command sequences.
25229       ;;
25230     '$CC '*)
25231       # Test whether the compiler implicitly links with -lc since on some
25232       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25233       # to ld, don't add -lc before -lgcc.
25234       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25235 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25236       $rm conftest*
25237       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25238
25239       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25240   (eval $ac_compile) 2>&5
25241   ac_status=$?
25242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243   (exit $ac_status); } 2>conftest.err; then
25244         soname=conftest
25245         lib=conftest
25246         libobjs=conftest.$ac_objext
25247         deplibs=
25248         wl=$lt_prog_compiler_wl_GCJ
25249         pic_flag=$lt_prog_compiler_pic_GCJ
25250         compiler_flags=-v
25251         linker_flags=-v
25252         verstring=
25253         output_objdir=.
25254         libname=conftest
25255         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25256         allow_undefined_flag_GCJ=
25257         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25258   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25259   ac_status=$?
25260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261   (exit $ac_status); }
25262         then
25263           archive_cmds_need_lc_GCJ=no
25264         else
25265           archive_cmds_need_lc_GCJ=yes
25266         fi
25267         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25268       else
25269         cat conftest.err 1>&5
25270       fi
25271       $rm conftest*
25272       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25273 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25274       ;;
25275     esac
25276   fi
25277   ;;
25278 esac
25279
25280 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25281 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25282 library_names_spec=
25283 libname_spec='lib$name'
25284 soname_spec=
25285 shrext_cmds=".so"
25286 postinstall_cmds=
25287 postuninstall_cmds=
25288 finish_cmds=
25289 finish_eval=
25290 shlibpath_var=
25291 shlibpath_overrides_runpath=unknown
25292 version_type=none
25293 dynamic_linker="$host_os ld.so"
25294 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25295 if test "$GCC" = yes; then
25296   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25297   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25298     # if the path contains ";" then we assume it to be the separator
25299     # otherwise default to the standard path separator (i.e. ":") - it is
25300     # assumed that no part of a normal pathname contains ";" but that should
25301     # okay in the real world where ";" in dirpaths is itself problematic.
25302     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25303   else
25304     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25305   fi
25306 else
25307   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25308 fi
25309 need_lib_prefix=unknown
25310 hardcode_into_libs=no
25311
25312 # when you set need_version to no, make sure it does not cause -set_version
25313 # flags to be left without arguments
25314 need_version=unknown
25315
25316 case $host_os in
25317 aix3*)
25318   version_type=linux
25319   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25320   shlibpath_var=LIBPATH
25321
25322   # AIX 3 has no versioning support, so we append a major version to the name.
25323   soname_spec='${libname}${release}${shared_ext}$major'
25324   ;;
25325
25326 aix4* | aix5*)
25327   version_type=linux
25328   need_lib_prefix=no
25329   need_version=no
25330   hardcode_into_libs=yes
25331   if test "$host_cpu" = ia64; then
25332     # AIX 5 supports IA64
25333     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25334     shlibpath_var=LD_LIBRARY_PATH
25335   else
25336     # With GCC up to 2.95.x, collect2 would create an import file
25337     # for dependence libraries.  The import file would start with
25338     # the line `#! .'.  This would cause the generated library to
25339     # depend on `.', always an invalid library.  This was fixed in
25340     # development snapshots of GCC prior to 3.0.
25341     case $host_os in
25342       aix4 | aix4.[01] | aix4.[01].*)
25343       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25344            echo ' yes '
25345            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25346         :
25347       else
25348         can_build_shared=no
25349       fi
25350       ;;
25351     esac
25352     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25353     # soname into executable. Probably we can add versioning support to
25354     # collect2, so additional links can be useful in future.
25355     if test "$aix_use_runtimelinking" = yes; then
25356       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25357       # instead of lib<name>.a to let people know that these are not
25358       # typical AIX shared libraries.
25359       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25360     else
25361       # We preserve .a as extension for shared libraries through AIX4.2
25362       # and later when we are not doing run time linking.
25363       library_names_spec='${libname}${release}.a $libname.a'
25364       soname_spec='${libname}${release}${shared_ext}$major'
25365     fi
25366     shlibpath_var=LIBPATH
25367   fi
25368   ;;
25369
25370 amigaos*)
25371   library_names_spec='$libname.ixlibrary $libname.a'
25372   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25373   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'
25374   ;;
25375
25376 beos*)
25377   library_names_spec='${libname}${shared_ext}'
25378   dynamic_linker="$host_os ld.so"
25379   shlibpath_var=LIBRARY_PATH
25380   ;;
25381
25382 bsdi[45]*)
25383   version_type=linux
25384   need_version=no
25385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25386   soname_spec='${libname}${release}${shared_ext}$major'
25387   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25388   shlibpath_var=LD_LIBRARY_PATH
25389   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25390   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25391   # the default ld.so.conf also contains /usr/contrib/lib and
25392   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25393   # libtool to hard-code these into programs
25394   ;;
25395
25396 cygwin* | mingw* | pw32*)
25397   version_type=windows
25398   shrext_cmds=".dll"
25399   need_version=no
25400   need_lib_prefix=no
25401
25402   case $GCC,$host_os in
25403   yes,cygwin* | yes,mingw* | yes,pw32*)
25404     library_names_spec='$libname.dll.a'
25405     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25406     postinstall_cmds='base_file=`basename \${file}`~
25407       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25408       dldir=$destdir/`dirname \$dlpath`~
25409       test -d \$dldir || mkdir -p \$dldir~
25410       $install_prog $dir/$dlname \$dldir/$dlname~
25411       chmod a+x \$dldir/$dlname'
25412     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25413       dlpath=$dir/\$dldll~
25414        $rm \$dlpath'
25415     shlibpath_overrides_runpath=yes
25416
25417     case $host_os in
25418     cygwin*)
25419       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25420       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25421       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25422       ;;
25423     mingw*)
25424       # MinGW DLLs use traditional 'lib' prefix
25425       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25426       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25427       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25428         # It is most probably a Windows format PATH printed by
25429         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25430         # path with ; separators, and with drive letters. We can handle the
25431         # drive letters (cygwin fileutils understands them), so leave them,
25432         # especially as we might pass files found there to a mingw objdump,
25433         # which wouldn't understand a cygwinified path. Ahh.
25434         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25435       else
25436         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25437       fi
25438       ;;
25439     pw32*)
25440       # pw32 DLLs use 'pw' prefix rather than 'lib'
25441       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25442       ;;
25443     esac
25444     ;;
25445
25446   *)
25447     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25448     ;;
25449   esac
25450   dynamic_linker='Win32 ld.exe'
25451   # FIXME: first we should search . and the directory the executable is in
25452   shlibpath_var=PATH
25453   ;;
25454
25455 darwin* | rhapsody*)
25456   dynamic_linker="$host_os dyld"
25457   version_type=darwin
25458   need_lib_prefix=no
25459   need_version=no
25460   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25461   soname_spec='${libname}${release}${major}$shared_ext'
25462   shlibpath_overrides_runpath=yes
25463   shlibpath_var=DYLD_LIBRARY_PATH
25464   shrext_cmds='.dylib'
25465   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25466   if test "$GCC" = yes; then
25467     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"`
25468   else
25469     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25470   fi
25471   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25472   ;;
25473
25474 dgux*)
25475   version_type=linux
25476   need_lib_prefix=no
25477   need_version=no
25478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25479   soname_spec='${libname}${release}${shared_ext}$major'
25480   shlibpath_var=LD_LIBRARY_PATH
25481   ;;
25482
25483 freebsd1*)
25484   dynamic_linker=no
25485   ;;
25486
25487 kfreebsd*-gnu)
25488   version_type=linux
25489   need_lib_prefix=no
25490   need_version=no
25491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25492   soname_spec='${libname}${release}${shared_ext}$major'
25493   shlibpath_var=LD_LIBRARY_PATH
25494   shlibpath_overrides_runpath=no
25495   hardcode_into_libs=yes
25496   dynamic_linker='GNU ld.so'
25497   ;;
25498
25499 freebsd* | dragonfly*)
25500   # DragonFly does not have aout.  When/if they implement a new
25501   # versioning mechanism, adjust this.
25502   if test -x /usr/bin/objformat; then
25503     objformat=`/usr/bin/objformat`
25504   else
25505     case $host_os in
25506     freebsd[123]*) objformat=aout ;;
25507     *) objformat=elf ;;
25508     esac
25509   fi
25510   version_type=freebsd-$objformat
25511   case $version_type in
25512     freebsd-elf*)
25513       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25514       need_version=no
25515       need_lib_prefix=no
25516       ;;
25517     freebsd-*)
25518       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25519       need_version=yes
25520       ;;
25521   esac
25522   shlibpath_var=LD_LIBRARY_PATH
25523   case $host_os in
25524   freebsd2*)
25525     shlibpath_overrides_runpath=yes
25526     ;;
25527   freebsd3.[01]* | freebsdelf3.[01]*)
25528     shlibpath_overrides_runpath=yes
25529     hardcode_into_libs=yes
25530     ;;
25531   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25532   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25533     shlibpath_overrides_runpath=no
25534     hardcode_into_libs=yes
25535     ;;
25536   freebsd*) # from 4.6 on
25537     shlibpath_overrides_runpath=yes
25538     hardcode_into_libs=yes
25539     ;;
25540   esac
25541   ;;
25542
25543 gnu*)
25544   version_type=linux
25545   need_lib_prefix=no
25546   need_version=no
25547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25548   soname_spec='${libname}${release}${shared_ext}$major'
25549   shlibpath_var=LD_LIBRARY_PATH
25550   hardcode_into_libs=yes
25551   ;;
25552
25553 hpux9* | hpux10* | hpux11*)
25554   # Give a soname corresponding to the major version so that dld.sl refuses to
25555   # link against other versions.
25556   version_type=sunos
25557   need_lib_prefix=no
25558   need_version=no
25559   case $host_cpu in
25560   ia64*)
25561     shrext_cmds='.so'
25562     hardcode_into_libs=yes
25563     dynamic_linker="$host_os dld.so"
25564     shlibpath_var=LD_LIBRARY_PATH
25565     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25566     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25567     soname_spec='${libname}${release}${shared_ext}$major'
25568     if test "X$HPUX_IA64_MODE" = X32; then
25569       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25570     else
25571       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25572     fi
25573     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25574     ;;
25575    hppa*64*)
25576      shrext_cmds='.sl'
25577      hardcode_into_libs=yes
25578      dynamic_linker="$host_os dld.sl"
25579      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25580      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25581      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25582      soname_spec='${libname}${release}${shared_ext}$major'
25583      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25584      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25585      ;;
25586    *)
25587     shrext_cmds='.sl'
25588     dynamic_linker="$host_os dld.sl"
25589     shlibpath_var=SHLIB_PATH
25590     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25591     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25592     soname_spec='${libname}${release}${shared_ext}$major'
25593     ;;
25594   esac
25595   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25596   postinstall_cmds='chmod 555 $lib'
25597   ;;
25598
25599 interix3*)
25600   version_type=linux
25601   need_lib_prefix=no
25602   need_version=no
25603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25604   soname_spec='${libname}${release}${shared_ext}$major'
25605   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25606   shlibpath_var=LD_LIBRARY_PATH
25607   shlibpath_overrides_runpath=no
25608   hardcode_into_libs=yes
25609   ;;
25610
25611 irix5* | irix6* | nonstopux*)
25612   case $host_os in
25613     nonstopux*) version_type=nonstopux ;;
25614     *)
25615         if test "$lt_cv_prog_gnu_ld" = yes; then
25616                 version_type=linux
25617         else
25618                 version_type=irix
25619         fi ;;
25620   esac
25621   need_lib_prefix=no
25622   need_version=no
25623   soname_spec='${libname}${release}${shared_ext}$major'
25624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25625   case $host_os in
25626   irix5* | nonstopux*)
25627     libsuff= shlibsuff=
25628     ;;
25629   *)
25630     case $LD in # libtool.m4 will add one of these switches to LD
25631     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25632       libsuff= shlibsuff= libmagic=32-bit;;
25633     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25634       libsuff=32 shlibsuff=N32 libmagic=N32;;
25635     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25636       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25637     *) libsuff= shlibsuff= libmagic=never-match;;
25638     esac
25639     ;;
25640   esac
25641   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25642   shlibpath_overrides_runpath=no
25643   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25644   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25645   hardcode_into_libs=yes
25646   ;;
25647
25648 # No shared lib support for Linux oldld, aout, or coff.
25649 linux*oldld* | linux*aout* | linux*coff*)
25650   dynamic_linker=no
25651   ;;
25652
25653 # This must be Linux ELF.
25654 linux*)
25655   version_type=linux
25656   need_lib_prefix=no
25657   need_version=no
25658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25659   soname_spec='${libname}${release}${shared_ext}$major'
25660   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25661   shlibpath_var=LD_LIBRARY_PATH
25662   shlibpath_overrides_runpath=no
25663   # This implies no fast_install, which is unacceptable.
25664   # Some rework will be needed to allow for fast_install
25665   # before this can be enabled.
25666   hardcode_into_libs=yes
25667
25668   # Append ld.so.conf contents to the search path
25669   if test -f /etc/ld.so.conf; then
25670     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' ' '`
25671     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25672   fi
25673
25674   # We used to test for /lib/ld.so.1 and disable shared libraries on
25675   # powerpc, because MkLinux only supported shared libraries with the
25676   # GNU dynamic linker.  Since this was broken with cross compilers,
25677   # most powerpc-linux boxes support dynamic linking these days and
25678   # people can always --disable-shared, the test was removed, and we
25679   # assume the GNU/Linux dynamic linker is in use.
25680   dynamic_linker='GNU/Linux ld.so'
25681   ;;
25682
25683 knetbsd*-gnu)
25684   version_type=linux
25685   need_lib_prefix=no
25686   need_version=no
25687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25688   soname_spec='${libname}${release}${shared_ext}$major'
25689   shlibpath_var=LD_LIBRARY_PATH
25690   shlibpath_overrides_runpath=no
25691   hardcode_into_libs=yes
25692   dynamic_linker='GNU ld.so'
25693   ;;
25694
25695 netbsd*)
25696   version_type=sunos
25697   need_lib_prefix=no
25698   need_version=no
25699   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25700     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25701     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25702     dynamic_linker='NetBSD (a.out) ld.so'
25703   else
25704     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25705     soname_spec='${libname}${release}${shared_ext}$major'
25706     dynamic_linker='NetBSD ld.elf_so'
25707   fi
25708   shlibpath_var=LD_LIBRARY_PATH
25709   shlibpath_overrides_runpath=yes
25710   hardcode_into_libs=yes
25711   ;;
25712
25713 newsos6)
25714   version_type=linux
25715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25716   shlibpath_var=LD_LIBRARY_PATH
25717   shlibpath_overrides_runpath=yes
25718   ;;
25719
25720 nto-qnx*)
25721   version_type=linux
25722   need_lib_prefix=no
25723   need_version=no
25724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25725   soname_spec='${libname}${release}${shared_ext}$major'
25726   shlibpath_var=LD_LIBRARY_PATH
25727   shlibpath_overrides_runpath=yes
25728   ;;
25729
25730 openbsd*)
25731   version_type=sunos
25732   sys_lib_dlsearch_path_spec="/usr/lib"
25733   need_lib_prefix=no
25734   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25735   case $host_os in
25736     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25737     *)                         need_version=no  ;;
25738   esac
25739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25740   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25741   shlibpath_var=LD_LIBRARY_PATH
25742   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25743     case $host_os in
25744       openbsd2.[89] | openbsd2.[89].*)
25745         shlibpath_overrides_runpath=no
25746         ;;
25747       *)
25748         shlibpath_overrides_runpath=yes
25749         ;;
25750       esac
25751   else
25752     shlibpath_overrides_runpath=yes
25753   fi
25754   ;;
25755
25756 os2*)
25757   libname_spec='$name'
25758   shrext_cmds=".dll"
25759   need_lib_prefix=no
25760   library_names_spec='$libname${shared_ext} $libname.a'
25761   dynamic_linker='OS/2 ld.exe'
25762   shlibpath_var=LIBPATH
25763   ;;
25764
25765 osf3* | osf4* | osf5*)
25766   version_type=osf
25767   need_lib_prefix=no
25768   need_version=no
25769   soname_spec='${libname}${release}${shared_ext}$major'
25770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25771   shlibpath_var=LD_LIBRARY_PATH
25772   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25773   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25774   ;;
25775
25776 solaris*)
25777   version_type=linux
25778   need_lib_prefix=no
25779   need_version=no
25780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25781   soname_spec='${libname}${release}${shared_ext}$major'
25782   shlibpath_var=LD_LIBRARY_PATH
25783   shlibpath_overrides_runpath=yes
25784   hardcode_into_libs=yes
25785   # ldd complains unless libraries are executable
25786   postinstall_cmds='chmod +x $lib'
25787   ;;
25788
25789 sunos4*)
25790   version_type=sunos
25791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25792   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25793   shlibpath_var=LD_LIBRARY_PATH
25794   shlibpath_overrides_runpath=yes
25795   if test "$with_gnu_ld" = yes; then
25796     need_lib_prefix=no
25797   fi
25798   need_version=yes
25799   ;;
25800
25801 sysv4 | sysv4.3*)
25802   version_type=linux
25803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25804   soname_spec='${libname}${release}${shared_ext}$major'
25805   shlibpath_var=LD_LIBRARY_PATH
25806   case $host_vendor in
25807     sni)
25808       shlibpath_overrides_runpath=no
25809       need_lib_prefix=no
25810       export_dynamic_flag_spec='${wl}-Blargedynsym'
25811       runpath_var=LD_RUN_PATH
25812       ;;
25813     siemens)
25814       need_lib_prefix=no
25815       ;;
25816     motorola)
25817       need_lib_prefix=no
25818       need_version=no
25819       shlibpath_overrides_runpath=no
25820       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25821       ;;
25822   esac
25823   ;;
25824
25825 sysv4*MP*)
25826   if test -d /usr/nec ;then
25827     version_type=linux
25828     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25829     soname_spec='$libname${shared_ext}.$major'
25830     shlibpath_var=LD_LIBRARY_PATH
25831   fi
25832   ;;
25833
25834 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25835   version_type=freebsd-elf
25836   need_lib_prefix=no
25837   need_version=no
25838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25839   soname_spec='${libname}${release}${shared_ext}$major'
25840   shlibpath_var=LD_LIBRARY_PATH
25841   hardcode_into_libs=yes
25842   if test "$with_gnu_ld" = yes; then
25843     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25844     shlibpath_overrides_runpath=no
25845   else
25846     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25847     shlibpath_overrides_runpath=yes
25848     case $host_os in
25849       sco3.2v5*)
25850         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25851         ;;
25852     esac
25853   fi
25854   sys_lib_dlsearch_path_spec='/usr/lib'
25855   ;;
25856
25857 uts4*)
25858   version_type=linux
25859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25860   soname_spec='${libname}${release}${shared_ext}$major'
25861   shlibpath_var=LD_LIBRARY_PATH
25862   ;;
25863
25864 *)
25865   dynamic_linker=no
25866   ;;
25867 esac
25868 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25869 echo "${ECHO_T}$dynamic_linker" >&6; }
25870 test "$dynamic_linker" = no && can_build_shared=no
25871
25872 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25873 if test "$GCC" = yes; then
25874   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25875 fi
25876
25877 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25878 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25879 hardcode_action_GCJ=
25880 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25881    test -n "$runpath_var_GCJ" || \
25882    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25883
25884   # We can hardcode non-existant directories.
25885   if test "$hardcode_direct_GCJ" != no &&
25886      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25887      # have to relink, otherwise we might link with an installed library
25888      # when we should be linking with a yet-to-be-installed one
25889      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25890      test "$hardcode_minus_L_GCJ" != no; then
25891     # Linking always hardcodes the temporary library directory.
25892     hardcode_action_GCJ=relink
25893   else
25894     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25895     hardcode_action_GCJ=immediate
25896   fi
25897 else
25898   # We cannot hardcode anything, or else we can only hardcode existing
25899   # directories.
25900   hardcode_action_GCJ=unsupported
25901 fi
25902 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25903 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25904
25905 if test "$hardcode_action_GCJ" = relink; then
25906   # Fast installation is not supported
25907   enable_fast_install=no
25908 elif test "$shlibpath_overrides_runpath" = yes ||
25909      test "$enable_shared" = no; then
25910   # Fast installation is not necessary
25911   enable_fast_install=needless
25912 fi
25913
25914
25915 # The else clause should only fire when bootstrapping the
25916 # libtool distribution, otherwise you forgot to ship ltmain.sh
25917 # with your package, and you will get complaints that there are
25918 # no rules to generate ltmain.sh.
25919 if test -f "$ltmain"; then
25920   # See if we are running on zsh, and set the options which allow our commands through
25921   # without removal of \ escapes.
25922   if test -n "${ZSH_VERSION+set}" ; then
25923     setopt NO_GLOB_SUBST
25924   fi
25925   # Now quote all the things that may contain metacharacters while being
25926   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25927   # variables and quote the copies for generation of the libtool script.
25928   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25929     SED SHELL STRIP \
25930     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25931     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25932     deplibs_check_method reload_flag reload_cmds need_locks \
25933     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25934     lt_cv_sys_global_symbol_to_c_name_address \
25935     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25936     old_postinstall_cmds old_postuninstall_cmds \
25937     compiler_GCJ \
25938     CC_GCJ \
25939     LD_GCJ \
25940     lt_prog_compiler_wl_GCJ \
25941     lt_prog_compiler_pic_GCJ \
25942     lt_prog_compiler_static_GCJ \
25943     lt_prog_compiler_no_builtin_flag_GCJ \
25944     export_dynamic_flag_spec_GCJ \
25945     thread_safe_flag_spec_GCJ \
25946     whole_archive_flag_spec_GCJ \
25947     enable_shared_with_static_runtimes_GCJ \
25948     old_archive_cmds_GCJ \
25949     old_archive_from_new_cmds_GCJ \
25950     predep_objects_GCJ \
25951     postdep_objects_GCJ \
25952     predeps_GCJ \
25953     postdeps_GCJ \
25954     compiler_lib_search_path_GCJ \
25955     archive_cmds_GCJ \
25956     archive_expsym_cmds_GCJ \
25957     postinstall_cmds_GCJ \
25958     postuninstall_cmds_GCJ \
25959     old_archive_from_expsyms_cmds_GCJ \
25960     allow_undefined_flag_GCJ \
25961     no_undefined_flag_GCJ \
25962     export_symbols_cmds_GCJ \
25963     hardcode_libdir_flag_spec_GCJ \
25964     hardcode_libdir_flag_spec_ld_GCJ \
25965     hardcode_libdir_separator_GCJ \
25966     hardcode_automatic_GCJ \
25967     module_cmds_GCJ \
25968     module_expsym_cmds_GCJ \
25969     lt_cv_prog_compiler_c_o_GCJ \
25970     exclude_expsyms_GCJ \
25971     include_expsyms_GCJ; do
25972
25973     case $var in
25974     old_archive_cmds_GCJ | \
25975     old_archive_from_new_cmds_GCJ | \
25976     archive_cmds_GCJ | \
25977     archive_expsym_cmds_GCJ | \
25978     module_cmds_GCJ | \
25979     module_expsym_cmds_GCJ | \
25980     old_archive_from_expsyms_cmds_GCJ | \
25981     export_symbols_cmds_GCJ | \
25982     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25983     postinstall_cmds | postuninstall_cmds | \
25984     old_postinstall_cmds | old_postuninstall_cmds | \
25985     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25986       # Double-quote double-evaled strings.
25987       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25988       ;;
25989     *)
25990       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25991       ;;
25992     esac
25993   done
25994
25995   case $lt_echo in
25996   *'\$0 --fallback-echo"')
25997     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25998     ;;
25999   esac
26000
26001 cfgfile="$ofile"
26002
26003   cat <<__EOF__ >> "$cfgfile"
26004 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26005
26006 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26007
26008 # Shell to use when invoking shell scripts.
26009 SHELL=$lt_SHELL
26010
26011 # Whether or not to build shared libraries.
26012 build_libtool_libs=$enable_shared
26013
26014 # Whether or not to build static libraries.
26015 build_old_libs=$enable_static
26016
26017 # Whether or not to add -lc for building shared libraries.
26018 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26019
26020 # Whether or not to disallow shared libs when runtime libs are static
26021 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26022
26023 # Whether or not to optimize for fast installation.
26024 fast_install=$enable_fast_install
26025
26026 # The host system.
26027 host_alias=$host_alias
26028 host=$host
26029 host_os=$host_os
26030
26031 # The build system.
26032 build_alias=$build_alias
26033 build=$build
26034 build_os=$build_os
26035
26036 # An echo program that does not interpret backslashes.
26037 echo=$lt_echo
26038
26039 # The archiver.
26040 AR=$lt_AR
26041 AR_FLAGS=$lt_AR_FLAGS
26042
26043 # A C compiler.
26044 LTCC=$lt_LTCC
26045
26046 # LTCC compiler flags.
26047 LTCFLAGS=$lt_LTCFLAGS
26048
26049 # A language-specific compiler.
26050 CC=$lt_compiler_GCJ
26051
26052 # Is the compiler the GNU C compiler?
26053 with_gcc=$GCC_GCJ
26054
26055 # An ERE matcher.
26056 EGREP=$lt_EGREP
26057
26058 # The linker used to build libraries.
26059 LD=$lt_LD_GCJ
26060
26061 # Whether we need hard or soft links.
26062 LN_S=$lt_LN_S
26063
26064 # A BSD-compatible nm program.
26065 NM=$lt_NM
26066
26067 # A symbol stripping program
26068 STRIP=$lt_STRIP
26069
26070 # Used to examine libraries when file_magic_cmd begins "file"
26071 MAGIC_CMD=$MAGIC_CMD
26072
26073 # Used on cygwin: DLL creation program.
26074 DLLTOOL="$DLLTOOL"
26075
26076 # Used on cygwin: object dumper.
26077 OBJDUMP="$OBJDUMP"
26078
26079 # Used on cygwin: assembler.
26080 AS="$AS"
26081
26082 # The name of the directory that contains temporary libtool files.
26083 objdir=$objdir
26084
26085 # How to create reloadable object files.
26086 reload_flag=$lt_reload_flag
26087 reload_cmds=$lt_reload_cmds
26088
26089 # How to pass a linker flag through the compiler.
26090 wl=$lt_lt_prog_compiler_wl_GCJ
26091
26092 # Object file suffix (normally "o").
26093 objext="$ac_objext"
26094
26095 # Old archive suffix (normally "a").
26096 libext="$libext"
26097
26098 # Shared library suffix (normally ".so").
26099 shrext_cmds='$shrext_cmds'
26100
26101 # Executable file suffix (normally "").
26102 exeext="$exeext"
26103
26104 # Additional compiler flags for building library objects.
26105 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26106 pic_mode=$pic_mode
26107
26108 # What is the maximum length of a command?
26109 max_cmd_len=$lt_cv_sys_max_cmd_len
26110
26111 # Does compiler simultaneously support -c and -o options?
26112 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26113
26114 # Must we lock files when doing compilation?
26115 need_locks=$lt_need_locks
26116
26117 # Do we need the lib prefix for modules?
26118 need_lib_prefix=$need_lib_prefix
26119
26120 # Do we need a version for libraries?
26121 need_version=$need_version
26122
26123 # Whether dlopen is supported.
26124 dlopen_support=$enable_dlopen
26125
26126 # Whether dlopen of programs is supported.
26127 dlopen_self=$enable_dlopen_self
26128
26129 # Whether dlopen of statically linked programs is supported.
26130 dlopen_self_static=$enable_dlopen_self_static
26131
26132 # Compiler flag to prevent dynamic linking.
26133 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26134
26135 # Compiler flag to turn off builtin functions.
26136 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26137
26138 # Compiler flag to allow reflexive dlopens.
26139 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26140
26141 # Compiler flag to generate shared objects directly from archives.
26142 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26143
26144 # Compiler flag to generate thread-safe objects.
26145 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26146
26147 # Library versioning type.
26148 version_type=$version_type
26149
26150 # Format of library name prefix.
26151 libname_spec=$lt_libname_spec
26152
26153 # List of archive names.  First name is the real one, the rest are links.
26154 # The last name is the one that the linker finds with -lNAME.
26155 library_names_spec=$lt_library_names_spec
26156
26157 # The coded name of the library, if different from the real name.
26158 soname_spec=$lt_soname_spec
26159
26160 # Commands used to build and install an old-style archive.
26161 RANLIB=$lt_RANLIB
26162 old_archive_cmds=$lt_old_archive_cmds_GCJ
26163 old_postinstall_cmds=$lt_old_postinstall_cmds
26164 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26165
26166 # Create an old-style archive from a shared archive.
26167 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26168
26169 # Create a temporary old-style archive to link instead of a shared archive.
26170 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26171
26172 # Commands used to build and install a shared archive.
26173 archive_cmds=$lt_archive_cmds_GCJ
26174 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26175 postinstall_cmds=$lt_postinstall_cmds
26176 postuninstall_cmds=$lt_postuninstall_cmds
26177
26178 # Commands used to build a loadable module (assumed same as above if empty)
26179 module_cmds=$lt_module_cmds_GCJ
26180 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26181
26182 # Commands to strip libraries.
26183 old_striplib=$lt_old_striplib
26184 striplib=$lt_striplib
26185
26186 # Dependencies to place before the objects being linked to create a
26187 # shared library.
26188 predep_objects=$lt_predep_objects_GCJ
26189
26190 # Dependencies to place after the objects being linked to create a
26191 # shared library.
26192 postdep_objects=$lt_postdep_objects_GCJ
26193
26194 # Dependencies to place before the objects being linked to create a
26195 # shared library.
26196 predeps=$lt_predeps_GCJ
26197
26198 # Dependencies to place after the objects being linked to create a
26199 # shared library.
26200 postdeps=$lt_postdeps_GCJ
26201
26202 # The library search path used internally by the compiler when linking
26203 # a shared library.
26204 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26205
26206 # Method to check whether dependent libraries are shared objects.
26207 deplibs_check_method=$lt_deplibs_check_method
26208
26209 # Command to use when deplibs_check_method == file_magic.
26210 file_magic_cmd=$lt_file_magic_cmd
26211
26212 # Flag that allows shared libraries with undefined symbols to be built.
26213 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26214
26215 # Flag that forces no undefined symbols.
26216 no_undefined_flag=$lt_no_undefined_flag_GCJ
26217
26218 # Commands used to finish a libtool library installation in a directory.
26219 finish_cmds=$lt_finish_cmds
26220
26221 # Same as above, but a single script fragment to be evaled but not shown.
26222 finish_eval=$lt_finish_eval
26223
26224 # Take the output of nm and produce a listing of raw symbols and C names.
26225 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26226
26227 # Transform the output of nm in a proper C declaration
26228 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26229
26230 # Transform the output of nm in a C name address pair
26231 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26232
26233 # This is the shared library runtime path variable.
26234 runpath_var=$runpath_var
26235
26236 # This is the shared library path variable.
26237 shlibpath_var=$shlibpath_var
26238
26239 # Is shlibpath searched before the hard-coded library search path?
26240 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26241
26242 # How to hardcode a shared library path into an executable.
26243 hardcode_action=$hardcode_action_GCJ
26244
26245 # Whether we should hardcode library paths into libraries.
26246 hardcode_into_libs=$hardcode_into_libs
26247
26248 # Flag to hardcode \$libdir into a binary during linking.
26249 # This must work even if \$libdir does not exist.
26250 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26251
26252 # If ld is used when linking, flag to hardcode \$libdir into
26253 # a binary during linking. This must work even if \$libdir does
26254 # not exist.
26255 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26256
26257 # Whether we need a single -rpath flag with a separated argument.
26258 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26259
26260 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26261 # resulting binary.
26262 hardcode_direct=$hardcode_direct_GCJ
26263
26264 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26265 # resulting binary.
26266 hardcode_minus_L=$hardcode_minus_L_GCJ
26267
26268 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26269 # the resulting binary.
26270 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26271
26272 # Set to yes if building a shared library automatically hardcodes DIR into the library
26273 # and all subsequent libraries and executables linked against it.
26274 hardcode_automatic=$hardcode_automatic_GCJ
26275
26276 # Variables whose values should be saved in libtool wrapper scripts and
26277 # restored at relink time.
26278 variables_saved_for_relink="$variables_saved_for_relink"
26279
26280 # Whether libtool must link a program against all its dependency libraries.
26281 link_all_deplibs=$link_all_deplibs_GCJ
26282
26283 # Compile-time system search path for libraries
26284 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26285
26286 # Run-time system search path for libraries
26287 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26288
26289 # Fix the shell variable \$srcfile for the compiler.
26290 fix_srcfile_path="$fix_srcfile_path_GCJ"
26291
26292 # Set to yes if exported symbols are required.
26293 always_export_symbols=$always_export_symbols_GCJ
26294
26295 # The commands to list exported symbols.
26296 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26297
26298 # The commands to extract the exported symbol list from a shared archive.
26299 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26300
26301 # Symbols that should not be listed in the preloaded symbols.
26302 exclude_expsyms=$lt_exclude_expsyms_GCJ
26303
26304 # Symbols that must always be exported.
26305 include_expsyms=$lt_include_expsyms_GCJ
26306
26307 # ### END LIBTOOL TAG CONFIG: $tagname
26308
26309 __EOF__
26310
26311
26312 else
26313   # If there is no Makefile yet, we rely on a make rule to execute
26314   # `config.status --recheck' to rerun these tests and create the
26315   # libtool script then.
26316   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26317   if test -f "$ltmain_in"; then
26318     test -f Makefile && make "$ltmain"
26319   fi
26320 fi
26321
26322
26323 ac_ext=c
26324 ac_cpp='$CPP $CPPFLAGS'
26325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26328
26329 CC="$lt_save_CC"
26330
26331         else
26332           tagname=""
26333         fi
26334         ;;
26335
26336       RC)
26337         ac_ext=c
26338 ac_cpp='$CPP $CPPFLAGS'
26339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26342
26343
26344 # Source file extension for RC test sources.
26345 ac_ext=rc
26346
26347 # Object file extension for compiled RC test sources.
26348 objext=o
26349 objext_RC=$objext
26350
26351 # Code to be used in simple compile tests
26352 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26353
26354 # Code to be used in simple link tests
26355 lt_simple_link_test_code="$lt_simple_compile_test_code"
26356
26357 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26358
26359 # If no C compiler was specified, use CC.
26360 LTCC=${LTCC-"$CC"}
26361
26362 # If no C compiler flags were specified, use CFLAGS.
26363 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26364
26365 # Allow CC to be a program name with arguments.
26366 compiler=$CC
26367
26368
26369 # save warnings/boilerplate of simple test code
26370 ac_outfile=conftest.$ac_objext
26371 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26372 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26373 _lt_compiler_boilerplate=`cat conftest.err`
26374 $rm conftest*
26375
26376 ac_outfile=conftest.$ac_objext
26377 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26378 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26379 _lt_linker_boilerplate=`cat conftest.err`
26380 $rm conftest*
26381
26382
26383 # Allow CC to be a program name with arguments.
26384 lt_save_CC="$CC"
26385 CC=${RC-"windres"}
26386 compiler=$CC
26387 compiler_RC=$CC
26388 for cc_temp in $compiler""; do
26389   case $cc_temp in
26390     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26391     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26392     \-*) ;;
26393     *) break;;
26394   esac
26395 done
26396 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26397
26398 lt_cv_prog_compiler_c_o_RC=yes
26399
26400 # The else clause should only fire when bootstrapping the
26401 # libtool distribution, otherwise you forgot to ship ltmain.sh
26402 # with your package, and you will get complaints that there are
26403 # no rules to generate ltmain.sh.
26404 if test -f "$ltmain"; then
26405   # See if we are running on zsh, and set the options which allow our commands through
26406   # without removal of \ escapes.
26407   if test -n "${ZSH_VERSION+set}" ; then
26408     setopt NO_GLOB_SUBST
26409   fi
26410   # Now quote all the things that may contain metacharacters while being
26411   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26412   # variables and quote the copies for generation of the libtool script.
26413   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26414     SED SHELL STRIP \
26415     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26416     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26417     deplibs_check_method reload_flag reload_cmds need_locks \
26418     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26419     lt_cv_sys_global_symbol_to_c_name_address \
26420     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26421     old_postinstall_cmds old_postuninstall_cmds \
26422     compiler_RC \
26423     CC_RC \
26424     LD_RC \
26425     lt_prog_compiler_wl_RC \
26426     lt_prog_compiler_pic_RC \
26427     lt_prog_compiler_static_RC \
26428     lt_prog_compiler_no_builtin_flag_RC \
26429     export_dynamic_flag_spec_RC \
26430     thread_safe_flag_spec_RC \
26431     whole_archive_flag_spec_RC \
26432     enable_shared_with_static_runtimes_RC \
26433     old_archive_cmds_RC \
26434     old_archive_from_new_cmds_RC \
26435     predep_objects_RC \
26436     postdep_objects_RC \
26437     predeps_RC \
26438     postdeps_RC \
26439     compiler_lib_search_path_RC \
26440     archive_cmds_RC \
26441     archive_expsym_cmds_RC \
26442     postinstall_cmds_RC \
26443     postuninstall_cmds_RC \
26444     old_archive_from_expsyms_cmds_RC \
26445     allow_undefined_flag_RC \
26446     no_undefined_flag_RC \
26447     export_symbols_cmds_RC \
26448     hardcode_libdir_flag_spec_RC \
26449     hardcode_libdir_flag_spec_ld_RC \
26450     hardcode_libdir_separator_RC \
26451     hardcode_automatic_RC \
26452     module_cmds_RC \
26453     module_expsym_cmds_RC \
26454     lt_cv_prog_compiler_c_o_RC \
26455     exclude_expsyms_RC \
26456     include_expsyms_RC; do
26457
26458     case $var in
26459     old_archive_cmds_RC | \
26460     old_archive_from_new_cmds_RC | \
26461     archive_cmds_RC | \
26462     archive_expsym_cmds_RC | \
26463     module_cmds_RC | \
26464     module_expsym_cmds_RC | \
26465     old_archive_from_expsyms_cmds_RC | \
26466     export_symbols_cmds_RC | \
26467     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26468     postinstall_cmds | postuninstall_cmds | \
26469     old_postinstall_cmds | old_postuninstall_cmds | \
26470     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26471       # Double-quote double-evaled strings.
26472       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26473       ;;
26474     *)
26475       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26476       ;;
26477     esac
26478   done
26479
26480   case $lt_echo in
26481   *'\$0 --fallback-echo"')
26482     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26483     ;;
26484   esac
26485
26486 cfgfile="$ofile"
26487
26488   cat <<__EOF__ >> "$cfgfile"
26489 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26490
26491 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26492
26493 # Shell to use when invoking shell scripts.
26494 SHELL=$lt_SHELL
26495
26496 # Whether or not to build shared libraries.
26497 build_libtool_libs=$enable_shared
26498
26499 # Whether or not to build static libraries.
26500 build_old_libs=$enable_static
26501
26502 # Whether or not to add -lc for building shared libraries.
26503 build_libtool_need_lc=$archive_cmds_need_lc_RC
26504
26505 # Whether or not to disallow shared libs when runtime libs are static
26506 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26507
26508 # Whether or not to optimize for fast installation.
26509 fast_install=$enable_fast_install
26510
26511 # The host system.
26512 host_alias=$host_alias
26513 host=$host
26514 host_os=$host_os
26515
26516 # The build system.
26517 build_alias=$build_alias
26518 build=$build
26519 build_os=$build_os
26520
26521 # An echo program that does not interpret backslashes.
26522 echo=$lt_echo
26523
26524 # The archiver.
26525 AR=$lt_AR
26526 AR_FLAGS=$lt_AR_FLAGS
26527
26528 # A C compiler.
26529 LTCC=$lt_LTCC
26530
26531 # LTCC compiler flags.
26532 LTCFLAGS=$lt_LTCFLAGS
26533
26534 # A language-specific compiler.
26535 CC=$lt_compiler_RC
26536
26537 # Is the compiler the GNU C compiler?
26538 with_gcc=$GCC_RC
26539
26540 # An ERE matcher.
26541 EGREP=$lt_EGREP
26542
26543 # The linker used to build libraries.
26544 LD=$lt_LD_RC
26545
26546 # Whether we need hard or soft links.
26547 LN_S=$lt_LN_S
26548
26549 # A BSD-compatible nm program.
26550 NM=$lt_NM
26551
26552 # A symbol stripping program
26553 STRIP=$lt_STRIP
26554
26555 # Used to examine libraries when file_magic_cmd begins "file"
26556 MAGIC_CMD=$MAGIC_CMD
26557
26558 # Used on cygwin: DLL creation program.
26559 DLLTOOL="$DLLTOOL"
26560
26561 # Used on cygwin: object dumper.
26562 OBJDUMP="$OBJDUMP"
26563
26564 # Used on cygwin: assembler.
26565 AS="$AS"
26566
26567 # The name of the directory that contains temporary libtool files.
26568 objdir=$objdir
26569
26570 # How to create reloadable object files.
26571 reload_flag=$lt_reload_flag
26572 reload_cmds=$lt_reload_cmds
26573
26574 # How to pass a linker flag through the compiler.
26575 wl=$lt_lt_prog_compiler_wl_RC
26576
26577 # Object file suffix (normally "o").
26578 objext="$ac_objext"
26579
26580 # Old archive suffix (normally "a").
26581 libext="$libext"
26582
26583 # Shared library suffix (normally ".so").
26584 shrext_cmds='$shrext_cmds'
26585
26586 # Executable file suffix (normally "").
26587 exeext="$exeext"
26588
26589 # Additional compiler flags for building library objects.
26590 pic_flag=$lt_lt_prog_compiler_pic_RC
26591 pic_mode=$pic_mode
26592
26593 # What is the maximum length of a command?
26594 max_cmd_len=$lt_cv_sys_max_cmd_len
26595
26596 # Does compiler simultaneously support -c and -o options?
26597 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26598
26599 # Must we lock files when doing compilation?
26600 need_locks=$lt_need_locks
26601
26602 # Do we need the lib prefix for modules?
26603 need_lib_prefix=$need_lib_prefix
26604
26605 # Do we need a version for libraries?
26606 need_version=$need_version
26607
26608 # Whether dlopen is supported.
26609 dlopen_support=$enable_dlopen
26610
26611 # Whether dlopen of programs is supported.
26612 dlopen_self=$enable_dlopen_self
26613
26614 # Whether dlopen of statically linked programs is supported.
26615 dlopen_self_static=$enable_dlopen_self_static
26616
26617 # Compiler flag to prevent dynamic linking.
26618 link_static_flag=$lt_lt_prog_compiler_static_RC
26619
26620 # Compiler flag to turn off builtin functions.
26621 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26622
26623 # Compiler flag to allow reflexive dlopens.
26624 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26625
26626 # Compiler flag to generate shared objects directly from archives.
26627 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26628
26629 # Compiler flag to generate thread-safe objects.
26630 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26631
26632 # Library versioning type.
26633 version_type=$version_type
26634
26635 # Format of library name prefix.
26636 libname_spec=$lt_libname_spec
26637
26638 # List of archive names.  First name is the real one, the rest are links.
26639 # The last name is the one that the linker finds with -lNAME.
26640 library_names_spec=$lt_library_names_spec
26641
26642 # The coded name of the library, if different from the real name.
26643 soname_spec=$lt_soname_spec
26644
26645 # Commands used to build and install an old-style archive.
26646 RANLIB=$lt_RANLIB
26647 old_archive_cmds=$lt_old_archive_cmds_RC
26648 old_postinstall_cmds=$lt_old_postinstall_cmds
26649 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26650
26651 # Create an old-style archive from a shared archive.
26652 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26653
26654 # Create a temporary old-style archive to link instead of a shared archive.
26655 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26656
26657 # Commands used to build and install a shared archive.
26658 archive_cmds=$lt_archive_cmds_RC
26659 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26660 postinstall_cmds=$lt_postinstall_cmds
26661 postuninstall_cmds=$lt_postuninstall_cmds
26662
26663 # Commands used to build a loadable module (assumed same as above if empty)
26664 module_cmds=$lt_module_cmds_RC
26665 module_expsym_cmds=$lt_module_expsym_cmds_RC
26666
26667 # Commands to strip libraries.
26668 old_striplib=$lt_old_striplib
26669 striplib=$lt_striplib
26670
26671 # Dependencies to place before the objects being linked to create a
26672 # shared library.
26673 predep_objects=$lt_predep_objects_RC
26674
26675 # Dependencies to place after the objects being linked to create a
26676 # shared library.
26677 postdep_objects=$lt_postdep_objects_RC
26678
26679 # Dependencies to place before the objects being linked to create a
26680 # shared library.
26681 predeps=$lt_predeps_RC
26682
26683 # Dependencies to place after the objects being linked to create a
26684 # shared library.
26685 postdeps=$lt_postdeps_RC
26686
26687 # The library search path used internally by the compiler when linking
26688 # a shared library.
26689 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26690
26691 # Method to check whether dependent libraries are shared objects.
26692 deplibs_check_method=$lt_deplibs_check_method
26693
26694 # Command to use when deplibs_check_method == file_magic.
26695 file_magic_cmd=$lt_file_magic_cmd
26696
26697 # Flag that allows shared libraries with undefined symbols to be built.
26698 allow_undefined_flag=$lt_allow_undefined_flag_RC
26699
26700 # Flag that forces no undefined symbols.
26701 no_undefined_flag=$lt_no_undefined_flag_RC
26702
26703 # Commands used to finish a libtool library installation in a directory.
26704 finish_cmds=$lt_finish_cmds
26705
26706 # Same as above, but a single script fragment to be evaled but not shown.
26707 finish_eval=$lt_finish_eval
26708
26709 # Take the output of nm and produce a listing of raw symbols and C names.
26710 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26711
26712 # Transform the output of nm in a proper C declaration
26713 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26714
26715 # Transform the output of nm in a C name address pair
26716 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26717
26718 # This is the shared library runtime path variable.
26719 runpath_var=$runpath_var
26720
26721 # This is the shared library path variable.
26722 shlibpath_var=$shlibpath_var
26723
26724 # Is shlibpath searched before the hard-coded library search path?
26725 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26726
26727 # How to hardcode a shared library path into an executable.
26728 hardcode_action=$hardcode_action_RC
26729
26730 # Whether we should hardcode library paths into libraries.
26731 hardcode_into_libs=$hardcode_into_libs
26732
26733 # Flag to hardcode \$libdir into a binary during linking.
26734 # This must work even if \$libdir does not exist.
26735 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26736
26737 # If ld is used when linking, flag to hardcode \$libdir into
26738 # a binary during linking. This must work even if \$libdir does
26739 # not exist.
26740 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26741
26742 # Whether we need a single -rpath flag with a separated argument.
26743 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26744
26745 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26746 # resulting binary.
26747 hardcode_direct=$hardcode_direct_RC
26748
26749 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26750 # resulting binary.
26751 hardcode_minus_L=$hardcode_minus_L_RC
26752
26753 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26754 # the resulting binary.
26755 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26756
26757 # Set to yes if building a shared library automatically hardcodes DIR into the library
26758 # and all subsequent libraries and executables linked against it.
26759 hardcode_automatic=$hardcode_automatic_RC
26760
26761 # Variables whose values should be saved in libtool wrapper scripts and
26762 # restored at relink time.
26763 variables_saved_for_relink="$variables_saved_for_relink"
26764
26765 # Whether libtool must link a program against all its dependency libraries.
26766 link_all_deplibs=$link_all_deplibs_RC
26767
26768 # Compile-time system search path for libraries
26769 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26770
26771 # Run-time system search path for libraries
26772 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26773
26774 # Fix the shell variable \$srcfile for the compiler.
26775 fix_srcfile_path="$fix_srcfile_path_RC"
26776
26777 # Set to yes if exported symbols are required.
26778 always_export_symbols=$always_export_symbols_RC
26779
26780 # The commands to list exported symbols.
26781 export_symbols_cmds=$lt_export_symbols_cmds_RC
26782
26783 # The commands to extract the exported symbol list from a shared archive.
26784 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26785
26786 # Symbols that should not be listed in the preloaded symbols.
26787 exclude_expsyms=$lt_exclude_expsyms_RC
26788
26789 # Symbols that must always be exported.
26790 include_expsyms=$lt_include_expsyms_RC
26791
26792 # ### END LIBTOOL TAG CONFIG: $tagname
26793
26794 __EOF__
26795
26796
26797 else
26798   # If there is no Makefile yet, we rely on a make rule to execute
26799   # `config.status --recheck' to rerun these tests and create the
26800   # libtool script then.
26801   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26802   if test -f "$ltmain_in"; then
26803     test -f Makefile && make "$ltmain"
26804   fi
26805 fi
26806
26807
26808 ac_ext=c
26809 ac_cpp='$CPP $CPPFLAGS'
26810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26813
26814 CC="$lt_save_CC"
26815
26816         ;;
26817
26818       *)
26819         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26820 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26821    { (exit 1); exit 1; }; }
26822         ;;
26823       esac
26824
26825       # Append the new tag name to the list of available tags.
26826       if test -n "$tagname" ; then
26827       available_tags="$available_tags $tagname"
26828     fi
26829     fi
26830   done
26831   IFS="$lt_save_ifs"
26832
26833   # Now substitute the updated list of available tags.
26834   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26835     mv "${ofile}T" "$ofile"
26836     chmod +x "$ofile"
26837   else
26838     rm -f "${ofile}T"
26839     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26840 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26841    { (exit 1); exit 1; }; }
26842   fi
26843 fi
26844
26845
26846
26847 # This can be used to rebuild libtool when needed
26848 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26849
26850 # Always use our own libtool.
26851 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26852
26853 # Prevent multiple expansion
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875 if test "$lt_cv_dlopen_self" = "yes" ; then
26876
26877 cat >>confdefs.h <<\_ACEOF
26878 #define CAN_DLOPEN_SELF 1
26879 _ACEOF
26880
26881 fi
26882
26883 if test "$WITH_LLVMGCCDIR" = "default" ; then
26884   LLVMGCC="llvm-gcc${EXEEXT}"
26885   LLVMGXX="llvm-g++${EXEEXT}"
26886   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26887 set dummy $LLVMGCC; ac_word=$2
26888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26890 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26891   echo $ECHO_N "(cached) $ECHO_C" >&6
26892 else
26893   case $LLVMGCC in
26894   [\\/]* | ?:[\\/]*)
26895   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26896   ;;
26897   *)
26898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26899 for as_dir in $PATH
26900 do
26901   IFS=$as_save_IFS
26902   test -z "$as_dir" && as_dir=.
26903   for ac_exec_ext in '' $ac_executable_extensions; do
26904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26905     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26907     break 2
26908   fi
26909 done
26910 done
26911 IFS=$as_save_IFS
26912
26913   ;;
26914 esac
26915 fi
26916 LLVMGCC=$ac_cv_path_LLVMGCC
26917 if test -n "$LLVMGCC"; then
26918   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26919 echo "${ECHO_T}$LLVMGCC" >&6; }
26920 else
26921   { echo "$as_me:$LINENO: result: no" >&5
26922 echo "${ECHO_T}no" >&6; }
26923 fi
26924
26925
26926   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26927 set dummy $LLVMGXX; ac_word=$2
26928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26930 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26931   echo $ECHO_N "(cached) $ECHO_C" >&6
26932 else
26933   case $LLVMGXX in
26934   [\\/]* | ?:[\\/]*)
26935   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26936   ;;
26937   *)
26938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26939 for as_dir in $PATH
26940 do
26941   IFS=$as_save_IFS
26942   test -z "$as_dir" && as_dir=.
26943   for ac_exec_ext in '' $ac_executable_extensions; do
26944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26945     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26947     break 2
26948   fi
26949 done
26950 done
26951 IFS=$as_save_IFS
26952
26953   ;;
26954 esac
26955 fi
26956 LLVMGXX=$ac_cv_path_LLVMGXX
26957 if test -n "$LLVMGXX"; then
26958   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26959 echo "${ECHO_T}$LLVMGXX" >&6; }
26960 else
26961   { echo "$as_me:$LINENO: result: no" >&5
26962 echo "${ECHO_T}no" >&6; }
26963 fi
26964
26965
26966 else
26967   if test -z "$LLVMGCC"; then
26968     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26969   fi
26970   if test -z "$LLVMGXX"; then
26971     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26972   fi
26973   LLVMGCC=$LLVMGCC
26974
26975   LLVMGXX=$LLVMGXX
26976
26977 fi
26978
26979 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26980 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26981
26982 ICC=no
26983 IXX=no
26984 case $CC in
26985   icc*|icpc*)
26986     ICC=yes
26987     IXX=yes
26988     ;;
26989    *)
26990     ;;
26991 esac
26992
26993 if test "$GCC" != "yes" && test "$ICC" != "yes"
26994 then
26995   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26996 echo "$as_me: error: gcc|icc required but not found" >&2;}
26997    { (exit 1); exit 1; }; }
26998 fi
26999
27000 if test "$GXX" != "yes" && test "$IXX" != "yes"
27001 then
27002   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27003 echo "$as_me: error: g++|icc required but not found" >&2;}
27004    { (exit 1); exit 1; }; }
27005 fi
27006
27007 if test "$GCC" = "yes"
27008 then
27009   cat >conftest.$ac_ext <<_ACEOF
27010 #if !defined(__GNUC__) || __GNUC__ < 3
27011 #error Unsupported GCC version
27012 #endif
27013
27014 _ACEOF
27015 rm -f conftest.$ac_objext
27016 if { (ac_try="$ac_compile"
27017 case "(($ac_try" in
27018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27019   *) ac_try_echo=$ac_try;;
27020 esac
27021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27022   (eval "$ac_compile") 2>conftest.er1
27023   ac_status=$?
27024   grep -v '^ *+' conftest.er1 >conftest.err
27025   rm -f conftest.er1
27026   cat conftest.err >&5
27027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028   (exit $ac_status); } &&
27029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27030   { (case "(($ac_try" in
27031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27032   *) ac_try_echo=$ac_try;;
27033 esac
27034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27035   (eval "$ac_try") 2>&5
27036   ac_status=$?
27037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038   (exit $ac_status); }; } &&
27039          { ac_try='test -s conftest.$ac_objext'
27040   { (case "(($ac_try" in
27041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27042   *) ac_try_echo=$ac_try;;
27043 esac
27044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27045   (eval "$ac_try") 2>&5
27046   ac_status=$?
27047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048   (exit $ac_status); }; }; then
27049   :
27050 else
27051   echo "$as_me: failed program was:" >&5
27052 sed 's/^/| /' conftest.$ac_ext >&5
27053
27054         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27055 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27056    { (exit 1); exit 1; }; }
27057 fi
27058
27059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27060 fi
27061
27062 if test -z "$llvm_cv_gnu_make_command"
27063 then
27064   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27065 echo "$as_me: error: GNU Make required but not found" >&2;}
27066    { (exit 1); exit 1; }; }
27067 fi
27068
27069 { echo "$as_me:$LINENO: result: ok" >&5
27070 echo "${ECHO_T}ok" >&6; }
27071
27072
27073
27074 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27075 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27076 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27077   echo $ECHO_N "(cached) $ECHO_C" >&6
27078 else
27079   ac_check_lib_save_LIBS=$LIBS
27080 LIBS="-lelf  $LIBS"
27081 cat >conftest.$ac_ext <<_ACEOF
27082 /* confdefs.h.  */
27083 _ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h.  */
27087
27088 /* Override any GCC internal prototype to avoid an error.
27089    Use char because int might match the return type of a GCC
27090    builtin and then its argument prototype would still apply.  */
27091 #ifdef __cplusplus
27092 extern "C"
27093 #endif
27094 char elf_begin ();
27095 int
27096 main ()
27097 {
27098 return elf_begin ();
27099   ;
27100   return 0;
27101 }
27102 _ACEOF
27103 rm -f conftest.$ac_objext conftest$ac_exeext
27104 if { (ac_try="$ac_link"
27105 case "(($ac_try" in
27106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107   *) ac_try_echo=$ac_try;;
27108 esac
27109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110   (eval "$ac_link") 2>conftest.er1
27111   ac_status=$?
27112   grep -v '^ *+' conftest.er1 >conftest.err
27113   rm -f conftest.er1
27114   cat conftest.err >&5
27115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116   (exit $ac_status); } &&
27117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27118   { (case "(($ac_try" in
27119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27120   *) ac_try_echo=$ac_try;;
27121 esac
27122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27123   (eval "$ac_try") 2>&5
27124   ac_status=$?
27125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126   (exit $ac_status); }; } &&
27127          { ac_try='test -s conftest$ac_exeext'
27128   { (case "(($ac_try" in
27129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27130   *) ac_try_echo=$ac_try;;
27131 esac
27132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27133   (eval "$ac_try") 2>&5
27134   ac_status=$?
27135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136   (exit $ac_status); }; }; then
27137   ac_cv_lib_elf_elf_begin=yes
27138 else
27139   echo "$as_me: failed program was:" >&5
27140 sed 's/^/| /' conftest.$ac_ext >&5
27141
27142         ac_cv_lib_elf_elf_begin=no
27143 fi
27144
27145 rm -f core conftest.err conftest.$ac_objext \
27146       conftest$ac_exeext conftest.$ac_ext
27147 LIBS=$ac_check_lib_save_LIBS
27148 fi
27149 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27150 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27151 if test $ac_cv_lib_elf_elf_begin = yes; then
27152   cat >>confdefs.h <<_ACEOF
27153 #define HAVE_LIBELF 1
27154 _ACEOF
27155
27156   LIBS="-lelf $LIBS"
27157
27158 fi
27159
27160
27161 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27162 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27163 if test "${ac_cv_lib_m_sin+set}" = set; then
27164   echo $ECHO_N "(cached) $ECHO_C" >&6
27165 else
27166   ac_check_lib_save_LIBS=$LIBS
27167 LIBS="-lm  $LIBS"
27168 cat >conftest.$ac_ext <<_ACEOF
27169 /* confdefs.h.  */
27170 _ACEOF
27171 cat confdefs.h >>conftest.$ac_ext
27172 cat >>conftest.$ac_ext <<_ACEOF
27173 /* end confdefs.h.  */
27174
27175 /* Override any GCC internal prototype to avoid an error.
27176    Use char because int might match the return type of a GCC
27177    builtin and then its argument prototype would still apply.  */
27178 #ifdef __cplusplus
27179 extern "C"
27180 #endif
27181 char sin ();
27182 int
27183 main ()
27184 {
27185 return sin ();
27186   ;
27187   return 0;
27188 }
27189 _ACEOF
27190 rm -f conftest.$ac_objext conftest$ac_exeext
27191 if { (ac_try="$ac_link"
27192 case "(($ac_try" in
27193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27194   *) ac_try_echo=$ac_try;;
27195 esac
27196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27197   (eval "$ac_link") 2>conftest.er1
27198   ac_status=$?
27199   grep -v '^ *+' conftest.er1 >conftest.err
27200   rm -f conftest.er1
27201   cat conftest.err >&5
27202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203   (exit $ac_status); } &&
27204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27205   { (case "(($ac_try" in
27206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27207   *) ac_try_echo=$ac_try;;
27208 esac
27209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27210   (eval "$ac_try") 2>&5
27211   ac_status=$?
27212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213   (exit $ac_status); }; } &&
27214          { ac_try='test -s conftest$ac_exeext'
27215   { (case "(($ac_try" in
27216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27217   *) ac_try_echo=$ac_try;;
27218 esac
27219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27220   (eval "$ac_try") 2>&5
27221   ac_status=$?
27222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223   (exit $ac_status); }; }; then
27224   ac_cv_lib_m_sin=yes
27225 else
27226   echo "$as_me: failed program was:" >&5
27227 sed 's/^/| /' conftest.$ac_ext >&5
27228
27229         ac_cv_lib_m_sin=no
27230 fi
27231
27232 rm -f core conftest.err conftest.$ac_objext \
27233       conftest$ac_exeext conftest.$ac_ext
27234 LIBS=$ac_check_lib_save_LIBS
27235 fi
27236 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27237 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27238 if test $ac_cv_lib_m_sin = yes; then
27239   cat >>confdefs.h <<_ACEOF
27240 #define HAVE_LIBM 1
27241 _ACEOF
27242
27243   LIBS="-lm $LIBS"
27244
27245 fi
27246
27247 if test "$llvm_cv_os_type" = "MingW" ; then
27248
27249 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27250 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27251 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27252   echo $ECHO_N "(cached) $ECHO_C" >&6
27253 else
27254   ac_check_lib_save_LIBS=$LIBS
27255 LIBS="-limagehlp  $LIBS"
27256 cat >conftest.$ac_ext <<_ACEOF
27257 /* confdefs.h.  */
27258 _ACEOF
27259 cat confdefs.h >>conftest.$ac_ext
27260 cat >>conftest.$ac_ext <<_ACEOF
27261 /* end confdefs.h.  */
27262
27263
27264 int
27265 main ()
27266 {
27267 return main ();
27268   ;
27269   return 0;
27270 }
27271 _ACEOF
27272 rm -f conftest.$ac_objext conftest$ac_exeext
27273 if { (ac_try="$ac_link"
27274 case "(($ac_try" in
27275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27276   *) ac_try_echo=$ac_try;;
27277 esac
27278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27279   (eval "$ac_link") 2>conftest.er1
27280   ac_status=$?
27281   grep -v '^ *+' conftest.er1 >conftest.err
27282   rm -f conftest.er1
27283   cat conftest.err >&5
27284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285   (exit $ac_status); } &&
27286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27287   { (case "(($ac_try" in
27288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27289   *) ac_try_echo=$ac_try;;
27290 esac
27291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27292   (eval "$ac_try") 2>&5
27293   ac_status=$?
27294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295   (exit $ac_status); }; } &&
27296          { ac_try='test -s conftest$ac_exeext'
27297   { (case "(($ac_try" in
27298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27299   *) ac_try_echo=$ac_try;;
27300 esac
27301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27302   (eval "$ac_try") 2>&5
27303   ac_status=$?
27304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305   (exit $ac_status); }; }; then
27306   ac_cv_lib_imagehlp_main=yes
27307 else
27308   echo "$as_me: failed program was:" >&5
27309 sed 's/^/| /' conftest.$ac_ext >&5
27310
27311         ac_cv_lib_imagehlp_main=no
27312 fi
27313
27314 rm -f core conftest.err conftest.$ac_objext \
27315       conftest$ac_exeext conftest.$ac_ext
27316 LIBS=$ac_check_lib_save_LIBS
27317 fi
27318 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27319 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27320 if test $ac_cv_lib_imagehlp_main = yes; then
27321   cat >>confdefs.h <<_ACEOF
27322 #define HAVE_LIBIMAGEHLP 1
27323 _ACEOF
27324
27325   LIBS="-limagehlp $LIBS"
27326
27327 fi
27328
27329
27330 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27331 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27332 if test "${ac_cv_lib_psapi_main+set}" = set; then
27333   echo $ECHO_N "(cached) $ECHO_C" >&6
27334 else
27335   ac_check_lib_save_LIBS=$LIBS
27336 LIBS="-lpsapi  $LIBS"
27337 cat >conftest.$ac_ext <<_ACEOF
27338 /* confdefs.h.  */
27339 _ACEOF
27340 cat confdefs.h >>conftest.$ac_ext
27341 cat >>conftest.$ac_ext <<_ACEOF
27342 /* end confdefs.h.  */
27343
27344
27345 int
27346 main ()
27347 {
27348 return main ();
27349   ;
27350   return 0;
27351 }
27352 _ACEOF
27353 rm -f conftest.$ac_objext conftest$ac_exeext
27354 if { (ac_try="$ac_link"
27355 case "(($ac_try" in
27356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27357   *) ac_try_echo=$ac_try;;
27358 esac
27359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27360   (eval "$ac_link") 2>conftest.er1
27361   ac_status=$?
27362   grep -v '^ *+' conftest.er1 >conftest.err
27363   rm -f conftest.er1
27364   cat conftest.err >&5
27365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366   (exit $ac_status); } &&
27367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27368   { (case "(($ac_try" in
27369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27370   *) ac_try_echo=$ac_try;;
27371 esac
27372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27373   (eval "$ac_try") 2>&5
27374   ac_status=$?
27375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376   (exit $ac_status); }; } &&
27377          { ac_try='test -s conftest$ac_exeext'
27378   { (case "(($ac_try" in
27379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27380   *) ac_try_echo=$ac_try;;
27381 esac
27382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27383   (eval "$ac_try") 2>&5
27384   ac_status=$?
27385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386   (exit $ac_status); }; }; then
27387   ac_cv_lib_psapi_main=yes
27388 else
27389   echo "$as_me: failed program was:" >&5
27390 sed 's/^/| /' conftest.$ac_ext >&5
27391
27392         ac_cv_lib_psapi_main=no
27393 fi
27394
27395 rm -f core conftest.err conftest.$ac_objext \
27396       conftest$ac_exeext conftest.$ac_ext
27397 LIBS=$ac_check_lib_save_LIBS
27398 fi
27399 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27400 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27401 if test $ac_cv_lib_psapi_main = yes; then
27402   cat >>confdefs.h <<_ACEOF
27403 #define HAVE_LIBPSAPI 1
27404 _ACEOF
27405
27406   LIBS="-lpsapi $LIBS"
27407
27408 fi
27409
27410 fi
27411
27412 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27413 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27414 if test "${ac_cv_search_dlopen+set}" = set; then
27415   echo $ECHO_N "(cached) $ECHO_C" >&6
27416 else
27417   ac_func_search_save_LIBS=$LIBS
27418 cat >conftest.$ac_ext <<_ACEOF
27419 /* confdefs.h.  */
27420 _ACEOF
27421 cat confdefs.h >>conftest.$ac_ext
27422 cat >>conftest.$ac_ext <<_ACEOF
27423 /* end confdefs.h.  */
27424
27425 /* Override any GCC internal prototype to avoid an error.
27426    Use char because int might match the return type of a GCC
27427    builtin and then its argument prototype would still apply.  */
27428 #ifdef __cplusplus
27429 extern "C"
27430 #endif
27431 char dlopen ();
27432 int
27433 main ()
27434 {
27435 return dlopen ();
27436   ;
27437   return 0;
27438 }
27439 _ACEOF
27440 for ac_lib in '' dl; do
27441   if test -z "$ac_lib"; then
27442     ac_res="none required"
27443   else
27444     ac_res=-l$ac_lib
27445     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27446   fi
27447   rm -f conftest.$ac_objext conftest$ac_exeext
27448 if { (ac_try="$ac_link"
27449 case "(($ac_try" in
27450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27451   *) ac_try_echo=$ac_try;;
27452 esac
27453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27454   (eval "$ac_link") 2>conftest.er1
27455   ac_status=$?
27456   grep -v '^ *+' conftest.er1 >conftest.err
27457   rm -f conftest.er1
27458   cat conftest.err >&5
27459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460   (exit $ac_status); } &&
27461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27462   { (case "(($ac_try" in
27463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464   *) ac_try_echo=$ac_try;;
27465 esac
27466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27467   (eval "$ac_try") 2>&5
27468   ac_status=$?
27469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470   (exit $ac_status); }; } &&
27471          { ac_try='test -s conftest$ac_exeext'
27472   { (case "(($ac_try" in
27473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474   *) ac_try_echo=$ac_try;;
27475 esac
27476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477   (eval "$ac_try") 2>&5
27478   ac_status=$?
27479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480   (exit $ac_status); }; }; then
27481   ac_cv_search_dlopen=$ac_res
27482 else
27483   echo "$as_me: failed program was:" >&5
27484 sed 's/^/| /' conftest.$ac_ext >&5
27485
27486
27487 fi
27488
27489 rm -f core conftest.err conftest.$ac_objext \
27490       conftest$ac_exeext
27491   if test "${ac_cv_search_dlopen+set}" = set; then
27492   break
27493 fi
27494 done
27495 if test "${ac_cv_search_dlopen+set}" = set; then
27496   :
27497 else
27498   ac_cv_search_dlopen=no
27499 fi
27500 rm conftest.$ac_ext
27501 LIBS=$ac_func_search_save_LIBS
27502 fi
27503 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27504 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27505 ac_res=$ac_cv_search_dlopen
27506 if test "$ac_res" != no; then
27507   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27508
27509 cat >>confdefs.h <<\_ACEOF
27510 #define HAVE_DLOPEN 1
27511 _ACEOF
27512
27513 else
27514   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27515 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27516 fi
27517
27518
27519 { echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
27520 echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
27521 if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
27522   echo $ECHO_N "(cached) $ECHO_C" >&6
27523 else
27524   ac_check_lib_save_LIBS=$LIBS
27525 LIBS="-lffi  $LIBS"
27526 cat >conftest.$ac_ext <<_ACEOF
27527 /* confdefs.h.  */
27528 _ACEOF
27529 cat confdefs.h >>conftest.$ac_ext
27530 cat >>conftest.$ac_ext <<_ACEOF
27531 /* end confdefs.h.  */
27532
27533 /* Override any GCC internal prototype to avoid an error.
27534    Use char because int might match the return type of a GCC
27535    builtin and then its argument prototype would still apply.  */
27536 #ifdef __cplusplus
27537 extern "C"
27538 #endif
27539 char ffi_call ();
27540 int
27541 main ()
27542 {
27543 return ffi_call ();
27544   ;
27545   return 0;
27546 }
27547 _ACEOF
27548 rm -f conftest.$ac_objext conftest$ac_exeext
27549 if { (ac_try="$ac_link"
27550 case "(($ac_try" in
27551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27552   *) ac_try_echo=$ac_try;;
27553 esac
27554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27555   (eval "$ac_link") 2>conftest.er1
27556   ac_status=$?
27557   grep -v '^ *+' conftest.er1 >conftest.err
27558   rm -f conftest.er1
27559   cat conftest.err >&5
27560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27561   (exit $ac_status); } &&
27562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27563   { (case "(($ac_try" in
27564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27565   *) ac_try_echo=$ac_try;;
27566 esac
27567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27568   (eval "$ac_try") 2>&5
27569   ac_status=$?
27570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571   (exit $ac_status); }; } &&
27572          { ac_try='test -s conftest$ac_exeext'
27573   { (case "(($ac_try" in
27574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27575   *) ac_try_echo=$ac_try;;
27576 esac
27577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27578   (eval "$ac_try") 2>&5
27579   ac_status=$?
27580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581   (exit $ac_status); }; }; then
27582   ac_cv_lib_ffi_ffi_call=yes
27583 else
27584   echo "$as_me: failed program was:" >&5
27585 sed 's/^/| /' conftest.$ac_ext >&5
27586
27587         ac_cv_lib_ffi_ffi_call=no
27588 fi
27589
27590 rm -f core conftest.err conftest.$ac_objext \
27591       conftest$ac_exeext conftest.$ac_ext
27592 LIBS=$ac_check_lib_save_LIBS
27593 fi
27594 { echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
27595 echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
27596 if test $ac_cv_lib_ffi_ffi_call = yes; then
27597   have_libffi=1
27598 else
27599   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27600 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27601 fi
27602
27603
27604 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27605 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27606 if test "${ac_cv_search_mallinfo+set}" = set; then
27607   echo $ECHO_N "(cached) $ECHO_C" >&6
27608 else
27609   ac_func_search_save_LIBS=$LIBS
27610 cat >conftest.$ac_ext <<_ACEOF
27611 /* confdefs.h.  */
27612 _ACEOF
27613 cat confdefs.h >>conftest.$ac_ext
27614 cat >>conftest.$ac_ext <<_ACEOF
27615 /* end confdefs.h.  */
27616
27617 /* Override any GCC internal prototype to avoid an error.
27618    Use char because int might match the return type of a GCC
27619    builtin and then its argument prototype would still apply.  */
27620 #ifdef __cplusplus
27621 extern "C"
27622 #endif
27623 char mallinfo ();
27624 int
27625 main ()
27626 {
27627 return mallinfo ();
27628   ;
27629   return 0;
27630 }
27631 _ACEOF
27632 for ac_lib in '' malloc; do
27633   if test -z "$ac_lib"; then
27634     ac_res="none required"
27635   else
27636     ac_res=-l$ac_lib
27637     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27638   fi
27639   rm -f conftest.$ac_objext conftest$ac_exeext
27640 if { (ac_try="$ac_link"
27641 case "(($ac_try" in
27642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27643   *) ac_try_echo=$ac_try;;
27644 esac
27645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27646   (eval "$ac_link") 2>conftest.er1
27647   ac_status=$?
27648   grep -v '^ *+' conftest.er1 >conftest.err
27649   rm -f conftest.er1
27650   cat conftest.err >&5
27651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27652   (exit $ac_status); } &&
27653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27654   { (case "(($ac_try" in
27655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27656   *) ac_try_echo=$ac_try;;
27657 esac
27658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27659   (eval "$ac_try") 2>&5
27660   ac_status=$?
27661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662   (exit $ac_status); }; } &&
27663          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
27670   ac_status=$?
27671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672   (exit $ac_status); }; }; then
27673   ac_cv_search_mallinfo=$ac_res
27674 else
27675   echo "$as_me: failed program was:" >&5
27676 sed 's/^/| /' conftest.$ac_ext >&5
27677
27678
27679 fi
27680
27681 rm -f core conftest.err conftest.$ac_objext \
27682       conftest$ac_exeext
27683   if test "${ac_cv_search_mallinfo+set}" = set; then
27684   break
27685 fi
27686 done
27687 if test "${ac_cv_search_mallinfo+set}" = set; then
27688   :
27689 else
27690   ac_cv_search_mallinfo=no
27691 fi
27692 rm conftest.$ac_ext
27693 LIBS=$ac_func_search_save_LIBS
27694 fi
27695 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27696 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27697 ac_res=$ac_cv_search_mallinfo
27698 if test "$ac_res" != no; then
27699   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27700
27701 cat >>confdefs.h <<\_ACEOF
27702 #define HAVE_MALLINFO 1
27703 _ACEOF
27704
27705 fi
27706
27707
27708 if test "$ENABLE_THREADS" -eq 1 ; then
27709
27710 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27711 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27712 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27713   echo $ECHO_N "(cached) $ECHO_C" >&6
27714 else
27715   ac_check_lib_save_LIBS=$LIBS
27716 LIBS="-lpthread  $LIBS"
27717 cat >conftest.$ac_ext <<_ACEOF
27718 /* confdefs.h.  */
27719 _ACEOF
27720 cat confdefs.h >>conftest.$ac_ext
27721 cat >>conftest.$ac_ext <<_ACEOF
27722 /* end confdefs.h.  */
27723
27724 /* Override any GCC internal prototype to avoid an error.
27725    Use char because int might match the return type of a GCC
27726    builtin and then its argument prototype would still apply.  */
27727 #ifdef __cplusplus
27728 extern "C"
27729 #endif
27730 char pthread_mutex_init ();
27731 int
27732 main ()
27733 {
27734 return pthread_mutex_init ();
27735   ;
27736   return 0;
27737 }
27738 _ACEOF
27739 rm -f conftest.$ac_objext conftest$ac_exeext
27740 if { (ac_try="$ac_link"
27741 case "(($ac_try" in
27742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743   *) ac_try_echo=$ac_try;;
27744 esac
27745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746   (eval "$ac_link") 2>conftest.er1
27747   ac_status=$?
27748   grep -v '^ *+' conftest.er1 >conftest.err
27749   rm -f conftest.er1
27750   cat conftest.err >&5
27751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752   (exit $ac_status); } &&
27753          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27754   { (case "(($ac_try" in
27755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27756   *) ac_try_echo=$ac_try;;
27757 esac
27758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27759   (eval "$ac_try") 2>&5
27760   ac_status=$?
27761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762   (exit $ac_status); }; } &&
27763          { ac_try='test -s conftest$ac_exeext'
27764   { (case "(($ac_try" in
27765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27766   *) ac_try_echo=$ac_try;;
27767 esac
27768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27769   (eval "$ac_try") 2>&5
27770   ac_status=$?
27771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772   (exit $ac_status); }; }; then
27773   ac_cv_lib_pthread_pthread_mutex_init=yes
27774 else
27775   echo "$as_me: failed program was:" >&5
27776 sed 's/^/| /' conftest.$ac_ext >&5
27777
27778         ac_cv_lib_pthread_pthread_mutex_init=no
27779 fi
27780
27781 rm -f core conftest.err conftest.$ac_objext \
27782       conftest$ac_exeext conftest.$ac_ext
27783 LIBS=$ac_check_lib_save_LIBS
27784 fi
27785 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27786 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27787 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27788   cat >>confdefs.h <<_ACEOF
27789 #define HAVE_LIBPTHREAD 1
27790 _ACEOF
27791
27792   LIBS="-lpthread $LIBS"
27793
27794 fi
27795
27796   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27797 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27798 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27799   echo $ECHO_N "(cached) $ECHO_C" >&6
27800 else
27801   ac_func_search_save_LIBS=$LIBS
27802 cat >conftest.$ac_ext <<_ACEOF
27803 /* confdefs.h.  */
27804 _ACEOF
27805 cat confdefs.h >>conftest.$ac_ext
27806 cat >>conftest.$ac_ext <<_ACEOF
27807 /* end confdefs.h.  */
27808
27809 /* Override any GCC internal prototype to avoid an error.
27810    Use char because int might match the return type of a GCC
27811    builtin and then its argument prototype would still apply.  */
27812 #ifdef __cplusplus
27813 extern "C"
27814 #endif
27815 char pthread_mutex_lock ();
27816 int
27817 main ()
27818 {
27819 return pthread_mutex_lock ();
27820   ;
27821   return 0;
27822 }
27823 _ACEOF
27824 for ac_lib in '' pthread; do
27825   if test -z "$ac_lib"; then
27826     ac_res="none required"
27827   else
27828     ac_res=-l$ac_lib
27829     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27830   fi
27831   rm -f conftest.$ac_objext conftest$ac_exeext
27832 if { (ac_try="$ac_link"
27833 case "(($ac_try" in
27834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27835   *) ac_try_echo=$ac_try;;
27836 esac
27837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27838   (eval "$ac_link") 2>conftest.er1
27839   ac_status=$?
27840   grep -v '^ *+' conftest.er1 >conftest.err
27841   rm -f conftest.er1
27842   cat conftest.err >&5
27843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844   (exit $ac_status); } &&
27845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27846   { (case "(($ac_try" in
27847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848   *) ac_try_echo=$ac_try;;
27849 esac
27850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851   (eval "$ac_try") 2>&5
27852   ac_status=$?
27853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854   (exit $ac_status); }; } &&
27855          { ac_try='test -s conftest$ac_exeext'
27856   { (case "(($ac_try" in
27857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27858   *) ac_try_echo=$ac_try;;
27859 esac
27860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27861   (eval "$ac_try") 2>&5
27862   ac_status=$?
27863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864   (exit $ac_status); }; }; then
27865   ac_cv_search_pthread_mutex_lock=$ac_res
27866 else
27867   echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.$ac_ext >&5
27869
27870
27871 fi
27872
27873 rm -f core conftest.err conftest.$ac_objext \
27874       conftest$ac_exeext
27875   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27876   break
27877 fi
27878 done
27879 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27880   :
27881 else
27882   ac_cv_search_pthread_mutex_lock=no
27883 fi
27884 rm conftest.$ac_ext
27885 LIBS=$ac_func_search_save_LIBS
27886 fi
27887 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27888 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27889 ac_res=$ac_cv_search_pthread_mutex_lock
27890 if test "$ac_res" != no; then
27891   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27892
27893 cat >>confdefs.h <<\_ACEOF
27894 #define HAVE_PTHREAD_MUTEX_LOCK 1
27895 _ACEOF
27896
27897 fi
27898
27899 fi
27900
27901
27902 # Check whether --with-udis86 was given.
27903 if test "${with_udis86+set}" = set; then
27904   withval=$with_udis86;
27905       USE_UDIS86=1
27906
27907       case "$withval" in
27908         /usr/lib|yes) ;;
27909         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27910       esac
27911
27912 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27913 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27914 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27915   echo $ECHO_N "(cached) $ECHO_C" >&6
27916 else
27917   ac_check_lib_save_LIBS=$LIBS
27918 LIBS="-ludis86  $LIBS"
27919 cat >conftest.$ac_ext <<_ACEOF
27920 /* confdefs.h.  */
27921 _ACEOF
27922 cat confdefs.h >>conftest.$ac_ext
27923 cat >>conftest.$ac_ext <<_ACEOF
27924 /* end confdefs.h.  */
27925
27926 /* Override any GCC internal prototype to avoid an error.
27927    Use char because int might match the return type of a GCC
27928    builtin and then its argument prototype would still apply.  */
27929 #ifdef __cplusplus
27930 extern "C"
27931 #endif
27932 char ud_init ();
27933 int
27934 main ()
27935 {
27936 return ud_init ();
27937   ;
27938   return 0;
27939 }
27940 _ACEOF
27941 rm -f conftest.$ac_objext conftest$ac_exeext
27942 if { (ac_try="$ac_link"
27943 case "(($ac_try" in
27944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27945   *) ac_try_echo=$ac_try;;
27946 esac
27947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27948   (eval "$ac_link") 2>conftest.er1
27949   ac_status=$?
27950   grep -v '^ *+' conftest.er1 >conftest.err
27951   rm -f conftest.er1
27952   cat conftest.err >&5
27953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954   (exit $ac_status); } &&
27955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27956   { (case "(($ac_try" in
27957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27958   *) ac_try_echo=$ac_try;;
27959 esac
27960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27961   (eval "$ac_try") 2>&5
27962   ac_status=$?
27963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964   (exit $ac_status); }; } &&
27965          { ac_try='test -s conftest$ac_exeext'
27966   { (case "(($ac_try" in
27967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27968   *) ac_try_echo=$ac_try;;
27969 esac
27970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27971   (eval "$ac_try") 2>&5
27972   ac_status=$?
27973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974   (exit $ac_status); }; }; then
27975   ac_cv_lib_udis86_ud_init=yes
27976 else
27977   echo "$as_me: failed program was:" >&5
27978 sed 's/^/| /' conftest.$ac_ext >&5
27979
27980         ac_cv_lib_udis86_ud_init=no
27981 fi
27982
27983 rm -f core conftest.err conftest.$ac_objext \
27984       conftest$ac_exeext conftest.$ac_ext
27985 LIBS=$ac_check_lib_save_LIBS
27986 fi
27987 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27988 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27989 if test $ac_cv_lib_udis86_ud_init = yes; then
27990   cat >>confdefs.h <<_ACEOF
27991 #define HAVE_LIBUDIS86 1
27992 _ACEOF
27993
27994   LIBS="-ludis86 $LIBS"
27995
27996 else
27997
27998         echo "Error! You need to have libudis86 around."
27999         exit -1
28000
28001 fi
28002
28003
28004 else
28005   USE_UDIS86=0
28006
28007 fi
28008
28009
28010 cat >>confdefs.h <<_ACEOF
28011 #define USE_UDIS86 $USE_UDIS86
28012 _ACEOF
28013
28014
28015
28016
28017
28018
28019
28020
28021 ac_header_dirent=no
28022 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28023   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28024 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28025 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28027   echo $ECHO_N "(cached) $ECHO_C" >&6
28028 else
28029   cat >conftest.$ac_ext <<_ACEOF
28030 /* confdefs.h.  */
28031 _ACEOF
28032 cat confdefs.h >>conftest.$ac_ext
28033 cat >>conftest.$ac_ext <<_ACEOF
28034 /* end confdefs.h.  */
28035 #include <sys/types.h>
28036 #include <$ac_hdr>
28037
28038 int
28039 main ()
28040 {
28041 if ((DIR *) 0)
28042 return 0;
28043   ;
28044   return 0;
28045 }
28046 _ACEOF
28047 rm -f conftest.$ac_objext
28048 if { (ac_try="$ac_compile"
28049 case "(($ac_try" in
28050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28051   *) ac_try_echo=$ac_try;;
28052 esac
28053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28054   (eval "$ac_compile") 2>conftest.er1
28055   ac_status=$?
28056   grep -v '^ *+' conftest.er1 >conftest.err
28057   rm -f conftest.er1
28058   cat conftest.err >&5
28059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060   (exit $ac_status); } &&
28061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28062   { (case "(($ac_try" in
28063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064   *) ac_try_echo=$ac_try;;
28065 esac
28066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28067   (eval "$ac_try") 2>&5
28068   ac_status=$?
28069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070   (exit $ac_status); }; } &&
28071          { ac_try='test -s conftest.$ac_objext'
28072   { (case "(($ac_try" in
28073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28074   *) ac_try_echo=$ac_try;;
28075 esac
28076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28077   (eval "$ac_try") 2>&5
28078   ac_status=$?
28079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080   (exit $ac_status); }; }; then
28081   eval "$as_ac_Header=yes"
28082 else
28083   echo "$as_me: failed program was:" >&5
28084 sed 's/^/| /' conftest.$ac_ext >&5
28085
28086         eval "$as_ac_Header=no"
28087 fi
28088
28089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28090 fi
28091 ac_res=`eval echo '${'$as_ac_Header'}'`
28092                { echo "$as_me:$LINENO: result: $ac_res" >&5
28093 echo "${ECHO_T}$ac_res" >&6; }
28094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28095   cat >>confdefs.h <<_ACEOF
28096 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28097 _ACEOF
28098
28099 ac_header_dirent=$ac_hdr; break
28100 fi
28101
28102 done
28103 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28104 if test $ac_header_dirent = dirent.h; then
28105   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28106 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28107 if test "${ac_cv_search_opendir+set}" = set; then
28108   echo $ECHO_N "(cached) $ECHO_C" >&6
28109 else
28110   ac_func_search_save_LIBS=$LIBS
28111 cat >conftest.$ac_ext <<_ACEOF
28112 /* confdefs.h.  */
28113 _ACEOF
28114 cat confdefs.h >>conftest.$ac_ext
28115 cat >>conftest.$ac_ext <<_ACEOF
28116 /* end confdefs.h.  */
28117
28118 /* Override any GCC internal prototype to avoid an error.
28119    Use char because int might match the return type of a GCC
28120    builtin and then its argument prototype would still apply.  */
28121 #ifdef __cplusplus
28122 extern "C"
28123 #endif
28124 char opendir ();
28125 int
28126 main ()
28127 {
28128 return opendir ();
28129   ;
28130   return 0;
28131 }
28132 _ACEOF
28133 for ac_lib in '' dir; do
28134   if test -z "$ac_lib"; then
28135     ac_res="none required"
28136   else
28137     ac_res=-l$ac_lib
28138     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28139   fi
28140   rm -f conftest.$ac_objext conftest$ac_exeext
28141 if { (ac_try="$ac_link"
28142 case "(($ac_try" in
28143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28144   *) ac_try_echo=$ac_try;;
28145 esac
28146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28147   (eval "$ac_link") 2>conftest.er1
28148   ac_status=$?
28149   grep -v '^ *+' conftest.er1 >conftest.err
28150   rm -f conftest.er1
28151   cat conftest.err >&5
28152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153   (exit $ac_status); } &&
28154          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28155   { (case "(($ac_try" in
28156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28157   *) ac_try_echo=$ac_try;;
28158 esac
28159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28160   (eval "$ac_try") 2>&5
28161   ac_status=$?
28162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163   (exit $ac_status); }; } &&
28164          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
28171   ac_status=$?
28172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28173   (exit $ac_status); }; }; then
28174   ac_cv_search_opendir=$ac_res
28175 else
28176   echo "$as_me: failed program was:" >&5
28177 sed 's/^/| /' conftest.$ac_ext >&5
28178
28179
28180 fi
28181
28182 rm -f core conftest.err conftest.$ac_objext \
28183       conftest$ac_exeext
28184   if test "${ac_cv_search_opendir+set}" = set; then
28185   break
28186 fi
28187 done
28188 if test "${ac_cv_search_opendir+set}" = set; then
28189   :
28190 else
28191   ac_cv_search_opendir=no
28192 fi
28193 rm conftest.$ac_ext
28194 LIBS=$ac_func_search_save_LIBS
28195 fi
28196 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28197 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28198 ac_res=$ac_cv_search_opendir
28199 if test "$ac_res" != no; then
28200   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28201
28202 fi
28203
28204 else
28205   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28206 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28207 if test "${ac_cv_search_opendir+set}" = set; then
28208   echo $ECHO_N "(cached) $ECHO_C" >&6
28209 else
28210   ac_func_search_save_LIBS=$LIBS
28211 cat >conftest.$ac_ext <<_ACEOF
28212 /* confdefs.h.  */
28213 _ACEOF
28214 cat confdefs.h >>conftest.$ac_ext
28215 cat >>conftest.$ac_ext <<_ACEOF
28216 /* end confdefs.h.  */
28217
28218 /* Override any GCC internal prototype to avoid an error.
28219    Use char because int might match the return type of a GCC
28220    builtin and then its argument prototype would still apply.  */
28221 #ifdef __cplusplus
28222 extern "C"
28223 #endif
28224 char opendir ();
28225 int
28226 main ()
28227 {
28228 return opendir ();
28229   ;
28230   return 0;
28231 }
28232 _ACEOF
28233 for ac_lib in '' x; do
28234   if test -z "$ac_lib"; then
28235     ac_res="none required"
28236   else
28237     ac_res=-l$ac_lib
28238     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28239   fi
28240   rm -f conftest.$ac_objext conftest$ac_exeext
28241 if { (ac_try="$ac_link"
28242 case "(($ac_try" in
28243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28244   *) ac_try_echo=$ac_try;;
28245 esac
28246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28247   (eval "$ac_link") 2>conftest.er1
28248   ac_status=$?
28249   grep -v '^ *+' conftest.er1 >conftest.err
28250   rm -f conftest.er1
28251   cat conftest.err >&5
28252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28253   (exit $ac_status); } &&
28254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28255   { (case "(($ac_try" in
28256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28257   *) ac_try_echo=$ac_try;;
28258 esac
28259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28260   (eval "$ac_try") 2>&5
28261   ac_status=$?
28262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263   (exit $ac_status); }; } &&
28264          { ac_try='test -s conftest$ac_exeext'
28265   { (case "(($ac_try" in
28266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28267   *) ac_try_echo=$ac_try;;
28268 esac
28269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28270   (eval "$ac_try") 2>&5
28271   ac_status=$?
28272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273   (exit $ac_status); }; }; then
28274   ac_cv_search_opendir=$ac_res
28275 else
28276   echo "$as_me: failed program was:" >&5
28277 sed 's/^/| /' conftest.$ac_ext >&5
28278
28279
28280 fi
28281
28282 rm -f core conftest.err conftest.$ac_objext \
28283       conftest$ac_exeext
28284   if test "${ac_cv_search_opendir+set}" = set; then
28285   break
28286 fi
28287 done
28288 if test "${ac_cv_search_opendir+set}" = set; then
28289   :
28290 else
28291   ac_cv_search_opendir=no
28292 fi
28293 rm conftest.$ac_ext
28294 LIBS=$ac_func_search_save_LIBS
28295 fi
28296 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28297 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28298 ac_res=$ac_cv_search_opendir
28299 if test "$ac_res" != no; then
28300   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28301
28302 fi
28303
28304 fi
28305
28306 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28307 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28308 if test "${ac_cv_header_mmap_anon+set}" = set; then
28309   echo $ECHO_N "(cached) $ECHO_C" >&6
28310 else
28311    ac_ext=c
28312 ac_cpp='$CPP $CPPFLAGS'
28313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28316
28317   cat >conftest.$ac_ext <<_ACEOF
28318 /* confdefs.h.  */
28319 _ACEOF
28320 cat confdefs.h >>conftest.$ac_ext
28321 cat >>conftest.$ac_ext <<_ACEOF
28322 /* end confdefs.h.  */
28323 #include <sys/mman.h>
28324 #include <unistd.h>
28325 #include <fcntl.h>
28326 int
28327 main ()
28328 {
28329 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28330   ;
28331   return 0;
28332 }
28333 _ACEOF
28334 rm -f conftest.$ac_objext
28335 if { (ac_try="$ac_compile"
28336 case "(($ac_try" in
28337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28338   *) ac_try_echo=$ac_try;;
28339 esac
28340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28341   (eval "$ac_compile") 2>conftest.er1
28342   ac_status=$?
28343   grep -v '^ *+' conftest.er1 >conftest.err
28344   rm -f conftest.er1
28345   cat conftest.err >&5
28346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347   (exit $ac_status); } &&
28348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28349   { (case "(($ac_try" in
28350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28351   *) ac_try_echo=$ac_try;;
28352 esac
28353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28354   (eval "$ac_try") 2>&5
28355   ac_status=$?
28356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357   (exit $ac_status); }; } &&
28358          { ac_try='test -s conftest.$ac_objext'
28359   { (case "(($ac_try" in
28360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28361   *) ac_try_echo=$ac_try;;
28362 esac
28363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28364   (eval "$ac_try") 2>&5
28365   ac_status=$?
28366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367   (exit $ac_status); }; }; then
28368   ac_cv_header_mmap_anon=yes
28369 else
28370   echo "$as_me: failed program was:" >&5
28371 sed 's/^/| /' conftest.$ac_ext >&5
28372
28373         ac_cv_header_mmap_anon=no
28374 fi
28375
28376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28377   ac_ext=c
28378 ac_cpp='$CPP $CPPFLAGS'
28379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28382
28383
28384 fi
28385 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28386 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28387 if test "$ac_cv_header_mmap_anon" = yes; then
28388
28389 cat >>confdefs.h <<\_ACEOF
28390 #define HAVE_MMAP_ANONYMOUS 1
28391 _ACEOF
28392
28393 fi
28394
28395 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28396 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28397 if test "${ac_cv_header_stat_broken+set}" = set; then
28398   echo $ECHO_N "(cached) $ECHO_C" >&6
28399 else
28400   cat >conftest.$ac_ext <<_ACEOF
28401 /* confdefs.h.  */
28402 _ACEOF
28403 cat confdefs.h >>conftest.$ac_ext
28404 cat >>conftest.$ac_ext <<_ACEOF
28405 /* end confdefs.h.  */
28406 #include <sys/types.h>
28407 #include <sys/stat.h>
28408
28409 #if defined S_ISBLK && defined S_IFDIR
28410 # if S_ISBLK (S_IFDIR)
28411 You lose.
28412 # endif
28413 #endif
28414
28415 #if defined S_ISBLK && defined S_IFCHR
28416 # if S_ISBLK (S_IFCHR)
28417 You lose.
28418 # endif
28419 #endif
28420
28421 #if defined S_ISLNK && defined S_IFREG
28422 # if S_ISLNK (S_IFREG)
28423 You lose.
28424 # endif
28425 #endif
28426
28427 #if defined S_ISSOCK && defined S_IFREG
28428 # if S_ISSOCK (S_IFREG)
28429 You lose.
28430 # endif
28431 #endif
28432
28433 _ACEOF
28434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28435   $EGREP "You lose" >/dev/null 2>&1; then
28436   ac_cv_header_stat_broken=yes
28437 else
28438   ac_cv_header_stat_broken=no
28439 fi
28440 rm -f conftest*
28441
28442 fi
28443 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28444 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28445 if test $ac_cv_header_stat_broken = yes; then
28446
28447 cat >>confdefs.h <<\_ACEOF
28448 #define STAT_MACROS_BROKEN 1
28449 _ACEOF
28450
28451 fi
28452
28453 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28454 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28455 if test "${ac_cv_header_stdc+set}" = set; then
28456   echo $ECHO_N "(cached) $ECHO_C" >&6
28457 else
28458   cat >conftest.$ac_ext <<_ACEOF
28459 /* confdefs.h.  */
28460 _ACEOF
28461 cat confdefs.h >>conftest.$ac_ext
28462 cat >>conftest.$ac_ext <<_ACEOF
28463 /* end confdefs.h.  */
28464 #include <stdlib.h>
28465 #include <stdarg.h>
28466 #include <string.h>
28467 #include <float.h>
28468
28469 int
28470 main ()
28471 {
28472
28473   ;
28474   return 0;
28475 }
28476 _ACEOF
28477 rm -f conftest.$ac_objext
28478 if { (ac_try="$ac_compile"
28479 case "(($ac_try" in
28480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28481   *) ac_try_echo=$ac_try;;
28482 esac
28483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28484   (eval "$ac_compile") 2>conftest.er1
28485   ac_status=$?
28486   grep -v '^ *+' conftest.er1 >conftest.err
28487   rm -f conftest.er1
28488   cat conftest.err >&5
28489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490   (exit $ac_status); } &&
28491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28492   { (case "(($ac_try" in
28493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28494   *) ac_try_echo=$ac_try;;
28495 esac
28496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28497   (eval "$ac_try") 2>&5
28498   ac_status=$?
28499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500   (exit $ac_status); }; } &&
28501          { ac_try='test -s conftest.$ac_objext'
28502   { (case "(($ac_try" in
28503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504   *) ac_try_echo=$ac_try;;
28505 esac
28506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507   (eval "$ac_try") 2>&5
28508   ac_status=$?
28509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510   (exit $ac_status); }; }; then
28511   ac_cv_header_stdc=yes
28512 else
28513   echo "$as_me: failed program was:" >&5
28514 sed 's/^/| /' conftest.$ac_ext >&5
28515
28516         ac_cv_header_stdc=no
28517 fi
28518
28519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28520
28521 if test $ac_cv_header_stdc = yes; then
28522   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28523   cat >conftest.$ac_ext <<_ACEOF
28524 /* confdefs.h.  */
28525 _ACEOF
28526 cat confdefs.h >>conftest.$ac_ext
28527 cat >>conftest.$ac_ext <<_ACEOF
28528 /* end confdefs.h.  */
28529 #include <string.h>
28530
28531 _ACEOF
28532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28533   $EGREP "memchr" >/dev/null 2>&1; then
28534   :
28535 else
28536   ac_cv_header_stdc=no
28537 fi
28538 rm -f conftest*
28539
28540 fi
28541
28542 if test $ac_cv_header_stdc = yes; then
28543   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28544   cat >conftest.$ac_ext <<_ACEOF
28545 /* confdefs.h.  */
28546 _ACEOF
28547 cat confdefs.h >>conftest.$ac_ext
28548 cat >>conftest.$ac_ext <<_ACEOF
28549 /* end confdefs.h.  */
28550 #include <stdlib.h>
28551
28552 _ACEOF
28553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28554   $EGREP "free" >/dev/null 2>&1; then
28555   :
28556 else
28557   ac_cv_header_stdc=no
28558 fi
28559 rm -f conftest*
28560
28561 fi
28562
28563 if test $ac_cv_header_stdc = yes; then
28564   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28565   if test "$cross_compiling" = yes; then
28566   :
28567 else
28568   cat >conftest.$ac_ext <<_ACEOF
28569 /* confdefs.h.  */
28570 _ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h.  */
28574 #include <ctype.h>
28575 #include <stdlib.h>
28576 #if ((' ' & 0x0FF) == 0x020)
28577 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28578 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28579 #else
28580 # define ISLOWER(c) \
28581                    (('a' <= (c) && (c) <= 'i') \
28582                      || ('j' <= (c) && (c) <= 'r') \
28583                      || ('s' <= (c) && (c) <= 'z'))
28584 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28585 #endif
28586
28587 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28588 int
28589 main ()
28590 {
28591   int i;
28592   for (i = 0; i < 256; i++)
28593     if (XOR (islower (i), ISLOWER (i))
28594         || toupper (i) != TOUPPER (i))
28595       return 2;
28596   return 0;
28597 }
28598 _ACEOF
28599 rm -f conftest$ac_exeext
28600 if { (ac_try="$ac_link"
28601 case "(($ac_try" in
28602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603   *) ac_try_echo=$ac_try;;
28604 esac
28605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606   (eval "$ac_link") 2>&5
28607   ac_status=$?
28608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28610   { (case "(($ac_try" in
28611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612   *) ac_try_echo=$ac_try;;
28613 esac
28614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615   (eval "$ac_try") 2>&5
28616   ac_status=$?
28617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618   (exit $ac_status); }; }; then
28619   :
28620 else
28621   echo "$as_me: program exited with status $ac_status" >&5
28622 echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28624
28625 ( exit $ac_status )
28626 ac_cv_header_stdc=no
28627 fi
28628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28629 fi
28630
28631
28632 fi
28633 fi
28634 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28635 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28636 if test $ac_cv_header_stdc = yes; then
28637
28638 cat >>confdefs.h <<\_ACEOF
28639 #define STDC_HEADERS 1
28640 _ACEOF
28641
28642 fi
28643
28644 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28645 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28646 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28647   echo $ECHO_N "(cached) $ECHO_C" >&6
28648 else
28649   cat >conftest.$ac_ext <<_ACEOF
28650 /* confdefs.h.  */
28651 _ACEOF
28652 cat confdefs.h >>conftest.$ac_ext
28653 cat >>conftest.$ac_ext <<_ACEOF
28654 /* end confdefs.h.  */
28655 #include <sys/types.h>
28656 #include <sys/wait.h>
28657 #ifndef WEXITSTATUS
28658 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28659 #endif
28660 #ifndef WIFEXITED
28661 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28662 #endif
28663
28664 int
28665 main ()
28666 {
28667   int s;
28668   wait (&s);
28669   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28670   ;
28671   return 0;
28672 }
28673 _ACEOF
28674 rm -f conftest.$ac_objext
28675 if { (ac_try="$ac_compile"
28676 case "(($ac_try" in
28677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678   *) ac_try_echo=$ac_try;;
28679 esac
28680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28681   (eval "$ac_compile") 2>conftest.er1
28682   ac_status=$?
28683   grep -v '^ *+' conftest.er1 >conftest.err
28684   rm -f conftest.er1
28685   cat conftest.err >&5
28686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28687   (exit $ac_status); } &&
28688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28689   { (case "(($ac_try" in
28690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28691   *) ac_try_echo=$ac_try;;
28692 esac
28693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28694   (eval "$ac_try") 2>&5
28695   ac_status=$?
28696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697   (exit $ac_status); }; } &&
28698          { ac_try='test -s conftest.$ac_objext'
28699   { (case "(($ac_try" in
28700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28701   *) ac_try_echo=$ac_try;;
28702 esac
28703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28704   (eval "$ac_try") 2>&5
28705   ac_status=$?
28706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707   (exit $ac_status); }; }; then
28708   ac_cv_header_sys_wait_h=yes
28709 else
28710   echo "$as_me: failed program was:" >&5
28711 sed 's/^/| /' conftest.$ac_ext >&5
28712
28713         ac_cv_header_sys_wait_h=no
28714 fi
28715
28716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28717 fi
28718 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28719 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28720 if test $ac_cv_header_sys_wait_h = yes; then
28721
28722 cat >>confdefs.h <<\_ACEOF
28723 #define HAVE_SYS_WAIT_H 1
28724 _ACEOF
28725
28726 fi
28727
28728 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28729 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28730 if test "${ac_cv_header_time+set}" = set; then
28731   echo $ECHO_N "(cached) $ECHO_C" >&6
28732 else
28733   cat >conftest.$ac_ext <<_ACEOF
28734 /* confdefs.h.  */
28735 _ACEOF
28736 cat confdefs.h >>conftest.$ac_ext
28737 cat >>conftest.$ac_ext <<_ACEOF
28738 /* end confdefs.h.  */
28739 #include <sys/types.h>
28740 #include <sys/time.h>
28741 #include <time.h>
28742
28743 int
28744 main ()
28745 {
28746 if ((struct tm *) 0)
28747 return 0;
28748   ;
28749   return 0;
28750 }
28751 _ACEOF
28752 rm -f conftest.$ac_objext
28753 if { (ac_try="$ac_compile"
28754 case "(($ac_try" in
28755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28756   *) ac_try_echo=$ac_try;;
28757 esac
28758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28759   (eval "$ac_compile") 2>conftest.er1
28760   ac_status=$?
28761   grep -v '^ *+' conftest.er1 >conftest.err
28762   rm -f conftest.er1
28763   cat conftest.err >&5
28764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765   (exit $ac_status); } &&
28766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28767   { (case "(($ac_try" in
28768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28769   *) ac_try_echo=$ac_try;;
28770 esac
28771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28772   (eval "$ac_try") 2>&5
28773   ac_status=$?
28774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775   (exit $ac_status); }; } &&
28776          { ac_try='test -s conftest.$ac_objext'
28777   { (case "(($ac_try" in
28778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28779   *) ac_try_echo=$ac_try;;
28780 esac
28781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28782   (eval "$ac_try") 2>&5
28783   ac_status=$?
28784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785   (exit $ac_status); }; }; then
28786   ac_cv_header_time=yes
28787 else
28788   echo "$as_me: failed program was:" >&5
28789 sed 's/^/| /' conftest.$ac_ext >&5
28790
28791         ac_cv_header_time=no
28792 fi
28793
28794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28795 fi
28796 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28797 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28798 if test $ac_cv_header_time = yes; then
28799
28800 cat >>confdefs.h <<\_ACEOF
28801 #define TIME_WITH_SYS_TIME 1
28802 _ACEOF
28803
28804 fi
28805
28806
28807
28808
28809
28810
28811
28812
28813 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28814 do
28815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28817   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28820   echo $ECHO_N "(cached) $ECHO_C" >&6
28821 fi
28822 ac_res=`eval echo '${'$as_ac_Header'}'`
28823                { echo "$as_me:$LINENO: result: $ac_res" >&5
28824 echo "${ECHO_T}$ac_res" >&6; }
28825 else
28826   # Is the header compilable?
28827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28829 cat >conftest.$ac_ext <<_ACEOF
28830 /* confdefs.h.  */
28831 _ACEOF
28832 cat confdefs.h >>conftest.$ac_ext
28833 cat >>conftest.$ac_ext <<_ACEOF
28834 /* end confdefs.h.  */
28835 $ac_includes_default
28836 #include <$ac_header>
28837 _ACEOF
28838 rm -f conftest.$ac_objext
28839 if { (ac_try="$ac_compile"
28840 case "(($ac_try" in
28841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28842   *) ac_try_echo=$ac_try;;
28843 esac
28844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28845   (eval "$ac_compile") 2>conftest.er1
28846   ac_status=$?
28847   grep -v '^ *+' conftest.er1 >conftest.err
28848   rm -f conftest.er1
28849   cat conftest.err >&5
28850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28851   (exit $ac_status); } &&
28852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28853   { (case "(($ac_try" in
28854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28855   *) ac_try_echo=$ac_try;;
28856 esac
28857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28858   (eval "$ac_try") 2>&5
28859   ac_status=$?
28860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861   (exit $ac_status); }; } &&
28862          { ac_try='test -s conftest.$ac_objext'
28863   { (case "(($ac_try" in
28864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865   *) ac_try_echo=$ac_try;;
28866 esac
28867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28868   (eval "$ac_try") 2>&5
28869   ac_status=$?
28870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871   (exit $ac_status); }; }; then
28872   ac_header_compiler=yes
28873 else
28874   echo "$as_me: failed program was:" >&5
28875 sed 's/^/| /' conftest.$ac_ext >&5
28876
28877         ac_header_compiler=no
28878 fi
28879
28880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28882 echo "${ECHO_T}$ac_header_compiler" >&6; }
28883
28884 # Is the header present?
28885 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28887 cat >conftest.$ac_ext <<_ACEOF
28888 /* confdefs.h.  */
28889 _ACEOF
28890 cat confdefs.h >>conftest.$ac_ext
28891 cat >>conftest.$ac_ext <<_ACEOF
28892 /* end confdefs.h.  */
28893 #include <$ac_header>
28894 _ACEOF
28895 if { (ac_try="$ac_cpp conftest.$ac_ext"
28896 case "(($ac_try" in
28897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28898   *) ac_try_echo=$ac_try;;
28899 esac
28900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28901   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28902   ac_status=$?
28903   grep -v '^ *+' conftest.er1 >conftest.err
28904   rm -f conftest.er1
28905   cat conftest.err >&5
28906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907   (exit $ac_status); } >/dev/null; then
28908   if test -s conftest.err; then
28909     ac_cpp_err=$ac_c_preproc_warn_flag
28910     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28911   else
28912     ac_cpp_err=
28913   fi
28914 else
28915   ac_cpp_err=yes
28916 fi
28917 if test -z "$ac_cpp_err"; then
28918   ac_header_preproc=yes
28919 else
28920   echo "$as_me: failed program was:" >&5
28921 sed 's/^/| /' conftest.$ac_ext >&5
28922
28923   ac_header_preproc=no
28924 fi
28925
28926 rm -f conftest.err conftest.$ac_ext
28927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28928 echo "${ECHO_T}$ac_header_preproc" >&6; }
28929
28930 # So?  What about this header?
28931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28932   yes:no: )
28933     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28937     ac_header_preproc=yes
28938     ;;
28939   no:yes:* )
28940     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28942     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28943 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28944     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28946     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28947 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28950     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28952     ( cat <<\_ASBOX
28953 ## ----------------------------------- ##
28954 ## Report this to llvmbugs@cs.uiuc.edu ##
28955 ## ----------------------------------- ##
28956 _ASBOX
28957      ) | sed "s/^/$as_me: WARNING:     /" >&2
28958     ;;
28959 esac
28960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28963   echo $ECHO_N "(cached) $ECHO_C" >&6
28964 else
28965   eval "$as_ac_Header=\$ac_header_preproc"
28966 fi
28967 ac_res=`eval echo '${'$as_ac_Header'}'`
28968                { echo "$as_me:$LINENO: result: $ac_res" >&5
28969 echo "${ECHO_T}$ac_res" >&6; }
28970
28971 fi
28972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28973   cat >>confdefs.h <<_ACEOF
28974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28975 _ACEOF
28976
28977 fi
28978
28979 done
28980
28981
28982
28983
28984
28985
28986
28987 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28988 do
28989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28991   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28994   echo $ECHO_N "(cached) $ECHO_C" >&6
28995 fi
28996 ac_res=`eval echo '${'$as_ac_Header'}'`
28997                { echo "$as_me:$LINENO: result: $ac_res" >&5
28998 echo "${ECHO_T}$ac_res" >&6; }
28999 else
29000   # Is the header compilable?
29001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29003 cat >conftest.$ac_ext <<_ACEOF
29004 /* confdefs.h.  */
29005 _ACEOF
29006 cat confdefs.h >>conftest.$ac_ext
29007 cat >>conftest.$ac_ext <<_ACEOF
29008 /* end confdefs.h.  */
29009 $ac_includes_default
29010 #include <$ac_header>
29011 _ACEOF
29012 rm -f conftest.$ac_objext
29013 if { (ac_try="$ac_compile"
29014 case "(($ac_try" in
29015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29016   *) ac_try_echo=$ac_try;;
29017 esac
29018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29019   (eval "$ac_compile") 2>conftest.er1
29020   ac_status=$?
29021   grep -v '^ *+' conftest.er1 >conftest.err
29022   rm -f conftest.er1
29023   cat conftest.err >&5
29024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025   (exit $ac_status); } &&
29026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29027   { (case "(($ac_try" in
29028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29029   *) ac_try_echo=$ac_try;;
29030 esac
29031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29032   (eval "$ac_try") 2>&5
29033   ac_status=$?
29034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035   (exit $ac_status); }; } &&
29036          { ac_try='test -s conftest.$ac_objext'
29037   { (case "(($ac_try" in
29038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29039   *) ac_try_echo=$ac_try;;
29040 esac
29041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29042   (eval "$ac_try") 2>&5
29043   ac_status=$?
29044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045   (exit $ac_status); }; }; then
29046   ac_header_compiler=yes
29047 else
29048   echo "$as_me: failed program was:" >&5
29049 sed 's/^/| /' conftest.$ac_ext >&5
29050
29051         ac_header_compiler=no
29052 fi
29053
29054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29056 echo "${ECHO_T}$ac_header_compiler" >&6; }
29057
29058 # Is the header present?
29059 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29061 cat >conftest.$ac_ext <<_ACEOF
29062 /* confdefs.h.  */
29063 _ACEOF
29064 cat confdefs.h >>conftest.$ac_ext
29065 cat >>conftest.$ac_ext <<_ACEOF
29066 /* end confdefs.h.  */
29067 #include <$ac_header>
29068 _ACEOF
29069 if { (ac_try="$ac_cpp conftest.$ac_ext"
29070 case "(($ac_try" in
29071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29072   *) ac_try_echo=$ac_try;;
29073 esac
29074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29075   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29076   ac_status=$?
29077   grep -v '^ *+' conftest.er1 >conftest.err
29078   rm -f conftest.er1
29079   cat conftest.err >&5
29080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081   (exit $ac_status); } >/dev/null; then
29082   if test -s conftest.err; then
29083     ac_cpp_err=$ac_c_preproc_warn_flag
29084     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29085   else
29086     ac_cpp_err=
29087   fi
29088 else
29089   ac_cpp_err=yes
29090 fi
29091 if test -z "$ac_cpp_err"; then
29092   ac_header_preproc=yes
29093 else
29094   echo "$as_me: failed program was:" >&5
29095 sed 's/^/| /' conftest.$ac_ext >&5
29096
29097   ac_header_preproc=no
29098 fi
29099
29100 rm -f conftest.err conftest.$ac_ext
29101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29102 echo "${ECHO_T}$ac_header_preproc" >&6; }
29103
29104 # So?  What about this header?
29105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29106   yes:no: )
29107     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29111     ac_header_preproc=yes
29112     ;;
29113   no:yes:* )
29114     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29116     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29117 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29118     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29120     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29121 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29124     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29126     ( cat <<\_ASBOX
29127 ## ----------------------------------- ##
29128 ## Report this to llvmbugs@cs.uiuc.edu ##
29129 ## ----------------------------------- ##
29130 _ASBOX
29131      ) | sed "s/^/$as_me: WARNING:     /" >&2
29132     ;;
29133 esac
29134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29137   echo $ECHO_N "(cached) $ECHO_C" >&6
29138 else
29139   eval "$as_ac_Header=\$ac_header_preproc"
29140 fi
29141 ac_res=`eval echo '${'$as_ac_Header'}'`
29142                { echo "$as_me:$LINENO: result: $ac_res" >&5
29143 echo "${ECHO_T}$ac_res" >&6; }
29144
29145 fi
29146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29147   cat >>confdefs.h <<_ACEOF
29148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29149 _ACEOF
29150
29151 fi
29152
29153 done
29154
29155
29156 for ac_header in windows.h
29157 do
29158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29160   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29163   echo $ECHO_N "(cached) $ECHO_C" >&6
29164 fi
29165 ac_res=`eval echo '${'$as_ac_Header'}'`
29166                { echo "$as_me:$LINENO: result: $ac_res" >&5
29167 echo "${ECHO_T}$ac_res" >&6; }
29168 else
29169   # Is the header compilable?
29170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29172 cat >conftest.$ac_ext <<_ACEOF
29173 /* confdefs.h.  */
29174 _ACEOF
29175 cat confdefs.h >>conftest.$ac_ext
29176 cat >>conftest.$ac_ext <<_ACEOF
29177 /* end confdefs.h.  */
29178 $ac_includes_default
29179 #include <$ac_header>
29180 _ACEOF
29181 rm -f conftest.$ac_objext
29182 if { (ac_try="$ac_compile"
29183 case "(($ac_try" in
29184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29185   *) ac_try_echo=$ac_try;;
29186 esac
29187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29188   (eval "$ac_compile") 2>conftest.er1
29189   ac_status=$?
29190   grep -v '^ *+' conftest.er1 >conftest.err
29191   rm -f conftest.er1
29192   cat conftest.err >&5
29193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194   (exit $ac_status); } &&
29195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29196   { (case "(($ac_try" in
29197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29198   *) ac_try_echo=$ac_try;;
29199 esac
29200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29201   (eval "$ac_try") 2>&5
29202   ac_status=$?
29203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204   (exit $ac_status); }; } &&
29205          { ac_try='test -s conftest.$ac_objext'
29206   { (case "(($ac_try" in
29207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29208   *) ac_try_echo=$ac_try;;
29209 esac
29210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29211   (eval "$ac_try") 2>&5
29212   ac_status=$?
29213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214   (exit $ac_status); }; }; then
29215   ac_header_compiler=yes
29216 else
29217   echo "$as_me: failed program was:" >&5
29218 sed 's/^/| /' conftest.$ac_ext >&5
29219
29220         ac_header_compiler=no
29221 fi
29222
29223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29225 echo "${ECHO_T}$ac_header_compiler" >&6; }
29226
29227 # Is the header present?
29228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29230 cat >conftest.$ac_ext <<_ACEOF
29231 /* confdefs.h.  */
29232 _ACEOF
29233 cat confdefs.h >>conftest.$ac_ext
29234 cat >>conftest.$ac_ext <<_ACEOF
29235 /* end confdefs.h.  */
29236 #include <$ac_header>
29237 _ACEOF
29238 if { (ac_try="$ac_cpp conftest.$ac_ext"
29239 case "(($ac_try" in
29240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29241   *) ac_try_echo=$ac_try;;
29242 esac
29243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29245   ac_status=$?
29246   grep -v '^ *+' conftest.er1 >conftest.err
29247   rm -f conftest.er1
29248   cat conftest.err >&5
29249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250   (exit $ac_status); } >/dev/null; then
29251   if test -s conftest.err; then
29252     ac_cpp_err=$ac_c_preproc_warn_flag
29253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29254   else
29255     ac_cpp_err=
29256   fi
29257 else
29258   ac_cpp_err=yes
29259 fi
29260 if test -z "$ac_cpp_err"; then
29261   ac_header_preproc=yes
29262 else
29263   echo "$as_me: failed program was:" >&5
29264 sed 's/^/| /' conftest.$ac_ext >&5
29265
29266   ac_header_preproc=no
29267 fi
29268
29269 rm -f conftest.err conftest.$ac_ext
29270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29271 echo "${ECHO_T}$ac_header_preproc" >&6; }
29272
29273 # So?  What about this header?
29274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29275   yes:no: )
29276     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29280     ac_header_preproc=yes
29281     ;;
29282   no:yes:* )
29283     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29285     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29286 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29287     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29289     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29290 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29293     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29295     ( cat <<\_ASBOX
29296 ## ----------------------------------- ##
29297 ## Report this to llvmbugs@cs.uiuc.edu ##
29298 ## ----------------------------------- ##
29299 _ASBOX
29300      ) | sed "s/^/$as_me: WARNING:     /" >&2
29301     ;;
29302 esac
29303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29306   echo $ECHO_N "(cached) $ECHO_C" >&6
29307 else
29308   eval "$as_ac_Header=\$ac_header_preproc"
29309 fi
29310 ac_res=`eval echo '${'$as_ac_Header'}'`
29311                { echo "$as_me:$LINENO: result: $ac_res" >&5
29312 echo "${ECHO_T}$ac_res" >&6; }
29313
29314 fi
29315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29316   cat >>confdefs.h <<_ACEOF
29317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29318 _ACEOF
29319
29320 fi
29321
29322 done
29323
29324
29325
29326
29327
29328 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29329 do
29330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29332   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29335   echo $ECHO_N "(cached) $ECHO_C" >&6
29336 fi
29337 ac_res=`eval echo '${'$as_ac_Header'}'`
29338                { echo "$as_me:$LINENO: result: $ac_res" >&5
29339 echo "${ECHO_T}$ac_res" >&6; }
29340 else
29341   # Is the header compilable?
29342 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29344 cat >conftest.$ac_ext <<_ACEOF
29345 /* confdefs.h.  */
29346 _ACEOF
29347 cat confdefs.h >>conftest.$ac_ext
29348 cat >>conftest.$ac_ext <<_ACEOF
29349 /* end confdefs.h.  */
29350 $ac_includes_default
29351 #include <$ac_header>
29352 _ACEOF
29353 rm -f conftest.$ac_objext
29354 if { (ac_try="$ac_compile"
29355 case "(($ac_try" in
29356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29357   *) ac_try_echo=$ac_try;;
29358 esac
29359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29360   (eval "$ac_compile") 2>conftest.er1
29361   ac_status=$?
29362   grep -v '^ *+' conftest.er1 >conftest.err
29363   rm -f conftest.er1
29364   cat conftest.err >&5
29365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29366   (exit $ac_status); } &&
29367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29368   { (case "(($ac_try" in
29369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29370   *) ac_try_echo=$ac_try;;
29371 esac
29372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29373   (eval "$ac_try") 2>&5
29374   ac_status=$?
29375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29376   (exit $ac_status); }; } &&
29377          { ac_try='test -s conftest.$ac_objext'
29378   { (case "(($ac_try" in
29379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29380   *) ac_try_echo=$ac_try;;
29381 esac
29382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29383   (eval "$ac_try") 2>&5
29384   ac_status=$?
29385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386   (exit $ac_status); }; }; then
29387   ac_header_compiler=yes
29388 else
29389   echo "$as_me: failed program was:" >&5
29390 sed 's/^/| /' conftest.$ac_ext >&5
29391
29392         ac_header_compiler=no
29393 fi
29394
29395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29397 echo "${ECHO_T}$ac_header_compiler" >&6; }
29398
29399 # Is the header present?
29400 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29402 cat >conftest.$ac_ext <<_ACEOF
29403 /* confdefs.h.  */
29404 _ACEOF
29405 cat confdefs.h >>conftest.$ac_ext
29406 cat >>conftest.$ac_ext <<_ACEOF
29407 /* end confdefs.h.  */
29408 #include <$ac_header>
29409 _ACEOF
29410 if { (ac_try="$ac_cpp conftest.$ac_ext"
29411 case "(($ac_try" in
29412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29413   *) ac_try_echo=$ac_try;;
29414 esac
29415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29416   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29417   ac_status=$?
29418   grep -v '^ *+' conftest.er1 >conftest.err
29419   rm -f conftest.er1
29420   cat conftest.err >&5
29421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29422   (exit $ac_status); } >/dev/null; then
29423   if test -s conftest.err; then
29424     ac_cpp_err=$ac_c_preproc_warn_flag
29425     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29426   else
29427     ac_cpp_err=
29428   fi
29429 else
29430   ac_cpp_err=yes
29431 fi
29432 if test -z "$ac_cpp_err"; then
29433   ac_header_preproc=yes
29434 else
29435   echo "$as_me: failed program was:" >&5
29436 sed 's/^/| /' conftest.$ac_ext >&5
29437
29438   ac_header_preproc=no
29439 fi
29440
29441 rm -f conftest.err conftest.$ac_ext
29442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29443 echo "${ECHO_T}$ac_header_preproc" >&6; }
29444
29445 # So?  What about this header?
29446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29447   yes:no: )
29448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29452     ac_header_preproc=yes
29453     ;;
29454   no:yes:* )
29455     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29457     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29458 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29459     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29461     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29462 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29465     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29467     ( cat <<\_ASBOX
29468 ## ----------------------------------- ##
29469 ## Report this to llvmbugs@cs.uiuc.edu ##
29470 ## ----------------------------------- ##
29471 _ASBOX
29472      ) | sed "s/^/$as_me: WARNING:     /" >&2
29473     ;;
29474 esac
29475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29478   echo $ECHO_N "(cached) $ECHO_C" >&6
29479 else
29480   eval "$as_ac_Header=\$ac_header_preproc"
29481 fi
29482 ac_res=`eval echo '${'$as_ac_Header'}'`
29483                { echo "$as_me:$LINENO: result: $ac_res" >&5
29484 echo "${ECHO_T}$ac_res" >&6; }
29485
29486 fi
29487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29488   cat >>confdefs.h <<_ACEOF
29489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29490 _ACEOF
29491
29492 fi
29493
29494 done
29495
29496
29497
29498
29499 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29500 do
29501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29503   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29506   echo $ECHO_N "(cached) $ECHO_C" >&6
29507 fi
29508 ac_res=`eval echo '${'$as_ac_Header'}'`
29509                { echo "$as_me:$LINENO: result: $ac_res" >&5
29510 echo "${ECHO_T}$ac_res" >&6; }
29511 else
29512   # Is the header compilable?
29513 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29515 cat >conftest.$ac_ext <<_ACEOF
29516 /* confdefs.h.  */
29517 _ACEOF
29518 cat confdefs.h >>conftest.$ac_ext
29519 cat >>conftest.$ac_ext <<_ACEOF
29520 /* end confdefs.h.  */
29521 $ac_includes_default
29522 #include <$ac_header>
29523 _ACEOF
29524 rm -f conftest.$ac_objext
29525 if { (ac_try="$ac_compile"
29526 case "(($ac_try" in
29527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29528   *) ac_try_echo=$ac_try;;
29529 esac
29530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29531   (eval "$ac_compile") 2>conftest.er1
29532   ac_status=$?
29533   grep -v '^ *+' conftest.er1 >conftest.err
29534   rm -f conftest.er1
29535   cat conftest.err >&5
29536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537   (exit $ac_status); } &&
29538          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29539   { (case "(($ac_try" in
29540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29541   *) ac_try_echo=$ac_try;;
29542 esac
29543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29544   (eval "$ac_try") 2>&5
29545   ac_status=$?
29546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547   (exit $ac_status); }; } &&
29548          { ac_try='test -s conftest.$ac_objext'
29549   { (case "(($ac_try" in
29550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29551   *) ac_try_echo=$ac_try;;
29552 esac
29553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29554   (eval "$ac_try") 2>&5
29555   ac_status=$?
29556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557   (exit $ac_status); }; }; then
29558   ac_header_compiler=yes
29559 else
29560   echo "$as_me: failed program was:" >&5
29561 sed 's/^/| /' conftest.$ac_ext >&5
29562
29563         ac_header_compiler=no
29564 fi
29565
29566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29568 echo "${ECHO_T}$ac_header_compiler" >&6; }
29569
29570 # Is the header present?
29571 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29573 cat >conftest.$ac_ext <<_ACEOF
29574 /* confdefs.h.  */
29575 _ACEOF
29576 cat confdefs.h >>conftest.$ac_ext
29577 cat >>conftest.$ac_ext <<_ACEOF
29578 /* end confdefs.h.  */
29579 #include <$ac_header>
29580 _ACEOF
29581 if { (ac_try="$ac_cpp conftest.$ac_ext"
29582 case "(($ac_try" in
29583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29584   *) ac_try_echo=$ac_try;;
29585 esac
29586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29587   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29588   ac_status=$?
29589   grep -v '^ *+' conftest.er1 >conftest.err
29590   rm -f conftest.er1
29591   cat conftest.err >&5
29592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593   (exit $ac_status); } >/dev/null; then
29594   if test -s conftest.err; then
29595     ac_cpp_err=$ac_c_preproc_warn_flag
29596     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29597   else
29598     ac_cpp_err=
29599   fi
29600 else
29601   ac_cpp_err=yes
29602 fi
29603 if test -z "$ac_cpp_err"; then
29604   ac_header_preproc=yes
29605 else
29606   echo "$as_me: failed program was:" >&5
29607 sed 's/^/| /' conftest.$ac_ext >&5
29608
29609   ac_header_preproc=no
29610 fi
29611
29612 rm -f conftest.err conftest.$ac_ext
29613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29614 echo "${ECHO_T}$ac_header_preproc" >&6; }
29615
29616 # So?  What about this header?
29617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29618   yes:no: )
29619     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29623     ac_header_preproc=yes
29624     ;;
29625   no:yes:* )
29626     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29628     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29629 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29630     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29632     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29633 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29636     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29638     ( cat <<\_ASBOX
29639 ## ----------------------------------- ##
29640 ## Report this to llvmbugs@cs.uiuc.edu ##
29641 ## ----------------------------------- ##
29642 _ASBOX
29643      ) | sed "s/^/$as_me: WARNING:     /" >&2
29644     ;;
29645 esac
29646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29649   echo $ECHO_N "(cached) $ECHO_C" >&6
29650 else
29651   eval "$as_ac_Header=\$ac_header_preproc"
29652 fi
29653 ac_res=`eval echo '${'$as_ac_Header'}'`
29654                { echo "$as_me:$LINENO: result: $ac_res" >&5
29655 echo "${ECHO_T}$ac_res" >&6; }
29656
29657 fi
29658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29659   cat >>confdefs.h <<_ACEOF
29660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29661 _ACEOF
29662
29663 fi
29664
29665 done
29666
29667 if test "$ENABLE_THREADS" -eq 1 ; then
29668
29669 for ac_header in pthread.h
29670 do
29671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29673   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29676   echo $ECHO_N "(cached) $ECHO_C" >&6
29677 fi
29678 ac_res=`eval echo '${'$as_ac_Header'}'`
29679                { echo "$as_me:$LINENO: result: $ac_res" >&5
29680 echo "${ECHO_T}$ac_res" >&6; }
29681 else
29682   # Is the header compilable?
29683 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29685 cat >conftest.$ac_ext <<_ACEOF
29686 /* confdefs.h.  */
29687 _ACEOF
29688 cat confdefs.h >>conftest.$ac_ext
29689 cat >>conftest.$ac_ext <<_ACEOF
29690 /* end confdefs.h.  */
29691 $ac_includes_default
29692 #include <$ac_header>
29693 _ACEOF
29694 rm -f conftest.$ac_objext
29695 if { (ac_try="$ac_compile"
29696 case "(($ac_try" in
29697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29698   *) ac_try_echo=$ac_try;;
29699 esac
29700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29701   (eval "$ac_compile") 2>conftest.er1
29702   ac_status=$?
29703   grep -v '^ *+' conftest.er1 >conftest.err
29704   rm -f conftest.er1
29705   cat conftest.err >&5
29706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707   (exit $ac_status); } &&
29708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29709   { (case "(($ac_try" in
29710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29711   *) ac_try_echo=$ac_try;;
29712 esac
29713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29714   (eval "$ac_try") 2>&5
29715   ac_status=$?
29716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717   (exit $ac_status); }; } &&
29718          { ac_try='test -s conftest.$ac_objext'
29719   { (case "(($ac_try" in
29720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29721   *) ac_try_echo=$ac_try;;
29722 esac
29723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29724   (eval "$ac_try") 2>&5
29725   ac_status=$?
29726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727   (exit $ac_status); }; }; then
29728   ac_header_compiler=yes
29729 else
29730   echo "$as_me: failed program was:" >&5
29731 sed 's/^/| /' conftest.$ac_ext >&5
29732
29733         ac_header_compiler=no
29734 fi
29735
29736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29738 echo "${ECHO_T}$ac_header_compiler" >&6; }
29739
29740 # Is the header present?
29741 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29743 cat >conftest.$ac_ext <<_ACEOF
29744 /* confdefs.h.  */
29745 _ACEOF
29746 cat confdefs.h >>conftest.$ac_ext
29747 cat >>conftest.$ac_ext <<_ACEOF
29748 /* end confdefs.h.  */
29749 #include <$ac_header>
29750 _ACEOF
29751 if { (ac_try="$ac_cpp conftest.$ac_ext"
29752 case "(($ac_try" in
29753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754   *) ac_try_echo=$ac_try;;
29755 esac
29756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29758   ac_status=$?
29759   grep -v '^ *+' conftest.er1 >conftest.err
29760   rm -f conftest.er1
29761   cat conftest.err >&5
29762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763   (exit $ac_status); } >/dev/null; then
29764   if test -s conftest.err; then
29765     ac_cpp_err=$ac_c_preproc_warn_flag
29766     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29767   else
29768     ac_cpp_err=
29769   fi
29770 else
29771   ac_cpp_err=yes
29772 fi
29773 if test -z "$ac_cpp_err"; then
29774   ac_header_preproc=yes
29775 else
29776   echo "$as_me: failed program was:" >&5
29777 sed 's/^/| /' conftest.$ac_ext >&5
29778
29779   ac_header_preproc=no
29780 fi
29781
29782 rm -f conftest.err conftest.$ac_ext
29783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29784 echo "${ECHO_T}$ac_header_preproc" >&6; }
29785
29786 # So?  What about this header?
29787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29788   yes:no: )
29789     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29793     ac_header_preproc=yes
29794     ;;
29795   no:yes:* )
29796     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29798     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29799 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29800     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29802     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29803 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29806     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29808     ( cat <<\_ASBOX
29809 ## ----------------------------------- ##
29810 ## Report this to llvmbugs@cs.uiuc.edu ##
29811 ## ----------------------------------- ##
29812 _ASBOX
29813      ) | sed "s/^/$as_me: WARNING:     /" >&2
29814     ;;
29815 esac
29816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29819   echo $ECHO_N "(cached) $ECHO_C" >&6
29820 else
29821   eval "$as_ac_Header=\$ac_header_preproc"
29822 fi
29823 ac_res=`eval echo '${'$as_ac_Header'}'`
29824                { echo "$as_me:$LINENO: result: $ac_res" >&5
29825 echo "${ECHO_T}$ac_res" >&6; }
29826
29827 fi
29828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29829   cat >>confdefs.h <<_ACEOF
29830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29831 _ACEOF
29832  HAVE_PTHREAD=1
29833
29834 else
29835   HAVE_PTHREAD=0
29836
29837 fi
29838
29839 done
29840
29841 else
29842   HAVE_PTHREAD=0
29843
29844 fi
29845
29846 if test -n "$have_libffi" ; then
29847
29848
29849 for ac_header in ffi.h ffi/ffi.h
29850 do
29851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29853   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29856   echo $ECHO_N "(cached) $ECHO_C" >&6
29857 fi
29858 ac_res=`eval echo '${'$as_ac_Header'}'`
29859                { echo "$as_me:$LINENO: result: $ac_res" >&5
29860 echo "${ECHO_T}$ac_res" >&6; }
29861 else
29862   # Is the header compilable?
29863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29865 cat >conftest.$ac_ext <<_ACEOF
29866 /* confdefs.h.  */
29867 _ACEOF
29868 cat confdefs.h >>conftest.$ac_ext
29869 cat >>conftest.$ac_ext <<_ACEOF
29870 /* end confdefs.h.  */
29871 $ac_includes_default
29872 #include <$ac_header>
29873 _ACEOF
29874 rm -f conftest.$ac_objext
29875 if { (ac_try="$ac_compile"
29876 case "(($ac_try" in
29877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29878   *) ac_try_echo=$ac_try;;
29879 esac
29880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29881   (eval "$ac_compile") 2>conftest.er1
29882   ac_status=$?
29883   grep -v '^ *+' conftest.er1 >conftest.err
29884   rm -f conftest.er1
29885   cat conftest.err >&5
29886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887   (exit $ac_status); } &&
29888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29889   { (case "(($ac_try" in
29890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29891   *) ac_try_echo=$ac_try;;
29892 esac
29893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29894   (eval "$ac_try") 2>&5
29895   ac_status=$?
29896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897   (exit $ac_status); }; } &&
29898          { ac_try='test -s conftest.$ac_objext'
29899   { (case "(($ac_try" in
29900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29901   *) ac_try_echo=$ac_try;;
29902 esac
29903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29904   (eval "$ac_try") 2>&5
29905   ac_status=$?
29906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907   (exit $ac_status); }; }; then
29908   ac_header_compiler=yes
29909 else
29910   echo "$as_me: failed program was:" >&5
29911 sed 's/^/| /' conftest.$ac_ext >&5
29912
29913         ac_header_compiler=no
29914 fi
29915
29916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29918 echo "${ECHO_T}$ac_header_compiler" >&6; }
29919
29920 # Is the header present?
29921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29923 cat >conftest.$ac_ext <<_ACEOF
29924 /* confdefs.h.  */
29925 _ACEOF
29926 cat confdefs.h >>conftest.$ac_ext
29927 cat >>conftest.$ac_ext <<_ACEOF
29928 /* end confdefs.h.  */
29929 #include <$ac_header>
29930 _ACEOF
29931 if { (ac_try="$ac_cpp conftest.$ac_ext"
29932 case "(($ac_try" in
29933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934   *) ac_try_echo=$ac_try;;
29935 esac
29936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29938   ac_status=$?
29939   grep -v '^ *+' conftest.er1 >conftest.err
29940   rm -f conftest.er1
29941   cat conftest.err >&5
29942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943   (exit $ac_status); } >/dev/null; then
29944   if test -s conftest.err; then
29945     ac_cpp_err=$ac_c_preproc_warn_flag
29946     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29947   else
29948     ac_cpp_err=
29949   fi
29950 else
29951   ac_cpp_err=yes
29952 fi
29953 if test -z "$ac_cpp_err"; then
29954   ac_header_preproc=yes
29955 else
29956   echo "$as_me: failed program was:" >&5
29957 sed 's/^/| /' conftest.$ac_ext >&5
29958
29959   ac_header_preproc=no
29960 fi
29961
29962 rm -f conftest.err conftest.$ac_ext
29963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29964 echo "${ECHO_T}$ac_header_preproc" >&6; }
29965
29966 # So?  What about this header?
29967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29968   yes:no: )
29969     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29971     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29973     ac_header_preproc=yes
29974     ;;
29975   no:yes:* )
29976     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29978     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29979 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29980     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29982     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29983 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29986     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29988     ( cat <<\_ASBOX
29989 ## ----------------------------------- ##
29990 ## Report this to llvmbugs@cs.uiuc.edu ##
29991 ## ----------------------------------- ##
29992 _ASBOX
29993      ) | sed "s/^/$as_me: WARNING:     /" >&2
29994     ;;
29995 esac
29996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29999   echo $ECHO_N "(cached) $ECHO_C" >&6
30000 else
30001   eval "$as_ac_Header=\$ac_header_preproc"
30002 fi
30003 ac_res=`eval echo '${'$as_ac_Header'}'`
30004                { echo "$as_me:$LINENO: result: $ac_res" >&5
30005 echo "${ECHO_T}$ac_res" >&6; }
30006
30007 fi
30008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30009   cat >>confdefs.h <<_ACEOF
30010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30011 _ACEOF
30012  HAVE_FFI=1
30013
30014 fi
30015
30016 done
30017
30018 fi
30019
30020
30021
30022   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30023 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30024 if test "${ac_cv_huge_val_sanity+set}" = set; then
30025   echo $ECHO_N "(cached) $ECHO_C" >&6
30026 else
30027
30028     ac_ext=cpp
30029 ac_cpp='$CXXCPP $CPPFLAGS'
30030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30033
30034     CXXFLAGS=-pedantic
30035     if test "$cross_compiling" = yes; then
30036   ac_cv_huge_val_sanity=yes
30037 else
30038   cat >conftest.$ac_ext <<_ACEOF
30039 /* confdefs.h.  */
30040 _ACEOF
30041 cat confdefs.h >>conftest.$ac_ext
30042 cat >>conftest.$ac_ext <<_ACEOF
30043 /* end confdefs.h.  */
30044 #include <math.h>
30045 int
30046 main ()
30047 {
30048 double x = HUGE_VAL; return x != x;
30049   ;
30050   return 0;
30051 }
30052 _ACEOF
30053 rm -f conftest$ac_exeext
30054 if { (ac_try="$ac_link"
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_link") 2>&5
30061   ac_status=$?
30062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30064   { (case "(($ac_try" in
30065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30066   *) ac_try_echo=$ac_try;;
30067 esac
30068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30069   (eval "$ac_try") 2>&5
30070   ac_status=$?
30071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072   (exit $ac_status); }; }; then
30073   ac_cv_huge_val_sanity=yes
30074 else
30075   echo "$as_me: program exited with status $ac_status" >&5
30076 echo "$as_me: failed program was:" >&5
30077 sed 's/^/| /' conftest.$ac_ext >&5
30078
30079 ( exit $ac_status )
30080 ac_cv_huge_val_sanity=no
30081 fi
30082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30083 fi
30084
30085
30086     ac_ext=c
30087 ac_cpp='$CPP $CPPFLAGS'
30088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30091
30092
30093 fi
30094 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30095 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30096   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30097
30098
30099 { echo "$as_me:$LINENO: checking for pid_t" >&5
30100 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30101 if test "${ac_cv_type_pid_t+set}" = set; then
30102   echo $ECHO_N "(cached) $ECHO_C" >&6
30103 else
30104   cat >conftest.$ac_ext <<_ACEOF
30105 /* confdefs.h.  */
30106 _ACEOF
30107 cat confdefs.h >>conftest.$ac_ext
30108 cat >>conftest.$ac_ext <<_ACEOF
30109 /* end confdefs.h.  */
30110 $ac_includes_default
30111 typedef pid_t ac__type_new_;
30112 int
30113 main ()
30114 {
30115 if ((ac__type_new_ *) 0)
30116   return 0;
30117 if (sizeof (ac__type_new_))
30118   return 0;
30119   ;
30120   return 0;
30121 }
30122 _ACEOF
30123 rm -f conftest.$ac_objext
30124 if { (ac_try="$ac_compile"
30125 case "(($ac_try" in
30126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30127   *) ac_try_echo=$ac_try;;
30128 esac
30129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30130   (eval "$ac_compile") 2>conftest.er1
30131   ac_status=$?
30132   grep -v '^ *+' conftest.er1 >conftest.err
30133   rm -f conftest.er1
30134   cat conftest.err >&5
30135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136   (exit $ac_status); } &&
30137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30138   { (case "(($ac_try" in
30139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30140   *) ac_try_echo=$ac_try;;
30141 esac
30142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30143   (eval "$ac_try") 2>&5
30144   ac_status=$?
30145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146   (exit $ac_status); }; } &&
30147          { ac_try='test -s conftest.$ac_objext'
30148   { (case "(($ac_try" in
30149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30150   *) ac_try_echo=$ac_try;;
30151 esac
30152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30153   (eval "$ac_try") 2>&5
30154   ac_status=$?
30155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156   (exit $ac_status); }; }; then
30157   ac_cv_type_pid_t=yes
30158 else
30159   echo "$as_me: failed program was:" >&5
30160 sed 's/^/| /' conftest.$ac_ext >&5
30161
30162         ac_cv_type_pid_t=no
30163 fi
30164
30165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30166 fi
30167 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30168 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30169 if test $ac_cv_type_pid_t = yes; then
30170   :
30171 else
30172
30173 cat >>confdefs.h <<_ACEOF
30174 #define pid_t int
30175 _ACEOF
30176
30177 fi
30178
30179 { echo "$as_me:$LINENO: checking for size_t" >&5
30180 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30181 if test "${ac_cv_type_size_t+set}" = set; then
30182   echo $ECHO_N "(cached) $ECHO_C" >&6
30183 else
30184   cat >conftest.$ac_ext <<_ACEOF
30185 /* confdefs.h.  */
30186 _ACEOF
30187 cat confdefs.h >>conftest.$ac_ext
30188 cat >>conftest.$ac_ext <<_ACEOF
30189 /* end confdefs.h.  */
30190 $ac_includes_default
30191 typedef size_t ac__type_new_;
30192 int
30193 main ()
30194 {
30195 if ((ac__type_new_ *) 0)
30196   return 0;
30197 if (sizeof (ac__type_new_))
30198   return 0;
30199   ;
30200   return 0;
30201 }
30202 _ACEOF
30203 rm -f conftest.$ac_objext
30204 if { (ac_try="$ac_compile"
30205 case "(($ac_try" in
30206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30207   *) ac_try_echo=$ac_try;;
30208 esac
30209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30210   (eval "$ac_compile") 2>conftest.er1
30211   ac_status=$?
30212   grep -v '^ *+' conftest.er1 >conftest.err
30213   rm -f conftest.er1
30214   cat conftest.err >&5
30215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216   (exit $ac_status); } &&
30217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30218   { (case "(($ac_try" in
30219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30220   *) ac_try_echo=$ac_try;;
30221 esac
30222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30223   (eval "$ac_try") 2>&5
30224   ac_status=$?
30225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226   (exit $ac_status); }; } &&
30227          { ac_try='test -s conftest.$ac_objext'
30228   { (case "(($ac_try" in
30229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30230   *) ac_try_echo=$ac_try;;
30231 esac
30232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30233   (eval "$ac_try") 2>&5
30234   ac_status=$?
30235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236   (exit $ac_status); }; }; then
30237   ac_cv_type_size_t=yes
30238 else
30239   echo "$as_me: failed program was:" >&5
30240 sed 's/^/| /' conftest.$ac_ext >&5
30241
30242         ac_cv_type_size_t=no
30243 fi
30244
30245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30246 fi
30247 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30248 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30249 if test $ac_cv_type_size_t = yes; then
30250   :
30251 else
30252
30253 cat >>confdefs.h <<_ACEOF
30254 #define size_t unsigned int
30255 _ACEOF
30256
30257 fi
30258
30259 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30260 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30261 if test "${ac_cv_type_signal+set}" = set; then
30262   echo $ECHO_N "(cached) $ECHO_C" >&6
30263 else
30264   cat >conftest.$ac_ext <<_ACEOF
30265 /* confdefs.h.  */
30266 _ACEOF
30267 cat confdefs.h >>conftest.$ac_ext
30268 cat >>conftest.$ac_ext <<_ACEOF
30269 /* end confdefs.h.  */
30270 #include <sys/types.h>
30271 #include <signal.h>
30272
30273 int
30274 main ()
30275 {
30276 return *(signal (0, 0)) (0) == 1;
30277   ;
30278   return 0;
30279 }
30280 _ACEOF
30281 rm -f conftest.$ac_objext
30282 if { (ac_try="$ac_compile"
30283 case "(($ac_try" in
30284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30285   *) ac_try_echo=$ac_try;;
30286 esac
30287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30288   (eval "$ac_compile") 2>conftest.er1
30289   ac_status=$?
30290   grep -v '^ *+' conftest.er1 >conftest.err
30291   rm -f conftest.er1
30292   cat conftest.err >&5
30293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30294   (exit $ac_status); } &&
30295          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30296   { (case "(($ac_try" in
30297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30298   *) ac_try_echo=$ac_try;;
30299 esac
30300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30301   (eval "$ac_try") 2>&5
30302   ac_status=$?
30303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304   (exit $ac_status); }; } &&
30305          { ac_try='test -s conftest.$ac_objext'
30306   { (case "(($ac_try" in
30307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30308   *) ac_try_echo=$ac_try;;
30309 esac
30310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30311   (eval "$ac_try") 2>&5
30312   ac_status=$?
30313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314   (exit $ac_status); }; }; then
30315   ac_cv_type_signal=int
30316 else
30317   echo "$as_me: failed program was:" >&5
30318 sed 's/^/| /' conftest.$ac_ext >&5
30319
30320         ac_cv_type_signal=void
30321 fi
30322
30323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30324 fi
30325 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30326 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30327
30328 cat >>confdefs.h <<_ACEOF
30329 #define RETSIGTYPE $ac_cv_type_signal
30330 _ACEOF
30331
30332
30333 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30334 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30335 if test "${ac_cv_struct_tm+set}" = set; then
30336   echo $ECHO_N "(cached) $ECHO_C" >&6
30337 else
30338   cat >conftest.$ac_ext <<_ACEOF
30339 /* confdefs.h.  */
30340 _ACEOF
30341 cat confdefs.h >>conftest.$ac_ext
30342 cat >>conftest.$ac_ext <<_ACEOF
30343 /* end confdefs.h.  */
30344 #include <sys/types.h>
30345 #include <time.h>
30346
30347 int
30348 main ()
30349 {
30350 struct tm *tp; tp->tm_sec;
30351   ;
30352   return 0;
30353 }
30354 _ACEOF
30355 rm -f conftest.$ac_objext
30356 if { (ac_try="$ac_compile"
30357 case "(($ac_try" in
30358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30359   *) ac_try_echo=$ac_try;;
30360 esac
30361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30362   (eval "$ac_compile") 2>conftest.er1
30363   ac_status=$?
30364   grep -v '^ *+' conftest.er1 >conftest.err
30365   rm -f conftest.er1
30366   cat conftest.err >&5
30367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368   (exit $ac_status); } &&
30369          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30370   { (case "(($ac_try" in
30371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30372   *) ac_try_echo=$ac_try;;
30373 esac
30374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30375   (eval "$ac_try") 2>&5
30376   ac_status=$?
30377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378   (exit $ac_status); }; } &&
30379          { ac_try='test -s conftest.$ac_objext'
30380   { (case "(($ac_try" in
30381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30382   *) ac_try_echo=$ac_try;;
30383 esac
30384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30385   (eval "$ac_try") 2>&5
30386   ac_status=$?
30387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388   (exit $ac_status); }; }; then
30389   ac_cv_struct_tm=time.h
30390 else
30391   echo "$as_me: failed program was:" >&5
30392 sed 's/^/| /' conftest.$ac_ext >&5
30393
30394         ac_cv_struct_tm=sys/time.h
30395 fi
30396
30397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30398 fi
30399 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30400 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30401 if test $ac_cv_struct_tm = sys/time.h; then
30402
30403 cat >>confdefs.h <<\_ACEOF
30404 #define TM_IN_SYS_TIME 1
30405 _ACEOF
30406
30407 fi
30408
30409 { echo "$as_me:$LINENO: checking for int64_t" >&5
30410 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30411 if test "${ac_cv_type_int64_t+set}" = set; then
30412   echo $ECHO_N "(cached) $ECHO_C" >&6
30413 else
30414   cat >conftest.$ac_ext <<_ACEOF
30415 /* confdefs.h.  */
30416 _ACEOF
30417 cat confdefs.h >>conftest.$ac_ext
30418 cat >>conftest.$ac_ext <<_ACEOF
30419 /* end confdefs.h.  */
30420 $ac_includes_default
30421 typedef int64_t ac__type_new_;
30422 int
30423 main ()
30424 {
30425 if ((ac__type_new_ *) 0)
30426   return 0;
30427 if (sizeof (ac__type_new_))
30428   return 0;
30429   ;
30430   return 0;
30431 }
30432 _ACEOF
30433 rm -f conftest.$ac_objext
30434 if { (ac_try="$ac_compile"
30435 case "(($ac_try" in
30436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30437   *) ac_try_echo=$ac_try;;
30438 esac
30439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30440   (eval "$ac_compile") 2>conftest.er1
30441   ac_status=$?
30442   grep -v '^ *+' conftest.er1 >conftest.err
30443   rm -f conftest.er1
30444   cat conftest.err >&5
30445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30446   (exit $ac_status); } &&
30447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30448   { (case "(($ac_try" in
30449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30450   *) ac_try_echo=$ac_try;;
30451 esac
30452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30453   (eval "$ac_try") 2>&5
30454   ac_status=$?
30455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456   (exit $ac_status); }; } &&
30457          { ac_try='test -s conftest.$ac_objext'
30458   { (case "(($ac_try" in
30459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460   *) ac_try_echo=$ac_try;;
30461 esac
30462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30463   (eval "$ac_try") 2>&5
30464   ac_status=$?
30465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30466   (exit $ac_status); }; }; then
30467   ac_cv_type_int64_t=yes
30468 else
30469   echo "$as_me: failed program was:" >&5
30470 sed 's/^/| /' conftest.$ac_ext >&5
30471
30472         ac_cv_type_int64_t=no
30473 fi
30474
30475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30476 fi
30477 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30478 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30479 if test $ac_cv_type_int64_t = yes; then
30480
30481 cat >>confdefs.h <<_ACEOF
30482 #define HAVE_INT64_T 1
30483 _ACEOF
30484
30485
30486 else
30487   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30488 echo "$as_me: error: Type int64_t required but not found" >&2;}
30489    { (exit 1); exit 1; }; }
30490 fi
30491
30492 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30493 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30494 if test "${ac_cv_type_uint64_t+set}" = set; then
30495   echo $ECHO_N "(cached) $ECHO_C" >&6
30496 else
30497   cat >conftest.$ac_ext <<_ACEOF
30498 /* confdefs.h.  */
30499 _ACEOF
30500 cat confdefs.h >>conftest.$ac_ext
30501 cat >>conftest.$ac_ext <<_ACEOF
30502 /* end confdefs.h.  */
30503 $ac_includes_default
30504 typedef uint64_t ac__type_new_;
30505 int
30506 main ()
30507 {
30508 if ((ac__type_new_ *) 0)
30509   return 0;
30510 if (sizeof (ac__type_new_))
30511   return 0;
30512   ;
30513   return 0;
30514 }
30515 _ACEOF
30516 rm -f conftest.$ac_objext
30517 if { (ac_try="$ac_compile"
30518 case "(($ac_try" in
30519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30520   *) ac_try_echo=$ac_try;;
30521 esac
30522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30523   (eval "$ac_compile") 2>conftest.er1
30524   ac_status=$?
30525   grep -v '^ *+' conftest.er1 >conftest.err
30526   rm -f conftest.er1
30527   cat conftest.err >&5
30528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529   (exit $ac_status); } &&
30530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30531   { (case "(($ac_try" in
30532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533   *) ac_try_echo=$ac_try;;
30534 esac
30535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536   (eval "$ac_try") 2>&5
30537   ac_status=$?
30538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539   (exit $ac_status); }; } &&
30540          { ac_try='test -s conftest.$ac_objext'
30541   { (case "(($ac_try" in
30542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30543   *) ac_try_echo=$ac_try;;
30544 esac
30545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30546   (eval "$ac_try") 2>&5
30547   ac_status=$?
30548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549   (exit $ac_status); }; }; then
30550   ac_cv_type_uint64_t=yes
30551 else
30552   echo "$as_me: failed program was:" >&5
30553 sed 's/^/| /' conftest.$ac_ext >&5
30554
30555         ac_cv_type_uint64_t=no
30556 fi
30557
30558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30559 fi
30560 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30561 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30562 if test $ac_cv_type_uint64_t = yes; then
30563
30564 cat >>confdefs.h <<_ACEOF
30565 #define HAVE_UINT64_T 1
30566 _ACEOF
30567
30568
30569 else
30570   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30571 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30572 if test "${ac_cv_type_u_int64_t+set}" = set; then
30573   echo $ECHO_N "(cached) $ECHO_C" >&6
30574 else
30575   cat >conftest.$ac_ext <<_ACEOF
30576 /* confdefs.h.  */
30577 _ACEOF
30578 cat confdefs.h >>conftest.$ac_ext
30579 cat >>conftest.$ac_ext <<_ACEOF
30580 /* end confdefs.h.  */
30581 $ac_includes_default
30582 typedef u_int64_t ac__type_new_;
30583 int
30584 main ()
30585 {
30586 if ((ac__type_new_ *) 0)
30587   return 0;
30588 if (sizeof (ac__type_new_))
30589   return 0;
30590   ;
30591   return 0;
30592 }
30593 _ACEOF
30594 rm -f conftest.$ac_objext
30595 if { (ac_try="$ac_compile"
30596 case "(($ac_try" in
30597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30598   *) ac_try_echo=$ac_try;;
30599 esac
30600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30601   (eval "$ac_compile") 2>conftest.er1
30602   ac_status=$?
30603   grep -v '^ *+' conftest.er1 >conftest.err
30604   rm -f conftest.er1
30605   cat conftest.err >&5
30606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607   (exit $ac_status); } &&
30608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30609   { (case "(($ac_try" in
30610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30611   *) ac_try_echo=$ac_try;;
30612 esac
30613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30614   (eval "$ac_try") 2>&5
30615   ac_status=$?
30616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617   (exit $ac_status); }; } &&
30618          { ac_try='test -s conftest.$ac_objext'
30619   { (case "(($ac_try" in
30620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30621   *) ac_try_echo=$ac_try;;
30622 esac
30623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30624   (eval "$ac_try") 2>&5
30625   ac_status=$?
30626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627   (exit $ac_status); }; }; then
30628   ac_cv_type_u_int64_t=yes
30629 else
30630   echo "$as_me: failed program was:" >&5
30631 sed 's/^/| /' conftest.$ac_ext >&5
30632
30633         ac_cv_type_u_int64_t=no
30634 fi
30635
30636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30637 fi
30638 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30639 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30640 if test $ac_cv_type_u_int64_t = yes; then
30641
30642 cat >>confdefs.h <<_ACEOF
30643 #define HAVE_U_INT64_T 1
30644 _ACEOF
30645
30646
30647 else
30648   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30649 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30650    { (exit 1); exit 1; }; }
30651 fi
30652
30653 fi
30654
30655
30656
30657
30658
30659
30660
30661
30662
30663
30664 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30665 do
30666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30667 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30669 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30670   echo $ECHO_N "(cached) $ECHO_C" >&6
30671 else
30672   cat >conftest.$ac_ext <<_ACEOF
30673 /* confdefs.h.  */
30674 _ACEOF
30675 cat confdefs.h >>conftest.$ac_ext
30676 cat >>conftest.$ac_ext <<_ACEOF
30677 /* end confdefs.h.  */
30678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30679    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30680 #define $ac_func innocuous_$ac_func
30681
30682 /* System header to define __stub macros and hopefully few prototypes,
30683     which can conflict with char $ac_func (); below.
30684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30685     <limits.h> exists even on freestanding compilers.  */
30686
30687 #ifdef __STDC__
30688 # include <limits.h>
30689 #else
30690 # include <assert.h>
30691 #endif
30692
30693 #undef $ac_func
30694
30695 /* Override any GCC internal prototype to avoid an error.
30696    Use char because int might match the return type of a GCC
30697    builtin and then its argument prototype would still apply.  */
30698 #ifdef __cplusplus
30699 extern "C"
30700 #endif
30701 char $ac_func ();
30702 /* The GNU C library defines this for functions which it implements
30703     to always fail with ENOSYS.  Some functions are actually named
30704     something starting with __ and the normal name is an alias.  */
30705 #if defined __stub_$ac_func || defined __stub___$ac_func
30706 choke me
30707 #endif
30708
30709 int
30710 main ()
30711 {
30712 return $ac_func ();
30713   ;
30714   return 0;
30715 }
30716 _ACEOF
30717 rm -f conftest.$ac_objext conftest$ac_exeext
30718 if { (ac_try="$ac_link"
30719 case "(($ac_try" in
30720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30721   *) ac_try_echo=$ac_try;;
30722 esac
30723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30724   (eval "$ac_link") 2>conftest.er1
30725   ac_status=$?
30726   grep -v '^ *+' conftest.er1 >conftest.err
30727   rm -f conftest.er1
30728   cat conftest.err >&5
30729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730   (exit $ac_status); } &&
30731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30732   { (case "(($ac_try" in
30733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30734   *) ac_try_echo=$ac_try;;
30735 esac
30736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30737   (eval "$ac_try") 2>&5
30738   ac_status=$?
30739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740   (exit $ac_status); }; } &&
30741          { ac_try='test -s conftest$ac_exeext'
30742   { (case "(($ac_try" in
30743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30744   *) ac_try_echo=$ac_try;;
30745 esac
30746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30747   (eval "$ac_try") 2>&5
30748   ac_status=$?
30749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750   (exit $ac_status); }; }; then
30751   eval "$as_ac_var=yes"
30752 else
30753   echo "$as_me: failed program was:" >&5
30754 sed 's/^/| /' conftest.$ac_ext >&5
30755
30756         eval "$as_ac_var=no"
30757 fi
30758
30759 rm -f core conftest.err conftest.$ac_objext \
30760       conftest$ac_exeext conftest.$ac_ext
30761 fi
30762 ac_res=`eval echo '${'$as_ac_var'}'`
30763                { echo "$as_me:$LINENO: result: $ac_res" >&5
30764 echo "${ECHO_T}$ac_res" >&6; }
30765 if test `eval echo '${'$as_ac_var'}'` = yes; then
30766   cat >>confdefs.h <<_ACEOF
30767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30768 _ACEOF
30769
30770 fi
30771 done
30772
30773
30774
30775
30776
30777 for ac_func in powf fmodf strtof round
30778 do
30779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30780 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30783   echo $ECHO_N "(cached) $ECHO_C" >&6
30784 else
30785   cat >conftest.$ac_ext <<_ACEOF
30786 /* confdefs.h.  */
30787 _ACEOF
30788 cat confdefs.h >>conftest.$ac_ext
30789 cat >>conftest.$ac_ext <<_ACEOF
30790 /* end confdefs.h.  */
30791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30793 #define $ac_func innocuous_$ac_func
30794
30795 /* System header to define __stub macros and hopefully few prototypes,
30796     which can conflict with char $ac_func (); below.
30797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30798     <limits.h> exists even on freestanding compilers.  */
30799
30800 #ifdef __STDC__
30801 # include <limits.h>
30802 #else
30803 # include <assert.h>
30804 #endif
30805
30806 #undef $ac_func
30807
30808 /* Override any GCC internal prototype to avoid an error.
30809    Use char because int might match the return type of a GCC
30810    builtin and then its argument prototype would still apply.  */
30811 #ifdef __cplusplus
30812 extern "C"
30813 #endif
30814 char $ac_func ();
30815 /* The GNU C library defines this for functions which it implements
30816     to always fail with ENOSYS.  Some functions are actually named
30817     something starting with __ and the normal name is an alias.  */
30818 #if defined __stub_$ac_func || defined __stub___$ac_func
30819 choke me
30820 #endif
30821
30822 int
30823 main ()
30824 {
30825 return $ac_func ();
30826   ;
30827   return 0;
30828 }
30829 _ACEOF
30830 rm -f conftest.$ac_objext conftest$ac_exeext
30831 if { (ac_try="$ac_link"
30832 case "(($ac_try" in
30833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30834   *) ac_try_echo=$ac_try;;
30835 esac
30836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30837   (eval "$ac_link") 2>conftest.er1
30838   ac_status=$?
30839   grep -v '^ *+' conftest.er1 >conftest.err
30840   rm -f conftest.er1
30841   cat conftest.err >&5
30842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30843   (exit $ac_status); } &&
30844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30845   { (case "(($ac_try" in
30846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30847   *) ac_try_echo=$ac_try;;
30848 esac
30849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30850   (eval "$ac_try") 2>&5
30851   ac_status=$?
30852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853   (exit $ac_status); }; } &&
30854          { ac_try='test -s conftest$ac_exeext'
30855   { (case "(($ac_try" in
30856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30857   *) ac_try_echo=$ac_try;;
30858 esac
30859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30860   (eval "$ac_try") 2>&5
30861   ac_status=$?
30862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863   (exit $ac_status); }; }; then
30864   eval "$as_ac_var=yes"
30865 else
30866   echo "$as_me: failed program was:" >&5
30867 sed 's/^/| /' conftest.$ac_ext >&5
30868
30869         eval "$as_ac_var=no"
30870 fi
30871
30872 rm -f core conftest.err conftest.$ac_objext \
30873       conftest$ac_exeext conftest.$ac_ext
30874 fi
30875 ac_res=`eval echo '${'$as_ac_var'}'`
30876                { echo "$as_me:$LINENO: result: $ac_res" >&5
30877 echo "${ECHO_T}$ac_res" >&6; }
30878 if test `eval echo '${'$as_ac_var'}'` = yes; then
30879   cat >>confdefs.h <<_ACEOF
30880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30881 _ACEOF
30882
30883 fi
30884 done
30885
30886
30887
30888
30889
30890
30891 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30892 do
30893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30897   echo $ECHO_N "(cached) $ECHO_C" >&6
30898 else
30899   cat >conftest.$ac_ext <<_ACEOF
30900 /* confdefs.h.  */
30901 _ACEOF
30902 cat confdefs.h >>conftest.$ac_ext
30903 cat >>conftest.$ac_ext <<_ACEOF
30904 /* end confdefs.h.  */
30905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30907 #define $ac_func innocuous_$ac_func
30908
30909 /* System header to define __stub macros and hopefully few prototypes,
30910     which can conflict with char $ac_func (); below.
30911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30912     <limits.h> exists even on freestanding compilers.  */
30913
30914 #ifdef __STDC__
30915 # include <limits.h>
30916 #else
30917 # include <assert.h>
30918 #endif
30919
30920 #undef $ac_func
30921
30922 /* Override any GCC internal prototype to avoid an error.
30923    Use char because int might match the return type of a GCC
30924    builtin and then its argument prototype would still apply.  */
30925 #ifdef __cplusplus
30926 extern "C"
30927 #endif
30928 char $ac_func ();
30929 /* The GNU C library defines this for functions which it implements
30930     to always fail with ENOSYS.  Some functions are actually named
30931     something starting with __ and the normal name is an alias.  */
30932 #if defined __stub_$ac_func || defined __stub___$ac_func
30933 choke me
30934 #endif
30935
30936 int
30937 main ()
30938 {
30939 return $ac_func ();
30940   ;
30941   return 0;
30942 }
30943 _ACEOF
30944 rm -f conftest.$ac_objext conftest$ac_exeext
30945 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
30952   ac_status=$?
30953   grep -v '^ *+' conftest.er1 >conftest.err
30954   rm -f conftest.er1
30955   cat conftest.err >&5
30956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957   (exit $ac_status); } &&
30958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30959   { (case "(($ac_try" in
30960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30961   *) ac_try_echo=$ac_try;;
30962 esac
30963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30964   (eval "$ac_try") 2>&5
30965   ac_status=$?
30966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967   (exit $ac_status); }; } &&
30968          { ac_try='test -s conftest$ac_exeext'
30969   { (case "(($ac_try" in
30970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30971   *) ac_try_echo=$ac_try;;
30972 esac
30973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30974   (eval "$ac_try") 2>&5
30975   ac_status=$?
30976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977   (exit $ac_status); }; }; then
30978   eval "$as_ac_var=yes"
30979 else
30980   echo "$as_me: failed program was:" >&5
30981 sed 's/^/| /' conftest.$ac_ext >&5
30982
30983         eval "$as_ac_var=no"
30984 fi
30985
30986 rm -f core conftest.err conftest.$ac_objext \
30987       conftest$ac_exeext conftest.$ac_ext
30988 fi
30989 ac_res=`eval echo '${'$as_ac_var'}'`
30990                { echo "$as_me:$LINENO: result: $ac_res" >&5
30991 echo "${ECHO_T}$ac_res" >&6; }
30992 if test `eval echo '${'$as_ac_var'}'` = yes; then
30993   cat >>confdefs.h <<_ACEOF
30994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30995 _ACEOF
30996
30997 fi
30998 done
30999
31000
31001
31002
31003 for ac_func in isatty mkdtemp mkstemp
31004 do
31005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31009   echo $ECHO_N "(cached) $ECHO_C" >&6
31010 else
31011   cat >conftest.$ac_ext <<_ACEOF
31012 /* confdefs.h.  */
31013 _ACEOF
31014 cat confdefs.h >>conftest.$ac_ext
31015 cat >>conftest.$ac_ext <<_ACEOF
31016 /* end confdefs.h.  */
31017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31019 #define $ac_func innocuous_$ac_func
31020
31021 /* System header to define __stub macros and hopefully few prototypes,
31022     which can conflict with char $ac_func (); below.
31023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31024     <limits.h> exists even on freestanding compilers.  */
31025
31026 #ifdef __STDC__
31027 # include <limits.h>
31028 #else
31029 # include <assert.h>
31030 #endif
31031
31032 #undef $ac_func
31033
31034 /* Override any GCC internal prototype to avoid an error.
31035    Use char because int might match the return type of a GCC
31036    builtin and then its argument prototype would still apply.  */
31037 #ifdef __cplusplus
31038 extern "C"
31039 #endif
31040 char $ac_func ();
31041 /* The GNU C library defines this for functions which it implements
31042     to always fail with ENOSYS.  Some functions are actually named
31043     something starting with __ and the normal name is an alias.  */
31044 #if defined __stub_$ac_func || defined __stub___$ac_func
31045 choke me
31046 #endif
31047
31048 int
31049 main ()
31050 {
31051 return $ac_func ();
31052   ;
31053   return 0;
31054 }
31055 _ACEOF
31056 rm -f conftest.$ac_objext conftest$ac_exeext
31057 if { (ac_try="$ac_link"
31058 case "(($ac_try" in
31059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31060   *) ac_try_echo=$ac_try;;
31061 esac
31062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31063   (eval "$ac_link") 2>conftest.er1
31064   ac_status=$?
31065   grep -v '^ *+' conftest.er1 >conftest.err
31066   rm -f conftest.er1
31067   cat conftest.err >&5
31068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069   (exit $ac_status); } &&
31070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31071   { (case "(($ac_try" in
31072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31073   *) ac_try_echo=$ac_try;;
31074 esac
31075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31076   (eval "$ac_try") 2>&5
31077   ac_status=$?
31078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079   (exit $ac_status); }; } &&
31080          { ac_try='test -s conftest$ac_exeext'
31081   { (case "(($ac_try" in
31082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31083   *) ac_try_echo=$ac_try;;
31084 esac
31085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31086   (eval "$ac_try") 2>&5
31087   ac_status=$?
31088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089   (exit $ac_status); }; }; then
31090   eval "$as_ac_var=yes"
31091 else
31092   echo "$as_me: failed program was:" >&5
31093 sed 's/^/| /' conftest.$ac_ext >&5
31094
31095         eval "$as_ac_var=no"
31096 fi
31097
31098 rm -f core conftest.err conftest.$ac_objext \
31099       conftest$ac_exeext conftest.$ac_ext
31100 fi
31101 ac_res=`eval echo '${'$as_ac_var'}'`
31102                { echo "$as_me:$LINENO: result: $ac_res" >&5
31103 echo "${ECHO_T}$ac_res" >&6; }
31104 if test `eval echo '${'$as_ac_var'}'` = yes; then
31105   cat >>confdefs.h <<_ACEOF
31106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31107 _ACEOF
31108
31109 fi
31110 done
31111
31112
31113
31114
31115
31116
31117
31118
31119 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31120 do
31121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31125   echo $ECHO_N "(cached) $ECHO_C" >&6
31126 else
31127   cat >conftest.$ac_ext <<_ACEOF
31128 /* confdefs.h.  */
31129 _ACEOF
31130 cat confdefs.h >>conftest.$ac_ext
31131 cat >>conftest.$ac_ext <<_ACEOF
31132 /* end confdefs.h.  */
31133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31135 #define $ac_func innocuous_$ac_func
31136
31137 /* System header to define __stub macros and hopefully few prototypes,
31138     which can conflict with char $ac_func (); below.
31139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31140     <limits.h> exists even on freestanding compilers.  */
31141
31142 #ifdef __STDC__
31143 # include <limits.h>
31144 #else
31145 # include <assert.h>
31146 #endif
31147
31148 #undef $ac_func
31149
31150 /* Override any GCC internal prototype to avoid an error.
31151    Use char because int might match the return type of a GCC
31152    builtin and then its argument prototype would still apply.  */
31153 #ifdef __cplusplus
31154 extern "C"
31155 #endif
31156 char $ac_func ();
31157 /* The GNU C library defines this for functions which it implements
31158     to always fail with ENOSYS.  Some functions are actually named
31159     something starting with __ and the normal name is an alias.  */
31160 #if defined __stub_$ac_func || defined __stub___$ac_func
31161 choke me
31162 #endif
31163
31164 int
31165 main ()
31166 {
31167 return $ac_func ();
31168   ;
31169   return 0;
31170 }
31171 _ACEOF
31172 rm -f conftest.$ac_objext conftest$ac_exeext
31173 if { (ac_try="$ac_link"
31174 case "(($ac_try" in
31175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31176   *) ac_try_echo=$ac_try;;
31177 esac
31178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31179   (eval "$ac_link") 2>conftest.er1
31180   ac_status=$?
31181   grep -v '^ *+' conftest.er1 >conftest.err
31182   rm -f conftest.er1
31183   cat conftest.err >&5
31184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185   (exit $ac_status); } &&
31186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31187   { (case "(($ac_try" in
31188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31189   *) ac_try_echo=$ac_try;;
31190 esac
31191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31192   (eval "$ac_try") 2>&5
31193   ac_status=$?
31194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195   (exit $ac_status); }; } &&
31196          { ac_try='test -s conftest$ac_exeext'
31197   { (case "(($ac_try" in
31198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31199   *) ac_try_echo=$ac_try;;
31200 esac
31201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31202   (eval "$ac_try") 2>&5
31203   ac_status=$?
31204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205   (exit $ac_status); }; }; then
31206   eval "$as_ac_var=yes"
31207 else
31208   echo "$as_me: failed program was:" >&5
31209 sed 's/^/| /' conftest.$ac_ext >&5
31210
31211         eval "$as_ac_var=no"
31212 fi
31213
31214 rm -f core conftest.err conftest.$ac_objext \
31215       conftest$ac_exeext conftest.$ac_ext
31216 fi
31217 ac_res=`eval echo '${'$as_ac_var'}'`
31218                { echo "$as_me:$LINENO: result: $ac_res" >&5
31219 echo "${ECHO_T}$ac_res" >&6; }
31220 if test `eval echo '${'$as_ac_var'}'` = yes; then
31221   cat >>confdefs.h <<_ACEOF
31222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31223 _ACEOF
31224
31225 fi
31226 done
31227
31228
31229
31230
31231
31232 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31233 do
31234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31238   echo $ECHO_N "(cached) $ECHO_C" >&6
31239 else
31240   cat >conftest.$ac_ext <<_ACEOF
31241 /* confdefs.h.  */
31242 _ACEOF
31243 cat confdefs.h >>conftest.$ac_ext
31244 cat >>conftest.$ac_ext <<_ACEOF
31245 /* end confdefs.h.  */
31246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31248 #define $ac_func innocuous_$ac_func
31249
31250 /* System header to define __stub macros and hopefully few prototypes,
31251     which can conflict with char $ac_func (); below.
31252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31253     <limits.h> exists even on freestanding compilers.  */
31254
31255 #ifdef __STDC__
31256 # include <limits.h>
31257 #else
31258 # include <assert.h>
31259 #endif
31260
31261 #undef $ac_func
31262
31263 /* Override any GCC internal prototype to avoid an error.
31264    Use char because int might match the return type of a GCC
31265    builtin and then its argument prototype would still apply.  */
31266 #ifdef __cplusplus
31267 extern "C"
31268 #endif
31269 char $ac_func ();
31270 /* The GNU C library defines this for functions which it implements
31271     to always fail with ENOSYS.  Some functions are actually named
31272     something starting with __ and the normal name is an alias.  */
31273 #if defined __stub_$ac_func || defined __stub___$ac_func
31274 choke me
31275 #endif
31276
31277 int
31278 main ()
31279 {
31280 return $ac_func ();
31281   ;
31282   return 0;
31283 }
31284 _ACEOF
31285 rm -f conftest.$ac_objext conftest$ac_exeext
31286 if { (ac_try="$ac_link"
31287 case "(($ac_try" in
31288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289   *) ac_try_echo=$ac_try;;
31290 esac
31291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292   (eval "$ac_link") 2>conftest.er1
31293   ac_status=$?
31294   grep -v '^ *+' conftest.er1 >conftest.err
31295   rm -f conftest.er1
31296   cat conftest.err >&5
31297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298   (exit $ac_status); } &&
31299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31300   { (case "(($ac_try" in
31301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302   *) ac_try_echo=$ac_try;;
31303 esac
31304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305   (eval "$ac_try") 2>&5
31306   ac_status=$?
31307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308   (exit $ac_status); }; } &&
31309          { ac_try='test -s conftest$ac_exeext'
31310   { (case "(($ac_try" in
31311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31312   *) ac_try_echo=$ac_try;;
31313 esac
31314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31315   (eval "$ac_try") 2>&5
31316   ac_status=$?
31317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318   (exit $ac_status); }; }; then
31319   eval "$as_ac_var=yes"
31320 else
31321   echo "$as_me: failed program was:" >&5
31322 sed 's/^/| /' conftest.$ac_ext >&5
31323
31324         eval "$as_ac_var=no"
31325 fi
31326
31327 rm -f core conftest.err conftest.$ac_objext \
31328       conftest$ac_exeext conftest.$ac_ext
31329 fi
31330 ac_res=`eval echo '${'$as_ac_var'}'`
31331                { echo "$as_me:$LINENO: result: $ac_res" >&5
31332 echo "${ECHO_T}$ac_res" >&6; }
31333 if test `eval echo '${'$as_ac_var'}'` = yes; then
31334   cat >>confdefs.h <<_ACEOF
31335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31336 _ACEOF
31337
31338 fi
31339 done
31340
31341
31342
31343
31344
31345 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31346 do
31347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31348 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31351   echo $ECHO_N "(cached) $ECHO_C" >&6
31352 else
31353   cat >conftest.$ac_ext <<_ACEOF
31354 /* confdefs.h.  */
31355 _ACEOF
31356 cat confdefs.h >>conftest.$ac_ext
31357 cat >>conftest.$ac_ext <<_ACEOF
31358 /* end confdefs.h.  */
31359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31361 #define $ac_func innocuous_$ac_func
31362
31363 /* System header to define __stub macros and hopefully few prototypes,
31364     which can conflict with char $ac_func (); below.
31365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31366     <limits.h> exists even on freestanding compilers.  */
31367
31368 #ifdef __STDC__
31369 # include <limits.h>
31370 #else
31371 # include <assert.h>
31372 #endif
31373
31374 #undef $ac_func
31375
31376 /* Override any GCC internal prototype to avoid an error.
31377    Use char because int might match the return type of a GCC
31378    builtin and then its argument prototype would still apply.  */
31379 #ifdef __cplusplus
31380 extern "C"
31381 #endif
31382 char $ac_func ();
31383 /* The GNU C library defines this for functions which it implements
31384     to always fail with ENOSYS.  Some functions are actually named
31385     something starting with __ and the normal name is an alias.  */
31386 #if defined __stub_$ac_func || defined __stub___$ac_func
31387 choke me
31388 #endif
31389
31390 int
31391 main ()
31392 {
31393 return $ac_func ();
31394   ;
31395   return 0;
31396 }
31397 _ACEOF
31398 rm -f conftest.$ac_objext conftest$ac_exeext
31399 if { (ac_try="$ac_link"
31400 case "(($ac_try" in
31401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31402   *) ac_try_echo=$ac_try;;
31403 esac
31404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31405   (eval "$ac_link") 2>conftest.er1
31406   ac_status=$?
31407   grep -v '^ *+' conftest.er1 >conftest.err
31408   rm -f conftest.er1
31409   cat conftest.err >&5
31410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411   (exit $ac_status); } &&
31412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31413   { (case "(($ac_try" in
31414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31415   *) ac_try_echo=$ac_try;;
31416 esac
31417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31418   (eval "$ac_try") 2>&5
31419   ac_status=$?
31420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421   (exit $ac_status); }; } &&
31422          { ac_try='test -s conftest$ac_exeext'
31423   { (case "(($ac_try" in
31424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31425   *) ac_try_echo=$ac_try;;
31426 esac
31427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31428   (eval "$ac_try") 2>&5
31429   ac_status=$?
31430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431   (exit $ac_status); }; }; then
31432   eval "$as_ac_var=yes"
31433 else
31434   echo "$as_me: failed program was:" >&5
31435 sed 's/^/| /' conftest.$ac_ext >&5
31436
31437         eval "$as_ac_var=no"
31438 fi
31439
31440 rm -f core conftest.err conftest.$ac_objext \
31441       conftest$ac_exeext conftest.$ac_ext
31442 fi
31443 ac_res=`eval echo '${'$as_ac_var'}'`
31444                { echo "$as_me:$LINENO: result: $ac_res" >&5
31445 echo "${ECHO_T}$ac_res" >&6; }
31446 if test `eval echo '${'$as_ac_var'}'` = yes; then
31447   cat >>confdefs.h <<_ACEOF
31448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31449 _ACEOF
31450
31451 fi
31452 done
31453
31454 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31455 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31456 if test "${llvm_cv_c_printf_a+set}" = set; then
31457   echo $ECHO_N "(cached) $ECHO_C" >&6
31458 else
31459   ac_ext=c
31460 ac_cpp='$CPP $CPPFLAGS'
31461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31464
31465  if test "$cross_compiling" = yes; then
31466   llvmac_cv_c_printf_a=no
31467 else
31468   cat >conftest.$ac_ext <<_ACEOF
31469
31470   /* confdefs.h.  */
31471 _ACEOF
31472 cat confdefs.h >>conftest.$ac_ext
31473 cat >>conftest.$ac_ext <<_ACEOF
31474 /* end confdefs.h.  */
31475
31476 #include <stdio.h>
31477 #include <stdlib.h>
31478
31479 int
31480 main ()
31481 {
31482
31483 volatile double A, B;
31484 char Buffer[100];
31485 A = 1;
31486 A /= 10.0;
31487 sprintf(Buffer, "%a", A);
31488 B = atof(Buffer);
31489 if (A != B)
31490   return (1);
31491 if (A != 0x1.999999999999ap-4)
31492   return (1);
31493 return (0);
31494   ;
31495   return 0;
31496 }
31497 _ACEOF
31498 rm -f conftest$ac_exeext
31499 if { (ac_try="$ac_link"
31500 case "(($ac_try" in
31501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502   *) ac_try_echo=$ac_try;;
31503 esac
31504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505   (eval "$ac_link") 2>&5
31506   ac_status=$?
31507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31509   { (case "(($ac_try" in
31510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511   *) ac_try_echo=$ac_try;;
31512 esac
31513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514   (eval "$ac_try") 2>&5
31515   ac_status=$?
31516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517   (exit $ac_status); }; }; then
31518   llvm_cv_c_printf_a=yes
31519 else
31520   echo "$as_me: program exited with status $ac_status" >&5
31521 echo "$as_me: failed program was:" >&5
31522 sed 's/^/| /' conftest.$ac_ext >&5
31523
31524 ( exit $ac_status )
31525 llvmac_cv_c_printf_a=no
31526 fi
31527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31528 fi
31529
31530
31531  ac_ext=c
31532 ac_cpp='$CPP $CPPFLAGS'
31533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31536
31537 fi
31538 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31539 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31540  if test "$llvm_cv_c_printf_a" = "yes"; then
31541
31542 cat >>confdefs.h <<\_ACEOF
31543 #define HAVE_PRINTF_A 1
31544 _ACEOF
31545
31546  fi
31547
31548 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31549 # for constant arguments.  Useless!
31550 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31551 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31552 if test "${ac_cv_working_alloca_h+set}" = set; then
31553   echo $ECHO_N "(cached) $ECHO_C" >&6
31554 else
31555   cat >conftest.$ac_ext <<_ACEOF
31556 /* confdefs.h.  */
31557 _ACEOF
31558 cat confdefs.h >>conftest.$ac_ext
31559 cat >>conftest.$ac_ext <<_ACEOF
31560 /* end confdefs.h.  */
31561 #include <alloca.h>
31562 int
31563 main ()
31564 {
31565 char *p = (char *) alloca (2 * sizeof (int));
31566                           if (p) return 0;
31567   ;
31568   return 0;
31569 }
31570 _ACEOF
31571 rm -f conftest.$ac_objext conftest$ac_exeext
31572 if { (ac_try="$ac_link"
31573 case "(($ac_try" in
31574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31575   *) ac_try_echo=$ac_try;;
31576 esac
31577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31578   (eval "$ac_link") 2>conftest.er1
31579   ac_status=$?
31580   grep -v '^ *+' conftest.er1 >conftest.err
31581   rm -f conftest.er1
31582   cat conftest.err >&5
31583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31584   (exit $ac_status); } &&
31585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31586   { (case "(($ac_try" in
31587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31588   *) ac_try_echo=$ac_try;;
31589 esac
31590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31591   (eval "$ac_try") 2>&5
31592   ac_status=$?
31593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594   (exit $ac_status); }; } &&
31595          { ac_try='test -s conftest$ac_exeext'
31596   { (case "(($ac_try" in
31597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31598   *) ac_try_echo=$ac_try;;
31599 esac
31600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31601   (eval "$ac_try") 2>&5
31602   ac_status=$?
31603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604   (exit $ac_status); }; }; then
31605   ac_cv_working_alloca_h=yes
31606 else
31607   echo "$as_me: failed program was:" >&5
31608 sed 's/^/| /' conftest.$ac_ext >&5
31609
31610         ac_cv_working_alloca_h=no
31611 fi
31612
31613 rm -f core conftest.err conftest.$ac_objext \
31614       conftest$ac_exeext conftest.$ac_ext
31615 fi
31616 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31617 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31618 if test $ac_cv_working_alloca_h = yes; then
31619
31620 cat >>confdefs.h <<\_ACEOF
31621 #define HAVE_ALLOCA_H 1
31622 _ACEOF
31623
31624 fi
31625
31626 { echo "$as_me:$LINENO: checking for alloca" >&5
31627 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31628 if test "${ac_cv_func_alloca_works+set}" = set; then
31629   echo $ECHO_N "(cached) $ECHO_C" >&6
31630 else
31631   cat >conftest.$ac_ext <<_ACEOF
31632 /* confdefs.h.  */
31633 _ACEOF
31634 cat confdefs.h >>conftest.$ac_ext
31635 cat >>conftest.$ac_ext <<_ACEOF
31636 /* end confdefs.h.  */
31637 #ifdef __GNUC__
31638 # define alloca __builtin_alloca
31639 #else
31640 # ifdef _MSC_VER
31641 #  include <malloc.h>
31642 #  define alloca _alloca
31643 # else
31644 #  if HAVE_ALLOCA_H
31645 #   include <alloca.h>
31646 #  else
31647 #   ifdef _AIX
31648  #pragma alloca
31649 #   else
31650 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31651 char *alloca ();
31652 #    endif
31653 #   endif
31654 #  endif
31655 # endif
31656 #endif
31657
31658 int
31659 main ()
31660 {
31661 char *p = (char *) alloca (1);
31662                                     if (p) return 0;
31663   ;
31664   return 0;
31665 }
31666 _ACEOF
31667 rm -f conftest.$ac_objext conftest$ac_exeext
31668 if { (ac_try="$ac_link"
31669 case "(($ac_try" in
31670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31671   *) ac_try_echo=$ac_try;;
31672 esac
31673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31674   (eval "$ac_link") 2>conftest.er1
31675   ac_status=$?
31676   grep -v '^ *+' conftest.er1 >conftest.err
31677   rm -f conftest.er1
31678   cat conftest.err >&5
31679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680   (exit $ac_status); } &&
31681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31682   { (case "(($ac_try" in
31683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31684   *) ac_try_echo=$ac_try;;
31685 esac
31686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31687   (eval "$ac_try") 2>&5
31688   ac_status=$?
31689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690   (exit $ac_status); }; } &&
31691          { ac_try='test -s conftest$ac_exeext'
31692   { (case "(($ac_try" in
31693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31694   *) ac_try_echo=$ac_try;;
31695 esac
31696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31697   (eval "$ac_try") 2>&5
31698   ac_status=$?
31699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700   (exit $ac_status); }; }; then
31701   ac_cv_func_alloca_works=yes
31702 else
31703   echo "$as_me: failed program was:" >&5
31704 sed 's/^/| /' conftest.$ac_ext >&5
31705
31706         ac_cv_func_alloca_works=no
31707 fi
31708
31709 rm -f core conftest.err conftest.$ac_objext \
31710       conftest$ac_exeext conftest.$ac_ext
31711 fi
31712 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31713 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31714
31715 if test $ac_cv_func_alloca_works = yes; then
31716
31717 cat >>confdefs.h <<\_ACEOF
31718 #define HAVE_ALLOCA 1
31719 _ACEOF
31720
31721 else
31722   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31723 # that cause trouble.  Some versions do not even contain alloca or
31724 # contain a buggy version.  If you still want to use their alloca,
31725 # use ar to extract alloca.o from them instead of compiling alloca.c.
31726
31727 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31728
31729 cat >>confdefs.h <<\_ACEOF
31730 #define C_ALLOCA 1
31731 _ACEOF
31732
31733
31734 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31735 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31736 if test "${ac_cv_os_cray+set}" = set; then
31737   echo $ECHO_N "(cached) $ECHO_C" >&6
31738 else
31739   cat >conftest.$ac_ext <<_ACEOF
31740 /* confdefs.h.  */
31741 _ACEOF
31742 cat confdefs.h >>conftest.$ac_ext
31743 cat >>conftest.$ac_ext <<_ACEOF
31744 /* end confdefs.h.  */
31745 #if defined CRAY && ! defined CRAY2
31746 webecray
31747 #else
31748 wenotbecray
31749 #endif
31750
31751 _ACEOF
31752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31753   $EGREP "webecray" >/dev/null 2>&1; then
31754   ac_cv_os_cray=yes
31755 else
31756   ac_cv_os_cray=no
31757 fi
31758 rm -f conftest*
31759
31760 fi
31761 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31762 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31763 if test $ac_cv_os_cray = yes; then
31764   for ac_func in _getb67 GETB67 getb67; do
31765     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31769   echo $ECHO_N "(cached) $ECHO_C" >&6
31770 else
31771   cat >conftest.$ac_ext <<_ACEOF
31772 /* confdefs.h.  */
31773 _ACEOF
31774 cat confdefs.h >>conftest.$ac_ext
31775 cat >>conftest.$ac_ext <<_ACEOF
31776 /* end confdefs.h.  */
31777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31779 #define $ac_func innocuous_$ac_func
31780
31781 /* System header to define __stub macros and hopefully few prototypes,
31782     which can conflict with char $ac_func (); below.
31783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31784     <limits.h> exists even on freestanding compilers.  */
31785
31786 #ifdef __STDC__
31787 # include <limits.h>
31788 #else
31789 # include <assert.h>
31790 #endif
31791
31792 #undef $ac_func
31793
31794 /* Override any GCC internal prototype to avoid an error.
31795    Use char because int might match the return type of a GCC
31796    builtin and then its argument prototype would still apply.  */
31797 #ifdef __cplusplus
31798 extern "C"
31799 #endif
31800 char $ac_func ();
31801 /* The GNU C library defines this for functions which it implements
31802     to always fail with ENOSYS.  Some functions are actually named
31803     something starting with __ and the normal name is an alias.  */
31804 #if defined __stub_$ac_func || defined __stub___$ac_func
31805 choke me
31806 #endif
31807
31808 int
31809 main ()
31810 {
31811 return $ac_func ();
31812   ;
31813   return 0;
31814 }
31815 _ACEOF
31816 rm -f conftest.$ac_objext conftest$ac_exeext
31817 if { (ac_try="$ac_link"
31818 case "(($ac_try" in
31819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31820   *) ac_try_echo=$ac_try;;
31821 esac
31822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31823   (eval "$ac_link") 2>conftest.er1
31824   ac_status=$?
31825   grep -v '^ *+' conftest.er1 >conftest.err
31826   rm -f conftest.er1
31827   cat conftest.err >&5
31828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31829   (exit $ac_status); } &&
31830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31831   { (case "(($ac_try" in
31832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31833   *) ac_try_echo=$ac_try;;
31834 esac
31835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31836   (eval "$ac_try") 2>&5
31837   ac_status=$?
31838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839   (exit $ac_status); }; } &&
31840          { ac_try='test -s conftest$ac_exeext'
31841   { (case "(($ac_try" in
31842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31843   *) ac_try_echo=$ac_try;;
31844 esac
31845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31846   (eval "$ac_try") 2>&5
31847   ac_status=$?
31848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849   (exit $ac_status); }; }; then
31850   eval "$as_ac_var=yes"
31851 else
31852   echo "$as_me: failed program was:" >&5
31853 sed 's/^/| /' conftest.$ac_ext >&5
31854
31855         eval "$as_ac_var=no"
31856 fi
31857
31858 rm -f core conftest.err conftest.$ac_objext \
31859       conftest$ac_exeext conftest.$ac_ext
31860 fi
31861 ac_res=`eval echo '${'$as_ac_var'}'`
31862                { echo "$as_me:$LINENO: result: $ac_res" >&5
31863 echo "${ECHO_T}$ac_res" >&6; }
31864 if test `eval echo '${'$as_ac_var'}'` = yes; then
31865
31866 cat >>confdefs.h <<_ACEOF
31867 #define CRAY_STACKSEG_END $ac_func
31868 _ACEOF
31869
31870     break
31871 fi
31872
31873   done
31874 fi
31875
31876 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31877 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31878 if test "${ac_cv_c_stack_direction+set}" = set; then
31879   echo $ECHO_N "(cached) $ECHO_C" >&6
31880 else
31881   if test "$cross_compiling" = yes; then
31882   ac_cv_c_stack_direction=0
31883 else
31884   cat >conftest.$ac_ext <<_ACEOF
31885 /* confdefs.h.  */
31886 _ACEOF
31887 cat confdefs.h >>conftest.$ac_ext
31888 cat >>conftest.$ac_ext <<_ACEOF
31889 /* end confdefs.h.  */
31890 $ac_includes_default
31891 int
31892 find_stack_direction ()
31893 {
31894   static char *addr = 0;
31895   auto char dummy;
31896   if (addr == 0)
31897     {
31898       addr = &dummy;
31899       return find_stack_direction ();
31900     }
31901   else
31902     return (&dummy > addr) ? 1 : -1;
31903 }
31904
31905 int
31906 main ()
31907 {
31908   return find_stack_direction () < 0;
31909 }
31910 _ACEOF
31911 rm -f conftest$ac_exeext
31912 if { (ac_try="$ac_link"
31913 case "(($ac_try" in
31914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915   *) ac_try_echo=$ac_try;;
31916 esac
31917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31918   (eval "$ac_link") 2>&5
31919   ac_status=$?
31920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31922   { (case "(($ac_try" in
31923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31924   *) ac_try_echo=$ac_try;;
31925 esac
31926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31927   (eval "$ac_try") 2>&5
31928   ac_status=$?
31929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930   (exit $ac_status); }; }; then
31931   ac_cv_c_stack_direction=1
31932 else
31933   echo "$as_me: program exited with status $ac_status" >&5
31934 echo "$as_me: failed program was:" >&5
31935 sed 's/^/| /' conftest.$ac_ext >&5
31936
31937 ( exit $ac_status )
31938 ac_cv_c_stack_direction=-1
31939 fi
31940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31941 fi
31942
31943
31944 fi
31945 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31946 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31947
31948 cat >>confdefs.h <<_ACEOF
31949 #define STACK_DIRECTION $ac_cv_c_stack_direction
31950 _ACEOF
31951
31952
31953 fi
31954
31955
31956 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31957 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31958 if test "${ac_cv_func_rand48+set}" = set; then
31959   echo $ECHO_N "(cached) $ECHO_C" >&6
31960 else
31961   ac_ext=cpp
31962 ac_cpp='$CXXCPP $CPPFLAGS'
31963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31966
31967    cat >conftest.$ac_ext <<_ACEOF
31968 /* confdefs.h.  */
31969 _ACEOF
31970 cat confdefs.h >>conftest.$ac_ext
31971 cat >>conftest.$ac_ext <<_ACEOF
31972 /* end confdefs.h.  */
31973 #include <stdlib.h>
31974 int
31975 main ()
31976 {
31977 srand48(0);lrand48();drand48();
31978   ;
31979   return 0;
31980 }
31981 _ACEOF
31982 rm -f conftest.$ac_objext
31983 if { (ac_try="$ac_compile"
31984 case "(($ac_try" in
31985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31986   *) ac_try_echo=$ac_try;;
31987 esac
31988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31989   (eval "$ac_compile") 2>conftest.er1
31990   ac_status=$?
31991   grep -v '^ *+' conftest.er1 >conftest.err
31992   rm -f conftest.er1
31993   cat conftest.err >&5
31994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995   (exit $ac_status); } &&
31996          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31997   { (case "(($ac_try" in
31998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31999   *) ac_try_echo=$ac_try;;
32000 esac
32001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32002   (eval "$ac_try") 2>&5
32003   ac_status=$?
32004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005   (exit $ac_status); }; } &&
32006          { ac_try='test -s conftest.$ac_objext'
32007   { (case "(($ac_try" in
32008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009   *) ac_try_echo=$ac_try;;
32010 esac
32011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012   (eval "$ac_try") 2>&5
32013   ac_status=$?
32014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32015   (exit $ac_status); }; }; then
32016   ac_cv_func_rand48=yes
32017 else
32018   echo "$as_me: failed program was:" >&5
32019 sed 's/^/| /' conftest.$ac_ext >&5
32020
32021         ac_cv_func_rand48=no
32022 fi
32023
32024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32025   ac_ext=c
32026 ac_cpp='$CPP $CPPFLAGS'
32027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32030
32031 fi
32032 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32033 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32034
32035 if test "$ac_cv_func_rand48" = "yes" ; then
32036
32037 cat >>confdefs.h <<\_ACEOF
32038 #define HAVE_RAND48 1
32039 _ACEOF
32040
32041 fi
32042
32043
32044 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32045 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32046 if test "${ac_cv_cxx_namespaces+set}" = set; then
32047   echo $ECHO_N "(cached) $ECHO_C" >&6
32048 else
32049   ac_ext=cpp
32050 ac_cpp='$CXXCPP $CPPFLAGS'
32051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32054
32055  cat >conftest.$ac_ext <<_ACEOF
32056 /* confdefs.h.  */
32057 _ACEOF
32058 cat confdefs.h >>conftest.$ac_ext
32059 cat >>conftest.$ac_ext <<_ACEOF
32060 /* end confdefs.h.  */
32061 namespace Outer { namespace Inner { int i = 0; }}
32062 int
32063 main ()
32064 {
32065 using namespace Outer::Inner; return i;
32066   ;
32067   return 0;
32068 }
32069 _ACEOF
32070 rm -f conftest.$ac_objext
32071 if { (ac_try="$ac_compile"
32072 case "(($ac_try" in
32073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32074   *) ac_try_echo=$ac_try;;
32075 esac
32076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32077   (eval "$ac_compile") 2>conftest.er1
32078   ac_status=$?
32079   grep -v '^ *+' conftest.er1 >conftest.err
32080   rm -f conftest.er1
32081   cat conftest.err >&5
32082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083   (exit $ac_status); } &&
32084          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32085   { (case "(($ac_try" in
32086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32087   *) ac_try_echo=$ac_try;;
32088 esac
32089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32090   (eval "$ac_try") 2>&5
32091   ac_status=$?
32092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32093   (exit $ac_status); }; } &&
32094          { ac_try='test -s conftest.$ac_objext'
32095   { (case "(($ac_try" in
32096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32097   *) ac_try_echo=$ac_try;;
32098 esac
32099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32100   (eval "$ac_try") 2>&5
32101   ac_status=$?
32102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103   (exit $ac_status); }; }; then
32104   ac_cv_cxx_namespaces=yes
32105 else
32106   echo "$as_me: failed program was:" >&5
32107 sed 's/^/| /' conftest.$ac_ext >&5
32108
32109         ac_cv_cxx_namespaces=no
32110 fi
32111
32112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32113  ac_ext=c
32114 ac_cpp='$CPP $CPPFLAGS'
32115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32118
32119
32120 fi
32121 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32122 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32123 if test "$ac_cv_cxx_namespaces" = yes; then
32124
32125 cat >>confdefs.h <<\_ACEOF
32126 #define HAVE_NAMESPACES
32127 _ACEOF
32128
32129 fi
32130
32131 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32132 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32133 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32134   echo $ECHO_N "(cached) $ECHO_C" >&6
32135 else
32136
32137   ac_ext=cpp
32138 ac_cpp='$CXXCPP $CPPFLAGS'
32139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32142
32143   cat >conftest.$ac_ext <<_ACEOF
32144 /* confdefs.h.  */
32145 _ACEOF
32146 cat confdefs.h >>conftest.$ac_ext
32147 cat >>conftest.$ac_ext <<_ACEOF
32148 /* end confdefs.h.  */
32149 #include <iterator>
32150 #ifdef HAVE_NAMESPACES
32151 using namespace std;
32152 #endif
32153 int
32154 main ()
32155 {
32156 iterator<int,int,int> t; return 0;
32157   ;
32158   return 0;
32159 }
32160 _ACEOF
32161 rm -f conftest.$ac_objext
32162 if { (ac_try="$ac_compile"
32163 case "(($ac_try" in
32164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32165   *) ac_try_echo=$ac_try;;
32166 esac
32167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32168   (eval "$ac_compile") 2>conftest.er1
32169   ac_status=$?
32170   grep -v '^ *+' conftest.er1 >conftest.err
32171   rm -f conftest.er1
32172   cat conftest.err >&5
32173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32174   (exit $ac_status); } &&
32175          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32176   { (case "(($ac_try" in
32177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32178   *) ac_try_echo=$ac_try;;
32179 esac
32180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32181   (eval "$ac_try") 2>&5
32182   ac_status=$?
32183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32184   (exit $ac_status); }; } &&
32185          { ac_try='test -s conftest.$ac_objext'
32186   { (case "(($ac_try" in
32187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32188   *) ac_try_echo=$ac_try;;
32189 esac
32190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32191   (eval "$ac_try") 2>&5
32192   ac_status=$?
32193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32194   (exit $ac_status); }; }; then
32195   ac_cv_cxx_have_std_iterator=yes
32196 else
32197   echo "$as_me: failed program was:" >&5
32198 sed 's/^/| /' conftest.$ac_ext >&5
32199
32200         ac_cv_cxx_have_std_iterator=no
32201 fi
32202
32203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32204   ac_ext=c
32205 ac_cpp='$CPP $CPPFLAGS'
32206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32209
32210
32211 fi
32212 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32213 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32214 if test "$ac_cv_cxx_have_std_iterator" = yes
32215 then
32216
32217 cat >>confdefs.h <<\_ACEOF
32218 #define HAVE_STD_ITERATOR 1
32219 _ACEOF
32220
32221 else
32222
32223 cat >>confdefs.h <<\_ACEOF
32224 #define HAVE_STD_ITERATOR 0
32225 _ACEOF
32226
32227 fi
32228
32229 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32230 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32231 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32232   echo $ECHO_N "(cached) $ECHO_C" >&6
32233 else
32234
32235   ac_ext=cpp
32236 ac_cpp='$CXXCPP $CPPFLAGS'
32237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32240
32241   cat >conftest.$ac_ext <<_ACEOF
32242 /* confdefs.h.  */
32243 _ACEOF
32244 cat confdefs.h >>conftest.$ac_ext
32245 cat >>conftest.$ac_ext <<_ACEOF
32246 /* end confdefs.h.  */
32247 #include <iterator>
32248 #ifdef HAVE_NAMESPACES
32249 using namespace std;
32250 #endif
32251 int
32252 main ()
32253 {
32254 bidirectional_iterator<int,int> t; return 0;
32255   ;
32256   return 0;
32257 }
32258 _ACEOF
32259 rm -f conftest.$ac_objext
32260 if { (ac_try="$ac_compile"
32261 case "(($ac_try" in
32262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32263   *) ac_try_echo=$ac_try;;
32264 esac
32265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32266   (eval "$ac_compile") 2>conftest.er1
32267   ac_status=$?
32268   grep -v '^ *+' conftest.er1 >conftest.err
32269   rm -f conftest.er1
32270   cat conftest.err >&5
32271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32272   (exit $ac_status); } &&
32273          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32274   { (case "(($ac_try" in
32275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32276   *) ac_try_echo=$ac_try;;
32277 esac
32278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32279   (eval "$ac_try") 2>&5
32280   ac_status=$?
32281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282   (exit $ac_status); }; } &&
32283          { ac_try='test -s conftest.$ac_objext'
32284   { (case "(($ac_try" in
32285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32286   *) ac_try_echo=$ac_try;;
32287 esac
32288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32289   (eval "$ac_try") 2>&5
32290   ac_status=$?
32291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292   (exit $ac_status); }; }; then
32293   ac_cv_cxx_have_bi_iterator=yes
32294 else
32295   echo "$as_me: failed program was:" >&5
32296 sed 's/^/| /' conftest.$ac_ext >&5
32297
32298         ac_cv_cxx_have_bi_iterator=no
32299 fi
32300
32301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32302   ac_ext=c
32303 ac_cpp='$CPP $CPPFLAGS'
32304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32307
32308
32309 fi
32310 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32311 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32312 if test "$ac_cv_cxx_have_bi_iterator" = yes
32313 then
32314
32315 cat >>confdefs.h <<\_ACEOF
32316 #define HAVE_BI_ITERATOR 1
32317 _ACEOF
32318
32319 else
32320
32321 cat >>confdefs.h <<\_ACEOF
32322 #define HAVE_BI_ITERATOR 0
32323 _ACEOF
32324
32325 fi
32326
32327 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32328 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32329 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32330   echo $ECHO_N "(cached) $ECHO_C" >&6
32331 else
32332
32333   ac_ext=cpp
32334 ac_cpp='$CXXCPP $CPPFLAGS'
32335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32338
32339   cat >conftest.$ac_ext <<_ACEOF
32340 /* confdefs.h.  */
32341 _ACEOF
32342 cat confdefs.h >>conftest.$ac_ext
32343 cat >>conftest.$ac_ext <<_ACEOF
32344 /* end confdefs.h.  */
32345 #include <iterator>
32346 #ifdef HAVE_NAMESPACES
32347 using namespace std;
32348 #endif
32349 int
32350 main ()
32351 {
32352 forward_iterator<int,int> t; return 0;
32353   ;
32354   return 0;
32355 }
32356 _ACEOF
32357 rm -f conftest.$ac_objext
32358 if { (ac_try="$ac_compile"
32359 case "(($ac_try" in
32360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32361   *) ac_try_echo=$ac_try;;
32362 esac
32363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32364   (eval "$ac_compile") 2>conftest.er1
32365   ac_status=$?
32366   grep -v '^ *+' conftest.er1 >conftest.err
32367   rm -f conftest.er1
32368   cat conftest.err >&5
32369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32370   (exit $ac_status); } &&
32371          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32372   { (case "(($ac_try" in
32373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32374   *) ac_try_echo=$ac_try;;
32375 esac
32376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32377   (eval "$ac_try") 2>&5
32378   ac_status=$?
32379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380   (exit $ac_status); }; } &&
32381          { ac_try='test -s conftest.$ac_objext'
32382   { (case "(($ac_try" in
32383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32384   *) ac_try_echo=$ac_try;;
32385 esac
32386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32387   (eval "$ac_try") 2>&5
32388   ac_status=$?
32389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390   (exit $ac_status); }; }; then
32391   ac_cv_cxx_have_fwd_iterator=yes
32392 else
32393   echo "$as_me: failed program was:" >&5
32394 sed 's/^/| /' conftest.$ac_ext >&5
32395
32396         ac_cv_cxx_have_fwd_iterator=no
32397 fi
32398
32399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32400   ac_ext=c
32401 ac_cpp='$CPP $CPPFLAGS'
32402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32405
32406
32407 fi
32408 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32409 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32410 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32411 then
32412
32413 cat >>confdefs.h <<\_ACEOF
32414 #define HAVE_FWD_ITERATOR 1
32415 _ACEOF
32416
32417 else
32418
32419 cat >>confdefs.h <<\_ACEOF
32420 #define HAVE_FWD_ITERATOR 0
32421 _ACEOF
32422
32423 fi
32424
32425
32426 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32427 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32428 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32429   echo $ECHO_N "(cached) $ECHO_C" >&6
32430 else
32431   ac_ext=cpp
32432 ac_cpp='$CXXCPP $CPPFLAGS'
32433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32436
32437    cat >conftest.$ac_ext <<_ACEOF
32438 /* confdefs.h.  */
32439 _ACEOF
32440 cat confdefs.h >>conftest.$ac_ext
32441 cat >>conftest.$ac_ext <<_ACEOF
32442 /* end confdefs.h.  */
32443 #include <math.h>
32444 int
32445 main ()
32446 {
32447 float f; isnan(f);
32448   ;
32449   return 0;
32450 }
32451 _ACEOF
32452 rm -f conftest.$ac_objext
32453 if { (ac_try="$ac_compile"
32454 case "(($ac_try" in
32455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32456   *) ac_try_echo=$ac_try;;
32457 esac
32458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32459   (eval "$ac_compile") 2>conftest.er1
32460   ac_status=$?
32461   grep -v '^ *+' conftest.er1 >conftest.err
32462   rm -f conftest.er1
32463   cat conftest.err >&5
32464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465   (exit $ac_status); } &&
32466          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32467   { (case "(($ac_try" in
32468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32469   *) ac_try_echo=$ac_try;;
32470 esac
32471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32472   (eval "$ac_try") 2>&5
32473   ac_status=$?
32474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475   (exit $ac_status); }; } &&
32476          { ac_try='test -s conftest.$ac_objext'
32477   { (case "(($ac_try" in
32478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32479   *) ac_try_echo=$ac_try;;
32480 esac
32481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32482   (eval "$ac_try") 2>&5
32483   ac_status=$?
32484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485   (exit $ac_status); }; }; then
32486   ac_cv_func_isnan_in_math_h=yes
32487 else
32488   echo "$as_me: failed program was:" >&5
32489 sed 's/^/| /' conftest.$ac_ext >&5
32490
32491         ac_cv_func_isnan_in_math_h=no
32492 fi
32493
32494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32495   ac_ext=c
32496 ac_cpp='$CPP $CPPFLAGS'
32497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32500
32501 fi
32502 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32503 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32504
32505
32506 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32507
32508 cat >>confdefs.h <<\_ACEOF
32509 #define HAVE_ISNAN_IN_MATH_H 1
32510 _ACEOF
32511
32512 fi
32513
32514 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32515 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32516 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32517   echo $ECHO_N "(cached) $ECHO_C" >&6
32518 else
32519   ac_ext=cpp
32520 ac_cpp='$CXXCPP $CPPFLAGS'
32521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32524
32525    cat >conftest.$ac_ext <<_ACEOF
32526 /* confdefs.h.  */
32527 _ACEOF
32528 cat confdefs.h >>conftest.$ac_ext
32529 cat >>conftest.$ac_ext <<_ACEOF
32530 /* end confdefs.h.  */
32531 #include <cmath>
32532 int
32533 main ()
32534 {
32535 float f; isnan(f);
32536   ;
32537   return 0;
32538 }
32539 _ACEOF
32540 rm -f conftest.$ac_objext
32541 if { (ac_try="$ac_compile"
32542 case "(($ac_try" in
32543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32544   *) ac_try_echo=$ac_try;;
32545 esac
32546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32547   (eval "$ac_compile") 2>conftest.er1
32548   ac_status=$?
32549   grep -v '^ *+' conftest.er1 >conftest.err
32550   rm -f conftest.er1
32551   cat conftest.err >&5
32552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553   (exit $ac_status); } &&
32554          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32555   { (case "(($ac_try" in
32556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32557   *) ac_try_echo=$ac_try;;
32558 esac
32559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32560   (eval "$ac_try") 2>&5
32561   ac_status=$?
32562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563   (exit $ac_status); }; } &&
32564          { ac_try='test -s conftest.$ac_objext'
32565   { (case "(($ac_try" in
32566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32567   *) ac_try_echo=$ac_try;;
32568 esac
32569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32570   (eval "$ac_try") 2>&5
32571   ac_status=$?
32572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32573   (exit $ac_status); }; }; then
32574   ac_cv_func_isnan_in_cmath=yes
32575 else
32576   echo "$as_me: failed program was:" >&5
32577 sed 's/^/| /' conftest.$ac_ext >&5
32578
32579         ac_cv_func_isnan_in_cmath=no
32580 fi
32581
32582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32583   ac_ext=c
32584 ac_cpp='$CPP $CPPFLAGS'
32585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32588
32589 fi
32590 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32591 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32592
32593 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32594
32595 cat >>confdefs.h <<\_ACEOF
32596 #define HAVE_ISNAN_IN_CMATH 1
32597 _ACEOF
32598
32599 fi
32600
32601 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32602 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32603 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32604   echo $ECHO_N "(cached) $ECHO_C" >&6
32605 else
32606   ac_ext=cpp
32607 ac_cpp='$CXXCPP $CPPFLAGS'
32608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32611
32612    cat >conftest.$ac_ext <<_ACEOF
32613 /* confdefs.h.  */
32614 _ACEOF
32615 cat confdefs.h >>conftest.$ac_ext
32616 cat >>conftest.$ac_ext <<_ACEOF
32617 /* end confdefs.h.  */
32618 #include <cmath>
32619 int
32620 main ()
32621 {
32622 float f; std::isnan(f);
32623   ;
32624   return 0;
32625 }
32626 _ACEOF
32627 rm -f conftest.$ac_objext
32628 if { (ac_try="$ac_compile"
32629 case "(($ac_try" in
32630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32631   *) ac_try_echo=$ac_try;;
32632 esac
32633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32634   (eval "$ac_compile") 2>conftest.er1
32635   ac_status=$?
32636   grep -v '^ *+' conftest.er1 >conftest.err
32637   rm -f conftest.er1
32638   cat conftest.err >&5
32639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32640   (exit $ac_status); } &&
32641          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32642   { (case "(($ac_try" in
32643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32644   *) ac_try_echo=$ac_try;;
32645 esac
32646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32647   (eval "$ac_try") 2>&5
32648   ac_status=$?
32649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32650   (exit $ac_status); }; } &&
32651          { ac_try='test -s conftest.$ac_objext'
32652   { (case "(($ac_try" in
32653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32654   *) ac_try_echo=$ac_try;;
32655 esac
32656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32657   (eval "$ac_try") 2>&5
32658   ac_status=$?
32659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660   (exit $ac_status); }; }; then
32661   ac_cv_func_std_isnan_in_cmath=yes
32662 else
32663   echo "$as_me: failed program was:" >&5
32664 sed 's/^/| /' conftest.$ac_ext >&5
32665
32666         ac_cv_func_std_isnan_in_cmath=no
32667 fi
32668
32669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32670   ac_ext=c
32671 ac_cpp='$CPP $CPPFLAGS'
32672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32675
32676 fi
32677 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32678 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32679
32680 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32681
32682 cat >>confdefs.h <<\_ACEOF
32683 #define HAVE_STD_ISNAN_IN_CMATH 1
32684 _ACEOF
32685
32686 fi
32687
32688
32689 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32690 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32691 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32692   echo $ECHO_N "(cached) $ECHO_C" >&6
32693 else
32694   ac_ext=cpp
32695 ac_cpp='$CXXCPP $CPPFLAGS'
32696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32699
32700    cat >conftest.$ac_ext <<_ACEOF
32701 /* confdefs.h.  */
32702 _ACEOF
32703 cat confdefs.h >>conftest.$ac_ext
32704 cat >>conftest.$ac_ext <<_ACEOF
32705 /* end confdefs.h.  */
32706 #include <math.h>
32707 int
32708 main ()
32709 {
32710 float f; isinf(f);
32711   ;
32712   return 0;
32713 }
32714 _ACEOF
32715 rm -f conftest.$ac_objext
32716 if { (ac_try="$ac_compile"
32717 case "(($ac_try" in
32718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32719   *) ac_try_echo=$ac_try;;
32720 esac
32721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32722   (eval "$ac_compile") 2>conftest.er1
32723   ac_status=$?
32724   grep -v '^ *+' conftest.er1 >conftest.err
32725   rm -f conftest.er1
32726   cat conftest.err >&5
32727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728   (exit $ac_status); } &&
32729          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32730   { (case "(($ac_try" in
32731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32732   *) ac_try_echo=$ac_try;;
32733 esac
32734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32735   (eval "$ac_try") 2>&5
32736   ac_status=$?
32737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32738   (exit $ac_status); }; } &&
32739          { ac_try='test -s conftest.$ac_objext'
32740   { (case "(($ac_try" in
32741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32742   *) ac_try_echo=$ac_try;;
32743 esac
32744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32745   (eval "$ac_try") 2>&5
32746   ac_status=$?
32747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748   (exit $ac_status); }; }; then
32749   ac_cv_func_isinf_in_math_h=yes
32750 else
32751   echo "$as_me: failed program was:" >&5
32752 sed 's/^/| /' conftest.$ac_ext >&5
32753
32754         ac_cv_func_isinf_in_math_h=no
32755 fi
32756
32757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32758   ac_ext=c
32759 ac_cpp='$CPP $CPPFLAGS'
32760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32763
32764 fi
32765 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32766 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32767
32768 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32769
32770 cat >>confdefs.h <<\_ACEOF
32771 #define HAVE_ISINF_IN_MATH_H 1
32772 _ACEOF
32773
32774 fi
32775
32776 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32777 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32778 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32779   echo $ECHO_N "(cached) $ECHO_C" >&6
32780 else
32781   ac_ext=cpp
32782 ac_cpp='$CXXCPP $CPPFLAGS'
32783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32786
32787    cat >conftest.$ac_ext <<_ACEOF
32788 /* confdefs.h.  */
32789 _ACEOF
32790 cat confdefs.h >>conftest.$ac_ext
32791 cat >>conftest.$ac_ext <<_ACEOF
32792 /* end confdefs.h.  */
32793 #include <cmath>
32794 int
32795 main ()
32796 {
32797 float f; isinf(f);
32798   ;
32799   return 0;
32800 }
32801 _ACEOF
32802 rm -f conftest.$ac_objext
32803 if { (ac_try="$ac_compile"
32804 case "(($ac_try" in
32805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32806   *) ac_try_echo=$ac_try;;
32807 esac
32808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32809   (eval "$ac_compile") 2>conftest.er1
32810   ac_status=$?
32811   grep -v '^ *+' conftest.er1 >conftest.err
32812   rm -f conftest.er1
32813   cat conftest.err >&5
32814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815   (exit $ac_status); } &&
32816          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32817   { (case "(($ac_try" in
32818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32819   *) ac_try_echo=$ac_try;;
32820 esac
32821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32822   (eval "$ac_try") 2>&5
32823   ac_status=$?
32824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825   (exit $ac_status); }; } &&
32826          { ac_try='test -s conftest.$ac_objext'
32827   { (case "(($ac_try" in
32828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32829   *) ac_try_echo=$ac_try;;
32830 esac
32831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32832   (eval "$ac_try") 2>&5
32833   ac_status=$?
32834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32835   (exit $ac_status); }; }; then
32836   ac_cv_func_isinf_in_cmath=yes
32837 else
32838   echo "$as_me: failed program was:" >&5
32839 sed 's/^/| /' conftest.$ac_ext >&5
32840
32841         ac_cv_func_isinf_in_cmath=no
32842 fi
32843
32844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32845   ac_ext=c
32846 ac_cpp='$CPP $CPPFLAGS'
32847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32850
32851 fi
32852 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32853 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32854
32855 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32856
32857 cat >>confdefs.h <<\_ACEOF
32858 #define HAVE_ISINF_IN_CMATH 1
32859 _ACEOF
32860
32861 fi
32862
32863 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32864 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32865 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32866   echo $ECHO_N "(cached) $ECHO_C" >&6
32867 else
32868   ac_ext=cpp
32869 ac_cpp='$CXXCPP $CPPFLAGS'
32870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32873
32874    cat >conftest.$ac_ext <<_ACEOF
32875 /* confdefs.h.  */
32876 _ACEOF
32877 cat confdefs.h >>conftest.$ac_ext
32878 cat >>conftest.$ac_ext <<_ACEOF
32879 /* end confdefs.h.  */
32880 #include <cmath>
32881 int
32882 main ()
32883 {
32884 float f; std::isinf(f)}
32885   ;
32886   return 0;
32887 }
32888 _ACEOF
32889 rm -f conftest.$ac_objext
32890 if { (ac_try="$ac_compile"
32891 case "(($ac_try" in
32892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32893   *) ac_try_echo=$ac_try;;
32894 esac
32895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32896   (eval "$ac_compile") 2>conftest.er1
32897   ac_status=$?
32898   grep -v '^ *+' conftest.er1 >conftest.err
32899   rm -f conftest.er1
32900   cat conftest.err >&5
32901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902   (exit $ac_status); } &&
32903          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32904   { (case "(($ac_try" in
32905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32906   *) ac_try_echo=$ac_try;;
32907 esac
32908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32909   (eval "$ac_try") 2>&5
32910   ac_status=$?
32911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912   (exit $ac_status); }; } &&
32913          { ac_try='test -s conftest.$ac_objext'
32914   { (case "(($ac_try" in
32915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32916   *) ac_try_echo=$ac_try;;
32917 esac
32918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32919   (eval "$ac_try") 2>&5
32920   ac_status=$?
32921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922   (exit $ac_status); }; }; then
32923   ac_cv_func_std_isinf_in_cmath=yes
32924 else
32925   echo "$as_me: failed program was:" >&5
32926 sed 's/^/| /' conftest.$ac_ext >&5
32927
32928         ac_cv_func_std_isinf_in_cmath=no
32929 fi
32930
32931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32932   ac_ext=c
32933 ac_cpp='$CPP $CPPFLAGS'
32934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32937
32938 fi
32939 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32940 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32941
32942 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32943
32944 cat >>confdefs.h <<\_ACEOF
32945 #define HAVE_STD_ISINF_IN_CMATH 1
32946 _ACEOF
32947
32948 fi
32949
32950 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32951 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32952 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32953   echo $ECHO_N "(cached) $ECHO_C" >&6
32954 else
32955   ac_ext=cpp
32956 ac_cpp='$CXXCPP $CPPFLAGS'
32957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32960
32961    cat >conftest.$ac_ext <<_ACEOF
32962 /* confdefs.h.  */
32963 _ACEOF
32964 cat confdefs.h >>conftest.$ac_ext
32965 cat >>conftest.$ac_ext <<_ACEOF
32966 /* end confdefs.h.  */
32967 #include <ieeefp.h>
32968 int
32969 main ()
32970 {
32971 float f; finite(f);
32972   ;
32973   return 0;
32974 }
32975 _ACEOF
32976 rm -f conftest.$ac_objext
32977 if { (ac_try="$ac_compile"
32978 case "(($ac_try" in
32979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32980   *) ac_try_echo=$ac_try;;
32981 esac
32982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32983   (eval "$ac_compile") 2>conftest.er1
32984   ac_status=$?
32985   grep -v '^ *+' conftest.er1 >conftest.err
32986   rm -f conftest.er1
32987   cat conftest.err >&5
32988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989   (exit $ac_status); } &&
32990          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32991   { (case "(($ac_try" in
32992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32993   *) ac_try_echo=$ac_try;;
32994 esac
32995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32996   (eval "$ac_try") 2>&5
32997   ac_status=$?
32998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999   (exit $ac_status); }; } &&
33000          { ac_try='test -s conftest.$ac_objext'
33001   { (case "(($ac_try" in
33002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33003   *) ac_try_echo=$ac_try;;
33004 esac
33005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33006   (eval "$ac_try") 2>&5
33007   ac_status=$?
33008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009   (exit $ac_status); }; }; then
33010   ac_cv_func_finite_in_ieeefp_h=yes
33011 else
33012   echo "$as_me: failed program was:" >&5
33013 sed 's/^/| /' conftest.$ac_ext >&5
33014
33015         ac_cv_func_finite_in_ieeefp_h=no
33016 fi
33017
33018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33019   ac_ext=c
33020 ac_cpp='$CPP $CPPFLAGS'
33021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33024
33025 fi
33026 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33027 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33028
33029 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33030
33031 cat >>confdefs.h <<\_ACEOF
33032 #define HAVE_FINITE_IN_IEEEFP_H 1
33033 _ACEOF
33034
33035 fi
33036
33037
33038
33039 if test "$llvm_cv_platform_type" = "Unix" ; then
33040
33041
33042 for ac_header in stdlib.h unistd.h
33043 do
33044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33046   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33049   echo $ECHO_N "(cached) $ECHO_C" >&6
33050 fi
33051 ac_res=`eval echo '${'$as_ac_Header'}'`
33052                { echo "$as_me:$LINENO: result: $ac_res" >&5
33053 echo "${ECHO_T}$ac_res" >&6; }
33054 else
33055   # Is the header compilable?
33056 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33058 cat >conftest.$ac_ext <<_ACEOF
33059 /* confdefs.h.  */
33060 _ACEOF
33061 cat confdefs.h >>conftest.$ac_ext
33062 cat >>conftest.$ac_ext <<_ACEOF
33063 /* end confdefs.h.  */
33064 $ac_includes_default
33065 #include <$ac_header>
33066 _ACEOF
33067 rm -f conftest.$ac_objext
33068 if { (ac_try="$ac_compile"
33069 case "(($ac_try" in
33070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33071   *) ac_try_echo=$ac_try;;
33072 esac
33073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33074   (eval "$ac_compile") 2>conftest.er1
33075   ac_status=$?
33076   grep -v '^ *+' conftest.er1 >conftest.err
33077   rm -f conftest.er1
33078   cat conftest.err >&5
33079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33080   (exit $ac_status); } &&
33081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33082   { (case "(($ac_try" in
33083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33084   *) ac_try_echo=$ac_try;;
33085 esac
33086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33087   (eval "$ac_try") 2>&5
33088   ac_status=$?
33089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090   (exit $ac_status); }; } &&
33091          { ac_try='test -s conftest.$ac_objext'
33092   { (case "(($ac_try" in
33093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33094   *) ac_try_echo=$ac_try;;
33095 esac
33096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33097   (eval "$ac_try") 2>&5
33098   ac_status=$?
33099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33100   (exit $ac_status); }; }; then
33101   ac_header_compiler=yes
33102 else
33103   echo "$as_me: failed program was:" >&5
33104 sed 's/^/| /' conftest.$ac_ext >&5
33105
33106         ac_header_compiler=no
33107 fi
33108
33109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33111 echo "${ECHO_T}$ac_header_compiler" >&6; }
33112
33113 # Is the header present?
33114 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33116 cat >conftest.$ac_ext <<_ACEOF
33117 /* confdefs.h.  */
33118 _ACEOF
33119 cat confdefs.h >>conftest.$ac_ext
33120 cat >>conftest.$ac_ext <<_ACEOF
33121 /* end confdefs.h.  */
33122 #include <$ac_header>
33123 _ACEOF
33124 if { (ac_try="$ac_cpp conftest.$ac_ext"
33125 case "(($ac_try" in
33126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33127   *) ac_try_echo=$ac_try;;
33128 esac
33129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33130   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33131   ac_status=$?
33132   grep -v '^ *+' conftest.er1 >conftest.err
33133   rm -f conftest.er1
33134   cat conftest.err >&5
33135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33136   (exit $ac_status); } >/dev/null; then
33137   if test -s conftest.err; then
33138     ac_cpp_err=$ac_c_preproc_warn_flag
33139     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33140   else
33141     ac_cpp_err=
33142   fi
33143 else
33144   ac_cpp_err=yes
33145 fi
33146 if test -z "$ac_cpp_err"; then
33147   ac_header_preproc=yes
33148 else
33149   echo "$as_me: failed program was:" >&5
33150 sed 's/^/| /' conftest.$ac_ext >&5
33151
33152   ac_header_preproc=no
33153 fi
33154
33155 rm -f conftest.err conftest.$ac_ext
33156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33157 echo "${ECHO_T}$ac_header_preproc" >&6; }
33158
33159 # So?  What about this header?
33160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33161   yes:no: )
33162     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33164     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33166     ac_header_preproc=yes
33167     ;;
33168   no:yes:* )
33169     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33171     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33172 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33173     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33175     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33176 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33179     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33181     ( cat <<\_ASBOX
33182 ## ----------------------------------- ##
33183 ## Report this to llvmbugs@cs.uiuc.edu ##
33184 ## ----------------------------------- ##
33185 _ASBOX
33186      ) | sed "s/^/$as_me: WARNING:     /" >&2
33187     ;;
33188 esac
33189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33192   echo $ECHO_N "(cached) $ECHO_C" >&6
33193 else
33194   eval "$as_ac_Header=\$ac_header_preproc"
33195 fi
33196 ac_res=`eval echo '${'$as_ac_Header'}'`
33197                { echo "$as_me:$LINENO: result: $ac_res" >&5
33198 echo "${ECHO_T}$ac_res" >&6; }
33199
33200 fi
33201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33202   cat >>confdefs.h <<_ACEOF
33203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33204 _ACEOF
33205
33206 fi
33207
33208 done
33209
33210
33211 for ac_func in getpagesize
33212 do
33213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33214 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33217   echo $ECHO_N "(cached) $ECHO_C" >&6
33218 else
33219   cat >conftest.$ac_ext <<_ACEOF
33220 /* confdefs.h.  */
33221 _ACEOF
33222 cat confdefs.h >>conftest.$ac_ext
33223 cat >>conftest.$ac_ext <<_ACEOF
33224 /* end confdefs.h.  */
33225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33227 #define $ac_func innocuous_$ac_func
33228
33229 /* System header to define __stub macros and hopefully few prototypes,
33230     which can conflict with char $ac_func (); below.
33231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33232     <limits.h> exists even on freestanding compilers.  */
33233
33234 #ifdef __STDC__
33235 # include <limits.h>
33236 #else
33237 # include <assert.h>
33238 #endif
33239
33240 #undef $ac_func
33241
33242 /* Override any GCC internal prototype to avoid an error.
33243    Use char because int might match the return type of a GCC
33244    builtin and then its argument prototype would still apply.  */
33245 #ifdef __cplusplus
33246 extern "C"
33247 #endif
33248 char $ac_func ();
33249 /* The GNU C library defines this for functions which it implements
33250     to always fail with ENOSYS.  Some functions are actually named
33251     something starting with __ and the normal name is an alias.  */
33252 #if defined __stub_$ac_func || defined __stub___$ac_func
33253 choke me
33254 #endif
33255
33256 int
33257 main ()
33258 {
33259 return $ac_func ();
33260   ;
33261   return 0;
33262 }
33263 _ACEOF
33264 rm -f conftest.$ac_objext conftest$ac_exeext
33265 if { (ac_try="$ac_link"
33266 case "(($ac_try" in
33267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268   *) ac_try_echo=$ac_try;;
33269 esac
33270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271   (eval "$ac_link") 2>conftest.er1
33272   ac_status=$?
33273   grep -v '^ *+' conftest.er1 >conftest.err
33274   rm -f conftest.er1
33275   cat conftest.err >&5
33276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33277   (exit $ac_status); } &&
33278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33279   { (case "(($ac_try" in
33280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33281   *) ac_try_echo=$ac_try;;
33282 esac
33283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33284   (eval "$ac_try") 2>&5
33285   ac_status=$?
33286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287   (exit $ac_status); }; } &&
33288          { ac_try='test -s conftest$ac_exeext'
33289   { (case "(($ac_try" in
33290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33291   *) ac_try_echo=$ac_try;;
33292 esac
33293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33294   (eval "$ac_try") 2>&5
33295   ac_status=$?
33296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297   (exit $ac_status); }; }; then
33298   eval "$as_ac_var=yes"
33299 else
33300   echo "$as_me: failed program was:" >&5
33301 sed 's/^/| /' conftest.$ac_ext >&5
33302
33303         eval "$as_ac_var=no"
33304 fi
33305
33306 rm -f core conftest.err conftest.$ac_objext \
33307       conftest$ac_exeext conftest.$ac_ext
33308 fi
33309 ac_res=`eval echo '${'$as_ac_var'}'`
33310                { echo "$as_me:$LINENO: result: $ac_res" >&5
33311 echo "${ECHO_T}$ac_res" >&6; }
33312 if test `eval echo '${'$as_ac_var'}'` = yes; then
33313   cat >>confdefs.h <<_ACEOF
33314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33315 _ACEOF
33316
33317 fi
33318 done
33319
33320 { echo "$as_me:$LINENO: checking for working mmap" >&5
33321 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33322 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33323   echo $ECHO_N "(cached) $ECHO_C" >&6
33324 else
33325   if test "$cross_compiling" = yes; then
33326   ac_cv_func_mmap_fixed_mapped=no
33327 else
33328   cat >conftest.$ac_ext <<_ACEOF
33329 /* confdefs.h.  */
33330 _ACEOF
33331 cat confdefs.h >>conftest.$ac_ext
33332 cat >>conftest.$ac_ext <<_ACEOF
33333 /* end confdefs.h.  */
33334 $ac_includes_default
33335 /* malloc might have been renamed as rpl_malloc. */
33336 #undef malloc
33337
33338 /* Thanks to Mike Haertel and Jim Avera for this test.
33339    Here is a matrix of mmap possibilities:
33340         mmap private not fixed
33341         mmap private fixed at somewhere currently unmapped
33342         mmap private fixed at somewhere already mapped
33343         mmap shared not fixed
33344         mmap shared fixed at somewhere currently unmapped
33345         mmap shared fixed at somewhere already mapped
33346    For private mappings, we should verify that changes cannot be read()
33347    back from the file, nor mmap's back from the file at a different
33348    address.  (There have been systems where private was not correctly
33349    implemented like the infamous i386 svr4.0, and systems where the
33350    VM page cache was not coherent with the file system buffer cache
33351    like early versions of FreeBSD and possibly contemporary NetBSD.)
33352    For shared mappings, we should conversely verify that changes get
33353    propagated back to all the places they're supposed to be.
33354
33355    Grep wants private fixed already mapped.
33356    The main things grep needs to know about mmap are:
33357    * does it exist and is it safe to write into the mmap'd area
33358    * how to use it (BSD variants)  */
33359
33360 #include <fcntl.h>
33361 #include <sys/mman.h>
33362
33363 #if !STDC_HEADERS && !HAVE_STDLIB_H
33364 char *malloc ();
33365 #endif
33366
33367 /* This mess was copied from the GNU getpagesize.h.  */
33368 #if !HAVE_GETPAGESIZE
33369 /* Assume that all systems that can run configure have sys/param.h.  */
33370 # if !HAVE_SYS_PARAM_H
33371 #  define HAVE_SYS_PARAM_H 1
33372 # endif
33373
33374 # ifdef _SC_PAGESIZE
33375 #  define getpagesize() sysconf(_SC_PAGESIZE)
33376 # else /* no _SC_PAGESIZE */
33377 #  if HAVE_SYS_PARAM_H
33378 #   include <sys/param.h>
33379 #   ifdef EXEC_PAGESIZE
33380 #    define getpagesize() EXEC_PAGESIZE
33381 #   else /* no EXEC_PAGESIZE */
33382 #    ifdef NBPG
33383 #     define getpagesize() NBPG * CLSIZE
33384 #     ifndef CLSIZE
33385 #      define CLSIZE 1
33386 #     endif /* no CLSIZE */
33387 #    else /* no NBPG */
33388 #     ifdef NBPC
33389 #      define getpagesize() NBPC
33390 #     else /* no NBPC */
33391 #      ifdef PAGESIZE
33392 #       define getpagesize() PAGESIZE
33393 #      endif /* PAGESIZE */
33394 #     endif /* no NBPC */
33395 #    endif /* no NBPG */
33396 #   endif /* no EXEC_PAGESIZE */
33397 #  else /* no HAVE_SYS_PARAM_H */
33398 #   define getpagesize() 8192   /* punt totally */
33399 #  endif /* no HAVE_SYS_PARAM_H */
33400 # endif /* no _SC_PAGESIZE */
33401
33402 #endif /* no HAVE_GETPAGESIZE */
33403
33404 int
33405 main ()
33406 {
33407   char *data, *data2, *data3;
33408   int i, pagesize;
33409   int fd;
33410
33411   pagesize = getpagesize ();
33412
33413   /* First, make a file with some known garbage in it. */
33414   data = (char *) malloc (pagesize);
33415   if (!data)
33416     return 1;
33417   for (i = 0; i < pagesize; ++i)
33418     *(data + i) = rand ();
33419   umask (0);
33420   fd = creat ("conftest.mmap", 0600);
33421   if (fd < 0)
33422     return 1;
33423   if (write (fd, data, pagesize) != pagesize)
33424     return 1;
33425   close (fd);
33426
33427   /* Next, try to mmap the file at a fixed address which already has
33428      something else allocated at it.  If we can, also make sure that
33429      we see the same garbage.  */
33430   fd = open ("conftest.mmap", O_RDWR);
33431   if (fd < 0)
33432     return 1;
33433   data2 = (char *) malloc (2 * pagesize);
33434   if (!data2)
33435     return 1;
33436   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33437   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33438                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33439     return 1;
33440   for (i = 0; i < pagesize; ++i)
33441     if (*(data + i) != *(data2 + i))
33442       return 1;
33443
33444   /* Finally, make sure that changes to the mapped area do not
33445      percolate back to the file as seen by read().  (This is a bug on
33446      some variants of i386 svr4.0.)  */
33447   for (i = 0; i < pagesize; ++i)
33448     *(data2 + i) = *(data2 + i) + 1;
33449   data3 = (char *) malloc (pagesize);
33450   if (!data3)
33451     return 1;
33452   if (read (fd, data3, pagesize) != pagesize)
33453     return 1;
33454   for (i = 0; i < pagesize; ++i)
33455     if (*(data + i) != *(data3 + i))
33456       return 1;
33457   close (fd);
33458   return 0;
33459 }
33460 _ACEOF
33461 rm -f conftest$ac_exeext
33462 if { (ac_try="$ac_link"
33463 case "(($ac_try" in
33464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33465   *) ac_try_echo=$ac_try;;
33466 esac
33467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33468   (eval "$ac_link") 2>&5
33469   ac_status=$?
33470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33471   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33472   { (case "(($ac_try" in
33473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33474   *) ac_try_echo=$ac_try;;
33475 esac
33476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33477   (eval "$ac_try") 2>&5
33478   ac_status=$?
33479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480   (exit $ac_status); }; }; then
33481   ac_cv_func_mmap_fixed_mapped=yes
33482 else
33483   echo "$as_me: program exited with status $ac_status" >&5
33484 echo "$as_me: failed program was:" >&5
33485 sed 's/^/| /' conftest.$ac_ext >&5
33486
33487 ( exit $ac_status )
33488 ac_cv_func_mmap_fixed_mapped=no
33489 fi
33490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33491 fi
33492
33493
33494 fi
33495 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33496 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33497 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33498
33499 cat >>confdefs.h <<\_ACEOF
33500 #define HAVE_MMAP 1
33501 _ACEOF
33502
33503 fi
33504 rm -f conftest.mmap
33505
33506   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33507 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33508 if test "${ac_cv_func_mmap_file+set}" = set; then
33509   echo $ECHO_N "(cached) $ECHO_C" >&6
33510 else
33511    ac_ext=c
33512 ac_cpp='$CPP $CPPFLAGS'
33513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33516
33517   if test "$cross_compiling" = yes; then
33518   ac_cv_func_mmap_file=no
33519 else
33520   cat >conftest.$ac_ext <<_ACEOF
33521
33522     /* confdefs.h.  */
33523 _ACEOF
33524 cat confdefs.h >>conftest.$ac_ext
33525 cat >>conftest.$ac_ext <<_ACEOF
33526 /* end confdefs.h.  */
33527
33528 #include <sys/types.h>
33529 #include <sys/mman.h>
33530 #include <fcntl.h>
33531
33532 int
33533 main ()
33534 {
33535
33536   int fd;
33537   fd = creat ("foo",0777);
33538   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33539   unlink ("foo");
33540   return (fd != (int) MAP_FAILED);
33541   ;
33542   return 0;
33543 }
33544 _ACEOF
33545 rm -f conftest$ac_exeext
33546 if { (ac_try="$ac_link"
33547 case "(($ac_try" in
33548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33549   *) ac_try_echo=$ac_try;;
33550 esac
33551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33552   (eval "$ac_link") 2>&5
33553   ac_status=$?
33554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33556   { (case "(($ac_try" in
33557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33558   *) ac_try_echo=$ac_try;;
33559 esac
33560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33561   (eval "$ac_try") 2>&5
33562   ac_status=$?
33563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564   (exit $ac_status); }; }; then
33565   ac_cv_func_mmap_file=yes
33566 else
33567   echo "$as_me: program exited with status $ac_status" >&5
33568 echo "$as_me: failed program was:" >&5
33569 sed 's/^/| /' conftest.$ac_ext >&5
33570
33571 ( exit $ac_status )
33572 ac_cv_func_mmap_file=no
33573 fi
33574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33575 fi
33576
33577
33578   ac_ext=c
33579 ac_cpp='$CPP $CPPFLAGS'
33580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33583
33584
33585 fi
33586 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33587 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33588 if test "$ac_cv_func_mmap_file" = yes; then
33589
33590 cat >>confdefs.h <<\_ACEOF
33591 #define HAVE_MMAP_FILE
33592 _ACEOF
33593
33594    MMAP_FILE=yes
33595
33596 fi
33597
33598   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33599 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33600 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33601   echo $ECHO_N "(cached) $ECHO_C" >&6
33602 else
33603   if test "$llvm_cv_os_type" = "Interix" ; then
33604    ac_cv_need_dev_zero_for_mmap=yes
33605  else
33606    ac_cv_need_dev_zero_for_mmap=no
33607  fi
33608
33609 fi
33610 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33611 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33612 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33613
33614 cat >>confdefs.h <<\_ACEOF
33615 #define NEED_DEV_ZERO_FOR_MMAP 1
33616 _ACEOF
33617
33618 fi
33619
33620   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33621   then
33622     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33623 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33624   fi
33625   if test "$ac_cv_func_mmap_file" = "no"
33626   then
33627     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33628 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33629   fi
33630 fi
33631
33632
33633
33634 for ac_func in __dso_handle
33635 do
33636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33640   echo $ECHO_N "(cached) $ECHO_C" >&6
33641 else
33642   cat >conftest.$ac_ext <<_ACEOF
33643 /* confdefs.h.  */
33644 _ACEOF
33645 cat confdefs.h >>conftest.$ac_ext
33646 cat >>conftest.$ac_ext <<_ACEOF
33647 /* end confdefs.h.  */
33648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33650 #define $ac_func innocuous_$ac_func
33651
33652 /* System header to define __stub macros and hopefully few prototypes,
33653     which can conflict with char $ac_func (); below.
33654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33655     <limits.h> exists even on freestanding compilers.  */
33656
33657 #ifdef __STDC__
33658 # include <limits.h>
33659 #else
33660 # include <assert.h>
33661 #endif
33662
33663 #undef $ac_func
33664
33665 /* Override any GCC internal prototype to avoid an error.
33666    Use char because int might match the return type of a GCC
33667    builtin and then its argument prototype would still apply.  */
33668 #ifdef __cplusplus
33669 extern "C"
33670 #endif
33671 char $ac_func ();
33672 /* The GNU C library defines this for functions which it implements
33673     to always fail with ENOSYS.  Some functions are actually named
33674     something starting with __ and the normal name is an alias.  */
33675 #if defined __stub_$ac_func || defined __stub___$ac_func
33676 choke me
33677 #endif
33678
33679 int
33680 main ()
33681 {
33682 return $ac_func ();
33683   ;
33684   return 0;
33685 }
33686 _ACEOF
33687 rm -f conftest.$ac_objext conftest$ac_exeext
33688 if { (ac_try="$ac_link"
33689 case "(($ac_try" in
33690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33691   *) ac_try_echo=$ac_try;;
33692 esac
33693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33694   (eval "$ac_link") 2>conftest.er1
33695   ac_status=$?
33696   grep -v '^ *+' conftest.er1 >conftest.err
33697   rm -f conftest.er1
33698   cat conftest.err >&5
33699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33700   (exit $ac_status); } &&
33701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33702   { (case "(($ac_try" in
33703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33704   *) ac_try_echo=$ac_try;;
33705 esac
33706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33707   (eval "$ac_try") 2>&5
33708   ac_status=$?
33709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33710   (exit $ac_status); }; } &&
33711          { ac_try='test -s conftest$ac_exeext'
33712   { (case "(($ac_try" in
33713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33714   *) ac_try_echo=$ac_try;;
33715 esac
33716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33717   (eval "$ac_try") 2>&5
33718   ac_status=$?
33719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720   (exit $ac_status); }; }; then
33721   eval "$as_ac_var=yes"
33722 else
33723   echo "$as_me: failed program was:" >&5
33724 sed 's/^/| /' conftest.$ac_ext >&5
33725
33726         eval "$as_ac_var=no"
33727 fi
33728
33729 rm -f core conftest.err conftest.$ac_objext \
33730       conftest$ac_exeext conftest.$ac_ext
33731 fi
33732 ac_res=`eval echo '${'$as_ac_var'}'`
33733                { echo "$as_me:$LINENO: result: $ac_res" >&5
33734 echo "${ECHO_T}$ac_res" >&6; }
33735 if test `eval echo '${'$as_ac_var'}'` = yes; then
33736   cat >>confdefs.h <<_ACEOF
33737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33738 _ACEOF
33739
33740 fi
33741 done
33742
33743
33744 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33745 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33746 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33747   echo $ECHO_N "(cached) $ECHO_C" >&6
33748 else
33749   llvm_cv_llvmgcc_sanity="no"
33750 if test -x "$LLVMGCC" ; then
33751   cp /dev/null conftest.c
33752   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33753       grep 'target datalayout =' > /dev/null 2>&1
33754   if test $? -eq 0 ; then
33755     llvm_cv_llvmgcc_sanity="yes"
33756   fi
33757   rm conftest.c
33758 fi
33759 fi
33760 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33761 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33762
33763 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33764   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33765 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33766   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33767   LLVMCC1=$llvmcc1path
33768
33769   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33770   LLVMCC1PLUS=$llvmcc1pluspath
33771
33772   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33773   LLVMGCCDIR=$llvmgccdir
33774
33775   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33776   LLVMGCCLIBEXEC=$llvmgcclibexec
33777
33778   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33779   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33780   LLVMGCC_VERSION=$llvmgccversion
33781
33782   LLVMGCC_MAJVERS=$llvmgccmajvers
33783
33784   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
33785   LLVMGCC_LANGS=$llvmgcclangs
33786
33787   { echo "$as_me:$LINENO: result: ok" >&5
33788 echo "${ECHO_T}ok" >&6; }
33789 fi
33790
33791 SHLIBEXT=$libltdl_cv_shlibext
33792
33793
33794 # Translate the various configuration directories and other basic
33795 # information into substitutions that will end up in Makefile.config.in
33796 # that these configured values can be used by the makefiles
33797 if test "${prefix}" = "NONE" ; then
33798   prefix="/usr/local"
33799 fi
33800 eval LLVM_PREFIX="${prefix}";
33801 eval LLVM_BINDIR="${prefix}/bin";
33802 eval LLVM_LIBDIR="${prefix}/lib";
33803 eval LLVM_DATADIR="${prefix}/share/llvm";
33804 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33805 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33806 eval LLVM_INCLUDEDIR="${prefix}/include";
33807 eval LLVM_INFODIR="${prefix}/info";
33808 eval LLVM_MANDIR="${prefix}/man";
33809 LLVM_CONFIGTIME=`date`
33810
33811
33812
33813
33814
33815
33816
33817
33818
33819
33820
33821 # Place the various directores into the config.h file as #defines so that we
33822 # can know about the installation paths within LLVM.
33823
33824 cat >>confdefs.h <<_ACEOF
33825 #define LLVM_PREFIX "$LLVM_PREFIX"
33826 _ACEOF
33827
33828
33829 cat >>confdefs.h <<_ACEOF
33830 #define LLVM_BINDIR "$LLVM_BINDIR"
33831 _ACEOF
33832
33833
33834 cat >>confdefs.h <<_ACEOF
33835 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33836 _ACEOF
33837
33838
33839 cat >>confdefs.h <<_ACEOF
33840 #define LLVM_DATADIR "$LLVM_DATADIR"
33841 _ACEOF
33842
33843
33844 cat >>confdefs.h <<_ACEOF
33845 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
33846 _ACEOF
33847
33848
33849 cat >>confdefs.h <<_ACEOF
33850 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33851 _ACEOF
33852
33853
33854 cat >>confdefs.h <<_ACEOF
33855 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33856 _ACEOF
33857
33858
33859 cat >>confdefs.h <<_ACEOF
33860 #define LLVM_INFODIR "$LLVM_INFODIR"
33861 _ACEOF
33862
33863
33864 cat >>confdefs.h <<_ACEOF
33865 #define LLVM_MANDIR "$LLVM_MANDIR"
33866 _ACEOF
33867
33868
33869 cat >>confdefs.h <<_ACEOF
33870 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33871 _ACEOF
33872
33873
33874 cat >>confdefs.h <<_ACEOF
33875 #define LLVM_HOSTTRIPLE "$host"
33876 _ACEOF
33877
33878
33879 # Determine which bindings to build.
33880 if test "$BINDINGS_TO_BUILD" = auto ; then
33881   BINDINGS_TO_BUILD=""
33882   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33883     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33884   fi
33885 fi
33886 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33887
33888
33889 # This isn't really configurey, but it avoids having to repeat the list in
33890 # other files.
33891 ALL_BINDINGS=ocaml
33892
33893
33894 # Do any work necessary to ensure that bindings have what they need.
33895 binding_prereqs_failed=0
33896 for a_binding in $BINDINGS_TO_BUILD ; do
33897   case "$a_binding" in
33898   ocaml)
33899     if test "x$OCAMLC" = x ; then
33900       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33901 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33902       binding_prereqs_failed=1
33903     fi
33904     if test "x$OCAMLDEP" = x ; then
33905       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33906 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33907       binding_prereqs_failed=1
33908     fi
33909     if test "x$OCAMLOPT" = x ; then
33910       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33911 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33912           fi
33913     if test "x$with_ocaml_libdir" != xauto ; then
33914       OCAML_LIBDIR=$with_ocaml_libdir
33915
33916     else
33917       ocaml_stdlib="`"$OCAMLC" -where`"
33918       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33919       then
33920         # ocaml stdlib is beneath our prefix; use stdlib
33921         OCAML_LIBDIR=$ocaml_stdlib
33922
33923       else
33924         # ocaml stdlib is outside our prefix; use libdir/ocaml
33925         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33926
33927       fi
33928     fi
33929     ;;
33930   esac
33931 done
33932 if test "$binding_prereqs_failed" = 1 ; then
33933   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33934 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33935    { (exit 1); exit 1; }; }
33936 fi
33937
33938 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33939 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33940 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33941   echo $ECHO_N "(cached) $ECHO_C" >&6
33942 else
33943    ac_ext=cpp
33944 ac_cpp='$CXXCPP $CPPFLAGS'
33945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33948
33949   oldcxxflags="$CXXFLAGS"
33950   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33951   cat >conftest.$ac_ext <<_ACEOF
33952 /* confdefs.h.  */
33953 _ACEOF
33954 cat confdefs.h >>conftest.$ac_ext
33955 cat >>conftest.$ac_ext <<_ACEOF
33956 /* end confdefs.h.  */
33957
33958 int
33959 main ()
33960 {
33961
33962   ;
33963   return 0;
33964 }
33965 _ACEOF
33966 rm -f conftest.$ac_objext
33967 if { (ac_try="$ac_compile"
33968 case "(($ac_try" in
33969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33970   *) ac_try_echo=$ac_try;;
33971 esac
33972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33973   (eval "$ac_compile") 2>conftest.er1
33974   ac_status=$?
33975   grep -v '^ *+' conftest.er1 >conftest.err
33976   rm -f conftest.er1
33977   cat conftest.err >&5
33978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33979   (exit $ac_status); } &&
33980          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33981   { (case "(($ac_try" in
33982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33983   *) ac_try_echo=$ac_try;;
33984 esac
33985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33986   (eval "$ac_try") 2>&5
33987   ac_status=$?
33988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33989   (exit $ac_status); }; } &&
33990          { ac_try='test -s conftest.$ac_objext'
33991   { (case "(($ac_try" in
33992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33993   *) ac_try_echo=$ac_try;;
33994 esac
33995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33996   (eval "$ac_try") 2>&5
33997   ac_status=$?
33998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999   (exit $ac_status); }; }; then
34000   llvm_cv_cxx_visibility_inlines_hidden=yes
34001 else
34002   echo "$as_me: failed program was:" >&5
34003 sed 's/^/| /' conftest.$ac_ext >&5
34004
34005         llvm_cv_cxx_visibility_inlines_hidden=no
34006 fi
34007
34008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34009   CXXFLAGS="$oldcxxflags"
34010   ac_ext=c
34011 ac_cpp='$CPP $CPPFLAGS'
34012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34015
34016
34017 fi
34018 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34019 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34020 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34021   ENABLE_VISIBILITY_INLINES_HIDDEN=1
34022
34023 else
34024   ENABLE_VISIBILITY_INLINES_HIDDEN=0
34025
34026 fi
34027
34028
34029 if test "$llvm_cv_link_use_r" = "yes" ; then
34030   RPATH="-Wl,-R"
34031 else
34032   RPATH="-Wl,-rpath"
34033 fi
34034
34035
34036 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34037   RDYNAMIC="-Wl,-export-dynamic"
34038 else
34039   RDYNAMIC=""
34040 fi
34041
34042
34043
34044 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34045
34046 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34047
34048 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34049
34050
34051 ac_config_files="$ac_config_files Makefile.config"
34052
34053
34054 ac_config_files="$ac_config_files llvm.spec"
34055
34056
34057 ac_config_files="$ac_config_files docs/doxygen.cfg"
34058
34059
34060 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34061
34062
34063 ac_config_commands="$ac_config_commands setup"
34064
34065 ac_config_commands="$ac_config_commands Makefile"
34066
34067
34068 ac_config_commands="$ac_config_commands Makefile.common"
34069
34070
34071 ac_config_commands="$ac_config_commands examples/Makefile"
34072
34073
34074 ac_config_commands="$ac_config_commands lib/Makefile"
34075
34076
34077 ac_config_commands="$ac_config_commands runtime/Makefile"
34078
34079
34080 ac_config_commands="$ac_config_commands test/Makefile"
34081
34082
34083 ac_config_commands="$ac_config_commands test/Makefile.tests"
34084
34085
34086 ac_config_commands="$ac_config_commands unittests/Makefile"
34087
34088
34089 ac_config_commands="$ac_config_commands tools/Makefile"
34090
34091
34092 ac_config_commands="$ac_config_commands utils/Makefile"
34093
34094
34095 ac_config_commands="$ac_config_commands projects/Makefile"
34096
34097
34098 ac_config_commands="$ac_config_commands bindings/Makefile"
34099
34100
34101 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34102
34103
34104
34105 cat >confcache <<\_ACEOF
34106 # This file is a shell script that caches the results of configure
34107 # tests run on this system so they can be shared between configure
34108 # scripts and configure runs, see configure's option --config-cache.
34109 # It is not useful on other systems.  If it contains results you don't
34110 # want to keep, you may remove or edit it.
34111 #
34112 # config.status only pays attention to the cache file if you give it
34113 # the --recheck option to rerun configure.
34114 #
34115 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34116 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34117 # following values.
34118
34119 _ACEOF
34120
34121 # The following way of writing the cache mishandles newlines in values,
34122 # but we know of no workaround that is simple, portable, and efficient.
34123 # So, we kill variables containing newlines.
34124 # Ultrix sh set writes to stderr and can't be redirected directly,
34125 # and sets the high bit in the cache file unless we assign to the vars.
34126 (
34127   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34128     eval ac_val=\$$ac_var
34129     case $ac_val in #(
34130     *${as_nl}*)
34131       case $ac_var in #(
34132       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34133 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34134       esac
34135       case $ac_var in #(
34136       _ | IFS | as_nl) ;; #(
34137       *) $as_unset $ac_var ;;
34138       esac ;;
34139     esac
34140   done
34141
34142   (set) 2>&1 |
34143     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34144     *${as_nl}ac_space=\ *)
34145       # `set' does not quote correctly, so add quotes (double-quote
34146       # substitution turns \\\\ into \\, and sed turns \\ into \).
34147       sed -n \
34148         "s/'/'\\\\''/g;
34149           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34150       ;; #(
34151     *)
34152       # `set' quotes correctly as required by POSIX, so do not add quotes.
34153       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34154       ;;
34155     esac |
34156     sort
34157 ) |
34158   sed '
34159      /^ac_cv_env_/b end
34160      t clear
34161      :clear
34162      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34163      t end
34164      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34165      :end' >>confcache
34166 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34167   if test -w "$cache_file"; then
34168     test "x$cache_file" != "x/dev/null" &&
34169       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34170 echo "$as_me: updating cache $cache_file" >&6;}
34171     cat confcache >$cache_file
34172   else
34173     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34174 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34175   fi
34176 fi
34177 rm -f confcache
34178
34179 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34180 # Let make expand exec_prefix.
34181 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34182
34183 DEFS=-DHAVE_CONFIG_H
34184
34185 ac_libobjs=
34186 ac_ltlibobjs=
34187 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34188   # 1. Remove the extension, and $U if already installed.
34189   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34190   ac_i=`echo "$ac_i" | sed "$ac_script"`
34191   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34192   #    will be set to the directory where LIBOBJS objects are built.
34193   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34194   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34195 done
34196 LIBOBJS=$ac_libobjs
34197
34198 LTLIBOBJS=$ac_ltlibobjs
34199
34200
34201 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34202   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34203 Usually this means the macro was only invoked conditionally." >&5
34204 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34205 Usually this means the macro was only invoked conditionally." >&2;}
34206    { (exit 1); exit 1; }; }
34207 fi
34208 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34209   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34210 Usually this means the macro was only invoked conditionally." >&5
34211 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34212 Usually this means the macro was only invoked conditionally." >&2;}
34213    { (exit 1); exit 1; }; }
34214 fi
34215
34216 : ${CONFIG_STATUS=./config.status}
34217 ac_clean_files_save=$ac_clean_files
34218 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34219 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34220 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34221 cat >$CONFIG_STATUS <<_ACEOF
34222 #! $SHELL
34223 # Generated by $as_me.
34224 # Run this file to recreate the current configuration.
34225 # Compiler output produced by configure, useful for debugging
34226 # configure, is in config.log if it exists.
34227
34228 debug=false
34229 ac_cs_recheck=false
34230 ac_cs_silent=false
34231 SHELL=\${CONFIG_SHELL-$SHELL}
34232 _ACEOF
34233
34234 cat >>$CONFIG_STATUS <<\_ACEOF
34235 ## --------------------- ##
34236 ## M4sh Initialization.  ##
34237 ## --------------------- ##
34238
34239 # Be Bourne compatible
34240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34241   emulate sh
34242   NULLCMD=:
34243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34244   # is contrary to our usage.  Disable this feature.
34245   alias -g '${1+"$@"}'='"$@"'
34246   setopt NO_GLOB_SUBST
34247 else
34248   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34249 fi
34250 BIN_SH=xpg4; export BIN_SH # for Tru64
34251 DUALCASE=1; export DUALCASE # for MKS sh
34252
34253
34254 # PATH needs CR
34255 # Avoid depending upon Character Ranges.
34256 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34257 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34258 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34259 as_cr_digits='0123456789'
34260 as_cr_alnum=$as_cr_Letters$as_cr_digits
34261
34262 # The user is always right.
34263 if test "${PATH_SEPARATOR+set}" != set; then
34264   echo "#! /bin/sh" >conf$$.sh
34265   echo  "exit 0"   >>conf$$.sh
34266   chmod +x conf$$.sh
34267   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34268     PATH_SEPARATOR=';'
34269   else
34270     PATH_SEPARATOR=:
34271   fi
34272   rm -f conf$$.sh
34273 fi
34274
34275 # Support unset when possible.
34276 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34277   as_unset=unset
34278 else
34279   as_unset=false
34280 fi
34281
34282
34283 # IFS
34284 # We need space, tab and new line, in precisely that order.  Quoting is
34285 # there to prevent editors from complaining about space-tab.
34286 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34287 # splitting by setting IFS to empty value.)
34288 as_nl='
34289 '
34290 IFS=" ""        $as_nl"
34291
34292 # Find who we are.  Look in the path if we contain no directory separator.
34293 case $0 in
34294   *[\\/]* ) as_myself=$0 ;;
34295   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34296 for as_dir in $PATH
34297 do
34298   IFS=$as_save_IFS
34299   test -z "$as_dir" && as_dir=.
34300   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34301 done
34302 IFS=$as_save_IFS
34303
34304      ;;
34305 esac
34306 # We did not find ourselves, most probably we were run as `sh COMMAND'
34307 # in which case we are not to be found in the path.
34308 if test "x$as_myself" = x; then
34309   as_myself=$0
34310 fi
34311 if test ! -f "$as_myself"; then
34312   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34313   { (exit 1); exit 1; }
34314 fi
34315
34316 # Work around bugs in pre-3.0 UWIN ksh.
34317 for as_var in ENV MAIL MAILPATH
34318 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34319 done
34320 PS1='$ '
34321 PS2='> '
34322 PS4='+ '
34323
34324 # NLS nuisances.
34325 for as_var in \
34326   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34327   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34328   LC_TELEPHONE LC_TIME
34329 do
34330   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34331     eval $as_var=C; export $as_var
34332   else
34333     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34334   fi
34335 done
34336
34337 # Required to use basename.
34338 if expr a : '\(a\)' >/dev/null 2>&1 &&
34339    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34340   as_expr=expr
34341 else
34342   as_expr=false
34343 fi
34344
34345 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34346   as_basename=basename
34347 else
34348   as_basename=false
34349 fi
34350
34351
34352 # Name of the executable.
34353 as_me=`$as_basename -- "$0" ||
34354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34355          X"$0" : 'X\(//\)$' \| \
34356          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34357 echo X/"$0" |
34358     sed '/^.*\/\([^/][^/]*\)\/*$/{
34359             s//\1/
34360             q
34361           }
34362           /^X\/\(\/\/\)$/{
34363             s//\1/
34364             q
34365           }
34366           /^X\/\(\/\).*/{
34367             s//\1/
34368             q
34369           }
34370           s/.*/./; q'`
34371
34372 # CDPATH.
34373 $as_unset CDPATH
34374
34375
34376
34377   as_lineno_1=$LINENO
34378   as_lineno_2=$LINENO
34379   test "x$as_lineno_1" != "x$as_lineno_2" &&
34380   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34381
34382   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34383   # uniformly replaced by the line number.  The first 'sed' inserts a
34384   # line-number line after each line using $LINENO; the second 'sed'
34385   # does the real work.  The second script uses 'N' to pair each
34386   # line-number line with the line containing $LINENO, and appends
34387   # trailing '-' during substitution so that $LINENO is not a special
34388   # case at line end.
34389   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34390   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34391   # E. McMahon (1931-1989) for sed's syntax.  :-)
34392   sed -n '
34393     p
34394     /[$]LINENO/=
34395   ' <$as_myself |
34396     sed '
34397       s/[$]LINENO.*/&-/
34398       t lineno
34399       b
34400       :lineno
34401       N
34402       :loop
34403       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34404       t loop
34405       s/-\n.*//
34406     ' >$as_me.lineno &&
34407   chmod +x "$as_me.lineno" ||
34408     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34409    { (exit 1); exit 1; }; }
34410
34411   # Don't try to exec as it changes $[0], causing all sort of problems
34412   # (the dirname of $[0] is not the place where we might find the
34413   # original and so on.  Autoconf is especially sensitive to this).
34414   . "./$as_me.lineno"
34415   # Exit status is that of the last command.
34416   exit
34417 }
34418
34419
34420 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34421   as_dirname=dirname
34422 else
34423   as_dirname=false
34424 fi
34425
34426 ECHO_C= ECHO_N= ECHO_T=
34427 case `echo -n x` in
34428 -n*)
34429   case `echo 'x\c'` in
34430   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34431   *)   ECHO_C='\c';;
34432   esac;;
34433 *)
34434   ECHO_N='-n';;
34435 esac
34436
34437 if expr a : '\(a\)' >/dev/null 2>&1 &&
34438    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34439   as_expr=expr
34440 else
34441   as_expr=false
34442 fi
34443
34444 rm -f conf$$ conf$$.exe conf$$.file
34445 if test -d conf$$.dir; then
34446   rm -f conf$$.dir/conf$$.file
34447 else
34448   rm -f conf$$.dir
34449   mkdir conf$$.dir
34450 fi
34451 echo >conf$$.file
34452 if ln -s conf$$.file conf$$ 2>/dev/null; then
34453   as_ln_s='ln -s'
34454   # ... but there are two gotchas:
34455   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34456   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34457   # In both cases, we have to default to `cp -p'.
34458   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34459     as_ln_s='cp -p'
34460 elif ln conf$$.file conf$$ 2>/dev/null; then
34461   as_ln_s=ln
34462 else
34463   as_ln_s='cp -p'
34464 fi
34465 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34466 rmdir conf$$.dir 2>/dev/null
34467
34468 if mkdir -p . 2>/dev/null; then
34469   as_mkdir_p=:
34470 else
34471   test -d ./-p && rmdir ./-p
34472   as_mkdir_p=false
34473 fi
34474
34475 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34476 # systems may use methods other than mode bits to determine executability.
34477 cat >conf$$.file <<_ASEOF
34478 #! /bin/sh
34479 exit 0
34480 _ASEOF
34481 chmod +x conf$$.file
34482 if test -x conf$$.file >/dev/null 2>&1; then
34483   as_executable_p="test -x"
34484 else
34485   as_executable_p=:
34486 fi
34487 rm -f conf$$.file
34488
34489 # Sed expression to map a string onto a valid CPP name.
34490 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34491
34492 # Sed expression to map a string onto a valid variable name.
34493 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34494
34495
34496 exec 6>&1
34497
34498 # Save the log message, to keep $[0] and so on meaningful, and to
34499 # report actual input values of CONFIG_FILES etc. instead of their
34500 # values after options handling.
34501 ac_log="
34502 This file was extended by llvm $as_me 2.6svn, which was
34503 generated by GNU Autoconf 2.60.  Invocation command line was
34504
34505   CONFIG_FILES    = $CONFIG_FILES
34506   CONFIG_HEADERS  = $CONFIG_HEADERS
34507   CONFIG_LINKS    = $CONFIG_LINKS
34508   CONFIG_COMMANDS = $CONFIG_COMMANDS
34509   $ $0 $@
34510
34511 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34512 "
34513
34514 _ACEOF
34515
34516 cat >>$CONFIG_STATUS <<_ACEOF
34517 # Files that config.status was made for.
34518 config_files="$ac_config_files"
34519 config_headers="$ac_config_headers"
34520 config_commands="$ac_config_commands"
34521
34522 _ACEOF
34523
34524 cat >>$CONFIG_STATUS <<\_ACEOF
34525 ac_cs_usage="\
34526 \`$as_me' instantiates files from templates according to the
34527 current configuration.
34528
34529 Usage: $0 [OPTIONS] [FILE]...
34530
34531   -h, --help       print this help, then exit
34532   -V, --version    print version number, then exit
34533   -q, --quiet      do not print progress messages
34534   -d, --debug      don't remove temporary files
34535       --recheck    update $as_me by reconfiguring in the same conditions
34536   --file=FILE[:TEMPLATE]
34537                    instantiate the configuration file FILE
34538   --header=FILE[:TEMPLATE]
34539                    instantiate the configuration header FILE
34540
34541 Configuration files:
34542 $config_files
34543
34544 Configuration headers:
34545 $config_headers
34546
34547 Configuration commands:
34548 $config_commands
34549
34550 Report bugs to <bug-autoconf@gnu.org>."
34551
34552 _ACEOF
34553 cat >>$CONFIG_STATUS <<_ACEOF
34554 ac_cs_version="\\
34555 llvm config.status 2.6svn
34556 configured by $0, generated by GNU Autoconf 2.60,
34557   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34558
34559 Copyright (C) 2006 Free Software Foundation, Inc.
34560 This config.status script is free software; the Free Software Foundation
34561 gives unlimited permission to copy, distribute and modify it."
34562
34563 ac_pwd='$ac_pwd'
34564 srcdir='$srcdir'
34565 INSTALL='$INSTALL'
34566 _ACEOF
34567
34568 cat >>$CONFIG_STATUS <<\_ACEOF
34569 # If no file are specified by the user, then we need to provide default
34570 # value.  By we need to know if files were specified by the user.
34571 ac_need_defaults=:
34572 while test $# != 0
34573 do
34574   case $1 in
34575   --*=*)
34576     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34577     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34578     ac_shift=:
34579     ;;
34580   *)
34581     ac_option=$1
34582     ac_optarg=$2
34583     ac_shift=shift
34584     ;;
34585   esac
34586
34587   case $ac_option in
34588   # Handling of the options.
34589   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34590     ac_cs_recheck=: ;;
34591   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34592     echo "$ac_cs_version"; exit ;;
34593   --debug | --debu | --deb | --de | --d | -d )
34594     debug=: ;;
34595   --file | --fil | --fi | --f )
34596     $ac_shift
34597     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34598     ac_need_defaults=false;;
34599   --header | --heade | --head | --hea )
34600     $ac_shift
34601     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34602     ac_need_defaults=false;;
34603   --he | --h)
34604     # Conflict between --help and --header
34605     { echo "$as_me: error: ambiguous option: $1
34606 Try \`$0 --help' for more information." >&2
34607    { (exit 1); exit 1; }; };;
34608   --help | --hel | -h )
34609     echo "$ac_cs_usage"; exit ;;
34610   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34611   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34612     ac_cs_silent=: ;;
34613
34614   # This is an error.
34615   -*) { echo "$as_me: error: unrecognized option: $1
34616 Try \`$0 --help' for more information." >&2
34617    { (exit 1); exit 1; }; } ;;
34618
34619   *) ac_config_targets="$ac_config_targets $1"
34620      ac_need_defaults=false ;;
34621
34622   esac
34623   shift
34624 done
34625
34626 ac_configure_extra_args=
34627
34628 if $ac_cs_silent; then
34629   exec 6>/dev/null
34630   ac_configure_extra_args="$ac_configure_extra_args --silent"
34631 fi
34632
34633 _ACEOF
34634 cat >>$CONFIG_STATUS <<_ACEOF
34635 if \$ac_cs_recheck; then
34636   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34637   CONFIG_SHELL=$SHELL
34638   export CONFIG_SHELL
34639   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34640 fi
34641
34642 _ACEOF
34643 cat >>$CONFIG_STATUS <<\_ACEOF
34644 exec 5>>config.log
34645 {
34646   echo
34647   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34648 ## Running $as_me. ##
34649 _ASBOX
34650   echo "$ac_log"
34651 } >&5
34652
34653 _ACEOF
34654 cat >>$CONFIG_STATUS <<_ACEOF
34655 #
34656 # INIT-COMMANDS
34657 #
34658 llvm_src="${srcdir}"
34659
34660 _ACEOF
34661
34662 cat >>$CONFIG_STATUS <<\_ACEOF
34663
34664 # Handling of arguments.
34665 for ac_config_target in $ac_config_targets
34666 do
34667   case $ac_config_target in
34668     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34669     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34670     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34671     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34672     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34673     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34674     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34675     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34676     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34677     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34678     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34679     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34680     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34681     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34682     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34683     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
34684     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34685     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34686     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34687     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34688     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34689
34690   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34691 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34692    { (exit 1); exit 1; }; };;
34693   esac
34694 done
34695
34696
34697 # If the user did not use the arguments to specify the items to instantiate,
34698 # then the envvar interface is used.  Set only those that are not.
34699 # We use the long form for the default assignment because of an extremely
34700 # bizarre bug on SunOS 4.1.3.
34701 if $ac_need_defaults; then
34702   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34703   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34704   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34705 fi
34706
34707 # Have a temporary directory for convenience.  Make it in the build tree
34708 # simply because there is no reason against having it here, and in addition,
34709 # creating and moving files from /tmp can sometimes cause problems.
34710 # Hook for its removal unless debugging.
34711 # Note that there is a small window in which the directory will not be cleaned:
34712 # after its creation but before its name has been assigned to `$tmp'.
34713 $debug ||
34714 {
34715   tmp=
34716   trap 'exit_status=$?
34717   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34718 ' 0
34719   trap '{ (exit 1); exit 1; }' 1 2 13 15
34720 }
34721 # Create a (secure) tmp directory for tmp files.
34722
34723 {
34724   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34725   test -n "$tmp" && test -d "$tmp"
34726 }  ||
34727 {
34728   tmp=./conf$$-$RANDOM
34729   (umask 077 && mkdir "$tmp")
34730 } ||
34731 {
34732    echo "$me: cannot create a temporary directory in ." >&2
34733    { (exit 1); exit 1; }
34734 }
34735
34736 #
34737 # Set up the sed scripts for CONFIG_FILES section.
34738 #
34739
34740 # No need to generate the scripts if there are no CONFIG_FILES.
34741 # This happens for instance when ./config.status config.h
34742 if test -n "$CONFIG_FILES"; then
34743
34744 _ACEOF
34745
34746
34747
34748 ac_delim='%!_!# '
34749 for ac_last_try in false false false false false :; do
34750   cat >conf$$subs.sed <<_ACEOF
34751 SHELL!$SHELL$ac_delim
34752 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34753 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34754 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34755 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34756 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34757 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34758 exec_prefix!$exec_prefix$ac_delim
34759 prefix!$prefix$ac_delim
34760 program_transform_name!$program_transform_name$ac_delim
34761 bindir!$bindir$ac_delim
34762 sbindir!$sbindir$ac_delim
34763 libexecdir!$libexecdir$ac_delim
34764 datarootdir!$datarootdir$ac_delim
34765 datadir!$datadir$ac_delim
34766 sysconfdir!$sysconfdir$ac_delim
34767 sharedstatedir!$sharedstatedir$ac_delim
34768 localstatedir!$localstatedir$ac_delim
34769 includedir!$includedir$ac_delim
34770 oldincludedir!$oldincludedir$ac_delim
34771 docdir!$docdir$ac_delim
34772 infodir!$infodir$ac_delim
34773 htmldir!$htmldir$ac_delim
34774 dvidir!$dvidir$ac_delim
34775 pdfdir!$pdfdir$ac_delim
34776 psdir!$psdir$ac_delim
34777 libdir!$libdir$ac_delim
34778 localedir!$localedir$ac_delim
34779 mandir!$mandir$ac_delim
34780 DEFS!$DEFS$ac_delim
34781 ECHO_C!$ECHO_C$ac_delim
34782 ECHO_N!$ECHO_N$ac_delim
34783 ECHO_T!$ECHO_T$ac_delim
34784 LIBS!$LIBS$ac_delim
34785 build_alias!$build_alias$ac_delim
34786 host_alias!$host_alias$ac_delim
34787 target_alias!$target_alias$ac_delim
34788 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34789 subdirs!$subdirs$ac_delim
34790 build!$build$ac_delim
34791 build_cpu!$build_cpu$ac_delim
34792 build_vendor!$build_vendor$ac_delim
34793 build_os!$build_os$ac_delim
34794 host!$host$ac_delim
34795 host_cpu!$host_cpu$ac_delim
34796 host_vendor!$host_vendor$ac_delim
34797 host_os!$host_os$ac_delim
34798 target!$target$ac_delim
34799 target_cpu!$target_cpu$ac_delim
34800 target_vendor!$target_vendor$ac_delim
34801 target_os!$target_os$ac_delim
34802 OS!$OS$ac_delim
34803 LINKALL!$LINKALL$ac_delim
34804 NOLINKALL!$NOLINKALL$ac_delim
34805 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34806 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34807 CC!$CC$ac_delim
34808 CFLAGS!$CFLAGS$ac_delim
34809 LDFLAGS!$LDFLAGS$ac_delim
34810 CPPFLAGS!$CPPFLAGS$ac_delim
34811 ac_ct_CC!$ac_ct_CC$ac_delim
34812 EXEEXT!$EXEEXT$ac_delim
34813 OBJEXT!$OBJEXT$ac_delim
34814 ARCH!$ARCH$ac_delim
34815 ENDIAN!$ENDIAN$ac_delim
34816 CPP!$CPP$ac_delim
34817 GREP!$GREP$ac_delim
34818 EGREP!$EGREP$ac_delim
34819 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34820 BUILD_CC!$BUILD_CC$ac_delim
34821 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34822 BUILD_CXX!$BUILD_CXX$ac_delim
34823 CVSBUILD!$CVSBUILD$ac_delim
34824 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34825 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34826 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34827 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34828 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34829 JIT!$JIT$ac_delim
34830 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34831 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34832 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34833 ENABLE_PIC!$ENABLE_PIC$ac_delim
34834 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34835 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34836 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34837 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
34838 CXX!$CXX$ac_delim
34839 CXXFLAGS!$CXXFLAGS$ac_delim
34840 ac_ct_CXX!$ac_ct_CXX$ac_delim
34841 NM!$NM$ac_delim
34842 ifGNUmake!$ifGNUmake$ac_delim
34843 LN_S!$LN_S$ac_delim
34844 CMP!$CMP$ac_delim
34845 CP!$CP$ac_delim
34846 DATE!$DATE$ac_delim
34847 FIND!$FIND$ac_delim
34848 _ACEOF
34849
34850   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34851     break
34852   elif $ac_last_try; then
34853     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34854 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34855    { (exit 1); exit 1; }; }
34856   else
34857     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34858   fi
34859 done
34860
34861 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34862 if test -n "$ac_eof"; then
34863   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34864   ac_eof=`expr $ac_eof + 1`
34865 fi
34866
34867 cat >>$CONFIG_STATUS <<_ACEOF
34868 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34869 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34870 _ACEOF
34871 sed '
34872 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34873 s/^/s,@/; s/!/@,|#_!!_#|/
34874 :n
34875 t n
34876 s/'"$ac_delim"'$/,g/; t
34877 s/$/\\/; p
34878 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34879 ' >>$CONFIG_STATUS <conf$$subs.sed
34880 rm -f conf$$subs.sed
34881 cat >>$CONFIG_STATUS <<_ACEOF
34882 CEOF$ac_eof
34883 _ACEOF
34884
34885
34886 ac_delim='%!_!# '
34887 for ac_last_try in false false false false false :; do
34888   cat >conf$$subs.sed <<_ACEOF
34889 MKDIR!$MKDIR$ac_delim
34890 MV!$MV$ac_delim
34891 RANLIB!$RANLIB$ac_delim
34892 RM!$RM$ac_delim
34893 SED!$SED$ac_delim
34894 TAR!$TAR$ac_delim
34895 BINPWD!$BINPWD$ac_delim
34896 GRAPHVIZ!$GRAPHVIZ$ac_delim
34897 DOT!$DOT$ac_delim
34898 GV!$GV$ac_delim
34899 DOTTY!$DOTTY$ac_delim
34900 PERL!$PERL$ac_delim
34901 HAVE_PERL!$HAVE_PERL$ac_delim
34902 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34903 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34904 INSTALL_DATA!$INSTALL_DATA$ac_delim
34905 BZIP2!$BZIP2$ac_delim
34906 DOXYGEN!$DOXYGEN$ac_delim
34907 GROFF!$GROFF$ac_delim
34908 GZIP!$GZIP$ac_delim
34909 POD2HTML!$POD2HTML$ac_delim
34910 POD2MAN!$POD2MAN$ac_delim
34911 RUNTEST!$RUNTEST$ac_delim
34912 TCLSH!$TCLSH$ac_delim
34913 ZIP!$ZIP$ac_delim
34914 OCAMLC!$OCAMLC$ac_delim
34915 OCAMLOPT!$OCAMLOPT$ac_delim
34916 OCAMLDEP!$OCAMLDEP$ac_delim
34917 OCAMLDOC!$OCAMLDOC$ac_delim
34918 GAS!$GAS$ac_delim
34919 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34920 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34921 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34922 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34923 LIBADD_DL!$LIBADD_DL$ac_delim
34924 ECHO!$ECHO$ac_delim
34925 AR!$AR$ac_delim
34926 STRIP!$STRIP$ac_delim
34927 CXXCPP!$CXXCPP$ac_delim
34928 F77!$F77$ac_delim
34929 FFLAGS!$FFLAGS$ac_delim
34930 ac_ct_F77!$ac_ct_F77$ac_delim
34931 LIBTOOL!$LIBTOOL$ac_delim
34932 LLVMGCC!$LLVMGCC$ac_delim
34933 LLVMGXX!$LLVMGXX$ac_delim
34934 USE_UDIS86!$USE_UDIS86$ac_delim
34935 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34936 HAVE_FFI!$HAVE_FFI$ac_delim
34937 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34938 ALLOCA!$ALLOCA$ac_delim
34939 MMAP_FILE!$MMAP_FILE$ac_delim
34940 LLVMCC1!$LLVMCC1$ac_delim
34941 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34942 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34943 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34944 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34945 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34946 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34947 SHLIBEXT!$SHLIBEXT$ac_delim
34948 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34949 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34950 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34951 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34952 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34953 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34954 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34955 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34956 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34957 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34958 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
34959 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
34960 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
34961 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
34962 RPATH!$RPATH$ac_delim
34963 RDYNAMIC!$RDYNAMIC$ac_delim
34964 LIBOBJS!$LIBOBJS$ac_delim
34965 LTLIBOBJS!$LTLIBOBJS$ac_delim
34966 _ACEOF
34967
34968   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
34969     break
34970   elif $ac_last_try; then
34971     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34972 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34973    { (exit 1); exit 1; }; }
34974   else
34975     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34976   fi
34977 done
34978
34979 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34980 if test -n "$ac_eof"; then
34981   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34982   ac_eof=`expr $ac_eof + 1`
34983 fi
34984
34985 cat >>$CONFIG_STATUS <<_ACEOF
34986 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34987 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34988 _ACEOF
34989 sed '
34990 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34991 s/^/s,@/; s/!/@,|#_!!_#|/
34992 :n
34993 t n
34994 s/'"$ac_delim"'$/,g/; t
34995 s/$/\\/; p
34996 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34997 ' >>$CONFIG_STATUS <conf$$subs.sed
34998 rm -f conf$$subs.sed
34999 cat >>$CONFIG_STATUS <<_ACEOF
35000 :end
35001 s/|#_!!_#|//g
35002 CEOF$ac_eof
35003 _ACEOF
35004
35005
35006 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35007 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35008 # trailing colons and then remove the whole line if VPATH becomes empty
35009 # (actually we leave an empty line to preserve line numbers).
35010 if test "x$srcdir" = x.; then
35011   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35012 s/:*\$(srcdir):*/:/
35013 s/:*\${srcdir}:*/:/
35014 s/:*@srcdir@:*/:/
35015 s/^\([^=]*=[     ]*\):*/\1/
35016 s/:*$//
35017 s/^[^=]*=[       ]*$//
35018 }'
35019 fi
35020
35021 cat >>$CONFIG_STATUS <<\_ACEOF
35022 fi # test -n "$CONFIG_FILES"
35023
35024
35025 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35026 do
35027   case $ac_tag in
35028   :[FHLC]) ac_mode=$ac_tag; continue;;
35029   esac
35030   case $ac_mode$ac_tag in
35031   :[FHL]*:*);;
35032   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35033 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35034    { (exit 1); exit 1; }; };;
35035   :[FH]-) ac_tag=-:-;;
35036   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35037   esac
35038   ac_save_IFS=$IFS
35039   IFS=:
35040   set x $ac_tag
35041   IFS=$ac_save_IFS
35042   shift
35043   ac_file=$1
35044   shift
35045
35046   case $ac_mode in
35047   :L) ac_source=$1;;
35048   :[FH])
35049     ac_file_inputs=
35050     for ac_f
35051     do
35052       case $ac_f in
35053       -) ac_f="$tmp/stdin";;
35054       *) # Look for the file first in the build tree, then in the source tree
35055          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35056          # because $ac_f cannot contain `:'.
35057          test -f "$ac_f" ||
35058            case $ac_f in
35059            [\\/$]*) false;;
35060            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35061            esac ||
35062            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35063 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35064    { (exit 1); exit 1; }; };;
35065       esac
35066       ac_file_inputs="$ac_file_inputs $ac_f"
35067     done
35068
35069     # Let's still pretend it is `configure' which instantiates (i.e., don't
35070     # use $as_me), people would be surprised to read:
35071     #    /* config.h.  Generated by config.status.  */
35072     configure_input="Generated from "`IFS=:
35073           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35074     if test x"$ac_file" != x-; then
35075       configure_input="$ac_file.  $configure_input"
35076       { echo "$as_me:$LINENO: creating $ac_file" >&5
35077 echo "$as_me: creating $ac_file" >&6;}
35078     fi
35079
35080     case $ac_tag in
35081     *:-:* | *:-) cat >"$tmp/stdin";;
35082     esac
35083     ;;
35084   esac
35085
35086   ac_dir=`$as_dirname -- "$ac_file" ||
35087 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35088          X"$ac_file" : 'X\(//\)[^/]' \| \
35089          X"$ac_file" : 'X\(//\)$' \| \
35090          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35091 echo X"$ac_file" |
35092     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35093             s//\1/
35094             q
35095           }
35096           /^X\(\/\/\)[^/].*/{
35097             s//\1/
35098             q
35099           }
35100           /^X\(\/\/\)$/{
35101             s//\1/
35102             q
35103           }
35104           /^X\(\/\).*/{
35105             s//\1/
35106             q
35107           }
35108           s/.*/./; q'`
35109   { as_dir="$ac_dir"
35110   case $as_dir in #(
35111   -*) as_dir=./$as_dir;;
35112   esac
35113   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35114     as_dirs=
35115     while :; do
35116       case $as_dir in #(
35117       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35118       *) as_qdir=$as_dir;;
35119       esac
35120       as_dirs="'$as_qdir' $as_dirs"
35121       as_dir=`$as_dirname -- "$as_dir" ||
35122 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35123          X"$as_dir" : 'X\(//\)[^/]' \| \
35124          X"$as_dir" : 'X\(//\)$' \| \
35125          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35126 echo X"$as_dir" |
35127     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35128             s//\1/
35129             q
35130           }
35131           /^X\(\/\/\)[^/].*/{
35132             s//\1/
35133             q
35134           }
35135           /^X\(\/\/\)$/{
35136             s//\1/
35137             q
35138           }
35139           /^X\(\/\).*/{
35140             s//\1/
35141             q
35142           }
35143           s/.*/./; q'`
35144       test -d "$as_dir" && break
35145     done
35146     test -z "$as_dirs" || eval "mkdir $as_dirs"
35147   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35148 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35149    { (exit 1); exit 1; }; }; }
35150   ac_builddir=.
35151
35152 case "$ac_dir" in
35153 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35154 *)
35155   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35156   # A ".." for each directory in $ac_dir_suffix.
35157   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35158   case $ac_top_builddir_sub in
35159   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35160   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35161   esac ;;
35162 esac
35163 ac_abs_top_builddir=$ac_pwd
35164 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35165 # for backward compatibility:
35166 ac_top_builddir=$ac_top_build_prefix
35167
35168 case $srcdir in
35169   .)  # We are building in place.
35170     ac_srcdir=.
35171     ac_top_srcdir=$ac_top_builddir_sub
35172     ac_abs_top_srcdir=$ac_pwd ;;
35173   [\\/]* | ?:[\\/]* )  # Absolute name.
35174     ac_srcdir=$srcdir$ac_dir_suffix;
35175     ac_top_srcdir=$srcdir
35176     ac_abs_top_srcdir=$srcdir ;;
35177   *) # Relative name.
35178     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35179     ac_top_srcdir=$ac_top_build_prefix$srcdir
35180     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35181 esac
35182 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35183
35184
35185   case $ac_mode in
35186   :F)
35187   #
35188   # CONFIG_FILE
35189   #
35190
35191   case $INSTALL in
35192   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35193   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35194   esac
35195 _ACEOF
35196
35197 cat >>$CONFIG_STATUS <<\_ACEOF
35198 # If the template does not know about datarootdir, expand it.
35199 # FIXME: This hack should be removed a few years after 2.60.
35200 ac_datarootdir_hack=; ac_datarootdir_seen=
35201
35202 case `sed -n '/datarootdir/ {
35203   p
35204   q
35205 }
35206 /@datadir@/p
35207 /@docdir@/p
35208 /@infodir@/p
35209 /@localedir@/p
35210 /@mandir@/p
35211 ' $ac_file_inputs` in
35212 *datarootdir*) ac_datarootdir_seen=yes;;
35213 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35214   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35215 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35216 _ACEOF
35217 cat >>$CONFIG_STATUS <<_ACEOF
35218   ac_datarootdir_hack='
35219   s&@datadir@&$datadir&g
35220   s&@docdir@&$docdir&g
35221   s&@infodir@&$infodir&g
35222   s&@localedir@&$localedir&g
35223   s&@mandir@&$mandir&g
35224     s&\\\${datarootdir}&$datarootdir&g' ;;
35225 esac
35226 _ACEOF
35227
35228 # Neutralize VPATH when `$srcdir' = `.'.
35229 # Shell code in configure.ac might set extrasub.
35230 # FIXME: do we really want to maintain this feature?
35231 cat >>$CONFIG_STATUS <<_ACEOF
35232   sed "$ac_vpsub
35233 $extrasub
35234 _ACEOF
35235 cat >>$CONFIG_STATUS <<\_ACEOF
35236 :t
35237 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35238 s&@configure_input@&$configure_input&;t t
35239 s&@top_builddir@&$ac_top_builddir_sub&;t t
35240 s&@srcdir@&$ac_srcdir&;t t
35241 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35242 s&@top_srcdir@&$ac_top_srcdir&;t t
35243 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35244 s&@builddir@&$ac_builddir&;t t
35245 s&@abs_builddir@&$ac_abs_builddir&;t t
35246 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35247 s&@INSTALL@&$ac_INSTALL&;t t
35248 $ac_datarootdir_hack
35249 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35250
35251 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35252   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35253   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35254   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35255 which seems to be undefined.  Please make sure it is defined." >&5
35256 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35257 which seems to be undefined.  Please make sure it is defined." >&2;}
35258
35259   rm -f "$tmp/stdin"
35260   case $ac_file in
35261   -) cat "$tmp/out"; rm -f "$tmp/out";;
35262   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35263   esac
35264  ;;
35265   :H)
35266   #
35267   # CONFIG_HEADER
35268   #
35269 _ACEOF
35270
35271 # Transform confdefs.h into a sed script `conftest.defines', that
35272 # substitutes the proper values into config.h.in to produce config.h.
35273 rm -f conftest.defines conftest.tail
35274 # First, append a space to every undef/define line, to ease matching.
35275 echo 's/$/ /' >conftest.defines
35276 # Then, protect against being on the right side of a sed subst, or in
35277 # an unquoted here document, in config.status.  If some macros were
35278 # called several times there might be several #defines for the same
35279 # symbol, which is useless.  But do not sort them, since the last
35280 # AC_DEFINE must be honored.
35281 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35282 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35283 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35284 # PARAMS is the parameter list in the macro definition--in most cases, it's
35285 # just an empty string.
35286 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35287 ac_dB='\\)[      (].*,\\1define\\2'
35288 ac_dC=' '
35289 ac_dD=' ,'
35290
35291 uniq confdefs.h |
35292   sed -n '
35293         t rset
35294         :rset
35295         s/^[     ]*#[    ]*define[       ][      ]*//
35296         t ok
35297         d
35298         :ok
35299         s/[\\&,]/\\&/g
35300         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35301         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35302   ' >>conftest.defines
35303
35304 # Remove the space that was appended to ease matching.
35305 # Then replace #undef with comments.  This is necessary, for
35306 # example, in the case of _POSIX_SOURCE, which is predefined and required
35307 # on some systems where configure will not decide to define it.
35308 # (The regexp can be short, since the line contains either #define or #undef.)
35309 echo 's/ $//
35310 s,^[     #]*u.*,/* & */,' >>conftest.defines
35311
35312 # Break up conftest.defines:
35313 ac_max_sed_lines=50
35314
35315 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35316 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35317 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35318 # et cetera.
35319 ac_in='$ac_file_inputs'
35320 ac_out='"$tmp/out1"'
35321 ac_nxt='"$tmp/out2"'
35322
35323 while :
35324 do
35325   # Write a here document:
35326     cat >>$CONFIG_STATUS <<_ACEOF
35327     # First, check the format of the line:
35328     cat >"\$tmp/defines.sed" <<\\CEOF
35329 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35330 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35331 b
35332 :def
35333 _ACEOF
35334   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35335   echo 'CEOF
35336     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35337   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35338   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35339   grep . conftest.tail >/dev/null || break
35340   rm -f conftest.defines
35341   mv conftest.tail conftest.defines
35342 done
35343 rm -f conftest.defines conftest.tail
35344
35345 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35346 cat >>$CONFIG_STATUS <<\_ACEOF
35347   if test x"$ac_file" != x-; then
35348     echo "/* $configure_input  */" >"$tmp/config.h"
35349     cat "$ac_result" >>"$tmp/config.h"
35350     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35351       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35352 echo "$as_me: $ac_file is unchanged" >&6;}
35353     else
35354       rm -f $ac_file
35355       mv "$tmp/config.h" $ac_file
35356     fi
35357   else
35358     echo "/* $configure_input  */"
35359     cat "$ac_result"
35360   fi
35361   rm -f "$tmp/out12"
35362  ;;
35363
35364   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35365 echo "$as_me: executing $ac_file commands" >&6;}
35366  ;;
35367   esac
35368
35369
35370   case $ac_file$ac_mode in
35371     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35372    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35373     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35374    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35375     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35376    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35377     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35378    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35379     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35380    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35381     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35382    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35383     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35384    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35385     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35386    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35387     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35388    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35389     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35390    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35391     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35392    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35393     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35394    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35395     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35396    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35397
35398   esac
35399 done # for ac_tag
35400
35401
35402 { (exit 0); exit 0; }
35403 _ACEOF
35404 chmod +x $CONFIG_STATUS
35405 ac_clean_files=$ac_clean_files_save
35406
35407
35408 # configure is writing to config.log, and then calls config.status.
35409 # config.status does its own redirection, appending to config.log.
35410 # Unfortunately, on DOS this fails, as config.log is still kept open
35411 # by configure, so config.status won't be able to write to it; its
35412 # output is simply discarded.  So we exec the FD to /dev/null,
35413 # effectively closing config.log, so it can be properly (re)opened and
35414 # appended to by config.status.  When coming back to configure, we
35415 # need to make the FD available again.
35416 if test "$no_create" != yes; then
35417   ac_cs_success=:
35418   ac_config_status_args=
35419   test "$silent" = yes &&
35420     ac_config_status_args="$ac_config_status_args --quiet"
35421   exec 5>/dev/null
35422   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35423   exec 5>>config.log
35424   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35425   # would make configure fail if this is the last instruction.
35426   $ac_cs_success || { (exit 1); exit 1; }
35427 fi
35428
35429 #
35430 # CONFIG_SUBDIRS section.
35431 #
35432 if test "$no_recursion" != yes; then
35433
35434   # Remove --cache-file and --srcdir arguments so they do not pile up.
35435   ac_sub_configure_args=
35436   ac_prev=
35437   eval "set x $ac_configure_args"
35438   shift
35439   for ac_arg
35440   do
35441     if test -n "$ac_prev"; then
35442       ac_prev=
35443       continue
35444     fi
35445     case $ac_arg in
35446     -cache-file | --cache-file | --cache-fil | --cache-fi \
35447     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35448       ac_prev=cache_file ;;
35449     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35450     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35451     | --c=*)
35452       ;;
35453     --config-cache | -C)
35454       ;;
35455     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35456       ac_prev=srcdir ;;
35457     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35458       ;;
35459     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35460       ac_prev=prefix ;;
35461     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35462       ;;
35463     *)
35464       case $ac_arg in
35465       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35466       esac
35467       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35468     esac
35469   done
35470
35471   # Always prepend --prefix to ensure using the same prefix
35472   # in subdir configurations.
35473   ac_arg="--prefix=$prefix"
35474   case $ac_arg in
35475   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35476   esac
35477   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35478
35479   ac_popdir=`pwd`
35480   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35481
35482     # Do not complain, so a configure script can configure whichever
35483     # parts of a large source tree are present.
35484     test -d "$srcdir/$ac_dir" || continue
35485
35486     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35487     echo "$as_me:$LINENO: $ac_msg" >&5
35488     echo "$ac_msg" >&6
35489     { as_dir="$ac_dir"
35490   case $as_dir in #(
35491   -*) as_dir=./$as_dir;;
35492   esac
35493   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35494     as_dirs=
35495     while :; do
35496       case $as_dir in #(
35497       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35498       *) as_qdir=$as_dir;;
35499       esac
35500       as_dirs="'$as_qdir' $as_dirs"
35501       as_dir=`$as_dirname -- "$as_dir" ||
35502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35503          X"$as_dir" : 'X\(//\)[^/]' \| \
35504          X"$as_dir" : 'X\(//\)$' \| \
35505          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35506 echo X"$as_dir" |
35507     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35508             s//\1/
35509             q
35510           }
35511           /^X\(\/\/\)[^/].*/{
35512             s//\1/
35513             q
35514           }
35515           /^X\(\/\/\)$/{
35516             s//\1/
35517             q
35518           }
35519           /^X\(\/\).*/{
35520             s//\1/
35521             q
35522           }
35523           s/.*/./; q'`
35524       test -d "$as_dir" && break
35525     done
35526     test -z "$as_dirs" || eval "mkdir $as_dirs"
35527   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35528 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35529    { (exit 1); exit 1; }; }; }
35530     ac_builddir=.
35531
35532 case "$ac_dir" in
35533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35534 *)
35535   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35536   # A ".." for each directory in $ac_dir_suffix.
35537   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35538   case $ac_top_builddir_sub in
35539   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35540   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35541   esac ;;
35542 esac
35543 ac_abs_top_builddir=$ac_pwd
35544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35545 # for backward compatibility:
35546 ac_top_builddir=$ac_top_build_prefix
35547
35548 case $srcdir in
35549   .)  # We are building in place.
35550     ac_srcdir=.
35551     ac_top_srcdir=$ac_top_builddir_sub
35552     ac_abs_top_srcdir=$ac_pwd ;;
35553   [\\/]* | ?:[\\/]* )  # Absolute name.
35554     ac_srcdir=$srcdir$ac_dir_suffix;
35555     ac_top_srcdir=$srcdir
35556     ac_abs_top_srcdir=$srcdir ;;
35557   *) # Relative name.
35558     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35559     ac_top_srcdir=$ac_top_build_prefix$srcdir
35560     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35561 esac
35562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35563
35564
35565     cd "$ac_dir"
35566
35567     # Check for guested configure; otherwise get Cygnus style configure.
35568     if test -f "$ac_srcdir/configure.gnu"; then
35569       ac_sub_configure=$ac_srcdir/configure.gnu
35570     elif test -f "$ac_srcdir/configure"; then
35571       ac_sub_configure=$ac_srcdir/configure
35572     elif test -f "$ac_srcdir/configure.in"; then
35573       # This should be Cygnus configure.
35574       ac_sub_configure=$ac_aux_dir/configure
35575     else
35576       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35577 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35578       ac_sub_configure=
35579     fi
35580
35581     # The recursion is here.
35582     if test -n "$ac_sub_configure"; then
35583       # Make the cache file name correct relative to the subdirectory.
35584       case $cache_file in
35585       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35586       *) # Relative name.
35587         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35588       esac
35589
35590       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35591 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35592       # The eval makes quoting arguments work.
35593       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35594            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35595         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35596 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35597    { (exit 1); exit 1; }; }
35598     fi
35599
35600     cd "$ac_popdir"
35601   done
35602 fi
35603